From c5eea2b358b6d8f43d962fbb74b282cf8775ad40 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 6 Oct 2022 21:37:39 +0000 Subject: [PATCH 1/2] feat: add a new searchable field kmsKeys fix: deprecate searchable field kmsKey PiperOrigin-RevId: 479103182 Source-Link: https://github.com/googleapis/googleapis/commit/7b5a467b978ff2dde6cd34717ebad5728d05f2bb Source-Link: https://github.com/googleapis/googleapis-gen/commit/417aefa0fb633d0f171a607779e9f0e19c8b8b7f Copy-Tag: eyJwIjoiamF2YS1hc3NldC8uT3dsQm90LnlhbWwiLCJoIjoiNDE3YWVmYTBmYjYzM2QwZjE3MWE2MDc3NzllOWYwZTE5YzhiOGI3ZiJ9 --- .../cloud/asset/v1/AssetServiceGrpc.java | 2730 -------- .../asset/v1p2beta1/AssetServiceGrpc.java | 799 --- ...IamPolicyLongrunningResponseOrBuilder.java | 24 - .../com/google/cloud/asset/v1/AssetProto.java | 616 -- .../cloud/asset/v1/AssetServiceProto.java | 1292 ---- .../BatchGetEffectiveIamPoliciesResponse.java | 4152 ------------ ...EffectiveIamPoliciesResponseOrBuilder.java | 118 - .../v1/CreateSavedQueryRequestOrBuilder.java | 143 - .../asset/v1/DeleteFeedRequestOrBuilder.java | 60 - .../v1/DeleteSavedQueryRequestOrBuilder.java | 62 - .../asset/v1/GetFeedRequestOrBuilder.java | 60 - .../v1/GetSavedQueryRequestOrBuilder.java | 60 - .../v1/IamPolicyAnalysisResultOrBuilder.java | 231 - .../cloud/asset/v1/MoveImpactOrBuilder.java | 50 - .../v1/QueryAssetsOutputConfigOrBuilder.java | 67 - .../cloud/asset/v1p1beta1/AssetProto.java | 163 - .../asset/v1p1beta1/AssetServiceProto.java | 150 - .../cloud/asset/v1p2beta1/AssetProto.java | 126 - .../asset/v1p2beta1/AssetServiceProto.java | 270 - .../v1p2beta1/DeleteFeedRequestOrBuilder.java | 60 - .../v1p2beta1/GetFeedRequestOrBuilder.java | 60 - .../cloud/asset/v1p5beta1/AssetProto.java | 132 - .../asset/v1p5beta1/AssetServiceProto.java | 120 - .../cloud/asset/v1p7beta1/AssetProto.java | 196 - .../asset/v1p7beta1/AssetServiceProto.java | 230 - .../cloud/asset/v1/AssetServiceClient.java | 3 + .../cloud/asset/v1/AssetServiceSettings.java | 1 + .../google/cloud/asset/v1/gapic_metadata.json | 0 .../google/cloud/asset/v1/package-info.java | 0 .../cloud/asset/v1/stub/AssetServiceStub.java | 0 .../v1/stub/AssetServiceStubSettings.java | 0 .../stub/GrpcAssetServiceCallableFactory.java | 0 .../asset/v1/stub/GrpcAssetServiceStub.java | 1 + .../HttpJsonAssetServiceCallableFactory.java | 0 .../v1/stub/HttpJsonAssetServiceStub.java | 1 + .../v1/AssetServiceClientHttpJsonTest.java | 0 .../asset/v1/AssetServiceClientTest.java | 0 .../cloud/asset/v1/MockAssetService.java | 0 .../cloud/asset/v1/MockAssetServiceImpl.java | 0 .../cloud/asset/v1/AssetServiceGrpc.java | 2121 ++++++ .../AnalyzeIamPolicyLongrunningMetadata.java | 457 +- ...IamPolicyLongrunningMetadataOrBuilder.java | 35 +- .../AnalyzeIamPolicyLongrunningRequest.java | 738 +-- ...eIamPolicyLongrunningRequestOrBuilder.java | 76 +- .../AnalyzeIamPolicyLongrunningResponse.java | 326 +- ...IamPolicyLongrunningResponseOrBuilder.java | 9 + .../asset/v1/AnalyzeIamPolicyRequest.java | 714 +-- .../v1/AnalyzeIamPolicyRequestOrBuilder.java | 76 +- .../asset/v1/AnalyzeIamPolicyResponse.java | 1870 ++---- .../v1/AnalyzeIamPolicyResponseOrBuilder.java | 91 +- .../cloud/asset/v1/AnalyzeMoveRequest.java | 591 +- .../asset/v1/AnalyzeMoveRequestOrBuilder.java | 42 +- .../cloud/asset/v1/AnalyzeMoveResponse.java | 462 +- .../v1/AnalyzeMoveResponseOrBuilder.java | 36 +- .../java/com/google/cloud/asset/v1/Asset.java | 1771 ++---- .../google/cloud/asset/v1/AssetOrBuilder.java | 164 +- .../com/google/cloud/asset/v1/AssetProto.java | 505 ++ .../cloud/asset/v1/AssetServiceProto.java | 1149 ++++ .../cloud/asset/v1/AttachedResource.java | 519 +- .../asset/v1/AttachedResourceOrBuilder.java | 45 +- .../v1/BatchGetAssetsHistoryRequest.java | 904 +-- ...BatchGetAssetsHistoryRequestOrBuilder.java | 105 +- .../v1/BatchGetAssetsHistoryResponse.java | 469 +- ...atchGetAssetsHistoryResponseOrBuilder.java | 36 +- .../BatchGetEffectiveIamPoliciesRequest.java | 597 +- ...tEffectiveIamPoliciesRequestOrBuilder.java | 69 +- .../BatchGetEffectiveIamPoliciesResponse.java | 3190 ++++++++++ ...EffectiveIamPoliciesResponseOrBuilder.java | 73 + .../cloud/asset/v1/BigQueryDestination.java | 624 +- .../v1/BigQueryDestinationOrBuilder.java | 50 +- .../cloud/asset/v1/ConditionEvaluation.java | 441 +- .../v1/ConditionEvaluationOrBuilder.java | 24 +- .../google/cloud/asset/v1/ContentType.java | 110 +- .../cloud/asset/v1/CreateFeedRequest.java | 600 +- .../asset/v1/CreateFeedRequestOrBuilder.java | 59 +- .../asset/v1/CreateSavedQueryRequest.java | 797 +-- .../v1/CreateSavedQueryRequestOrBuilder.java | 99 + .../cloud/asset/v1/DeleteFeedRequest.java | 406 +- .../asset/v1/DeleteFeedRequestOrBuilder.java | 35 + .../asset/v1/DeleteSavedQueryRequest.java | 431 +- .../v1/DeleteSavedQueryRequestOrBuilder.java | 35 + .../cloud/asset/v1/ExportAssetsRequest.java | 960 +-- .../v1/ExportAssetsRequestOrBuilder.java | 114 +- .../cloud/asset/v1/ExportAssetsResponse.java | 593 +- .../v1/ExportAssetsResponseOrBuilder.java | 42 +- .../java/com/google/cloud/asset/v1/Feed.java | 986 +-- .../com/google/cloud/asset/v1/FeedName.java | 0 .../google/cloud/asset/v1/FeedOrBuilder.java | 115 +- .../cloud/asset/v1/FeedOutputConfig.java | 440 +- .../asset/v1/FeedOutputConfigOrBuilder.java | 26 +- .../com/google/cloud/asset/v1/FolderName.java | 0 .../google/cloud/asset/v1/GcsDestination.java | 526 +- .../asset/v1/GcsDestinationOrBuilder.java | 42 +- .../cloud/asset/v1/GcsOutputResult.java | 408 +- .../asset/v1/GcsOutputResultOrBuilder.java | 36 +- .../google/cloud/asset/v1/GetFeedRequest.java | 399 +- .../asset/v1/GetFeedRequestOrBuilder.java | 35 + .../cloud/asset/v1/GetSavedQueryRequest.java | 402 +- .../v1/GetSavedQueryRequestOrBuilder.java | 35 + .../v1/IamPolicyAnalysisOutputConfig.java | 2246 +++---- ...amPolicyAnalysisOutputConfigOrBuilder.java | 67 +- .../asset/v1/IamPolicyAnalysisQuery.java | 3917 +++++------- .../v1/IamPolicyAnalysisQueryOrBuilder.java | 147 +- .../asset/v1/IamPolicyAnalysisResult.java | 5666 ++++++----------- .../v1/IamPolicyAnalysisResultOrBuilder.java | 150 + .../asset/v1/IamPolicyAnalysisState.java | 432 +- .../v1/IamPolicyAnalysisStateOrBuilder.java | 33 +- .../cloud/asset/v1/IamPolicySearchResult.java | 2175 +++---- .../v1/IamPolicySearchResultOrBuilder.java | 88 +- .../cloud/asset/v1/ListAssetsRequest.java | 961 ++- .../asset/v1/ListAssetsRequestOrBuilder.java | 117 +- .../cloud/asset/v1/ListAssetsResponse.java | 631 +- .../asset/v1/ListAssetsResponseOrBuilder.java | 54 +- .../cloud/asset/v1/ListFeedsRequest.java | 374 +- .../asset/v1/ListFeedsRequestOrBuilder.java | 27 +- .../cloud/asset/v1/ListFeedsResponse.java | 467 +- .../asset/v1/ListFeedsResponseOrBuilder.java | 37 +- .../asset/v1/ListSavedQueriesRequest.java | 654 +- .../v1/ListSavedQueriesRequestOrBuilder.java | 69 +- .../asset/v1/ListSavedQueriesResponse.java | 550 +- .../v1/ListSavedQueriesResponseOrBuilder.java | 45 +- .../google/cloud/asset/v1/MoveAnalysis.java | 616 +- .../cloud/asset/v1/MoveAnalysisOrBuilder.java | 43 +- .../cloud/asset/v1/MoveAnalysisResult.java | 619 +- .../asset/v1/MoveAnalysisResultOrBuilder.java | 54 +- .../com/google/cloud/asset/v1/MoveImpact.java | 367 +- .../cloud/asset/v1/MoveImpactOrBuilder.java | 29 + .../cloud/asset/v1/OrganizationName.java | 0 .../google/cloud/asset/v1/OutputConfig.java | 544 +- .../cloud/asset/v1/OutputConfigOrBuilder.java | 34 +- .../google/cloud/asset/v1/OutputResult.java | 435 +- .../cloud/asset/v1/OutputResultOrBuilder.java | 26 +- .../google/cloud/asset/v1/PartitionSpec.java | 428 +- .../asset/v1/PartitionSpecOrBuilder.java | 24 +- .../google/cloud/asset/v1/ProjectName.java | 168 + .../cloud/asset/v1/PubsubDestination.java | 374 +- .../asset/v1/PubsubDestinationOrBuilder.java | 27 +- .../asset/v1/QueryAssetsOutputConfig.java | 1208 ++-- .../v1/QueryAssetsOutputConfigOrBuilder.java | 36 + .../cloud/asset/v1/QueryAssetsRequest.java | 1590 ++--- .../asset/v1/QueryAssetsRequestOrBuilder.java | 206 +- .../cloud/asset/v1/QueryAssetsResponse.java | 774 +-- .../v1/QueryAssetsResponseOrBuilder.java | 54 +- .../google/cloud/asset/v1/QueryResult.java | 675 +- .../cloud/asset/v1/QueryResultOrBuilder.java | 57 +- .../google/cloud/asset/v1/RelatedAsset.java | 641 +- .../cloud/asset/v1/RelatedAssetOrBuilder.java | 63 +- .../google/cloud/asset/v1/RelatedAssets.java | 568 +- .../asset/v1/RelatedAssetsOrBuilder.java | 45 +- .../cloud/asset/v1/RelatedResource.java | 454 +- .../asset/v1/RelatedResourceOrBuilder.java | 36 +- .../cloud/asset/v1/RelatedResources.java | 449 +- .../asset/v1/RelatedResourcesOrBuilder.java | 36 +- .../asset/v1/RelationshipAttributes.java | 624 +- .../v1/RelationshipAttributesOrBuilder.java | 55 +- .../com/google/cloud/asset/v1/Resource.java | 852 +-- .../cloud/asset/v1/ResourceOrBuilder.java | 80 +- .../cloud/asset/v1/ResourceSearchResult.java | 4132 ++++++------ .../v1/ResourceSearchResultOrBuilder.java | 644 +- .../com/google/cloud/asset/v1/SavedQuery.java | 1830 ++---- .../google/cloud/asset/v1/SavedQueryName.java | 0 .../cloud/asset/v1/SavedQueryOrBuilder.java | 136 +- .../asset/v1/SearchAllIamPoliciesRequest.java | 1016 ++- .../SearchAllIamPoliciesRequestOrBuilder.java | 144 +- .../v1/SearchAllIamPoliciesResponse.java | 551 +- ...SearchAllIamPoliciesResponseOrBuilder.java | 45 +- .../asset/v1/SearchAllResourcesRequest.java | 1350 ++-- .../SearchAllResourcesRequestOrBuilder.java | 217 +- .../asset/v1/SearchAllResourcesResponse.java | 548 +- .../SearchAllResourcesResponseOrBuilder.java | 45 +- .../cloud/asset/v1/TableFieldSchema.java | 701 +- .../asset/v1/TableFieldSchemaOrBuilder.java | 63 +- .../google/cloud/asset/v1/TableSchema.java | 455 +- .../cloud/asset/v1/TableSchemaOrBuilder.java | 36 +- .../google/cloud/asset/v1/TemporalAsset.java | 755 +-- .../asset/v1/TemporalAssetOrBuilder.java | 51 +- .../com/google/cloud/asset/v1/TimeWindow.java | 462 +- .../cloud/asset/v1/TimeWindowOrBuilder.java | 34 +- .../cloud/asset/v1/UpdateFeedRequest.java | 559 +- .../asset/v1/UpdateFeedRequestOrBuilder.java | 55 +- .../asset/v1/UpdateSavedQueryRequest.java | 580 +- .../v1/UpdateSavedQueryRequestOrBuilder.java | 55 +- .../cloud/asset/v1/VersionedResource.java | 459 +- .../asset/v1/VersionedResourceOrBuilder.java | 35 +- .../google/cloud/asset/v1/asset_service.proto | 496 +- .../proto/google/cloud/asset/v1/assets.proto | 152 +- .../AsyncAnalyzeIamPolicy.java | 0 .../SyncAnalyzeIamPolicy.java | 0 .../AsyncAnalyzeIamPolicyLongrunning.java | 0 .../AsyncAnalyzeIamPolicyLongrunningLRO.java | 0 .../SyncAnalyzeIamPolicyLongrunning.java | 0 .../analyzemove/AsyncAnalyzeMove.java | 0 .../analyzemove/SyncAnalyzeMove.java | 0 .../AsyncBatchGetAssetsHistory.java | 0 .../SyncBatchGetAssetsHistory.java | 0 .../AsyncBatchGetEffectiveIamPolicies.java | 0 .../SyncBatchGetEffectiveIamPolicies.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createfeed/AsyncCreateFeed.java | 0 .../createfeed/SyncCreateFeed.java | 0 .../createfeed/SyncCreateFeedString.java | 0 .../AsyncCreateSavedQuery.java | 0 .../SyncCreateSavedQuery.java | 0 ...eSavedQueryFoldernameSavedqueryString.java | 0 ...QueryOrganizationnameSavedqueryString.java | 0 ...SavedQueryProjectnameSavedqueryString.java | 0 ...reateSavedQueryStringSavedqueryString.java | 0 .../deletefeed/AsyncDeleteFeed.java | 0 .../deletefeed/SyncDeleteFeed.java | 0 .../deletefeed/SyncDeleteFeedFeedname.java | 0 .../deletefeed/SyncDeleteFeedString.java | 0 .../AsyncDeleteSavedQuery.java | 0 .../SyncDeleteSavedQuery.java | 0 .../SyncDeleteSavedQuerySavedqueryname.java | 0 .../SyncDeleteSavedQueryString.java | 0 .../exportassets/AsyncExportAssets.java | 0 .../exportassets/AsyncExportAssetsLRO.java | 0 .../exportassets/SyncExportAssets.java | 0 .../getfeed/AsyncGetFeed.java | 0 .../getfeed/SyncGetFeed.java | 0 .../getfeed/SyncGetFeedFeedname.java | 0 .../getfeed/SyncGetFeedString.java | 0 .../getsavedquery/AsyncGetSavedQuery.java | 0 .../getsavedquery/SyncGetSavedQuery.java | 0 .../SyncGetSavedQuerySavedqueryname.java | 0 .../SyncGetSavedQueryString.java | 0 .../listassets/AsyncListAssets.java | 0 .../listassets/AsyncListAssetsPaged.java | 0 .../listassets/SyncListAssets.java | 0 .../SyncListAssetsResourcename.java | 0 .../listassets/SyncListAssetsString.java | 0 .../listfeeds/AsyncListFeeds.java | 0 .../listfeeds/SyncListFeeds.java | 0 .../listfeeds/SyncListFeedsString.java | 0 .../AsyncListSavedQueries.java | 0 .../AsyncListSavedQueriesPaged.java | 0 .../SyncListSavedQueries.java | 0 .../SyncListSavedQueriesFoldername.java | 0 .../SyncListSavedQueriesOrganizationname.java | 0 .../SyncListSavedQueriesProjectname.java | 0 .../SyncListSavedQueriesString.java | 0 .../queryassets/AsyncQueryAssets.java | 0 .../queryassets/SyncQueryAssets.java | 0 .../AsyncSearchAllIamPolicies.java | 0 .../AsyncSearchAllIamPoliciesPaged.java | 0 .../SyncSearchAllIamPolicies.java | 0 .../SyncSearchAllIamPoliciesStringString.java | 0 .../AsyncSearchAllResources.java | 0 .../AsyncSearchAllResourcesPaged.java | 0 .../SyncSearchAllResources.java | 0 ...rchAllResourcesStringStringListstring.java | 0 .../updatefeed/AsyncUpdateFeed.java | 0 .../updatefeed/SyncUpdateFeed.java | 0 .../updatefeed/SyncUpdateFeedFeed.java | 0 .../AsyncUpdateSavedQuery.java | 0 .../SyncUpdateSavedQuery.java | 0 ...ncUpdateSavedQuerySavedqueryFieldmask.java | 0 .../SyncBatchGetAssetsHistory.java | 0 .../SyncBatchGetAssetsHistory.java | 0 .../asset/v1p1beta1/AssetServiceClient.java | 0 .../asset/v1p1beta1/AssetServiceSettings.java | 1 + .../cloud/asset/v1p1beta1/gapic_metadata.json | 0 .../cloud/asset/v1p1beta1/package-info.java | 0 .../v1p1beta1/stub/AssetServiceStub.java | 0 .../stub/AssetServiceStubSettings.java | 0 .../stub/GrpcAssetServiceCallableFactory.java | 0 .../v1p1beta1/stub/GrpcAssetServiceStub.java | 1 + .../HttpJsonAssetServiceCallableFactory.java | 0 .../stub/HttpJsonAssetServiceStub.java | 0 .../AssetServiceClientHttpJsonTest.java | 0 .../v1p1beta1/AssetServiceClientTest.java | 0 .../asset/v1p1beta1/MockAssetService.java | 0 .../asset/v1p1beta1/MockAssetServiceImpl.java | 0 .../asset/v1p1beta1/AssetServiceGrpc.java | 339 +- .../cloud/asset/v1p1beta1/AssetProto.java | 129 + .../asset/v1p1beta1/AssetServiceProto.java | 132 + .../v1p1beta1/IamPolicySearchResult.java | 1323 ++-- .../IamPolicySearchResultOrBuilder.java | 55 +- .../cloud/asset/v1p1beta1/Permissions.java | 408 +- .../asset/v1p1beta1/PermissionsOrBuilder.java | 36 +- .../SearchAllIamPoliciesRequest.java | 588 +- .../SearchAllIamPoliciesRequestOrBuilder.java | 48 +- .../SearchAllIamPoliciesResponse.java | 548 +- ...SearchAllIamPoliciesResponseOrBuilder.java | 45 +- .../v1p1beta1/SearchAllResourcesRequest.java | 775 +-- .../SearchAllResourcesRequestOrBuilder.java | 75 +- .../v1p1beta1/SearchAllResourcesResponse.java | 556 +- .../SearchAllResourcesResponseOrBuilder.java | 45 +- .../v1p1beta1/StandardResourceMetadata.java | 1276 ++-- .../StandardResourceMetadataOrBuilder.java | 139 +- .../cloud/asset/v1p1beta1/asset_service.proto | 0 .../google/cloud/asset/v1p1beta1/assets.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncSearchAllIamPolicies.java | 0 .../AsyncSearchAllIamPoliciesPaged.java | 0 .../SyncSearchAllIamPolicies.java | 0 .../SyncSearchAllIamPoliciesStringString.java | 0 .../AsyncSearchAllResources.java | 0 .../AsyncSearchAllResourcesPaged.java | 0 .../SyncSearchAllResources.java | 0 ...rchAllResourcesStringStringListstring.java | 0 .../SyncSearchAllResources.java | 0 .../SyncSearchAllResources.java | 0 .../asset/v1p2beta1/AssetServiceClient.java | 0 .../asset/v1p2beta1/AssetServiceSettings.java | 1 + .../cloud/asset/v1p2beta1/gapic_metadata.json | 0 .../cloud/asset/v1p2beta1/package-info.java | 0 .../v1p2beta1/stub/AssetServiceStub.java | 0 .../stub/AssetServiceStubSettings.java | 0 .../stub/GrpcAssetServiceCallableFactory.java | 0 .../v1p2beta1/stub/GrpcAssetServiceStub.java | 1 + .../HttpJsonAssetServiceCallableFactory.java | 0 .../stub/HttpJsonAssetServiceStub.java | 0 .../AssetServiceClientHttpJsonTest.java | 0 .../v1p2beta1/AssetServiceClientTest.java | 0 .../asset/v1p2beta1/MockAssetService.java | 0 .../asset/v1p2beta1/MockAssetServiceImpl.java | 0 .../asset/v1p2beta1/AssetServiceGrpc.java | 651 ++ .../google/cloud/asset/v1p2beta1/Asset.java | 745 +-- .../cloud/asset/v1p2beta1/AssetOrBuilder.java | 70 +- .../cloud/asset/v1p2beta1/AssetProto.java | 108 + .../asset/v1p2beta1/AssetServiceProto.java | 245 + .../cloud/asset/v1p2beta1/ContentType.java | 82 +- .../asset/v1p2beta1/CreateFeedRequest.java | 587 +- .../v1p2beta1/CreateFeedRequestOrBuilder.java | 53 +- .../asset/v1p2beta1/DeleteFeedRequest.java | 414 +- .../v1p2beta1/DeleteFeedRequestOrBuilder.java | 35 + .../google/cloud/asset/v1p2beta1/Feed.java | 807 +-- .../cloud/asset/v1p2beta1/FeedName.java | 0 .../cloud/asset/v1p2beta1/FeedOrBuilder.java | 89 +- .../asset/v1p2beta1/FeedOutputConfig.java | 463 +- .../v1p2beta1/FeedOutputConfigOrBuilder.java | 26 +- .../cloud/asset/v1p2beta1/GcsDestination.java | 433 +- .../v1p2beta1/GcsDestinationOrBuilder.java | 30 +- .../cloud/asset/v1p2beta1/GetFeedRequest.java | 405 +- .../v1p2beta1/GetFeedRequestOrBuilder.java | 35 + .../asset/v1p2beta1/ListFeedsRequest.java | 382 +- .../v1p2beta1/ListFeedsRequestOrBuilder.java | 27 +- .../asset/v1p2beta1/ListFeedsResponse.java | 470 +- .../v1p2beta1/ListFeedsResponseOrBuilder.java | 37 +- .../cloud/asset/v1p2beta1/OutputConfig.java | 442 +- .../v1p2beta1/OutputConfigOrBuilder.java | 26 +- .../asset/v1p2beta1/PubsubDestination.java | 382 +- .../v1p2beta1/PubsubDestinationOrBuilder.java | 27 +- .../cloud/asset/v1p2beta1/Resource.java | 781 +-- .../asset/v1p2beta1/ResourceOrBuilder.java | 71 +- .../cloud/asset/v1p2beta1/TemporalAsset.java | 528 +- .../v1p2beta1/TemporalAssetOrBuilder.java | 37 +- .../cloud/asset/v1p2beta1/TimeWindow.java | 469 +- .../asset/v1p2beta1/TimeWindowOrBuilder.java | 34 +- .../asset/v1p2beta1/UpdateFeedRequest.java | 558 +- .../v1p2beta1/UpdateFeedRequestOrBuilder.java | 52 +- .../cloud/asset/v1p2beta1/asset_service.proto | 0 .../google/cloud/asset/v1p2beta1/assets.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createfeed/AsyncCreateFeed.java | 0 .../createfeed/SyncCreateFeed.java | 0 .../createfeed/SyncCreateFeedString.java | 0 .../deletefeed/AsyncDeleteFeed.java | 0 .../deletefeed/SyncDeleteFeed.java | 0 .../deletefeed/SyncDeleteFeedFeedname.java | 0 .../deletefeed/SyncDeleteFeedString.java | 0 .../getfeed/AsyncGetFeed.java | 0 .../getfeed/SyncGetFeed.java | 0 .../getfeed/SyncGetFeedFeedname.java | 0 .../getfeed/SyncGetFeedString.java | 0 .../listfeeds/AsyncListFeeds.java | 0 .../listfeeds/SyncListFeeds.java | 0 .../listfeeds/SyncListFeedsString.java | 0 .../updatefeed/AsyncUpdateFeed.java | 0 .../updatefeed/SyncUpdateFeed.java | 0 .../updatefeed/SyncUpdateFeedFeed.java | 0 .../createfeed/SyncCreateFeed.java | 0 .../createfeed/SyncCreateFeed.java | 0 .../asset/v1p5beta1/AssetServiceClient.java | 0 .../asset/v1p5beta1/AssetServiceSettings.java | 1 + .../cloud/asset/v1p5beta1/gapic_metadata.json | 0 .../cloud/asset/v1p5beta1/package-info.java | 0 .../v1p5beta1/stub/AssetServiceStub.java | 0 .../stub/AssetServiceStubSettings.java | 0 .../stub/GrpcAssetServiceCallableFactory.java | 0 .../v1p5beta1/stub/GrpcAssetServiceStub.java | 1 + .../HttpJsonAssetServiceCallableFactory.java | 0 .../stub/HttpJsonAssetServiceStub.java | 0 .../AssetServiceClientHttpJsonTest.java | 0 .../v1p5beta1/AssetServiceClientTest.java | 0 .../asset/v1p5beta1/MockAssetService.java | 0 .../asset/v1p5beta1/MockAssetServiceImpl.java | 0 .../asset/v1p5beta1/AssetServiceGrpc.java | 222 +- .../google/cloud/asset/v1p5beta1/Asset.java | 1337 ++-- .../cloud/asset/v1p5beta1/AssetOrBuilder.java | 108 +- .../cloud/asset/v1p5beta1/AssetProto.java | 107 + .../asset/v1p5beta1/AssetServiceProto.java | 104 + .../cloud/asset/v1p5beta1/ContentType.java | 96 +- .../asset/v1p5beta1/ListAssetsRequest.java | 759 +-- .../v1p5beta1/ListAssetsRequestOrBuilder.java | 71 +- .../asset/v1p5beta1/ListAssetsResponse.java | 634 +- .../ListAssetsResponseOrBuilder.java | 53 +- .../cloud/asset/v1p5beta1/Resource.java | 781 +-- .../asset/v1p5beta1/ResourceOrBuilder.java | 71 +- .../cloud/asset/v1p5beta1/asset_service.proto | 0 .../google/cloud/asset/v1p5beta1/assets.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../listassets/AsyncListAssets.java | 0 .../listassets/AsyncListAssetsPaged.java | 0 .../listassets/SyncListAssets.java | 0 .../listassets/SyncListAssets.java | 0 .../listassets/SyncListAssets.java | 0 .../asset/v1p7beta1/AssetServiceClient.java | 0 .../asset/v1p7beta1/AssetServiceSettings.java | 1 + .../cloud/asset/v1p7beta1/gapic_metadata.json | 0 .../cloud/asset/v1p7beta1/package-info.java | 0 .../v1p7beta1/stub/AssetServiceStub.java | 0 .../stub/AssetServiceStubSettings.java | 0 .../stub/GrpcAssetServiceCallableFactory.java | 0 .../v1p7beta1/stub/GrpcAssetServiceStub.java | 1 + .../v1p7beta1/AssetServiceClientTest.java | 0 .../asset/v1p7beta1/MockAssetService.java | 0 .../asset/v1p7beta1/MockAssetServiceImpl.java | 0 .../asset/v1p7beta1/AssetServiceGrpc.java | 214 +- .../google/cloud/asset/v1p7beta1/Asset.java | 1535 ++--- .../cloud/asset/v1p7beta1/AssetOrBuilder.java | 134 +- .../cloud/asset/v1p7beta1/AssetProto.java | 160 + .../asset/v1p7beta1/AssetServiceProto.java | 203 + .../asset/v1p7beta1/BigQueryDestination.java | 632 +- .../BigQueryDestinationOrBuilder.java | 50 +- .../cloud/asset/v1p7beta1/ContentType.java | 103 +- .../asset/v1p7beta1/ExportAssetsRequest.java | 929 +-- .../ExportAssetsRequestOrBuilder.java | 105 +- .../asset/v1p7beta1/ExportAssetsResponse.java | 586 +- .../ExportAssetsResponseOrBuilder.java | 42 +- .../cloud/asset/v1p7beta1/GcsDestination.java | 532 +- .../v1p7beta1/GcsDestinationOrBuilder.java | 42 +- .../asset/v1p7beta1/GcsOutputResult.java | 415 +- .../v1p7beta1/GcsOutputResultOrBuilder.java | 36 +- .../cloud/asset/v1p7beta1/OutputConfig.java | 570 +- .../v1p7beta1/OutputConfigOrBuilder.java | 34 +- .../cloud/asset/v1p7beta1/OutputResult.java | 440 +- .../v1p7beta1/OutputResultOrBuilder.java | 26 +- .../cloud/asset/v1p7beta1/PartitionSpec.java | 434 +- .../v1p7beta1/PartitionSpecOrBuilder.java | 24 +- .../cloud/asset/v1p7beta1/RelatedAsset.java | 570 +- .../v1p7beta1/RelatedAssetOrBuilder.java | 54 +- .../cloud/asset/v1p7beta1/RelatedAssets.java | 597 +- .../v1p7beta1/RelatedAssetsOrBuilder.java | 47 +- .../v1p7beta1/RelationshipAttributes.java | 627 +- .../RelationshipAttributesOrBuilder.java | 54 +- .../cloud/asset/v1p7beta1/Resource.java | 861 +-- .../asset/v1p7beta1/ResourceOrBuilder.java | 80 +- .../cloud/asset/v1p7beta1/asset_service.proto | 0 .../google/cloud/asset/v1p7beta1/assets.proto | 0 459 files changed, 44378 insertions(+), 71118 deletions(-) delete mode 100644 java-asset/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java delete mode 100644 java-asset/grpc-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceGrpc.java delete mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponseOrBuilder.java delete mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java delete mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java delete mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponse.java delete mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponseOrBuilder.java delete mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequestOrBuilder.java delete mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequestOrBuilder.java delete mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequestOrBuilder.java delete mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequestOrBuilder.java delete mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequestOrBuilder.java delete mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResultOrBuilder.java delete mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpactOrBuilder.java delete mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfigOrBuilder.java delete mode 100644 java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetProto.java delete mode 100644 java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceProto.java delete mode 100644 java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetProto.java delete mode 100644 java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceProto.java delete mode 100644 java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequestOrBuilder.java delete mode 100644 java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequestOrBuilder.java delete mode 100644 java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetProto.java delete mode 100644 java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceProto.java delete mode 100644 java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetProto.java delete mode 100644 java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceProto.java rename {java-asset => owl-bot-staging/java-asset/v1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java (99%) rename {java-asset => owl-bot-staging/java-asset/v1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceSettings.java (99%) rename {java-asset => owl-bot-staging/java-asset/v1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/gapic_metadata.json (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/package-info.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStub.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java (99%) rename {java-asset => owl-bot-staging/java-asset/v1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceCallableFactory.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java (99%) rename {java-asset => owl-bot-staging/java-asset/v1}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientHttpJsonTest.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientTest.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetService.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetServiceImpl.java (100%) create mode 100644 owl-bot-staging/java-asset/v1/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadata.java (56%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadataOrBuilder.java (53%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequest.java (62%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequestOrBuilder.java (66%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponse.java (53%) create mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponseOrBuilder.java rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequest.java (67%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequestOrBuilder.java (74%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponse.java (65%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponseOrBuilder.java (54%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequest.java (70%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequestOrBuilder.java (77%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponse.java (70%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponseOrBuilder.java (69%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java (76%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetOrBuilder.java (89%) create mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java create mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResource.java (74%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResourceOrBuilder.java (76%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java (73%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequestOrBuilder.java (82%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponse.java (67%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponseOrBuilder.java (62%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequest.java (65%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequestOrBuilder.java (67%) create mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponse.java create mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponseOrBuilder.java rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java (80%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestinationOrBuilder.java (90%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluation.java (63%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluationOrBuilder.java (55%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ContentType.java (70%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java (68%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java (72%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequest.java (56%) create mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequestOrBuilder.java rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequest.java (58%) create mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequestOrBuilder.java rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequest.java (59%) create mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequestOrBuilder.java rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java (77%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java (86%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java (69%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponseOrBuilder.java (81%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java (79%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedName.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java (89%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java (63%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfigOrBuilder.java (61%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FolderName.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestination.java (73%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestinationOrBuilder.java (84%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResult.java (63%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResultOrBuilder.java (62%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java (59%) create mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequestOrBuilder.java rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequest.java (60%) create mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequestOrBuilder.java rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfig.java (60%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfigOrBuilder.java (50%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQuery.java (64%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQueryOrBuilder.java (57%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResult.java (66%) create mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResultOrBuilder.java rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisState.java (66%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisStateOrBuilder.java (67%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java (70%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResultOrBuilder.java (89%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequest.java (77%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequestOrBuilder.java (85%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponse.java (69%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponseOrBuilder.java (69%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequest.java (63%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequestOrBuilder.java (59%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponse.java (65%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponseOrBuilder.java (55%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequest.java (67%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequestOrBuilder.java (67%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponse.java (68%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponseOrBuilder.java (67%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysis.java (67%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisOrBuilder.java (73%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResult.java (75%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResultOrBuilder.java (79%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpact.java (60%) create mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpactOrBuilder.java rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OrganizationName.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfig.java (67%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfigOrBuilder.java (74%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResult.java (63%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResultOrBuilder.java (60%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpec.java (65%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpecOrBuilder.java (55%) create mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ProjectName.java rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java (61%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestinationOrBuilder.java (50%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfig.java (62%) create mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfigOrBuilder.java rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequest.java (66%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequestOrBuilder.java (68%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponse.java (69%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponseOrBuilder.java (79%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResult.java (68%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResultOrBuilder.java (71%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAsset.java (73%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetOrBuilder.java (80%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssets.java (68%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetsOrBuilder.java (71%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResource.java (64%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourceOrBuilder.java (60%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResources.java (68%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourcesOrBuilder.java (64%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributes.java (67%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributesOrBuilder.java (65%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java (74%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java (82%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResult.java (73%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResultOrBuilder.java (76%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQuery.java (63%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryName.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryOrBuilder.java (73%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequest.java (76%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequestOrBuilder.java (81%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponse.java (70%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponseOrBuilder.java (75%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequest.java (75%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequestOrBuilder.java (79%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponse.java (70%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponseOrBuilder.java (74%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchema.java (72%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchemaOrBuilder.java (76%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchema.java (67%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchemaOrBuilder.java (61%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java (69%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAssetOrBuilder.java (80%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java (66%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindowOrBuilder.java (70%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java (66%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java (71%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequest.java (63%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequestOrBuilder.java (65%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResource.java (72%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResourceOrBuilder.java (80%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto (84%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto (88%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AsyncAnalyzeIamPolicy.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/SyncAnalyzeIamPolicy.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AsyncAnalyzeMove.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzemove/SyncAnalyzeMove.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/AsyncBatchGetAssetsHistory.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/SyncBatchGetAssetsHistory.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgeteffectiveiampolicies/AsyncBatchGetEffectiveIamPolicies.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgeteffectiveiampolicies/SyncBatchGetEffectiveIamPolicies.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/AsyncCreateFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeedString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/AsyncCreateSavedQuery.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQuery.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryFoldernameSavedqueryString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryOrganizationnameSavedqueryString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryProjectnameSavedqueryString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryStringSavedqueryString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/AsyncDeleteFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/AsyncDeleteSavedQuery.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQuery.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQuerySavedqueryname.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQueryString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssets.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssetsLRO.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/SyncExportAssets.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/AsyncGetFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedFeedname.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/AsyncGetSavedQuery.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQuery.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQuerySavedqueryname.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQueryString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssets.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssetsPaged.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssets.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsResourcename.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/AsyncListFeeds.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeeds.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeedsString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/AsyncListSavedQueries.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/AsyncListSavedQueriesPaged.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueries.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesFoldername.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesOrganizationname.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesProjectname.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/queryassets/AsyncQueryAssets.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/queryassets/SyncQueryAssets.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPolicies.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResources.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResources.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/AsyncUpdateFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/AsyncUpdateSavedQuery.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/SyncUpdateSavedQuery.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/SyncUpdateSavedQuerySavedqueryFieldmask.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceClient.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceSettings.java (99%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/gapic_metadata.json (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/package-info.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStub.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStubSettings.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/GrpcAssetServiceCallableFactory.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/GrpcAssetServiceStub.java (99%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/HttpJsonAssetServiceCallableFactory.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/HttpJsonAssetServiceStub.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/AssetServiceClientHttpJsonTest.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/AssetServiceClientTest.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/MockAssetService.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/MockAssetServiceImpl.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/grpc-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceGrpc.java (51%) create mode 100644 owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetProto.java create mode 100644 owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceProto.java rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResult.java (68%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResultOrBuilder.java (82%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/Permissions.java (63%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/PermissionsOrBuilder.java (61%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequest.java (71%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequestOrBuilder.java (78%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponse.java (71%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponseOrBuilder.java (75%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequest.java (74%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequestOrBuilder.java (82%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponse.java (69%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponseOrBuilder.java (72%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadata.java (71%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadataOrBuilder.java (81%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/asset_service.proto (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/assets.proto (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPolicies.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/AsyncSearchAllResources.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/SyncSearchAllResources.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservicesettings/searchallresources/SyncSearchAllResources.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/stub/assetservicestubsettings/searchallresources/SyncSearchAllResources.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceClient.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceSettings.java (99%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/gapic_metadata.json (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/package-info.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStub.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStubSettings.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceCallableFactory.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceStub.java (99%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/HttpJsonAssetServiceCallableFactory.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/HttpJsonAssetServiceStub.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/AssetServiceClientHttpJsonTest.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/AssetServiceClientTest.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/MockAssetService.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/MockAssetServiceImpl.java (100%) create mode 100644 owl-bot-staging/java-asset/v1p2beta1/grpc-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceGrpc.java rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Asset.java (72%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetOrBuilder.java (83%) create mode 100644 owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetProto.java create mode 100644 owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceProto.java rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ContentType.java (66%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequest.java (69%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequestOrBuilder.java (76%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequest.java (58%) create mode 100644 owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequestOrBuilder.java rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Feed.java (73%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedName.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOrBuilder.java (83%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfig.java (62%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfigOrBuilder.java (63%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestination.java (65%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestinationOrBuilder.java (68%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequest.java (59%) create mode 100644 owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequestOrBuilder.java rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequest.java (63%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequestOrBuilder.java (60%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponse.java (66%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponseOrBuilder.java (59%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfig.java (63%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfigOrBuilder.java (62%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestination.java (61%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestinationOrBuilder.java (51%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Resource.java (73%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ResourceOrBuilder.java (81%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAsset.java (64%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAssetOrBuilder.java (70%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindow.java (65%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindowOrBuilder.java (70%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequest.java (66%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequestOrBuilder.java (73%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/proto/google/cloud/asset/v1p2beta1/asset_service.proto (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/proto-google-cloud-asset-v1p2beta1/src/main/proto/google/cloud/asset/v1p2beta1/assets.proto (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/AsyncCreateFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/SyncCreateFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/SyncCreateFeedString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/AsyncDeleteFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeedString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/AsyncGetFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeedFeedname.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeedString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/AsyncListFeeds.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/SyncListFeeds.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/SyncListFeedsString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/AsyncUpdateFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/SyncUpdateFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservicesettings/createfeed/SyncCreateFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/stub/assetservicestubsettings/createfeed/SyncCreateFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceClient.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceSettings.java (99%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/gapic_metadata.json (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/package-info.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStub.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStubSettings.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/GrpcAssetServiceCallableFactory.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/GrpcAssetServiceStub.java (99%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/HttpJsonAssetServiceCallableFactory.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/HttpJsonAssetServiceStub.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/AssetServiceClientHttpJsonTest.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/AssetServiceClientTest.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/MockAssetService.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/MockAssetServiceImpl.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/grpc-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceGrpc.java (50%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Asset.java (71%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetOrBuilder.java (84%) create mode 100644 owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetProto.java create mode 100644 owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceProto.java rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ContentType.java (69%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequest.java (75%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequestOrBuilder.java (85%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponse.java (69%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponseOrBuilder.java (71%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Resource.java (73%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ResourceOrBuilder.java (81%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/proto-google-cloud-asset-v1p5beta1/src/main/proto/google/cloud/asset/v1p5beta1/asset_service.proto (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/proto-google-cloud-asset-v1p5beta1/src/main/proto/google/cloud/asset/v1p5beta1/assets.proto (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/AsyncListAssets.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/AsyncListAssetsPaged.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/SyncListAssets.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservicesettings/listassets/SyncListAssets.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/stub/assetservicestubsettings/listassets/SyncListAssets.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceClient.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceSettings.java (99%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/gapic_metadata.json (100%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/package-info.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStub.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStubSettings.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/GrpcAssetServiceCallableFactory.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/GrpcAssetServiceStub.java (99%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/AssetServiceClientTest.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/MockAssetService.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/MockAssetServiceImpl.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/grpc-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceGrpc.java (60%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Asset.java (76%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetOrBuilder.java (90%) create mode 100644 owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetProto.java create mode 100644 owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceProto.java rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestination.java (79%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestinationOrBuilder.java (89%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ContentType.java (70%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequest.java (76%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequestOrBuilder.java (86%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponse.java (69%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponseOrBuilder.java (81%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestination.java (72%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestinationOrBuilder.java (82%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResult.java (63%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResultOrBuilder.java (62%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfig.java (65%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfigOrBuilder.java (75%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResult.java (63%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResultOrBuilder.java (61%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpec.java (64%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpecOrBuilder.java (56%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAsset.java (73%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetOrBuilder.java (80%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssets.java (67%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetsOrBuilder.java (72%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributes.java (67%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributesOrBuilder.java (66%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Resource.java (74%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ResourceOrBuilder.java (82%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/proto/google/cloud/asset/v1p7beta1/asset_service.proto (100%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/proto-google-cloud-asset-v1p7beta1/src/main/proto/google/cloud/asset/v1p7beta1/assets.proto (100%) diff --git a/java-asset/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java b/java-asset/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java deleted file mode 100644 index 5d600a2f3dd9..000000000000 --- a/java-asset/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java +++ /dev/null @@ -1,2730 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.asset.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Asset service definition.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/asset/v1/asset_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AssetServiceGrpc { - - private AssetServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.asset.v1.AssetService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.ExportAssetsRequest, com.google.longrunning.Operation> - getExportAssetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExportAssets", - requestType = com.google.cloud.asset.v1.ExportAssetsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.ExportAssetsRequest, com.google.longrunning.Operation> - getExportAssetsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.ExportAssetsRequest, com.google.longrunning.Operation> - getExportAssetsMethod; - if ((getExportAssetsMethod = AssetServiceGrpc.getExportAssetsMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getExportAssetsMethod = AssetServiceGrpc.getExportAssetsMethod) == null) { - AssetServiceGrpc.getExportAssetsMethod = - getExportAssetsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportAssets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.ExportAssetsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ExportAssets")) - .build(); - } - } - } - return getExportAssetsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.ListAssetsRequest, com.google.cloud.asset.v1.ListAssetsResponse> - getListAssetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAssets", - requestType = com.google.cloud.asset.v1.ListAssetsRequest.class, - responseType = com.google.cloud.asset.v1.ListAssetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.ListAssetsRequest, com.google.cloud.asset.v1.ListAssetsResponse> - getListAssetsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.ListAssetsRequest, - com.google.cloud.asset.v1.ListAssetsResponse> - getListAssetsMethod; - if ((getListAssetsMethod = AssetServiceGrpc.getListAssetsMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getListAssetsMethod = AssetServiceGrpc.getListAssetsMethod) == null) { - AssetServiceGrpc.getListAssetsMethod = - getListAssetsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAssets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.ListAssetsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.ListAssetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ListAssets")) - .build(); - } - } - } - return getListAssetsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest, - com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse> - getBatchGetAssetsHistoryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchGetAssetsHistory", - requestType = com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.class, - responseType = com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest, - com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse> - getBatchGetAssetsHistoryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest, - com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse> - getBatchGetAssetsHistoryMethod; - if ((getBatchGetAssetsHistoryMethod = AssetServiceGrpc.getBatchGetAssetsHistoryMethod) - == null) { - synchronized (AssetServiceGrpc.class) { - if ((getBatchGetAssetsHistoryMethod = AssetServiceGrpc.getBatchGetAssetsHistoryMethod) - == null) { - AssetServiceGrpc.getBatchGetAssetsHistoryMethod = - getBatchGetAssetsHistoryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchGetAssetsHistory")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AssetServiceMethodDescriptorSupplier("BatchGetAssetsHistory")) - .build(); - } - } - } - return getBatchGetAssetsHistoryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.CreateFeedRequest, com.google.cloud.asset.v1.Feed> - getCreateFeedMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFeed", - requestType = com.google.cloud.asset.v1.CreateFeedRequest.class, - responseType = com.google.cloud.asset.v1.Feed.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.CreateFeedRequest, com.google.cloud.asset.v1.Feed> - getCreateFeedMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.CreateFeedRequest, com.google.cloud.asset.v1.Feed> - getCreateFeedMethod; - if ((getCreateFeedMethod = AssetServiceGrpc.getCreateFeedMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getCreateFeedMethod = AssetServiceGrpc.getCreateFeedMethod) == null) { - AssetServiceGrpc.getCreateFeedMethod = - getCreateFeedMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFeed")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.CreateFeedRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.Feed.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("CreateFeed")) - .build(); - } - } - } - return getCreateFeedMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.GetFeedRequest, com.google.cloud.asset.v1.Feed> - getGetFeedMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFeed", - requestType = com.google.cloud.asset.v1.GetFeedRequest.class, - responseType = com.google.cloud.asset.v1.Feed.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.GetFeedRequest, com.google.cloud.asset.v1.Feed> - getGetFeedMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.GetFeedRequest, com.google.cloud.asset.v1.Feed> - getGetFeedMethod; - if ((getGetFeedMethod = AssetServiceGrpc.getGetFeedMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getGetFeedMethod = AssetServiceGrpc.getGetFeedMethod) == null) { - AssetServiceGrpc.getGetFeedMethod = - getGetFeedMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFeed")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.GetFeedRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.Feed.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("GetFeed")) - .build(); - } - } - } - return getGetFeedMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.ListFeedsRequest, com.google.cloud.asset.v1.ListFeedsResponse> - getListFeedsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFeeds", - requestType = com.google.cloud.asset.v1.ListFeedsRequest.class, - responseType = com.google.cloud.asset.v1.ListFeedsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.ListFeedsRequest, com.google.cloud.asset.v1.ListFeedsResponse> - getListFeedsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.ListFeedsRequest, com.google.cloud.asset.v1.ListFeedsResponse> - getListFeedsMethod; - if ((getListFeedsMethod = AssetServiceGrpc.getListFeedsMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getListFeedsMethod = AssetServiceGrpc.getListFeedsMethod) == null) { - AssetServiceGrpc.getListFeedsMethod = - getListFeedsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFeeds")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.ListFeedsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.ListFeedsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ListFeeds")) - .build(); - } - } - } - return getListFeedsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.UpdateFeedRequest, com.google.cloud.asset.v1.Feed> - getUpdateFeedMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFeed", - requestType = com.google.cloud.asset.v1.UpdateFeedRequest.class, - responseType = com.google.cloud.asset.v1.Feed.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.UpdateFeedRequest, com.google.cloud.asset.v1.Feed> - getUpdateFeedMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.UpdateFeedRequest, com.google.cloud.asset.v1.Feed> - getUpdateFeedMethod; - if ((getUpdateFeedMethod = AssetServiceGrpc.getUpdateFeedMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getUpdateFeedMethod = AssetServiceGrpc.getUpdateFeedMethod) == null) { - AssetServiceGrpc.getUpdateFeedMethod = - getUpdateFeedMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFeed")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.UpdateFeedRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.Feed.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("UpdateFeed")) - .build(); - } - } - } - return getUpdateFeedMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.DeleteFeedRequest, com.google.protobuf.Empty> - getDeleteFeedMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteFeed", - requestType = com.google.cloud.asset.v1.DeleteFeedRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.DeleteFeedRequest, com.google.protobuf.Empty> - getDeleteFeedMethod() { - io.grpc.MethodDescriptor - getDeleteFeedMethod; - if ((getDeleteFeedMethod = AssetServiceGrpc.getDeleteFeedMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getDeleteFeedMethod = AssetServiceGrpc.getDeleteFeedMethod) == null) { - AssetServiceGrpc.getDeleteFeedMethod = - getDeleteFeedMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFeed")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.DeleteFeedRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("DeleteFeed")) - .build(); - } - } - } - return getDeleteFeedMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.SearchAllResourcesRequest, - com.google.cloud.asset.v1.SearchAllResourcesResponse> - getSearchAllResourcesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SearchAllResources", - requestType = com.google.cloud.asset.v1.SearchAllResourcesRequest.class, - responseType = com.google.cloud.asset.v1.SearchAllResourcesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.SearchAllResourcesRequest, - com.google.cloud.asset.v1.SearchAllResourcesResponse> - getSearchAllResourcesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.SearchAllResourcesRequest, - com.google.cloud.asset.v1.SearchAllResourcesResponse> - getSearchAllResourcesMethod; - if ((getSearchAllResourcesMethod = AssetServiceGrpc.getSearchAllResourcesMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getSearchAllResourcesMethod = AssetServiceGrpc.getSearchAllResourcesMethod) == null) { - AssetServiceGrpc.getSearchAllResourcesMethod = - getSearchAllResourcesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchAllResources")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.SearchAllResourcesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.SearchAllResourcesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AssetServiceMethodDescriptorSupplier("SearchAllResources")) - .build(); - } - } - } - return getSearchAllResourcesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.SearchAllIamPoliciesRequest, - com.google.cloud.asset.v1.SearchAllIamPoliciesResponse> - getSearchAllIamPoliciesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SearchAllIamPolicies", - requestType = com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.class, - responseType = com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.SearchAllIamPoliciesRequest, - com.google.cloud.asset.v1.SearchAllIamPoliciesResponse> - getSearchAllIamPoliciesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.SearchAllIamPoliciesRequest, - com.google.cloud.asset.v1.SearchAllIamPoliciesResponse> - getSearchAllIamPoliciesMethod; - if ((getSearchAllIamPoliciesMethod = AssetServiceGrpc.getSearchAllIamPoliciesMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getSearchAllIamPoliciesMethod = AssetServiceGrpc.getSearchAllIamPoliciesMethod) - == null) { - AssetServiceGrpc.getSearchAllIamPoliciesMethod = - getSearchAllIamPoliciesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "SearchAllIamPolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.SearchAllIamPoliciesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.SearchAllIamPoliciesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AssetServiceMethodDescriptorSupplier("SearchAllIamPolicies")) - .build(); - } - } - } - return getSearchAllIamPoliciesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.AnalyzeIamPolicyRequest, - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse> - getAnalyzeIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AnalyzeIamPolicy", - requestType = com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.class, - responseType = com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.AnalyzeIamPolicyRequest, - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse> - getAnalyzeIamPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.AnalyzeIamPolicyRequest, - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse> - getAnalyzeIamPolicyMethod; - if ((getAnalyzeIamPolicyMethod = AssetServiceGrpc.getAnalyzeIamPolicyMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getAnalyzeIamPolicyMethod = AssetServiceGrpc.getAnalyzeIamPolicyMethod) == null) { - AssetServiceGrpc.getAnalyzeIamPolicyMethod = - getAnalyzeIamPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnalyzeIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.AnalyzeIamPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AssetServiceMethodDescriptorSupplier("AnalyzeIamPolicy")) - .build(); - } - } - } - return getAnalyzeIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest, - com.google.longrunning.Operation> - getAnalyzeIamPolicyLongrunningMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AnalyzeIamPolicyLongrunning", - requestType = com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest, - com.google.longrunning.Operation> - getAnalyzeIamPolicyLongrunningMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest, - com.google.longrunning.Operation> - getAnalyzeIamPolicyLongrunningMethod; - if ((getAnalyzeIamPolicyLongrunningMethod = - AssetServiceGrpc.getAnalyzeIamPolicyLongrunningMethod) - == null) { - synchronized (AssetServiceGrpc.class) { - if ((getAnalyzeIamPolicyLongrunningMethod = - AssetServiceGrpc.getAnalyzeIamPolicyLongrunningMethod) - == null) { - AssetServiceGrpc.getAnalyzeIamPolicyLongrunningMethod = - getAnalyzeIamPolicyLongrunningMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "AnalyzeIamPolicyLongrunning")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new AssetServiceMethodDescriptorSupplier("AnalyzeIamPolicyLongrunning")) - .build(); - } - } - } - return getAnalyzeIamPolicyLongrunningMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.AnalyzeMoveRequest, - com.google.cloud.asset.v1.AnalyzeMoveResponse> - getAnalyzeMoveMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AnalyzeMove", - requestType = com.google.cloud.asset.v1.AnalyzeMoveRequest.class, - responseType = com.google.cloud.asset.v1.AnalyzeMoveResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.AnalyzeMoveRequest, - com.google.cloud.asset.v1.AnalyzeMoveResponse> - getAnalyzeMoveMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.AnalyzeMoveRequest, - com.google.cloud.asset.v1.AnalyzeMoveResponse> - getAnalyzeMoveMethod; - if ((getAnalyzeMoveMethod = AssetServiceGrpc.getAnalyzeMoveMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getAnalyzeMoveMethod = AssetServiceGrpc.getAnalyzeMoveMethod) == null) { - AssetServiceGrpc.getAnalyzeMoveMethod = - getAnalyzeMoveMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnalyzeMove")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.AnalyzeMoveRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.AnalyzeMoveResponse.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("AnalyzeMove")) - .build(); - } - } - } - return getAnalyzeMoveMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.QueryAssetsRequest, - com.google.cloud.asset.v1.QueryAssetsResponse> - getQueryAssetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "QueryAssets", - requestType = com.google.cloud.asset.v1.QueryAssetsRequest.class, - responseType = com.google.cloud.asset.v1.QueryAssetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.QueryAssetsRequest, - com.google.cloud.asset.v1.QueryAssetsResponse> - getQueryAssetsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.QueryAssetsRequest, - com.google.cloud.asset.v1.QueryAssetsResponse> - getQueryAssetsMethod; - if ((getQueryAssetsMethod = AssetServiceGrpc.getQueryAssetsMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getQueryAssetsMethod = AssetServiceGrpc.getQueryAssetsMethod) == null) { - AssetServiceGrpc.getQueryAssetsMethod = - getQueryAssetsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryAssets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.QueryAssetsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.QueryAssetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("QueryAssets")) - .build(); - } - } - } - return getQueryAssetsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.CreateSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery> - getCreateSavedQueryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSavedQuery", - requestType = com.google.cloud.asset.v1.CreateSavedQueryRequest.class, - responseType = com.google.cloud.asset.v1.SavedQuery.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.CreateSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery> - getCreateSavedQueryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.CreateSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery> - getCreateSavedQueryMethod; - if ((getCreateSavedQueryMethod = AssetServiceGrpc.getCreateSavedQueryMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getCreateSavedQueryMethod = AssetServiceGrpc.getCreateSavedQueryMethod) == null) { - AssetServiceGrpc.getCreateSavedQueryMethod = - getCreateSavedQueryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSavedQuery")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.CreateSavedQueryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.SavedQuery.getDefaultInstance())) - .setSchemaDescriptor( - new AssetServiceMethodDescriptorSupplier("CreateSavedQuery")) - .build(); - } - } - } - return getCreateSavedQueryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.GetSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery> - getGetSavedQueryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSavedQuery", - requestType = com.google.cloud.asset.v1.GetSavedQueryRequest.class, - responseType = com.google.cloud.asset.v1.SavedQuery.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.GetSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery> - getGetSavedQueryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.GetSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery> - getGetSavedQueryMethod; - if ((getGetSavedQueryMethod = AssetServiceGrpc.getGetSavedQueryMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getGetSavedQueryMethod = AssetServiceGrpc.getGetSavedQueryMethod) == null) { - AssetServiceGrpc.getGetSavedQueryMethod = - getGetSavedQueryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSavedQuery")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.GetSavedQueryRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.SavedQuery.getDefaultInstance())) - .setSchemaDescriptor( - new AssetServiceMethodDescriptorSupplier("GetSavedQuery")) - .build(); - } - } - } - return getGetSavedQueryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.ListSavedQueriesRequest, - com.google.cloud.asset.v1.ListSavedQueriesResponse> - getListSavedQueriesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSavedQueries", - requestType = com.google.cloud.asset.v1.ListSavedQueriesRequest.class, - responseType = com.google.cloud.asset.v1.ListSavedQueriesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.ListSavedQueriesRequest, - com.google.cloud.asset.v1.ListSavedQueriesResponse> - getListSavedQueriesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.ListSavedQueriesRequest, - com.google.cloud.asset.v1.ListSavedQueriesResponse> - getListSavedQueriesMethod; - if ((getListSavedQueriesMethod = AssetServiceGrpc.getListSavedQueriesMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getListSavedQueriesMethod = AssetServiceGrpc.getListSavedQueriesMethod) == null) { - AssetServiceGrpc.getListSavedQueriesMethod = - getListSavedQueriesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSavedQueries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.ListSavedQueriesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.ListSavedQueriesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AssetServiceMethodDescriptorSupplier("ListSavedQueries")) - .build(); - } - } - } - return getListSavedQueriesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.UpdateSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery> - getUpdateSavedQueryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSavedQuery", - requestType = com.google.cloud.asset.v1.UpdateSavedQueryRequest.class, - responseType = com.google.cloud.asset.v1.SavedQuery.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.UpdateSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery> - getUpdateSavedQueryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.UpdateSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery> - getUpdateSavedQueryMethod; - if ((getUpdateSavedQueryMethod = AssetServiceGrpc.getUpdateSavedQueryMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getUpdateSavedQueryMethod = AssetServiceGrpc.getUpdateSavedQueryMethod) == null) { - AssetServiceGrpc.getUpdateSavedQueryMethod = - getUpdateSavedQueryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSavedQuery")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.UpdateSavedQueryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.SavedQuery.getDefaultInstance())) - .setSchemaDescriptor( - new AssetServiceMethodDescriptorSupplier("UpdateSavedQuery")) - .build(); - } - } - } - return getUpdateSavedQueryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.DeleteSavedQueryRequest, com.google.protobuf.Empty> - getDeleteSavedQueryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSavedQuery", - requestType = com.google.cloud.asset.v1.DeleteSavedQueryRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.DeleteSavedQueryRequest, com.google.protobuf.Empty> - getDeleteSavedQueryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.DeleteSavedQueryRequest, com.google.protobuf.Empty> - getDeleteSavedQueryMethod; - if ((getDeleteSavedQueryMethod = AssetServiceGrpc.getDeleteSavedQueryMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getDeleteSavedQueryMethod = AssetServiceGrpc.getDeleteSavedQueryMethod) == null) { - AssetServiceGrpc.getDeleteSavedQueryMethod = - getDeleteSavedQueryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSavedQuery")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.DeleteSavedQueryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AssetServiceMethodDescriptorSupplier("DeleteSavedQuery")) - .build(); - } - } - } - return getDeleteSavedQueryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse> - getBatchGetEffectiveIamPoliciesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchGetEffectiveIamPolicies", - requestType = com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.class, - responseType = com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse> - getBatchGetEffectiveIamPoliciesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse> - getBatchGetEffectiveIamPoliciesMethod; - if ((getBatchGetEffectiveIamPoliciesMethod = - AssetServiceGrpc.getBatchGetEffectiveIamPoliciesMethod) - == null) { - synchronized (AssetServiceGrpc.class) { - if ((getBatchGetEffectiveIamPoliciesMethod = - AssetServiceGrpc.getBatchGetEffectiveIamPoliciesMethod) - == null) { - AssetServiceGrpc.getBatchGetEffectiveIamPoliciesMethod = - getBatchGetEffectiveIamPoliciesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchGetEffectiveIamPolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AssetServiceMethodDescriptorSupplier("BatchGetEffectiveIamPolicies")) - .build(); - } - } - } - return getBatchGetEffectiveIamPoliciesMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static AssetServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceStub(channel, callOptions); - } - }; - return AssetServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AssetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceBlockingStub(channel, callOptions); - } - }; - return AssetServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AssetServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceFutureStub(channel, callOptions); - } - }; - return AssetServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Asset service definition.
-   * 
- */ - public abstract static class AssetServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Exports assets with time and resource types to a given Cloud Storage
-     * location/BigQuery table. For Cloud Storage location destinations, the
-     * output format is newline-delimited JSON. Each line represents a
-     * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON
-     * format; for BigQuery table destinations, the output table stores the fields
-     * in asset Protobuf as columns. This API implements the
-     * [google.longrunning.Operation][google.longrunning.Operation] API, which
-     * allows you to keep track of the export. We recommend intervals of at least
-     * 2 seconds with exponential retry to poll the export operation result. For
-     * regular-size resource parent, the export operation usually finishes within
-     * 5 minutes.
-     * 
- */ - public void exportAssets( - com.google.cloud.asset.v1.ExportAssetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getExportAssetsMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists assets with time and resource types and returns paged results in
-     * response.
-     * 
- */ - public void listAssets( - com.google.cloud.asset.v1.ListAssetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAssetsMethod(), responseObserver); - } - - /** - * - * - *
-     * Batch gets the update history of assets that overlap a time window.
-     * For IAM_POLICY content, this API outputs history when the asset and its
-     * attached IAM POLICY both exist. This can create gaps in the output history.
-     * Otherwise, this API outputs history with asset in both non-delete or
-     * deleted status.
-     * If a specified asset does not exist, this API returns an INVALID_ARGUMENT
-     * error.
-     * 
- */ - public void batchGetAssetsHistory( - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchGetAssetsHistoryMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a feed in a parent project/folder/organization to listen to its
-     * asset updates.
-     * 
- */ - public void createFeed( - com.google.cloud.asset.v1.CreateFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFeedMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details about an asset feed.
-     * 
- */ - public void getFeed( - com.google.cloud.asset.v1.GetFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeedMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all asset feeds in a parent project/folder/organization.
-     * 
- */ - public void listFeeds( - com.google.cloud.asset.v1.ListFeedsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFeedsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an asset feed configuration.
-     * 
- */ - public void updateFeed( - com.google.cloud.asset.v1.UpdateFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFeedMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an asset feed.
-     * 
- */ - public void deleteFeed( - com.google.cloud.asset.v1.DeleteFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFeedMethod(), responseObserver); - } - - /** - * - * - *
-     * Searches all Cloud resources within the specified scope, such as a project,
-     * folder, or organization. The caller must be granted the
-     * `cloudasset.assets.searchAllResources` permission on the desired scope,
-     * otherwise the request will be rejected.
-     * 
- */ - public void searchAllResources( - com.google.cloud.asset.v1.SearchAllResourcesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSearchAllResourcesMethod(), responseObserver); - } - - /** - * - * - *
-     * Searches all IAM policies within the specified scope, such as a project,
-     * folder, or organization. The caller must be granted the
-     * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
-     * otherwise the request will be rejected.
-     * 
- */ - public void searchAllIamPolicies( - com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSearchAllIamPoliciesMethod(), responseObserver); - } - - /** - * - * - *
-     * Analyzes IAM policies to answer which identities have what accesses on
-     * which resources.
-     * 
- */ - public void analyzeIamPolicy( - com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAnalyzeIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Analyzes IAM policies asynchronously to answer which identities have what
-     * accesses on which resources, and writes the analysis results to a Google
-     * Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
-     * output format is the JSON format that represents a
-     * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse].
-     * This method implements the
-     * [google.longrunning.Operation][google.longrunning.Operation], which allows
-     * you to track the operation status. We recommend intervals of at least 2
-     * seconds with exponential backoff retry to poll the operation result. The
-     * metadata contains the metadata for the long-running operation.
-     * 
- */ - public void analyzeIamPolicyLongrunning( - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAnalyzeIamPolicyLongrunningMethod(), responseObserver); - } - - /** - * - * - *
-     * Analyze moving a resource to a specified destination without kicking off
-     * the actual move. The analysis is best effort depending on the user's
-     * permissions of viewing different hierarchical policies and configurations.
-     * The policies and configuration are subject to change before the actual
-     * resource migration takes place.
-     * 
- */ - public void analyzeMove( - com.google.cloud.asset.v1.AnalyzeMoveRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAnalyzeMoveMethod(), responseObserver); - } - - /** - * - * - *
-     * Issue a job that queries assets using a SQL statement compatible with
-     * [BigQuery Standard
-     * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
-     * If the query execution finishes within timeout and there's no pagination,
-     * the full query results will be returned in the `QueryAssetsResponse`.
-     * Otherwise, full query results can be obtained by issuing extra requests
-     * with the `job_reference` from the a previous `QueryAssets` call.
-     * Note, the query result has approximately 10 GB limitation enforced by
-     * BigQuery
-     * https://cloud.google.com/bigquery/docs/best-practices-performance-output,
-     * queries return larger results will result in errors.
-     * 
- */ - public void queryAssets( - com.google.cloud.asset.v1.QueryAssetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getQueryAssetsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a saved query in a parent project/folder/organization.
-     * 
- */ - public void createSavedQuery( - com.google.cloud.asset.v1.CreateSavedQueryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSavedQueryMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details about a saved query.
-     * 
- */ - public void getSavedQuery( - com.google.cloud.asset.v1.GetSavedQueryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetSavedQueryMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all saved queries in a parent project/folder/organization.
-     * 
- */ - public void listSavedQueries( - com.google.cloud.asset.v1.ListSavedQueriesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSavedQueriesMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a saved query.
-     * 
- */ - public void updateSavedQuery( - com.google.cloud.asset.v1.UpdateSavedQueryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSavedQueryMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a saved query.
-     * 
- */ - public void deleteSavedQuery( - com.google.cloud.asset.v1.DeleteSavedQueryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSavedQueryMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets effective IAM policies for a batch of resources.
-     * 
- */ - public void batchGetEffectiveIamPolicies( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchGetEffectiveIamPoliciesMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getExportAssetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.ExportAssetsRequest, - com.google.longrunning.Operation>(this, METHODID_EXPORT_ASSETS))) - .addMethod( - getListAssetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.ListAssetsRequest, - com.google.cloud.asset.v1.ListAssetsResponse>(this, METHODID_LIST_ASSETS))) - .addMethod( - getBatchGetAssetsHistoryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest, - com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse>( - this, METHODID_BATCH_GET_ASSETS_HISTORY))) - .addMethod( - getCreateFeedMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.CreateFeedRequest, com.google.cloud.asset.v1.Feed>( - this, METHODID_CREATE_FEED))) - .addMethod( - getGetFeedMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.GetFeedRequest, com.google.cloud.asset.v1.Feed>( - this, METHODID_GET_FEED))) - .addMethod( - getListFeedsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.ListFeedsRequest, - com.google.cloud.asset.v1.ListFeedsResponse>(this, METHODID_LIST_FEEDS))) - .addMethod( - getUpdateFeedMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.UpdateFeedRequest, com.google.cloud.asset.v1.Feed>( - this, METHODID_UPDATE_FEED))) - .addMethod( - getDeleteFeedMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.DeleteFeedRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_FEED))) - .addMethod( - getSearchAllResourcesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.SearchAllResourcesRequest, - com.google.cloud.asset.v1.SearchAllResourcesResponse>( - this, METHODID_SEARCH_ALL_RESOURCES))) - .addMethod( - getSearchAllIamPoliciesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.SearchAllIamPoliciesRequest, - com.google.cloud.asset.v1.SearchAllIamPoliciesResponse>( - this, METHODID_SEARCH_ALL_IAM_POLICIES))) - .addMethod( - getAnalyzeIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.AnalyzeIamPolicyRequest, - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse>( - this, METHODID_ANALYZE_IAM_POLICY))) - .addMethod( - getAnalyzeIamPolicyLongrunningMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest, - com.google.longrunning.Operation>( - this, METHODID_ANALYZE_IAM_POLICY_LONGRUNNING))) - .addMethod( - getAnalyzeMoveMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.AnalyzeMoveRequest, - com.google.cloud.asset.v1.AnalyzeMoveResponse>(this, METHODID_ANALYZE_MOVE))) - .addMethod( - getQueryAssetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.QueryAssetsRequest, - com.google.cloud.asset.v1.QueryAssetsResponse>(this, METHODID_QUERY_ASSETS))) - .addMethod( - getCreateSavedQueryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.CreateSavedQueryRequest, - com.google.cloud.asset.v1.SavedQuery>(this, METHODID_CREATE_SAVED_QUERY))) - .addMethod( - getGetSavedQueryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.GetSavedQueryRequest, - com.google.cloud.asset.v1.SavedQuery>(this, METHODID_GET_SAVED_QUERY))) - .addMethod( - getListSavedQueriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.ListSavedQueriesRequest, - com.google.cloud.asset.v1.ListSavedQueriesResponse>( - this, METHODID_LIST_SAVED_QUERIES))) - .addMethod( - getUpdateSavedQueryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.UpdateSavedQueryRequest, - com.google.cloud.asset.v1.SavedQuery>(this, METHODID_UPDATE_SAVED_QUERY))) - .addMethod( - getDeleteSavedQueryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.DeleteSavedQueryRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_SAVED_QUERY))) - .addMethod( - getBatchGetEffectiveIamPoliciesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse>( - this, METHODID_BATCH_GET_EFFECTIVE_IAM_POLICIES))) - .build(); - } - } - - /** - * - * - *
-   * Asset service definition.
-   * 
- */ - public static final class AssetServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private AssetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Exports assets with time and resource types to a given Cloud Storage
-     * location/BigQuery table. For Cloud Storage location destinations, the
-     * output format is newline-delimited JSON. Each line represents a
-     * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON
-     * format; for BigQuery table destinations, the output table stores the fields
-     * in asset Protobuf as columns. This API implements the
-     * [google.longrunning.Operation][google.longrunning.Operation] API, which
-     * allows you to keep track of the export. We recommend intervals of at least
-     * 2 seconds with exponential retry to poll the export operation result. For
-     * regular-size resource parent, the export operation usually finishes within
-     * 5 minutes.
-     * 
- */ - public void exportAssets( - com.google.cloud.asset.v1.ExportAssetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportAssetsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists assets with time and resource types and returns paged results in
-     * response.
-     * 
- */ - public void listAssets( - com.google.cloud.asset.v1.ListAssetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAssetsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Batch gets the update history of assets that overlap a time window.
-     * For IAM_POLICY content, this API outputs history when the asset and its
-     * attached IAM POLICY both exist. This can create gaps in the output history.
-     * Otherwise, this API outputs history with asset in both non-delete or
-     * deleted status.
-     * If a specified asset does not exist, this API returns an INVALID_ARGUMENT
-     * error.
-     * 
- */ - public void batchGetAssetsHistory( - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchGetAssetsHistoryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a feed in a parent project/folder/organization to listen to its
-     * asset updates.
-     * 
- */ - public void createFeed( - com.google.cloud.asset.v1.CreateFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFeedMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets details about an asset feed.
-     * 
- */ - public void getFeed( - com.google.cloud.asset.v1.GetFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFeedMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists all asset feeds in a parent project/folder/organization.
-     * 
- */ - public void listFeeds( - com.google.cloud.asset.v1.ListFeedsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFeedsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Updates an asset feed configuration.
-     * 
- */ - public void updateFeed( - com.google.cloud.asset.v1.UpdateFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFeedMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Deletes an asset feed.
-     * 
- */ - public void deleteFeed( - com.google.cloud.asset.v1.DeleteFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFeedMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Searches all Cloud resources within the specified scope, such as a project,
-     * folder, or organization. The caller must be granted the
-     * `cloudasset.assets.searchAllResources` permission on the desired scope,
-     * otherwise the request will be rejected.
-     * 
- */ - public void searchAllResources( - com.google.cloud.asset.v1.SearchAllResourcesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchAllResourcesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Searches all IAM policies within the specified scope, such as a project,
-     * folder, or organization. The caller must be granted the
-     * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
-     * otherwise the request will be rejected.
-     * 
- */ - public void searchAllIamPolicies( - com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchAllIamPoliciesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Analyzes IAM policies to answer which identities have what accesses on
-     * which resources.
-     * 
- */ - public void analyzeIamPolicy( - com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAnalyzeIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Analyzes IAM policies asynchronously to answer which identities have what
-     * accesses on which resources, and writes the analysis results to a Google
-     * Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
-     * output format is the JSON format that represents a
-     * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse].
-     * This method implements the
-     * [google.longrunning.Operation][google.longrunning.Operation], which allows
-     * you to track the operation status. We recommend intervals of at least 2
-     * seconds with exponential backoff retry to poll the operation result. The
-     * metadata contains the metadata for the long-running operation.
-     * 
- */ - public void analyzeIamPolicyLongrunning( - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAnalyzeIamPolicyLongrunningMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Analyze moving a resource to a specified destination without kicking off
-     * the actual move. The analysis is best effort depending on the user's
-     * permissions of viewing different hierarchical policies and configurations.
-     * The policies and configuration are subject to change before the actual
-     * resource migration takes place.
-     * 
- */ - public void analyzeMove( - com.google.cloud.asset.v1.AnalyzeMoveRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAnalyzeMoveMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Issue a job that queries assets using a SQL statement compatible with
-     * [BigQuery Standard
-     * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
-     * If the query execution finishes within timeout and there's no pagination,
-     * the full query results will be returned in the `QueryAssetsResponse`.
-     * Otherwise, full query results can be obtained by issuing extra requests
-     * with the `job_reference` from the a previous `QueryAssets` call.
-     * Note, the query result has approximately 10 GB limitation enforced by
-     * BigQuery
-     * https://cloud.google.com/bigquery/docs/best-practices-performance-output,
-     * queries return larger results will result in errors.
-     * 
- */ - public void queryAssets( - com.google.cloud.asset.v1.QueryAssetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getQueryAssetsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a saved query in a parent project/folder/organization.
-     * 
- */ - public void createSavedQuery( - com.google.cloud.asset.v1.CreateSavedQueryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSavedQueryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details about a saved query.
-     * 
- */ - public void getSavedQuery( - com.google.cloud.asset.v1.GetSavedQueryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSavedQueryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all saved queries in a parent project/folder/organization.
-     * 
- */ - public void listSavedQueries( - com.google.cloud.asset.v1.ListSavedQueriesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSavedQueriesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a saved query.
-     * 
- */ - public void updateSavedQuery( - com.google.cloud.asset.v1.UpdateSavedQueryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSavedQueryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a saved query.
-     * 
- */ - public void deleteSavedQuery( - com.google.cloud.asset.v1.DeleteSavedQueryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSavedQueryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets effective IAM policies for a batch of resources.
-     * 
- */ - public void batchGetEffectiveIamPolicies( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchGetEffectiveIamPoliciesMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Asset service definition.
-   * 
- */ - public static final class AssetServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AssetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssetServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Exports assets with time and resource types to a given Cloud Storage
-     * location/BigQuery table. For Cloud Storage location destinations, the
-     * output format is newline-delimited JSON. Each line represents a
-     * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON
-     * format; for BigQuery table destinations, the output table stores the fields
-     * in asset Protobuf as columns. This API implements the
-     * [google.longrunning.Operation][google.longrunning.Operation] API, which
-     * allows you to keep track of the export. We recommend intervals of at least
-     * 2 seconds with exponential retry to poll the export operation result. For
-     * regular-size resource parent, the export operation usually finishes within
-     * 5 minutes.
-     * 
- */ - public com.google.longrunning.Operation exportAssets( - com.google.cloud.asset.v1.ExportAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExportAssetsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists assets with time and resource types and returns paged results in
-     * response.
-     * 
- */ - public com.google.cloud.asset.v1.ListAssetsResponse listAssets( - com.google.cloud.asset.v1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAssetsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Batch gets the update history of assets that overlap a time window.
-     * For IAM_POLICY content, this API outputs history when the asset and its
-     * attached IAM POLICY both exist. This can create gaps in the output history.
-     * Otherwise, this API outputs history with asset in both non-delete or
-     * deleted status.
-     * If a specified asset does not exist, this API returns an INVALID_ARGUMENT
-     * error.
-     * 
- */ - public com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse batchGetAssetsHistory( - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchGetAssetsHistoryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a feed in a parent project/folder/organization to listen to its
-     * asset updates.
-     * 
- */ - public com.google.cloud.asset.v1.Feed createFeed( - com.google.cloud.asset.v1.CreateFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFeedMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details about an asset feed.
-     * 
- */ - public com.google.cloud.asset.v1.Feed getFeed( - com.google.cloud.asset.v1.GetFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFeedMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all asset feeds in a parent project/folder/organization.
-     * 
- */ - public com.google.cloud.asset.v1.ListFeedsResponse listFeeds( - com.google.cloud.asset.v1.ListFeedsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFeedsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an asset feed configuration.
-     * 
- */ - public com.google.cloud.asset.v1.Feed updateFeed( - com.google.cloud.asset.v1.UpdateFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFeedMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an asset feed.
-     * 
- */ - public com.google.protobuf.Empty deleteFeed( - com.google.cloud.asset.v1.DeleteFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFeedMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Searches all Cloud resources within the specified scope, such as a project,
-     * folder, or organization. The caller must be granted the
-     * `cloudasset.assets.searchAllResources` permission on the desired scope,
-     * otherwise the request will be rejected.
-     * 
- */ - public com.google.cloud.asset.v1.SearchAllResourcesResponse searchAllResources( - com.google.cloud.asset.v1.SearchAllResourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchAllResourcesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Searches all IAM policies within the specified scope, such as a project,
-     * folder, or organization. The caller must be granted the
-     * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
-     * otherwise the request will be rejected.
-     * 
- */ - public com.google.cloud.asset.v1.SearchAllIamPoliciesResponse searchAllIamPolicies( - com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchAllIamPoliciesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Analyzes IAM policies to answer which identities have what accesses on
-     * which resources.
-     * 
- */ - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse analyzeIamPolicy( - com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAnalyzeIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Analyzes IAM policies asynchronously to answer which identities have what
-     * accesses on which resources, and writes the analysis results to a Google
-     * Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
-     * output format is the JSON format that represents a
-     * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse].
-     * This method implements the
-     * [google.longrunning.Operation][google.longrunning.Operation], which allows
-     * you to track the operation status. We recommend intervals of at least 2
-     * seconds with exponential backoff retry to poll the operation result. The
-     * metadata contains the metadata for the long-running operation.
-     * 
- */ - public com.google.longrunning.Operation analyzeIamPolicyLongrunning( - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAnalyzeIamPolicyLongrunningMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Analyze moving a resource to a specified destination without kicking off
-     * the actual move. The analysis is best effort depending on the user's
-     * permissions of viewing different hierarchical policies and configurations.
-     * The policies and configuration are subject to change before the actual
-     * resource migration takes place.
-     * 
- */ - public com.google.cloud.asset.v1.AnalyzeMoveResponse analyzeMove( - com.google.cloud.asset.v1.AnalyzeMoveRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAnalyzeMoveMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Issue a job that queries assets using a SQL statement compatible with
-     * [BigQuery Standard
-     * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
-     * If the query execution finishes within timeout and there's no pagination,
-     * the full query results will be returned in the `QueryAssetsResponse`.
-     * Otherwise, full query results can be obtained by issuing extra requests
-     * with the `job_reference` from the a previous `QueryAssets` call.
-     * Note, the query result has approximately 10 GB limitation enforced by
-     * BigQuery
-     * https://cloud.google.com/bigquery/docs/best-practices-performance-output,
-     * queries return larger results will result in errors.
-     * 
- */ - public com.google.cloud.asset.v1.QueryAssetsResponse queryAssets( - com.google.cloud.asset.v1.QueryAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getQueryAssetsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a saved query in a parent project/folder/organization.
-     * 
- */ - public com.google.cloud.asset.v1.SavedQuery createSavedQuery( - com.google.cloud.asset.v1.CreateSavedQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSavedQueryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details about a saved query.
-     * 
- */ - public com.google.cloud.asset.v1.SavedQuery getSavedQuery( - com.google.cloud.asset.v1.GetSavedQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSavedQueryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all saved queries in a parent project/folder/organization.
-     * 
- */ - public com.google.cloud.asset.v1.ListSavedQueriesResponse listSavedQueries( - com.google.cloud.asset.v1.ListSavedQueriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSavedQueriesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a saved query.
-     * 
- */ - public com.google.cloud.asset.v1.SavedQuery updateSavedQuery( - com.google.cloud.asset.v1.UpdateSavedQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSavedQueryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a saved query.
-     * 
- */ - public com.google.protobuf.Empty deleteSavedQuery( - com.google.cloud.asset.v1.DeleteSavedQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSavedQueryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets effective IAM policies for a batch of resources.
-     * 
- */ - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - batchGetEffectiveIamPolicies( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchGetEffectiveIamPoliciesMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Asset service definition.
-   * 
- */ - public static final class AssetServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AssetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssetServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Exports assets with time and resource types to a given Cloud Storage
-     * location/BigQuery table. For Cloud Storage location destinations, the
-     * output format is newline-delimited JSON. Each line represents a
-     * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON
-     * format; for BigQuery table destinations, the output table stores the fields
-     * in asset Protobuf as columns. This API implements the
-     * [google.longrunning.Operation][google.longrunning.Operation] API, which
-     * allows you to keep track of the export. We recommend intervals of at least
-     * 2 seconds with exponential retry to poll the export operation result. For
-     * regular-size resource parent, the export operation usually finishes within
-     * 5 minutes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - exportAssets(com.google.cloud.asset.v1.ExportAssetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getExportAssetsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists assets with time and resource types and returns paged results in
-     * response.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.asset.v1.ListAssetsResponse> - listAssets(com.google.cloud.asset.v1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAssetsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Batch gets the update history of assets that overlap a time window.
-     * For IAM_POLICY content, this API outputs history when the asset and its
-     * attached IAM POLICY both exist. This can create gaps in the output history.
-     * Otherwise, this API outputs history with asset in both non-delete or
-     * deleted status.
-     * If a specified asset does not exist, this API returns an INVALID_ARGUMENT
-     * error.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse> - batchGetAssetsHistory(com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchGetAssetsHistoryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a feed in a parent project/folder/organization to listen to its
-     * asset updates.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createFeed(com.google.cloud.asset.v1.CreateFeedRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFeedMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details about an asset feed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getFeed(com.google.cloud.asset.v1.GetFeedRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFeedMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all asset feeds in a parent project/folder/organization.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.asset.v1.ListFeedsResponse> - listFeeds(com.google.cloud.asset.v1.ListFeedsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFeedsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an asset feed configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateFeed(com.google.cloud.asset.v1.UpdateFeedRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFeedMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an asset feed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteFeed( - com.google.cloud.asset.v1.DeleteFeedRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFeedMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Searches all Cloud resources within the specified scope, such as a project,
-     * folder, or organization. The caller must be granted the
-     * `cloudasset.assets.searchAllResources` permission on the desired scope,
-     * otherwise the request will be rejected.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.asset.v1.SearchAllResourcesResponse> - searchAllResources(com.google.cloud.asset.v1.SearchAllResourcesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchAllResourcesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Searches all IAM policies within the specified scope, such as a project,
-     * folder, or organization. The caller must be granted the
-     * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
-     * otherwise the request will be rejected.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.asset.v1.SearchAllIamPoliciesResponse> - searchAllIamPolicies(com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchAllIamPoliciesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Analyzes IAM policies to answer which identities have what accesses on
-     * which resources.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse> - analyzeIamPolicy(com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAnalyzeIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Analyzes IAM policies asynchronously to answer which identities have what
-     * accesses on which resources, and writes the analysis results to a Google
-     * Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
-     * output format is the JSON format that represents a
-     * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse].
-     * This method implements the
-     * [google.longrunning.Operation][google.longrunning.Operation], which allows
-     * you to track the operation status. We recommend intervals of at least 2
-     * seconds with exponential backoff retry to poll the operation result. The
-     * metadata contains the metadata for the long-running operation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - analyzeIamPolicyLongrunning( - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAnalyzeIamPolicyLongrunningMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Analyze moving a resource to a specified destination without kicking off
-     * the actual move. The analysis is best effort depending on the user's
-     * permissions of viewing different hierarchical policies and configurations.
-     * The policies and configuration are subject to change before the actual
-     * resource migration takes place.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.asset.v1.AnalyzeMoveResponse> - analyzeMove(com.google.cloud.asset.v1.AnalyzeMoveRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAnalyzeMoveMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Issue a job that queries assets using a SQL statement compatible with
-     * [BigQuery Standard
-     * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
-     * If the query execution finishes within timeout and there's no pagination,
-     * the full query results will be returned in the `QueryAssetsResponse`.
-     * Otherwise, full query results can be obtained by issuing extra requests
-     * with the `job_reference` from the a previous `QueryAssets` call.
-     * Note, the query result has approximately 10 GB limitation enforced by
-     * BigQuery
-     * https://cloud.google.com/bigquery/docs/best-practices-performance-output,
-     * queries return larger results will result in errors.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.asset.v1.QueryAssetsResponse> - queryAssets(com.google.cloud.asset.v1.QueryAssetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getQueryAssetsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a saved query in a parent project/folder/organization.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createSavedQuery(com.google.cloud.asset.v1.CreateSavedQueryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSavedQueryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details about a saved query.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getSavedQuery(com.google.cloud.asset.v1.GetSavedQueryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSavedQueryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all saved queries in a parent project/folder/organization.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.asset.v1.ListSavedQueriesResponse> - listSavedQueries(com.google.cloud.asset.v1.ListSavedQueriesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSavedQueriesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a saved query.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateSavedQuery(com.google.cloud.asset.v1.UpdateSavedQueryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSavedQueryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a saved query.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteSavedQuery(com.google.cloud.asset.v1.DeleteSavedQueryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSavedQueryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets effective IAM policies for a batch of resources.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse> - batchGetEffectiveIamPolicies( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchGetEffectiveIamPoliciesMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_EXPORT_ASSETS = 0; - private static final int METHODID_LIST_ASSETS = 1; - private static final int METHODID_BATCH_GET_ASSETS_HISTORY = 2; - private static final int METHODID_CREATE_FEED = 3; - private static final int METHODID_GET_FEED = 4; - private static final int METHODID_LIST_FEEDS = 5; - private static final int METHODID_UPDATE_FEED = 6; - private static final int METHODID_DELETE_FEED = 7; - private static final int METHODID_SEARCH_ALL_RESOURCES = 8; - private static final int METHODID_SEARCH_ALL_IAM_POLICIES = 9; - private static final int METHODID_ANALYZE_IAM_POLICY = 10; - private static final int METHODID_ANALYZE_IAM_POLICY_LONGRUNNING = 11; - private static final int METHODID_ANALYZE_MOVE = 12; - private static final int METHODID_QUERY_ASSETS = 13; - private static final int METHODID_CREATE_SAVED_QUERY = 14; - private static final int METHODID_GET_SAVED_QUERY = 15; - private static final int METHODID_LIST_SAVED_QUERIES = 16; - private static final int METHODID_UPDATE_SAVED_QUERY = 17; - private static final int METHODID_DELETE_SAVED_QUERY = 18; - private static final int METHODID_BATCH_GET_EFFECTIVE_IAM_POLICIES = 19; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AssetServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AssetServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_EXPORT_ASSETS: - serviceImpl.exportAssets( - (com.google.cloud.asset.v1.ExportAssetsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ASSETS: - serviceImpl.listAssets( - (com.google.cloud.asset.v1.ListAssetsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_BATCH_GET_ASSETS_HISTORY: - serviceImpl.batchGetAssetsHistory( - (com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_FEED: - serviceImpl.createFeed( - (com.google.cloud.asset.v1.CreateFeedRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_FEED: - serviceImpl.getFeed( - (com.google.cloud.asset.v1.GetFeedRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_FEEDS: - serviceImpl.listFeeds( - (com.google.cloud.asset.v1.ListFeedsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_FEED: - serviceImpl.updateFeed( - (com.google.cloud.asset.v1.UpdateFeedRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_FEED: - serviceImpl.deleteFeed( - (com.google.cloud.asset.v1.DeleteFeedRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SEARCH_ALL_RESOURCES: - serviceImpl.searchAllResources( - (com.google.cloud.asset.v1.SearchAllResourcesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_SEARCH_ALL_IAM_POLICIES: - serviceImpl.searchAllIamPolicies( - (com.google.cloud.asset.v1.SearchAllIamPoliciesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_ANALYZE_IAM_POLICY: - serviceImpl.analyzeIamPolicy( - (com.google.cloud.asset.v1.AnalyzeIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_ANALYZE_IAM_POLICY_LONGRUNNING: - serviceImpl.analyzeIamPolicyLongrunning( - (com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ANALYZE_MOVE: - serviceImpl.analyzeMove( - (com.google.cloud.asset.v1.AnalyzeMoveRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_QUERY_ASSETS: - serviceImpl.queryAssets( - (com.google.cloud.asset.v1.QueryAssetsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_SAVED_QUERY: - serviceImpl.createSavedQuery( - (com.google.cloud.asset.v1.CreateSavedQueryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SAVED_QUERY: - serviceImpl.getSavedQuery( - (com.google.cloud.asset.v1.GetSavedQueryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SAVED_QUERIES: - serviceImpl.listSavedQueries( - (com.google.cloud.asset.v1.ListSavedQueriesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_SAVED_QUERY: - serviceImpl.updateSavedQuery( - (com.google.cloud.asset.v1.UpdateSavedQueryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SAVED_QUERY: - serviceImpl.deleteSavedQuery( - (com.google.cloud.asset.v1.DeleteSavedQueryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_GET_EFFECTIVE_IAM_POLICIES: - serviceImpl.batchGetEffectiveIamPolicies( - (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class AssetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AssetServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AssetService"); - } - } - - private static final class AssetServiceFileDescriptorSupplier - extends AssetServiceBaseDescriptorSupplier { - AssetServiceFileDescriptorSupplier() {} - } - - private static final class AssetServiceMethodDescriptorSupplier - extends AssetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AssetServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (AssetServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AssetServiceFileDescriptorSupplier()) - .addMethod(getExportAssetsMethod()) - .addMethod(getListAssetsMethod()) - .addMethod(getBatchGetAssetsHistoryMethod()) - .addMethod(getCreateFeedMethod()) - .addMethod(getGetFeedMethod()) - .addMethod(getListFeedsMethod()) - .addMethod(getUpdateFeedMethod()) - .addMethod(getDeleteFeedMethod()) - .addMethod(getSearchAllResourcesMethod()) - .addMethod(getSearchAllIamPoliciesMethod()) - .addMethod(getAnalyzeIamPolicyMethod()) - .addMethod(getAnalyzeIamPolicyLongrunningMethod()) - .addMethod(getAnalyzeMoveMethod()) - .addMethod(getQueryAssetsMethod()) - .addMethod(getCreateSavedQueryMethod()) - .addMethod(getGetSavedQueryMethod()) - .addMethod(getListSavedQueriesMethod()) - .addMethod(getUpdateSavedQueryMethod()) - .addMethod(getDeleteSavedQueryMethod()) - .addMethod(getBatchGetEffectiveIamPoliciesMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-asset/grpc-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceGrpc.java b/java-asset/grpc-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceGrpc.java deleted file mode 100644 index c58318038531..000000000000 --- a/java-asset/grpc-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceGrpc.java +++ /dev/null @@ -1,799 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.asset.v1p2beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Asset service definition.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/asset/v1p2beta1/asset_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AssetServiceGrpc { - - private AssetServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.asset.v1p2beta1.AssetService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p2beta1.CreateFeedRequest, com.google.cloud.asset.v1p2beta1.Feed> - getCreateFeedMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFeed", - requestType = com.google.cloud.asset.v1p2beta1.CreateFeedRequest.class, - responseType = com.google.cloud.asset.v1p2beta1.Feed.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p2beta1.CreateFeedRequest, com.google.cloud.asset.v1p2beta1.Feed> - getCreateFeedMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p2beta1.CreateFeedRequest, - com.google.cloud.asset.v1p2beta1.Feed> - getCreateFeedMethod; - if ((getCreateFeedMethod = AssetServiceGrpc.getCreateFeedMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getCreateFeedMethod = AssetServiceGrpc.getCreateFeedMethod) == null) { - AssetServiceGrpc.getCreateFeedMethod = - getCreateFeedMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFeed")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p2beta1.CreateFeedRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("CreateFeed")) - .build(); - } - } - } - return getCreateFeedMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p2beta1.GetFeedRequest, com.google.cloud.asset.v1p2beta1.Feed> - getGetFeedMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFeed", - requestType = com.google.cloud.asset.v1p2beta1.GetFeedRequest.class, - responseType = com.google.cloud.asset.v1p2beta1.Feed.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p2beta1.GetFeedRequest, com.google.cloud.asset.v1p2beta1.Feed> - getGetFeedMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p2beta1.GetFeedRequest, com.google.cloud.asset.v1p2beta1.Feed> - getGetFeedMethod; - if ((getGetFeedMethod = AssetServiceGrpc.getGetFeedMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getGetFeedMethod = AssetServiceGrpc.getGetFeedMethod) == null) { - AssetServiceGrpc.getGetFeedMethod = - getGetFeedMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFeed")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p2beta1.GetFeedRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("GetFeed")) - .build(); - } - } - } - return getGetFeedMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p2beta1.ListFeedsRequest, - com.google.cloud.asset.v1p2beta1.ListFeedsResponse> - getListFeedsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFeeds", - requestType = com.google.cloud.asset.v1p2beta1.ListFeedsRequest.class, - responseType = com.google.cloud.asset.v1p2beta1.ListFeedsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p2beta1.ListFeedsRequest, - com.google.cloud.asset.v1p2beta1.ListFeedsResponse> - getListFeedsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p2beta1.ListFeedsRequest, - com.google.cloud.asset.v1p2beta1.ListFeedsResponse> - getListFeedsMethod; - if ((getListFeedsMethod = AssetServiceGrpc.getListFeedsMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getListFeedsMethod = AssetServiceGrpc.getListFeedsMethod) == null) { - AssetServiceGrpc.getListFeedsMethod = - getListFeedsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFeeds")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p2beta1.ListFeedsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p2beta1.ListFeedsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ListFeeds")) - .build(); - } - } - } - return getListFeedsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p2beta1.UpdateFeedRequest, com.google.cloud.asset.v1p2beta1.Feed> - getUpdateFeedMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFeed", - requestType = com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.class, - responseType = com.google.cloud.asset.v1p2beta1.Feed.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p2beta1.UpdateFeedRequest, com.google.cloud.asset.v1p2beta1.Feed> - getUpdateFeedMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p2beta1.UpdateFeedRequest, - com.google.cloud.asset.v1p2beta1.Feed> - getUpdateFeedMethod; - if ((getUpdateFeedMethod = AssetServiceGrpc.getUpdateFeedMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getUpdateFeedMethod = AssetServiceGrpc.getUpdateFeedMethod) == null) { - AssetServiceGrpc.getUpdateFeedMethod = - getUpdateFeedMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFeed")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p2beta1.UpdateFeedRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("UpdateFeed")) - .build(); - } - } - } - return getUpdateFeedMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p2beta1.DeleteFeedRequest, com.google.protobuf.Empty> - getDeleteFeedMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteFeed", - requestType = com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p2beta1.DeleteFeedRequest, com.google.protobuf.Empty> - getDeleteFeedMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p2beta1.DeleteFeedRequest, com.google.protobuf.Empty> - getDeleteFeedMethod; - if ((getDeleteFeedMethod = AssetServiceGrpc.getDeleteFeedMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getDeleteFeedMethod = AssetServiceGrpc.getDeleteFeedMethod) == null) { - AssetServiceGrpc.getDeleteFeedMethod = - getDeleteFeedMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFeed")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p2beta1.DeleteFeedRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("DeleteFeed")) - .build(); - } - } - } - return getDeleteFeedMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static AssetServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceStub(channel, callOptions); - } - }; - return AssetServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AssetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceBlockingStub(channel, callOptions); - } - }; - return AssetServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AssetServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceFutureStub(channel, callOptions); - } - }; - return AssetServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Asset service definition.
-   * 
- */ - public abstract static class AssetServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a feed in a parent project/folder/organization to listen to its
-     * asset updates.
-     * 
- */ - public void createFeed( - com.google.cloud.asset.v1p2beta1.CreateFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFeedMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details about an asset feed.
-     * 
- */ - public void getFeed( - com.google.cloud.asset.v1p2beta1.GetFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeedMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all asset feeds in a parent project/folder/organization.
-     * 
- */ - public void listFeeds( - com.google.cloud.asset.v1p2beta1.ListFeedsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFeedsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an asset feed configuration.
-     * 
- */ - public void updateFeed( - com.google.cloud.asset.v1p2beta1.UpdateFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFeedMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an asset feed.
-     * 
- */ - public void deleteFeed( - com.google.cloud.asset.v1p2beta1.DeleteFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFeedMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateFeedMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1p2beta1.CreateFeedRequest, - com.google.cloud.asset.v1p2beta1.Feed>(this, METHODID_CREATE_FEED))) - .addMethod( - getGetFeedMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1p2beta1.GetFeedRequest, - com.google.cloud.asset.v1p2beta1.Feed>(this, METHODID_GET_FEED))) - .addMethod( - getListFeedsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1p2beta1.ListFeedsRequest, - com.google.cloud.asset.v1p2beta1.ListFeedsResponse>( - this, METHODID_LIST_FEEDS))) - .addMethod( - getUpdateFeedMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1p2beta1.UpdateFeedRequest, - com.google.cloud.asset.v1p2beta1.Feed>(this, METHODID_UPDATE_FEED))) - .addMethod( - getDeleteFeedMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1p2beta1.DeleteFeedRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_FEED))) - .build(); - } - } - - /** - * - * - *
-   * Asset service definition.
-   * 
- */ - public static final class AssetServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private AssetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a feed in a parent project/folder/organization to listen to its
-     * asset updates.
-     * 
- */ - public void createFeed( - com.google.cloud.asset.v1p2beta1.CreateFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFeedMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets details about an asset feed.
-     * 
- */ - public void getFeed( - com.google.cloud.asset.v1p2beta1.GetFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFeedMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists all asset feeds in a parent project/folder/organization.
-     * 
- */ - public void listFeeds( - com.google.cloud.asset.v1p2beta1.ListFeedsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFeedsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Updates an asset feed configuration.
-     * 
- */ - public void updateFeed( - com.google.cloud.asset.v1p2beta1.UpdateFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFeedMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Deletes an asset feed.
-     * 
- */ - public void deleteFeed( - com.google.cloud.asset.v1p2beta1.DeleteFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFeedMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * - * - *
-   * Asset service definition.
-   * 
- */ - public static final class AssetServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AssetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssetServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a feed in a parent project/folder/organization to listen to its
-     * asset updates.
-     * 
- */ - public com.google.cloud.asset.v1p2beta1.Feed createFeed( - com.google.cloud.asset.v1p2beta1.CreateFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFeedMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details about an asset feed.
-     * 
- */ - public com.google.cloud.asset.v1p2beta1.Feed getFeed( - com.google.cloud.asset.v1p2beta1.GetFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFeedMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all asset feeds in a parent project/folder/organization.
-     * 
- */ - public com.google.cloud.asset.v1p2beta1.ListFeedsResponse listFeeds( - com.google.cloud.asset.v1p2beta1.ListFeedsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFeedsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an asset feed configuration.
-     * 
- */ - public com.google.cloud.asset.v1p2beta1.Feed updateFeed( - com.google.cloud.asset.v1p2beta1.UpdateFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFeedMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an asset feed.
-     * 
- */ - public com.google.protobuf.Empty deleteFeed( - com.google.cloud.asset.v1p2beta1.DeleteFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFeedMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Asset service definition.
-   * 
- */ - public static final class AssetServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AssetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssetServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a feed in a parent project/folder/organization to listen to its
-     * asset updates.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createFeed(com.google.cloud.asset.v1p2beta1.CreateFeedRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFeedMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details about an asset feed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getFeed(com.google.cloud.asset.v1p2beta1.GetFeedRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFeedMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all asset feeds in a parent project/folder/organization.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.asset.v1p2beta1.ListFeedsResponse> - listFeeds(com.google.cloud.asset.v1p2beta1.ListFeedsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFeedsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an asset feed configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateFeed(com.google.cloud.asset.v1p2beta1.UpdateFeedRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFeedMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an asset feed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteFeed( - com.google.cloud.asset.v1p2beta1.DeleteFeedRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFeedMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_FEED = 0; - private static final int METHODID_GET_FEED = 1; - private static final int METHODID_LIST_FEEDS = 2; - private static final int METHODID_UPDATE_FEED = 3; - private static final int METHODID_DELETE_FEED = 4; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AssetServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AssetServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_FEED: - serviceImpl.createFeed( - (com.google.cloud.asset.v1p2beta1.CreateFeedRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_FEED: - serviceImpl.getFeed( - (com.google.cloud.asset.v1p2beta1.GetFeedRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_FEEDS: - serviceImpl.listFeeds( - (com.google.cloud.asset.v1p2beta1.ListFeedsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_FEED: - serviceImpl.updateFeed( - (com.google.cloud.asset.v1p2beta1.UpdateFeedRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_FEED: - serviceImpl.deleteFeed( - (com.google.cloud.asset.v1p2beta1.DeleteFeedRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class AssetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AssetServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AssetService"); - } - } - - private static final class AssetServiceFileDescriptorSupplier - extends AssetServiceBaseDescriptorSupplier { - AssetServiceFileDescriptorSupplier() {} - } - - private static final class AssetServiceMethodDescriptorSupplier - extends AssetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AssetServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (AssetServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AssetServiceFileDescriptorSupplier()) - .addMethod(getCreateFeedMethod()) - .addMethod(getGetFeedMethod()) - .addMethod(getListFeedsMethod()) - .addMethod(getUpdateFeedMethod()) - .addMethod(getDeleteFeedMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponseOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponseOrBuilder.java deleted file mode 100644 index 6d3510e8230e..000000000000 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1/asset_service.proto - -package com.google.cloud.asset.v1; - -public interface AnalyzeIamPolicyLongrunningResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java deleted file mode 100644 index 3a788975f1fe..000000000000 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java +++ /dev/null @@ -1,616 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1/assets.proto - -package com.google.cloud.asset.v1; - -public final class AssetProto { - private AssetProto() {} - - 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_asset_v1_TemporalAsset_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_TemporalAsset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_TimeWindow_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_TimeWindow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_Asset_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_Asset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_Resource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_Resource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_RelatedAssets_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_RelatedAssets_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_RelationshipAttributes_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_RelatedAsset_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_RelatedAsset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_ResourceSearchResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_ResourceSearchResult_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_ResourceSearchResult_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_ResourceSearchResult_RelationshipsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_ResourceSearchResult_RelationshipsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_VersionedResource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_VersionedResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_AttachedResource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_AttachedResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_RelatedResources_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_RelatedResources_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_RelatedResource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_RelatedResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicySearchResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_ConditionEvaluation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n\"google/cloud/asset/v1/assets.proto\022\025go" - + "ogle.cloud.asset.v1\032\031google/api/resource" - + ".proto\032)google/cloud/orgpolicy/v1/orgpol" - + "icy.proto\032(google/cloud/osconfig/v1/inve" - + "ntory.proto\032\032google/iam/v1/policy.proto\032" - + ":google/identity/accesscontextmanager/v1" - + "/access_level.proto\032;google/identity/acc" - + "esscontextmanager/v1/access_policy.proto" - + "\032?google/identity/accesscontextmanager/v" - + "1/service_perimeter.proto\032\034google/protob" - + "uf/struct.proto\032\037google/protobuf/timesta" - + "mp.proto\032\025google/rpc/code.proto\"\365\002\n\rTemp" - + "oralAsset\0221\n\006window\030\001 \001(\0132!.google.cloud" - + ".asset.v1.TimeWindow\022\017\n\007deleted\030\002 \001(\010\022+\n" - + "\005asset\030\003 \001(\0132\034.google.cloud.asset.v1.Ass" - + "et\022O\n\021prior_asset_state\030\004 \001(\01624.google.c" - + "loud.asset.v1.TemporalAsset.PriorAssetSt" - + "ate\0221\n\013prior_asset\030\005 \001(\0132\034.google.cloud." - + "asset.v1.Asset\"o\n\017PriorAssetState\022!\n\035PRI" - + "OR_ASSET_STATE_UNSPECIFIED\020\000\022\013\n\007PRESENT\020" - + "\001\022\013\n\007INVALID\020\002\022\022\n\016DOES_NOT_EXIST\020\003\022\013\n\007DE" - + "LETED\020\004\"j\n\nTimeWindow\022.\n\nstart_time\030\001 \001(" - + "\0132\032.google.protobuf.Timestamp\022,\n\010end_tim" - + "e\030\002 \001(\0132\032.google.protobuf.Timestamp\"\363\005\n\005" - + "Asset\022/\n\013update_time\030\013 \001(\0132\032.google.prot" - + "obuf.Timestamp\022\014\n\004name\030\001 \001(\t\022\022\n\nasset_ty" - + "pe\030\002 \001(\t\0221\n\010resource\030\003 \001(\0132\037.google.clou" - + "d.asset.v1.Resource\022)\n\niam_policy\030\004 \001(\0132" - + "\025.google.iam.v1.Policy\0225\n\norg_policy\030\006 \003" - + "(\0132!.google.cloud.orgpolicy.v1.Policy\022N\n" - + "\raccess_policy\030\007 \001(\01325.google.identity.a" - + "ccesscontextmanager.v1.AccessPolicyH\000\022L\n" - + "\014access_level\030\010 \001(\01324.google.identity.ac" - + "cesscontextmanager.v1.AccessLevelH\000\022V\n\021s" - + "ervice_perimeter\030\t \001(\01329.google.identity" - + ".accesscontextmanager.v1.ServicePerimete" - + "rH\000\0229\n\014os_inventory\030\014 \001(\0132#.google.cloud" - + ".osconfig.v1.Inventory\022@\n\016related_assets" - + "\030\r \001(\0132$.google.cloud.asset.v1.RelatedAs" - + "setsB\002\030\001\022:\n\rrelated_asset\030\017 \001(\0132#.google" - + ".cloud.asset.v1.RelatedAsset\022\021\n\tancestor" - + "s\030\n \003(\t:\'\352A$\n\037cloudasset.googleapis.com/" - + "Asset\022\001*B\027\n\025access_context_policy\"\262\001\n\010Re" - + "source\022\017\n\007version\030\001 \001(\t\022\036\n\026discovery_doc" - + "ument_uri\030\002 \001(\t\022\026\n\016discovery_name\030\003 \001(\t\022" - + "\024\n\014resource_url\030\004 \001(\t\022\016\n\006parent\030\005 \001(\t\022%\n" - + "\004data\030\006 \001(\0132\027.google.protobuf.Struct\022\020\n\010" - + "location\030\010 \001(\t\"\230\001\n\rRelatedAssets\022N\n\027rela" - + "tionship_attributes\030\001 \001(\0132-.google.cloud" - + ".asset.v1.RelationshipAttributes\0223\n\006asse" - + "ts\030\002 \003(\0132#.google.cloud.asset.v1.Related" - + "Asset:\002\030\001\"v\n\026RelationshipAttributes\022\014\n\004t" - + "ype\030\004 \001(\t\022\034\n\024source_resource_type\030\001 \001(\t\022" - + "\034\n\024target_resource_type\030\002 \001(\t\022\016\n\006action\030" - + "\003 \001(\t:\002\030\001\"\205\001\n\014RelatedAsset\0223\n\005asset\030\001 \001(" - + "\tB$\372A!\n\037cloudasset.googleapis.com/Asset\022" - + "\022\n\nasset_type\030\002 \001(\t\022\021\n\tancestors\030\003 \003(\t\022\031" - + "\n\021relationship_type\030\004 \001(\t\"\262\007\n\024ResourceSe" - + "archResult\022\014\n\004name\030\001 \001(\t\022\022\n\nasset_type\030\002" - + " \001(\t\022\017\n\007project\030\003 \001(\t\022\017\n\007folders\030\021 \003(\t\022\024" - + "\n\014organization\030\022 \001(\t\022\024\n\014display_name\030\004 \001" - + "(\t\022\023\n\013description\030\005 \001(\t\022\020\n\010location\030\006 \001(" - + "\t\022G\n\006labels\030\007 \003(\01327.google.cloud.asset.v" - + "1.ResourceSearchResult.LabelsEntry\022\024\n\014ne" - + "twork_tags\030\010 \003(\t\022\017\n\007kms_key\030\n \001(\t\022/\n\013cre" - + "ate_time\030\013 \001(\0132\032.google.protobuf.Timesta" - + "mp\022/\n\013update_time\030\014 \001(\0132\032.google.protobu" - + "f.Timestamp\022\r\n\005state\030\r \001(\t\0226\n\025additional" - + "_attributes\030\t \001(\0132\027.google.protobuf.Stru" - + "ct\022!\n\031parent_full_resource_name\030\023 \001(\t\022E\n" - + "\023versioned_resources\030\020 \003(\0132(.google.clou" - + "d.asset.v1.VersionedResource\022C\n\022attached" - + "_resources\030\024 \003(\0132\'.google.cloud.asset.v1" - + ".AttachedResource\022U\n\rrelationships\030\025 \003(\013" - + "2>.google.cloud.asset.v1.ResourceSearchR" - + "esult.RelationshipsEntry\022\020\n\010tag_keys\030\027 \003" - + "(\t\022\022\n\ntag_values\030\031 \003(\t\022\025\n\rtag_value_ids\030" - + "\032 \003(\t\022\031\n\021parent_asset_type\030g \001(\t\032-\n\013Labe" - + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032" - + "]\n\022RelationshipsEntry\022\013\n\003key\030\001 \001(\t\0226\n\005va" - + "lue\030\002 \001(\0132\'.google.cloud.asset.v1.Relate" - + "dResources:\0028\001\"O\n\021VersionedResource\022\017\n\007v" - + "ersion\030\001 \001(\t\022)\n\010resource\030\002 \001(\0132\027.google." - + "protobuf.Struct\"m\n\020AttachedResource\022\022\n\na" - + "sset_type\030\001 \001(\t\022E\n\023versioned_resources\030\003" - + " \003(\0132(.google.cloud.asset.v1.VersionedRe" - + "source\"U\n\020RelatedResources\022A\n\021related_re" - + "sources\030\001 \003(\0132&.google.cloud.asset.v1.Re" - + "latedResource\"A\n\017RelatedResource\022\022\n\nasse" - + "t_type\030\001 \001(\t\022\032\n\022full_resource_name\030\002 \001(\t" - + "\"\217\004\n\025IamPolicySearchResult\022\020\n\010resource\030\001" - + " \001(\t\022\022\n\nasset_type\030\005 \001(\t\022\017\n\007project\030\002 \001(" - + "\t\022\017\n\007folders\030\006 \003(\t\022\024\n\014organization\030\007 \001(\t" - + "\022%\n\006policy\030\003 \001(\0132\025.google.iam.v1.Policy\022" - + "M\n\013explanation\030\004 \001(\01328.google.cloud.asse" - + "t.v1.IamPolicySearchResult.Explanation\032\241" - + "\002\n\013Explanation\022m\n\023matched_permissions\030\001 " - + "\003(\0132P.google.cloud.asset.v1.IamPolicySea" - + "rchResult.Explanation.MatchedPermissions" - + "Entry\032\"\n\013Permissions\022\023\n\013permissions\030\001 \003(" - + "\t\032\177\n\027MatchedPermissionsEntry\022\013\n\003key\030\001 \001(" - + "\t\022S\n\005value\030\002 \001(\0132D.google.cloud.asset.v1" - + ".IamPolicySearchResult.Explanation.Permi" - + "ssions:\0028\001\"G\n\026IamPolicyAnalysisState\022\036\n\004" - + "code\030\001 \001(\0162\020.google.rpc.Code\022\r\n\005cause\030\002 " - + "\001(\t\"\306\001\n\023ConditionEvaluation\022T\n\020evaluatio" - + "n_value\030\001 \001(\0162:.google.cloud.asset.v1.Co" - + "nditionEvaluation.EvaluationValue\"Y\n\017Eva" - + "luationValue\022 \n\034EVALUATION_VALUE_UNSPECI" - + "FIED\020\000\022\010\n\004TRUE\020\001\022\t\n\005FALSE\020\002\022\017\n\013CONDITION" - + "AL\020\003\"\253\t\n\027IamPolicyAnalysisResult\022#\n\033atta" - + "ched_resource_full_name\030\001 \001(\t\022+\n\013iam_bin" - + "ding\030\002 \001(\0132\026.google.iam.v1.Binding\022^\n\024ac" - + "cess_control_lists\030\003 \003(\0132@.google.cloud." - + "asset.v1.IamPolicyAnalysisResult.AccessC" - + "ontrolList\022R\n\ridentity_list\030\004 \001(\0132;.goog" - + "le.cloud.asset.v1.IamPolicyAnalysisResul" - + "t.IdentityList\022\026\n\016fully_explored\030\005 \001(\010\032m" - + "\n\010Resource\022\032\n\022full_resource_name\030\001 \001(\t\022E" - + "\n\016analysis_state\030\002 \001(\0132-.google.cloud.as" - + "set.v1.IamPolicyAnalysisState\032\205\001\n\006Access" - + "\022\016\n\004role\030\001 \001(\tH\000\022\024\n\npermission\030\002 \001(\tH\000\022E" - + "\n\016analysis_state\030\003 \001(\0132-.google.cloud.as" - + "set.v1.IamPolicyAnalysisStateB\016\n\014oneof_a" - + "ccess\032_\n\010Identity\022\014\n\004name\030\001 \001(\t\022E\n\016analy" - + "sis_state\030\002 \001(\0132-.google.cloud.asset.v1." - + "IamPolicyAnalysisState\0320\n\004Edge\022\023\n\013source" - + "_node\030\001 \001(\t\022\023\n\013target_node\030\002 \001(\t\032\277\002\n\021Acc" - + "essControlList\022J\n\tresources\030\001 \003(\01327.goog" - + "le.cloud.asset.v1.IamPolicyAnalysisResul" - + "t.Resource\022G\n\010accesses\030\002 \003(\01325.google.cl" - + "oud.asset.v1.IamPolicyAnalysisResult.Acc" - + "ess\022K\n\016resource_edges\030\003 \003(\01323.google.clo" - + "ud.asset.v1.IamPolicyAnalysisResult.Edge" - + "\022H\n\024condition_evaluation\030\004 \001(\0132*.google." - + "cloud.asset.v1.ConditionEvaluation\032\245\001\n\014I" - + "dentityList\022K\n\nidentities\030\001 \003(\01327.google" - + ".cloud.asset.v1.IamPolicyAnalysisResult." - + "Identity\022H\n\013group_edges\030\002 \003(\01323.google.c" - + "loud.asset.v1.IamPolicyAnalysisResult.Ed" - + "geB\230\001\n\031com.google.cloud.asset.v1B\nAssetP" - + "rotoP\001Z:google.golang.org/genproto/googl" - + "eapis/cloud/asset/v1;asset\370\001\001\252\002\025Google.C" - + "loud.Asset.V1\312\002\025Google\\Cloud\\Asset\\V1b\006p" - + "roto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(), - com.google.cloud.osconfig.v1.Inventories.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(), - com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(), - com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.CodeProto.getDescriptor(), - }); - internal_static_google_cloud_asset_v1_TemporalAsset_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_asset_v1_TemporalAsset_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_TemporalAsset_descriptor, - new java.lang.String[] { - "Window", "Deleted", "Asset", "PriorAssetState", "PriorAsset", - }); - internal_static_google_cloud_asset_v1_TimeWindow_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_asset_v1_TimeWindow_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_TimeWindow_descriptor, - new java.lang.String[] { - "StartTime", "EndTime", - }); - internal_static_google_cloud_asset_v1_Asset_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_asset_v1_Asset_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_Asset_descriptor, - new java.lang.String[] { - "UpdateTime", - "Name", - "AssetType", - "Resource", - "IamPolicy", - "OrgPolicy", - "AccessPolicy", - "AccessLevel", - "ServicePerimeter", - "OsInventory", - "RelatedAssets", - "RelatedAsset", - "Ancestors", - "AccessContextPolicy", - }); - internal_static_google_cloud_asset_v1_Resource_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_asset_v1_Resource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_Resource_descriptor, - new java.lang.String[] { - "Version", - "DiscoveryDocumentUri", - "DiscoveryName", - "ResourceUrl", - "Parent", - "Data", - "Location", - }); - internal_static_google_cloud_asset_v1_RelatedAssets_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_asset_v1_RelatedAssets_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_RelatedAssets_descriptor, - new java.lang.String[] { - "RelationshipAttributes", "Assets", - }); - internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_asset_v1_RelationshipAttributes_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor, - new java.lang.String[] { - "Type", "SourceResourceType", "TargetResourceType", "Action", - }); - internal_static_google_cloud_asset_v1_RelatedAsset_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_asset_v1_RelatedAsset_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_RelatedAsset_descriptor, - new java.lang.String[] { - "Asset", "AssetType", "Ancestors", "RelationshipType", - }); - internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_asset_v1_ResourceSearchResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor, - new java.lang.String[] { - "Name", - "AssetType", - "Project", - "Folders", - "Organization", - "DisplayName", - "Description", - "Location", - "Labels", - "NetworkTags", - "KmsKey", - "CreateTime", - "UpdateTime", - "State", - "AdditionalAttributes", - "ParentFullResourceName", - "VersionedResources", - "AttachedResources", - "Relationships", - "TagKeys", - "TagValues", - "TagValueIds", - "ParentAssetType", - }); - internal_static_google_cloud_asset_v1_ResourceSearchResult_LabelsEntry_descriptor = - internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_asset_v1_ResourceSearchResult_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_ResourceSearchResult_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_asset_v1_ResourceSearchResult_RelationshipsEntry_descriptor = - internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_asset_v1_ResourceSearchResult_RelationshipsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_ResourceSearchResult_RelationshipsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_asset_v1_VersionedResource_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_asset_v1_VersionedResource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_VersionedResource_descriptor, - new java.lang.String[] { - "Version", "Resource", - }); - internal_static_google_cloud_asset_v1_AttachedResource_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_asset_v1_AttachedResource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_AttachedResource_descriptor, - new java.lang.String[] { - "AssetType", "VersionedResources", - }); - internal_static_google_cloud_asset_v1_RelatedResources_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_asset_v1_RelatedResources_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_RelatedResources_descriptor, - new java.lang.String[] { - "RelatedResources", - }); - internal_static_google_cloud_asset_v1_RelatedResource_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_asset_v1_RelatedResource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_RelatedResource_descriptor, - new java.lang.String[] { - "AssetType", "FullResourceName", - }); - internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_asset_v1_IamPolicySearchResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor, - new java.lang.String[] { - "Resource", - "AssetType", - "Project", - "Folders", - "Organization", - "Policy", - "Explanation", - }); - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor = - internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor, - new java.lang.String[] { - "MatchedPermissions", - }); - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor = - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor, - new java.lang.String[] { - "Permissions", - }); - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor = - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor, - new java.lang.String[] { - "Code", "Cause", - }); - internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_asset_v1_ConditionEvaluation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor, - new java.lang.String[] { - "EvaluationValue", - }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor, - new java.lang.String[] { - "AttachedResourceFullName", - "IamBinding", - "AccessControlLists", - "IdentityList", - "FullyExplored", - }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor, - new java.lang.String[] { - "FullResourceName", "AnalysisState", - }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor, - new java.lang.String[] { - "Role", "Permission", "AnalysisState", "OneofAccess", - }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor, - new java.lang.String[] { - "Name", "AnalysisState", - }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor, - new java.lang.String[] { - "SourceNode", "TargetNode", - }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor - .getNestedTypes() - .get(4); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor, - new java.lang.String[] { - "Resources", "Accesses", "ResourceEdges", "ConditionEvaluation", - }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor - .getNestedTypes() - .get(5); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor, - new java.lang.String[] { - "Identities", "GroupEdges", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(); - com.google.cloud.osconfig.v1.Inventories.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(); - com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(); - com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.CodeProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java deleted file mode 100644 index 29eee5e6e28f..000000000000 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java +++ /dev/null @@ -1,1292 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1/asset_service.proto - -package com.google.cloud.asset.v1; - -public final class AssetServiceProto { - private AssetServiceProto() {} - - 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_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_ExportAssetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_ExportAssetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_ListAssetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_ListAssetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_ListAssetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_ListAssetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_CreateFeedRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_GetFeedRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_ListFeedsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_ListFeedsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_UpdateFeedRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_DeleteFeedRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_OutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_OutputResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_OutputResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_GcsOutputResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_GcsDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_BigQueryDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_PartitionSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_PartitionSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_PubsubDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_PubsubDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_FeedOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_Feed_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_Feed_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_SavedQuery_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_SavedQuery_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_SavedQuery_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_SavedQuery_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_GetSavedQueryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_GetSavedQueryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_MoveAnalysis_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_MoveAnalysis_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_MoveAnalysisResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_MoveAnalysisResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_MoveImpact_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_MoveImpact_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_QueryAssetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_QueryAssetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_QueryAssetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_QueryAssetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_QueryResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_QueryResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_TableSchema_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_TableSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_TableFieldSchema_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_TableFieldSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/asset/v1/asset_service.pr" - + "oto\022\025google.cloud.asset.v1\032\034google/api/a" - + "nnotations.proto\032\027google/api/client.prot" - + "o\032\037google/api/field_behavior.proto\032\031goog" - + "le/api/resource.proto\032\"google/cloud/asse" - + "t/v1/assets.proto\032\032google/iam/v1/policy." - + "proto\032#google/longrunning/operations.pro" - + "to\032\036google/protobuf/duration.proto\032\033goog" - + "le/protobuf/empty.proto\032 google/protobuf" - + "/field_mask.proto\032\034google/protobuf/struc" - + "t.proto\032\037google/protobuf/timestamp.proto" - + "\032\027google/rpc/status.proto\032\026google/type/e" - + "xpr.proto\"[\n#AnalyzeIamPolicyLongrunning" - + "Metadata\0224\n\013create_time\030\001 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\"\251\002\n\023ExportAssetsR" - + "equest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037cloudass" - + "et.googleapis.com/Asset\022-\n\tread_time\030\002 \001" - + "(\0132\032.google.protobuf.Timestamp\022\023\n\013asset_" - + "types\030\003 \003(\t\0228\n\014content_type\030\004 \001(\0162\".goog" - + "le.cloud.asset.v1.ContentType\022?\n\routput_" - + "config\030\005 \001(\0132#.google.cloud.asset.v1.Out" - + "putConfigB\003\340A\002\022\032\n\022relationship_types\030\006 \003" - + "(\t\"\275\001\n\024ExportAssetsResponse\022-\n\tread_time" - + "\030\001 \001(\0132\032.google.protobuf.Timestamp\022:\n\rou" - + "tput_config\030\002 \001(\0132#.google.cloud.asset.v" - + "1.OutputConfig\022:\n\routput_result\030\003 \001(\0132#." - + "google.cloud.asset.v1.OutputResult\"\215\002\n\021L" - + "istAssetsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!" - + "\022\037cloudasset.googleapis.com/Asset\022-\n\trea" - + "d_time\030\002 \001(\0132\032.google.protobuf.Timestamp" - + "\022\023\n\013asset_types\030\003 \003(\t\0228\n\014content_type\030\004 " - + "\001(\0162\".google.cloud.asset.v1.ContentType\022" - + "\021\n\tpage_size\030\005 \001(\005\022\022\n\npage_token\030\006 \001(\t\022\032" - + "\n\022relationship_types\030\007 \003(\t\"\212\001\n\022ListAsset" - + "sResponse\022-\n\tread_time\030\001 \001(\0132\032.google.pr" - + "otobuf.Timestamp\022,\n\006assets\030\002 \003(\0132\034.googl" - + "e.cloud.asset.v1.Asset\022\027\n\017next_page_toke" - + "n\030\003 \001(\t\"\216\002\n\034BatchGetAssetsHistoryRequest" - + "\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037cloudasset.goo" - + "gleapis.com/Asset\022\023\n\013asset_names\030\002 \003(\t\022=" - + "\n\014content_type\030\003 \001(\0162\".google.cloud.asse" - + "t.v1.ContentTypeB\003\340A\001\022@\n\020read_time_windo" - + "w\030\004 \001(\0132!.google.cloud.asset.v1.TimeWind" - + "owB\003\340A\001\022\037\n\022relationship_types\030\005 \003(\tB\003\340A\001" - + "\"U\n\035BatchGetAssetsHistoryResponse\0224\n\006ass" - + "ets\030\001 \003(\0132$.google.cloud.asset.v1.Tempor" - + "alAsset\"n\n\021CreateFeedRequest\022\023\n\006parent\030\001" - + " \001(\tB\003\340A\002\022\024\n\007feed_id\030\002 \001(\tB\003\340A\002\022.\n\004feed\030" - + "\003 \001(\0132\033.google.cloud.asset.v1.FeedB\003\340A\002\"" - + "F\n\016GetFeedRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n" - + "\036cloudasset.googleapis.com/Feed\"\'\n\020ListF" - + "eedsRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\"?\n\021List" - + "FeedsResponse\022*\n\005feeds\030\001 \003(\0132\033.google.cl" - + "oud.asset.v1.Feed\"y\n\021UpdateFeedRequest\022." - + "\n\004feed\030\001 \001(\0132\033.google.cloud.asset.v1.Fee" - + "dB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.pro" - + "tobuf.FieldMaskB\003\340A\002\"I\n\021DeleteFeedReques" - + "t\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036cloudasset.goog" - + "leapis.com/Feed\"\253\001\n\014OutputConfig\022@\n\017gcs_" - + "destination\030\001 \001(\0132%.google.cloud.asset.v" - + "1.GcsDestinationH\000\022J\n\024bigquery_destinati" - + "on\030\002 \001(\0132*.google.cloud.asset.v1.BigQuer" - + "yDestinationH\000B\r\n\013destination\"V\n\014OutputR" - + "esult\022<\n\ngcs_result\030\001 \001(\0132&.google.cloud" - + ".asset.v1.GcsOutputResultH\000B\010\n\006result\"\037\n" - + "\017GcsOutputResult\022\014\n\004uris\030\001 \003(\t\"C\n\016GcsDes" - + "tination\022\r\n\003uri\030\001 \001(\tH\000\022\024\n\nuri_prefix\030\002 " - + "\001(\tH\000B\014\n\nobject_uri\"\264\001\n\023BigQueryDestinat" - + "ion\022\024\n\007dataset\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\t" - + "B\003\340A\002\022\r\n\005force\030\003 \001(\010\022<\n\016partition_spec\030\004" - + " \001(\0132$.google.cloud.asset.v1.PartitionSp" - + "ec\022&\n\036separate_tables_per_asset_type\030\005 \001" - + "(\010\"\251\001\n\rPartitionSpec\022H\n\rpartition_key\030\001 " - + "\001(\01621.google.cloud.asset.v1.PartitionSpe" - + "c.PartitionKey\"N\n\014PartitionKey\022\035\n\031PARTIT" - + "ION_KEY_UNSPECIFIED\020\000\022\r\n\tREAD_TIME\020\001\022\020\n\014" - + "REQUEST_TIME\020\002\"\"\n\021PubsubDestination\022\r\n\005t" - + "opic\030\001 \001(\t\"i\n\020FeedOutputConfig\022F\n\022pubsub" - + "_destination\030\001 \001(\0132(.google.cloud.asset." - + "v1.PubsubDestinationH\000B\r\n\013destination\"\235\003" - + "\n\004Feed\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\013asset_names" - + "\030\002 \003(\t\022\023\n\013asset_types\030\003 \003(\t\0228\n\014content_t" - + "ype\030\004 \001(\0162\".google.cloud.asset.v1.Conten" - + "tType\022H\n\022feed_output_config\030\005 \001(\0132\'.goog" - + "le.cloud.asset.v1.FeedOutputConfigB\003\340A\002\022" - + "$\n\tcondition\030\006 \001(\0132\021.google.type.Expr\022\032\n" - + "\022relationship_types\030\007 \003(\t:\221\001\352A\215\001\n\036clouda" - + "sset.googleapis.com/Feed\022\037projects/{proj" - + "ect}/feeds/{feed}\022\035folders/{folder}/feed" - + "s/{feed}\022)organizations/{organization}/f" - + "eeds/{feed} \001\"\331\001\n\031SearchAllResourcesRequ" - + "est\022\022\n\005scope\030\001 \001(\tB\003\340A\002\022\022\n\005query\030\002 \001(\tB\003" - + "\340A\001\022\030\n\013asset_types\030\003 \003(\tB\003\340A\001\022\026\n\tpage_si" - + "ze\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005 \001(\tB\003\340A\001\022\025" - + "\n\010order_by\030\006 \001(\tB\003\340A\001\0222\n\tread_mask\030\010 \001(\013" - + "2\032.google.protobuf.FieldMaskB\003\340A\001\"s\n\032Sea" - + "rchAllResourcesResponse\022<\n\007results\030\001 \003(\013" - + "2+.google.cloud.asset.v1.ResourceSearchR" - + "esult\022\027\n\017next_page_token\030\002 \001(\t\"\247\001\n\033Searc" - + "hAllIamPoliciesRequest\022\022\n\005scope\030\001 \001(\tB\003\340" - + "A\002\022\022\n\005query\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(" - + "\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\022\030\n\013asset" - + "_types\030\005 \003(\tB\003\340A\001\022\025\n\010order_by\030\007 \001(\tB\003\340A\001" - + "\"v\n\034SearchAllIamPoliciesResponse\022=\n\007resu" - + "lts\030\001 \003(\0132,.google.cloud.asset.v1.IamPol" - + "icySearchResult\022\027\n\017next_page_token\030\002 \001(\t" - + "\"\306\007\n\026IamPolicyAnalysisQuery\022\022\n\005scope\030\001 \001" - + "(\tB\003\340A\002\022^\n\021resource_selector\030\002 \001(\0132>.goo" - + "gle.cloud.asset.v1.IamPolicyAnalysisQuer" - + "y.ResourceSelectorB\003\340A\001\022^\n\021identity_sele" - + "ctor\030\003 \001(\0132>.google.cloud.asset.v1.IamPo" - + "licyAnalysisQuery.IdentitySelectorB\003\340A\001\022" - + "Z\n\017access_selector\030\004 \001(\0132<.google.cloud." - + "asset.v1.IamPolicyAnalysisQuery.AccessSe" - + "lectorB\003\340A\001\022K\n\007options\030\005 \001(\01325.google.cl" - + "oud.asset.v1.IamPolicyAnalysisQuery.Opti" - + "onsB\003\340A\001\022^\n\021condition_context\030\006 \001(\0132>.go" - + "ogle.cloud.asset.v1.IamPolicyAnalysisQue" - + "ry.ConditionContextB\003\340A\001\0323\n\020ResourceSele" - + "ctor\022\037\n\022full_resource_name\030\001 \001(\tB\003\340A\002\032)\n" - + "\020IdentitySelector\022\025\n\010identity\030\001 \001(\tB\003\340A\002" - + "\032>\n\016AccessSelector\022\022\n\005roles\030\001 \003(\tB\003\340A\001\022\030" - + "\n\013permissions\030\002 \003(\tB\003\340A\001\032\330\001\n\007Options\022\032\n\r" - + "expand_groups\030\001 \001(\010B\003\340A\001\022\031\n\014expand_roles" - + "\030\002 \001(\010B\003\340A\001\022\035\n\020expand_resources\030\003 \001(\010B\003\340" - + "A\001\022\"\n\025output_resource_edges\030\004 \001(\010B\003\340A\001\022\037" - + "\n\022output_group_edges\030\005 \001(\010B\003\340A\001\0222\n%analy" - + "ze_service_account_impersonation\030\006 \001(\010B\003" - + "\340A\001\032T\n\020ConditionContext\0221\n\013access_time\030\001" - + " \001(\0132\032.google.protobuf.TimestampH\000B\r\n\013Ti" - + "meContext\"\303\001\n\027AnalyzeIamPolicyRequest\022J\n" - + "\016analysis_query\030\001 \001(\0132-.google.cloud.ass" - + "et.v1.IamPolicyAnalysisQueryB\003\340A\002\022!\n\024sav" - + "ed_analysis_query\030\003 \001(\tB\003\340A\001\0229\n\021executio" - + "n_timeout\030\002 \001(\0132\031.google.protobuf.Durati" - + "onB\003\340A\001\"\212\004\n\030AnalyzeIamPolicyResponse\022X\n\r" - + "main_analysis\030\001 \001(\0132A.google.cloud.asset" - + ".v1.AnalyzeIamPolicyResponse.IamPolicyAn" - + "alysis\022q\n&service_account_impersonation_" - + "analysis\030\002 \003(\0132A.google.cloud.asset.v1.A" - + "nalyzeIamPolicyResponse.IamPolicyAnalysi" - + "s\022\026\n\016fully_explored\030\003 \001(\010\032\210\002\n\021IamPolicyA" - + "nalysis\022E\n\016analysis_query\030\001 \001(\0132-.google" - + ".cloud.asset.v1.IamPolicyAnalysisQuery\022H" - + "\n\020analysis_results\030\002 \003(\0132..google.cloud." - + "asset.v1.IamPolicyAnalysisResult\022\026\n\016full" - + "y_explored\030\003 \001(\010\022J\n\023non_critical_errors\030" - + "\005 \003(\0132-.google.cloud.asset.v1.IamPolicyA" - + "nalysisState\"\264\004\n\035IamPolicyAnalysisOutput" - + "Config\022^\n\017gcs_destination\030\001 \001(\0132C.google" - + ".cloud.asset.v1.IamPolicyAnalysisOutputC" - + "onfig.GcsDestinationH\000\022h\n\024bigquery_desti" - + "nation\030\002 \001(\0132H.google.cloud.asset.v1.Iam" - + "PolicyAnalysisOutputConfig.BigQueryDesti" - + "nationH\000\032\"\n\016GcsDestination\022\020\n\003uri\030\001 \001(\tB" - + "\003\340A\002\032\225\002\n\023BigQueryDestination\022\024\n\007dataset\030" - + "\001 \001(\tB\003\340A\002\022\031\n\014table_prefix\030\002 \001(\tB\003\340A\002\022l\n" - + "\rpartition_key\030\003 \001(\0162U.google.cloud.asse" - + "t.v1.IamPolicyAnalysisOutputConfig.BigQu" - + "eryDestination.PartitionKey\022\036\n\021write_dis" - + "position\030\004 \001(\tB\003\340A\001\"?\n\014PartitionKey\022\035\n\031P" - + "ARTITION_KEY_UNSPECIFIED\020\000\022\020\n\014REQUEST_TI" - + "ME\020\001B\r\n\013destination\"\345\001\n\"AnalyzeIamPolicy" - + "LongrunningRequest\022J\n\016analysis_query\030\001 \001" - + "(\0132-.google.cloud.asset.v1.IamPolicyAnal" - + "ysisQueryB\003\340A\002\022!\n\024saved_analysis_query\030\003" - + " \001(\tB\003\340A\001\022P\n\routput_config\030\002 \001(\01324.googl" - + "e.cloud.asset.v1.IamPolicyAnalysisOutput" - + "ConfigB\003\340A\002\"%\n#AnalyzeIamPolicyLongrunni" - + "ngResponse\"\267\005\n\nSavedQuery\022\014\n\004name\030\001 \001(\t\022" - + "\023\n\013description\030\002 \001(\t\0224\n\013create_time\030\003 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\022\024\n\007cr" - + "eator\030\004 \001(\tB\003\340A\003\0229\n\020last_update_time\030\005 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022\031\n\014l" - + "ast_updater\030\006 \001(\tB\003\340A\003\022=\n\006labels\030\007 \003(\0132-" - + ".google.cloud.asset.v1.SavedQuery.Labels" - + "Entry\022?\n\007content\030\010 \001(\0132..google.cloud.as" - + "set.v1.SavedQuery.QueryContent\032s\n\014QueryC" - + "ontent\022R\n\031iam_policy_analysis_query\030\001 \001(" - + "\0132-.google.cloud.asset.v1.IamPolicyAnaly" - + "sisQueryH\000B\017\n\rquery_content\032-\n\013LabelsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\277\001\352A\273" - + "\001\n$cloudasset.googleapis.com/SavedQuery\022" - + "-projects/{project}/savedQueries/{saved_" - + "query}\022+folders/{folder}/savedQueries/{s" - + "aved_query}\0227organizations/{organization" - + "}/savedQueries/{saved_query}\"\261\001\n\027CreateS" - + "avedQueryRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&" - + "\022$cloudasset.googleapis.com/SavedQuery\022;" - + "\n\013saved_query\030\002 \001(\0132!.google.cloud.asset" - + ".v1.SavedQueryB\003\340A\002\022\033\n\016saved_query_id\030\003 " - + "\001(\tB\003\340A\002\"R\n\024GetSavedQueryRequest\022:\n\004name" - + "\030\001 \001(\tB,\340A\002\372A&\n$cloudasset.googleapis.co" - + "m/SavedQuery\"\235\001\n\027ListSavedQueriesRequest" - + "\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$cloudasset.goo" - + "gleapis.com/SavedQuery\022\023\n\006filter\030\004 \001(\tB\003" - + "\340A\001\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_toke" - + "n\030\003 \001(\tB\003\340A\001\"m\n\030ListSavedQueriesResponse" - + "\0228\n\rsaved_queries\030\001 \003(\0132!.google.cloud.a" - + "sset.v1.SavedQuery\022\027\n\017next_page_token\030\002 " - + "\001(\t\"\214\001\n\027UpdateSavedQueryRequest\022;\n\013saved" - + "_query\030\001 \001(\0132!.google.cloud.asset.v1.Sav" - + "edQueryB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.goog" - + "le.protobuf.FieldMaskB\003\340A\002\"U\n\027DeleteSave" - + "dQueryRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$clo" - + "udasset.googleapis.com/SavedQuery\"\326\001\n\022An" - + "alyzeMoveRequest\022\025\n\010resource\030\001 \001(\tB\003\340A\002\022" - + "\037\n\022destination_parent\030\002 \001(\tB\003\340A\002\022D\n\004view" - + "\030\003 \001(\01626.google.cloud.asset.v1.AnalyzeMo" - + "veRequest.AnalysisView\"B\n\014AnalysisView\022\035" - + "\n\031ANALYSIS_VIEW_UNSPECIFIED\020\000\022\010\n\004FULL\020\001\022" - + "\t\n\005BASIC\020\002\"Q\n\023AnalyzeMoveResponse\022:\n\rmov" - + "e_analysis\030\001 \003(\0132#.google.cloud.asset.v1" - + ".MoveAnalysis\"\222\001\n\014MoveAnalysis\022\024\n\014displa" - + "y_name\030\001 \001(\t\022=\n\010analysis\030\002 \001(\0132).google." - + "cloud.asset.v1.MoveAnalysisResultH\000\022#\n\005e" - + "rror\030\003 \001(\0132\022.google.rpc.StatusH\000B\010\n\006resu" - + "lt\"~\n\022MoveAnalysisResult\0223\n\010blockers\030\001 \003" - + "(\0132!.google.cloud.asset.v1.MoveImpact\0223\n" - + "\010warnings\030\002 \003(\0132!.google.cloud.asset.v1." - + "MoveImpact\"\034\n\nMoveImpact\022\016\n\006detail\030\001 \001(\t" - + "\"\327\001\n\027QueryAssetsOutputConfig\022`\n\024bigquery" - + "_destination\030\001 \001(\0132B.google.cloud.asset." - + "v1.QueryAssetsOutputConfig.BigQueryDesti" - + "nation\032Z\n\023BigQueryDestination\022\024\n\007dataset" - + "\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\tB\003\340A\002\022\031\n\021write" - + "_disposition\030\003 \001(\t\"\276\003\n\022QueryAssetsReques" - + "t\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037cloudasset.go" - + "ogleapis.com/Asset\022\030\n\tstatement\030\002 \001(\tB\003\340" - + "A\001H\000\022\034\n\rjob_reference\030\003 \001(\tB\003\340A\001H\000\022\026\n\tpa" - + "ge_size\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005 \001(\tB\003" - + "\340A\001\022/\n\007timeout\030\006 \001(\0132\031.google.protobuf.D" - + "urationB\003\340A\001\022B\n\020read_time_window\030\007 \001(\0132!" - + ".google.cloud.asset.v1.TimeWindowB\003\340A\001H\001" - + "\0224\n\tread_time\030\010 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\001H\001\022J\n\routput_config\030\t \001(\0132.." - + "google.cloud.asset.v1.QueryAssetsOutputC" - + "onfigB\003\340A\001B\007\n\005queryB\006\n\004time\"\360\001\n\023QueryAss" - + "etsResponse\022\025\n\rjob_reference\030\001 \001(\t\022\014\n\004do" - + "ne\030\002 \001(\010\022#\n\005error\030\003 \001(\0132\022.google.rpc.Sta" - + "tusH\000\022:\n\014query_result\030\004 \001(\0132\".google.clo" - + "ud.asset.v1.QueryResultH\000\022G\n\routput_conf" - + "ig\030\005 \001(\0132..google.cloud.asset.v1.QueryAs" - + "setsOutputConfigH\000B\n\n\010response\"\225\001\n\013Query" - + "Result\022%\n\004rows\030\001 \003(\0132\027.google.protobuf.S" - + "truct\0222\n\006schema\030\002 \001(\0132\".google.cloud.ass" - + "et.v1.TableSchema\022\027\n\017next_page_token\030\003 \001" - + "(\t\022\022\n\ntotal_rows\030\004 \001(\003\"F\n\013TableSchema\0227\n" - + "\006fields\030\001 \003(\0132\'.google.cloud.asset.v1.Ta" - + "bleFieldSchema\"v\n\020TableFieldSchema\022\r\n\005fi" - + "eld\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\022\014\n\004mode\030\003 \001(\t\0227\n" - + "\006fields\030\004 \003(\0132\'.google.cloud.asset.v1.Ta" - + "bleFieldSchema\"Y\n#BatchGetEffectiveIamPo" - + "liciesRequest\022\030\n\005scope\030\001 \001(\tB\t\340A\002\372A\003\022\001*\022" - + "\030\n\005names\030\003 \003(\tB\t\340A\002\372A\003\n\001*\"\376\002\n$BatchGetEf" - + "fectiveIamPoliciesResponse\022f\n\016policy_res" - + "ults\030\002 \003(\0132N.google.cloud.asset.v1.Batch" - + "GetEffectiveIamPoliciesResponse.Effectiv" - + "eIamPolicy\032\355\001\n\022EffectiveIamPolicy\022\032\n\022ful" - + "l_resource_name\030\001 \001(\t\022k\n\010policies\030\002 \003(\0132" - + "Y.google.cloud.asset.v1.BatchGetEffectiv" - + "eIamPoliciesResponse.EffectiveIamPolicy." - + "PolicyInfo\032N\n\nPolicyInfo\022\031\n\021attached_res" - + "ource\030\001 \001(\t\022%\n\006policy\030\002 \001(\0132\025.google.iam" - + ".v1.Policy*\220\001\n\013ContentType\022\034\n\030CONTENT_TY" - + "PE_UNSPECIFIED\020\000\022\014\n\010RESOURCE\020\001\022\016\n\nIAM_PO" - + "LICY\020\002\022\016\n\nORG_POLICY\020\004\022\021\n\rACCESS_POLICY\020" - + "\005\022\020\n\014OS_INVENTORY\020\006\022\020\n\014RELATIONSHIP\020\0072\233\033" - + "\n\014AssetService\022\336\001\n\014ExportAssets\022*.google" - + ".cloud.asset.v1.ExportAssetsRequest\032\035.go" - + "ogle.longrunning.Operation\"\202\001\202\323\344\223\002\"\"\035/v1" - + "/{parent=*/*}:exportAssets:\001*\312AW\n*google" - + ".cloud.asset.v1.ExportAssetsResponse\022)go" - + "ogle.cloud.asset.v1.ExportAssetsRequest\022" - + "\213\001\n\nListAssets\022(.google.cloud.asset.v1.L" - + "istAssetsRequest\032).google.cloud.asset.v1" - + ".ListAssetsResponse\"(\202\323\344\223\002\031\022\027/v1/{parent" - + "=*/*}/assets\332A\006parent\022\262\001\n\025BatchGetAssets" - + "History\0223.google.cloud.asset.v1.BatchGet" - + "AssetsHistoryRequest\0324.google.cloud.asse" - + "t.v1.BatchGetAssetsHistoryResponse\".\202\323\344\223" - + "\002(\022&/v1/{parent=*/*}:batchGetAssetsHisto" - + "ry\022\177\n\nCreateFeed\022(.google.cloud.asset.v1" - + ".CreateFeedRequest\032\033.google.cloud.asset." - + "v1.Feed\"*\202\323\344\223\002\033\"\026/v1/{parent=*/*}/feeds:" - + "\001*\332A\006parent\022t\n\007GetFeed\022%.google.cloud.as" - + "set.v1.GetFeedRequest\032\033.google.cloud.ass" - + "et.v1.Feed\"%\202\323\344\223\002\030\022\026/v1/{name=*/*/feeds/" - + "*}\332A\004name\022\207\001\n\tListFeeds\022\'.google.cloud.a" - + "sset.v1.ListFeedsRequest\032(.google.cloud." - + "asset.v1.ListFeedsResponse\"\'\202\323\344\223\002\030\022\026/v1/" - + "{parent=*/*}/feeds\332A\006parent\022\202\001\n\nUpdateFe" - + "ed\022(.google.cloud.asset.v1.UpdateFeedReq" - + "uest\032\033.google.cloud.asset.v1.Feed\"-\202\323\344\223\002" - + " 2\033/v1/{feed.name=*/*/feeds/*}:\001*\332A\004feed" - + "\022u\n\nDeleteFeed\022(.google.cloud.asset.v1.D" - + "eleteFeedRequest\032\026.google.protobuf.Empty" - + "\"%\202\323\344\223\002\030*\026/v1/{name=*/*/feeds/*}\332A\004name\022" - + "\277\001\n\022SearchAllResources\0220.google.cloud.as" - + "set.v1.SearchAllResourcesRequest\0321.googl" - + "e.cloud.asset.v1.SearchAllResourcesRespo" - + "nse\"D\202\323\344\223\002$\022\"/v1/{scope=*/*}:searchAllRe" - + "sources\332A\027scope,query,asset_types\022\273\001\n\024Se" - + "archAllIamPolicies\0222.google.cloud.asset." - + "v1.SearchAllIamPoliciesRequest\0323.google." - + "cloud.asset.v1.SearchAllIamPoliciesRespo" - + "nse\":\202\323\344\223\002&\022$/v1/{scope=*/*}:searchAllIa" - + "mPolicies\332A\013scope,query\022\254\001\n\020AnalyzeIamPo" - + "licy\022..google.cloud.asset.v1.AnalyzeIamP" - + "olicyRequest\032/.google.cloud.asset.v1.Ana" - + "lyzeIamPolicyResponse\"7\202\323\344\223\0021\022//v1/{anal" - + "ysis_query.scope=*/*}:analyzeIamPolicy\022\270" - + "\002\n\033AnalyzeIamPolicyLongrunning\0229.google." - + "cloud.asset.v1.AnalyzeIamPolicyLongrunni" - + "ngRequest\032\035.google.longrunning.Operation" - + "\"\276\001\202\323\344\223\002?\":/v1/{analysis_query.scope=*/*" - + "}:analyzeIamPolicyLongrunning:\001*\312Av\n9goo" - + "gle.cloud.asset.v1.AnalyzeIamPolicyLongr" - + "unningResponse\0229google.cloud.asset.v1.An" - + "alyzeIamPolicyLongrunningMetadata\022\214\001\n\013An" - + "alyzeMove\022).google.cloud.asset.v1.Analyz" - + "eMoveRequest\032*.google.cloud.asset.v1.Ana" - + "lyzeMoveResponse\"&\202\323\344\223\002 \022\036/v1/{resource=" - + "*/*}:analyzeMove\022\215\001\n\013QueryAssets\022).googl" - + "e.cloud.asset.v1.QueryAssetsRequest\032*.go" - + "ogle.cloud.asset.v1.QueryAssetsResponse\"" - + "\'\202\323\344\223\002!\"\034/v1/{parent=*/*}:queryAssets:\001*" - + "\022\275\001\n\020CreateSavedQuery\022..google.cloud.ass" - + "et.v1.CreateSavedQueryRequest\032!.google.c" - + "loud.asset.v1.SavedQuery\"V\202\323\344\223\002,\"\035/v1/{p" - + "arent=*/*}/savedQueries:\013saved_query\332A!p" - + "arent,saved_query,saved_query_id\022\215\001\n\rGet" - + "SavedQuery\022+.google.cloud.asset.v1.GetSa" - + "vedQueryRequest\032!.google.cloud.asset.v1." - + "SavedQuery\",\202\323\344\223\002\037\022\035/v1/{name=*/*/savedQ" - + "ueries/*}\332A\004name\022\243\001\n\020ListSavedQueries\022.." - + "google.cloud.asset.v1.ListSavedQueriesRe" - + "quest\032/.google.cloud.asset.v1.ListSavedQ" - + "ueriesResponse\".\202\323\344\223\002\037\022\035/v1/{parent=*/*}" - + "/savedQueries\332A\006parent\022\277\001\n\020UpdateSavedQu" - + "ery\022..google.cloud.asset.v1.UpdateSavedQ" - + "ueryRequest\032!.google.cloud.asset.v1.Save" - + "dQuery\"X\202\323\344\223\00282)/v1/{saved_query.name=*/" - + "*/savedQueries/*}:\013saved_query\332A\027saved_q" - + "uery,update_mask\022\210\001\n\020DeleteSavedQuery\022.." - + "google.cloud.asset.v1.DeleteSavedQueryRe" - + "quest\032\026.google.protobuf.Empty\",\202\323\344\223\002\037*\035/" - + "v1/{name=*/*/savedQueries/*}\332A\004name\022\316\001\n\034" - + "BatchGetEffectiveIamPolicies\022:.google.cl" - + "oud.asset.v1.BatchGetEffectiveIamPolicie" - + "sRequest\032;.google.cloud.asset.v1.BatchGe" - + "tEffectiveIamPoliciesResponse\"5\202\323\344\223\002/\022-/" - + "v1/{scope=*/*}/effectiveIamPolicies:batc" - + "hGet\032M\312A\031cloudasset.googleapis.com\322A.htt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "ormB\234\001\n\031com.google.cloud.asset.v1B\021Asset" - + "ServiceProtoP\001Z:google.golang.org/genpro" - + "to/googleapis/cloud/asset/v1;asset\252\002\025Goo" - + "gle.Cloud.Asset.V1\312\002\025Google\\Cloud\\Asset\\" - + "V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.asset.v1.AssetProto.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(), - com.google.rpc.StatusProto.getDescriptor(), - com.google.type.ExprProto.getDescriptor(), - }); - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - }); - internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_asset_v1_ExportAssetsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor, - new java.lang.String[] { - "Parent", - "ReadTime", - "AssetTypes", - "ContentType", - "OutputConfig", - "RelationshipTypes", - }); - internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_asset_v1_ExportAssetsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor, - new java.lang.String[] { - "ReadTime", "OutputConfig", "OutputResult", - }); - internal_static_google_cloud_asset_v1_ListAssetsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_asset_v1_ListAssetsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_ListAssetsRequest_descriptor, - new java.lang.String[] { - "Parent", - "ReadTime", - "AssetTypes", - "ContentType", - "PageSize", - "PageToken", - "RelationshipTypes", - }); - internal_static_google_cloud_asset_v1_ListAssetsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_asset_v1_ListAssetsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_ListAssetsResponse_descriptor, - new java.lang.String[] { - "ReadTime", "Assets", "NextPageToken", - }); - internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor, - new java.lang.String[] { - "Parent", "AssetNames", "ContentType", "ReadTimeWindow", "RelationshipTypes", - }); - internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor, - new java.lang.String[] { - "Assets", - }); - internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_asset_v1_CreateFeedRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor, - new java.lang.String[] { - "Parent", "FeedId", "Feed", - }); - internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_asset_v1_GetFeedRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_asset_v1_ListFeedsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor, - new java.lang.String[] { - "Parent", - }); - internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_asset_v1_ListFeedsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor, - new java.lang.String[] { - "Feeds", - }); - internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_asset_v1_UpdateFeedRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor, - new java.lang.String[] { - "Feed", "UpdateMask", - }); - internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_asset_v1_DeleteFeedRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_asset_v1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_asset_v1_OutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_OutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "BigqueryDestination", "Destination", - }); - internal_static_google_cloud_asset_v1_OutputResult_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_asset_v1_OutputResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_OutputResult_descriptor, - new java.lang.String[] { - "GcsResult", "Result", - }); - internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_asset_v1_GcsOutputResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor, - new java.lang.String[] { - "Uris", - }); - internal_static_google_cloud_asset_v1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_asset_v1_GcsDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_GcsDestination_descriptor, - new java.lang.String[] { - "Uri", "UriPrefix", "ObjectUri", - }); - internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_asset_v1_BigQueryDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor, - new java.lang.String[] { - "Dataset", "Table", "Force", "PartitionSpec", "SeparateTablesPerAssetType", - }); - internal_static_google_cloud_asset_v1_PartitionSpec_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_asset_v1_PartitionSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_PartitionSpec_descriptor, - new java.lang.String[] { - "PartitionKey", - }); - internal_static_google_cloud_asset_v1_PubsubDestination_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_asset_v1_PubsubDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_PubsubDestination_descriptor, - new java.lang.String[] { - "Topic", - }); - internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_asset_v1_FeedOutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor, - new java.lang.String[] { - "PubsubDestination", "Destination", - }); - internal_static_google_cloud_asset_v1_Feed_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_asset_v1_Feed_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_Feed_descriptor, - new java.lang.String[] { - "Name", - "AssetNames", - "AssetTypes", - "ContentType", - "FeedOutputConfig", - "Condition", - "RelationshipTypes", - }); - internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor, - new java.lang.String[] { - "Scope", "Query", "AssetTypes", "PageSize", "PageToken", "OrderBy", "ReadMask", - }); - internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor, - new java.lang.String[] { - "Results", "NextPageToken", - }); - internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor, - new java.lang.String[] { - "Scope", "Query", "PageSize", "PageToken", "AssetTypes", "OrderBy", - }); - internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor, - new java.lang.String[] { - "Results", "NextPageToken", - }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor, - new java.lang.String[] { - "Scope", - "ResourceSelector", - "IdentitySelector", - "AccessSelector", - "Options", - "ConditionContext", - }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_descriptor, - new java.lang.String[] { - "FullResourceName", - }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_descriptor, - new java.lang.String[] { - "Identity", - }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_descriptor, - new java.lang.String[] { - "Roles", "Permissions", - }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_descriptor, - new java.lang.String[] { - "ExpandGroups", - "ExpandRoles", - "ExpandResources", - "OutputResourceEdges", - "OutputGroupEdges", - "AnalyzeServiceAccountImpersonation", - }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor - .getNestedTypes() - .get(4); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_descriptor, - new java.lang.String[] { - "AccessTime", "TimeContext", - }); - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_descriptor, - new java.lang.String[] { - "AnalysisQuery", "SavedAnalysisQuery", "ExecutionTimeout", - }); - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor, - new java.lang.String[] { - "MainAnalysis", "ServiceAccountImpersonationAnalysis", "FullyExplored", - }); - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor = - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor, - new java.lang.String[] { - "AnalysisQuery", "AnalysisResults", "FullyExplored", "NonCriticalErrors", - }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "BigqueryDestination", "Destination", - }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor, - new java.lang.String[] { - "Uri", - }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor, - new java.lang.String[] { - "Dataset", "TablePrefix", "PartitionKey", "WriteDisposition", - }); - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_descriptor, - new java.lang.String[] { - "AnalysisQuery", "SavedAnalysisQuery", "OutputConfig", - }); - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_asset_v1_SavedQuery_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_asset_v1_SavedQuery_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_SavedQuery_descriptor, - new java.lang.String[] { - "Name", - "Description", - "CreateTime", - "Creator", - "LastUpdateTime", - "LastUpdater", - "Labels", - "Content", - }); - internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_descriptor = - internal_static_google_cloud_asset_v1_SavedQuery_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_descriptor, - new java.lang.String[] { - "IamPolicyAnalysisQuery", "QueryContent", - }); - internal_static_google_cloud_asset_v1_SavedQuery_LabelsEntry_descriptor = - internal_static_google_cloud_asset_v1_SavedQuery_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_asset_v1_SavedQuery_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_SavedQuery_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_descriptor, - new java.lang.String[] { - "Parent", "SavedQuery", "SavedQueryId", - }); - internal_static_google_cloud_asset_v1_GetSavedQueryRequest_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_asset_v1_GetSavedQueryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_GetSavedQueryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "PageSize", "PageToken", - }); - internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_descriptor, - new java.lang.String[] { - "SavedQueries", "NextPageToken", - }); - internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_descriptor, - new java.lang.String[] { - "SavedQuery", "UpdateMask", - }); - internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_descriptor, - new java.lang.String[] { - "Resource", "DestinationParent", "View", - }); - internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_descriptor, - new java.lang.String[] { - "MoveAnalysis", - }); - internal_static_google_cloud_asset_v1_MoveAnalysis_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_cloud_asset_v1_MoveAnalysis_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_MoveAnalysis_descriptor, - new java.lang.String[] { - "DisplayName", "Analysis", "Error", "Result", - }); - internal_static_google_cloud_asset_v1_MoveAnalysisResult_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_google_cloud_asset_v1_MoveAnalysisResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_MoveAnalysisResult_descriptor, - new java.lang.String[] { - "Blockers", "Warnings", - }); - internal_static_google_cloud_asset_v1_MoveImpact_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_google_cloud_asset_v1_MoveImpact_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_MoveImpact_descriptor, - new java.lang.String[] { - "Detail", - }); - internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor, - new java.lang.String[] { - "BigqueryDestination", - }); - internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_descriptor = - internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_descriptor, - new java.lang.String[] { - "Dataset", "Table", "WriteDisposition", - }); - internal_static_google_cloud_asset_v1_QueryAssetsRequest_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_google_cloud_asset_v1_QueryAssetsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_QueryAssetsRequest_descriptor, - new java.lang.String[] { - "Parent", - "Statement", - "JobReference", - "PageSize", - "PageToken", - "Timeout", - "ReadTimeWindow", - "ReadTime", - "OutputConfig", - "Query", - "Time", - }); - internal_static_google_cloud_asset_v1_QueryAssetsResponse_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_google_cloud_asset_v1_QueryAssetsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_QueryAssetsResponse_descriptor, - new java.lang.String[] { - "JobReference", "Done", "Error", "QueryResult", "OutputConfig", "Response", - }); - internal_static_google_cloud_asset_v1_QueryResult_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_google_cloud_asset_v1_QueryResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_QueryResult_descriptor, - new java.lang.String[] { - "Rows", "Schema", "NextPageToken", "TotalRows", - }); - internal_static_google_cloud_asset_v1_TableSchema_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_google_cloud_asset_v1_TableSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_TableSchema_descriptor, - new java.lang.String[] { - "Fields", - }); - internal_static_google_cloud_asset_v1_TableFieldSchema_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_google_cloud_asset_v1_TableFieldSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_TableFieldSchema_descriptor, - new java.lang.String[] { - "Field", "Type", "Mode", "Fields", - }); - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(50); - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_descriptor, - new java.lang.String[] { - "Scope", "Names", - }); - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(51); - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor, - new java.lang.String[] { - "PolicyResults", - }); - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor = - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor, - new java.lang.String[] { - "FullResourceName", "Policies", - }); - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor = - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor, - new java.lang.String[] { - "AttachedResource", "Policy", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.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.asset.v1.AssetProto.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(); - com.google.rpc.StatusProto.getDescriptor(); - com.google.type.ExprProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponse.java deleted file mode 100644 index a0e086b23c36..000000000000 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponse.java +++ /dev/null @@ -1,4152 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1/asset_service.proto - -package com.google.cloud.asset.v1; - -/** - * - * - *
- * A response message for
- * [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
- * 
- * - * Protobuf type {@code google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse} - */ -public final class BatchGetEffectiveIamPoliciesResponse - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse) - BatchGetEffectiveIamPoliciesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use BatchGetEffectiveIamPoliciesResponse.newBuilder() to construct. - private BatchGetEffectiveIamPoliciesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BatchGetEffectiveIamPoliciesResponse() { - policyResults_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BatchGetEffectiveIamPoliciesResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private BatchGetEffectiveIamPoliciesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - policyResults_ = - new java.util.ArrayList< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy>(); - mutable_bitField0_ |= 0x00000001; - } - policyResults_.add( - input.readMessage( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - policyResults_ = java.util.Collections.unmodifiableList(policyResults_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.class, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.Builder.class); - } - - public interface EffectiveIamPolicyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The [full_resource_name]
-     * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
-     * for which the
-     * [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]
-     * are computed. This is one of the
-     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]
-     * the caller provides in the request.
-     * 
- * - * string full_resource_name = 1; - * - * @return The fullResourceName. - */ - java.lang.String getFullResourceName(); - /** - * - * - *
-     * The [full_resource_name]
-     * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
-     * for which the
-     * [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]
-     * are computed. This is one of the
-     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]
-     * the caller provides in the request.
-     * 
- * - * string full_resource_name = 1; - * - * @return The bytes for fullResourceName. - */ - com.google.protobuf.ByteString getFullResourceNameBytes(); - - /** - * - * - *
-     * The effective policies for the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-     * These policies include the policy set on the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-     * and those set on its parents and ancestors up to the
-     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-     * Note that these policies are not filtered according to the resource type
-     * of the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-     * These policies are hierarchically ordered by
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-     * starting from
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-     * itself to its parents and ancestors, such that policies[i]'s
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-     * is the child of policies[i+1]'s
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-     * if policies[i+1] exists.
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - java.util.List< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo> - getPoliciesList(); - /** - * - * - *
-     * The effective policies for the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-     * These policies include the policy set on the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-     * and those set on its parents and ancestors up to the
-     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-     * Note that these policies are not filtered according to the resource type
-     * of the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-     * These policies are hierarchically ordered by
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-     * starting from
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-     * itself to its parents and ancestors, such that policies[i]'s
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-     * is the child of policies[i+1]'s
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-     * if policies[i+1] exists.
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo - getPolicies(int index); - /** - * - * - *
-     * The effective policies for the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-     * These policies include the policy set on the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-     * and those set on its parents and ancestors up to the
-     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-     * Note that these policies are not filtered according to the resource type
-     * of the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-     * These policies are hierarchically ordered by
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-     * starting from
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-     * itself to its parents and ancestors, such that policies[i]'s
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-     * is the child of policies[i+1]'s
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-     * if policies[i+1] exists.
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - int getPoliciesCount(); - /** - * - * - *
-     * The effective policies for the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-     * These policies include the policy set on the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-     * and those set on its parents and ancestors up to the
-     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-     * Note that these policies are not filtered according to the resource type
-     * of the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-     * These policies are hierarchically ordered by
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-     * starting from
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-     * itself to its parents and ancestors, such that policies[i]'s
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-     * is the child of policies[i+1]'s
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-     * if policies[i+1] exists.
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - java.util.List< - ? extends - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfoOrBuilder> - getPoliciesOrBuilderList(); - /** - * - * - *
-     * The effective policies for the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-     * These policies include the policy set on the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-     * and those set on its parents and ancestors up to the
-     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-     * Note that these policies are not filtered according to the resource type
-     * of the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-     * These policies are hierarchically ordered by
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-     * starting from
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-     * itself to its parents and ancestors, such that policies[i]'s
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-     * is the child of policies[i+1]'s
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-     * if policies[i+1] exists.
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfoOrBuilder - getPoliciesOrBuilder(int index); - } - /** - * - * - *
-   * The effective IAM policies on one resource.
-   * 
- * - * Protobuf type {@code - * google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy} - */ - public static final class EffectiveIamPolicy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) - EffectiveIamPolicyOrBuilder { - private static final long serialVersionUID = 0L; - // Use EffectiveIamPolicy.newBuilder() to construct. - private EffectiveIamPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private EffectiveIamPolicy() { - fullResourceName_ = ""; - policies_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new EffectiveIamPolicy(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private EffectiveIamPolicy( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - fullResourceName_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - policies_ = - new java.util.ArrayList< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy.PolicyInfo>(); - mutable_bitField0_ |= 0x00000001; - } - policies_.add( - input.readMessage( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy.PolicyInfo.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - policies_ = java.util.Collections.unmodifiableList(policies_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .class, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .Builder.class); - } - - public interface PolicyInfoOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-       * The full resource name the
-       * [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy]
-       * is directly attached to.
-       * 
- * - * string attached_resource = 1; - * - * @return The attachedResource. - */ - java.lang.String getAttachedResource(); - /** - * - * - *
-       * The full resource name the
-       * [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy]
-       * is directly attached to.
-       * 
- * - * string attached_resource = 1; - * - * @return The bytes for attachedResource. - */ - com.google.protobuf.ByteString getAttachedResourceBytes(); - - /** - * - * - *
-       * The IAM policy that's directly attached to the
-       * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
-       * 
- * - * .google.iam.v1.Policy policy = 2; - * - * @return Whether the policy field is set. - */ - boolean hasPolicy(); - /** - * - * - *
-       * The IAM policy that's directly attached to the
-       * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
-       * 
- * - * .google.iam.v1.Policy policy = 2; - * - * @return The policy. - */ - com.google.iam.v1.Policy getPolicy(); - /** - * - * - *
-       * The IAM policy that's directly attached to the
-       * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
-       * 
- * - * .google.iam.v1.Policy policy = 2; - */ - com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder(); - } - /** - * - * - *
-     * The IAM policy and its attached resource.
-     * 
- * - * Protobuf type {@code - * google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo} - */ - public static final class PolicyInfo extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo) - PolicyInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use PolicyInfo.newBuilder() to construct. - private PolicyInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PolicyInfo() { - attachedResource_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PolicyInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PolicyInfo( - 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(); - - attachedResource_ = s; - break; - } - case 18: - { - com.google.iam.v1.Policy.Builder subBuilder = null; - if (policy_ != null) { - subBuilder = policy_.toBuilder(); - } - policy_ = input.readMessage(com.google.iam.v1.Policy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(policy_); - policy_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo.class, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo.Builder.class); - } - - public static final int ATTACHED_RESOURCE_FIELD_NUMBER = 1; - private volatile java.lang.Object attachedResource_; - /** - * - * - *
-       * The full resource name the
-       * [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy]
-       * is directly attached to.
-       * 
- * - * string attached_resource = 1; - * - * @return The attachedResource. - */ - @java.lang.Override - public java.lang.String getAttachedResource() { - java.lang.Object ref = attachedResource_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - attachedResource_ = s; - return s; - } - } - /** - * - * - *
-       * The full resource name the
-       * [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy]
-       * is directly attached to.
-       * 
- * - * string attached_resource = 1; - * - * @return The bytes for attachedResource. - */ - @java.lang.Override - public com.google.protobuf.ByteString getAttachedResourceBytes() { - java.lang.Object ref = attachedResource_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - attachedResource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int POLICY_FIELD_NUMBER = 2; - private com.google.iam.v1.Policy policy_; - /** - * - * - *
-       * The IAM policy that's directly attached to the
-       * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
-       * 
- * - * .google.iam.v1.Policy policy = 2; - * - * @return Whether the policy field is set. - */ - @java.lang.Override - public boolean hasPolicy() { - return policy_ != null; - } - /** - * - * - *
-       * The IAM policy that's directly attached to the
-       * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
-       * 
- * - * .google.iam.v1.Policy policy = 2; - * - * @return The policy. - */ - @java.lang.Override - public com.google.iam.v1.Policy getPolicy() { - return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; - } - /** - * - * - *
-       * The IAM policy that's directly attached to the
-       * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
-       * 
- * - * .google.iam.v1.Policy policy = 2; - */ - @java.lang.Override - public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { - return getPolicy(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attachedResource_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attachedResource_); - } - if (policy_ != null) { - output.writeMessage(2, getPolicy()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attachedResource_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, attachedResource_); - } - if (policy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy()); - } - 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo)) { - return super.equals(obj); - } - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo - other = - (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo) - obj; - - if (!getAttachedResource().equals(other.getAttachedResource())) return false; - if (hasPolicy() != other.hasPolicy()) return false; - if (hasPolicy()) { - if (!getPolicy().equals(other.getPolicy())) 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) + ATTACHED_RESOURCE_FIELD_NUMBER; - hash = (53 * hash) + getAttachedResource().hashCode(); - if (hasPolicy()) { - hash = (37 * hash) + POLICY_FIELD_NUMBER; - hash = (53 * hash) + getPolicy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy.PolicyInfo - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy.PolicyInfo - 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.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy.PolicyInfo - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy.PolicyInfo - 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.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy.PolicyInfo - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy.PolicyInfo - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy.PolicyInfo - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy.PolicyInfo - 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.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy.PolicyInfo - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy.PolicyInfo - 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.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy.PolicyInfo - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy.PolicyInfo - 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo - 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; - } - /** - * - * - *
-       * The IAM policy and its attached resource.
-       * 
- * - * Protobuf type {@code - * google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo) - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo.class, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo.Builder.class); - } - - // Construct using - // com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.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(); - attachedResource_ = ""; - - if (policyBuilder_ == null) { - policy_ = null; - } else { - policy_ = null; - policyBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor; - } - - @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo - getDefaultInstanceForType() { - return com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo - build() { - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo - buildPartial() { - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo - result = - new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy.PolicyInfo(this); - result.attachedResource_ = attachedResource_; - if (policyBuilder_ == null) { - result.policy_ = policy_; - } else { - result.policy_ = policyBuilder_.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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo) { - return mergeFrom( - (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo - other) { - if (other - == com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo.getDefaultInstance()) return this; - if (!other.getAttachedResource().isEmpty()) { - attachedResource_ = other.attachedResource_; - onChanged(); - } - if (other.hasPolicy()) { - mergePolicy(other.getPolicy()); - } - 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo - parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object attachedResource_ = ""; - /** - * - * - *
-         * The full resource name the
-         * [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy]
-         * is directly attached to.
-         * 
- * - * string attached_resource = 1; - * - * @return The attachedResource. - */ - public java.lang.String getAttachedResource() { - java.lang.Object ref = attachedResource_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - attachedResource_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-         * The full resource name the
-         * [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy]
-         * is directly attached to.
-         * 
- * - * string attached_resource = 1; - * - * @return The bytes for attachedResource. - */ - public com.google.protobuf.ByteString getAttachedResourceBytes() { - java.lang.Object ref = attachedResource_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - attachedResource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-         * The full resource name the
-         * [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy]
-         * is directly attached to.
-         * 
- * - * string attached_resource = 1; - * - * @param value The attachedResource to set. - * @return This builder for chaining. - */ - public Builder setAttachedResource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - attachedResource_ = value; - onChanged(); - return this; - } - /** - * - * - *
-         * The full resource name the
-         * [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy]
-         * is directly attached to.
-         * 
- * - * string attached_resource = 1; - * - * @return This builder for chaining. - */ - public Builder clearAttachedResource() { - - attachedResource_ = getDefaultInstance().getAttachedResource(); - onChanged(); - return this; - } - /** - * - * - *
-         * The full resource name the
-         * [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy]
-         * is directly attached to.
-         * 
- * - * string attached_resource = 1; - * - * @param value The bytes for attachedResource to set. - * @return This builder for chaining. - */ - public Builder setAttachedResourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - attachedResource_ = value; - onChanged(); - return this; - } - - private com.google.iam.v1.Policy policy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, - com.google.iam.v1.Policy.Builder, - com.google.iam.v1.PolicyOrBuilder> - policyBuilder_; - /** - * - * - *
-         * The IAM policy that's directly attached to the
-         * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
-         * 
- * - * .google.iam.v1.Policy policy = 2; - * - * @return Whether the policy field is set. - */ - public boolean hasPolicy() { - return policyBuilder_ != null || policy_ != null; - } - /** - * - * - *
-         * The IAM policy that's directly attached to the
-         * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
-         * 
- * - * .google.iam.v1.Policy policy = 2; - * - * @return The policy. - */ - public com.google.iam.v1.Policy getPolicy() { - if (policyBuilder_ == null) { - return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; - } else { - return policyBuilder_.getMessage(); - } - } - /** - * - * - *
-         * The IAM policy that's directly attached to the
-         * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
-         * 
- * - * .google.iam.v1.Policy policy = 2; - */ - public Builder setPolicy(com.google.iam.v1.Policy value) { - if (policyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - policy_ = value; - onChanged(); - } else { - policyBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-         * The IAM policy that's directly attached to the
-         * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
-         * 
- * - * .google.iam.v1.Policy policy = 2; - */ - public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) { - if (policyBuilder_ == null) { - policy_ = builderForValue.build(); - onChanged(); - } else { - policyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-         * The IAM policy that's directly attached to the
-         * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
-         * 
- * - * .google.iam.v1.Policy policy = 2; - */ - public Builder mergePolicy(com.google.iam.v1.Policy value) { - if (policyBuilder_ == null) { - if (policy_ != null) { - policy_ = - com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial(); - } else { - policy_ = value; - } - onChanged(); - } else { - policyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-         * The IAM policy that's directly attached to the
-         * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
-         * 
- * - * .google.iam.v1.Policy policy = 2; - */ - public Builder clearPolicy() { - if (policyBuilder_ == null) { - policy_ = null; - onChanged(); - } else { - policy_ = null; - policyBuilder_ = null; - } - - return this; - } - /** - * - * - *
-         * The IAM policy that's directly attached to the
-         * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
-         * 
- * - * .google.iam.v1.Policy policy = 2; - */ - public com.google.iam.v1.Policy.Builder getPolicyBuilder() { - - onChanged(); - return getPolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-         * The IAM policy that's directly attached to the
-         * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
-         * 
- * - * .google.iam.v1.Policy policy = 2; - */ - public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { - if (policyBuilder_ != null) { - return policyBuilder_.getMessageOrBuilder(); - } else { - return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; - } - } - /** - * - * - *
-         * The IAM policy that's directly attached to the
-         * [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
-         * 
- * - * .google.iam.v1.Policy policy = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, - com.google.iam.v1.Policy.Builder, - com.google.iam.v1.PolicyOrBuilder> - getPolicyFieldBuilder() { - if (policyBuilder_ == null) { - policyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, - com.google.iam.v1.Policy.Builder, - com.google.iam.v1.PolicyOrBuilder>( - getPolicy(), getParentForChildren(), isClean()); - policy_ = null; - } - return policyBuilder_; - } - - @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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo) - } - - // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo) - private static final com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy.PolicyInfo - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo(); - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy.PolicyInfo - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PolicyInfo(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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int FULL_RESOURCE_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object fullResourceName_; - /** - * - * - *
-     * The [full_resource_name]
-     * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
-     * for which the
-     * [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]
-     * are computed. This is one of the
-     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]
-     * the caller provides in the request.
-     * 
- * - * string full_resource_name = 1; - * - * @return The fullResourceName. - */ - @java.lang.Override - public java.lang.String getFullResourceName() { - java.lang.Object ref = fullResourceName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fullResourceName_ = s; - return s; - } - } - /** - * - * - *
-     * The [full_resource_name]
-     * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
-     * for which the
-     * [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]
-     * are computed. This is one of the
-     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]
-     * the caller provides in the request.
-     * 
- * - * string full_resource_name = 1; - * - * @return The bytes for fullResourceName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFullResourceNameBytes() { - java.lang.Object ref = fullResourceName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fullResourceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int POLICIES_FIELD_NUMBER = 2; - private java.util.List< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo> - policies_; - /** - * - * - *
-     * The effective policies for the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-     * These policies include the policy set on the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-     * and those set on its parents and ancestors up to the
-     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-     * Note that these policies are not filtered according to the resource type
-     * of the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-     * These policies are hierarchically ordered by
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-     * starting from
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-     * itself to its parents and ancestors, such that policies[i]'s
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-     * is the child of policies[i+1]'s
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-     * if policies[i+1] exists.
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - @java.lang.Override - public java.util.List< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo> - getPoliciesList() { - return policies_; - } - /** - * - * - *
-     * The effective policies for the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-     * These policies include the policy set on the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-     * and those set on its parents and ancestors up to the
-     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-     * Note that these policies are not filtered according to the resource type
-     * of the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-     * These policies are hierarchically ordered by
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-     * starting from
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-     * itself to its parents and ancestors, such that policies[i]'s
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-     * is the child of policies[i+1]'s
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-     * if policies[i+1] exists.
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfoOrBuilder> - getPoliciesOrBuilderList() { - return policies_; - } - /** - * - * - *
-     * The effective policies for the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-     * These policies include the policy set on the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-     * and those set on its parents and ancestors up to the
-     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-     * Note that these policies are not filtered according to the resource type
-     * of the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-     * These policies are hierarchically ordered by
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-     * starting from
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-     * itself to its parents and ancestors, such that policies[i]'s
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-     * is the child of policies[i+1]'s
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-     * if policies[i+1] exists.
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - @java.lang.Override - public int getPoliciesCount() { - return policies_.size(); - } - /** - * - * - *
-     * The effective policies for the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-     * These policies include the policy set on the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-     * and those set on its parents and ancestors up to the
-     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-     * Note that these policies are not filtered according to the resource type
-     * of the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-     * These policies are hierarchically ordered by
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-     * starting from
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-     * itself to its parents and ancestors, such that policies[i]'s
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-     * is the child of policies[i+1]'s
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-     * if policies[i+1] exists.
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo - getPolicies(int index) { - return policies_.get(index); - } - /** - * - * - *
-     * The effective policies for the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-     * These policies include the policy set on the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-     * and those set on its parents and ancestors up to the
-     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-     * Note that these policies are not filtered according to the resource type
-     * of the
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-     * These policies are hierarchically ordered by
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-     * starting from
-     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-     * itself to its parents and ancestors, such that policies[i]'s
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-     * is the child of policies[i+1]'s
-     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-     * if policies[i+1] exists.
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfoOrBuilder - getPoliciesOrBuilder(int index) { - return policies_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fullResourceName_); - } - for (int i = 0; i < policies_.size(); i++) { - output.writeMessage(2, policies_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fullResourceName_); - } - for (int i = 0; i < policies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, policies_.get(i)); - } - 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy)) { - return super.equals(obj); - } - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy other = - (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) obj; - - if (!getFullResourceName().equals(other.getFullResourceName())) return false; - if (!getPoliciesList().equals(other.getPoliciesList())) 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) + FULL_RESOURCE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFullResourceName().hashCode(); - if (getPoliciesCount() > 0) { - hash = (37 * hash) + POLICIES_FIELD_NUMBER; - hash = (53 * hash) + getPoliciesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - 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; - } - /** - * - * - *
-     * The effective IAM policies on one resource.
-     * 
- * - * Protobuf type {@code - * google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .class, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .Builder.class); - } - - // Construct using - // com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getPoliciesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - fullResourceName_ = ""; - - if (policiesBuilder_ == null) { - policies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - policiesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor; - } - - @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - getDefaultInstanceForType() { - return com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - build() { - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - buildPartial() { - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy result = - new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy( - this); - int from_bitField0_ = bitField0_; - result.fullResourceName_ = fullResourceName_; - if (policiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - policies_ = java.util.Collections.unmodifiableList(policies_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.policies_ = policies_; - } else { - result.policies_ = policiesBuilder_.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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) { - return mergeFrom( - (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy other) { - if (other - == com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .getDefaultInstance()) return this; - if (!other.getFullResourceName().isEmpty()) { - fullResourceName_ = other.fullResourceName_; - onChanged(); - } - if (policiesBuilder_ == null) { - if (!other.policies_.isEmpty()) { - if (policies_.isEmpty()) { - policies_ = other.policies_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePoliciesIsMutable(); - policies_.addAll(other.policies_); - } - onChanged(); - } - } else { - if (!other.policies_.isEmpty()) { - if (policiesBuilder_.isEmpty()) { - policiesBuilder_.dispose(); - policiesBuilder_ = null; - policies_ = other.policies_; - bitField0_ = (bitField0_ & ~0x00000001); - policiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPoliciesFieldBuilder() - : null; - } else { - policiesBuilder_.addAllMessages(other.policies_); - } - } - } - 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object fullResourceName_ = ""; - /** - * - * - *
-       * The [full_resource_name]
-       * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
-       * for which the
-       * [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]
-       * are computed. This is one of the
-       * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]
-       * the caller provides in the request.
-       * 
- * - * string full_resource_name = 1; - * - * @return The fullResourceName. - */ - public java.lang.String getFullResourceName() { - java.lang.Object ref = fullResourceName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fullResourceName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * The [full_resource_name]
-       * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
-       * for which the
-       * [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]
-       * are computed. This is one of the
-       * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]
-       * the caller provides in the request.
-       * 
- * - * string full_resource_name = 1; - * - * @return The bytes for fullResourceName. - */ - public com.google.protobuf.ByteString getFullResourceNameBytes() { - java.lang.Object ref = fullResourceName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fullResourceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * The [full_resource_name]
-       * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
-       * for which the
-       * [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]
-       * are computed. This is one of the
-       * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]
-       * the caller provides in the request.
-       * 
- * - * string full_resource_name = 1; - * - * @param value The fullResourceName to set. - * @return This builder for chaining. - */ - public Builder setFullResourceName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fullResourceName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The [full_resource_name]
-       * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
-       * for which the
-       * [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]
-       * are computed. This is one of the
-       * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]
-       * the caller provides in the request.
-       * 
- * - * string full_resource_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearFullResourceName() { - - fullResourceName_ = getDefaultInstance().getFullResourceName(); - onChanged(); - return this; - } - /** - * - * - *
-       * The [full_resource_name]
-       * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
-       * for which the
-       * [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]
-       * are computed. This is one of the
-       * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]
-       * the caller provides in the request.
-       * 
- * - * string full_resource_name = 1; - * - * @param value The bytes for fullResourceName to set. - * @return This builder for chaining. - */ - public Builder setFullResourceNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fullResourceName_ = value; - onChanged(); - return this; - } - - private java.util.List< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo> - policies_ = java.util.Collections.emptyList(); - - private void ensurePoliciesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - policies_ = - new java.util.ArrayList< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo>(policies_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo.Builder, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfoOrBuilder> - policiesBuilder_; - - /** - * - * - *
-       * The effective policies for the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies include the policy set on the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * and those set on its parents and ancestors up to the
-       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-       * Note that these policies are not filtered according to the resource type
-       * of the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies are hierarchically ordered by
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * starting from
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * itself to its parents and ancestors, such that policies[i]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * is the child of policies[i+1]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-       * if policies[i+1] exists.
-       * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - public java.util.List< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo> - getPoliciesList() { - if (policiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(policies_); - } else { - return policiesBuilder_.getMessageList(); - } - } - /** - * - * - *
-       * The effective policies for the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies include the policy set on the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * and those set on its parents and ancestors up to the
-       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-       * Note that these policies are not filtered according to the resource type
-       * of the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies are hierarchically ordered by
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * starting from
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * itself to its parents and ancestors, such that policies[i]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * is the child of policies[i+1]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-       * if policies[i+1] exists.
-       * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - public int getPoliciesCount() { - if (policiesBuilder_ == null) { - return policies_.size(); - } else { - return policiesBuilder_.getCount(); - } - } - /** - * - * - *
-       * The effective policies for the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies include the policy set on the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * and those set on its parents and ancestors up to the
-       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-       * Note that these policies are not filtered according to the resource type
-       * of the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies are hierarchically ordered by
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * starting from
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * itself to its parents and ancestors, such that policies[i]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * is the child of policies[i+1]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-       * if policies[i+1] exists.
-       * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo - getPolicies(int index) { - if (policiesBuilder_ == null) { - return policies_.get(index); - } else { - return policiesBuilder_.getMessage(index); - } - } - /** - * - * - *
-       * The effective policies for the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies include the policy set on the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * and those set on its parents and ancestors up to the
-       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-       * Note that these policies are not filtered according to the resource type
-       * of the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies are hierarchically ordered by
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * starting from
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * itself to its parents and ancestors, such that policies[i]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * is the child of policies[i+1]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-       * if policies[i+1] exists.
-       * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - public Builder setPolicies( - int index, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo - value) { - if (policiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePoliciesIsMutable(); - policies_.set(index, value); - onChanged(); - } else { - policiesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-       * The effective policies for the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies include the policy set on the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * and those set on its parents and ancestors up to the
-       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-       * Note that these policies are not filtered according to the resource type
-       * of the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies are hierarchically ordered by
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * starting from
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * itself to its parents and ancestors, such that policies[i]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * is the child of policies[i+1]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-       * if policies[i+1] exists.
-       * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - public Builder setPolicies( - int index, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo.Builder - builderForValue) { - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - policies_.set(index, builderForValue.build()); - onChanged(); - } else { - policiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * The effective policies for the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies include the policy set on the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * and those set on its parents and ancestors up to the
-       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-       * Note that these policies are not filtered according to the resource type
-       * of the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies are hierarchically ordered by
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * starting from
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * itself to its parents and ancestors, such that policies[i]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * is the child of policies[i+1]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-       * if policies[i+1] exists.
-       * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - public Builder addPolicies( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo - value) { - if (policiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePoliciesIsMutable(); - policies_.add(value); - onChanged(); - } else { - policiesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-       * The effective policies for the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies include the policy set on the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * and those set on its parents and ancestors up to the
-       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-       * Note that these policies are not filtered according to the resource type
-       * of the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies are hierarchically ordered by
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * starting from
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * itself to its parents and ancestors, such that policies[i]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * is the child of policies[i+1]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-       * if policies[i+1] exists.
-       * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - public Builder addPolicies( - int index, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo - value) { - if (policiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePoliciesIsMutable(); - policies_.add(index, value); - onChanged(); - } else { - policiesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-       * The effective policies for the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies include the policy set on the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * and those set on its parents and ancestors up to the
-       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-       * Note that these policies are not filtered according to the resource type
-       * of the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies are hierarchically ordered by
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * starting from
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * itself to its parents and ancestors, such that policies[i]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * is the child of policies[i+1]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-       * if policies[i+1] exists.
-       * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - public Builder addPolicies( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo.Builder - builderForValue) { - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - policies_.add(builderForValue.build()); - onChanged(); - } else { - policiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * The effective policies for the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies include the policy set on the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * and those set on its parents and ancestors up to the
-       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-       * Note that these policies are not filtered according to the resource type
-       * of the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies are hierarchically ordered by
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * starting from
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * itself to its parents and ancestors, such that policies[i]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * is the child of policies[i+1]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-       * if policies[i+1] exists.
-       * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - public Builder addPolicies( - int index, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo.Builder - builderForValue) { - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - policies_.add(index, builderForValue.build()); - onChanged(); - } else { - policiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-       * The effective policies for the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies include the policy set on the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * and those set on its parents and ancestors up to the
-       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-       * Note that these policies are not filtered according to the resource type
-       * of the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies are hierarchically ordered by
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * starting from
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * itself to its parents and ancestors, such that policies[i]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * is the child of policies[i+1]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-       * if policies[i+1] exists.
-       * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - public Builder addAllPolicies( - java.lang.Iterable< - ? extends - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy.PolicyInfo> - values) { - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policies_); - onChanged(); - } else { - policiesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-       * The effective policies for the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies include the policy set on the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * and those set on its parents and ancestors up to the
-       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-       * Note that these policies are not filtered according to the resource type
-       * of the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies are hierarchically ordered by
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * starting from
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * itself to its parents and ancestors, such that policies[i]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * is the child of policies[i+1]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-       * if policies[i+1] exists.
-       * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - public Builder clearPolicies() { - if (policiesBuilder_ == null) { - policies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - policiesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-       * The effective policies for the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies include the policy set on the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * and those set on its parents and ancestors up to the
-       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-       * Note that these policies are not filtered according to the resource type
-       * of the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies are hierarchically ordered by
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * starting from
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * itself to its parents and ancestors, such that policies[i]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * is the child of policies[i+1]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-       * if policies[i+1] exists.
-       * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - public Builder removePolicies(int index) { - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - policies_.remove(index); - onChanged(); - } else { - policiesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-       * The effective policies for the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies include the policy set on the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * and those set on its parents and ancestors up to the
-       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-       * Note that these policies are not filtered according to the resource type
-       * of the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies are hierarchically ordered by
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * starting from
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * itself to its parents and ancestors, such that policies[i]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * is the child of policies[i+1]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-       * if policies[i+1] exists.
-       * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo.Builder - getPoliciesBuilder(int index) { - return getPoliciesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-       * The effective policies for the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies include the policy set on the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * and those set on its parents and ancestors up to the
-       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-       * Note that these policies are not filtered according to the resource type
-       * of the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies are hierarchically ordered by
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * starting from
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * itself to its parents and ancestors, such that policies[i]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * is the child of policies[i+1]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-       * if policies[i+1] exists.
-       * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfoOrBuilder - getPoliciesOrBuilder(int index) { - if (policiesBuilder_ == null) { - return policies_.get(index); - } else { - return policiesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-       * The effective policies for the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies include the policy set on the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * and those set on its parents and ancestors up to the
-       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-       * Note that these policies are not filtered according to the resource type
-       * of the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies are hierarchically ordered by
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * starting from
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * itself to its parents and ancestors, such that policies[i]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * is the child of policies[i+1]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-       * if policies[i+1] exists.
-       * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - public java.util.List< - ? extends - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfoOrBuilder> - getPoliciesOrBuilderList() { - if (policiesBuilder_ != null) { - return policiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(policies_); - } - } - /** - * - * - *
-       * The effective policies for the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies include the policy set on the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * and those set on its parents and ancestors up to the
-       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-       * Note that these policies are not filtered according to the resource type
-       * of the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies are hierarchically ordered by
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * starting from
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * itself to its parents and ancestors, such that policies[i]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * is the child of policies[i+1]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-       * if policies[i+1] exists.
-       * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo.Builder - addPoliciesBuilder() { - return getPoliciesFieldBuilder() - .addBuilder( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo.getDefaultInstance()); - } - /** - * - * - *
-       * The effective policies for the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies include the policy set on the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * and those set on its parents and ancestors up to the
-       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-       * Note that these policies are not filtered according to the resource type
-       * of the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies are hierarchically ordered by
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * starting from
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * itself to its parents and ancestors, such that policies[i]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * is the child of policies[i+1]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-       * if policies[i+1] exists.
-       * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo.Builder - addPoliciesBuilder(int index) { - return getPoliciesFieldBuilder() - .addBuilder( - index, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo.getDefaultInstance()); - } - /** - * - * - *
-       * The effective policies for the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies include the policy set on the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * and those set on its parents and ancestors up to the
-       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
-       * Note that these policies are not filtered according to the resource type
-       * of the
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
-       * These policies are hierarchically ordered by
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * starting from
-       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
-       * itself to its parents and ancestors, such that policies[i]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
-       * is the child of policies[i+1]'s
-       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
-       * if policies[i+1] exists.
-       * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - * - */ - public java.util.List< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo.Builder> - getPoliciesBuilderList() { - return getPoliciesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo.Builder, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfoOrBuilder> - getPoliciesFieldBuilder() { - if (policiesBuilder_ == null) { - policiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfo.Builder, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .PolicyInfoOrBuilder>( - policies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - policies_ = null; - } - return policiesBuilder_; - } - - @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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) - } - - // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) - private static final com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy(); - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EffectiveIamPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EffectiveIamPolicy(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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int POLICY_RESULTS_FIELD_NUMBER = 2; - private java.util.List< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy> - policyResults_; - /** - * - * - *
-   * The effective policies for a batch of resources. Note that the results
-   * order is the same as the order of
-   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-   * When a resource does not have any effective IAM policies, its corresponding
-   * policy_result will contain empty
-   * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-   * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - @java.lang.Override - public java.util.List< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy> - getPolicyResultsList() { - return policyResults_; - } - /** - * - * - *
-   * The effective policies for a batch of resources. Note that the results
-   * order is the same as the order of
-   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-   * When a resource does not have any effective IAM policies, its corresponding
-   * policy_result will contain empty
-   * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-   * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicyOrBuilder> - getPolicyResultsOrBuilderList() { - return policyResults_; - } - /** - * - * - *
-   * The effective policies for a batch of resources. Note that the results
-   * order is the same as the order of
-   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-   * When a resource does not have any effective IAM policies, its corresponding
-   * policy_result will contain empty
-   * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-   * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - @java.lang.Override - public int getPolicyResultsCount() { - return policyResults_.size(); - } - /** - * - * - *
-   * The effective policies for a batch of resources. Note that the results
-   * order is the same as the order of
-   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-   * When a resource does not have any effective IAM policies, its corresponding
-   * policy_result will contain empty
-   * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-   * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - getPolicyResults(int index) { - return policyResults_.get(index); - } - /** - * - * - *
-   * The effective policies for a batch of resources. Note that the results
-   * order is the same as the order of
-   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-   * When a resource does not have any effective IAM policies, its corresponding
-   * policy_result will contain empty
-   * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-   * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicyOrBuilder - getPolicyResultsOrBuilder(int index) { - return policyResults_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < policyResults_.size(); i++) { - output.writeMessage(2, policyResults_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < policyResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, policyResults_.get(i)); - } - 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.asset.v1.BatchGetEffectiveIamPoliciesResponse)) { - return super.equals(obj); - } - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse other = - (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse) obj; - - if (!getPolicyResultsList().equals(other.getPolicyResultsList())) 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(); - if (getPolicyResultsCount() > 0) { - hash = (37 * hash) + POLICY_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + getPolicyResultsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse 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.asset.v1.BatchGetEffectiveIamPoliciesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse 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.asset.v1.BatchGetEffectiveIamPoliciesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse 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.asset.v1.BatchGetEffectiveIamPoliciesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse 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.asset.v1.BatchGetEffectiveIamPoliciesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse 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.asset.v1.BatchGetEffectiveIamPoliciesResponse 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; - } - /** - * - * - *
-   * A response message for
-   * [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
-   * 
- * - * Protobuf type {@code google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse) - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.class, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.Builder.class); - } - - // Construct using com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getPolicyResultsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (policyResultsBuilder_ == null) { - policyResults_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - policyResultsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - getDefaultInstanceForType() { - return com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse build() { - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse buildPartial() { - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse result = - new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse(this); - int from_bitField0_ = bitField0_; - if (policyResultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - policyResults_ = java.util.Collections.unmodifiableList(policyResults_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.policyResults_ = policyResults_; - } else { - result.policyResults_ = policyResultsBuilder_.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.asset.v1.BatchGetEffectiveIamPoliciesResponse) { - return mergeFrom((com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse other) { - if (other - == com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.getDefaultInstance()) - return this; - if (policyResultsBuilder_ == null) { - if (!other.policyResults_.isEmpty()) { - if (policyResults_.isEmpty()) { - policyResults_ = other.policyResults_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePolicyResultsIsMutable(); - policyResults_.addAll(other.policyResults_); - } - onChanged(); - } - } else { - if (!other.policyResults_.isEmpty()) { - if (policyResultsBuilder_.isEmpty()) { - policyResultsBuilder_.dispose(); - policyResultsBuilder_ = null; - policyResults_ = other.policyResults_; - bitField0_ = (bitField0_ & ~0x00000001); - policyResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPolicyResultsFieldBuilder() - : null; - } else { - policyResultsBuilder_.addAllMessages(other.policyResults_); - } - } - } - 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.asset.v1.BatchGetEffectiveIamPoliciesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy> - policyResults_ = java.util.Collections.emptyList(); - - private void ensurePolicyResultsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - policyResults_ = - new java.util.ArrayList< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy>( - policyResults_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .Builder, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicyOrBuilder> - policyResultsBuilder_; - - /** - * - * - *
-     * The effective policies for a batch of resources. Note that the results
-     * order is the same as the order of
-     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-     * When a resource does not have any effective IAM policies, its corresponding
-     * policy_result will contain empty
-     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - public java.util.List< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy> - getPolicyResultsList() { - if (policyResultsBuilder_ == null) { - return java.util.Collections.unmodifiableList(policyResults_); - } else { - return policyResultsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The effective policies for a batch of resources. Note that the results
-     * order is the same as the order of
-     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-     * When a resource does not have any effective IAM policies, its corresponding
-     * policy_result will contain empty
-     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - public int getPolicyResultsCount() { - if (policyResultsBuilder_ == null) { - return policyResults_.size(); - } else { - return policyResultsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The effective policies for a batch of resources. Note that the results
-     * order is the same as the order of
-     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-     * When a resource does not have any effective IAM policies, its corresponding
-     * policy_result will contain empty
-     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - getPolicyResults(int index) { - if (policyResultsBuilder_ == null) { - return policyResults_.get(index); - } else { - return policyResultsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The effective policies for a batch of resources. Note that the results
-     * order is the same as the order of
-     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-     * When a resource does not have any effective IAM policies, its corresponding
-     * policy_result will contain empty
-     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - public Builder setPolicyResults( - int index, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy value) { - if (policyResultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePolicyResultsIsMutable(); - policyResults_.set(index, value); - onChanged(); - } else { - policyResultsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The effective policies for a batch of resources. Note that the results
-     * order is the same as the order of
-     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-     * When a resource does not have any effective IAM policies, its corresponding
-     * policy_result will contain empty
-     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - public Builder setPolicyResults( - int index, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder - builderForValue) { - if (policyResultsBuilder_ == null) { - ensurePolicyResultsIsMutable(); - policyResults_.set(index, builderForValue.build()); - onChanged(); - } else { - policyResultsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The effective policies for a batch of resources. Note that the results
-     * order is the same as the order of
-     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-     * When a resource does not have any effective IAM policies, its corresponding
-     * policy_result will contain empty
-     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - public Builder addPolicyResults( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy value) { - if (policyResultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePolicyResultsIsMutable(); - policyResults_.add(value); - onChanged(); - } else { - policyResultsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The effective policies for a batch of resources. Note that the results
-     * order is the same as the order of
-     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-     * When a resource does not have any effective IAM policies, its corresponding
-     * policy_result will contain empty
-     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - public Builder addPolicyResults( - int index, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy value) { - if (policyResultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePolicyResultsIsMutable(); - policyResults_.add(index, value); - onChanged(); - } else { - policyResultsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The effective policies for a batch of resources. Note that the results
-     * order is the same as the order of
-     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-     * When a resource does not have any effective IAM policies, its corresponding
-     * policy_result will contain empty
-     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - public Builder addPolicyResults( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder - builderForValue) { - if (policyResultsBuilder_ == null) { - ensurePolicyResultsIsMutable(); - policyResults_.add(builderForValue.build()); - onChanged(); - } else { - policyResultsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The effective policies for a batch of resources. Note that the results
-     * order is the same as the order of
-     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-     * When a resource does not have any effective IAM policies, its corresponding
-     * policy_result will contain empty
-     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - public Builder addPolicyResults( - int index, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder - builderForValue) { - if (policyResultsBuilder_ == null) { - ensurePolicyResultsIsMutable(); - policyResults_.add(index, builderForValue.build()); - onChanged(); - } else { - policyResultsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The effective policies for a batch of resources. Note that the results
-     * order is the same as the order of
-     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-     * When a resource does not have any effective IAM policies, its corresponding
-     * policy_result will contain empty
-     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - public Builder addAllPolicyResults( - java.lang.Iterable< - ? extends - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicy> - values) { - if (policyResultsBuilder_ == null) { - ensurePolicyResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyResults_); - onChanged(); - } else { - policyResultsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The effective policies for a batch of resources. Note that the results
-     * order is the same as the order of
-     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-     * When a resource does not have any effective IAM policies, its corresponding
-     * policy_result will contain empty
-     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - public Builder clearPolicyResults() { - if (policyResultsBuilder_ == null) { - policyResults_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - policyResultsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The effective policies for a batch of resources. Note that the results
-     * order is the same as the order of
-     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-     * When a resource does not have any effective IAM policies, its corresponding
-     * policy_result will contain empty
-     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - public Builder removePolicyResults(int index) { - if (policyResultsBuilder_ == null) { - ensurePolicyResultsIsMutable(); - policyResults_.remove(index); - onChanged(); - } else { - policyResultsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The effective policies for a batch of resources. Note that the results
-     * order is the same as the order of
-     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-     * When a resource does not have any effective IAM policies, its corresponding
-     * policy_result will contain empty
-     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder - getPolicyResultsBuilder(int index) { - return getPolicyResultsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The effective policies for a batch of resources. Note that the results
-     * order is the same as the order of
-     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-     * When a resource does not have any effective IAM policies, its corresponding
-     * policy_result will contain empty
-     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicyOrBuilder - getPolicyResultsOrBuilder(int index) { - if (policyResultsBuilder_ == null) { - return policyResults_.get(index); - } else { - return policyResultsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The effective policies for a batch of resources. Note that the results
-     * order is the same as the order of
-     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-     * When a resource does not have any effective IAM policies, its corresponding
-     * policy_result will contain empty
-     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - public java.util.List< - ? extends - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicyOrBuilder> - getPolicyResultsOrBuilderList() { - if (policyResultsBuilder_ != null) { - return policyResultsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(policyResults_); - } - } - /** - * - * - *
-     * The effective policies for a batch of resources. Note that the results
-     * order is the same as the order of
-     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-     * When a resource does not have any effective IAM policies, its corresponding
-     * policy_result will contain empty
-     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder - addPolicyResultsBuilder() { - return getPolicyResultsFieldBuilder() - .addBuilder( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .getDefaultInstance()); - } - /** - * - * - *
-     * The effective policies for a batch of resources. Note that the results
-     * order is the same as the order of
-     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-     * When a resource does not have any effective IAM policies, its corresponding
-     * policy_result will contain empty
-     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder - addPolicyResultsBuilder(int index) { - return getPolicyResultsFieldBuilder() - .addBuilder( - index, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .getDefaultInstance()); - } - /** - * - * - *
-     * The effective policies for a batch of resources. Note that the results
-     * order is the same as the order of
-     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-     * When a resource does not have any effective IAM policies, its corresponding
-     * policy_result will contain empty
-     * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-     * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - public java.util.List< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .Builder> - getPolicyResultsBuilderList() { - return getPolicyResultsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .Builder, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicyOrBuilder> - getPolicyResultsFieldBuilder() { - if (policyResultsBuilder_ == null) { - policyResultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - .Builder, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicyOrBuilder>( - policyResults_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - policyResults_ = null; - } - return policyResultsBuilder_; - } - - @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.asset.v1.BatchGetEffectiveIamPoliciesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse) - private static final com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse(); - } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchGetEffectiveIamPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchGetEffectiveIamPoliciesResponse(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.asset.v1.BatchGetEffectiveIamPoliciesResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponseOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponseOrBuilder.java deleted file mode 100644 index 8a5e5c2540f8..000000000000 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponseOrBuilder.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1/asset_service.proto - -package com.google.cloud.asset.v1; - -public interface BatchGetEffectiveIamPoliciesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The effective policies for a batch of resources. Note that the results
-   * order is the same as the order of
-   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-   * When a resource does not have any effective IAM policies, its corresponding
-   * policy_result will contain empty
-   * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-   * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - java.util.List - getPolicyResultsList(); - /** - * - * - *
-   * The effective policies for a batch of resources. Note that the results
-   * order is the same as the order of
-   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-   * When a resource does not have any effective IAM policies, its corresponding
-   * policy_result will contain empty
-   * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-   * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy - getPolicyResults(int index); - /** - * - * - *
-   * The effective policies for a batch of resources. Note that the results
-   * order is the same as the order of
-   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-   * When a resource does not have any effective IAM policies, its corresponding
-   * policy_result will contain empty
-   * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-   * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - int getPolicyResultsCount(); - /** - * - * - *
-   * The effective policies for a batch of resources. Note that the results
-   * order is the same as the order of
-   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-   * When a resource does not have any effective IAM policies, its corresponding
-   * policy_result will contain empty
-   * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-   * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - java.util.List< - ? extends - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse - .EffectiveIamPolicyOrBuilder> - getPolicyResultsOrBuilderList(); - /** - * - * - *
-   * The effective policies for a batch of resources. Note that the results
-   * order is the same as the order of
-   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
-   * When a resource does not have any effective IAM policies, its corresponding
-   * policy_result will contain empty
-   * [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
-   * 
- * - * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - * - */ - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicyOrBuilder - getPolicyResultsOrBuilder(int index); -} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequestOrBuilder.java deleted file mode 100644 index 651097a14934..000000000000 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequestOrBuilder.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1/asset_service.proto - -package com.google.cloud.asset.v1; - -public interface CreateSavedQueryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.CreateSavedQueryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the project/folder/organization where this
-   * saved_query should be created in. It can only be an organization number
-   * (such as "organizations/123"), a folder number (such as "folders/123"), a
-   * project ID (such as "projects/my-project-id")", or a project number (such
-   * as "projects/12345").
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The name of the project/folder/organization where this
-   * saved_query should be created in. It can only be an organization number
-   * (such as "organizations/123"), a folder number (such as "folders/123"), a
-   * project ID (such as "projects/my-project-id")", or a project number (such
-   * as "projects/12345").
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The saved_query details. The `name` field must be empty as it
-   * will be generated based on the parent and saved_query_id.
-   * 
- * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the savedQuery field is set. - */ - boolean hasSavedQuery(); - /** - * - * - *
-   * Required. The saved_query details. The `name` field must be empty as it
-   * will be generated based on the parent and saved_query_id.
-   * 
- * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The savedQuery. - */ - com.google.cloud.asset.v1.SavedQuery getSavedQuery(); - /** - * - * - *
-   * Required. The saved_query details. The `name` field must be empty as it
-   * will be generated based on the parent and saved_query_id.
-   * 
- * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder(); - - /** - * - * - *
-   * Required. The ID to use for the saved query, which must be unique in the
-   * specified parent. It will become the final component of the saved query's
-   * resource name.
-   * This value should be 4-63 characters, and valid characters
-   * are /[a-z][0-9]-/.
-   * Notice that this field is required in the saved query creation, and the
-   * `name` field of the `saved_query` will be ignored.
-   * 
- * - * string saved_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The savedQueryId. - */ - java.lang.String getSavedQueryId(); - /** - * - * - *
-   * Required. The ID to use for the saved query, which must be unique in the
-   * specified parent. It will become the final component of the saved query's
-   * resource name.
-   * This value should be 4-63 characters, and valid characters
-   * are /[a-z][0-9]-/.
-   * Notice that this field is required in the saved query creation, and the
-   * `name` field of the `saved_query` will be ignored.
-   * 
- * - * string saved_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for savedQueryId. - */ - com.google.protobuf.ByteString getSavedQueryIdBytes(); -} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequestOrBuilder.java deleted file mode 100644 index 8212768a5565..000000000000 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1/asset_service.proto - -package com.google.cloud.asset.v1; - -public interface DeleteFeedRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.DeleteFeedRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the feed and it must be in the format of:
-   * projects/project_number/feeds/feed_id
-   * folders/folder_number/feeds/feed_id
-   * organizations/organization_number/feeds/feed_id
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the feed and it must be in the format of:
-   * projects/project_number/feeds/feed_id
-   * folders/folder_number/feeds/feed_id
-   * organizations/organization_number/feeds/feed_id
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequestOrBuilder.java deleted file mode 100644 index eba137a41a0a..000000000000 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequestOrBuilder.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1/asset_service.proto - -package com.google.cloud.asset.v1; - -public interface DeleteSavedQueryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.DeleteSavedQueryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the saved query to delete. It must be in the format
-   * of:
-   * * projects/project_number/savedQueries/saved_query_id
-   * * folders/folder_number/savedQueries/saved_query_id
-   * * organizations/organization_number/savedQueries/saved_query_id
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the saved query to delete. It must be in the format
-   * of:
-   * * projects/project_number/savedQueries/saved_query_id
-   * * folders/folder_number/savedQueries/saved_query_id
-   * * organizations/organization_number/savedQueries/saved_query_id
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequestOrBuilder.java deleted file mode 100644 index 4ed4a558438e..000000000000 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1/asset_service.proto - -package com.google.cloud.asset.v1; - -public interface GetFeedRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.GetFeedRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the Feed and it must be in the format of:
-   * projects/project_number/feeds/feed_id
-   * folders/folder_number/feeds/feed_id
-   * organizations/organization_number/feeds/feed_id
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the Feed and it must be in the format of:
-   * projects/project_number/feeds/feed_id
-   * folders/folder_number/feeds/feed_id
-   * organizations/organization_number/feeds/feed_id
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequestOrBuilder.java deleted file mode 100644 index d22338aace06..000000000000 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1/asset_service.proto - -package com.google.cloud.asset.v1; - -public interface GetSavedQueryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.GetSavedQueryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the saved query and it must be in the format of:
-   * * projects/project_number/savedQueries/saved_query_id
-   * * folders/folder_number/savedQueries/saved_query_id
-   * * organizations/organization_number/savedQueries/saved_query_id
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the saved query and it must be in the format of:
-   * * projects/project_number/savedQueries/saved_query_id
-   * * folders/folder_number/savedQueries/saved_query_id
-   * * organizations/organization_number/savedQueries/saved_query_id
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResultOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResultOrBuilder.java deleted file mode 100644 index 30601f1bfe1c..000000000000 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResultOrBuilder.java +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1/assets.proto - -package com.google.cloud.asset.v1; - -public interface IamPolicyAnalysisResultOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisResult) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The [full resource
-   * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
-   * of the resource to which the
-   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
-   * policy attaches.
-   * 
- * - * string attached_resource_full_name = 1; - * - * @return The attachedResourceFullName. - */ - java.lang.String getAttachedResourceFullName(); - /** - * - * - *
-   * The [full resource
-   * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
-   * of the resource to which the
-   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
-   * policy attaches.
-   * 
- * - * string attached_resource_full_name = 1; - * - * @return The bytes for attachedResourceFullName. - */ - com.google.protobuf.ByteString getAttachedResourceFullNameBytes(); - - /** - * - * - *
-   * The Cloud IAM policy binding under analysis.
-   * 
- * - * .google.iam.v1.Binding iam_binding = 2; - * - * @return Whether the iamBinding field is set. - */ - boolean hasIamBinding(); - /** - * - * - *
-   * The Cloud IAM policy binding under analysis.
-   * 
- * - * .google.iam.v1.Binding iam_binding = 2; - * - * @return The iamBinding. - */ - com.google.iam.v1.Binding getIamBinding(); - /** - * - * - *
-   * The Cloud IAM policy binding under analysis.
-   * 
- * - * .google.iam.v1.Binding iam_binding = 2; - */ - com.google.iam.v1.BindingOrBuilder getIamBindingOrBuilder(); - - /** - * - * - *
-   * The access control lists derived from the
-   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
-   * that match or potentially match resource and access selectors specified in
-   * the request.
-   * 
- * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * - */ - java.util.List - getAccessControlListsList(); - /** - * - * - *
-   * The access control lists derived from the
-   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
-   * that match or potentially match resource and access selectors specified in
-   * the request.
-   * 
- * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * - */ - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getAccessControlLists( - int index); - /** - * - * - *
-   * The access control lists derived from the
-   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
-   * that match or potentially match resource and access selectors specified in
-   * the request.
-   * 
- * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * - */ - int getAccessControlListsCount(); - /** - * - * - *
-   * The access control lists derived from the
-   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
-   * that match or potentially match resource and access selectors specified in
-   * the request.
-   * 
- * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * - */ - java.util.List< - ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder> - getAccessControlListsOrBuilderList(); - /** - * - * - *
-   * The access control lists derived from the
-   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
-   * that match or potentially match resource and access selectors specified in
-   * the request.
-   * 
- * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * - */ - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder - getAccessControlListsOrBuilder(int index); - - /** - * - * - *
-   * The identity list derived from members of the
-   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
-   * that match or potentially match identity selector specified in the request.
-   * 
- * - * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; - * - * @return Whether the identityList field is set. - */ - boolean hasIdentityList(); - /** - * - * - *
-   * The identity list derived from members of the
-   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
-   * that match or potentially match identity selector specified in the request.
-   * 
- * - * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; - * - * @return The identityList. - */ - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList getIdentityList(); - /** - * - * - *
-   * The identity list derived from members of the
-   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
-   * that match or potentially match identity selector specified in the request.
-   * 
- * - * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; - */ - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder - getIdentityListOrBuilder(); - - /** - * - * - *
-   * Represents whether all analyses on the
-   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
-   * have successfully finished.
-   * 
- * - * bool fully_explored = 5; - * - * @return The fullyExplored. - */ - boolean getFullyExplored(); -} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpactOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpactOrBuilder.java deleted file mode 100644 index c6ae2623efc2..000000000000 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpactOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1/asset_service.proto - -package com.google.cloud.asset.v1; - -public interface MoveImpactOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.MoveImpact) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * User friendly impact detail in a free form message.
-   * 
- * - * string detail = 1; - * - * @return The detail. - */ - java.lang.String getDetail(); - /** - * - * - *
-   * User friendly impact detail in a free form message.
-   * 
- * - * string detail = 1; - * - * @return The bytes for detail. - */ - com.google.protobuf.ByteString getDetailBytes(); -} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfigOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfigOrBuilder.java deleted file mode 100644 index 20ecdf921721..000000000000 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfigOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1/asset_service.proto - -package com.google.cloud.asset.v1; - -public interface QueryAssetsOutputConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.QueryAssetsOutputConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * BigQuery destination where the query results will be saved.
-   * 
- * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; - * - * - * @return Whether the bigqueryDestination field is set. - */ - boolean hasBigqueryDestination(); - /** - * - * - *
-   * BigQuery destination where the query results will be saved.
-   * 
- * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; - * - * - * @return The bigqueryDestination. - */ - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination getBigqueryDestination(); - /** - * - * - *
-   * BigQuery destination where the query results will be saved.
-   * 
- * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; - * - */ - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder - getBigqueryDestinationOrBuilder(); -} diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetProto.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetProto.java deleted file mode 100644 index af7874a84ad5..000000000000 --- a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetProto.java +++ /dev/null @@ -1,163 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1p1beta1/assets.proto - -package com.google.cloud.asset.v1p1beta1; - -public final class AssetProto { - private AssetProto() {} - - 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_asset_v1p1beta1_StandardResourceMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p1beta1_Permissions_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/asset/v1p1beta1/assets.pr" - + "oto\022\034google.cloud.asset.v1p1beta1\032\032googl" - + "e/iam/v1/policy.proto\"\302\002\n\030StandardResour" - + "ceMetadata\022\014\n\004name\030\001 \001(\t\022\022\n\nasset_type\030\002" - + " \001(\t\022\017\n\007project\030\003 \001(\t\022\024\n\014display_name\030\004 " - + "\001(\t\022\023\n\013description\030\005 \001(\t\022\035\n\025additional_a" - + "ttributes\030\n \003(\t\022\020\n\010location\030\013 \001(\t\022R\n\006lab" - + "els\030\014 \003(\0132B.google.cloud.asset.v1p1beta1" - + ".StandardResourceMetadata.LabelsEntry\022\024\n" - + "\014network_tags\030\r \003(\t\032-\n\013LabelsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\243\003\n\025IamPolicy" - + "SearchResult\022\020\n\010resource\030\001 \001(\t\022\017\n\007projec" - + "t\030\003 \001(\t\022%\n\006policy\030\004 \001(\0132\025.google.iam.v1." - + "Policy\022T\n\013explanation\030\005 \001(\0132?.google.clo" - + "ud.asset.v1p1beta1.IamPolicySearchResult" - + ".Explanation\032\351\001\n\013Explanation\022t\n\023matched_" - + "permissions\030\001 \003(\0132W.google.cloud.asset.v" - + "1p1beta1.IamPolicySearchResult.Explanati" - + "on.MatchedPermissionsEntry\032d\n\027MatchedPer" - + "missionsEntry\022\013\n\003key\030\001 \001(\t\0228\n\005value\030\002 \001(" - + "\0132).google.cloud.asset.v1p1beta1.Permiss" - + "ions:\0028\001\"\"\n\013Permissions\022\023\n\013permissions\030\001" - + " \003(\tB\264\001\n com.google.cloud.asset.v1p1beta" - + "1B\nAssetProtoP\001ZAgoogle.golang.org/genpr" - + "oto/googleapis/cloud/asset/v1p1beta1;ass" - + "et\370\001\001\252\002\034Google.Cloud.Asset.V1P1Beta1\312\002\034G" - + "oogle\\Cloud\\Asset\\V1p1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.iam.v1.PolicyProto.getDescriptor(), - }); - internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor, - new java.lang.String[] { - "Name", - "AssetType", - "Project", - "DisplayName", - "Description", - "AdditionalAttributes", - "Location", - "Labels", - "NetworkTags", - }); - internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_LabelsEntry_descriptor = - internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor, - new java.lang.String[] { - "Resource", "Project", "Policy", "Explanation", - }); - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor = - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor, - new java.lang.String[] { - "MatchedPermissions", - }); - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor = - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_asset_v1p1beta1_Permissions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor, - new java.lang.String[] { - "Permissions", - }); - com.google.iam.v1.PolicyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceProto.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceProto.java deleted file mode 100644 index 1b0e9289cadb..000000000000 --- a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceProto.java +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1p1beta1/asset_service.proto - -package com.google.cloud.asset.v1p1beta1; - -public final class AssetServiceProto { - private AssetServiceProto() {} - - 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_asset_v1p1beta1_SearchAllResourcesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/asset/v1p1beta1/asset_ser" - + "vice.proto\022\034google.cloud.asset.v1p1beta1" - + "\032\034google/api/annotations.proto\032\027google/a" - + "pi/client.proto\032\037google/api/field_behavi" - + "or.proto\032)google/cloud/asset/v1p1beta1/a" - + "ssets.proto\"\245\001\n\031SearchAllResourcesReques" - + "t\022\022\n\005scope\030\001 \001(\tB\003\340A\002\022\022\n\005query\030\002 \001(\tB\003\340A" - + "\001\022\030\n\013asset_types\030\003 \003(\tB\003\340A\001\022\026\n\tpage_size" - + "\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005 \001(\tB\003\340A\001\022\025\n\010" - + "order_by\030\n \001(\tB\003\340A\001\"~\n\032SearchAllResource" - + "sResponse\022G\n\007results\030\001 \003(\01326.google.clou" - + "d.asset.v1p1beta1.StandardResourceMetada" - + "ta\022\027\n\017next_page_token\030\002 \001(\t\"v\n\033SearchAll" - + "IamPoliciesRequest\022\022\n\005scope\030\001 \001(\tB\003\340A\002\022\022" - + "\n\005query\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340" - + "A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\"}\n\034SearchAll" - + "IamPoliciesResponse\022D\n\007results\030\001 \003(\01323.g" - + "oogle.cloud.asset.v1p1beta1.IamPolicySea" - + "rchResult\022\027\n\017next_page_token\030\002 \001(\t2\211\004\n\014A" - + "ssetService\022\325\001\n\022SearchAllResources\0227.goo" - + "gle.cloud.asset.v1p1beta1.SearchAllResou" - + "rcesRequest\0328.google.cloud.asset.v1p1bet" - + "a1.SearchAllResourcesResponse\"L\202\323\344\223\002,\022*/" - + "v1p1beta1/{scope=*/*}/resources:searchAl" - + "l\332A\027scope,query,asset_types\022\321\001\n\024SearchAl" - + "lIamPolicies\0229.google.cloud.asset.v1p1be" - + "ta1.SearchAllIamPoliciesRequest\032:.google" - + ".cloud.asset.v1p1beta1.SearchAllIamPolic" - + "iesResponse\"B\202\323\344\223\002.\022,/v1p1beta1/{scope=*" - + "/*}/iamPolicies:searchAll\332A\013scope,query\032" - + "M\312A\031cloudasset.googleapis.com\322A.https://" - + "www.googleapis.com/auth/cloud-platformB\270" - + "\001\n com.google.cloud.asset.v1p1beta1B\021Ass" - + "etServiceProtoP\001ZAgoogle.golang.org/genp" - + "roto/googleapis/cloud/asset/v1p1beta1;as" - + "set\252\002\034Google.Cloud.Asset.V1P1Beta1\312\002\034Goo" - + "gle\\Cloud\\Asset\\V1p1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.asset.v1p1beta1.AssetProto.getDescriptor(), - }); - internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_descriptor, - new java.lang.String[] { - "Scope", "Query", "AssetTypes", "PageSize", "PageToken", "OrderBy", - }); - internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor, - new java.lang.String[] { - "Results", "NextPageToken", - }); - internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor, - new java.lang.String[] { - "Scope", "Query", "PageSize", "PageToken", - }); - internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor, - new java.lang.String[] { - "Results", "NextPageToken", - }); - 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); - 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.cloud.asset.v1p1beta1.AssetProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetProto.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetProto.java deleted file mode 100644 index c95beb2849aa..000000000000 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetProto.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1p2beta1/assets.proto - -package com.google.cloud.asset.v1p2beta1; - -public final class AssetProto { - private AssetProto() {} - - 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_asset_v1p2beta1_TemporalAsset_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_TimeWindow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_Asset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_Resource_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/asset/v1p2beta1/assets.pr" - + "oto\022\034google.cloud.asset.v1p2beta1\032\032googl" - + "e/iam/v1/policy.proto\032\034google/protobuf/s" - + "truct.proto\032\037google/protobuf/timestamp.p" - + "roto\"\216\001\n\rTemporalAsset\0228\n\006window\030\001 \001(\0132(" - + ".google.cloud.asset.v1p2beta1.TimeWindow" - + "\022\017\n\007deleted\030\002 \001(\010\0222\n\005asset\030\003 \001(\0132#.googl" - + "e.cloud.asset.v1p2beta1.Asset\"j\n\nTimeWin" - + "dow\022.\n\nstart_time\030\001 \001(\0132\032.google.protobu" - + "f.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.google.p" - + "rotobuf.Timestamp\"\241\001\n\005Asset\022\014\n\004name\030\001 \001(" - + "\t\022\022\n\nasset_type\030\002 \001(\t\0228\n\010resource\030\003 \001(\0132" - + "&.google.cloud.asset.v1p2beta1.Resource\022" - + ")\n\niam_policy\030\004 \001(\0132\025.google.iam.v1.Poli" - + "cy\022\021\n\tancestors\030\006 \003(\t\"\240\001\n\010Resource\022\017\n\007ve" - + "rsion\030\001 \001(\t\022\036\n\026discovery_document_uri\030\002 " - + "\001(\t\022\026\n\016discovery_name\030\003 \001(\t\022\024\n\014resource_" - + "url\030\004 \001(\t\022\016\n\006parent\030\005 \001(\t\022%\n\004data\030\006 \001(\0132" - + "\027.google.protobuf.StructB\264\001\n com.google." - + "cloud.asset.v1p2beta1B\nAssetProtoP\001ZAgoo" - + "gle.golang.org/genproto/googleapis/cloud" - + "/asset/v1p2beta1;asset\370\001\001\252\002\034Google.Cloud" - + ".Asset.v1p2beta1\312\002\034Google\\Cloud\\Asset\\V1" - + "p2beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_descriptor, - new java.lang.String[] { - "Window", "Deleted", "Asset", - }); - internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_asset_v1p2beta1_TimeWindow_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor, - new java.lang.String[] { - "StartTime", "EndTime", - }); - internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_asset_v1p2beta1_Asset_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor, - new java.lang.String[] { - "Name", "AssetType", "Resource", "IamPolicy", "Ancestors", - }); - internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_asset_v1p2beta1_Resource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor, - new java.lang.String[] { - "Version", "DiscoveryDocumentUri", "DiscoveryName", "ResourceUrl", "Parent", "Data", - }); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceProto.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceProto.java deleted file mode 100644 index d02516431fbf..000000000000 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceProto.java +++ /dev/null @@ -1,270 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1p2beta1/asset_service.proto - -package com.google.cloud.asset.v1p2beta1; - -public final class AssetServiceProto { - private AssetServiceProto() {} - - 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_asset_v1p2beta1_CreateFeedRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_Feed_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/asset/v1p2beta1/asset_ser" - + "vice.proto\022\034google.cloud.asset.v1p2beta1" - + "\032\034google/api/annotations.proto\032\027google/a" - + "pi/client.proto\032\037google/api/field_behavi" - + "or.proto\032\031google/api/resource.proto\032)goo" - + "gle/cloud/asset/v1p2beta1/assets.proto\032\033" - + "google/protobuf/empty.proto\032 google/prot" - + "obuf/field_mask.proto\"u\n\021CreateFeedReque" - + "st\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\024\n\007feed_id\030\002 \001(\t" - + "B\003\340A\002\0225\n\004feed\030\003 \001(\0132\".google.cloud.asset" - + ".v1p2beta1.FeedB\003\340A\002\"F\n\016GetFeedRequest\0224" - + "\n\004name\030\001 \001(\tB&\340A\002\372A \n\036cloudasset.googlea" - + "pis.com/Feed\"\'\n\020ListFeedsRequest\022\023\n\006pare" - + "nt\030\001 \001(\tB\003\340A\002\"F\n\021ListFeedsResponse\0221\n\005fe" - + "eds\030\001 \003(\0132\".google.cloud.asset.v1p2beta1" - + ".Feed\"\200\001\n\021UpdateFeedRequest\0225\n\004feed\030\001 \001(" - + "\0132\".google.cloud.asset.v1p2beta1.FeedB\003\340" - + "A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobu" - + "f.FieldMaskB\003\340A\002\"I\n\021DeleteFeedRequest\0224\n" - + "\004name\030\001 \001(\tB&\340A\002\372A \n\036cloudasset.googleap" - + "is.com/Feed\"f\n\014OutputConfig\022G\n\017gcs_desti" - + "nation\030\001 \001(\0132,.google.cloud.asset.v1p2be" - + "ta1.GcsDestinationH\000B\r\n\013destination\"-\n\016G" - + "csDestination\022\r\n\003uri\030\001 \001(\tH\000B\014\n\nobject_u" - + "ri\"\"\n\021PubsubDestination\022\r\n\005topic\030\001 \001(\t\"p" - + "\n\020FeedOutputConfig\022M\n\022pubsub_destination" - + "\030\001 \001(\0132/.google.cloud.asset.v1p2beta1.Pu" - + "bsubDestinationH\000B\r\n\013destination\"\351\002\n\004Fee" - + "d\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\013asset_names\030\002 \003(" - + "\t\022\023\n\013asset_types\030\003 \003(\t\022?\n\014content_type\030\004" - + " \001(\0162).google.cloud.asset.v1p2beta1.Cont" - + "entType\022O\n\022feed_output_config\030\005 \001(\0132..go" - + "ogle.cloud.asset.v1p2beta1.FeedOutputCon" - + "figB\003\340A\002:\221\001\352A\215\001\n\036cloudasset.googleapis.c" - + "om/Feed\022\037projects/{project}/feeds/{feed}" - + "\022\035folders/{folder}/feeds/{feed}\022)organiz" - + "ations/{organization}/feeds/{feed} \001*I\n\013" - + "ContentType\022\034\n\030CONTENT_TYPE_UNSPECIFIED\020" - + "\000\022\014\n\010RESOURCE\020\001\022\016\n\nIAM_POLICY\020\0022\277\006\n\014Asse" - + "tService\022\224\001\n\nCreateFeed\022/.google.cloud.a" - + "sset.v1p2beta1.CreateFeedRequest\032\".googl" - + "e.cloud.asset.v1p2beta1.Feed\"1\202\323\344\223\002\"\"\035/v" - + "1p2beta1/{parent=*/*}/feeds:\001*\332A\006parent\022" - + "\211\001\n\007GetFeed\022,.google.cloud.asset.v1p2bet" - + "a1.GetFeedRequest\032\".google.cloud.asset.v" - + "1p2beta1.Feed\",\202\323\344\223\002\037\022\035/v1p2beta1/{name=" - + "*/*/feeds/*}\332A\004name\022\234\001\n\tListFeeds\022..goog" - + "le.cloud.asset.v1p2beta1.ListFeedsReques" - + "t\032/.google.cloud.asset.v1p2beta1.ListFee" - + "dsResponse\".\202\323\344\223\002\037\022\035/v1p2beta1/{parent=*" - + "/*}/feeds\332A\006parent\022\227\001\n\nUpdateFeed\022/.goog" - + "le.cloud.asset.v1p2beta1.UpdateFeedReque" - + "st\032\".google.cloud.asset.v1p2beta1.Feed\"4" - + "\202\323\344\223\002\'2\"/v1p2beta1/{feed.name=*/*/feeds/" - + "*}:\001*\332A\004feed\022\203\001\n\nDeleteFeed\022/.google.clo" - + "ud.asset.v1p2beta1.DeleteFeedRequest\032\026.g" - + "oogle.protobuf.Empty\",\202\323\344\223\002\037*\035/v1p2beta1" - + "/{name=*/*/feeds/*}\332A\004name\032M\312A\031cloudasse" - + "t.googleapis.com\322A.https://www.googleapi" - + "s.com/auth/cloud-platformB\270\001\n com.google" - + ".cloud.asset.v1p2beta1B\021AssetServiceProt" - + "oP\001ZAgoogle.golang.org/genproto/googleap" - + "is/cloud/asset/v1p2beta1;asset\252\002\034Google." - + "Cloud.Asset.V1p2Beta1\312\002\034Google\\Cloud\\Ass" - + "et\\V1p2beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.asset.v1p2beta1.AssetProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_descriptor, - new java.lang.String[] { - "Parent", "FeedId", "Feed", - }); - internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor, - new java.lang.String[] { - "Parent", - }); - internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor, - new java.lang.String[] { - "Feeds", - }); - internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor, - new java.lang.String[] { - "Feed", "UpdateMask", - }); - internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_asset_v1p2beta1_OutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "Destination", - }); - internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_asset_v1p2beta1_GcsDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor, - new java.lang.String[] { - "Uri", "ObjectUri", - }); - internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor, - new java.lang.String[] { - "Topic", - }); - internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor, - new java.lang.String[] { - "PubsubDestination", "Destination", - }); - internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_asset_v1p2beta1_Feed_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor, - new java.lang.String[] { - "Name", "AssetNames", "AssetTypes", "ContentType", "FeedOutputConfig", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - 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.asset.v1p2beta1.AssetProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequestOrBuilder.java deleted file mode 100644 index ee25e690ff20..000000000000 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1p2beta1/asset_service.proto - -package com.google.cloud.asset.v1p2beta1; - -public interface DeleteFeedRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.DeleteFeedRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the feed and it must be in the format of:
-   * projects/project_number/feeds/feed_id
-   * folders/folder_number/feeds/feed_id
-   * organizations/organization_number/feeds/feed_id
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the feed and it must be in the format of:
-   * projects/project_number/feeds/feed_id
-   * folders/folder_number/feeds/feed_id
-   * organizations/organization_number/feeds/feed_id
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequestOrBuilder.java deleted file mode 100644 index 53061113e331..000000000000 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1p2beta1/asset_service.proto - -package com.google.cloud.asset.v1p2beta1; - -public interface GetFeedRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.GetFeedRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the Feed and it must be in the format of:
-   * projects/project_number/feeds/feed_id
-   * folders/folder_number/feeds/feed_id
-   * organizations/organization_number/feeds/feed_id
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the Feed and it must be in the format of:
-   * projects/project_number/feeds/feed_id
-   * folders/folder_number/feeds/feed_id
-   * organizations/organization_number/feeds/feed_id
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetProto.java b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetProto.java deleted file mode 100644 index 70c797bf0f58..000000000000 --- a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetProto.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1p5beta1/assets.proto - -package com.google.cloud.asset.v1p5beta1; - -public final class AssetProto { - private AssetProto() {} - - 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_asset_v1p5beta1_Asset_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p5beta1_Asset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p5beta1_Resource_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/asset/v1p5beta1/assets.pr" - + "oto\022\034google.cloud.asset.v1p5beta1\032\031googl" - + "e/api/resource.proto\032)google/cloud/orgpo" - + "licy/v1/orgpolicy.proto\032\032google/iam/v1/p" - + "olicy.proto\032:google/identity/accessconte" - + "xtmanager/v1/access_level.proto\032;google/" - + "identity/accesscontextmanager/v1/access_" - + "policy.proto\032?google/identity/accesscont" - + "extmanager/v1/service_perimeter.proto\032\034g" - + "oogle/protobuf/struct.proto\"\220\004\n\005Asset\022\014\n" - + "\004name\030\001 \001(\t\022\022\n\nasset_type\030\002 \001(\t\0228\n\010resou" - + "rce\030\003 \001(\0132&.google.cloud.asset.v1p5beta1" - + ".Resource\022)\n\niam_policy\030\004 \001(\0132\025.google.i" - + "am.v1.Policy\0225\n\norg_policy\030\006 \003(\0132!.googl" - + "e.cloud.orgpolicy.v1.Policy\022N\n\raccess_po" - + "licy\030\007 \001(\01325.google.identity.accessconte" - + "xtmanager.v1.AccessPolicyH\000\022L\n\014access_le" - + "vel\030\010 \001(\01324.google.identity.accesscontex" - + "tmanager.v1.AccessLevelH\000\022V\n\021service_per" - + "imeter\030\t \001(\01329.google.identity.accesscon" - + "textmanager.v1.ServicePerimeterH\000\022\021\n\tanc" - + "estors\030\n \003(\t:\'\352A$\n\037cloudasset.googleapis" - + ".com/Asset\022\001*B\027\n\025access_context_policy\"\240" - + "\001\n\010Resource\022\017\n\007version\030\001 \001(\t\022\036\n\026discover" - + "y_document_uri\030\002 \001(\t\022\026\n\016discovery_name\030\003" - + " \001(\t\022\024\n\014resource_url\030\004 \001(\t\022\016\n\006parent\030\005 \001" - + "(\t\022%\n\004data\030\006 \001(\0132\027.google.protobuf.Struc" - + "tB\264\001\n com.google.cloud.asset.v1p5beta1B\n" - + "AssetProtoP\001ZAgoogle.golang.org/genproto" - + "/googleapis/cloud/asset/v1p5beta1;asset\370" - + "\001\001\252\002\034Google.Cloud.Asset.V1p5Beta1\312\002\034Goog" - + "le\\Cloud\\Asset\\V1p5beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(), - com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(), - com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - }); - internal_static_google_cloud_asset_v1p5beta1_Asset_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_asset_v1p5beta1_Asset_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p5beta1_Asset_descriptor, - new java.lang.String[] { - "Name", - "AssetType", - "Resource", - "IamPolicy", - "OrgPolicy", - "AccessPolicy", - "AccessLevel", - "ServicePerimeter", - "Ancestors", - "AccessContextPolicy", - }); - internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_asset_v1p5beta1_Resource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor, - new java.lang.String[] { - "Version", "DiscoveryDocumentUri", "DiscoveryName", "ResourceUrl", "Parent", "Data", - }); - 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.orgpolicy.v1.OrgPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(); - com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(); - com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceProto.java b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceProto.java deleted file mode 100644 index 608622bdb9a6..000000000000 --- a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceProto.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1p5beta1/asset_service.proto - -package com.google.cloud.asset.v1p5beta1; - -public final class AssetServiceProto { - private AssetServiceProto() {} - - 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_asset_v1p5beta1_ListAssetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/asset/v1p5beta1/asset_ser" - + "vice.proto\022\034google.cloud.asset.v1p5beta1" - + "\032\034google/api/annotations.proto\032\027google/a" - + "pi/client.proto\032\037google/api/field_behavi" - + "or.proto\032)google/cloud/asset/v1p5beta1/a" - + "ssets.proto\032\037google/protobuf/timestamp.p" - + "roto\"\324\001\n\021ListAssetsRequest\022\023\n\006parent\030\001 \001" - + "(\tB\003\340A\002\022-\n\tread_time\030\002 \001(\0132\032.google.prot" - + "obuf.Timestamp\022\023\n\013asset_types\030\003 \003(\t\022?\n\014c" - + "ontent_type\030\004 \001(\0162).google.cloud.asset.v" - + "1p5beta1.ContentType\022\021\n\tpage_size\030\005 \001(\005\022" - + "\022\n\npage_token\030\006 \001(\t\"\221\001\n\022ListAssetsRespon" - + "se\022-\n\tread_time\030\001 \001(\0132\032.google.protobuf." - + "Timestamp\0223\n\006assets\030\002 \003(\0132#.google.cloud" - + ".asset.v1p5beta1.Asset\022\027\n\017next_page_toke" - + "n\030\003 \001(\t*l\n\013ContentType\022\034\n\030CONTENT_TYPE_U" - + "NSPECIFIED\020\000\022\014\n\010RESOURCE\020\001\022\016\n\nIAM_POLICY" - + "\020\002\022\016\n\nORG_POLICY\020\004\022\021\n\rACCESS_POLICY\020\0052\367\001" - + "\n\014AssetService\022\227\001\n\nListAssets\022/.google.c" - + "loud.asset.v1p5beta1.ListAssetsRequest\0320" - + ".google.cloud.asset.v1p5beta1.ListAssets" - + "Response\"&\202\323\344\223\002 \022\036/v1p5beta1/{parent=*/*" - + "}/assets\032M\312A\031cloudasset.googleapis.com\322A" - + ".https://www.googleapis.com/auth/cloud-p" - + "latformB\270\001\n com.google.cloud.asset.v1p5b" - + "eta1B\021AssetServiceProtoP\001ZAgoogle.golang" - + ".org/genproto/googleapis/cloud/asset/v1p" - + "5beta1;asset\252\002\034Google.Cloud.Asset.V1P5Be" - + "ta1\312\002\034Google\\Cloud\\Asset\\V1p5beta1b\006prot" - + "o3" - }; - 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.cloud.asset.v1p5beta1.AssetProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_descriptor, - new java.lang.String[] { - "Parent", "ReadTime", "AssetTypes", "ContentType", "PageSize", "PageToken", - }); - internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor, - new java.lang.String[] { - "ReadTime", "Assets", "NextPageToken", - }); - 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.oauthScopes); - 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.cloud.asset.v1p5beta1.AssetProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetProto.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetProto.java deleted file mode 100644 index 165101fd6c99..000000000000 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetProto.java +++ /dev/null @@ -1,196 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1p7beta1/assets.proto - -package com.google.cloud.asset.v1p7beta1; - -public final class AssetProto { - private AssetProto() {} - - 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_asset_v1p7beta1_Asset_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_Asset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_Resource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/asset/v1p7beta1/assets.pr" - + "oto\022\034google.cloud.asset.v1p7beta1\032\031googl" - + "e/api/resource.proto\032)google/cloud/orgpo" - + "licy/v1/orgpolicy.proto\032(google/cloud/os" - + "config/v1/inventory.proto\032\032google/iam/v1" - + "/policy.proto\032:google/identity/accesscon" - + "textmanager/v1/access_level.proto\032;googl" - + "e/identity/accesscontextmanager/v1/acces" - + "s_policy.proto\032?google/identity/accessco" - + "ntextmanager/v1/service_perimeter.proto\032" - + "\034google/protobuf/struct.proto\032\037google/pr" - + "otobuf/timestamp.proto\"\206\005\n\005Asset\022/\n\013upda" - + "te_time\030\013 \001(\0132\032.google.protobuf.Timestam" - + "p\022\014\n\004name\030\001 \001(\t\022\022\n\nasset_type\030\002 \001(\t\0228\n\010r" - + "esource\030\003 \001(\0132&.google.cloud.asset.v1p7b" - + "eta1.Resource\022)\n\niam_policy\030\004 \001(\0132\025.goog" - + "le.iam.v1.Policy\0225\n\norg_policy\030\006 \003(\0132!.g" - + "oogle.cloud.orgpolicy.v1.Policy\022N\n\racces" - + "s_policy\030\007 \001(\01325.google.identity.accessc" - + "ontextmanager.v1.AccessPolicyH\000\022L\n\014acces" - + "s_level\030\010 \001(\01324.google.identity.accessco" - + "ntextmanager.v1.AccessLevelH\000\022V\n\021service" - + "_perimeter\030\t \001(\01329.google.identity.acces" - + "scontextmanager.v1.ServicePerimeterH\000\022C\n" - + "\016related_assets\030\r \001(\0132+.google.cloud.ass" - + "et.v1p7beta1.RelatedAssets\022\021\n\tancestors\030" - + "\n \003(\t:\'\352A$\n\037cloudasset.googleapis.com/As" - + "set\022\001*B\027\n\025access_context_policy\"\262\001\n\010Reso" - + "urce\022\017\n\007version\030\001 \001(\t\022\036\n\026discovery_docum" - + "ent_uri\030\002 \001(\t\022\026\n\016discovery_name\030\003 \001(\t\022\024\n" - + "\014resource_url\030\004 \001(\t\022\016\n\006parent\030\005 \001(\t\022%\n\004d" - + "ata\030\006 \001(\0132\027.google.protobuf.Struct\022\020\n\010lo" - + "cation\030\010 \001(\t\"\242\001\n\rRelatedAssets\022U\n\027relati" - + "onship_attributes\030\001 \001(\01324.google.cloud.a" - + "sset.v1p7beta1.RelationshipAttributes\022:\n" - + "\006assets\030\002 \003(\0132*.google.cloud.asset.v1p7b" - + "eta1.RelatedAsset\"r\n\026RelationshipAttribu" - + "tes\022\014\n\004type\030\004 \001(\t\022\034\n\024source_resource_typ" - + "e\030\001 \001(\t\022\034\n\024target_resource_type\030\002 \001(\t\022\016\n" - + "\006action\030\003 \001(\t\"j\n\014RelatedAsset\0223\n\005asset\030\001" - + " \001(\tB$\372A!\n\037cloudasset.googleapis.com/Ass" - + "et\022\022\n\nasset_type\030\002 \001(\t\022\021\n\tancestors\030\003 \003(" - + "\tB\264\001\n com.google.cloud.asset.v1p7beta1B\n" - + "AssetProtoP\001ZAgoogle.golang.org/genproto" - + "/googleapis/cloud/asset/v1p7beta1;asset\370" - + "\001\001\252\002\034Google.Cloud.Asset.V1P7Beta1\312\002\034Goog" - + "le\\Cloud\\Asset\\V1p7beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(), - com.google.cloud.osconfig.v1.Inventories.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(), - com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(), - com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_asset_v1p7beta1_Asset_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_asset_v1p7beta1_Asset_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_Asset_descriptor, - new java.lang.String[] { - "UpdateTime", - "Name", - "AssetType", - "Resource", - "IamPolicy", - "OrgPolicy", - "AccessPolicy", - "AccessLevel", - "ServicePerimeter", - "RelatedAssets", - "Ancestors", - "AccessContextPolicy", - }); - internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_asset_v1p7beta1_Resource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor, - new java.lang.String[] { - "Version", - "DiscoveryDocumentUri", - "DiscoveryName", - "ResourceUrl", - "Parent", - "Data", - "Location", - }); - internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor, - new java.lang.String[] { - "RelationshipAttributes", "Assets", - }); - internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor, - new java.lang.String[] { - "Type", "SourceResourceType", "TargetResourceType", "Action", - }); - internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor, - new java.lang.String[] { - "Asset", "AssetType", "Ancestors", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(); - com.google.cloud.osconfig.v1.Inventories.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(); - com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(); - com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceProto.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceProto.java deleted file mode 100644 index fbbe0a4b5854..000000000000 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceProto.java +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1p7beta1/asset_service.proto - -package com.google.cloud.asset.v1p7beta1; - -public final class AssetServiceProto { - private AssetServiceProto() {} - - 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_asset_v1p7beta1_ExportAssetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_OutputResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/asset/v1p7beta1/asset_ser" - + "vice.proto\022\034google.cloud.asset.v1p7beta1" - + "\032\034google/api/annotations.proto\032\027google/a" - + "pi/client.proto\032\037google/api/field_behavi" - + "or.proto\032\031google/api/resource.proto\032)goo" - + "gle/cloud/asset/v1p7beta1/assets.proto\032#" - + "google/longrunning/operations.proto\032\037goo" - + "gle/protobuf/timestamp.proto\"\267\002\n\023ExportA" - + "ssetsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037cl" - + "oudasset.googleapis.com/Asset\022-\n\tread_ti" - + "me\030\002 \001(\0132\032.google.protobuf.Timestamp\022\023\n\013" - + "asset_types\030\003 \003(\t\022?\n\014content_type\030\004 \001(\0162" - + ").google.cloud.asset.v1p7beta1.ContentTy" - + "pe\022F\n\routput_config\030\005 \001(\0132*.google.cloud" - + ".asset.v1p7beta1.OutputConfigB\003\340A\002\022\032\n\022re" - + "lationship_types\030\006 \003(\t\"\313\001\n\024ExportAssetsR" - + "esponse\022-\n\tread_time\030\001 \001(\0132\032.google.prot" - + "obuf.Timestamp\022A\n\routput_config\030\002 \001(\0132*." - + "google.cloud.asset.v1p7beta1.OutputConfi" - + "g\022A\n\routput_result\030\003 \001(\0132*.google.cloud." - + "asset.v1p7beta1.OutputResult\"\271\001\n\014OutputC" - + "onfig\022G\n\017gcs_destination\030\001 \001(\0132,.google." - + "cloud.asset.v1p7beta1.GcsDestinationH\000\022Q" - + "\n\024bigquery_destination\030\002 \001(\01321.google.cl" - + "oud.asset.v1p7beta1.BigQueryDestinationH" - + "\000B\r\n\013destination\"]\n\014OutputResult\022C\n\ngcs_" - + "result\030\001 \001(\0132-.google.cloud.asset.v1p7be" - + "ta1.GcsOutputResultH\000B\010\n\006result\"\037\n\017GcsOu" - + "tputResult\022\014\n\004uris\030\001 \003(\t\"C\n\016GcsDestinati" - + "on\022\r\n\003uri\030\001 \001(\tH\000\022\024\n\nuri_prefix\030\002 \001(\tH\000B" - + "\014\n\nobject_uri\"\273\001\n\023BigQueryDestination\022\024\n" - + "\007dataset\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\tB\003\340A\002\022" - + "\r\n\005force\030\003 \001(\010\022C\n\016partition_spec\030\004 \001(\0132+" - + ".google.cloud.asset.v1p7beta1.PartitionS" - + "pec\022&\n\036separate_tables_per_asset_type\030\005 " - + "\001(\010\"\260\001\n\rPartitionSpec\022O\n\rpartition_key\030\001" - + " \001(\01628.google.cloud.asset.v1p7beta1.Part" - + "itionSpec.PartitionKey\"N\n\014PartitionKey\022\035" - + "\n\031PARTITION_KEY_UNSPECIFIED\020\000\022\r\n\tREAD_TI" - + "ME\020\001\022\020\n\014REQUEST_TIME\020\002*~\n\013ContentType\022\034\n" - + "\030CONTENT_TYPE_UNSPECIFIED\020\000\022\014\n\010RESOURCE\020" - + "\001\022\016\n\nIAM_POLICY\020\002\022\016\n\nORG_POLICY\020\004\022\021\n\rACC" - + "ESS_POLICY\020\005\022\020\n\014RELATIONSHIP\020\0072\332\002\n\014Asset" - + "Service\022\372\001\n\014ExportAssets\0221.google.cloud." - + "asset.v1p7beta1.ExportAssetsRequest\032\035.go" - + "ogle.longrunning.Operation\"\227\001\202\323\344\223\002)\"$/v1" - + "p7beta1/{parent=*/*}:exportAssets:\001*\312Ae\n" - + "1google.cloud.asset.v1p7beta1.ExportAsse" - + "tsResponse\0220google.cloud.asset.v1p7beta1" - + ".ExportAssetsRequest\032M\312A\031cloudasset.goog" - + "leapis.com\322A.https://www.googleapis.com/" - + "auth/cloud-platformB\270\001\n com.google.cloud" - + ".asset.v1p7beta1B\021AssetServiceProtoP\001ZAg" - + "oogle.golang.org/genproto/googleapis/clo" - + "ud/asset/v1p7beta1;asset\252\002\034Google.Cloud." - + "Asset.V1P7Beta1\312\002\034Google\\Cloud\\Asset\\V1p" - + "7beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.asset.v1p7beta1.AssetProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_descriptor, - new java.lang.String[] { - "Parent", - "ReadTime", - "AssetTypes", - "ContentType", - "OutputConfig", - "RelationshipTypes", - }); - internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor, - new java.lang.String[] { - "ReadTime", "OutputConfig", "OutputResult", - }); - internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_asset_v1p7beta1_OutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "BigqueryDestination", "Destination", - }); - internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_asset_v1p7beta1_OutputResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor, - new java.lang.String[] { - "GcsResult", "Result", - }); - internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor, - new java.lang.String[] { - "Uris", - }); - internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_asset_v1p7beta1_GcsDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor, - new java.lang.String[] { - "Uri", "UriPrefix", "ObjectUri", - }); - internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor, - new java.lang.String[] { - "Dataset", "Table", "Force", "PartitionSpec", "SeparateTablesPerAssetType", - }); - internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor, - new java.lang.String[] { - "PartitionKey", - }); - 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.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.asset.v1p7beta1.AssetProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java b/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java similarity index 99% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java rename to owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java index 8ce05d3ed7e7..a2fc23029adb 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java +++ b/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java @@ -1115,6 +1115,9 @@ public final UnaryCallable deleteFeedCallable() { * "prod". *
  • `labels.env:*` to find Cloud resources that have a label "env". *
  • `kmsKey:key` to find Cloud resources encrypted with a customer-managed encryption key + * whose name contains "key" as a word. This field is deprecated. Please use the + * `kmsKeys` field to retrieve KMS key information. + *
  • `kmsKeys:key` to find Cloud resources encrypted with customer-managed encryption keys * whose name contains the word "key". *
  • `relationships:instance-group-1` to find Cloud resources that have relationships with * "instance-group-1" in the related resource name. diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceSettings.java b/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceSettings.java similarity index 99% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceSettings.java rename to owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceSettings.java index 4deb1e8f7fa5..40c2557ae991 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceSettings.java +++ b/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceSettings.java @@ -32,6 +32,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.asset.v1.stub.AssetServiceStubSettings; diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/gapic_metadata.json b/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/gapic_metadata.json similarity index 100% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/gapic_metadata.json rename to owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/gapic_metadata.json diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/package-info.java b/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/package-info.java similarity index 100% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/package-info.java rename to owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/package-info.java diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStub.java b/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStub.java similarity index 100% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStub.java rename to owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStub.java diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java b/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java similarity index 100% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java rename to owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java b/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java similarity index 100% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java rename to owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java b/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java similarity index 99% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java rename to owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java index 8f98dd2a00d2..808791245058 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java +++ b/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java @@ -70,6 +70,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceCallableFactory.java b/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceCallableFactory.java similarity index 100% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceCallableFactory.java rename to owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceCallableFactory.java diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java b/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java similarity index 99% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java rename to owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java index c830efd835b6..a646b0278b52 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java +++ b/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java @@ -33,6 +33,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientHttpJsonTest.java b/owl-bot-staging/java-asset/v1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientHttpJsonTest.java similarity index 100% rename from java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientHttpJsonTest.java rename to owl-bot-staging/java-asset/v1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientHttpJsonTest.java diff --git a/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientTest.java b/owl-bot-staging/java-asset/v1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientTest.java similarity index 100% rename from java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientTest.java rename to owl-bot-staging/java-asset/v1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientTest.java diff --git a/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetService.java b/owl-bot-staging/java-asset/v1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetService.java similarity index 100% rename from java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetService.java rename to owl-bot-staging/java-asset/v1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetService.java diff --git a/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetServiceImpl.java b/owl-bot-staging/java-asset/v1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetServiceImpl.java similarity index 100% rename from java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetServiceImpl.java rename to owl-bot-staging/java-asset/v1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetServiceImpl.java diff --git a/owl-bot-staging/java-asset/v1/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java b/owl-bot-staging/java-asset/v1/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java new file mode 100644 index 000000000000..c32da355167a --- /dev/null +++ b/owl-bot-staging/java-asset/v1/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java @@ -0,0 +1,2121 @@ +package com.google.cloud.asset.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
    + * Asset service definition.
    + * 
    + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/asset/v1/asset_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AssetServiceGrpc { + + private AssetServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.asset.v1.AssetService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getExportAssetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportAssets", + requestType = com.google.cloud.asset.v1.ExportAssetsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getExportAssetsMethod() { + io.grpc.MethodDescriptor getExportAssetsMethod; + if ((getExportAssetsMethod = AssetServiceGrpc.getExportAssetsMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getExportAssetsMethod = AssetServiceGrpc.getExportAssetsMethod) == null) { + AssetServiceGrpc.getExportAssetsMethod = getExportAssetsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.ExportAssetsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ExportAssets")) + .build(); + } + } + } + return getExportAssetsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListAssetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAssets", + requestType = com.google.cloud.asset.v1.ListAssetsRequest.class, + responseType = com.google.cloud.asset.v1.ListAssetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListAssetsMethod() { + io.grpc.MethodDescriptor getListAssetsMethod; + if ((getListAssetsMethod = AssetServiceGrpc.getListAssetsMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getListAssetsMethod = AssetServiceGrpc.getListAssetsMethod) == null) { + AssetServiceGrpc.getListAssetsMethod = getListAssetsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.ListAssetsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.ListAssetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ListAssets")) + .build(); + } + } + } + return getListAssetsMethod; + } + + private static volatile io.grpc.MethodDescriptor getBatchGetAssetsHistoryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchGetAssetsHistory", + requestType = com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.class, + responseType = com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getBatchGetAssetsHistoryMethod() { + io.grpc.MethodDescriptor getBatchGetAssetsHistoryMethod; + if ((getBatchGetAssetsHistoryMethod = AssetServiceGrpc.getBatchGetAssetsHistoryMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getBatchGetAssetsHistoryMethod = AssetServiceGrpc.getBatchGetAssetsHistoryMethod) == null) { + AssetServiceGrpc.getBatchGetAssetsHistoryMethod = getBatchGetAssetsHistoryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchGetAssetsHistory")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("BatchGetAssetsHistory")) + .build(); + } + } + } + return getBatchGetAssetsHistoryMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateFeedMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFeed", + requestType = com.google.cloud.asset.v1.CreateFeedRequest.class, + responseType = com.google.cloud.asset.v1.Feed.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateFeedMethod() { + io.grpc.MethodDescriptor getCreateFeedMethod; + if ((getCreateFeedMethod = AssetServiceGrpc.getCreateFeedMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getCreateFeedMethod = AssetServiceGrpc.getCreateFeedMethod) == null) { + AssetServiceGrpc.getCreateFeedMethod = getCreateFeedMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFeed")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.CreateFeedRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.Feed.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("CreateFeed")) + .build(); + } + } + } + return getCreateFeedMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetFeedMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFeed", + requestType = com.google.cloud.asset.v1.GetFeedRequest.class, + responseType = com.google.cloud.asset.v1.Feed.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetFeedMethod() { + io.grpc.MethodDescriptor getGetFeedMethod; + if ((getGetFeedMethod = AssetServiceGrpc.getGetFeedMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getGetFeedMethod = AssetServiceGrpc.getGetFeedMethod) == null) { + AssetServiceGrpc.getGetFeedMethod = getGetFeedMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFeed")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.GetFeedRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.Feed.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("GetFeed")) + .build(); + } + } + } + return getGetFeedMethod; + } + + private static volatile io.grpc.MethodDescriptor getListFeedsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFeeds", + requestType = com.google.cloud.asset.v1.ListFeedsRequest.class, + responseType = com.google.cloud.asset.v1.ListFeedsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFeedsMethod() { + io.grpc.MethodDescriptor getListFeedsMethod; + if ((getListFeedsMethod = AssetServiceGrpc.getListFeedsMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getListFeedsMethod = AssetServiceGrpc.getListFeedsMethod) == null) { + AssetServiceGrpc.getListFeedsMethod = getListFeedsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFeeds")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.ListFeedsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.ListFeedsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ListFeeds")) + .build(); + } + } + } + return getListFeedsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateFeedMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFeed", + requestType = com.google.cloud.asset.v1.UpdateFeedRequest.class, + responseType = com.google.cloud.asset.v1.Feed.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateFeedMethod() { + io.grpc.MethodDescriptor getUpdateFeedMethod; + if ((getUpdateFeedMethod = AssetServiceGrpc.getUpdateFeedMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getUpdateFeedMethod = AssetServiceGrpc.getUpdateFeedMethod) == null) { + AssetServiceGrpc.getUpdateFeedMethod = getUpdateFeedMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFeed")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.UpdateFeedRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.Feed.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("UpdateFeed")) + .build(); + } + } + } + return getUpdateFeedMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteFeedMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFeed", + requestType = com.google.cloud.asset.v1.DeleteFeedRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteFeedMethod() { + io.grpc.MethodDescriptor getDeleteFeedMethod; + if ((getDeleteFeedMethod = AssetServiceGrpc.getDeleteFeedMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getDeleteFeedMethod = AssetServiceGrpc.getDeleteFeedMethod) == null) { + AssetServiceGrpc.getDeleteFeedMethod = getDeleteFeedMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFeed")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.DeleteFeedRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("DeleteFeed")) + .build(); + } + } + } + return getDeleteFeedMethod; + } + + private static volatile io.grpc.MethodDescriptor getSearchAllResourcesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchAllResources", + requestType = com.google.cloud.asset.v1.SearchAllResourcesRequest.class, + responseType = com.google.cloud.asset.v1.SearchAllResourcesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSearchAllResourcesMethod() { + io.grpc.MethodDescriptor getSearchAllResourcesMethod; + if ((getSearchAllResourcesMethod = AssetServiceGrpc.getSearchAllResourcesMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getSearchAllResourcesMethod = AssetServiceGrpc.getSearchAllResourcesMethod) == null) { + AssetServiceGrpc.getSearchAllResourcesMethod = getSearchAllResourcesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchAllResources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.SearchAllResourcesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.SearchAllResourcesResponse.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("SearchAllResources")) + .build(); + } + } + } + return getSearchAllResourcesMethod; + } + + private static volatile io.grpc.MethodDescriptor getSearchAllIamPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchAllIamPolicies", + requestType = com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.class, + responseType = com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSearchAllIamPoliciesMethod() { + io.grpc.MethodDescriptor getSearchAllIamPoliciesMethod; + if ((getSearchAllIamPoliciesMethod = AssetServiceGrpc.getSearchAllIamPoliciesMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getSearchAllIamPoliciesMethod = AssetServiceGrpc.getSearchAllIamPoliciesMethod) == null) { + AssetServiceGrpc.getSearchAllIamPoliciesMethod = getSearchAllIamPoliciesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchAllIamPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("SearchAllIamPolicies")) + .build(); + } + } + } + return getSearchAllIamPoliciesMethod; + } + + private static volatile io.grpc.MethodDescriptor getAnalyzeIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AnalyzeIamPolicy", + requestType = com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.class, + responseType = com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getAnalyzeIamPolicyMethod() { + io.grpc.MethodDescriptor getAnalyzeIamPolicyMethod; + if ((getAnalyzeIamPolicyMethod = AssetServiceGrpc.getAnalyzeIamPolicyMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getAnalyzeIamPolicyMethod = AssetServiceGrpc.getAnalyzeIamPolicyMethod) == null) { + AssetServiceGrpc.getAnalyzeIamPolicyMethod = getAnalyzeIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnalyzeIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("AnalyzeIamPolicy")) + .build(); + } + } + } + return getAnalyzeIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getAnalyzeIamPolicyLongrunningMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AnalyzeIamPolicyLongrunning", + requestType = com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getAnalyzeIamPolicyLongrunningMethod() { + io.grpc.MethodDescriptor getAnalyzeIamPolicyLongrunningMethod; + if ((getAnalyzeIamPolicyLongrunningMethod = AssetServiceGrpc.getAnalyzeIamPolicyLongrunningMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getAnalyzeIamPolicyLongrunningMethod = AssetServiceGrpc.getAnalyzeIamPolicyLongrunningMethod) == null) { + AssetServiceGrpc.getAnalyzeIamPolicyLongrunningMethod = getAnalyzeIamPolicyLongrunningMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnalyzeIamPolicyLongrunning")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("AnalyzeIamPolicyLongrunning")) + .build(); + } + } + } + return getAnalyzeIamPolicyLongrunningMethod; + } + + private static volatile io.grpc.MethodDescriptor getAnalyzeMoveMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AnalyzeMove", + requestType = com.google.cloud.asset.v1.AnalyzeMoveRequest.class, + responseType = com.google.cloud.asset.v1.AnalyzeMoveResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getAnalyzeMoveMethod() { + io.grpc.MethodDescriptor getAnalyzeMoveMethod; + if ((getAnalyzeMoveMethod = AssetServiceGrpc.getAnalyzeMoveMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getAnalyzeMoveMethod = AssetServiceGrpc.getAnalyzeMoveMethod) == null) { + AssetServiceGrpc.getAnalyzeMoveMethod = getAnalyzeMoveMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnalyzeMove")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.AnalyzeMoveRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.AnalyzeMoveResponse.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("AnalyzeMove")) + .build(); + } + } + } + return getAnalyzeMoveMethod; + } + + private static volatile io.grpc.MethodDescriptor getQueryAssetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryAssets", + requestType = com.google.cloud.asset.v1.QueryAssetsRequest.class, + responseType = com.google.cloud.asset.v1.QueryAssetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getQueryAssetsMethod() { + io.grpc.MethodDescriptor getQueryAssetsMethod; + if ((getQueryAssetsMethod = AssetServiceGrpc.getQueryAssetsMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getQueryAssetsMethod = AssetServiceGrpc.getQueryAssetsMethod) == null) { + AssetServiceGrpc.getQueryAssetsMethod = getQueryAssetsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.QueryAssetsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.QueryAssetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("QueryAssets")) + .build(); + } + } + } + return getQueryAssetsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateSavedQueryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSavedQuery", + requestType = com.google.cloud.asset.v1.CreateSavedQueryRequest.class, + responseType = com.google.cloud.asset.v1.SavedQuery.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSavedQueryMethod() { + io.grpc.MethodDescriptor getCreateSavedQueryMethod; + if ((getCreateSavedQueryMethod = AssetServiceGrpc.getCreateSavedQueryMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getCreateSavedQueryMethod = AssetServiceGrpc.getCreateSavedQueryMethod) == null) { + AssetServiceGrpc.getCreateSavedQueryMethod = getCreateSavedQueryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSavedQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.CreateSavedQueryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.SavedQuery.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("CreateSavedQuery")) + .build(); + } + } + } + return getCreateSavedQueryMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSavedQueryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSavedQuery", + requestType = com.google.cloud.asset.v1.GetSavedQueryRequest.class, + responseType = com.google.cloud.asset.v1.SavedQuery.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSavedQueryMethod() { + io.grpc.MethodDescriptor getGetSavedQueryMethod; + if ((getGetSavedQueryMethod = AssetServiceGrpc.getGetSavedQueryMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getGetSavedQueryMethod = AssetServiceGrpc.getGetSavedQueryMethod) == null) { + AssetServiceGrpc.getGetSavedQueryMethod = getGetSavedQueryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSavedQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.GetSavedQueryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.SavedQuery.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("GetSavedQuery")) + .build(); + } + } + } + return getGetSavedQueryMethod; + } + + private static volatile io.grpc.MethodDescriptor getListSavedQueriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSavedQueries", + requestType = com.google.cloud.asset.v1.ListSavedQueriesRequest.class, + responseType = com.google.cloud.asset.v1.ListSavedQueriesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSavedQueriesMethod() { + io.grpc.MethodDescriptor getListSavedQueriesMethod; + if ((getListSavedQueriesMethod = AssetServiceGrpc.getListSavedQueriesMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getListSavedQueriesMethod = AssetServiceGrpc.getListSavedQueriesMethod) == null) { + AssetServiceGrpc.getListSavedQueriesMethod = getListSavedQueriesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSavedQueries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.ListSavedQueriesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.ListSavedQueriesResponse.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ListSavedQueries")) + .build(); + } + } + } + return getListSavedQueriesMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateSavedQueryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSavedQuery", + requestType = com.google.cloud.asset.v1.UpdateSavedQueryRequest.class, + responseType = com.google.cloud.asset.v1.SavedQuery.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSavedQueryMethod() { + io.grpc.MethodDescriptor getUpdateSavedQueryMethod; + if ((getUpdateSavedQueryMethod = AssetServiceGrpc.getUpdateSavedQueryMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getUpdateSavedQueryMethod = AssetServiceGrpc.getUpdateSavedQueryMethod) == null) { + AssetServiceGrpc.getUpdateSavedQueryMethod = getUpdateSavedQueryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSavedQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.UpdateSavedQueryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.SavedQuery.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("UpdateSavedQuery")) + .build(); + } + } + } + return getUpdateSavedQueryMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteSavedQueryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSavedQuery", + requestType = com.google.cloud.asset.v1.DeleteSavedQueryRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteSavedQueryMethod() { + io.grpc.MethodDescriptor getDeleteSavedQueryMethod; + if ((getDeleteSavedQueryMethod = AssetServiceGrpc.getDeleteSavedQueryMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getDeleteSavedQueryMethod = AssetServiceGrpc.getDeleteSavedQueryMethod) == null) { + AssetServiceGrpc.getDeleteSavedQueryMethod = getDeleteSavedQueryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSavedQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.DeleteSavedQueryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("DeleteSavedQuery")) + .build(); + } + } + } + return getDeleteSavedQueryMethod; + } + + private static volatile io.grpc.MethodDescriptor getBatchGetEffectiveIamPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchGetEffectiveIamPolicies", + requestType = com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.class, + responseType = com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getBatchGetEffectiveIamPoliciesMethod() { + io.grpc.MethodDescriptor getBatchGetEffectiveIamPoliciesMethod; + if ((getBatchGetEffectiveIamPoliciesMethod = AssetServiceGrpc.getBatchGetEffectiveIamPoliciesMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getBatchGetEffectiveIamPoliciesMethod = AssetServiceGrpc.getBatchGetEffectiveIamPoliciesMethod) == null) { + AssetServiceGrpc.getBatchGetEffectiveIamPoliciesMethod = getBatchGetEffectiveIamPoliciesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchGetEffectiveIamPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("BatchGetEffectiveIamPolicies")) + .build(); + } + } + } + return getBatchGetEffectiveIamPoliciesMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static AssetServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceStub(channel, callOptions); + } + }; + return AssetServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AssetServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceBlockingStub(channel, callOptions); + } + }; + return AssetServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AssetServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceFutureStub(channel, callOptions); + } + }; + return AssetServiceFutureStub.newStub(factory, channel); + } + + /** + *
    +   * Asset service definition.
    +   * 
    + */ + public static abstract class AssetServiceImplBase implements io.grpc.BindableService { + + /** + *
    +     * Exports assets with time and resource types to a given Cloud Storage
    +     * location/BigQuery table. For Cloud Storage location destinations, the
    +     * output format is newline-delimited JSON. Each line represents a
    +     * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON format; for BigQuery table
    +     * destinations, the output table stores the fields in asset Protobuf as
    +     * columns. This API implements the [google.longrunning.Operation][google.longrunning.Operation] API,
    +     * which allows you to keep track of the export. We recommend intervals of at
    +     * least 2 seconds with exponential retry to poll the export operation result.
    +     * For regular-size resource parent, the export operation usually finishes
    +     * within 5 minutes.
    +     * 
    + */ + public void exportAssets(com.google.cloud.asset.v1.ExportAssetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportAssetsMethod(), responseObserver); + } + + /** + *
    +     * Lists assets with time and resource types and returns paged results in
    +     * response.
    +     * 
    + */ + public void listAssets(com.google.cloud.asset.v1.ListAssetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAssetsMethod(), responseObserver); + } + + /** + *
    +     * Batch gets the update history of assets that overlap a time window.
    +     * For IAM_POLICY content, this API outputs history when the asset and its
    +     * attached IAM POLICY both exist. This can create gaps in the output history.
    +     * Otherwise, this API outputs history with asset in both non-delete or
    +     * deleted status.
    +     * If a specified asset does not exist, this API returns an INVALID_ARGUMENT
    +     * error.
    +     * 
    + */ + public void batchGetAssetsHistory(com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchGetAssetsHistoryMethod(), responseObserver); + } + + /** + *
    +     * Creates a feed in a parent project/folder/organization to listen to its
    +     * asset updates.
    +     * 
    + */ + public void createFeed(com.google.cloud.asset.v1.CreateFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFeedMethod(), responseObserver); + } + + /** + *
    +     * Gets details about an asset feed.
    +     * 
    + */ + public void getFeed(com.google.cloud.asset.v1.GetFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeedMethod(), responseObserver); + } + + /** + *
    +     * Lists all asset feeds in a parent project/folder/organization.
    +     * 
    + */ + public void listFeeds(com.google.cloud.asset.v1.ListFeedsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFeedsMethod(), responseObserver); + } + + /** + *
    +     * Updates an asset feed configuration.
    +     * 
    + */ + public void updateFeed(com.google.cloud.asset.v1.UpdateFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFeedMethod(), responseObserver); + } + + /** + *
    +     * Deletes an asset feed.
    +     * 
    + */ + public void deleteFeed(com.google.cloud.asset.v1.DeleteFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFeedMethod(), responseObserver); + } + + /** + *
    +     * Searches all Cloud resources within the specified scope, such as a project,
    +     * folder, or organization. The caller must be granted the
    +     * `cloudasset.assets.searchAllResources` permission on the desired scope,
    +     * otherwise the request will be rejected.
    +     * 
    + */ + public void searchAllResources(com.google.cloud.asset.v1.SearchAllResourcesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchAllResourcesMethod(), responseObserver); + } + + /** + *
    +     * Searches all IAM policies within the specified scope, such as a project,
    +     * folder, or organization. The caller must be granted the
    +     * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
    +     * otherwise the request will be rejected.
    +     * 
    + */ + public void searchAllIamPolicies(com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchAllIamPoliciesMethod(), responseObserver); + } + + /** + *
    +     * Analyzes IAM policies to answer which identities have what accesses on
    +     * which resources.
    +     * 
    + */ + public void analyzeIamPolicy(com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAnalyzeIamPolicyMethod(), responseObserver); + } + + /** + *
    +     * Analyzes IAM policies asynchronously to answer which identities have what
    +     * accesses on which resources, and writes the analysis results to a Google
    +     * Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
    +     * output format is the JSON format that represents a
    +     * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. This method implements the
    +     * [google.longrunning.Operation][google.longrunning.Operation], which allows you to track the operation
    +     * status. We recommend intervals of at least 2 seconds with exponential
    +     * backoff retry to poll the operation result. The metadata contains the
    +     * metadata for the long-running operation.
    +     * 
    + */ + public void analyzeIamPolicyLongrunning(com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAnalyzeIamPolicyLongrunningMethod(), responseObserver); + } + + /** + *
    +     * Analyze moving a resource to a specified destination without kicking off
    +     * the actual move. The analysis is best effort depending on the user's
    +     * permissions of viewing different hierarchical policies and configurations.
    +     * The policies and configuration are subject to change before the actual
    +     * resource migration takes place.
    +     * 
    + */ + public void analyzeMove(com.google.cloud.asset.v1.AnalyzeMoveRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAnalyzeMoveMethod(), responseObserver); + } + + /** + *
    +     * Issue a job that queries assets using a SQL statement compatible with
    +     * [BigQuery Standard
    +     * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
    +     * If the query execution finishes within timeout and there's no pagination,
    +     * the full query results will be returned in the `QueryAssetsResponse`.
    +     * Otherwise, full query results can be obtained by issuing extra requests
    +     * with the `job_reference` from the a previous `QueryAssets` call.
    +     * Note, the query result has approximately 10 GB limitation enforced by
    +     * BigQuery
    +     * https://cloud.google.com/bigquery/docs/best-practices-performance-output,
    +     * queries return larger results will result in errors.
    +     * 
    + */ + public void queryAssets(com.google.cloud.asset.v1.QueryAssetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryAssetsMethod(), responseObserver); + } + + /** + *
    +     * Creates a saved query in a parent project/folder/organization.
    +     * 
    + */ + public void createSavedQuery(com.google.cloud.asset.v1.CreateSavedQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSavedQueryMethod(), responseObserver); + } + + /** + *
    +     * Gets details about a saved query.
    +     * 
    + */ + public void getSavedQuery(com.google.cloud.asset.v1.GetSavedQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSavedQueryMethod(), responseObserver); + } + + /** + *
    +     * Lists all saved queries in a parent project/folder/organization.
    +     * 
    + */ + public void listSavedQueries(com.google.cloud.asset.v1.ListSavedQueriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSavedQueriesMethod(), responseObserver); + } + + /** + *
    +     * Updates a saved query.
    +     * 
    + */ + public void updateSavedQuery(com.google.cloud.asset.v1.UpdateSavedQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSavedQueryMethod(), responseObserver); + } + + /** + *
    +     * Deletes a saved query.
    +     * 
    + */ + public void deleteSavedQuery(com.google.cloud.asset.v1.DeleteSavedQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSavedQueryMethod(), responseObserver); + } + + /** + *
    +     * Gets effective IAM policies for a batch of resources.
    +     * 
    + */ + public void batchGetEffectiveIamPolicies(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchGetEffectiveIamPoliciesMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getExportAssetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.ExportAssetsRequest, + com.google.longrunning.Operation>( + this, METHODID_EXPORT_ASSETS))) + .addMethod( + getListAssetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.ListAssetsRequest, + com.google.cloud.asset.v1.ListAssetsResponse>( + this, METHODID_LIST_ASSETS))) + .addMethod( + getBatchGetAssetsHistoryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest, + com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse>( + this, METHODID_BATCH_GET_ASSETS_HISTORY))) + .addMethod( + getCreateFeedMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.CreateFeedRequest, + com.google.cloud.asset.v1.Feed>( + this, METHODID_CREATE_FEED))) + .addMethod( + getGetFeedMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.GetFeedRequest, + com.google.cloud.asset.v1.Feed>( + this, METHODID_GET_FEED))) + .addMethod( + getListFeedsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.ListFeedsRequest, + com.google.cloud.asset.v1.ListFeedsResponse>( + this, METHODID_LIST_FEEDS))) + .addMethod( + getUpdateFeedMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.UpdateFeedRequest, + com.google.cloud.asset.v1.Feed>( + this, METHODID_UPDATE_FEED))) + .addMethod( + getDeleteFeedMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.DeleteFeedRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_FEED))) + .addMethod( + getSearchAllResourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.SearchAllResourcesRequest, + com.google.cloud.asset.v1.SearchAllResourcesResponse>( + this, METHODID_SEARCH_ALL_RESOURCES))) + .addMethod( + getSearchAllIamPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.SearchAllIamPoliciesRequest, + com.google.cloud.asset.v1.SearchAllIamPoliciesResponse>( + this, METHODID_SEARCH_ALL_IAM_POLICIES))) + .addMethod( + getAnalyzeIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.AnalyzeIamPolicyRequest, + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse>( + this, METHODID_ANALYZE_IAM_POLICY))) + .addMethod( + getAnalyzeIamPolicyLongrunningMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest, + com.google.longrunning.Operation>( + this, METHODID_ANALYZE_IAM_POLICY_LONGRUNNING))) + .addMethod( + getAnalyzeMoveMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.AnalyzeMoveRequest, + com.google.cloud.asset.v1.AnalyzeMoveResponse>( + this, METHODID_ANALYZE_MOVE))) + .addMethod( + getQueryAssetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.QueryAssetsRequest, + com.google.cloud.asset.v1.QueryAssetsResponse>( + this, METHODID_QUERY_ASSETS))) + .addMethod( + getCreateSavedQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.CreateSavedQueryRequest, + com.google.cloud.asset.v1.SavedQuery>( + this, METHODID_CREATE_SAVED_QUERY))) + .addMethod( + getGetSavedQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.GetSavedQueryRequest, + com.google.cloud.asset.v1.SavedQuery>( + this, METHODID_GET_SAVED_QUERY))) + .addMethod( + getListSavedQueriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.ListSavedQueriesRequest, + com.google.cloud.asset.v1.ListSavedQueriesResponse>( + this, METHODID_LIST_SAVED_QUERIES))) + .addMethod( + getUpdateSavedQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.UpdateSavedQueryRequest, + com.google.cloud.asset.v1.SavedQuery>( + this, METHODID_UPDATE_SAVED_QUERY))) + .addMethod( + getDeleteSavedQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.DeleteSavedQueryRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_SAVED_QUERY))) + .addMethod( + getBatchGetEffectiveIamPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse>( + this, METHODID_BATCH_GET_EFFECTIVE_IAM_POLICIES))) + .build(); + } + } + + /** + *
    +   * Asset service definition.
    +   * 
    + */ + public static final class AssetServiceStub extends io.grpc.stub.AbstractAsyncStub { + private AssetServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssetServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceStub(channel, callOptions); + } + + /** + *
    +     * Exports assets with time and resource types to a given Cloud Storage
    +     * location/BigQuery table. For Cloud Storage location destinations, the
    +     * output format is newline-delimited JSON. Each line represents a
    +     * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON format; for BigQuery table
    +     * destinations, the output table stores the fields in asset Protobuf as
    +     * columns. This API implements the [google.longrunning.Operation][google.longrunning.Operation] API,
    +     * which allows you to keep track of the export. We recommend intervals of at
    +     * least 2 seconds with exponential retry to poll the export operation result.
    +     * For regular-size resource parent, the export operation usually finishes
    +     * within 5 minutes.
    +     * 
    + */ + public void exportAssets(com.google.cloud.asset.v1.ExportAssetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportAssetsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
    +     * Lists assets with time and resource types and returns paged results in
    +     * response.
    +     * 
    + */ + public void listAssets(com.google.cloud.asset.v1.ListAssetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAssetsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
    +     * Batch gets the update history of assets that overlap a time window.
    +     * For IAM_POLICY content, this API outputs history when the asset and its
    +     * attached IAM POLICY both exist. This can create gaps in the output history.
    +     * Otherwise, this API outputs history with asset in both non-delete or
    +     * deleted status.
    +     * If a specified asset does not exist, this API returns an INVALID_ARGUMENT
    +     * error.
    +     * 
    + */ + public void batchGetAssetsHistory(com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchGetAssetsHistoryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
    +     * Creates a feed in a parent project/folder/organization to listen to its
    +     * asset updates.
    +     * 
    + */ + public void createFeed(com.google.cloud.asset.v1.CreateFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFeedMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
    +     * Gets details about an asset feed.
    +     * 
    + */ + public void getFeed(com.google.cloud.asset.v1.GetFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFeedMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
    +     * Lists all asset feeds in a parent project/folder/organization.
    +     * 
    + */ + public void listFeeds(com.google.cloud.asset.v1.ListFeedsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFeedsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
    +     * Updates an asset feed configuration.
    +     * 
    + */ + public void updateFeed(com.google.cloud.asset.v1.UpdateFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFeedMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
    +     * Deletes an asset feed.
    +     * 
    + */ + public void deleteFeed(com.google.cloud.asset.v1.DeleteFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFeedMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
    +     * Searches all Cloud resources within the specified scope, such as a project,
    +     * folder, or organization. The caller must be granted the
    +     * `cloudasset.assets.searchAllResources` permission on the desired scope,
    +     * otherwise the request will be rejected.
    +     * 
    + */ + public void searchAllResources(com.google.cloud.asset.v1.SearchAllResourcesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchAllResourcesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
    +     * Searches all IAM policies within the specified scope, such as a project,
    +     * folder, or organization. The caller must be granted the
    +     * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
    +     * otherwise the request will be rejected.
    +     * 
    + */ + public void searchAllIamPolicies(com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchAllIamPoliciesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
    +     * Analyzes IAM policies to answer which identities have what accesses on
    +     * which resources.
    +     * 
    + */ + public void analyzeIamPolicy(com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAnalyzeIamPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
    +     * Analyzes IAM policies asynchronously to answer which identities have what
    +     * accesses on which resources, and writes the analysis results to a Google
    +     * Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
    +     * output format is the JSON format that represents a
    +     * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. This method implements the
    +     * [google.longrunning.Operation][google.longrunning.Operation], which allows you to track the operation
    +     * status. We recommend intervals of at least 2 seconds with exponential
    +     * backoff retry to poll the operation result. The metadata contains the
    +     * metadata for the long-running operation.
    +     * 
    + */ + public void analyzeIamPolicyLongrunning(com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAnalyzeIamPolicyLongrunningMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
    +     * Analyze moving a resource to a specified destination without kicking off
    +     * the actual move. The analysis is best effort depending on the user's
    +     * permissions of viewing different hierarchical policies and configurations.
    +     * The policies and configuration are subject to change before the actual
    +     * resource migration takes place.
    +     * 
    + */ + public void analyzeMove(com.google.cloud.asset.v1.AnalyzeMoveRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAnalyzeMoveMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
    +     * Issue a job that queries assets using a SQL statement compatible with
    +     * [BigQuery Standard
    +     * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
    +     * If the query execution finishes within timeout and there's no pagination,
    +     * the full query results will be returned in the `QueryAssetsResponse`.
    +     * Otherwise, full query results can be obtained by issuing extra requests
    +     * with the `job_reference` from the a previous `QueryAssets` call.
    +     * Note, the query result has approximately 10 GB limitation enforced by
    +     * BigQuery
    +     * https://cloud.google.com/bigquery/docs/best-practices-performance-output,
    +     * queries return larger results will result in errors.
    +     * 
    + */ + public void queryAssets(com.google.cloud.asset.v1.QueryAssetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryAssetsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
    +     * Creates a saved query in a parent project/folder/organization.
    +     * 
    + */ + public void createSavedQuery(com.google.cloud.asset.v1.CreateSavedQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSavedQueryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
    +     * Gets details about a saved query.
    +     * 
    + */ + public void getSavedQuery(com.google.cloud.asset.v1.GetSavedQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSavedQueryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
    +     * Lists all saved queries in a parent project/folder/organization.
    +     * 
    + */ + public void listSavedQueries(com.google.cloud.asset.v1.ListSavedQueriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSavedQueriesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
    +     * Updates a saved query.
    +     * 
    + */ + public void updateSavedQuery(com.google.cloud.asset.v1.UpdateSavedQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSavedQueryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
    +     * Deletes a saved query.
    +     * 
    + */ + public void deleteSavedQuery(com.google.cloud.asset.v1.DeleteSavedQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSavedQueryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
    +     * Gets effective IAM policies for a batch of resources.
    +     * 
    + */ + public void batchGetEffectiveIamPolicies(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchGetEffectiveIamPoliciesMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
    +   * Asset service definition.
    +   * 
    + */ + public static final class AssetServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private AssetServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssetServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceBlockingStub(channel, callOptions); + } + + /** + *
    +     * Exports assets with time and resource types to a given Cloud Storage
    +     * location/BigQuery table. For Cloud Storage location destinations, the
    +     * output format is newline-delimited JSON. Each line represents a
    +     * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON format; for BigQuery table
    +     * destinations, the output table stores the fields in asset Protobuf as
    +     * columns. This API implements the [google.longrunning.Operation][google.longrunning.Operation] API,
    +     * which allows you to keep track of the export. We recommend intervals of at
    +     * least 2 seconds with exponential retry to poll the export operation result.
    +     * For regular-size resource parent, the export operation usually finishes
    +     * within 5 minutes.
    +     * 
    + */ + public com.google.longrunning.Operation exportAssets(com.google.cloud.asset.v1.ExportAssetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportAssetsMethod(), getCallOptions(), request); + } + + /** + *
    +     * Lists assets with time and resource types and returns paged results in
    +     * response.
    +     * 
    + */ + public com.google.cloud.asset.v1.ListAssetsResponse listAssets(com.google.cloud.asset.v1.ListAssetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAssetsMethod(), getCallOptions(), request); + } + + /** + *
    +     * Batch gets the update history of assets that overlap a time window.
    +     * For IAM_POLICY content, this API outputs history when the asset and its
    +     * attached IAM POLICY both exist. This can create gaps in the output history.
    +     * Otherwise, this API outputs history with asset in both non-delete or
    +     * deleted status.
    +     * If a specified asset does not exist, this API returns an INVALID_ARGUMENT
    +     * error.
    +     * 
    + */ + public com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse batchGetAssetsHistory(com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchGetAssetsHistoryMethod(), getCallOptions(), request); + } + + /** + *
    +     * Creates a feed in a parent project/folder/organization to listen to its
    +     * asset updates.
    +     * 
    + */ + public com.google.cloud.asset.v1.Feed createFeed(com.google.cloud.asset.v1.CreateFeedRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFeedMethod(), getCallOptions(), request); + } + + /** + *
    +     * Gets details about an asset feed.
    +     * 
    + */ + public com.google.cloud.asset.v1.Feed getFeed(com.google.cloud.asset.v1.GetFeedRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFeedMethod(), getCallOptions(), request); + } + + /** + *
    +     * Lists all asset feeds in a parent project/folder/organization.
    +     * 
    + */ + public com.google.cloud.asset.v1.ListFeedsResponse listFeeds(com.google.cloud.asset.v1.ListFeedsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFeedsMethod(), getCallOptions(), request); + } + + /** + *
    +     * Updates an asset feed configuration.
    +     * 
    + */ + public com.google.cloud.asset.v1.Feed updateFeed(com.google.cloud.asset.v1.UpdateFeedRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFeedMethod(), getCallOptions(), request); + } + + /** + *
    +     * Deletes an asset feed.
    +     * 
    + */ + public com.google.protobuf.Empty deleteFeed(com.google.cloud.asset.v1.DeleteFeedRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFeedMethod(), getCallOptions(), request); + } + + /** + *
    +     * Searches all Cloud resources within the specified scope, such as a project,
    +     * folder, or organization. The caller must be granted the
    +     * `cloudasset.assets.searchAllResources` permission on the desired scope,
    +     * otherwise the request will be rejected.
    +     * 
    + */ + public com.google.cloud.asset.v1.SearchAllResourcesResponse searchAllResources(com.google.cloud.asset.v1.SearchAllResourcesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchAllResourcesMethod(), getCallOptions(), request); + } + + /** + *
    +     * Searches all IAM policies within the specified scope, such as a project,
    +     * folder, or organization. The caller must be granted the
    +     * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
    +     * otherwise the request will be rejected.
    +     * 
    + */ + public com.google.cloud.asset.v1.SearchAllIamPoliciesResponse searchAllIamPolicies(com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchAllIamPoliciesMethod(), getCallOptions(), request); + } + + /** + *
    +     * Analyzes IAM policies to answer which identities have what accesses on
    +     * which resources.
    +     * 
    + */ + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse analyzeIamPolicy(com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAnalyzeIamPolicyMethod(), getCallOptions(), request); + } + + /** + *
    +     * Analyzes IAM policies asynchronously to answer which identities have what
    +     * accesses on which resources, and writes the analysis results to a Google
    +     * Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
    +     * output format is the JSON format that represents a
    +     * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. This method implements the
    +     * [google.longrunning.Operation][google.longrunning.Operation], which allows you to track the operation
    +     * status. We recommend intervals of at least 2 seconds with exponential
    +     * backoff retry to poll the operation result. The metadata contains the
    +     * metadata for the long-running operation.
    +     * 
    + */ + public com.google.longrunning.Operation analyzeIamPolicyLongrunning(com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAnalyzeIamPolicyLongrunningMethod(), getCallOptions(), request); + } + + /** + *
    +     * Analyze moving a resource to a specified destination without kicking off
    +     * the actual move. The analysis is best effort depending on the user's
    +     * permissions of viewing different hierarchical policies and configurations.
    +     * The policies and configuration are subject to change before the actual
    +     * resource migration takes place.
    +     * 
    + */ + public com.google.cloud.asset.v1.AnalyzeMoveResponse analyzeMove(com.google.cloud.asset.v1.AnalyzeMoveRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAnalyzeMoveMethod(), getCallOptions(), request); + } + + /** + *
    +     * Issue a job that queries assets using a SQL statement compatible with
    +     * [BigQuery Standard
    +     * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
    +     * If the query execution finishes within timeout and there's no pagination,
    +     * the full query results will be returned in the `QueryAssetsResponse`.
    +     * Otherwise, full query results can be obtained by issuing extra requests
    +     * with the `job_reference` from the a previous `QueryAssets` call.
    +     * Note, the query result has approximately 10 GB limitation enforced by
    +     * BigQuery
    +     * https://cloud.google.com/bigquery/docs/best-practices-performance-output,
    +     * queries return larger results will result in errors.
    +     * 
    + */ + public com.google.cloud.asset.v1.QueryAssetsResponse queryAssets(com.google.cloud.asset.v1.QueryAssetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryAssetsMethod(), getCallOptions(), request); + } + + /** + *
    +     * Creates a saved query in a parent project/folder/organization.
    +     * 
    + */ + public com.google.cloud.asset.v1.SavedQuery createSavedQuery(com.google.cloud.asset.v1.CreateSavedQueryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSavedQueryMethod(), getCallOptions(), request); + } + + /** + *
    +     * Gets details about a saved query.
    +     * 
    + */ + public com.google.cloud.asset.v1.SavedQuery getSavedQuery(com.google.cloud.asset.v1.GetSavedQueryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSavedQueryMethod(), getCallOptions(), request); + } + + /** + *
    +     * Lists all saved queries in a parent project/folder/organization.
    +     * 
    + */ + public com.google.cloud.asset.v1.ListSavedQueriesResponse listSavedQueries(com.google.cloud.asset.v1.ListSavedQueriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSavedQueriesMethod(), getCallOptions(), request); + } + + /** + *
    +     * Updates a saved query.
    +     * 
    + */ + public com.google.cloud.asset.v1.SavedQuery updateSavedQuery(com.google.cloud.asset.v1.UpdateSavedQueryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSavedQueryMethod(), getCallOptions(), request); + } + + /** + *
    +     * Deletes a saved query.
    +     * 
    + */ + public com.google.protobuf.Empty deleteSavedQuery(com.google.cloud.asset.v1.DeleteSavedQueryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSavedQueryMethod(), getCallOptions(), request); + } + + /** + *
    +     * Gets effective IAM policies for a batch of resources.
    +     * 
    + */ + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse batchGetEffectiveIamPolicies(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchGetEffectiveIamPoliciesMethod(), getCallOptions(), request); + } + } + + /** + *
    +   * Asset service definition.
    +   * 
    + */ + public static final class AssetServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private AssetServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssetServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceFutureStub(channel, callOptions); + } + + /** + *
    +     * Exports assets with time and resource types to a given Cloud Storage
    +     * location/BigQuery table. For Cloud Storage location destinations, the
    +     * output format is newline-delimited JSON. Each line represents a
    +     * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON format; for BigQuery table
    +     * destinations, the output table stores the fields in asset Protobuf as
    +     * columns. This API implements the [google.longrunning.Operation][google.longrunning.Operation] API,
    +     * which allows you to keep track of the export. We recommend intervals of at
    +     * least 2 seconds with exponential retry to poll the export operation result.
    +     * For regular-size resource parent, the export operation usually finishes
    +     * within 5 minutes.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture exportAssets( + com.google.cloud.asset.v1.ExportAssetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportAssetsMethod(), getCallOptions()), request); + } + + /** + *
    +     * Lists assets with time and resource types and returns paged results in
    +     * response.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture listAssets( + com.google.cloud.asset.v1.ListAssetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAssetsMethod(), getCallOptions()), request); + } + + /** + *
    +     * Batch gets the update history of assets that overlap a time window.
    +     * For IAM_POLICY content, this API outputs history when the asset and its
    +     * attached IAM POLICY both exist. This can create gaps in the output history.
    +     * Otherwise, this API outputs history with asset in both non-delete or
    +     * deleted status.
    +     * If a specified asset does not exist, this API returns an INVALID_ARGUMENT
    +     * error.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture batchGetAssetsHistory( + com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchGetAssetsHistoryMethod(), getCallOptions()), request); + } + + /** + *
    +     * Creates a feed in a parent project/folder/organization to listen to its
    +     * asset updates.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture createFeed( + com.google.cloud.asset.v1.CreateFeedRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFeedMethod(), getCallOptions()), request); + } + + /** + *
    +     * Gets details about an asset feed.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture getFeed( + com.google.cloud.asset.v1.GetFeedRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFeedMethod(), getCallOptions()), request); + } + + /** + *
    +     * Lists all asset feeds in a parent project/folder/organization.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture listFeeds( + com.google.cloud.asset.v1.ListFeedsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFeedsMethod(), getCallOptions()), request); + } + + /** + *
    +     * Updates an asset feed configuration.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture updateFeed( + com.google.cloud.asset.v1.UpdateFeedRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFeedMethod(), getCallOptions()), request); + } + + /** + *
    +     * Deletes an asset feed.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture deleteFeed( + com.google.cloud.asset.v1.DeleteFeedRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFeedMethod(), getCallOptions()), request); + } + + /** + *
    +     * Searches all Cloud resources within the specified scope, such as a project,
    +     * folder, or organization. The caller must be granted the
    +     * `cloudasset.assets.searchAllResources` permission on the desired scope,
    +     * otherwise the request will be rejected.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture searchAllResources( + com.google.cloud.asset.v1.SearchAllResourcesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchAllResourcesMethod(), getCallOptions()), request); + } + + /** + *
    +     * Searches all IAM policies within the specified scope, such as a project,
    +     * folder, or organization. The caller must be granted the
    +     * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
    +     * otherwise the request will be rejected.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture searchAllIamPolicies( + com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchAllIamPoliciesMethod(), getCallOptions()), request); + } + + /** + *
    +     * Analyzes IAM policies to answer which identities have what accesses on
    +     * which resources.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture analyzeIamPolicy( + com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAnalyzeIamPolicyMethod(), getCallOptions()), request); + } + + /** + *
    +     * Analyzes IAM policies asynchronously to answer which identities have what
    +     * accesses on which resources, and writes the analysis results to a Google
    +     * Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
    +     * output format is the JSON format that represents a
    +     * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. This method implements the
    +     * [google.longrunning.Operation][google.longrunning.Operation], which allows you to track the operation
    +     * status. We recommend intervals of at least 2 seconds with exponential
    +     * backoff retry to poll the operation result. The metadata contains the
    +     * metadata for the long-running operation.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture analyzeIamPolicyLongrunning( + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAnalyzeIamPolicyLongrunningMethod(), getCallOptions()), request); + } + + /** + *
    +     * Analyze moving a resource to a specified destination without kicking off
    +     * the actual move. The analysis is best effort depending on the user's
    +     * permissions of viewing different hierarchical policies and configurations.
    +     * The policies and configuration are subject to change before the actual
    +     * resource migration takes place.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture analyzeMove( + com.google.cloud.asset.v1.AnalyzeMoveRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAnalyzeMoveMethod(), getCallOptions()), request); + } + + /** + *
    +     * Issue a job that queries assets using a SQL statement compatible with
    +     * [BigQuery Standard
    +     * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
    +     * If the query execution finishes within timeout and there's no pagination,
    +     * the full query results will be returned in the `QueryAssetsResponse`.
    +     * Otherwise, full query results can be obtained by issuing extra requests
    +     * with the `job_reference` from the a previous `QueryAssets` call.
    +     * Note, the query result has approximately 10 GB limitation enforced by
    +     * BigQuery
    +     * https://cloud.google.com/bigquery/docs/best-practices-performance-output,
    +     * queries return larger results will result in errors.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture queryAssets( + com.google.cloud.asset.v1.QueryAssetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryAssetsMethod(), getCallOptions()), request); + } + + /** + *
    +     * Creates a saved query in a parent project/folder/organization.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture createSavedQuery( + com.google.cloud.asset.v1.CreateSavedQueryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSavedQueryMethod(), getCallOptions()), request); + } + + /** + *
    +     * Gets details about a saved query.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture getSavedQuery( + com.google.cloud.asset.v1.GetSavedQueryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSavedQueryMethod(), getCallOptions()), request); + } + + /** + *
    +     * Lists all saved queries in a parent project/folder/organization.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture listSavedQueries( + com.google.cloud.asset.v1.ListSavedQueriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSavedQueriesMethod(), getCallOptions()), request); + } + + /** + *
    +     * Updates a saved query.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture updateSavedQuery( + com.google.cloud.asset.v1.UpdateSavedQueryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSavedQueryMethod(), getCallOptions()), request); + } + + /** + *
    +     * Deletes a saved query.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture deleteSavedQuery( + com.google.cloud.asset.v1.DeleteSavedQueryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSavedQueryMethod(), getCallOptions()), request); + } + + /** + *
    +     * Gets effective IAM policies for a batch of resources.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture batchGetEffectiveIamPolicies( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchGetEffectiveIamPoliciesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_EXPORT_ASSETS = 0; + private static final int METHODID_LIST_ASSETS = 1; + private static final int METHODID_BATCH_GET_ASSETS_HISTORY = 2; + private static final int METHODID_CREATE_FEED = 3; + private static final int METHODID_GET_FEED = 4; + private static final int METHODID_LIST_FEEDS = 5; + private static final int METHODID_UPDATE_FEED = 6; + private static final int METHODID_DELETE_FEED = 7; + private static final int METHODID_SEARCH_ALL_RESOURCES = 8; + private static final int METHODID_SEARCH_ALL_IAM_POLICIES = 9; + private static final int METHODID_ANALYZE_IAM_POLICY = 10; + private static final int METHODID_ANALYZE_IAM_POLICY_LONGRUNNING = 11; + private static final int METHODID_ANALYZE_MOVE = 12; + private static final int METHODID_QUERY_ASSETS = 13; + private static final int METHODID_CREATE_SAVED_QUERY = 14; + private static final int METHODID_GET_SAVED_QUERY = 15; + private static final int METHODID_LIST_SAVED_QUERIES = 16; + private static final int METHODID_UPDATE_SAVED_QUERY = 17; + private static final int METHODID_DELETE_SAVED_QUERY = 18; + private static final int METHODID_BATCH_GET_EFFECTIVE_IAM_POLICIES = 19; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AssetServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AssetServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_EXPORT_ASSETS: + serviceImpl.exportAssets((com.google.cloud.asset.v1.ExportAssetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ASSETS: + serviceImpl.listAssets((com.google.cloud.asset.v1.ListAssetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_GET_ASSETS_HISTORY: + serviceImpl.batchGetAssetsHistory((com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_FEED: + serviceImpl.createFeed((com.google.cloud.asset.v1.CreateFeedRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_FEED: + serviceImpl.getFeed((com.google.cloud.asset.v1.GetFeedRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FEEDS: + serviceImpl.listFeeds((com.google.cloud.asset.v1.ListFeedsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FEED: + serviceImpl.updateFeed((com.google.cloud.asset.v1.UpdateFeedRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FEED: + serviceImpl.deleteFeed((com.google.cloud.asset.v1.DeleteFeedRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEARCH_ALL_RESOURCES: + serviceImpl.searchAllResources((com.google.cloud.asset.v1.SearchAllResourcesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEARCH_ALL_IAM_POLICIES: + serviceImpl.searchAllIamPolicies((com.google.cloud.asset.v1.SearchAllIamPoliciesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ANALYZE_IAM_POLICY: + serviceImpl.analyzeIamPolicy((com.google.cloud.asset.v1.AnalyzeIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ANALYZE_IAM_POLICY_LONGRUNNING: + serviceImpl.analyzeIamPolicyLongrunning((com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ANALYZE_MOVE: + serviceImpl.analyzeMove((com.google.cloud.asset.v1.AnalyzeMoveRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_QUERY_ASSETS: + serviceImpl.queryAssets((com.google.cloud.asset.v1.QueryAssetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SAVED_QUERY: + serviceImpl.createSavedQuery((com.google.cloud.asset.v1.CreateSavedQueryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SAVED_QUERY: + serviceImpl.getSavedQuery((com.google.cloud.asset.v1.GetSavedQueryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SAVED_QUERIES: + serviceImpl.listSavedQueries((com.google.cloud.asset.v1.ListSavedQueriesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SAVED_QUERY: + serviceImpl.updateSavedQuery((com.google.cloud.asset.v1.UpdateSavedQueryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SAVED_QUERY: + serviceImpl.deleteSavedQuery((com.google.cloud.asset.v1.DeleteSavedQueryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_GET_EFFECTIVE_IAM_POLICIES: + serviceImpl.batchGetEffectiveIamPolicies((com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class AssetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AssetServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AssetService"); + } + } + + private static final class AssetServiceFileDescriptorSupplier + extends AssetServiceBaseDescriptorSupplier { + AssetServiceFileDescriptorSupplier() {} + } + + private static final class AssetServiceMethodDescriptorSupplier + extends AssetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AssetServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AssetServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AssetServiceFileDescriptorSupplier()) + .addMethod(getExportAssetsMethod()) + .addMethod(getListAssetsMethod()) + .addMethod(getBatchGetAssetsHistoryMethod()) + .addMethod(getCreateFeedMethod()) + .addMethod(getGetFeedMethod()) + .addMethod(getListFeedsMethod()) + .addMethod(getUpdateFeedMethod()) + .addMethod(getDeleteFeedMethod()) + .addMethod(getSearchAllResourcesMethod()) + .addMethod(getSearchAllIamPoliciesMethod()) + .addMethod(getAnalyzeIamPolicyMethod()) + .addMethod(getAnalyzeIamPolicyLongrunningMethod()) + .addMethod(getAnalyzeMoveMethod()) + .addMethod(getQueryAssetsMethod()) + .addMethod(getCreateSavedQueryMethod()) + .addMethod(getGetSavedQueryMethod()) + .addMethod(getListSavedQueriesMethod()) + .addMethod(getUpdateSavedQueryMethod()) + .addMethod(getDeleteSavedQueryMethod()) + .addMethod(getBatchGetEffectiveIamPoliciesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadata.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadata.java similarity index 56% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadata.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadata.java index 16e2935d0316..303d385ca7a2 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadata.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * Represents the metadata of the longrunning operation for the
      * AnalyzeIamPolicyLongrunning rpc.
    @@ -28,112 +11,51 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata}
      */
    -public final class AnalyzeIamPolicyLongrunningMetadata
    -    extends com.google.protobuf.GeneratedMessageV3
    -    implements
    +public final class AnalyzeIamPolicyLongrunningMetadata extends
    +    com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata)
         AnalyzeIamPolicyLongrunningMetadataOrBuilder {
    -  private static final long serialVersionUID = 0L;
    +private static final long serialVersionUID = 0L;
       // Use AnalyzeIamPolicyLongrunningMetadata.newBuilder() to construct.
    -  private AnalyzeIamPolicyLongrunningMetadata(
    -      com.google.protobuf.GeneratedMessageV3.Builder builder) {
    +  private AnalyzeIamPolicyLongrunningMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -
    -  private AnalyzeIamPolicyLongrunningMetadata() {}
    +  private AnalyzeIamPolicyLongrunningMetadata() {
    +  }
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(
    +      UnusedPrivateParameter unused) {
         return new AnalyzeIamPolicyLongrunningMetadata();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet
    +  getUnknownFields() {
         return this.unknownFields;
       }
    -
    -  private AnalyzeIamPolicyLongrunningMetadata(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              com.google.protobuf.Timestamp.Builder subBuilder = null;
    -              if (createTime_ != null) {
    -                subBuilder = createTime_.toBuilder();
    -              }
    -              createTime_ =
    -                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(createTime_);
    -                createTime_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
    -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetServiceProto
    -        .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor;
    +  public static final com.google.protobuf.Descriptors.Descriptor
    +      getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetServiceProto
    -        .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.class,
    -            com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.Builder.class);
    +            com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.class, com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.Builder.class);
       }
     
       public static final int CREATE_TIME_FIELD_NUMBER = 1;
       private com.google.protobuf.Timestamp createTime_;
       /**
    -   *
    -   *
        * 
        * Output only. The time the operation was created.
        * 
    * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -141,15 +63,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
        * Output only. The time the operation was created.
        * 
    * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -157,14 +75,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
        * Output only. The time the operation was created.
        * 
    * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -172,7 +87,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -184,11 +98,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -198,9 +113,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -208,19 +124,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata)) { return super.equals(obj); } - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata other = - (com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata) obj; + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata other = (com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -235,110 +151,102 @@ public int hashCode() { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata 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.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Represents the metadata of the longrunning operation for the
        * AnalyzeIamPolicyLongrunning rpc.
    @@ -346,39 +254,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata}
        */
    -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    -      implements
    +  public static final class Builder extends
    +      com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata)
           com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadataOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetServiceProto
    -          .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor
    +        getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetServiceProto
    -          .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.class,
    -              com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.Builder.class);
    +              com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.class, com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.newBuilder()
         private Builder() {
    -      maybeForceBuilderInitialization();
    +
         }
     
    -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    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();
    @@ -392,14 +294,13 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetServiceProto
    -          .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor
    +        getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor;
         }
     
         @java.lang.Override
    -    public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata
    -        getDefaultInstanceForType() {
    +    public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata getDefaultInstanceForType() {
           return com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.getDefaultInstance();
         }
     
    @@ -414,8 +315,7 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata buildPartial() {
    -      com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata result =
    -          new com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata(this);
    +      com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata result = new com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata(this);
           if (createTimeBuilder_ == null) {
             result.createTime_ = createTime_;
           } else {
    @@ -429,39 +329,38 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata buildPartia
         public Builder clone() {
           return super.clone();
         }
    -
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.AnalyzeIamPolicyLongrunningMetadata) {
    -        return mergeFrom((com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata) other);
    +        return mergeFrom((com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata)other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -469,13 +368,11 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
         }
     
         public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata other) {
    -      if (other
    -          == com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.getDefaultInstance())
    -        return this;
    +      if (other == com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.getDefaultInstance()) return this;
           if (other.hasCreateTime()) {
             mergeCreateTime(other.getCreateTime());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -490,76 +387,75 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10: {
    +              input.readMessage(
    +                  getCreateTimeFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 10
    +            default: {
    +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                done = true; // was an endgroup tag
    +              }
    +              break;
    +            } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata)
    -                e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
         private com.google.protobuf.Timestamp createTime_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp,
    -            com.google.protobuf.Timestamp.Builder,
    -            com.google.protobuf.TimestampOrBuilder>
    -        createTimeBuilder_;
    +        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
         /**
    -     *
    -     *
          * 
          * Output only. The time the operation was created.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
          * Output only. The time the operation was created.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
          * Output only. The time the operation was created.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -575,17 +471,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
          * Output only. The time the operation was created.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -596,21 +489,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
          * Output only. The time the operation was created.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -622,15 +511,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
          * Output only. The time the operation was created.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -644,71 +529,55 @@ public Builder clearCreateTime() { return this; } /** - * - * *
          * Output only. The time the operation was created.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
          * Output only. The time the operation was created.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
          * Output only. The time the operation was created.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -718,13 +587,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata) - private static final com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata(); } @@ -733,16 +601,27 @@ public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnalyzeIamPolicyLongrunningMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnalyzeIamPolicyLongrunningMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnalyzeIamPolicyLongrunningMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -757,4 +636,6 @@ public com.google.protobuf.Parser getParser public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadataOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadataOrBuilder.java similarity index 53% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadataOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadataOrBuilder.java index 5b3153957535..a603612929d5 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadataOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadataOrBuilder.java @@ -1,63 +1,36 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface AnalyzeIamPolicyLongrunningMetadataOrBuilder - extends +public interface AnalyzeIamPolicyLongrunningMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Output only. The time the operation was created.
        * 
    * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
        * Output only. The time the operation was created.
        * 
    * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
        * Output only. The time the operation was created.
        * 
    * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequest.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequest.java similarity index 62% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequest.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequest.java index 2cd68a884ad6..ee1691add12f 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequest.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequest.java @@ -1,166 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
    - * A request message for
    - * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
    + * A request message for [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
      * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest} */ -public final class AnalyzeIamPolicyLongrunningRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnalyzeIamPolicyLongrunningRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest) AnalyzeIamPolicyLongrunningRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AnalyzeIamPolicyLongrunningRequest.newBuilder() to construct. - private AnalyzeIamPolicyLongrunningRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AnalyzeIamPolicyLongrunningRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnalyzeIamPolicyLongrunningRequest() { savedAnalysisQuery_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnalyzeIamPolicyLongrunningRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private AnalyzeIamPolicyLongrunningRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder subBuilder = null; - if (analysisQuery_ != null) { - subBuilder = analysisQuery_.toBuilder(); - } - analysisQuery_ = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(analysisQuery_); - analysisQuery_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - savedAnalysisQuery_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.class, - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.Builder.class); + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.class, com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.Builder.class); } public static final int ANALYSIS_QUERY_FIELD_NUMBER = 1; private com.google.cloud.asset.v1.IamPolicyAnalysisQuery analysisQuery_; /** - * - * *
        * Required. The request query.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the analysisQuery field is set. */ @java.lang.Override @@ -168,34 +63,23 @@ public boolean hasAnalysisQuery() { return analysisQuery_ != null; } /** - * - * *
        * Required. The request query.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The analysisQuery. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getAnalysisQuery() { - return analysisQuery_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() - : analysisQuery_; + return analysisQuery_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() : analysisQuery_; } /** - * - * *
        * Required. The request query.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQueryOrBuilder() { @@ -205,8 +89,6 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer public static final int SAVED_ANALYSIS_QUERY_FIELD_NUMBER = 3; private volatile java.lang.Object savedAnalysisQuery_; /** - * - * *
        * Optional. The name of a saved query, which must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -224,7 +106,6 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer
        * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The savedAnalysisQuery. */ @java.lang.Override @@ -233,15 +114,14 @@ public java.lang.String getSavedAnalysisQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); savedAnalysisQuery_ = s; return s; } } /** - * - * *
        * Optional. The name of a saved query, which must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -259,15 +139,16 @@ public java.lang.String getSavedAnalysisQuery() {
        * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for savedAnalysisQuery. */ @java.lang.Override - public com.google.protobuf.ByteString getSavedAnalysisQueryBytes() { + public com.google.protobuf.ByteString + getSavedAnalysisQueryBytes() { java.lang.Object ref = savedAnalysisQuery_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); savedAnalysisQuery_ = b; return b; } else { @@ -278,17 +159,11 @@ public com.google.protobuf.ByteString getSavedAnalysisQueryBytes() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig outputConfig_; /** - * - * *
    -   * Required. Output configuration indicating where the results will be output
    -   * to.
    +   * Required. Output configuration indicating where the results will be output to.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -296,45 +171,30 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    -   * Required. Output configuration indicating where the results will be output
    -   * to.
    +   * Required. Output configuration indicating where the results will be output to.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    -   * Required. Output configuration indicating where the results will be output
    -   * to.
    +   * Required. Output configuration indicating where the results will be output to.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder getOutputConfigOrBuilder() { return getOutputConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -346,7 +206,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (analysisQuery_ != null) { output.writeMessage(1, getAnalysisQuery()); } @@ -356,7 +217,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedAnalysisQuery_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, savedAnalysisQuery_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -366,15 +227,17 @@ public int getSerializedSize() { size = 0; if (analysisQuery_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnalysisQuery()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAnalysisQuery()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutputConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedAnalysisQuery_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, savedAnalysisQuery_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -382,24 +245,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest other = - (com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest) obj; + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest other = (com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest) obj; if (hasAnalysisQuery() != other.hasAnalysisQuery()) return false; if (hasAnalysisQuery()) { - if (!getAnalysisQuery().equals(other.getAnalysisQuery())) return false; + if (!getAnalysisQuery() + .equals(other.getAnalysisQuery())) return false; } - if (!getSavedAnalysisQuery().equals(other.getSavedAnalysisQuery())) return false; + if (!getSavedAnalysisQuery() + .equals(other.getSavedAnalysisQuery())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -420,150 +285,135 @@ public int hashCode() { hash = (37 * hash) + OUTPUT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getOutputConfig().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest 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.asset.v1.AnalyzeIamPolicyLongrunningRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    -   * A request message for
    -   * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
    +   * A request message for [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
        * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest) com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.class, - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.Builder.class); + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.class, com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -585,14 +435,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest - getDefaultInstanceForType() { + public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest getDefaultInstanceForType() { return com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.getDefaultInstance(); } @@ -607,8 +456,7 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest build() { @java.lang.Override public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest buildPartial() { - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest result = - new com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest(this); + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest result = new com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest(this); if (analysisQueryBuilder_ == null) { result.analysisQuery_ = analysisQuery_; } else { @@ -628,39 +476,38 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.AnalyzeIamPolicyLongrunningRequest) { - return mergeFrom((com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest) other); + return mergeFrom((com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest)other); } else { super.mergeFrom(other); return this; @@ -668,9 +515,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest other) { - if (other - == com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.getDefaultInstance()) return this; if (other.hasAnalysisQuery()) { mergeAnalysisQuery(other.getAnalysisQuery()); } @@ -681,7 +526,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRe if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -696,75 +541,87 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getAnalysisQueryFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getOutputConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + savedAnalysisQuery_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private com.google.cloud.asset.v1.IamPolicyAnalysisQuery analysisQuery_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> - analysisQueryBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> analysisQueryBuilder_; /** - * - * *
          * Required. The request query.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the analysisQuery field is set. */ public boolean hasAnalysisQuery() { return analysisQueryBuilder_ != null || analysisQuery_ != null; } /** - * - * *
          * Required. The request query.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The analysisQuery. */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getAnalysisQuery() { if (analysisQueryBuilder_ == null) { - return analysisQuery_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() - : analysisQuery_; + return analysisQuery_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() : analysisQuery_; } else { return analysisQueryBuilder_.getMessage(); } } /** - * - * *
          * Required. The request query.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery value) { if (analysisQueryBuilder_ == null) { @@ -780,15 +637,11 @@ public Builder setAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery return this; } /** - * - * *
          * Required. The request query.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAnalysisQuery( com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder builderForValue) { @@ -802,23 +655,17 @@ public Builder setAnalysisQuery( return this; } /** - * - * *
          * Required. The request query.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery value) { if (analysisQueryBuilder_ == null) { if (analysisQuery_ != null) { analysisQuery_ = - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.newBuilder(analysisQuery_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.newBuilder(analysisQuery_).mergeFrom(value).buildPartial(); } else { analysisQuery_ = value; } @@ -830,15 +677,11 @@ public Builder mergeAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQue return this; } /** - * - * *
          * Required. The request query.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAnalysisQuery() { if (analysisQueryBuilder_ == null) { @@ -852,64 +695,48 @@ public Builder clearAnalysisQuery() { return this; } /** - * - * *
          * Required. The request query.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder getAnalysisQueryBuilder() { - + onChanged(); return getAnalysisQueryFieldBuilder().getBuilder(); } /** - * - * *
          * Required. The request query.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQueryOrBuilder() { if (analysisQueryBuilder_ != null) { return analysisQueryBuilder_.getMessageOrBuilder(); } else { - return analysisQuery_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() - : analysisQuery_; + return analysisQuery_ == null ? + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() : analysisQuery_; } } /** - * - * *
          * Required. The request query.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisQuery, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> getAnalysisQueryFieldBuilder() { if (analysisQueryBuilder_ == null) { - analysisQueryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder>( - getAnalysisQuery(), getParentForChildren(), isClean()); + analysisQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisQuery, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder>( + getAnalysisQuery(), + getParentForChildren(), + isClean()); analysisQuery_ = null; } return analysisQueryBuilder_; @@ -917,8 +744,6 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer private java.lang.Object savedAnalysisQuery_ = ""; /** - * - * *
          * Optional. The name of a saved query, which must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -936,13 +761,13 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer
          * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The savedAnalysisQuery. */ public java.lang.String getSavedAnalysisQuery() { java.lang.Object ref = savedAnalysisQuery_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); savedAnalysisQuery_ = s; return s; @@ -951,8 +776,6 @@ public java.lang.String getSavedAnalysisQuery() { } } /** - * - * *
          * Optional. The name of a saved query, which must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -970,14 +793,15 @@ public java.lang.String getSavedAnalysisQuery() {
          * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for savedAnalysisQuery. */ - public com.google.protobuf.ByteString getSavedAnalysisQueryBytes() { + public com.google.protobuf.ByteString + getSavedAnalysisQueryBytes() { java.lang.Object ref = savedAnalysisQuery_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); savedAnalysisQuery_ = b; return b; } else { @@ -985,8 +809,6 @@ public com.google.protobuf.ByteString getSavedAnalysisQueryBytes() { } } /** - * - * *
          * Optional. The name of a saved query, which must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -1004,22 +826,20 @@ public com.google.protobuf.ByteString getSavedAnalysisQueryBytes() {
          * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The savedAnalysisQuery to set. * @return This builder for chaining. */ - public Builder setSavedAnalysisQuery(java.lang.String value) { + public Builder setSavedAnalysisQuery( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + savedAnalysisQuery_ = value; onChanged(); return this; } /** - * - * *
          * Optional. The name of a saved query, which must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -1037,18 +857,15 @@ public Builder setSavedAnalysisQuery(java.lang.String value) {
          * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSavedAnalysisQuery() { - + savedAnalysisQuery_ = getDefaultInstance().getSavedAnalysisQuery(); onChanged(); return this; } /** - * - * *
          * Optional. The name of a saved query, which must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -1066,16 +883,16 @@ public Builder clearSavedAnalysisQuery() {
          * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for savedAnalysisQuery to set. * @return This builder for chaining. */ - public Builder setSavedAnalysisQueryBytes(com.google.protobuf.ByteString value) { + public Builder setSavedAnalysisQueryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + savedAnalysisQuery_ = value; onChanged(); return this; @@ -1083,61 +900,39 @@ public Builder setSavedAnalysisQueryBytes(com.google.protobuf.ByteString value) private com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig, - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
    -     * Required. Output configuration indicating where the results will be output
    -     * to.
    +     * Required. Output configuration indicating where the results will be output to.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
    -     * Required. Output configuration indicating where the results will be output
    -     * to.
    +     * Required. Output configuration indicating where the results will be output to.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
    -     * Required. Output configuration indicating where the results will be output
    -     * to.
    +     * Required. Output configuration indicating where the results will be output to.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1153,16 +948,11 @@ public Builder setOutputConfig(com.google.cloud.asset.v1.IamPolicyAnalysisOutput return this; } /** - * - * *
    -     * Required. Output configuration indicating where the results will be output
    -     * to.
    +     * Required. Output configuration indicating where the results will be output to.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder builderForValue) { @@ -1176,25 +966,17 @@ public Builder setOutputConfig( return this; } /** - * - * *
    -     * Required. Output configuration indicating where the results will be output
    -     * to.
    +     * Required. Output configuration indicating where the results will be output to.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeOutputConfig( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig value) { + public Builder mergeOutputConfig(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -1206,16 +988,11 @@ public Builder mergeOutputConfig( return this; } /** - * - * *
    -     * Required. Output configuration indicating where the results will be output
    -     * to.
    +     * Required. Output configuration indicating where the results will be output to.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1229,76 +1006,55 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
    -     * Required. Output configuration indicating where the results will be output
    -     * to.
    +     * Required. Output configuration indicating where the results will be output to.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder - getOutputConfigBuilder() { - + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder getOutputConfigBuilder() { + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
    -     * Required. Output configuration indicating where the results will be output
    -     * to.
    +     * Required. Output configuration indicating where the results will be output to.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
    -     * Required. Output configuration indicating where the results will be output
    -     * to.
    +     * Required. Output configuration indicating where the results will be output to.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig, - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig, - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1308,13 +1064,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest) - private static final com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest(); } @@ -1323,16 +1078,27 @@ public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnalyzeIamPolicyLongrunningRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnalyzeIamPolicyLongrunningRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnalyzeIamPolicyLongrunningRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1347,4 +1113,6 @@ public com.google.protobuf.Parser getParserF public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequestOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequestOrBuilder.java similarity index 66% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequestOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequestOrBuilder.java index 37d5b61146f4..d1b985662c72 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequestOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequestOrBuilder.java @@ -1,72 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface AnalyzeIamPolicyLongrunningRequestOrBuilder - extends +public interface AnalyzeIamPolicyLongrunningRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The request query.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the analysisQuery field is set. */ boolean hasAnalysisQuery(); /** - * - * *
        * Required. The request query.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The analysisQuery. */ com.google.cloud.asset.v1.IamPolicyAnalysisQuery getAnalysisQuery(); /** - * - * *
        * Required. The request query.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQueryOrBuilder(); /** - * - * *
        * Optional. The name of a saved query, which must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -84,13 +52,10 @@ public interface AnalyzeIamPolicyLongrunningRequestOrBuilder
        * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The savedAnalysisQuery. */ java.lang.String getSavedAnalysisQuery(); /** - * - * *
        * Optional. The name of a saved query, which must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -108,52 +73,35 @@ public interface AnalyzeIamPolicyLongrunningRequestOrBuilder
        * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for savedAnalysisQuery. */ - com.google.protobuf.ByteString getSavedAnalysisQueryBytes(); + com.google.protobuf.ByteString + getSavedAnalysisQueryBytes(); /** - * - * *
    -   * Required. Output configuration indicating where the results will be output
    -   * to.
    +   * Required. Output configuration indicating where the results will be output to.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    -   * Required. Output configuration indicating where the results will be output
    -   * to.
    +   * Required. Output configuration indicating where the results will be output to.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig getOutputConfig(); /** - * - * *
    -   * Required. Output configuration indicating where the results will be output
    -   * to.
    +   * Required. Output configuration indicating where the results will be output to.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder getOutputConfigOrBuilder(); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponse.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponse.java similarity index 53% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponse.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponse.java index 808bc307bc08..0ab3d2c77b35 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponse.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponse.java @@ -1,114 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
    - * A response message for
    - * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
    + * A response message for [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
      * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse} */ -public final class AnalyzeIamPolicyLongrunningResponse - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnalyzeIamPolicyLongrunningResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse) AnalyzeIamPolicyLongrunningResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AnalyzeIamPolicyLongrunningResponse.newBuilder() to construct. - private AnalyzeIamPolicyLongrunningResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AnalyzeIamPolicyLongrunningResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private AnalyzeIamPolicyLongrunningResponse() {} + private AnalyzeIamPolicyLongrunningResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnalyzeIamPolicyLongrunningResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private AnalyzeIamPolicyLongrunningResponse( - 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; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.class, - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.Builder.class); + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.class, com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +59,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - unknownFields.writeTo(output); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); } @java.lang.Override @@ -130,7 +70,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -138,15 +78,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse other = - (com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse) obj; + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse other = (com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse) obj; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,150 +96,135 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse 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.asset.v1.AnalyzeIamPolicyLongrunningResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    -   * A response message for
    -   * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
    +   * A response message for [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
        * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse) com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.class, - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.Builder.class); + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.class, com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.Builder.class); } // Construct using com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -308,14 +232,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse - getDefaultInstanceForType() { + public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse getDefaultInstanceForType() { return com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.getDefaultInstance(); } @@ -330,8 +253,7 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse build() { @java.lang.Override public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse buildPartial() { - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse result = - new com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse(this); + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse result = new com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse(this); onBuilt(); return result; } @@ -340,39 +262,38 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.AnalyzeIamPolicyLongrunningResponse) { - return mergeFrom((com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse) other); + return mergeFrom((com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse)other); } else { super.mergeFrom(other); return this; @@ -380,10 +301,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse other) { - if (other - == com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.getDefaultInstance()) - return this; - this.mergeUnknownFields(other.unknownFields); + if (other == com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -398,24 +317,35 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -425,13 +355,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse) - private static final com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse(); } @@ -440,16 +369,27 @@ public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnalyzeIamPolicyLongrunningResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnalyzeIamPolicyLongrunningResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnalyzeIamPolicyLongrunningResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -464,4 +404,6 @@ public com.google.protobuf.Parser getParser public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponseOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponseOrBuilder.java new file mode 100644 index 000000000000..e2d8e4d0037f --- /dev/null +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface AnalyzeIamPolicyLongrunningResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequest.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequest.java similarity index 67% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequest.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequest.java index e0090b98f09a..344f180f5f6d 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequest.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequest.java @@ -1,163 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
    - * A request message for
    - * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
    + * A request message for [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
      * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyRequest} */ -public final class AnalyzeIamPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnalyzeIamPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzeIamPolicyRequest) AnalyzeIamPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AnalyzeIamPolicyRequest.newBuilder() to construct. private AnalyzeIamPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnalyzeIamPolicyRequest() { savedAnalysisQuery_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnalyzeIamPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private AnalyzeIamPolicyRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder subBuilder = null; - if (analysisQuery_ != null) { - subBuilder = analysisQuery_.toBuilder(); - } - analysisQuery_ = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(analysisQuery_); - analysisQuery_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (executionTimeout_ != null) { - subBuilder = executionTimeout_.toBuilder(); - } - executionTimeout_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(executionTimeout_); - executionTimeout_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - savedAnalysisQuery_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.class, - com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.Builder.class); + com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.class, com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.Builder.class); } public static final int ANALYSIS_QUERY_FIELD_NUMBER = 1; private com.google.cloud.asset.v1.IamPolicyAnalysisQuery analysisQuery_; /** - * - * *
        * Required. The request query.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the analysisQuery field is set. */ @java.lang.Override @@ -165,34 +63,23 @@ public boolean hasAnalysisQuery() { return analysisQuery_ != null; } /** - * - * *
        * Required. The request query.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The analysisQuery. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getAnalysisQuery() { - return analysisQuery_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() - : analysisQuery_; + return analysisQuery_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() : analysisQuery_; } /** - * - * *
        * Required. The request query.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQueryOrBuilder() { @@ -202,8 +89,6 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer public static final int SAVED_ANALYSIS_QUERY_FIELD_NUMBER = 3; private volatile java.lang.Object savedAnalysisQuery_; /** - * - * *
        * Optional. The name of a saved query, which must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -221,7 +106,6 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer
        * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The savedAnalysisQuery. */ @java.lang.Override @@ -230,15 +114,14 @@ public java.lang.String getSavedAnalysisQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); savedAnalysisQuery_ = s; return s; } } /** - * - * *
        * Optional. The name of a saved query, which must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -256,15 +139,16 @@ public java.lang.String getSavedAnalysisQuery() {
        * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for savedAnalysisQuery. */ @java.lang.Override - public com.google.protobuf.ByteString getSavedAnalysisQueryBytes() { + public com.google.protobuf.ByteString + getSavedAnalysisQueryBytes() { java.lang.Object ref = savedAnalysisQuery_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); savedAnalysisQuery_ = b; return b; } else { @@ -275,11 +159,8 @@ public com.google.protobuf.ByteString getSavedAnalysisQueryBytes() { public static final int EXECUTION_TIMEOUT_FIELD_NUMBER = 2; private com.google.protobuf.Duration executionTimeout_; /** - * - * *
    -   * Optional. Amount of time executable has to complete.  See JSON
    -   * representation of
    +   * Optional. Amount of time executable has to complete.  See JSON representation of
        * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
        * If this field is set with a value less than the RPC deadline, and the
        * execution of your query hasn't finished in the specified
    @@ -289,10 +170,7 @@ public com.google.protobuf.ByteString getSavedAnalysisQueryBytes() {
        * Default is empty.
        * 
    * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the executionTimeout field is set. */ @java.lang.Override @@ -300,11 +178,8 @@ public boolean hasExecutionTimeout() { return executionTimeout_ != null; } /** - * - * *
    -   * Optional. Amount of time executable has to complete.  See JSON
    -   * representation of
    +   * Optional. Amount of time executable has to complete.  See JSON representation of
        * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
        * If this field is set with a value less than the RPC deadline, and the
        * execution of your query hasn't finished in the specified
    @@ -314,24 +189,16 @@ public boolean hasExecutionTimeout() {
        * Default is empty.
        * 
    * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The executionTimeout. */ @java.lang.Override public com.google.protobuf.Duration getExecutionTimeout() { - return executionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : executionTimeout_; + return executionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : executionTimeout_; } /** - * - * *
    -   * Optional. Amount of time executable has to complete.  See JSON
    -   * representation of
    +   * Optional. Amount of time executable has to complete.  See JSON representation of
        * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
        * If this field is set with a value less than the RPC deadline, and the
        * execution of your query hasn't finished in the specified
    @@ -341,9 +208,7 @@ public com.google.protobuf.Duration getExecutionTimeout() {
        * Default is empty.
        * 
    * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { @@ -351,7 +216,6 @@ public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -363,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (analysisQuery_ != null) { output.writeMessage(1, getAnalysisQuery()); } @@ -373,7 +238,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedAnalysisQuery_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, savedAnalysisQuery_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -383,15 +248,17 @@ public int getSerializedSize() { size = 0; if (analysisQuery_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnalysisQuery()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAnalysisQuery()); } if (executionTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExecutionTimeout()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExecutionTimeout()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedAnalysisQuery_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, savedAnalysisQuery_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -399,24 +266,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.AnalyzeIamPolicyRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.AnalyzeIamPolicyRequest other = - (com.google.cloud.asset.v1.AnalyzeIamPolicyRequest) obj; + com.google.cloud.asset.v1.AnalyzeIamPolicyRequest other = (com.google.cloud.asset.v1.AnalyzeIamPolicyRequest) obj; if (hasAnalysisQuery() != other.hasAnalysisQuery()) return false; if (hasAnalysisQuery()) { - if (!getAnalysisQuery().equals(other.getAnalysisQuery())) return false; + if (!getAnalysisQuery() + .equals(other.getAnalysisQuery())) return false; } - if (!getSavedAnalysisQuery().equals(other.getSavedAnalysisQuery())) return false; + if (!getSavedAnalysisQuery() + .equals(other.getSavedAnalysisQuery())) return false; if (hasExecutionTimeout() != other.hasExecutionTimeout()) return false; if (hasExecutionTimeout()) { - if (!getExecutionTimeout().equals(other.getExecutionTimeout())) return false; + if (!getExecutionTimeout() + .equals(other.getExecutionTimeout())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -437,149 +306,135 @@ public int hashCode() { hash = (37 * hash) + EXECUTION_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getExecutionTimeout().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest 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.asset.v1.AnalyzeIamPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.AnalyzeIamPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    -   * A request message for
    -   * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
    +   * A request message for [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
        * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzeIamPolicyRequest) com.google.cloud.asset.v1.AnalyzeIamPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.class, - com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.Builder.class); + com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.class, com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -601,9 +456,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_descriptor; } @java.lang.Override @@ -622,8 +477,7 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyRequest build() { @java.lang.Override public com.google.cloud.asset.v1.AnalyzeIamPolicyRequest buildPartial() { - com.google.cloud.asset.v1.AnalyzeIamPolicyRequest result = - new com.google.cloud.asset.v1.AnalyzeIamPolicyRequest(this); + com.google.cloud.asset.v1.AnalyzeIamPolicyRequest result = new com.google.cloud.asset.v1.AnalyzeIamPolicyRequest(this); if (analysisQueryBuilder_ == null) { result.analysisQuery_ = analysisQuery_; } else { @@ -643,39 +497,38 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.AnalyzeIamPolicyRequest) { - return mergeFrom((com.google.cloud.asset.v1.AnalyzeIamPolicyRequest) other); + return mergeFrom((com.google.cloud.asset.v1.AnalyzeIamPolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -683,8 +536,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyRequest other) { - if (other == com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.getDefaultInstance()) return this; if (other.hasAnalysisQuery()) { mergeAnalysisQuery(other.getAnalysisQuery()); } @@ -695,7 +547,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyRequest other if (other.hasExecutionTimeout()) { mergeExecutionTimeout(other.getExecutionTimeout()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -710,75 +562,87 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getAnalysisQueryFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getExecutionTimeoutFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + savedAnalysisQuery_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.AnalyzeIamPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private com.google.cloud.asset.v1.IamPolicyAnalysisQuery analysisQuery_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> - analysisQueryBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> analysisQueryBuilder_; /** - * - * *
          * Required. The request query.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the analysisQuery field is set. */ public boolean hasAnalysisQuery() { return analysisQueryBuilder_ != null || analysisQuery_ != null; } /** - * - * *
          * Required. The request query.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The analysisQuery. */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getAnalysisQuery() { if (analysisQueryBuilder_ == null) { - return analysisQuery_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() - : analysisQuery_; + return analysisQuery_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() : analysisQuery_; } else { return analysisQueryBuilder_.getMessage(); } } /** - * - * *
          * Required. The request query.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery value) { if (analysisQueryBuilder_ == null) { @@ -794,15 +658,11 @@ public Builder setAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery return this; } /** - * - * *
          * Required. The request query.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAnalysisQuery( com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder builderForValue) { @@ -816,23 +676,17 @@ public Builder setAnalysisQuery( return this; } /** - * - * *
          * Required. The request query.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery value) { if (analysisQueryBuilder_ == null) { if (analysisQuery_ != null) { analysisQuery_ = - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.newBuilder(analysisQuery_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.newBuilder(analysisQuery_).mergeFrom(value).buildPartial(); } else { analysisQuery_ = value; } @@ -844,15 +698,11 @@ public Builder mergeAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQue return this; } /** - * - * *
          * Required. The request query.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAnalysisQuery() { if (analysisQueryBuilder_ == null) { @@ -866,64 +716,48 @@ public Builder clearAnalysisQuery() { return this; } /** - * - * *
          * Required. The request query.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder getAnalysisQueryBuilder() { - + onChanged(); return getAnalysisQueryFieldBuilder().getBuilder(); } /** - * - * *
          * Required. The request query.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQueryOrBuilder() { if (analysisQueryBuilder_ != null) { return analysisQueryBuilder_.getMessageOrBuilder(); } else { - return analysisQuery_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() - : analysisQuery_; + return analysisQuery_ == null ? + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() : analysisQuery_; } } /** - * - * *
          * Required. The request query.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisQuery, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> getAnalysisQueryFieldBuilder() { if (analysisQueryBuilder_ == null) { - analysisQueryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder>( - getAnalysisQuery(), getParentForChildren(), isClean()); + analysisQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisQuery, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder>( + getAnalysisQuery(), + getParentForChildren(), + isClean()); analysisQuery_ = null; } return analysisQueryBuilder_; @@ -931,8 +765,6 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer private java.lang.Object savedAnalysisQuery_ = ""; /** - * - * *
          * Optional. The name of a saved query, which must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -950,13 +782,13 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer
          * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The savedAnalysisQuery. */ public java.lang.String getSavedAnalysisQuery() { java.lang.Object ref = savedAnalysisQuery_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); savedAnalysisQuery_ = s; return s; @@ -965,8 +797,6 @@ public java.lang.String getSavedAnalysisQuery() { } } /** - * - * *
          * Optional. The name of a saved query, which must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -984,14 +814,15 @@ public java.lang.String getSavedAnalysisQuery() {
          * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for savedAnalysisQuery. */ - public com.google.protobuf.ByteString getSavedAnalysisQueryBytes() { + public com.google.protobuf.ByteString + getSavedAnalysisQueryBytes() { java.lang.Object ref = savedAnalysisQuery_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); savedAnalysisQuery_ = b; return b; } else { @@ -999,8 +830,6 @@ public com.google.protobuf.ByteString getSavedAnalysisQueryBytes() { } } /** - * - * *
          * Optional. The name of a saved query, which must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -1018,22 +847,20 @@ public com.google.protobuf.ByteString getSavedAnalysisQueryBytes() {
          * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The savedAnalysisQuery to set. * @return This builder for chaining. */ - public Builder setSavedAnalysisQuery(java.lang.String value) { + public Builder setSavedAnalysisQuery( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + savedAnalysisQuery_ = value; onChanged(); return this; } /** - * - * *
          * Optional. The name of a saved query, which must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -1051,18 +878,15 @@ public Builder setSavedAnalysisQuery(java.lang.String value) {
          * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSavedAnalysisQuery() { - + savedAnalysisQuery_ = getDefaultInstance().getSavedAnalysisQuery(); onChanged(); return this; } /** - * - * *
          * Optional. The name of a saved query, which must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -1080,16 +904,16 @@ public Builder clearSavedAnalysisQuery() {
          * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for savedAnalysisQuery to set. * @return This builder for chaining. */ - public Builder setSavedAnalysisQueryBytes(com.google.protobuf.ByteString value) { + public Builder setSavedAnalysisQueryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + savedAnalysisQuery_ = value; onChanged(); return this; @@ -1097,16 +921,10 @@ public Builder setSavedAnalysisQueryBytes(com.google.protobuf.ByteString value) private com.google.protobuf.Duration executionTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - executionTimeoutBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> executionTimeoutBuilder_; /** - * - * *
    -     * Optional. Amount of time executable has to complete.  See JSON
    -     * representation of
    +     * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
          * If this field is set with a value less than the RPC deadline, and the
          * execution of your query hasn't finished in the specified
    @@ -1116,21 +934,15 @@ public Builder setSavedAnalysisQueryBytes(com.google.protobuf.ByteString value)
          * Default is empty.
          * 
    * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the executionTimeout field is set. */ public boolean hasExecutionTimeout() { return executionTimeoutBuilder_ != null || executionTimeout_ != null; } /** - * - * *
    -     * Optional. Amount of time executable has to complete.  See JSON
    -     * representation of
    +     * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
          * If this field is set with a value less than the RPC deadline, and the
          * execution of your query hasn't finished in the specified
    @@ -1140,27 +952,19 @@ public boolean hasExecutionTimeout() {
          * Default is empty.
          * 
    * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The executionTimeout. */ public com.google.protobuf.Duration getExecutionTimeout() { if (executionTimeoutBuilder_ == null) { - return executionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : executionTimeout_; + return executionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : executionTimeout_; } else { return executionTimeoutBuilder_.getMessage(); } } /** - * - * *
    -     * Optional. Amount of time executable has to complete.  See JSON
    -     * representation of
    +     * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
          * If this field is set with a value less than the RPC deadline, and the
          * execution of your query hasn't finished in the specified
    @@ -1170,9 +974,7 @@ public com.google.protobuf.Duration getExecutionTimeout() {
          * Default is empty.
          * 
    * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setExecutionTimeout(com.google.protobuf.Duration value) { if (executionTimeoutBuilder_ == null) { @@ -1188,11 +990,8 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
    -     * Optional. Amount of time executable has to complete.  See JSON
    -     * representation of
    +     * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
          * If this field is set with a value less than the RPC deadline, and the
          * execution of your query hasn't finished in the specified
    @@ -1202,11 +1001,10 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration value) {
          * Default is empty.
          * 
    * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setExecutionTimeout(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setExecutionTimeout( + com.google.protobuf.Duration.Builder builderForValue) { if (executionTimeoutBuilder_ == null) { executionTimeout_ = builderForValue.build(); onChanged(); @@ -1217,11 +1015,8 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration.Builder builderF return this; } /** - * - * *
    -     * Optional. Amount of time executable has to complete.  See JSON
    -     * representation of
    +     * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
          * If this field is set with a value less than the RPC deadline, and the
          * execution of your query hasn't finished in the specified
    @@ -1231,17 +1026,13 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration.Builder builderF
          * Default is empty.
          * 
    * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { if (executionTimeoutBuilder_ == null) { if (executionTimeout_ != null) { executionTimeout_ = - com.google.protobuf.Duration.newBuilder(executionTimeout_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(executionTimeout_).mergeFrom(value).buildPartial(); } else { executionTimeout_ = value; } @@ -1253,11 +1044,8 @@ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
    -     * Optional. Amount of time executable has to complete.  See JSON
    -     * representation of
    +     * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
          * If this field is set with a value less than the RPC deadline, and the
          * execution of your query hasn't finished in the specified
    @@ -1267,9 +1055,7 @@ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) {
          * Default is empty.
          * 
    * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearExecutionTimeout() { if (executionTimeoutBuilder_ == null) { @@ -1283,11 +1069,8 @@ public Builder clearExecutionTimeout() { return this; } /** - * - * *
    -     * Optional. Amount of time executable has to complete.  See JSON
    -     * representation of
    +     * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
          * If this field is set with a value less than the RPC deadline, and the
          * execution of your query hasn't finished in the specified
    @@ -1297,21 +1080,16 @@ public Builder clearExecutionTimeout() {
          * Default is empty.
          * 
    * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Duration.Builder getExecutionTimeoutBuilder() { - + onChanged(); return getExecutionTimeoutFieldBuilder().getBuilder(); } /** - * - * *
    -     * Optional. Amount of time executable has to complete.  See JSON
    -     * representation of
    +     * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
          * If this field is set with a value less than the RPC deadline, and the
          * execution of your query hasn't finished in the specified
    @@ -1321,25 +1099,19 @@ public com.google.protobuf.Duration.Builder getExecutionTimeoutBuilder() {
          * Default is empty.
          * 
    * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { if (executionTimeoutBuilder_ != null) { return executionTimeoutBuilder_.getMessageOrBuilder(); } else { - return executionTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : executionTimeout_; + return executionTimeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : executionTimeout_; } } /** - * - * *
    -     * Optional. Amount of time executable has to complete.  See JSON
    -     * representation of
    +     * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
          * If this field is set with a value less than the RPC deadline, and the
          * execution of your query hasn't finished in the specified
    @@ -1349,29 +1121,24 @@ public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() {
          * Default is empty.
          * 
    * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getExecutionTimeoutFieldBuilder() { if (executionTimeoutBuilder_ == null) { - executionTimeoutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getExecutionTimeout(), getParentForChildren(), isClean()); + executionTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getExecutionTimeout(), + getParentForChildren(), + isClean()); executionTimeout_ = null; } return executionTimeoutBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1381,12 +1148,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.AnalyzeIamPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzeIamPolicyRequest) private static final com.google.cloud.asset.v1.AnalyzeIamPolicyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.AnalyzeIamPolicyRequest(); } @@ -1395,16 +1162,27 @@ public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnalyzeIamPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnalyzeIamPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnalyzeIamPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1419,4 +1197,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.AnalyzeIamPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequestOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequestOrBuilder.java similarity index 74% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequestOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequestOrBuilder.java index 6c1c7d4abc83..ab4e24138d0b 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequestOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequestOrBuilder.java @@ -1,72 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface AnalyzeIamPolicyRequestOrBuilder - extends +public interface AnalyzeIamPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzeIamPolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The request query.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the analysisQuery field is set. */ boolean hasAnalysisQuery(); /** - * - * *
        * Required. The request query.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The analysisQuery. */ com.google.cloud.asset.v1.IamPolicyAnalysisQuery getAnalysisQuery(); /** - * - * *
        * Required. The request query.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQueryOrBuilder(); /** - * - * *
        * Optional. The name of a saved query, which must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -84,13 +52,10 @@ public interface AnalyzeIamPolicyRequestOrBuilder
        * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The savedAnalysisQuery. */ java.lang.String getSavedAnalysisQuery(); /** - * - * *
        * Optional. The name of a saved query, which must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -108,17 +73,14 @@ public interface AnalyzeIamPolicyRequestOrBuilder
        * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for savedAnalysisQuery. */ - com.google.protobuf.ByteString getSavedAnalysisQueryBytes(); + com.google.protobuf.ByteString + getSavedAnalysisQueryBytes(); /** - * - * *
    -   * Optional. Amount of time executable has to complete.  See JSON
    -   * representation of
    +   * Optional. Amount of time executable has to complete.  See JSON representation of
        * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
        * If this field is set with a value less than the RPC deadline, and the
        * execution of your query hasn't finished in the specified
    @@ -128,19 +90,13 @@ public interface AnalyzeIamPolicyRequestOrBuilder
        * Default is empty.
        * 
    * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the executionTimeout field is set. */ boolean hasExecutionTimeout(); /** - * - * *
    -   * Optional. Amount of time executable has to complete.  See JSON
    -   * representation of
    +   * Optional. Amount of time executable has to complete.  See JSON representation of
        * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
        * If this field is set with a value less than the RPC deadline, and the
        * execution of your query hasn't finished in the specified
    @@ -150,19 +106,13 @@ public interface AnalyzeIamPolicyRequestOrBuilder
        * Default is empty.
        * 
    * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The executionTimeout. */ com.google.protobuf.Duration getExecutionTimeout(); /** - * - * *
    -   * Optional. Amount of time executable has to complete.  See JSON
    -   * representation of
    +   * Optional. Amount of time executable has to complete.  See JSON representation of
        * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
        * If this field is set with a value less than the RPC deadline, and the
        * execution of your query hasn't finished in the specified
    @@ -172,9 +122,7 @@ public interface AnalyzeIamPolicyRequestOrBuilder
        * Default is empty.
        * 
    * - * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder(); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponse.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponse.java similarity index 65% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponse.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponse.java index ded28a1b4028..f8c581c8c184 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponse.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponse.java @@ -1,186 +1,76 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
    - * A response message for
    - * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
    + * A response message for [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
      * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyResponse} */ -public final class AnalyzeIamPolicyResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnalyzeIamPolicyResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzeIamPolicyResponse) AnalyzeIamPolicyResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AnalyzeIamPolicyResponse.newBuilder() to construct. private AnalyzeIamPolicyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnalyzeIamPolicyResponse() { serviceAccountImpersonationAnalysis_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnalyzeIamPolicyResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private AnalyzeIamPolicyResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder - subBuilder = null; - if (mainAnalysis_ != null) { - subBuilder = mainAnalysis_.toBuilder(); - } - mainAnalysis_ = - input.readMessage( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(mainAnalysis_); - mainAnalysis_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - serviceAccountImpersonationAnalysis_ = - new java.util.ArrayList< - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis>(); - mutable_bitField0_ |= 0x00000001; - } - serviceAccountImpersonationAnalysis_.add( - input.readMessage( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.parser(), - extensionRegistry)); - break; - } - case 24: - { - fullyExplored_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - serviceAccountImpersonationAnalysis_ = - java.util.Collections.unmodifiableList(serviceAccountImpersonationAnalysis_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.class, - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.Builder.class); + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.class, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.Builder.class); } - public interface IamPolicyAnalysisOrBuilder - extends + public interface IamPolicyAnalysisOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * The analysis query.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1; - * * @return Whether the analysisQuery field is set. */ boolean hasAnalysisQuery(); /** - * - * *
          * The analysis query.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1; - * * @return The analysisQuery. */ com.google.cloud.asset.v1.IamPolicyAnalysisQuery getAnalysisQuery(); /** - * - * *
          * The analysis query.
          * 
    @@ -190,61 +80,47 @@ public interface IamPolicyAnalysisOrBuilder com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQueryOrBuilder(); /** - * - * *
    -     * A list of
    -     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -     * that matches the analysis query, or empty if no result is found.
    +     * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +     * empty if no result is found.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; */ - java.util.List getAnalysisResultsList(); + java.util.List + getAnalysisResultsList(); /** - * - * *
    -     * A list of
    -     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -     * that matches the analysis query, or empty if no result is found.
    +     * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +     * empty if no result is found.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; */ com.google.cloud.asset.v1.IamPolicyAnalysisResult getAnalysisResults(int index); /** - * - * *
    -     * A list of
    -     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -     * that matches the analysis query, or empty if no result is found.
    +     * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +     * empty if no result is found.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; */ int getAnalysisResultsCount(); /** - * - * *
    -     * A list of
    -     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -     * that matches the analysis query, or empty if no result is found.
    +     * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +     * empty if no result is found.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; */ - java.util.List + java.util.List getAnalysisResultsOrBuilderList(); /** - * - * *
    -     * A list of
    -     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -     * that matches the analysis query, or empty if no result is found.
    +     * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +     * empty if no result is found.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -253,33 +129,26 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder getAnalysisResultsOrB int index); /** - * - * *
    -     * Represents whether all entries in the
    -     * [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results]
    -     * have been fully explored to answer the query.
    +     * Represents whether all entries in the [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] have been
    +     * fully explored to answer the query.
          * 
    * * bool fully_explored = 3; - * * @return The fullyExplored. */ boolean getFullyExplored(); /** - * - * *
          * A list of non-critical errors happened during the query handling.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ - java.util.List getNonCriticalErrorsList(); + java.util.List + getNonCriticalErrorsList(); /** - * - * *
          * A list of non-critical errors happened during the query handling.
          * 
    @@ -288,8 +157,6 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder getAnalysisResultsOrB */ com.google.cloud.asset.v1.IamPolicyAnalysisState getNonCriticalErrors(int index); /** - * - * *
          * A list of non-critical errors happened during the query handling.
          * 
    @@ -298,19 +165,15 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder getAnalysisResultsOrB */ int getNonCriticalErrorsCount(); /** - * - * *
          * A list of non-critical errors happened during the query handling.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ - java.util.List + java.util.List getNonCriticalErrorsOrBuilderList(); /** - * - * *
          * A list of non-critical errors happened during the query handling.
          * 
    @@ -321,24 +184,21 @@ com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getNonCriticalErrorsOr int index); } /** - * - * *
        * An analysis message to group the query and results.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis} */ - public static final class IamPolicyAnalysis extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class IamPolicyAnalysis extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) IamPolicyAnalysisOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IamPolicyAnalysis.newBuilder() to construct. private IamPolicyAnalysis(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IamPolicyAnalysis() { analysisResults_ = java.util.Collections.emptyList(); nonCriticalErrors_ = java.util.Collections.emptyList(); @@ -346,135 +206,37 @@ private IamPolicyAnalysis() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IamPolicyAnalysis(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private IamPolicyAnalysis( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder subBuilder = null; - if (analysisQuery_ != null) { - subBuilder = analysisQuery_.toBuilder(); - } - analysisQuery_ = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(analysisQuery_); - analysisQuery_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - analysisResults_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - analysisResults_.add( - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.parser(), - extensionRegistry)); - break; - } - case 24: - { - fullyExplored_ = input.readBool(); - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - nonCriticalErrors_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - nonCriticalErrors_.add( - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisState.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - analysisResults_ = java.util.Collections.unmodifiableList(analysisResults_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - nonCriticalErrors_ = java.util.Collections.unmodifiableList(nonCriticalErrors_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.class, - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder.class); + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.class, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder.class); } public static final int ANALYSIS_QUERY_FIELD_NUMBER = 1; private com.google.cloud.asset.v1.IamPolicyAnalysisQuery analysisQuery_; /** - * - * *
          * The analysis query.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1; - * * @return Whether the analysisQuery field is set. */ @java.lang.Override @@ -482,25 +244,18 @@ public boolean hasAnalysisQuery() { return analysisQuery_ != null; } /** - * - * *
          * The analysis query.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1; - * * @return The analysisQuery. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getAnalysisQuery() { - return analysisQuery_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() - : analysisQuery_; + return analysisQuery_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() : analysisQuery_; } /** - * - * *
          * The analysis query.
          * 
    @@ -515,44 +270,34 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer public static final int ANALYSIS_RESULTS_FIELD_NUMBER = 2; private java.util.List analysisResults_; /** - * - * *
    -     * A list of
    -     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -     * that matches the analysis query, or empty if no result is found.
    +     * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +     * empty if no result is found.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; */ @java.lang.Override - public java.util.List - getAnalysisResultsList() { + public java.util.List getAnalysisResultsList() { return analysisResults_; } /** - * - * *
    -     * A list of
    -     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -     * that matches the analysis query, or empty if no result is found.
    +     * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +     * empty if no result is found.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; */ @java.lang.Override - public java.util.List + public java.util.List getAnalysisResultsOrBuilderList() { return analysisResults_; } /** - * - * *
    -     * A list of
    -     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -     * that matches the analysis query, or empty if no result is found.
    +     * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +     * empty if no result is found.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -562,12 +307,9 @@ public int getAnalysisResultsCount() { return analysisResults_.size(); } /** - * - * *
    -     * A list of
    -     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -     * that matches the analysis query, or empty if no result is found.
    +     * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +     * empty if no result is found.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -577,12 +319,9 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult getAnalysisResults(int return analysisResults_.get(index); } /** - * - * *
    -     * A list of
    -     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -     * that matches the analysis query, or empty if no result is found.
    +     * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +     * empty if no result is found.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -596,16 +335,12 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder getAnalysisRes public static final int FULLY_EXPLORED_FIELD_NUMBER = 3; private boolean fullyExplored_; /** - * - * *
    -     * Represents whether all entries in the
    -     * [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results]
    -     * have been fully explored to answer the query.
    +     * Represents whether all entries in the [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] have been
    +     * fully explored to answer the query.
          * 
    * * bool fully_explored = 3; - * * @return The fullyExplored. */ @java.lang.Override @@ -616,8 +351,6 @@ public boolean getFullyExplored() { public static final int NON_CRITICAL_ERRORS_FIELD_NUMBER = 5; private java.util.List nonCriticalErrors_; /** - * - * *
          * A list of non-critical errors happened during the query handling.
          * 
    @@ -625,13 +358,10 @@ public boolean getFullyExplored() { * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ @java.lang.Override - public java.util.List - getNonCriticalErrorsList() { + public java.util.List getNonCriticalErrorsList() { return nonCriticalErrors_; } /** - * - * *
          * A list of non-critical errors happened during the query handling.
          * 
    @@ -639,13 +369,11 @@ public boolean getFullyExplored() { * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ @java.lang.Override - public java.util.List + public java.util.List getNonCriticalErrorsOrBuilderList() { return nonCriticalErrors_; } /** - * - * *
          * A list of non-critical errors happened during the query handling.
          * 
    @@ -657,8 +385,6 @@ public int getNonCriticalErrorsCount() { return nonCriticalErrors_.size(); } /** - * - * *
          * A list of non-critical errors happened during the query handling.
          * 
    @@ -670,8 +396,6 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisState getNonCriticalErrors(int return nonCriticalErrors_.get(index); } /** - * - * *
          * A list of non-critical errors happened during the query handling.
          * 
    @@ -685,7 +409,6 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getNonCriticalE } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -697,7 +420,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (analysisQuery_ != null) { output.writeMessage(1, getAnalysisQuery()); } @@ -710,7 +434,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < nonCriticalErrors_.size(); i++) { output.writeMessage(5, nonCriticalErrors_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -720,20 +444,22 @@ public int getSerializedSize() { size = 0; if (analysisQuery_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnalysisQuery()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAnalysisQuery()); } for (int i = 0; i < analysisResults_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, analysisResults_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, analysisResults_.get(i)); } if (fullyExplored_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, fullyExplored_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, fullyExplored_); } for (int i = 0; i < nonCriticalErrors_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, nonCriticalErrors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, nonCriticalErrors_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -741,22 +467,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis)) { return super.equals(obj); } - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis other = - (com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) obj; + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis other = (com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) obj; if (hasAnalysisQuery() != other.hasAnalysisQuery()) return false; if (hasAnalysisQuery()) { - if (!getAnalysisQuery().equals(other.getAnalysisQuery())) return false; - } - if (!getAnalysisResultsList().equals(other.getAnalysisResultsList())) return false; - if (getFullyExplored() != other.getFullyExplored()) return false; - if (!getNonCriticalErrorsList().equals(other.getNonCriticalErrorsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getAnalysisQuery() + .equals(other.getAnalysisQuery())) return false; + } + if (!getAnalysisResultsList() + .equals(other.getAnalysisResultsList())) return false; + if (getFullyExplored() + != other.getFullyExplored()) return false; + if (!getNonCriticalErrorsList() + .equals(other.getNonCriticalErrorsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -776,106 +505,99 @@ public int hashCode() { hash = (53 * hash) + getAnalysisResultsList().hashCode(); } hash = (37 * hash) + FULLY_EXPLORED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFullyExplored()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFullyExplored()); if (getNonCriticalErrorsCount() > 0) { hash = (37 * hash) + NON_CRITICAL_ERRORS_FIELD_NUMBER; hash = (53 * hash) + getNonCriticalErrorsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis 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.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis - 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.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis 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.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -885,52 +607,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * An analysis message to group the query and results.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.class, - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder.class); + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.class, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder.class); } - // Construct using - // com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.newBuilder() + // Construct using com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAnalysisResultsFieldBuilder(); - getNonCriticalErrorsFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); @@ -942,38 +651,37 @@ public Builder clear() { } if (analysisResultsBuilder_ == null) { analysisResults_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + analysisResults_ = null; analysisResultsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); fullyExplored_ = false; if (nonCriticalErrorsBuilder_ == null) { nonCriticalErrors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + nonCriticalErrors_ = null; nonCriticalErrorsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis - getDefaultInstanceForType() { - return com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis - .getDefaultInstance(); + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getDefaultInstanceForType() { + return com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.getDefaultInstance(); } @java.lang.Override public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis build() { - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis result = - buildPartial(); + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -982,8 +690,7 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis buil @java.lang.Override public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis buildPartial() { - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis result = - new com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis(this); + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis result = new com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis(this); int from_bitField0_ = bitField0_; if (analysisQueryBuilder_ == null) { result.analysisQuery_ = analysisQuery_; @@ -1017,53 +724,46 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) { - return mergeFrom( - (com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) other); + return mergeFrom((com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis other) { - if (other - == com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis other) { + if (other == com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.getDefaultInstance()) return this; if (other.hasAnalysisQuery()) { mergeAnalysisQuery(other.getAnalysisQuery()); } @@ -1085,10 +785,9 @@ public Builder mergeFrom( analysisResultsBuilder_ = null; analysisResults_ = other.analysisResults_; bitField0_ = (bitField0_ & ~0x00000001); - analysisResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAnalysisResultsFieldBuilder() - : null; + analysisResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAnalysisResultsFieldBuilder() : null; } else { analysisResultsBuilder_.addAllMessages(other.analysisResults_); } @@ -1115,16 +814,15 @@ public Builder mergeFrom( nonCriticalErrorsBuilder_ = null; nonCriticalErrors_ = other.nonCriticalErrors_; bitField0_ = (bitField0_ & ~0x00000002); - nonCriticalErrorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNonCriticalErrorsFieldBuilder() - : null; + nonCriticalErrorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNonCriticalErrorsFieldBuilder() : null; } else { nonCriticalErrorsBuilder_.addAllMessages(other.nonCriticalErrors_); } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1139,67 +837,102 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getAnalysisQueryFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + com.google.cloud.asset.v1.IamPolicyAnalysisResult m = + input.readMessage( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.parser(), + extensionRegistry); + if (analysisResultsBuilder_ == null) { + ensureAnalysisResultsIsMutable(); + analysisResults_.add(m); + } else { + analysisResultsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: { + fullyExplored_ = input.readBool(); + + break; + } // case 24 + case 42: { + com.google.cloud.asset.v1.IamPolicyAnalysisState m = + input.readMessage( + com.google.cloud.asset.v1.IamPolicyAnalysisState.parser(), + extensionRegistry); + if (nonCriticalErrorsBuilder_ == null) { + ensureNonCriticalErrorsIsMutable(); + nonCriticalErrors_.add(m); + } else { + nonCriticalErrorsBuilder_.addMessage(m); + } + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private com.google.cloud.asset.v1.IamPolicyAnalysisQuery analysisQuery_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> - analysisQueryBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> analysisQueryBuilder_; /** - * - * *
            * The analysis query.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1; - * * @return Whether the analysisQuery field is set. */ public boolean hasAnalysisQuery() { return analysisQueryBuilder_ != null || analysisQuery_ != null; } /** - * - * *
            * The analysis query.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1; - * * @return The analysisQuery. */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getAnalysisQuery() { if (analysisQueryBuilder_ == null) { - return analysisQuery_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() - : analysisQuery_; + return analysisQuery_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() : analysisQuery_; } else { return analysisQueryBuilder_.getMessage(); } } /** - * - * *
            * The analysis query.
            * 
    @@ -1220,8 +953,6 @@ public Builder setAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery return this; } /** - * - * *
            * The analysis query.
            * 
    @@ -1240,8 +971,6 @@ public Builder setAnalysisQuery( return this; } /** - * - * *
            * The analysis query.
            * 
    @@ -1252,9 +981,7 @@ public Builder mergeAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQue if (analysisQueryBuilder_ == null) { if (analysisQuery_ != null) { analysisQuery_ = - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.newBuilder(analysisQuery_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.newBuilder(analysisQuery_).mergeFrom(value).buildPartial(); } else { analysisQuery_ = value; } @@ -1266,8 +993,6 @@ public Builder mergeAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQue return this; } /** - * - * *
            * The analysis query.
            * 
    @@ -1286,8 +1011,6 @@ public Builder clearAnalysisQuery() { return this; } /** - * - * *
            * The analysis query.
            * 
    @@ -1295,13 +1018,11 @@ public Builder clearAnalysisQuery() { * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1; */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder getAnalysisQueryBuilder() { - + onChanged(); return getAnalysisQueryFieldBuilder().getBuilder(); } /** - * - * *
            * The analysis query.
            * 
    @@ -1312,14 +1033,11 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer if (analysisQueryBuilder_ != null) { return analysisQueryBuilder_.getMessageOrBuilder(); } else { - return analysisQuery_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() - : analysisQuery_; + return analysisQuery_ == null ? + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() : analysisQuery_; } } /** - * - * *
            * The analysis query.
            * 
    @@ -1327,53 +1045,40 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisQuery, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> getAnalysisQueryFieldBuilder() { if (analysisQueryBuilder_ == null) { - analysisQueryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder>( - getAnalysisQuery(), getParentForChildren(), isClean()); + analysisQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisQuery, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder>( + getAnalysisQuery(), + getParentForChildren(), + isClean()); analysisQuery_ = null; } return analysisQueryBuilder_; } private java.util.List analysisResults_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAnalysisResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - analysisResults_ = - new java.util.ArrayList( - analysisResults_); + analysisResults_ = new java.util.ArrayList(analysisResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder> - analysisResultsBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisResult, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder> analysisResultsBuilder_; /** - * - * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; */ - public java.util.List - getAnalysisResultsList() { + public java.util.List getAnalysisResultsList() { if (analysisResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(analysisResults_); } else { @@ -1381,12 +1086,9 @@ private void ensureAnalysisResultsIsMutable() { } } /** - * - * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1399,12 +1101,9 @@ public int getAnalysisResultsCount() { } } /** - * - * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1417,12 +1116,9 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult getAnalysisResults(int } } /** - * - * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1442,12 +1138,9 @@ public Builder setAnalysisResults( return this; } /** - * - * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1464,12 +1157,9 @@ public Builder setAnalysisResults( return this; } /** - * - * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1488,12 +1178,9 @@ public Builder addAnalysisResults(com.google.cloud.asset.v1.IamPolicyAnalysisRes return this; } /** - * - * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1513,12 +1200,9 @@ public Builder addAnalysisResults( return this; } /** - * - * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1535,12 +1219,9 @@ public Builder addAnalysisResults( return this; } /** - * - * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1557,12 +1238,9 @@ public Builder addAnalysisResults( return this; } /** - * - * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1571,7 +1249,8 @@ public Builder addAllAnalysisResults( java.lang.Iterable values) { if (analysisResultsBuilder_ == null) { ensureAnalysisResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, analysisResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, analysisResults_); onChanged(); } else { analysisResultsBuilder_.addAllMessages(values); @@ -1579,12 +1258,9 @@ public Builder addAllAnalysisResults( return this; } /** - * - * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1600,12 +1276,9 @@ public Builder clearAnalysisResults() { return this; } /** - * - * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1621,12 +1294,9 @@ public Builder removeAnalysisResults(int index) { return this; } /** - * - * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1636,12 +1306,9 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder getAnalysisResu return getAnalysisResultsFieldBuilder().getBuilder(index); } /** - * - * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; @@ -1649,24 +1316,20 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder getAnalysisResu public com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder getAnalysisResultsOrBuilder( int index) { if (analysisResultsBuilder_ == null) { - return analysisResults_.get(index); - } else { + return analysisResults_.get(index); } else { return analysisResultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; */ - public java.util.List - getAnalysisResultsOrBuilderList() { + public java.util.List + getAnalysisResultsOrBuilderList() { if (analysisResultsBuilder_ != null) { return analysisResultsBuilder_.getMessageOrBuilderList(); } else { @@ -1674,64 +1337,48 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder getAnalysisRes } } /** - * - * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; */ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder addAnalysisResultsBuilder() { - return getAnalysisResultsFieldBuilder() - .addBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisResult.getDefaultInstance()); + return getAnalysisResultsFieldBuilder().addBuilder( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.getDefaultInstance()); } /** - * - * *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; */ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder addAnalysisResultsBuilder( int index) { - return getAnalysisResultsFieldBuilder() - .addBuilder( - index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.getDefaultInstance()); + return getAnalysisResultsFieldBuilder().addBuilder( + index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.getDefaultInstance()); } - /** - * - * + /** *
    -       * A list of
    -       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -       * that matches the analysis query, or empty if no result is found.
    +       * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +       * empty if no result is found.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; */ - public java.util.List - getAnalysisResultsBuilderList() { + public java.util.List + getAnalysisResultsBuilderList() { return getAnalysisResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisResult, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder> getAnalysisResultsFieldBuilder() { if (analysisResultsBuilder_ == null) { - analysisResultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder>( + analysisResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisResult, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder>( analysisResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1741,18 +1388,14 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder addAnalysisResu return analysisResultsBuilder_; } - private boolean fullyExplored_; + private boolean fullyExplored_ ; /** - * - * *
    -       * Represents whether all entries in the
    -       * [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results]
    -       * have been fully explored to answer the query.
    +       * Represents whether all entries in the [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] have been
    +       * fully explored to answer the query.
            * 
    * * bool fully_explored = 3; - * * @return The fullyExplored. */ @java.lang.Override @@ -1760,75 +1403,57 @@ public boolean getFullyExplored() { return fullyExplored_; } /** - * - * *
    -       * Represents whether all entries in the
    -       * [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results]
    -       * have been fully explored to answer the query.
    +       * Represents whether all entries in the [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] have been
    +       * fully explored to answer the query.
            * 
    * * bool fully_explored = 3; - * * @param value The fullyExplored to set. * @return This builder for chaining. */ public Builder setFullyExplored(boolean value) { - + fullyExplored_ = value; onChanged(); return this; } /** - * - * *
    -       * Represents whether all entries in the
    -       * [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results]
    -       * have been fully explored to answer the query.
    +       * Represents whether all entries in the [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] have been
    +       * fully explored to answer the query.
            * 
    * * bool fully_explored = 3; - * * @return This builder for chaining. */ public Builder clearFullyExplored() { - + fullyExplored_ = false; onChanged(); return this; } private java.util.List nonCriticalErrors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNonCriticalErrorsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - nonCriticalErrors_ = - new java.util.ArrayList( - nonCriticalErrors_); + nonCriticalErrors_ = new java.util.ArrayList(nonCriticalErrors_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisState, - com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> - nonCriticalErrorsBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisState, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> nonCriticalErrorsBuilder_; /** - * - * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ - public java.util.List - getNonCriticalErrorsList() { + public java.util.List getNonCriticalErrorsList() { if (nonCriticalErrorsBuilder_ == null) { return java.util.Collections.unmodifiableList(nonCriticalErrors_); } else { @@ -1836,14 +1461,11 @@ private void ensureNonCriticalErrorsIsMutable() { } } /** - * - * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ public int getNonCriticalErrorsCount() { if (nonCriticalErrorsBuilder_ == null) { @@ -1853,14 +1475,11 @@ public int getNonCriticalErrorsCount() { } } /** - * - * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ public com.google.cloud.asset.v1.IamPolicyAnalysisState getNonCriticalErrors(int index) { if (nonCriticalErrorsBuilder_ == null) { @@ -1870,14 +1489,11 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisState getNonCriticalErrors(int } } /** - * - * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ public Builder setNonCriticalErrors( int index, com.google.cloud.asset.v1.IamPolicyAnalysisState value) { @@ -1894,14 +1510,11 @@ public Builder setNonCriticalErrors( return this; } /** - * - * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ public Builder setNonCriticalErrors( int index, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder builderForValue) { @@ -1915,14 +1528,11 @@ public Builder setNonCriticalErrors( return this; } /** - * - * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ public Builder addNonCriticalErrors(com.google.cloud.asset.v1.IamPolicyAnalysisState value) { if (nonCriticalErrorsBuilder_ == null) { @@ -1938,14 +1548,11 @@ public Builder addNonCriticalErrors(com.google.cloud.asset.v1.IamPolicyAnalysisS return this; } /** - * - * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ public Builder addNonCriticalErrors( int index, com.google.cloud.asset.v1.IamPolicyAnalysisState value) { @@ -1962,14 +1569,11 @@ public Builder addNonCriticalErrors( return this; } /** - * - * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ public Builder addNonCriticalErrors( com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder builderForValue) { @@ -1983,14 +1587,11 @@ public Builder addNonCriticalErrors( return this; } /** - * - * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ public Builder addNonCriticalErrors( int index, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder builderForValue) { @@ -2004,20 +1605,18 @@ public Builder addNonCriticalErrors( return this; } /** - * - * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ public Builder addAllNonCriticalErrors( java.lang.Iterable values) { if (nonCriticalErrorsBuilder_ == null) { ensureNonCriticalErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nonCriticalErrors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nonCriticalErrors_); onChanged(); } else { nonCriticalErrorsBuilder_.addAllMessages(values); @@ -2025,14 +1624,11 @@ public Builder addAllNonCriticalErrors( return this; } /** - * - * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ public Builder clearNonCriticalErrors() { if (nonCriticalErrorsBuilder_ == null) { @@ -2045,14 +1641,11 @@ public Builder clearNonCriticalErrors() { return this; } /** - * - * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ public Builder removeNonCriticalErrors(int index) { if (nonCriticalErrorsBuilder_ == null) { @@ -2065,49 +1658,39 @@ public Builder removeNonCriticalErrors(int index) { return this; } /** - * - * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder getNonCriticalErrorsBuilder( int index) { return getNonCriticalErrorsFieldBuilder().getBuilder(index); } /** - * - * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder - getNonCriticalErrorsOrBuilder(int index) { + public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getNonCriticalErrorsOrBuilder( + int index) { if (nonCriticalErrorsBuilder_ == null) { - return nonCriticalErrors_.get(index); - } else { + return nonCriticalErrors_.get(index); } else { return nonCriticalErrorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ - public java.util.List - getNonCriticalErrorsOrBuilderList() { + public java.util.List + getNonCriticalErrorsOrBuilderList() { if (nonCriticalErrorsBuilder_ != null) { return nonCriticalErrorsBuilder_.getMessageOrBuilderList(); } else { @@ -2115,62 +1698,45 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder getNonCriticalEr } } /** - * - * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder - addNonCriticalErrorsBuilder() { - return getNonCriticalErrorsFieldBuilder() - .addBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()); + public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder addNonCriticalErrorsBuilder() { + return getNonCriticalErrorsFieldBuilder().addBuilder( + com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()); } /** - * - * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder addNonCriticalErrorsBuilder( int index) { - return getNonCriticalErrorsFieldBuilder() - .addBuilder( - index, com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()); + return getNonCriticalErrorsFieldBuilder().addBuilder( + index, com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()); } /** - * - * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ - public java.util.List - getNonCriticalErrorsBuilderList() { + public java.util.List + getNonCriticalErrorsBuilderList() { return getNonCriticalErrorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisState, - com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisState, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> getNonCriticalErrorsFieldBuilder() { if (nonCriticalErrorsBuilder_ == null) { - nonCriticalErrorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisState, - com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>( + nonCriticalErrorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisState, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>( nonCriticalErrors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2179,7 +1745,6 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder addNonCriticalEr } return nonCriticalErrorsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2192,32 +1757,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) - private static final com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis - DEFAULT_INSTANCE; - + private static final com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis(); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis - getDefaultInstance() { + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IamPolicyAnalysis parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IamPolicyAnalysis(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IamPolicyAnalysis parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2229,24 +1803,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis - getDefaultInstanceForType() { + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int MAIN_ANALYSIS_FIELD_NUMBER = 1; private com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis mainAnalysis_; /** - * - * *
        * The main analysis that matches the original request.
        * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; - * - * + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; * @return Whether the mainAnalysis field is set. */ @java.lang.Override @@ -2254,148 +1824,109 @@ public boolean hasMainAnalysis() { return mainAnalysis_ != null; } /** - * - * *
        * The main analysis that matches the original request.
        * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; - * - * + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; * @return The mainAnalysis. */ @java.lang.Override public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getMainAnalysis() { - return mainAnalysis_ == null - ? com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.getDefaultInstance() - : mainAnalysis_; + return mainAnalysis_ == null ? com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.getDefaultInstance() : mainAnalysis_; } /** - * - * *
        * The main analysis that matches the original request.
        * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; - * + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; */ @java.lang.Override - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder - getMainAnalysisOrBuilder() { + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder getMainAnalysisOrBuilder() { return getMainAnalysis(); } public static final int SERVICE_ACCOUNT_IMPERSONATION_ANALYSIS_FIELD_NUMBER = 2; - private java.util.List - serviceAccountImpersonationAnalysis_; + private java.util.List serviceAccountImpersonationAnalysis_; /** - * - * *
        * The service account impersonation analysis if
        * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
        * enabled.
        * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ @java.lang.Override - public java.util.List - getServiceAccountImpersonationAnalysisList() { + public java.util.List getServiceAccountImpersonationAnalysisList() { return serviceAccountImpersonationAnalysis_; } /** - * - * *
        * The service account impersonation analysis if
        * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
        * enabled.
        * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> + public java.util.List getServiceAccountImpersonationAnalysisOrBuilderList() { return serviceAccountImpersonationAnalysis_; } /** - * - * *
        * The service account impersonation analysis if
        * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
        * enabled.
        * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ @java.lang.Override public int getServiceAccountImpersonationAnalysisCount() { return serviceAccountImpersonationAnalysis_.size(); } /** - * - * *
        * The service account impersonation analysis if
        * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
        * enabled.
        * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ @java.lang.Override - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis - getServiceAccountImpersonationAnalysis(int index) { + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getServiceAccountImpersonationAnalysis(int index) { return serviceAccountImpersonationAnalysis_.get(index); } /** - * - * *
        * The service account impersonation analysis if
        * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
        * enabled.
        * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ @java.lang.Override - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder - getServiceAccountImpersonationAnalysisOrBuilder(int index) { + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder getServiceAccountImpersonationAnalysisOrBuilder( + int index) { return serviceAccountImpersonationAnalysis_.get(index); } public static final int FULLY_EXPLORED_FIELD_NUMBER = 3; private boolean fullyExplored_; /** - * - * *
    -   * Represents whether all entries in the
    -   * [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis]
    -   * and
    -   * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis]
    -   * have been fully explored to answer the query in the request.
    +   * Represents whether all entries in the [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] and
    +   * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] have been fully explored to
    +   * answer the query in the request.
        * 
    * * bool fully_explored = 3; - * * @return The fullyExplored. */ @java.lang.Override @@ -2404,7 +1935,6 @@ public boolean getFullyExplored() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2416,7 +1946,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (mainAnalysis_ != null) { output.writeMessage(1, getMainAnalysis()); } @@ -2426,7 +1957,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (fullyExplored_ != false) { output.writeBool(3, fullyExplored_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2436,17 +1967,18 @@ public int getSerializedSize() { size = 0; if (mainAnalysis_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMainAnalysis()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMainAnalysis()); } for (int i = 0; i < serviceAccountImpersonationAnalysis_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, serviceAccountImpersonationAnalysis_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, serviceAccountImpersonationAnalysis_.get(i)); } if (fullyExplored_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, fullyExplored_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, fullyExplored_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -2454,22 +1986,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.AnalyzeIamPolicyResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse other = - (com.google.cloud.asset.v1.AnalyzeIamPolicyResponse) obj; + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse other = (com.google.cloud.asset.v1.AnalyzeIamPolicyResponse) obj; if (hasMainAnalysis() != other.hasMainAnalysis()) return false; if (hasMainAnalysis()) { - if (!getMainAnalysis().equals(other.getMainAnalysis())) return false; + if (!getMainAnalysis() + .equals(other.getMainAnalysis())) return false; } if (!getServiceAccountImpersonationAnalysisList() .equals(other.getServiceAccountImpersonationAnalysisList())) return false; - if (getFullyExplored() != other.getFullyExplored()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (getFullyExplored() + != other.getFullyExplored()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2489,152 +2022,137 @@ public int hashCode() { hash = (53 * hash) + getServiceAccountImpersonationAnalysisList().hashCode(); } hash = (37 * hash) + FULLY_EXPLORED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFullyExplored()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFullyExplored()); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse 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.asset.v1.AnalyzeIamPolicyResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    -   * A response message for
    -   * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
    +   * A response message for [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
        * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzeIamPolicyResponse) com.google.cloud.asset.v1.AnalyzeIamPolicyResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.class, - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.Builder.class); + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.class, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.Builder.class); } // Construct using com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getServiceAccountImpersonationAnalysisFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2646,19 +2164,20 @@ public Builder clear() { } if (serviceAccountImpersonationAnalysisBuilder_ == null) { serviceAccountImpersonationAnalysis_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + serviceAccountImpersonationAnalysis_ = null; serviceAccountImpersonationAnalysisBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); fullyExplored_ = false; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor; } @java.lang.Override @@ -2677,8 +2196,7 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse build() { @java.lang.Override public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse buildPartial() { - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse result = - new com.google.cloud.asset.v1.AnalyzeIamPolicyResponse(this); + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse result = new com.google.cloud.asset.v1.AnalyzeIamPolicyResponse(this); int from_bitField0_ = bitField0_; if (mainAnalysisBuilder_ == null) { result.mainAnalysis_ = mainAnalysis_; @@ -2687,14 +2205,12 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse buildPartial() { } if (serviceAccountImpersonationAnalysisBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - serviceAccountImpersonationAnalysis_ = - java.util.Collections.unmodifiableList(serviceAccountImpersonationAnalysis_); + serviceAccountImpersonationAnalysis_ = java.util.Collections.unmodifiableList(serviceAccountImpersonationAnalysis_); bitField0_ = (bitField0_ & ~0x00000001); } result.serviceAccountImpersonationAnalysis_ = serviceAccountImpersonationAnalysis_; } else { - result.serviceAccountImpersonationAnalysis_ = - serviceAccountImpersonationAnalysisBuilder_.build(); + result.serviceAccountImpersonationAnalysis_ = serviceAccountImpersonationAnalysisBuilder_.build(); } result.fullyExplored_ = fullyExplored_; onBuilt(); @@ -2705,39 +2221,38 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.AnalyzeIamPolicyResponse) { - return mergeFrom((com.google.cloud.asset.v1.AnalyzeIamPolicyResponse) other); + return mergeFrom((com.google.cloud.asset.v1.AnalyzeIamPolicyResponse)other); } else { super.mergeFrom(other); return this; @@ -2745,8 +2260,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse other) { - if (other == com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.getDefaultInstance()) return this; if (other.hasMainAnalysis()) { mergeMainAnalysis(other.getMainAnalysis()); } @@ -2768,20 +2282,18 @@ public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse othe serviceAccountImpersonationAnalysisBuilder_ = null; serviceAccountImpersonationAnalysis_ = other.serviceAccountImpersonationAnalysis_; bitField0_ = (bitField0_ & ~0x00000001); - serviceAccountImpersonationAnalysisBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getServiceAccountImpersonationAnalysisFieldBuilder() - : null; + serviceAccountImpersonationAnalysisBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getServiceAccountImpersonationAnalysisFieldBuilder() : null; } else { - serviceAccountImpersonationAnalysisBuilder_.addAllMessages( - other.serviceAccountImpersonationAnalysis_); + serviceAccountImpersonationAnalysisBuilder_.addAllMessages(other.serviceAccountImpersonationAnalysis_); } } } if (other.getFullyExplored() != false) { setFullyExplored(other.getFullyExplored()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2796,78 +2308,96 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getMainAnalysisFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis m = + input.readMessage( + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.parser(), + extensionRegistry); + if (serviceAccountImpersonationAnalysisBuilder_ == null) { + ensureServiceAccountImpersonationAnalysisIsMutable(); + serviceAccountImpersonationAnalysis_.add(m); + } else { + serviceAccountImpersonationAnalysisBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: { + fullyExplored_ = input.readBool(); + + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.AnalyzeIamPolicyResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis mainAnalysis_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> - mainAnalysisBuilder_; + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> mainAnalysisBuilder_; /** - * - * *
          * The main analysis that matches the original request.
          * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; - * - * + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; * @return Whether the mainAnalysis field is set. */ public boolean hasMainAnalysis() { return mainAnalysisBuilder_ != null || mainAnalysis_ != null; } /** - * - * *
          * The main analysis that matches the original request.
          * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; - * - * + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; * @return The mainAnalysis. */ public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getMainAnalysis() { if (mainAnalysisBuilder_ == null) { - return mainAnalysis_ == null - ? com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis - .getDefaultInstance() - : mainAnalysis_; + return mainAnalysis_ == null ? com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.getDefaultInstance() : mainAnalysis_; } else { return mainAnalysisBuilder_.getMessage(); } } /** - * - * *
          * The main analysis that matches the original request.
          * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; - * + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; */ - public Builder setMainAnalysis( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) { + public Builder setMainAnalysis(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) { if (mainAnalysisBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2881,18 +2411,14 @@ public Builder setMainAnalysis( return this; } /** - * - * *
          * The main analysis that matches the original request.
          * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; - * + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; */ public Builder setMainAnalysis( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder - builderForValue) { + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder builderForValue) { if (mainAnalysisBuilder_ == null) { mainAnalysis_ = builderForValue.build(); onChanged(); @@ -2903,24 +2429,17 @@ public Builder setMainAnalysis( return this; } /** - * - * *
          * The main analysis that matches the original request.
          * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; - * + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; */ - public Builder mergeMainAnalysis( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) { + public Builder mergeMainAnalysis(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) { if (mainAnalysisBuilder_ == null) { if (mainAnalysis_ != null) { mainAnalysis_ = - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.newBuilder( - mainAnalysis_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.newBuilder(mainAnalysis_).mergeFrom(value).buildPartial(); } else { mainAnalysis_ = value; } @@ -2932,14 +2451,11 @@ public Builder mergeMainAnalysis( return this; } /** - * - * *
          * The main analysis that matches the original request.
          * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; - * + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; */ public Builder clearMainAnalysis() { if (mainAnalysisBuilder_ == null) { @@ -2953,103 +2469,75 @@ public Builder clearMainAnalysis() { return this; } /** - * - * *
          * The main analysis that matches the original request.
          * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; - * + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; */ - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder - getMainAnalysisBuilder() { - + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder getMainAnalysisBuilder() { + onChanged(); return getMainAnalysisFieldBuilder().getBuilder(); } /** - * - * *
          * The main analysis that matches the original request.
          * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; - * + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; */ - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder - getMainAnalysisOrBuilder() { + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder getMainAnalysisOrBuilder() { if (mainAnalysisBuilder_ != null) { return mainAnalysisBuilder_.getMessageOrBuilder(); } else { - return mainAnalysis_ == null - ? com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis - .getDefaultInstance() - : mainAnalysis_; + return mainAnalysis_ == null ? + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.getDefaultInstance() : mainAnalysis_; } } /** - * - * *
          * The main analysis that matches the original request.
          * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; - * + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> getMainAnalysisFieldBuilder() { if (mainAnalysisBuilder_ == null) { - mainAnalysisBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder>( - getMainAnalysis(), getParentForChildren(), isClean()); + mainAnalysisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder>( + getMainAnalysis(), + getParentForChildren(), + isClean()); mainAnalysis_ = null; } return mainAnalysisBuilder_; } - private java.util.List - serviceAccountImpersonationAnalysis_ = java.util.Collections.emptyList(); - + private java.util.List serviceAccountImpersonationAnalysis_ = + java.util.Collections.emptyList(); private void ensureServiceAccountImpersonationAnalysisIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - serviceAccountImpersonationAnalysis_ = - new java.util.ArrayList< - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis>( - serviceAccountImpersonationAnalysis_); + serviceAccountImpersonationAnalysis_ = new java.util.ArrayList(serviceAccountImpersonationAnalysis_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> - serviceAccountImpersonationAnalysisBuilder_; + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> serviceAccountImpersonationAnalysisBuilder_; /** - * - * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ - public java.util.List - getServiceAccountImpersonationAnalysisList() { + public java.util.List getServiceAccountImpersonationAnalysisList() { if (serviceAccountImpersonationAnalysisBuilder_ == null) { return java.util.Collections.unmodifiableList(serviceAccountImpersonationAnalysis_); } else { @@ -3057,17 +2545,13 @@ private void ensureServiceAccountImpersonationAnalysisIsMutable() { } } /** - * - * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ public int getServiceAccountImpersonationAnalysisCount() { if (serviceAccountImpersonationAnalysisBuilder_ == null) { @@ -3077,20 +2561,15 @@ public int getServiceAccountImpersonationAnalysisCount() { } } /** - * - * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis - getServiceAccountImpersonationAnalysis(int index) { + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getServiceAccountImpersonationAnalysis(int index) { if (serviceAccountImpersonationAnalysisBuilder_ == null) { return serviceAccountImpersonationAnalysis_.get(index); } else { @@ -3098,17 +2577,13 @@ public int getServiceAccountImpersonationAnalysisCount() { } } /** - * - * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ public Builder setServiceAccountImpersonationAnalysis( int index, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) { @@ -3125,22 +2600,16 @@ public Builder setServiceAccountImpersonationAnalysis( return this; } /** - * - * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ public Builder setServiceAccountImpersonationAnalysis( - int index, - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder - builderForValue) { + int index, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder builderForValue) { if (serviceAccountImpersonationAnalysisBuilder_ == null) { ensureServiceAccountImpersonationAnalysisIsMutable(); serviceAccountImpersonationAnalysis_.set(index, builderForValue.build()); @@ -3151,20 +2620,15 @@ public Builder setServiceAccountImpersonationAnalysis( return this; } /** - * - * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ - public Builder addServiceAccountImpersonationAnalysis( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) { + public Builder addServiceAccountImpersonationAnalysis(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) { if (serviceAccountImpersonationAnalysisBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3178,17 +2642,13 @@ public Builder addServiceAccountImpersonationAnalysis( return this; } /** - * - * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ public Builder addServiceAccountImpersonationAnalysis( int index, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) { @@ -3205,21 +2665,16 @@ public Builder addServiceAccountImpersonationAnalysis( return this; } /** - * - * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ public Builder addServiceAccountImpersonationAnalysis( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder - builderForValue) { + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder builderForValue) { if (serviceAccountImpersonationAnalysisBuilder_ == null) { ensureServiceAccountImpersonationAnalysisIsMutable(); serviceAccountImpersonationAnalysis_.add(builderForValue.build()); @@ -3230,22 +2685,16 @@ public Builder addServiceAccountImpersonationAnalysis( return this; } /** - * - * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ public Builder addServiceAccountImpersonationAnalysis( - int index, - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder - builderForValue) { + int index, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder builderForValue) { if (serviceAccountImpersonationAnalysisBuilder_ == null) { ensureServiceAccountImpersonationAnalysisIsMutable(); serviceAccountImpersonationAnalysis_.add(index, builderForValue.build()); @@ -3256,22 +2705,16 @@ public Builder addServiceAccountImpersonationAnalysis( return this; } /** - * - * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ public Builder addAllServiceAccountImpersonationAnalysis( - java.lang.Iterable< - ? extends com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis> - values) { + java.lang.Iterable values) { if (serviceAccountImpersonationAnalysisBuilder_ == null) { ensureServiceAccountImpersonationAnalysisIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -3283,17 +2726,13 @@ public Builder addAllServiceAccountImpersonationAnalysis( return this; } /** - * - * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ public Builder clearServiceAccountImpersonationAnalysis() { if (serviceAccountImpersonationAnalysisBuilder_ == null) { @@ -3306,17 +2745,13 @@ public Builder clearServiceAccountImpersonationAnalysis() { return this; } /** - * - * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ public Builder removeServiceAccountImpersonationAnalysis(int index) { if (serviceAccountImpersonationAnalysisBuilder_ == null) { @@ -3329,59 +2764,45 @@ public Builder removeServiceAccountImpersonationAnalysis(int index) { return this; } /** - * - * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder - getServiceAccountImpersonationAnalysisBuilder(int index) { + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder getServiceAccountImpersonationAnalysisBuilder( + int index) { return getServiceAccountImpersonationAnalysisFieldBuilder().getBuilder(index); } /** - * - * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder - getServiceAccountImpersonationAnalysisOrBuilder(int index) { + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder getServiceAccountImpersonationAnalysisOrBuilder( + int index) { if (serviceAccountImpersonationAnalysisBuilder_ == null) { - return serviceAccountImpersonationAnalysis_.get(index); - } else { + return serviceAccountImpersonationAnalysis_.get(index); } else { return serviceAccountImpersonationAnalysisBuilder_.getMessageOrBuilder(index); } } /** - * - * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ - public java.util.List< - ? extends com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> - getServiceAccountImpersonationAnalysisOrBuilderList() { + public java.util.List + getServiceAccountImpersonationAnalysisOrBuilderList() { if (serviceAccountImpersonationAnalysisBuilder_ != null) { return serviceAccountImpersonationAnalysisBuilder_.getMessageOrBuilderList(); } else { @@ -3389,76 +2810,51 @@ public Builder removeServiceAccountImpersonationAnalysis(int index) { } } /** - * - * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder - addServiceAccountImpersonationAnalysisBuilder() { - return getServiceAccountImpersonationAnalysisFieldBuilder() - .addBuilder( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis - .getDefaultInstance()); + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder addServiceAccountImpersonationAnalysisBuilder() { + return getServiceAccountImpersonationAnalysisFieldBuilder().addBuilder( + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.getDefaultInstance()); } /** - * - * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder - addServiceAccountImpersonationAnalysisBuilder(int index) { - return getServiceAccountImpersonationAnalysisFieldBuilder() - .addBuilder( - index, - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis - .getDefaultInstance()); + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder addServiceAccountImpersonationAnalysisBuilder( + int index) { + return getServiceAccountImpersonationAnalysisFieldBuilder().addBuilder( + index, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.getDefaultInstance()); } /** - * - * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ - public java.util.List< - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder> - getServiceAccountImpersonationAnalysisBuilderList() { + public java.util.List + getServiceAccountImpersonationAnalysisBuilderList() { return getServiceAccountImpersonationAnalysisFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> getServiceAccountImpersonationAnalysisFieldBuilder() { if (serviceAccountImpersonationAnalysisBuilder_ == null) { - serviceAccountImpersonationAnalysisBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder>( + serviceAccountImpersonationAnalysisBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder>( serviceAccountImpersonationAnalysis_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3468,20 +2864,15 @@ public Builder removeServiceAccountImpersonationAnalysis(int index) { return serviceAccountImpersonationAnalysisBuilder_; } - private boolean fullyExplored_; + private boolean fullyExplored_ ; /** - * - * *
    -     * Represents whether all entries in the
    -     * [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis]
    -     * and
    -     * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis]
    -     * have been fully explored to answer the query in the request.
    +     * Represents whether all entries in the [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] and
    +     * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] have been fully explored to
    +     * answer the query in the request.
          * 
    * * bool fully_explored = 3; - * * @return The fullyExplored. */ @java.lang.Override @@ -3489,51 +2880,41 @@ public boolean getFullyExplored() { return fullyExplored_; } /** - * - * *
    -     * Represents whether all entries in the
    -     * [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis]
    -     * and
    -     * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis]
    -     * have been fully explored to answer the query in the request.
    +     * Represents whether all entries in the [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] and
    +     * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] have been fully explored to
    +     * answer the query in the request.
          * 
    * * bool fully_explored = 3; - * * @param value The fullyExplored to set. * @return This builder for chaining. */ public Builder setFullyExplored(boolean value) { - + fullyExplored_ = value; onChanged(); return this; } /** - * - * *
    -     * Represents whether all entries in the
    -     * [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis]
    -     * and
    -     * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis]
    -     * have been fully explored to answer the query in the request.
    +     * Represents whether all entries in the [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] and
    +     * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] have been fully explored to
    +     * answer the query in the request.
          * 
    * * bool fully_explored = 3; - * * @return This builder for chaining. */ public Builder clearFullyExplored() { - + fullyExplored_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3543,12 +2924,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.AnalyzeIamPolicyResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzeIamPolicyResponse) private static final com.google.cloud.asset.v1.AnalyzeIamPolicyResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.AnalyzeIamPolicyResponse(); } @@ -3557,16 +2938,27 @@ public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnalyzeIamPolicyResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnalyzeIamPolicyResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnalyzeIamPolicyResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3581,4 +2973,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponseOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponseOrBuilder.java similarity index 54% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponseOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponseOrBuilder.java index 6b26559c67e1..4181ac820e89 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponseOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponseOrBuilder.java @@ -1,156 +1,101 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface AnalyzeIamPolicyResponseOrBuilder - extends +public interface AnalyzeIamPolicyResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzeIamPolicyResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The main analysis that matches the original request.
        * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; - * - * + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; * @return Whether the mainAnalysis field is set. */ boolean hasMainAnalysis(); /** - * - * *
        * The main analysis that matches the original request.
        * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; - * - * + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; * @return The mainAnalysis. */ com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getMainAnalysis(); /** - * - * *
        * The main analysis that matches the original request.
        * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; - * + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; */ - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder - getMainAnalysisOrBuilder(); + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder getMainAnalysisOrBuilder(); /** - * - * *
        * The service account impersonation analysis if
        * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
        * enabled.
        * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ - java.util.List + java.util.List getServiceAccountImpersonationAnalysisList(); /** - * - * *
        * The service account impersonation analysis if
        * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
        * enabled.
        * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis - getServiceAccountImpersonationAnalysis(int index); + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getServiceAccountImpersonationAnalysis(int index); /** - * - * *
        * The service account impersonation analysis if
        * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
        * enabled.
        * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ int getServiceAccountImpersonationAnalysisCount(); /** - * - * *
        * The service account impersonation analysis if
        * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
        * enabled.
        * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ - java.util.List< - ? extends com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> + java.util.List getServiceAccountImpersonationAnalysisOrBuilderList(); /** - * - * *
        * The service account impersonation analysis if
        * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
        * enabled.
        * 
    * - * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; */ - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder - getServiceAccountImpersonationAnalysisOrBuilder(int index); + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder getServiceAccountImpersonationAnalysisOrBuilder( + int index); /** - * - * *
    -   * Represents whether all entries in the
    -   * [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis]
    -   * and
    -   * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis]
    -   * have been fully explored to answer the query in the request.
    +   * Represents whether all entries in the [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] and
    +   * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] have been fully explored to
    +   * answer the query in the request.
        * 
    * * bool fully_explored = 3; - * * @return The fullyExplored. */ boolean getFullyExplored(); diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequest.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequest.java similarity index 70% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequest.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequest.java index 19aa2c4bdef9..6545e57819bf 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequest.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * The request message for performing resource move analysis.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeMoveRequest} */ -public final class AnalyzeMoveRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnalyzeMoveRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzeMoveRequest) AnalyzeMoveRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AnalyzeMoveRequest.newBuilder() to construct. private AnalyzeMoveRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnalyzeMoveRequest() { resource_ = ""; destinationParent_ = ""; @@ -45,103 +27,39 @@ private AnalyzeMoveRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnalyzeMoveRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private AnalyzeMoveRequest( - 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(); - - resource_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - destinationParent_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); - - view_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeMoveRequest.class, - com.google.cloud.asset.v1.AnalyzeMoveRequest.Builder.class); + com.google.cloud.asset.v1.AnalyzeMoveRequest.class, com.google.cloud.asset.v1.AnalyzeMoveRequest.Builder.class); } /** - * - * *
        * View enum for supporting partial analysis responses.
        * 
    * * Protobuf enum {@code google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView} */ - public enum AnalysisView implements com.google.protobuf.ProtocolMessageEnum { + public enum AnalysisView + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
          * The default/unset value.
          * The API will default to the FULL view.
    @@ -151,8 +69,6 @@ public enum AnalysisView implements com.google.protobuf.ProtocolMessageEnum {
          */
         ANALYSIS_VIEW_UNSPECIFIED(0),
         /**
    -     *
    -     *
          * 
          * Full analysis including all level of impacts of the specified resource
          * move.
    @@ -162,8 +78,6 @@ public enum AnalysisView implements com.google.protobuf.ProtocolMessageEnum {
          */
         FULL(1),
         /**
    -     *
    -     *
          * 
          * Basic analysis only including blockers which will prevent the specified
          * resource move at runtime.
    @@ -176,8 +90,6 @@ public enum AnalysisView implements com.google.protobuf.ProtocolMessageEnum {
         ;
     
         /**
    -     *
    -     *
          * 
          * The default/unset value.
          * The API will default to the FULL view.
    @@ -187,8 +99,6 @@ public enum AnalysisView implements com.google.protobuf.ProtocolMessageEnum {
          */
         public static final int ANALYSIS_VIEW_UNSPECIFIED_VALUE = 0;
         /**
    -     *
    -     *
          * 
          * Full analysis including all level of impacts of the specified resource
          * move.
    @@ -198,8 +108,6 @@ public enum AnalysisView implements com.google.protobuf.ProtocolMessageEnum {
          */
         public static final int FULL_VALUE = 1;
         /**
    -     *
    -     *
          * 
          * Basic analysis only including blockers which will prevent the specified
          * resource move at runtime.
    @@ -209,6 +117,7 @@ public enum AnalysisView implements com.google.protobuf.ProtocolMessageEnum {
          */
         public static final int BASIC_VALUE = 2;
     
    +
         public final int getNumber() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalArgumentException(
    @@ -233,49 +142,49 @@ public static AnalysisView valueOf(int value) {
          */
         public static AnalysisView forNumber(int value) {
           switch (value) {
    -        case 0:
    -          return ANALYSIS_VIEW_UNSPECIFIED;
    -        case 1:
    -          return FULL;
    -        case 2:
    -          return BASIC;
    -        default:
    -          return null;
    +        case 0: return ANALYSIS_VIEW_UNSPECIFIED;
    +        case 1: return FULL;
    +        case 2: return BASIC;
    +        default: return null;
           }
         }
     
    -    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
    +    public static com.google.protobuf.Internal.EnumLiteMap
    +        internalGetValueMap() {
           return internalValueMap;
         }
    +    private static final com.google.protobuf.Internal.EnumLiteMap<
    +        AnalysisView> internalValueMap =
    +          new com.google.protobuf.Internal.EnumLiteMap() {
    +            public AnalysisView findValueByNumber(int number) {
    +              return AnalysisView.forNumber(number);
    +            }
    +          };
     
    -    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
    -        new com.google.protobuf.Internal.EnumLiteMap() {
    -          public AnalysisView findValueByNumber(int number) {
    -            return AnalysisView.forNumber(number);
    -          }
    -        };
    -
    -    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
    +    public final com.google.protobuf.Descriptors.EnumValueDescriptor
    +        getValueDescriptor() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalStateException(
                 "Can't get the descriptor of an unrecognized enum value.");
           }
           return getDescriptor().getValues().get(ordinal());
         }
    -
    -    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
    +    public final com.google.protobuf.Descriptors.EnumDescriptor
    +        getDescriptorForType() {
           return getDescriptor();
         }
    -
    -    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
    +    public static final com.google.protobuf.Descriptors.EnumDescriptor
    +        getDescriptor() {
           return com.google.cloud.asset.v1.AnalyzeMoveRequest.getDescriptor().getEnumTypes().get(0);
         }
     
         private static final AnalysisView[] VALUES = values();
     
    -    public static AnalysisView valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
    +    public static AnalysisView valueOf(
    +        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
           if (desc.getType() != getDescriptor()) {
    -        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
    +        throw new java.lang.IllegalArgumentException(
    +          "EnumValueDescriptor is not for this type.");
           }
           if (desc.getIndex() == -1) {
             return UNRECOGNIZED;
    @@ -295,8 +204,6 @@ private AnalysisView(int value) {
       public static final int RESOURCE_FIELD_NUMBER = 1;
       private volatile java.lang.Object resource_;
       /**
    -   *
    -   *
        * 
        * Required. Name of the resource to perform the analysis against.
        * Only GCP Project are supported as of today. Hence, this can only be Project
    @@ -305,7 +212,6 @@ private AnalysisView(int value) {
        * 
    * * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The resource. */ @java.lang.Override @@ -314,15 +220,14 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** - * - * *
        * Required. Name of the resource to perform the analysis against.
        * Only GCP Project are supported as of today. Hence, this can only be Project
    @@ -331,15 +236,16 @@ public java.lang.String getResource() {
        * 
    * * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -350,8 +256,6 @@ public com.google.protobuf.ByteString getResourceBytes() { public static final int DESTINATION_PARENT_FIELD_NUMBER = 2; private volatile java.lang.Object destinationParent_; /** - * - * *
        * Required. Name of the GCP Folder or Organization to reparent the target
        * resource. The analysis will be performed against hypothetically moving the
    @@ -361,7 +265,6 @@ public com.google.protobuf.ByteString getResourceBytes() {
        * 
    * * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The destinationParent. */ @java.lang.Override @@ -370,15 +273,14 @@ public java.lang.String getDestinationParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationParent_ = s; return s; } } /** - * - * *
        * Required. Name of the GCP Folder or Organization to reparent the target
        * resource. The analysis will be performed against hypothetically moving the
    @@ -388,15 +290,16 @@ public java.lang.String getDestinationParent() {
        * 
    * * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for destinationParent. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationParentBytes() { + public com.google.protobuf.ByteString + getDestinationParentBytes() { java.lang.Object ref = destinationParent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationParent_ = b; return b; } else { @@ -407,45 +310,33 @@ public com.google.protobuf.ByteString getDestinationParentBytes() { public static final int VIEW_FIELD_NUMBER = 3; private int view_; /** - * - * *
        * Analysis view indicating what information should be included in the
        * analysis response. If unspecified, the default view is FULL.
        * 
    * * .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3; - * * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
        * Analysis view indicating what information should be included in the
        * analysis response. If unspecified, the default view is FULL.
        * 
    * * .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3; - * * @return The view. */ - @java.lang.Override - public com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView getView() { + @java.lang.Override public com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView getView() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView result = - com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView.valueOf(view_); - return result == null - ? com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView.UNRECOGNIZED - : result; + com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView result = com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView.valueOf(view_); + return result == null ? com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -457,19 +348,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationParent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, destinationParent_); } - if (view_ - != com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView.ANALYSIS_VIEW_UNSPECIFIED - .getNumber()) { + if (view_ != com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView.ANALYSIS_VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(3, view_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -484,12 +374,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationParent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, destinationParent_); } - if (view_ - != com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView.ANALYSIS_VIEW_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, view_); + if (view_ != com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView.ANALYSIS_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, view_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -497,18 +386,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.AnalyzeMoveRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.AnalyzeMoveRequest other = - (com.google.cloud.asset.v1.AnalyzeMoveRequest) obj; + com.google.cloud.asset.v1.AnalyzeMoveRequest other = (com.google.cloud.asset.v1.AnalyzeMoveRequest) obj; - if (!getResource().equals(other.getResource())) return false; - if (!getDestinationParent().equals(other.getDestinationParent())) return false; + if (!getResource() + .equals(other.getResource())) return false; + if (!getDestinationParent() + .equals(other.getDestinationParent())) return false; if (view_ != other.view_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -525,148 +415,135 @@ public int hashCode() { hash = (53 * hash) + getDestinationParent().hashCode(); hash = (37 * hash) + VIEW_FIELD_NUMBER; hash = (53 * hash) + view_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.AnalyzeMoveRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.AnalyzeMoveRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.AnalyzeMoveRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeMoveRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.AnalyzeMoveRequest 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.asset.v1.AnalyzeMoveRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.AnalyzeMoveRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeMoveRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.AnalyzeMoveRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.AnalyzeMoveRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.AnalyzeMoveRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.AnalyzeMoveRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeMoveRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.AnalyzeMoveRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.AnalyzeMoveRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * The request message for performing resource move analysis.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeMoveRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzeMoveRequest) com.google.cloud.asset.v1.AnalyzeMoveRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeMoveRequest.class, - com.google.cloud.asset.v1.AnalyzeMoveRequest.Builder.class); + com.google.cloud.asset.v1.AnalyzeMoveRequest.class, com.google.cloud.asset.v1.AnalyzeMoveRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.AnalyzeMoveRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -680,9 +557,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_descriptor; } @java.lang.Override @@ -701,8 +578,7 @@ public com.google.cloud.asset.v1.AnalyzeMoveRequest build() { @java.lang.Override public com.google.cloud.asset.v1.AnalyzeMoveRequest buildPartial() { - com.google.cloud.asset.v1.AnalyzeMoveRequest result = - new com.google.cloud.asset.v1.AnalyzeMoveRequest(this); + com.google.cloud.asset.v1.AnalyzeMoveRequest result = new com.google.cloud.asset.v1.AnalyzeMoveRequest(this); result.resource_ = resource_; result.destinationParent_ = destinationParent_; result.view_ = view_; @@ -714,39 +590,38 @@ public com.google.cloud.asset.v1.AnalyzeMoveRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.AnalyzeMoveRequest) { - return mergeFrom((com.google.cloud.asset.v1.AnalyzeMoveRequest) other); + return mergeFrom((com.google.cloud.asset.v1.AnalyzeMoveRequest)other); } else { super.mergeFrom(other); return this; @@ -766,7 +641,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeMoveRequest other) { if (other.view_ != 0) { setViewValue(other.getViewValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -781,24 +656,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.AnalyzeMoveRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + resource_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + destinationParent_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + view_ = input.readEnum(); + + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.AnalyzeMoveRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object resource_ = ""; /** - * - * *
          * Required. Name of the resource to perform the analysis against.
          * Only GCP Project are supported as of today. Hence, this can only be Project
    @@ -807,13 +708,13 @@ public Builder mergeFrom(
          * 
    * * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -822,8 +723,6 @@ public java.lang.String getResource() { } } /** - * - * *
          * Required. Name of the resource to perform the analysis against.
          * Only GCP Project are supported as of today. Hence, this can only be Project
    @@ -832,14 +731,15 @@ public java.lang.String getResource() {
          * 
    * * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for resource. */ - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -847,8 +747,6 @@ public com.google.protobuf.ByteString getResourceBytes() { } } /** - * - * *
          * Required. Name of the resource to perform the analysis against.
          * Only GCP Project are supported as of today. Hence, this can only be Project
    @@ -857,22 +755,20 @@ public com.google.protobuf.ByteString getResourceBytes() {
          * 
    * * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource(java.lang.String value) { + public Builder setResource( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** - * - * *
          * Required. Name of the resource to perform the analysis against.
          * Only GCP Project are supported as of today. Hence, this can only be Project
    @@ -881,18 +777,15 @@ public Builder setResource(java.lang.String value) {
          * 
    * * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** - * - * *
          * Required. Name of the resource to perform the analysis against.
          * Only GCP Project are supported as of today. Hence, this can only be Project
    @@ -901,16 +794,16 @@ public Builder clearResource() {
          * 
    * * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes(com.google.protobuf.ByteString value) { + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; @@ -918,8 +811,6 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { private java.lang.Object destinationParent_ = ""; /** - * - * *
          * Required. Name of the GCP Folder or Organization to reparent the target
          * resource. The analysis will be performed against hypothetically moving the
    @@ -929,13 +820,13 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) {
          * 
    * * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The destinationParent. */ public java.lang.String getDestinationParent() { java.lang.Object ref = destinationParent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationParent_ = s; return s; @@ -944,8 +835,6 @@ public java.lang.String getDestinationParent() { } } /** - * - * *
          * Required. Name of the GCP Folder or Organization to reparent the target
          * resource. The analysis will be performed against hypothetically moving the
    @@ -955,14 +844,15 @@ public java.lang.String getDestinationParent() {
          * 
    * * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for destinationParent. */ - public com.google.protobuf.ByteString getDestinationParentBytes() { + public com.google.protobuf.ByteString + getDestinationParentBytes() { java.lang.Object ref = destinationParent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationParent_ = b; return b; } else { @@ -970,8 +860,6 @@ public com.google.protobuf.ByteString getDestinationParentBytes() { } } /** - * - * *
          * Required. Name of the GCP Folder or Organization to reparent the target
          * resource. The analysis will be performed against hypothetically moving the
    @@ -981,22 +869,20 @@ public com.google.protobuf.ByteString getDestinationParentBytes() {
          * 
    * * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The destinationParent to set. * @return This builder for chaining. */ - public Builder setDestinationParent(java.lang.String value) { + public Builder setDestinationParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + destinationParent_ = value; onChanged(); return this; } /** - * - * *
          * Required. Name of the GCP Folder or Organization to reparent the target
          * resource. The analysis will be performed against hypothetically moving the
    @@ -1006,18 +892,15 @@ public Builder setDestinationParent(java.lang.String value) {
          * 
    * * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDestinationParent() { - + destinationParent_ = getDefaultInstance().getDestinationParent(); onChanged(); return this; } /** - * - * *
          * Required. Name of the GCP Folder or Organization to reparent the target
          * resource. The analysis will be performed against hypothetically moving the
    @@ -1027,16 +910,16 @@ public Builder clearDestinationParent() {
          * 
    * * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for destinationParent to set. * @return This builder for chaining. */ - public Builder setDestinationParentBytes(com.google.protobuf.ByteString value) { + public Builder setDestinationParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationParent_ = value; onChanged(); return this; @@ -1044,71 +927,55 @@ public Builder setDestinationParentBytes(com.google.protobuf.ByteString value) { private int view_ = 0; /** - * - * *
          * Analysis view indicating what information should be included in the
          * analysis response. If unspecified, the default view is FULL.
          * 
    * * .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3; - * * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
          * Analysis view indicating what information should be included in the
          * analysis response. If unspecified, the default view is FULL.
          * 
    * * .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3; - * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ public Builder setViewValue(int value) { - + view_ = value; onChanged(); return this; } /** - * - * *
          * Analysis view indicating what information should be included in the
          * analysis response. If unspecified, the default view is FULL.
          * 
    * * .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3; - * * @return The view. */ @java.lang.Override public com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView getView() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView result = - com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView.valueOf(view_); - return result == null - ? com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView.UNRECOGNIZED - : result; + com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView result = com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView.valueOf(view_); + return result == null ? com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView.UNRECOGNIZED : result; } /** - * - * *
          * Analysis view indicating what information should be included in the
          * analysis response. If unspecified, the default view is FULL.
          * 
    * * .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3; - * * @param value The view to set. * @return This builder for chaining. */ @@ -1116,32 +983,29 @@ public Builder setView(com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView if (value == null) { throw new NullPointerException(); } - + view_ = value.getNumber(); onChanged(); return this; } /** - * - * *
          * Analysis view indicating what information should be included in the
          * analysis response. If unspecified, the default view is FULL.
          * 
    * * .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3; - * * @return This builder for chaining. */ public Builder clearView() { - + view_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1151,12 +1015,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.AnalyzeMoveRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzeMoveRequest) private static final com.google.cloud.asset.v1.AnalyzeMoveRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.AnalyzeMoveRequest(); } @@ -1165,16 +1029,27 @@ public static com.google.cloud.asset.v1.AnalyzeMoveRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnalyzeMoveRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnalyzeMoveRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnalyzeMoveRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1189,4 +1064,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.AnalyzeMoveRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequestOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequestOrBuilder.java similarity index 77% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequestOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequestOrBuilder.java index 5b4a1f5fd05a..9823f3719da8 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequestOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface AnalyzeMoveRequestOrBuilder - extends +public interface AnalyzeMoveRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzeMoveRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. Name of the resource to perform the analysis against.
        * Only GCP Project are supported as of today. Hence, this can only be Project
    @@ -34,13 +16,10 @@ public interface AnalyzeMoveRequestOrBuilder
        * 
    * * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The resource. */ java.lang.String getResource(); /** - * - * *
        * Required. Name of the resource to perform the analysis against.
        * Only GCP Project are supported as of today. Hence, this can only be Project
    @@ -49,14 +28,12 @@ public interface AnalyzeMoveRequestOrBuilder
        * 
    * * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for resource. */ - com.google.protobuf.ByteString getResourceBytes(); + com.google.protobuf.ByteString + getResourceBytes(); /** - * - * *
        * Required. Name of the GCP Folder or Organization to reparent the target
        * resource. The analysis will be performed against hypothetically moving the
    @@ -66,13 +43,10 @@ public interface AnalyzeMoveRequestOrBuilder
        * 
    * * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The destinationParent. */ java.lang.String getDestinationParent(); /** - * - * *
        * Required. Name of the GCP Folder or Organization to reparent the target
        * resource. The analysis will be performed against hypothetically moving the
    @@ -82,34 +56,28 @@ public interface AnalyzeMoveRequestOrBuilder
        * 
    * * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for destinationParent. */ - com.google.protobuf.ByteString getDestinationParentBytes(); + com.google.protobuf.ByteString + getDestinationParentBytes(); /** - * - * *
        * Analysis view indicating what information should be included in the
        * analysis response. If unspecified, the default view is FULL.
        * 
    * * .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3; - * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** - * - * *
        * Analysis view indicating what information should be included in the
        * analysis response. If unspecified, the default view is FULL.
        * 
    * * .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3; - * * @return The view. */ com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView getView(); diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponse.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponse.java similarity index 70% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponse.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponse.java index 5c684bd6aef7..e972159d75b7 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponse.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponse.java @@ -1,131 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * The response message for resource move analysis.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeMoveResponse} */ -public final class AnalyzeMoveResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnalyzeMoveResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzeMoveResponse) AnalyzeMoveResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AnalyzeMoveResponse.newBuilder() to construct. private AnalyzeMoveResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnalyzeMoveResponse() { moveAnalysis_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnalyzeMoveResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private AnalyzeMoveResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - moveAnalysis_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - moveAnalysis_.add( - input.readMessage( - com.google.cloud.asset.v1.MoveAnalysis.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - moveAnalysis_ = java.util.Collections.unmodifiableList(moveAnalysis_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeMoveResponse.class, - com.google.cloud.asset.v1.AnalyzeMoveResponse.Builder.class); + com.google.cloud.asset.v1.AnalyzeMoveResponse.class, com.google.cloud.asset.v1.AnalyzeMoveResponse.Builder.class); } public static final int MOVE_ANALYSIS_FIELD_NUMBER = 1; private java.util.List moveAnalysis_; /** - * - * *
        * The list of analyses returned from performing the intended resource move
        * analysis. The analysis is grouped by different Cloud services.
    @@ -138,8 +63,6 @@ public java.util.List getMoveAnalysisLis
         return moveAnalysis_;
       }
       /**
    -   *
    -   *
        * 
        * The list of analyses returned from performing the intended resource move
        * analysis. The analysis is grouped by different Cloud services.
    @@ -148,13 +71,11 @@ public java.util.List getMoveAnalysisLis
        * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
        */
       @java.lang.Override
    -  public java.util.List
    +  public java.util.List 
           getMoveAnalysisOrBuilderList() {
         return moveAnalysis_;
       }
       /**
    -   *
    -   *
        * 
        * The list of analyses returned from performing the intended resource move
        * analysis. The analysis is grouped by different Cloud services.
    @@ -167,8 +88,6 @@ public int getMoveAnalysisCount() {
         return moveAnalysis_.size();
       }
       /**
    -   *
    -   *
        * 
        * The list of analyses returned from performing the intended resource move
        * analysis. The analysis is grouped by different Cloud services.
    @@ -181,8 +100,6 @@ public com.google.cloud.asset.v1.MoveAnalysis getMoveAnalysis(int index) {
         return moveAnalysis_.get(index);
       }
       /**
    -   *
    -   *
        * 
        * The list of analyses returned from performing the intended resource move
        * analysis. The analysis is grouped by different Cloud services.
    @@ -191,12 +108,12 @@ public com.google.cloud.asset.v1.MoveAnalysis getMoveAnalysis(int index) {
        * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
        */
       @java.lang.Override
    -  public com.google.cloud.asset.v1.MoveAnalysisOrBuilder getMoveAnalysisOrBuilder(int index) {
    +  public com.google.cloud.asset.v1.MoveAnalysisOrBuilder getMoveAnalysisOrBuilder(
    +      int index) {
         return moveAnalysis_.get(index);
       }
     
       private byte memoizedIsInitialized = -1;
    -
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -208,11 +125,12 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output)
    +                      throws java.io.IOException {
         for (int i = 0; i < moveAnalysis_.size(); i++) {
           output.writeMessage(1, moveAnalysis_.get(i));
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -222,9 +140,10 @@ public int getSerializedSize() {
     
         size = 0;
         for (int i = 0; i < moveAnalysis_.size(); i++) {
    -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, moveAnalysis_.get(i));
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(1, moveAnalysis_.get(i));
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -232,16 +151,16 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -      return true;
    +     return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1.AnalyzeMoveResponse)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1.AnalyzeMoveResponse other =
    -        (com.google.cloud.asset.v1.AnalyzeMoveResponse) obj;
    +    com.google.cloud.asset.v1.AnalyzeMoveResponse other = (com.google.cloud.asset.v1.AnalyzeMoveResponse) obj;
     
    -    if (!getMoveAnalysisList().equals(other.getMoveAnalysisList())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getMoveAnalysisList()
    +        .equals(other.getMoveAnalysisList())) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -256,166 +175,152 @@ public int hashCode() {
           hash = (37 * hash) + MOVE_ANALYSIS_FIELD_NUMBER;
           hash = (53 * hash) + getMoveAnalysisList().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1.AnalyzeMoveResponse parseFrom(java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1.AnalyzeMoveResponse parseFrom(
    +      java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.AnalyzeMoveResponse parseFrom(
    -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.AnalyzeMoveResponse parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.AnalyzeMoveResponse 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.asset.v1.AnalyzeMoveResponse parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.AnalyzeMoveResponse parseFrom(
    -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.AnalyzeMoveResponse parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.AnalyzeMoveResponse parseFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
    -
    -  public static com.google.cloud.asset.v1.AnalyzeMoveResponse parseDelimitedFrom(
    -      java.io.InputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    +  public static com.google.cloud.asset.v1.AnalyzeMoveResponse parseDelimitedFrom(java.io.InputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.AnalyzeMoveResponse parseDelimitedFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.AnalyzeMoveResponse parseFrom(
    -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.AnalyzeMoveResponse parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() {
    -    return newBuilder();
    -  }
    -
    +  public Builder newBuilderForType() { return newBuilder(); }
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    -
       public static Builder newBuilder(com.google.cloud.asset.v1.AnalyzeMoveResponse prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    -
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE
    +        ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(
    +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    -   *
    -   *
        * 
        * The response message for resource move analysis.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeMoveResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzeMoveResponse) com.google.cloud.asset.v1.AnalyzeMoveResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeMoveResponse.class, - com.google.cloud.asset.v1.AnalyzeMoveResponse.Builder.class); + com.google.cloud.asset.v1.AnalyzeMoveResponse.class, com.google.cloud.asset.v1.AnalyzeMoveResponse.Builder.class); } // Construct using com.google.cloud.asset.v1.AnalyzeMoveResponse.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getMoveAnalysisFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); if (moveAnalysisBuilder_ == null) { moveAnalysis_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + moveAnalysis_ = null; moveAnalysisBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_descriptor; } @java.lang.Override @@ -434,8 +339,7 @@ public com.google.cloud.asset.v1.AnalyzeMoveResponse build() { @java.lang.Override public com.google.cloud.asset.v1.AnalyzeMoveResponse buildPartial() { - com.google.cloud.asset.v1.AnalyzeMoveResponse result = - new com.google.cloud.asset.v1.AnalyzeMoveResponse(this); + com.google.cloud.asset.v1.AnalyzeMoveResponse result = new com.google.cloud.asset.v1.AnalyzeMoveResponse(this); int from_bitField0_ = bitField0_; if (moveAnalysisBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -454,39 +358,38 @@ public com.google.cloud.asset.v1.AnalyzeMoveResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.AnalyzeMoveResponse) { - return mergeFrom((com.google.cloud.asset.v1.AnalyzeMoveResponse) other); + return mergeFrom((com.google.cloud.asset.v1.AnalyzeMoveResponse)other); } else { super.mergeFrom(other); return this; @@ -513,16 +416,15 @@ public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeMoveResponse other) { moveAnalysisBuilder_ = null; moveAnalysis_ = other.moveAnalysis_; bitField0_ = (bitField0_ & ~0x00000001); - moveAnalysisBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMoveAnalysisFieldBuilder() - : null; + moveAnalysisBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMoveAnalysisFieldBuilder() : null; } else { moveAnalysisBuilder_.addAllMessages(other.moveAnalysis_); } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -537,42 +439,60 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.AnalyzeMoveResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.asset.v1.MoveAnalysis m = + input.readMessage( + com.google.cloud.asset.v1.MoveAnalysis.parser(), + extensionRegistry); + if (moveAnalysisBuilder_ == null) { + ensureMoveAnalysisIsMutable(); + moveAnalysis_.add(m); + } else { + moveAnalysisBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.AnalyzeMoveResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.util.List moveAnalysis_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMoveAnalysisIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - moveAnalysis_ = - new java.util.ArrayList(moveAnalysis_); + moveAnalysis_ = new java.util.ArrayList(moveAnalysis_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.MoveAnalysis, - com.google.cloud.asset.v1.MoveAnalysis.Builder, - com.google.cloud.asset.v1.MoveAnalysisOrBuilder> - moveAnalysisBuilder_; + com.google.cloud.asset.v1.MoveAnalysis, com.google.cloud.asset.v1.MoveAnalysis.Builder, com.google.cloud.asset.v1.MoveAnalysisOrBuilder> moveAnalysisBuilder_; /** - * - * *
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -588,8 +508,6 @@ public java.util.List getMoveAnalysisLis
           }
         }
         /**
    -     *
    -     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -605,8 +523,6 @@ public int getMoveAnalysisCount() {
           }
         }
         /**
    -     *
    -     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -622,8 +538,6 @@ public com.google.cloud.asset.v1.MoveAnalysis getMoveAnalysis(int index) {
           }
         }
         /**
    -     *
    -     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -631,7 +545,8 @@ public com.google.cloud.asset.v1.MoveAnalysis getMoveAnalysis(int index) {
          *
          * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
          */
    -    public Builder setMoveAnalysis(int index, com.google.cloud.asset.v1.MoveAnalysis value) {
    +    public Builder setMoveAnalysis(
    +        int index, com.google.cloud.asset.v1.MoveAnalysis value) {
           if (moveAnalysisBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -645,8 +560,6 @@ public Builder setMoveAnalysis(int index, com.google.cloud.asset.v1.MoveAnalysis
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -666,8 +579,6 @@ public Builder setMoveAnalysis(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -689,8 +600,6 @@ public Builder addMoveAnalysis(com.google.cloud.asset.v1.MoveAnalysis value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -698,7 +607,8 @@ public Builder addMoveAnalysis(com.google.cloud.asset.v1.MoveAnalysis value) {
          *
          * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
          */
    -    public Builder addMoveAnalysis(int index, com.google.cloud.asset.v1.MoveAnalysis value) {
    +    public Builder addMoveAnalysis(
    +        int index, com.google.cloud.asset.v1.MoveAnalysis value) {
           if (moveAnalysisBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -712,8 +622,6 @@ public Builder addMoveAnalysis(int index, com.google.cloud.asset.v1.MoveAnalysis
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -721,7 +629,8 @@ public Builder addMoveAnalysis(int index, com.google.cloud.asset.v1.MoveAnalysis
          *
          * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
          */
    -    public Builder addMoveAnalysis(com.google.cloud.asset.v1.MoveAnalysis.Builder builderForValue) {
    +    public Builder addMoveAnalysis(
    +        com.google.cloud.asset.v1.MoveAnalysis.Builder builderForValue) {
           if (moveAnalysisBuilder_ == null) {
             ensureMoveAnalysisIsMutable();
             moveAnalysis_.add(builderForValue.build());
    @@ -732,8 +641,6 @@ public Builder addMoveAnalysis(com.google.cloud.asset.v1.MoveAnalysis.Builder bu
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -753,8 +660,6 @@ public Builder addMoveAnalysis(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -766,7 +671,8 @@ public Builder addAllMoveAnalysis(
             java.lang.Iterable values) {
           if (moveAnalysisBuilder_ == null) {
             ensureMoveAnalysisIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, moveAnalysis_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    +            values, moveAnalysis_);
             onChanged();
           } else {
             moveAnalysisBuilder_.addAllMessages(values);
    @@ -774,8 +680,6 @@ public Builder addAllMoveAnalysis(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -794,8 +698,6 @@ public Builder clearMoveAnalysis() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -814,8 +716,6 @@ public Builder removeMoveAnalysis(int index) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -823,12 +723,11 @@ public Builder removeMoveAnalysis(int index) {
          *
          * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
          */
    -    public com.google.cloud.asset.v1.MoveAnalysis.Builder getMoveAnalysisBuilder(int index) {
    +    public com.google.cloud.asset.v1.MoveAnalysis.Builder getMoveAnalysisBuilder(
    +        int index) {
           return getMoveAnalysisFieldBuilder().getBuilder(index);
         }
         /**
    -     *
    -     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -836,16 +735,14 @@ public com.google.cloud.asset.v1.MoveAnalysis.Builder getMoveAnalysisBuilder(int
          *
          * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
          */
    -    public com.google.cloud.asset.v1.MoveAnalysisOrBuilder getMoveAnalysisOrBuilder(int index) {
    +    public com.google.cloud.asset.v1.MoveAnalysisOrBuilder getMoveAnalysisOrBuilder(
    +        int index) {
           if (moveAnalysisBuilder_ == null) {
    -        return moveAnalysis_.get(index);
    -      } else {
    +        return moveAnalysis_.get(index);  } else {
             return moveAnalysisBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    -     *
    -     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -853,8 +750,8 @@ public com.google.cloud.asset.v1.MoveAnalysisOrBuilder getMoveAnalysisOrBuilder(
          *
          * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
          */
    -    public java.util.List
    -        getMoveAnalysisOrBuilderList() {
    +    public java.util.List 
    +         getMoveAnalysisOrBuilderList() {
           if (moveAnalysisBuilder_ != null) {
             return moveAnalysisBuilder_.getMessageOrBuilderList();
           } else {
    @@ -862,8 +759,6 @@ public com.google.cloud.asset.v1.MoveAnalysisOrBuilder getMoveAnalysisOrBuilder(
           }
         }
         /**
    -     *
    -     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -872,12 +767,10 @@ public com.google.cloud.asset.v1.MoveAnalysisOrBuilder getMoveAnalysisOrBuilder(
          * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
          */
         public com.google.cloud.asset.v1.MoveAnalysis.Builder addMoveAnalysisBuilder() {
    -      return getMoveAnalysisFieldBuilder()
    -          .addBuilder(com.google.cloud.asset.v1.MoveAnalysis.getDefaultInstance());
    +      return getMoveAnalysisFieldBuilder().addBuilder(
    +          com.google.cloud.asset.v1.MoveAnalysis.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -885,13 +778,12 @@ public com.google.cloud.asset.v1.MoveAnalysis.Builder addMoveAnalysisBuilder() {
          *
          * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
          */
    -    public com.google.cloud.asset.v1.MoveAnalysis.Builder addMoveAnalysisBuilder(int index) {
    -      return getMoveAnalysisFieldBuilder()
    -          .addBuilder(index, com.google.cloud.asset.v1.MoveAnalysis.getDefaultInstance());
    +    public com.google.cloud.asset.v1.MoveAnalysis.Builder addMoveAnalysisBuilder(
    +        int index) {
    +      return getMoveAnalysisFieldBuilder().addBuilder(
    +          index, com.google.cloud.asset.v1.MoveAnalysis.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -899,30 +791,27 @@ public com.google.cloud.asset.v1.MoveAnalysis.Builder addMoveAnalysisBuilder(int
          *
          * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
          */
    -    public java.util.List
    -        getMoveAnalysisBuilderList() {
    +    public java.util.List 
    +         getMoveAnalysisBuilderList() {
           return getMoveAnalysisFieldBuilder().getBuilderList();
         }
    -
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.asset.v1.MoveAnalysis,
    -            com.google.cloud.asset.v1.MoveAnalysis.Builder,
    -            com.google.cloud.asset.v1.MoveAnalysisOrBuilder>
    +        com.google.cloud.asset.v1.MoveAnalysis, com.google.cloud.asset.v1.MoveAnalysis.Builder, com.google.cloud.asset.v1.MoveAnalysisOrBuilder> 
             getMoveAnalysisFieldBuilder() {
           if (moveAnalysisBuilder_ == null) {
    -        moveAnalysisBuilder_ =
    -            new com.google.protobuf.RepeatedFieldBuilderV3<
    -                com.google.cloud.asset.v1.MoveAnalysis,
    -                com.google.cloud.asset.v1.MoveAnalysis.Builder,
    -                com.google.cloud.asset.v1.MoveAnalysisOrBuilder>(
    -                moveAnalysis_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
    +        moveAnalysisBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    +            com.google.cloud.asset.v1.MoveAnalysis, com.google.cloud.asset.v1.MoveAnalysis.Builder, com.google.cloud.asset.v1.MoveAnalysisOrBuilder>(
    +                moveAnalysis_,
    +                ((bitField0_ & 0x00000001) != 0),
    +                getParentForChildren(),
    +                isClean());
             moveAnalysis_ = null;
           }
           return moveAnalysisBuilder_;
         }
    -
         @java.lang.Override
    -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(
    +        final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -932,12 +821,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    +
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.AnalyzeMoveResponse)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzeMoveResponse)
       private static final com.google.cloud.asset.v1.AnalyzeMoveResponse DEFAULT_INSTANCE;
    -
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1.AnalyzeMoveResponse();
       }
    @@ -946,16 +835,27 @@ public static com.google.cloud.asset.v1.AnalyzeMoveResponse getDefaultInstance()
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser PARSER =
    -      new com.google.protobuf.AbstractParser() {
    -        @java.lang.Override
    -        public AnalyzeMoveResponse parsePartialFrom(
    -            com.google.protobuf.CodedInputStream input,
    -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -            throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new AnalyzeMoveResponse(input, extensionRegistry);
    -        }
    -      };
    +  private static final com.google.protobuf.Parser
    +      PARSER = new com.google.protobuf.AbstractParser() {
    +    @java.lang.Override
    +    public AnalyzeMoveResponse parsePartialFrom(
    +        com.google.protobuf.CodedInputStream input,
    +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        throws com.google.protobuf.InvalidProtocolBufferException {
    +      Builder builder = newBuilder();
    +      try {
    +        builder.mergeFrom(input, extensionRegistry);
    +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +        throw e.setUnfinishedMessage(builder.buildPartial());
    +      } catch (com.google.protobuf.UninitializedMessageException e) {
    +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +      } catch (java.io.IOException e) {
    +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +            .setUnfinishedMessage(builder.buildPartial());
    +      }
    +      return builder.buildPartial();
    +    }
    +  };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -970,4 +870,6 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1.AnalyzeMoveResponse getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    +
     }
    +
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponseOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponseOrBuilder.java
    similarity index 69%
    rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponseOrBuilder.java
    rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponseOrBuilder.java
    index ee10b893d292..7fea545cedd3 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponseOrBuilder.java
    +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponseOrBuilder.java
    @@ -1,31 +1,13 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
    -public interface AnalyzeMoveResponseOrBuilder
    -    extends
    +public interface AnalyzeMoveResponseOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzeMoveResponse)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    -   *
    -   *
        * 
        * The list of analyses returned from performing the intended resource move
        * analysis. The analysis is grouped by different Cloud services.
    @@ -33,10 +15,9 @@ public interface AnalyzeMoveResponseOrBuilder
        *
        * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
        */
    -  java.util.List getMoveAnalysisList();
    +  java.util.List 
    +      getMoveAnalysisList();
       /**
    -   *
    -   *
        * 
        * The list of analyses returned from performing the intended resource move
        * analysis. The analysis is grouped by different Cloud services.
    @@ -46,8 +27,6 @@ public interface AnalyzeMoveResponseOrBuilder
        */
       com.google.cloud.asset.v1.MoveAnalysis getMoveAnalysis(int index);
       /**
    -   *
    -   *
        * 
        * The list of analyses returned from performing the intended resource move
        * analysis. The analysis is grouped by different Cloud services.
    @@ -57,8 +36,6 @@ public interface AnalyzeMoveResponseOrBuilder
        */
       int getMoveAnalysisCount();
       /**
    -   *
    -   *
        * 
        * The list of analyses returned from performing the intended resource move
        * analysis. The analysis is grouped by different Cloud services.
    @@ -66,11 +43,9 @@ public interface AnalyzeMoveResponseOrBuilder
        *
        * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
        */
    -  java.util.List
    +  java.util.List 
           getMoveAnalysisOrBuilderList();
       /**
    -   *
    -   *
        * 
        * The list of analyses returned from performing the intended resource move
        * analysis. The analysis is grouped by different Cloud services.
    @@ -78,5 +53,6 @@ public interface AnalyzeMoveResponseOrBuilder
        *
        * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
        */
    -  com.google.cloud.asset.v1.MoveAnalysisOrBuilder getMoveAnalysisOrBuilder(int index);
    +  com.google.cloud.asset.v1.MoveAnalysisOrBuilder getMoveAnalysisOrBuilder(
    +      int index);
     }
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java
    similarity index 76%
    rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java
    rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java
    index d7f1dcf9cd55..7a8943041092 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java
    +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java
    @@ -1,26 +1,9 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/assets.proto
     
     package com.google.cloud.asset.v1;
     
     /**
    - *
    - *
      * 
      * An asset in Google Cloud. An asset can be any resource in the Google Cloud
      * [resource
    @@ -35,16 +18,15 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.Asset}
      */
    -public final class Asset extends com.google.protobuf.GeneratedMessageV3
    -    implements
    +public final class Asset extends
    +    com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.Asset)
         AssetOrBuilder {
    -  private static final long serialVersionUID = 0L;
    +private static final long serialVersionUID = 0L;
       // Use Asset.newBuilder() to construct.
       private Asset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -
       private Asset() {
         name_ = "";
         assetType_ = "";
    @@ -54,280 +36,39 @@ private Asset() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(
    +      UnusedPrivateParameter unused) {
         return new Asset();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet
    +  getUnknownFields() {
         return this.unknownFields;
       }
    -
    -  private Asset(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              name_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              assetType_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              com.google.cloud.asset.v1.Resource.Builder subBuilder = null;
    -              if (resource_ != null) {
    -                subBuilder = resource_.toBuilder();
    -              }
    -              resource_ =
    -                  input.readMessage(com.google.cloud.asset.v1.Resource.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(resource_);
    -                resource_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 34:
    -            {
    -              com.google.iam.v1.Policy.Builder subBuilder = null;
    -              if (iamPolicy_ != null) {
    -                subBuilder = iamPolicy_.toBuilder();
    -              }
    -              iamPolicy_ = input.readMessage(com.google.iam.v1.Policy.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(iamPolicy_);
    -                iamPolicy_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 50:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                orgPolicy_ = new java.util.ArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              orgPolicy_.add(
    -                  input.readMessage(
    -                      com.google.cloud.orgpolicy.v1.Policy.parser(), extensionRegistry));
    -              break;
    -            }
    -          case 58:
    -            {
    -              com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder subBuilder = null;
    -              if (accessContextPolicyCase_ == 7) {
    -                subBuilder =
    -                    ((com.google.identity.accesscontextmanager.v1.AccessPolicy)
    -                            accessContextPolicy_)
    -                        .toBuilder();
    -              }
    -              accessContextPolicy_ =
    -                  input.readMessage(
    -                      com.google.identity.accesscontextmanager.v1.AccessPolicy.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(
    -                    (com.google.identity.accesscontextmanager.v1.AccessPolicy)
    -                        accessContextPolicy_);
    -                accessContextPolicy_ = subBuilder.buildPartial();
    -              }
    -              accessContextPolicyCase_ = 7;
    -              break;
    -            }
    -          case 66:
    -            {
    -              com.google.identity.accesscontextmanager.v1.AccessLevel.Builder subBuilder = null;
    -              if (accessContextPolicyCase_ == 8) {
    -                subBuilder =
    -                    ((com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_)
    -                        .toBuilder();
    -              }
    -              accessContextPolicy_ =
    -                  input.readMessage(
    -                      com.google.identity.accesscontextmanager.v1.AccessLevel.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(
    -                    (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_);
    -                accessContextPolicy_ = subBuilder.buildPartial();
    -              }
    -              accessContextPolicyCase_ = 8;
    -              break;
    -            }
    -          case 74:
    -            {
    -              com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder subBuilder =
    -                  null;
    -              if (accessContextPolicyCase_ == 9) {
    -                subBuilder =
    -                    ((com.google.identity.accesscontextmanager.v1.ServicePerimeter)
    -                            accessContextPolicy_)
    -                        .toBuilder();
    -              }
    -              accessContextPolicy_ =
    -                  input.readMessage(
    -                      com.google.identity.accesscontextmanager.v1.ServicePerimeter.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(
    -                    (com.google.identity.accesscontextmanager.v1.ServicePerimeter)
    -                        accessContextPolicy_);
    -                accessContextPolicy_ = subBuilder.buildPartial();
    -              }
    -              accessContextPolicyCase_ = 9;
    -              break;
    -            }
    -          case 82:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
    -                ancestors_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000002;
    -              }
    -              ancestors_.add(s);
    -              break;
    -            }
    -          case 90:
    -            {
    -              com.google.protobuf.Timestamp.Builder subBuilder = null;
    -              if (updateTime_ != null) {
    -                subBuilder = updateTime_.toBuilder();
    -              }
    -              updateTime_ =
    -                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(updateTime_);
    -                updateTime_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 98:
    -            {
    -              com.google.cloud.osconfig.v1.Inventory.Builder subBuilder = null;
    -              if (osInventory_ != null) {
    -                subBuilder = osInventory_.toBuilder();
    -              }
    -              osInventory_ =
    -                  input.readMessage(
    -                      com.google.cloud.osconfig.v1.Inventory.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(osInventory_);
    -                osInventory_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 106:
    -            {
    -              com.google.cloud.asset.v1.RelatedAssets.Builder subBuilder = null;
    -              if (relatedAssets_ != null) {
    -                subBuilder = relatedAssets_.toBuilder();
    -              }
    -              relatedAssets_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.RelatedAssets.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(relatedAssets_);
    -                relatedAssets_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 122:
    -            {
    -              com.google.cloud.asset.v1.RelatedAsset.Builder subBuilder = null;
    -              if (relatedAsset_ != null) {
    -                subBuilder = relatedAsset_.toBuilder();
    -              }
    -              relatedAsset_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.RelatedAsset.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(relatedAsset_);
    -                relatedAsset_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        orgPolicy_ = java.util.Collections.unmodifiableList(orgPolicy_);
    -      }
    -      if (((mutable_bitField0_ & 0x00000002) != 0)) {
    -        ancestors_ = ancestors_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
    -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetProto
    -        .internal_static_google_cloud_asset_v1_Asset_descriptor;
    +  public static final com.google.protobuf.Descriptors.Descriptor
    +      getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_Asset_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetProto
    -        .internal_static_google_cloud_asset_v1_Asset_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_Asset_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
                 com.google.cloud.asset.v1.Asset.class, com.google.cloud.asset.v1.Asset.Builder.class);
       }
     
       private int accessContextPolicyCase_ = 0;
       private java.lang.Object accessContextPolicy_;
    -
       public enum AccessContextPolicyCase
    -      implements
    -          com.google.protobuf.Internal.EnumLite,
    +      implements com.google.protobuf.Internal.EnumLite,
               com.google.protobuf.AbstractMessage.InternalOneOfEnum {
         ACCESS_POLICY(7),
         ACCESS_LEVEL(8),
         SERVICE_PERIMETER(9),
         ACCESSCONTEXTPOLICY_NOT_SET(0);
         private final int value;
    -
         private AccessContextPolicyCase(int value) {
           this.value = value;
         }
    @@ -343,40 +84,33 @@ public static AccessContextPolicyCase valueOf(int value) {
     
         public static AccessContextPolicyCase forNumber(int value) {
           switch (value) {
    -        case 7:
    -          return ACCESS_POLICY;
    -        case 8:
    -          return ACCESS_LEVEL;
    -        case 9:
    -          return SERVICE_PERIMETER;
    -        case 0:
    -          return ACCESSCONTEXTPOLICY_NOT_SET;
    -        default:
    -          return null;
    +        case 7: return ACCESS_POLICY;
    +        case 8: return ACCESS_LEVEL;
    +        case 9: return SERVICE_PERIMETER;
    +        case 0: return ACCESSCONTEXTPOLICY_NOT_SET;
    +        default: return null;
           }
         }
    -
         public int getNumber() {
           return this.value;
         }
       };
     
    -  public AccessContextPolicyCase getAccessContextPolicyCase() {
    -    return AccessContextPolicyCase.forNumber(accessContextPolicyCase_);
    +  public AccessContextPolicyCase
    +  getAccessContextPolicyCase() {
    +    return AccessContextPolicyCase.forNumber(
    +        accessContextPolicyCase_);
       }
     
       public static final int UPDATE_TIME_FIELD_NUMBER = 11;
       private com.google.protobuf.Timestamp updateTime_;
       /**
    -   *
    -   *
        * 
        * The last update timestamp of an asset. update_time is updated when
        * create/update/delete operation is performed.
        * 
    * * .google.protobuf.Timestamp update_time = 11; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -384,15 +118,12 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
        * The last update timestamp of an asset. update_time is updated when
        * create/update/delete operation is performed.
        * 
    * * .google.protobuf.Timestamp update_time = 11; - * * @return The updateTime. */ @java.lang.Override @@ -400,8 +131,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
        * The last update timestamp of an asset. update_time is updated when
        * create/update/delete operation is performed.
    @@ -417,8 +146,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
       public static final int NAME_FIELD_NUMBER = 1;
       private volatile java.lang.Object name_;
       /**
    -   *
    -   *
        * 
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -428,7 +155,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
        * 
    * * string name = 1; - * * @return The name. */ @java.lang.Override @@ -437,15 +163,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -455,15 +180,16 @@ public java.lang.String getName() {
        * 
    * * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -474,8 +200,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ASSET_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object assetType_; /** - * - * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -484,7 +208,6 @@ public com.google.protobuf.ByteString getNameBytes() {
        * 
    * * string asset_type = 2; - * * @return The assetType. */ @java.lang.Override @@ -493,15 +216,14 @@ public java.lang.String getAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; } } /** - * - * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -510,15 +232,16 @@ public java.lang.String getAssetType() {
        * 
    * * string asset_type = 2; - * * @return The bytes for assetType. */ @java.lang.Override - public com.google.protobuf.ByteString getAssetTypeBytes() { + public com.google.protobuf.ByteString + getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetType_ = b; return b; } else { @@ -529,14 +252,11 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.asset.v1.Resource resource_; /** - * - * *
        * A representation of the resource.
        * 
    * * .google.cloud.asset.v1.Resource resource = 3; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -544,14 +264,11 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
        * A representation of the resource.
        * 
    * * .google.cloud.asset.v1.Resource resource = 3; - * * @return The resource. */ @java.lang.Override @@ -559,8 +276,6 @@ public com.google.cloud.asset.v1.Resource getResource() { return resource_ == null ? com.google.cloud.asset.v1.Resource.getDefaultInstance() : resource_; } /** - * - * *
        * A representation of the resource.
        * 
    @@ -575,8 +290,6 @@ public com.google.cloud.asset.v1.ResourceOrBuilder getResourceOrBuilder() { public static final int IAM_POLICY_FIELD_NUMBER = 4; private com.google.iam.v1.Policy iamPolicy_; /** - * - * *
        * A representation of the Cloud IAM policy set on a Google Cloud resource.
        * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -590,7 +303,6 @@ public com.google.cloud.asset.v1.ResourceOrBuilder getResourceOrBuilder() {
        * 
    * * .google.iam.v1.Policy iam_policy = 4; - * * @return Whether the iamPolicy field is set. */ @java.lang.Override @@ -598,8 +310,6 @@ public boolean hasIamPolicy() { return iamPolicy_ != null; } /** - * - * *
        * A representation of the Cloud IAM policy set on a Google Cloud resource.
        * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -613,7 +323,6 @@ public boolean hasIamPolicy() {
        * 
    * * .google.iam.v1.Policy iam_policy = 4; - * * @return The iamPolicy. */ @java.lang.Override @@ -621,8 +330,6 @@ public com.google.iam.v1.Policy getIamPolicy() { return iamPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_; } /** - * - * *
        * A representation of the Cloud IAM policy set on a Google Cloud resource.
        * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -645,8 +352,6 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
       public static final int ORG_POLICY_FIELD_NUMBER = 6;
       private java.util.List orgPolicy_;
       /**
    -   *
    -   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -661,8 +366,6 @@ public java.util.List getOrgPolicyList() {
         return orgPolicy_;
       }
       /**
    -   *
    -   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -673,13 +376,11 @@ public java.util.List getOrgPolicyList() {
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
       @java.lang.Override
    -  public java.util.List
    +  public java.util.List 
           getOrgPolicyOrBuilderList() {
         return orgPolicy_;
       }
       /**
    -   *
    -   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -694,8 +395,6 @@ public int getOrgPolicyCount() {
         return orgPolicy_.size();
       }
       /**
    -   *
    -   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -710,8 +409,6 @@ public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) {
         return orgPolicy_.get(index);
       }
       /**
    -   *
    -   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -722,21 +419,19 @@ public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) {
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
       @java.lang.Override
    -  public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int index) {
    +  public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
    +      int index) {
         return orgPolicy_.get(index);
       }
     
       public static final int ACCESS_POLICY_FIELD_NUMBER = 7;
       /**
    -   *
    -   *
        * 
        * Please also refer to the [access policy user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; - * * @return Whether the accessPolicy field is set. */ @java.lang.Override @@ -744,27 +439,22 @@ public boolean hasAccessPolicy() { return accessContextPolicyCase_ == 7; } /** - * - * *
        * Please also refer to the [access policy user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; - * * @return The accessPolicy. */ @java.lang.Override public com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy() { if (accessContextPolicyCase_ == 7) { - return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_; + return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_; } return com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance(); } /** - * - * *
        * Please also refer to the [access policy user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -773,25 +463,21 @@ public com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy(
        * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
        */
       @java.lang.Override
    -  public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder
    -      getAccessPolicyOrBuilder() {
    +  public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAccessPolicyOrBuilder() {
         if (accessContextPolicyCase_ == 7) {
    -      return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_;
    +       return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_;
         }
         return com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance();
       }
     
       public static final int ACCESS_LEVEL_FIELD_NUMBER = 8;
       /**
    -   *
    -   *
        * 
        * Please also refer to the [access level user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; - * * @return Whether the accessLevel field is set. */ @java.lang.Override @@ -799,27 +485,22 @@ public boolean hasAccessLevel() { return accessContextPolicyCase_ == 8; } /** - * - * *
        * Please also refer to the [access level user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; - * * @return The accessLevel. */ @java.lang.Override public com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel() { if (accessContextPolicyCase_ == 8) { - return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_; + return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_; } return com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance(); } /** - * - * *
        * Please also refer to the [access level user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -828,25 +509,21 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel()
        * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
        */
       @java.lang.Override
    -  public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder
    -      getAccessLevelOrBuilder() {
    +  public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAccessLevelOrBuilder() {
         if (accessContextPolicyCase_ == 8) {
    -      return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_;
    +       return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_;
         }
         return com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance();
       }
     
       public static final int SERVICE_PERIMETER_FIELD_NUMBER = 9;
       /**
    -   *
    -   *
        * 
        * Please also refer to the [service perimeter user
        * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
        * 
    * * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; - * * @return Whether the servicePerimeter field is set. */ @java.lang.Override @@ -854,27 +531,22 @@ public boolean hasServicePerimeter() { return accessContextPolicyCase_ == 9; } /** - * - * *
        * Please also refer to the [service perimeter user
        * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
        * 
    * * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; - * * @return The servicePerimeter. */ @java.lang.Override public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter() { if (accessContextPolicyCase_ == 9) { - return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_; + return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_; } return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance(); } /** - * - * *
        * Please also refer to the [service perimeter user
        * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -883,10 +555,9 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePe
        * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
        */
       @java.lang.Override
    -  public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder
    -      getServicePerimeterOrBuilder() {
    +  public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder getServicePerimeterOrBuilder() {
         if (accessContextPolicyCase_ == 9) {
    -      return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_;
    +       return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_;
         }
         return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
       }
    @@ -894,8 +565,6 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePe
       public static final int OS_INVENTORY_FIELD_NUMBER = 12;
       private com.google.cloud.osconfig.v1.Inventory osInventory_;
       /**
    -   *
    -   *
        * 
        * A representation of runtime OS Inventory information. See [this
        * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -903,7 +572,6 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePe
        * 
    * * .google.cloud.osconfig.v1.Inventory os_inventory = 12; - * * @return Whether the osInventory field is set. */ @java.lang.Override @@ -911,8 +579,6 @@ public boolean hasOsInventory() { return osInventory_ != null; } /** - * - * *
        * A representation of runtime OS Inventory information. See [this
        * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -920,18 +586,13 @@ public boolean hasOsInventory() {
        * 
    * * .google.cloud.osconfig.v1.Inventory os_inventory = 12; - * * @return The osInventory. */ @java.lang.Override public com.google.cloud.osconfig.v1.Inventory getOsInventory() { - return osInventory_ == null - ? com.google.cloud.osconfig.v1.Inventory.getDefaultInstance() - : osInventory_; + return osInventory_ == null ? com.google.cloud.osconfig.v1.Inventory.getDefaultInstance() : osInventory_; } /** - * - * *
        * A representation of runtime OS Inventory information. See [this
        * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -948,8 +609,6 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
       public static final int RELATED_ASSETS_FIELD_NUMBER = 13;
       private com.google.cloud.asset.v1.RelatedAssets relatedAssets_;
       /**
    -   *
    -   *
        * 
        * DEPRECATED. This field only presents for the purpose of
        * backward-compatibility. The server will never generate responses with this
    @@ -959,19 +618,15 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
        * 
    * * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true]; - * - * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. See - * google/cloud/asset/v1/assets.proto;l=166 + * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. + * See google/cloud/asset/v1/assets.proto;l=166 * @return Whether the relatedAssets field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasRelatedAssets() { + @java.lang.Deprecated public boolean hasRelatedAssets() { return relatedAssets_ != null; } /** - * - * *
        * DEPRECATED. This field only presents for the purpose of
        * backward-compatibility. The server will never generate responses with this
    @@ -981,21 +636,15 @@ public boolean hasRelatedAssets() {
        * 
    * * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true]; - * - * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. See - * google/cloud/asset/v1/assets.proto;l=166 + * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. + * See google/cloud/asset/v1/assets.proto;l=166 * @return The relatedAssets. */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.asset.v1.RelatedAssets getRelatedAssets() { - return relatedAssets_ == null - ? com.google.cloud.asset.v1.RelatedAssets.getDefaultInstance() - : relatedAssets_; + @java.lang.Deprecated public com.google.cloud.asset.v1.RelatedAssets getRelatedAssets() { + return relatedAssets_ == null ? com.google.cloud.asset.v1.RelatedAssets.getDefaultInstance() : relatedAssets_; } /** - * - * *
        * DEPRECATED. This field only presents for the purpose of
        * backward-compatibility. The server will never generate responses with this
    @@ -1007,22 +656,18 @@ public com.google.cloud.asset.v1.RelatedAssets getRelatedAssets() {
        * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
        */
       @java.lang.Override
    -  @java.lang.Deprecated
    -  public com.google.cloud.asset.v1.RelatedAssetsOrBuilder getRelatedAssetsOrBuilder() {
    +  @java.lang.Deprecated public com.google.cloud.asset.v1.RelatedAssetsOrBuilder getRelatedAssetsOrBuilder() {
         return getRelatedAssets();
       }
     
       public static final int RELATED_ASSET_FIELD_NUMBER = 15;
       private com.google.cloud.asset.v1.RelatedAsset relatedAsset_;
       /**
    -   *
    -   *
        * 
        * One related asset of the current asset.
        * 
    * * .google.cloud.asset.v1.RelatedAsset related_asset = 15; - * * @return Whether the relatedAsset field is set. */ @java.lang.Override @@ -1030,25 +675,18 @@ public boolean hasRelatedAsset() { return relatedAsset_ != null; } /** - * - * *
        * One related asset of the current asset.
        * 
    * * .google.cloud.asset.v1.RelatedAsset related_asset = 15; - * * @return The relatedAsset. */ @java.lang.Override public com.google.cloud.asset.v1.RelatedAsset getRelatedAsset() { - return relatedAsset_ == null - ? com.google.cloud.asset.v1.RelatedAsset.getDefaultInstance() - : relatedAsset_; + return relatedAsset_ == null ? com.google.cloud.asset.v1.RelatedAsset.getDefaultInstance() : relatedAsset_; } /** - * - * *
        * One related asset of the current asset.
        * 
    @@ -1063,8 +701,6 @@ public com.google.cloud.asset.v1.RelatedAssetOrBuilder getRelatedAssetOrBuilder( public static final int ANCESTORS_FIELD_NUMBER = 10; private com.google.protobuf.LazyStringList ancestors_; /** - * - * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1076,15 +712,13 @@ public com.google.cloud.asset.v1.RelatedAssetOrBuilder getRelatedAssetOrBuilder(
        * 
    * * repeated string ancestors = 10; - * * @return A list containing the ancestors. */ - public com.google.protobuf.ProtocolStringList getAncestorsList() { + public com.google.protobuf.ProtocolStringList + getAncestorsList() { return ancestors_; } /** - * - * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1096,15 +730,12 @@ public com.google.protobuf.ProtocolStringList getAncestorsList() {
        * 
    * * repeated string ancestors = 10; - * * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); } /** - * - * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1116,7 +747,6 @@ public int getAncestorsCount() {
        * 
    * * repeated string ancestors = 10; - * * @param index The index of the element to return. * @return The ancestors at the given index. */ @@ -1124,8 +754,6 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** - * - * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1137,16 +765,15 @@ public java.lang.String getAncestors(int index) {
        * 
    * * repeated string ancestors = 10; - * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - public com.google.protobuf.ByteString getAncestorsBytes(int index) { + public com.google.protobuf.ByteString + getAncestorsBytes(int index) { return ancestors_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1158,7 +785,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1175,16 +803,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(6, orgPolicy_.get(i)); } if (accessContextPolicyCase_ == 7) { - output.writeMessage( - 7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); + output.writeMessage(7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); } if (accessContextPolicyCase_ == 8) { - output.writeMessage( - 8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); + output.writeMessage(8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); } if (accessContextPolicyCase_ == 9) { - output.writeMessage( - 9, (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); + output.writeMessage(9, (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); } for (int i = 0; i < ancestors_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, ancestors_.getRaw(i)); @@ -1201,7 +826,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (relatedAsset_ != null) { output.writeMessage(15, getRelatedAsset()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1217,29 +842,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, assetType_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResource()); } if (iamPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIamPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getIamPolicy()); } for (int i = 0; i < orgPolicy_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, orgPolicy_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, orgPolicy_.get(i)); } if (accessContextPolicyCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); } if (accessContextPolicyCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); } if (accessContextPolicyCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, - (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); } { int dataSize = 0; @@ -1250,18 +874,22 @@ public int getSerializedSize() { size += 1 * getAncestorsList().size(); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getUpdateTime()); } if (osInventory_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getOsInventory()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getOsInventory()); } if (relatedAssets_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getRelatedAssets()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getRelatedAssets()); } if (relatedAsset_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getRelatedAsset()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getRelatedAsset()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1269,7 +897,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.Asset)) { return super.equals(obj); @@ -1278,47 +906,60 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!getName().equals(other.getName())) return false; - if (!getAssetType().equals(other.getAssetType())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getAssetType() + .equals(other.getAssetType())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } if (hasIamPolicy() != other.hasIamPolicy()) return false; if (hasIamPolicy()) { - if (!getIamPolicy().equals(other.getIamPolicy())) return false; + if (!getIamPolicy() + .equals(other.getIamPolicy())) return false; } - if (!getOrgPolicyList().equals(other.getOrgPolicyList())) return false; + if (!getOrgPolicyList() + .equals(other.getOrgPolicyList())) return false; if (hasOsInventory() != other.hasOsInventory()) return false; if (hasOsInventory()) { - if (!getOsInventory().equals(other.getOsInventory())) return false; + if (!getOsInventory() + .equals(other.getOsInventory())) return false; } if (hasRelatedAssets() != other.hasRelatedAssets()) return false; if (hasRelatedAssets()) { - if (!getRelatedAssets().equals(other.getRelatedAssets())) return false; + if (!getRelatedAssets() + .equals(other.getRelatedAssets())) return false; } if (hasRelatedAsset() != other.hasRelatedAsset()) return false; if (hasRelatedAsset()) { - if (!getRelatedAsset().equals(other.getRelatedAsset())) return false; + if (!getRelatedAsset() + .equals(other.getRelatedAsset())) return false; } - if (!getAncestorsList().equals(other.getAncestorsList())) return false; + if (!getAncestorsList() + .equals(other.getAncestorsList())) return false; if (!getAccessContextPolicyCase().equals(other.getAccessContextPolicyCase())) return false; switch (accessContextPolicyCase_) { case 7: - if (!getAccessPolicy().equals(other.getAccessPolicy())) return false; + if (!getAccessPolicy() + .equals(other.getAccessPolicy())) return false; break; case 8: - if (!getAccessLevel().equals(other.getAccessLevel())) return false; + if (!getAccessLevel() + .equals(other.getAccessLevel())) return false; break; case 9: - if (!getServicePerimeter().equals(other.getServicePerimeter())) return false; + if (!getServicePerimeter() + .equals(other.getServicePerimeter())) return false; break; case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1381,108 +1022,102 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.Asset parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.Asset parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.Asset parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.Asset parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.asset.v1.Asset parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.Asset 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.asset.v1.Asset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.Asset parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.Asset parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.Asset parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.Asset parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.Asset parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.Asset parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.Asset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.Asset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * An asset in Google Cloud. An asset can be any resource in the Google Cloud
        * [resource
    @@ -1497,40 +1132,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        * Protobuf type {@code google.cloud.asset.v1.Asset}
        */
    -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    -      implements
    +  public static final class Builder extends
    +      com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.Asset)
           com.google.cloud.asset.v1.AssetOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_Asset_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor
    +        getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_Asset_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_Asset_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_Asset_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
                   com.google.cloud.asset.v1.Asset.class, com.google.cloud.asset.v1.Asset.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.Asset.newBuilder()
         private Builder() {
    -      maybeForceBuilderInitialization();
    +
         }
     
    -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(
    +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
     
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getOrgPolicyFieldBuilder();
    -      }
         }
    -
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -1558,10 +1186,20 @@ public Builder clear() {
           }
           if (orgPolicyBuilder_ == null) {
             orgPolicy_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        orgPolicy_ = null;
             orgPolicyBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
    +      if (accessPolicyBuilder_ != null) {
    +        accessPolicyBuilder_.clear();
    +      }
    +      if (accessLevelBuilder_ != null) {
    +        accessLevelBuilder_.clear();
    +      }
    +      if (servicePerimeterBuilder_ != null) {
    +        servicePerimeterBuilder_.clear();
    +      }
           if (osInventoryBuilder_ == null) {
             osInventory_ = null;
           } else {
    @@ -1588,9 +1226,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_Asset_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor
    +        getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_Asset_descriptor;
         }
     
         @java.lang.Override
    @@ -1687,39 +1325,38 @@ public com.google.cloud.asset.v1.Asset buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    -
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.Asset) {
    -        return mergeFrom((com.google.cloud.asset.v1.Asset) other);
    +        return mergeFrom((com.google.cloud.asset.v1.Asset)other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -1763,10 +1400,9 @@ public Builder mergeFrom(com.google.cloud.asset.v1.Asset other) {
                 orgPolicyBuilder_ = null;
                 orgPolicy_ = other.orgPolicy_;
                 bitField0_ = (bitField0_ & ~0x00000001);
    -            orgPolicyBuilder_ =
    -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
    -                    ? getOrgPolicyFieldBuilder()
    -                    : null;
    +            orgPolicyBuilder_ = 
    +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
    +                 getOrgPolicyFieldBuilder() : null;
               } else {
                 orgPolicyBuilder_.addAllMessages(other.orgPolicy_);
               }
    @@ -1792,27 +1428,23 @@ public Builder mergeFrom(com.google.cloud.asset.v1.Asset other) {
             onChanged();
           }
           switch (other.getAccessContextPolicyCase()) {
    -        case ACCESS_POLICY:
    -          {
    -            mergeAccessPolicy(other.getAccessPolicy());
    -            break;
    -          }
    -        case ACCESS_LEVEL:
    -          {
    -            mergeAccessLevel(other.getAccessLevel());
    -            break;
    -          }
    -        case SERVICE_PERIMETER:
    -          {
    -            mergeServicePerimeter(other.getServicePerimeter());
    -            break;
    -          }
    -        case ACCESSCONTEXTPOLICY_NOT_SET:
    -          {
    -            break;
    -          }
    +        case ACCESS_POLICY: {
    +          mergeAccessPolicy(other.getAccessPolicy());
    +          break;
    +        }
    +        case ACCESS_LEVEL: {
    +          mergeAccessLevel(other.getAccessLevel());
    +          break;
    +        }
    +        case SERVICE_PERIMETER: {
    +          mergeServicePerimeter(other.getServicePerimeter());
    +          break;
    +        }
    +        case ACCESSCONTEXTPOLICY_NOT_SET: {
    +          break;
    +        }
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -1827,25 +1459,130 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.Asset parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10: {
    +              name_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 10
    +            case 18: {
    +              assetType_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 18
    +            case 26: {
    +              input.readMessage(
    +                  getResourceFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 26
    +            case 34: {
    +              input.readMessage(
    +                  getIamPolicyFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 34
    +            case 50: {
    +              com.google.cloud.orgpolicy.v1.Policy m =
    +                  input.readMessage(
    +                      com.google.cloud.orgpolicy.v1.Policy.parser(),
    +                      extensionRegistry);
    +              if (orgPolicyBuilder_ == null) {
    +                ensureOrgPolicyIsMutable();
    +                orgPolicy_.add(m);
    +              } else {
    +                orgPolicyBuilder_.addMessage(m);
    +              }
    +              break;
    +            } // case 50
    +            case 58: {
    +              input.readMessage(
    +                  getAccessPolicyFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +              accessContextPolicyCase_ = 7;
    +              break;
    +            } // case 58
    +            case 66: {
    +              input.readMessage(
    +                  getAccessLevelFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +              accessContextPolicyCase_ = 8;
    +              break;
    +            } // case 66
    +            case 74: {
    +              input.readMessage(
    +                  getServicePerimeterFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +              accessContextPolicyCase_ = 9;
    +              break;
    +            } // case 74
    +            case 82: {
    +              java.lang.String s = input.readStringRequireUtf8();
    +              ensureAncestorsIsMutable();
    +              ancestors_.add(s);
    +              break;
    +            } // case 82
    +            case 90: {
    +              input.readMessage(
    +                  getUpdateTimeFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 90
    +            case 98: {
    +              input.readMessage(
    +                  getOsInventoryFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 98
    +            case 106: {
    +              input.readMessage(
    +                  getRelatedAssetsFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 106
    +            case 122: {
    +              input.readMessage(
    +                  getRelatedAssetFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 122
    +            default: {
    +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                done = true; // was an endgroup tag
    +              }
    +              break;
    +            } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1.Asset) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
    -
         private int accessContextPolicyCase_ = 0;
         private java.lang.Object accessContextPolicy_;
    -
    -    public AccessContextPolicyCase getAccessContextPolicyCase() {
    -      return AccessContextPolicyCase.forNumber(accessContextPolicyCase_);
    +    public AccessContextPolicyCase
    +        getAccessContextPolicyCase() {
    +      return AccessContextPolicyCase.forNumber(
    +          accessContextPolicyCase_);
         }
     
         public Builder clearAccessContextPolicy() {
    @@ -1859,49 +1596,36 @@ public Builder clearAccessContextPolicy() {
     
         private com.google.protobuf.Timestamp updateTime_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp,
    -            com.google.protobuf.Timestamp.Builder,
    -            com.google.protobuf.TimestampOrBuilder>
    -        updateTimeBuilder_;
    +        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_;
         /**
    -     *
    -     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
          * 
    * * .google.protobuf.Timestamp update_time = 11; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
          * 
    * * .google.protobuf.Timestamp update_time = 11; - * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1923,8 +1647,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1932,7 +1654,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
          *
          * .google.protobuf.Timestamp update_time = 11;
          */
    -    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
    +    public Builder setUpdateTime(
    +        com.google.protobuf.Timestamp.Builder builderForValue) {
           if (updateTimeBuilder_ == null) {
             updateTime_ = builderForValue.build();
             onChanged();
    @@ -1943,8 +1666,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1956,7 +1677,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
           if (updateTimeBuilder_ == null) {
             if (updateTime_ != null) {
               updateTime_ =
    -              com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
    +            com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
             } else {
               updateTime_ = value;
             }
    @@ -1968,8 +1689,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1989,8 +1708,6 @@ public Builder clearUpdateTime() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1999,13 +1716,11 @@ public Builder clearUpdateTime() {
          * .google.protobuf.Timestamp update_time = 11;
          */
         public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
    -
    +      
           onChanged();
           return getUpdateTimeFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -2017,14 +1732,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
           if (updateTimeBuilder_ != null) {
             return updateTimeBuilder_.getMessageOrBuilder();
           } else {
    -        return updateTime_ == null
    -            ? com.google.protobuf.Timestamp.getDefaultInstance()
    -            : updateTime_;
    +        return updateTime_ == null ?
    +            com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
           }
         }
         /**
    -     *
    -     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -2033,17 +1745,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
          * .google.protobuf.Timestamp update_time = 11;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp,
    -            com.google.protobuf.Timestamp.Builder,
    -            com.google.protobuf.TimestampOrBuilder>
    +        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
             getUpdateTimeFieldBuilder() {
           if (updateTimeBuilder_ == null) {
    -        updateTimeBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.protobuf.Timestamp,
    -                com.google.protobuf.Timestamp.Builder,
    -                com.google.protobuf.TimestampOrBuilder>(
    -                getUpdateTime(), getParentForChildren(), isClean());
    +        updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    +                getUpdateTime(),
    +                getParentForChildren(),
    +                isClean());
             updateTime_ = null;
           }
           return updateTimeBuilder_;
    @@ -2051,8 +1760,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
     
         private java.lang.Object name_ = "";
         /**
    -     *
    -     *
          * 
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -2062,13 +1769,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
          * 
    * * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2077,8 +1784,6 @@ public java.lang.String getName() { } } /** - * - * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -2088,14 +1793,15 @@ public java.lang.String getName() {
          * 
    * * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2103,8 +1809,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -2114,22 +1818,20 @@ public com.google.protobuf.ByteString getNameBytes() {
          * 
    * * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -2139,18 +1841,15 @@ public Builder setName(java.lang.String value) {
          * 
    * * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -2160,16 +1859,16 @@ public Builder clearName() {
          * 
    * * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2177,8 +1876,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object assetType_ = ""; /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -2187,13 +1884,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
          * 
    * * string asset_type = 2; - * * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; @@ -2202,8 +1899,6 @@ public java.lang.String getAssetType() { } } /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -2212,14 +1907,15 @@ public java.lang.String getAssetType() {
          * 
    * * string asset_type = 2; - * * @return The bytes for assetType. */ - public com.google.protobuf.ByteString getAssetTypeBytes() { + public com.google.protobuf.ByteString + getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetType_ = b; return b; } else { @@ -2227,8 +1923,6 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { } } /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -2237,22 +1931,20 @@ public com.google.protobuf.ByteString getAssetTypeBytes() {
          * 
    * * string asset_type = 2; - * * @param value The assetType to set. * @return This builder for chaining. */ - public Builder setAssetType(java.lang.String value) { + public Builder setAssetType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + assetType_ = value; onChanged(); return this; } /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -2261,18 +1953,15 @@ public Builder setAssetType(java.lang.String value) {
          * 
    * * string asset_type = 2; - * * @return This builder for chaining. */ public Builder clearAssetType() { - + assetType_ = getDefaultInstance().getAssetType(); onChanged(); return this; } /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -2281,16 +1970,16 @@ public Builder clearAssetType() {
          * 
    * * string asset_type = 2; - * * @param value The bytes for assetType to set. * @return This builder for chaining. */ - public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { + public Builder setAssetTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; onChanged(); return this; @@ -2298,47 +1987,34 @@ public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { private com.google.cloud.asset.v1.Resource resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.Resource, - com.google.cloud.asset.v1.Resource.Builder, - com.google.cloud.asset.v1.ResourceOrBuilder> - resourceBuilder_; + com.google.cloud.asset.v1.Resource, com.google.cloud.asset.v1.Resource.Builder, com.google.cloud.asset.v1.ResourceOrBuilder> resourceBuilder_; /** - * - * *
          * A representation of the resource.
          * 
    * * .google.cloud.asset.v1.Resource resource = 3; - * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** - * - * *
          * A representation of the resource.
          * 
    * * .google.cloud.asset.v1.Resource resource = 3; - * * @return The resource. */ public com.google.cloud.asset.v1.Resource getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.cloud.asset.v1.Resource.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.asset.v1.Resource.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
          * A representation of the resource.
          * 
    @@ -2359,15 +2035,14 @@ public Builder setResource(com.google.cloud.asset.v1.Resource value) { return this; } /** - * - * *
          * A representation of the resource.
          * 
    * * .google.cloud.asset.v1.Resource resource = 3; */ - public Builder setResource(com.google.cloud.asset.v1.Resource.Builder builderForValue) { + public Builder setResource( + com.google.cloud.asset.v1.Resource.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -2378,8 +2053,6 @@ public Builder setResource(com.google.cloud.asset.v1.Resource.Builder builderFor return this; } /** - * - * *
          * A representation of the resource.
          * 
    @@ -2390,9 +2063,7 @@ public Builder mergeResource(com.google.cloud.asset.v1.Resource value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.asset.v1.Resource.newBuilder(resource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.Resource.newBuilder(resource_).mergeFrom(value).buildPartial(); } else { resource_ = value; } @@ -2404,8 +2075,6 @@ public Builder mergeResource(com.google.cloud.asset.v1.Resource value) { return this; } /** - * - * *
          * A representation of the resource.
          * 
    @@ -2424,8 +2093,6 @@ public Builder clearResource() { return this; } /** - * - * *
          * A representation of the resource.
          * 
    @@ -2433,13 +2100,11 @@ public Builder clearResource() { * .google.cloud.asset.v1.Resource resource = 3; */ public com.google.cloud.asset.v1.Resource.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** - * - * *
          * A representation of the resource.
          * 
    @@ -2450,14 +2115,11 @@ public com.google.cloud.asset.v1.ResourceOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null - ? com.google.cloud.asset.v1.Resource.getDefaultInstance() - : resource_; + return resource_ == null ? + com.google.cloud.asset.v1.Resource.getDefaultInstance() : resource_; } } /** - * - * *
          * A representation of the resource.
          * 
    @@ -2465,17 +2127,14 @@ public com.google.cloud.asset.v1.ResourceOrBuilder getResourceOrBuilder() { * .google.cloud.asset.v1.Resource resource = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.Resource, - com.google.cloud.asset.v1.Resource.Builder, - com.google.cloud.asset.v1.ResourceOrBuilder> + com.google.cloud.asset.v1.Resource, com.google.cloud.asset.v1.Resource.Builder, com.google.cloud.asset.v1.ResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.Resource, - com.google.cloud.asset.v1.Resource.Builder, - com.google.cloud.asset.v1.ResourceOrBuilder>( - getResource(), getParentForChildren(), isClean()); + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.Resource, com.google.cloud.asset.v1.Resource.Builder, com.google.cloud.asset.v1.ResourceOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); resource_ = null; } return resourceBuilder_; @@ -2483,13 +2142,8 @@ public com.google.cloud.asset.v1.ResourceOrBuilder getResourceOrBuilder() { private com.google.iam.v1.Policy iamPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, - com.google.iam.v1.Policy.Builder, - com.google.iam.v1.PolicyOrBuilder> - iamPolicyBuilder_; + com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> iamPolicyBuilder_; /** - * - * *
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2503,15 +2157,12 @@ public com.google.cloud.asset.v1.ResourceOrBuilder getResourceOrBuilder() {
          * 
    * * .google.iam.v1.Policy iam_policy = 4; - * * @return Whether the iamPolicy field is set. */ public boolean hasIamPolicy() { return iamPolicyBuilder_ != null || iamPolicy_ != null; } /** - * - * *
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2525,7 +2176,6 @@ public boolean hasIamPolicy() {
          * 
    * * .google.iam.v1.Policy iam_policy = 4; - * * @return The iamPolicy. */ public com.google.iam.v1.Policy getIamPolicy() { @@ -2535,9 +2185,7 @@ public com.google.iam.v1.Policy getIamPolicy() { return iamPolicyBuilder_.getMessage(); } } - /** - * - * + /** *
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2566,8 +2214,6 @@ public Builder setIamPolicy(com.google.iam.v1.Policy value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2582,7 +2228,8 @@ public Builder setIamPolicy(com.google.iam.v1.Policy value) {
          *
          * .google.iam.v1.Policy iam_policy = 4;
          */
    -    public Builder setIamPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
    +    public Builder setIamPolicy(
    +        com.google.iam.v1.Policy.Builder builderForValue) {
           if (iamPolicyBuilder_ == null) {
             iamPolicy_ = builderForValue.build();
             onChanged();
    @@ -2593,8 +2240,6 @@ public Builder setIamPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2613,7 +2258,7 @@ public Builder mergeIamPolicy(com.google.iam.v1.Policy value) {
           if (iamPolicyBuilder_ == null) {
             if (iamPolicy_ != null) {
               iamPolicy_ =
    -              com.google.iam.v1.Policy.newBuilder(iamPolicy_).mergeFrom(value).buildPartial();
    +            com.google.iam.v1.Policy.newBuilder(iamPolicy_).mergeFrom(value).buildPartial();
             } else {
               iamPolicy_ = value;
             }
    @@ -2625,8 +2270,6 @@ public Builder mergeIamPolicy(com.google.iam.v1.Policy value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2653,8 +2296,6 @@ public Builder clearIamPolicy() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2670,13 +2311,11 @@ public Builder clearIamPolicy() {
          * .google.iam.v1.Policy iam_policy = 4;
          */
         public com.google.iam.v1.Policy.Builder getIamPolicyBuilder() {
    -
    +      
           onChanged();
           return getIamPolicyFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2695,12 +2334,11 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
           if (iamPolicyBuilder_ != null) {
             return iamPolicyBuilder_.getMessageOrBuilder();
           } else {
    -        return iamPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_;
    +        return iamPolicy_ == null ?
    +            com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_;
           }
         }
         /**
    -     *
    -     *
          * 
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2716,41 +2354,32 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
          * .google.iam.v1.Policy iam_policy = 4;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.iam.v1.Policy,
    -            com.google.iam.v1.Policy.Builder,
    -            com.google.iam.v1.PolicyOrBuilder>
    +        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> 
             getIamPolicyFieldBuilder() {
           if (iamPolicyBuilder_ == null) {
    -        iamPolicyBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.iam.v1.Policy,
    -                com.google.iam.v1.Policy.Builder,
    -                com.google.iam.v1.PolicyOrBuilder>(
    -                getIamPolicy(), getParentForChildren(), isClean());
    +        iamPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>(
    +                getIamPolicy(),
    +                getParentForChildren(),
    +                isClean());
             iamPolicy_ = null;
           }
           return iamPolicyBuilder_;
         }
     
         private java.util.List orgPolicy_ =
    -        java.util.Collections.emptyList();
    -
    +      java.util.Collections.emptyList();
         private void ensureOrgPolicyIsMutable() {
           if (!((bitField0_ & 0x00000001) != 0)) {
             orgPolicy_ = new java.util.ArrayList(orgPolicy_);
             bitField0_ |= 0x00000001;
    -      }
    +       }
         }
     
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.orgpolicy.v1.Policy,
    -            com.google.cloud.orgpolicy.v1.Policy.Builder,
    -            com.google.cloud.orgpolicy.v1.PolicyOrBuilder>
    -        orgPolicyBuilder_;
    +        com.google.cloud.orgpolicy.v1.Policy, com.google.cloud.orgpolicy.v1.Policy.Builder, com.google.cloud.orgpolicy.v1.PolicyOrBuilder> orgPolicyBuilder_;
     
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2768,8 +2397,6 @@ public java.util.List getOrgPolicyList() {
           }
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2787,8 +2414,6 @@ public int getOrgPolicyCount() {
           }
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2806,8 +2431,6 @@ public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) {
           }
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2817,7 +2440,8 @@ public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) {
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public Builder setOrgPolicy(int index, com.google.cloud.orgpolicy.v1.Policy value) {
    +    public Builder setOrgPolicy(
    +        int index, com.google.cloud.orgpolicy.v1.Policy value) {
           if (orgPolicyBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -2831,8 +2455,6 @@ public Builder setOrgPolicy(int index, com.google.cloud.orgpolicy.v1.Policy valu
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2854,8 +2476,6 @@ public Builder setOrgPolicy(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2879,8 +2499,6 @@ public Builder addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2890,7 +2508,8 @@ public Builder addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy value) {
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public Builder addOrgPolicy(int index, com.google.cloud.orgpolicy.v1.Policy value) {
    +    public Builder addOrgPolicy(
    +        int index, com.google.cloud.orgpolicy.v1.Policy value) {
           if (orgPolicyBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -2904,8 +2523,6 @@ public Builder addOrgPolicy(int index, com.google.cloud.orgpolicy.v1.Policy valu
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2915,7 +2532,8 @@ public Builder addOrgPolicy(int index, com.google.cloud.orgpolicy.v1.Policy valu
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public Builder addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy.Builder builderForValue) {
    +    public Builder addOrgPolicy(
    +        com.google.cloud.orgpolicy.v1.Policy.Builder builderForValue) {
           if (orgPolicyBuilder_ == null) {
             ensureOrgPolicyIsMutable();
             orgPolicy_.add(builderForValue.build());
    @@ -2926,8 +2544,6 @@ public Builder addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy.Builder builder
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2949,8 +2565,6 @@ public Builder addOrgPolicy(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2964,7 +2578,8 @@ public Builder addAllOrgPolicy(
             java.lang.Iterable values) {
           if (orgPolicyBuilder_ == null) {
             ensureOrgPolicyIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, orgPolicy_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    +            values, orgPolicy_);
             onChanged();
           } else {
             orgPolicyBuilder_.addAllMessages(values);
    @@ -2972,8 +2587,6 @@ public Builder addAllOrgPolicy(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2994,8 +2607,6 @@ public Builder clearOrgPolicy() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -3016,8 +2627,6 @@ public Builder removeOrgPolicy(int index) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -3027,12 +2636,11 @@ public Builder removeOrgPolicy(int index) {
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public com.google.cloud.orgpolicy.v1.Policy.Builder getOrgPolicyBuilder(int index) {
    +    public com.google.cloud.orgpolicy.v1.Policy.Builder getOrgPolicyBuilder(
    +        int index) {
           return getOrgPolicyFieldBuilder().getBuilder(index);
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -3042,16 +2650,14 @@ public com.google.cloud.orgpolicy.v1.Policy.Builder getOrgPolicyBuilder(int inde
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int index) {
    +    public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
    +        int index) {
           if (orgPolicyBuilder_ == null) {
    -        return orgPolicy_.get(index);
    -      } else {
    +        return orgPolicy_.get(index);  } else {
             return orgPolicyBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -3061,8 +2667,8 @@ public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int i
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public java.util.List
    -        getOrgPolicyOrBuilderList() {
    +    public java.util.List 
    +         getOrgPolicyOrBuilderList() {
           if (orgPolicyBuilder_ != null) {
             return orgPolicyBuilder_.getMessageOrBuilderList();
           } else {
    @@ -3070,8 +2676,6 @@ public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int i
           }
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -3082,12 +2686,10 @@ public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int i
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
         public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder() {
    -      return getOrgPolicyFieldBuilder()
    -          .addBuilder(com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance());
    +      return getOrgPolicyFieldBuilder().addBuilder(
    +          com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -3097,13 +2699,12 @@ public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder() {
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder(int index) {
    -      return getOrgPolicyFieldBuilder()
    -          .addBuilder(index, com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance());
    +    public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder(
    +        int index) {
    +      return getOrgPolicyFieldBuilder().addBuilder(
    +          index, com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -3113,42 +2714,34 @@ public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder(int inde
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public java.util.List getOrgPolicyBuilderList() {
    +    public java.util.List 
    +         getOrgPolicyBuilderList() {
           return getOrgPolicyFieldBuilder().getBuilderList();
         }
    -
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.orgpolicy.v1.Policy,
    -            com.google.cloud.orgpolicy.v1.Policy.Builder,
    -            com.google.cloud.orgpolicy.v1.PolicyOrBuilder>
    +        com.google.cloud.orgpolicy.v1.Policy, com.google.cloud.orgpolicy.v1.Policy.Builder, com.google.cloud.orgpolicy.v1.PolicyOrBuilder> 
             getOrgPolicyFieldBuilder() {
           if (orgPolicyBuilder_ == null) {
    -        orgPolicyBuilder_ =
    -            new com.google.protobuf.RepeatedFieldBuilderV3<
    -                com.google.cloud.orgpolicy.v1.Policy,
    -                com.google.cloud.orgpolicy.v1.Policy.Builder,
    -                com.google.cloud.orgpolicy.v1.PolicyOrBuilder>(
    -                orgPolicy_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
    +        orgPolicyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    +            com.google.cloud.orgpolicy.v1.Policy, com.google.cloud.orgpolicy.v1.Policy.Builder, com.google.cloud.orgpolicy.v1.PolicyOrBuilder>(
    +                orgPolicy_,
    +                ((bitField0_ & 0x00000001) != 0),
    +                getParentForChildren(),
    +                isClean());
             orgPolicy_ = null;
           }
           return orgPolicyBuilder_;
         }
     
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.AccessPolicy,
    -            com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder,
    -            com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>
    -        accessPolicyBuilder_;
    +        com.google.identity.accesscontextmanager.v1.AccessPolicy, com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder, com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder> accessPolicyBuilder_;
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
          * 
    * * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; - * * @return Whether the accessPolicy field is set. */ @java.lang.Override @@ -3156,15 +2749,12 @@ public boolean hasAccessPolicy() { return accessContextPolicyCase_ == 7; } /** - * - * *
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
          * 
    * * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; - * * @return The accessPolicy. */ @java.lang.Override @@ -3182,8 +2772,6 @@ public com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy( } } /** - * - * *
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -3205,8 +2793,6 @@ public Builder setAccessPolicy(com.google.identity.accesscontextmanager.v1.Acces
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -3226,8 +2812,6 @@ public Builder setAccessPolicy(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -3235,18 +2819,12 @@ public Builder setAccessPolicy(
          *
          * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
          */
    -    public Builder mergeAccessPolicy(
    -        com.google.identity.accesscontextmanager.v1.AccessPolicy value) {
    +    public Builder mergeAccessPolicy(com.google.identity.accesscontextmanager.v1.AccessPolicy value) {
           if (accessPolicyBuilder_ == null) {
    -        if (accessContextPolicyCase_ == 7
    -            && accessContextPolicy_
    -                != com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance()) {
    -          accessContextPolicy_ =
    -              com.google.identity.accesscontextmanager.v1.AccessPolicy.newBuilder(
    -                      (com.google.identity.accesscontextmanager.v1.AccessPolicy)
    -                          accessContextPolicy_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +        if (accessContextPolicyCase_ == 7 &&
    +            accessContextPolicy_ != com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance()) {
    +          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.AccessPolicy.newBuilder((com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_)
    +              .mergeFrom(value).buildPartial();
             } else {
               accessContextPolicy_ = value;
             }
    @@ -3262,8 +2840,6 @@ public Builder mergeAccessPolicy(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -3288,8 +2864,6 @@ public Builder clearAccessPolicy() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -3297,13 +2871,10 @@ public Builder clearAccessPolicy() {
          *
          * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
          */
    -    public com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder
    -        getAccessPolicyBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder getAccessPolicyBuilder() {
           return getAccessPolicyFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -3312,8 +2883,7 @@ public Builder clearAccessPolicy() {
          * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
          */
         @java.lang.Override
    -    public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder
    -        getAccessPolicyOrBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAccessPolicyOrBuilder() {
           if ((accessContextPolicyCase_ == 7) && (accessPolicyBuilder_ != null)) {
             return accessPolicyBuilder_.getMessageOrBuilder();
           } else {
    @@ -3324,8 +2894,6 @@ public Builder clearAccessPolicy() {
           }
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -3334,46 +2902,33 @@ public Builder clearAccessPolicy() {
          * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.AccessPolicy,
    -            com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder,
    -            com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>
    +        com.google.identity.accesscontextmanager.v1.AccessPolicy, com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder, com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder> 
             getAccessPolicyFieldBuilder() {
           if (accessPolicyBuilder_ == null) {
             if (!(accessContextPolicyCase_ == 7)) {
    -          accessContextPolicy_ =
    -              com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance();
    +          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance();
             }
    -        accessPolicyBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.identity.accesscontextmanager.v1.AccessPolicy,
    -                com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder,
    -                com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>(
    +        accessPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.identity.accesscontextmanager.v1.AccessPolicy, com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder, com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>(
                     (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_,
                     getParentForChildren(),
                     isClean());
             accessContextPolicy_ = null;
           }
           accessContextPolicyCase_ = 7;
    -      onChanged();
    -      ;
    +      onChanged();;
           return accessPolicyBuilder_;
         }
     
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.AccessLevel,
    -            com.google.identity.accesscontextmanager.v1.AccessLevel.Builder,
    -            com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>
    -        accessLevelBuilder_;
    +        com.google.identity.accesscontextmanager.v1.AccessLevel, com.google.identity.accesscontextmanager.v1.AccessLevel.Builder, com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder> accessLevelBuilder_;
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
          * 
    * * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; - * * @return Whether the accessLevel field is set. */ @java.lang.Override @@ -3381,15 +2936,12 @@ public boolean hasAccessLevel() { return accessContextPolicyCase_ == 8; } /** - * - * *
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
          * 
    * * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; - * * @return The accessLevel. */ @java.lang.Override @@ -3407,8 +2959,6 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel() } } /** - * - * *
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -3430,8 +2980,6 @@ public Builder setAccessLevel(com.google.identity.accesscontextmanager.v1.Access
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -3451,8 +2999,6 @@ public Builder setAccessLevel(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -3462,15 +3008,10 @@ public Builder setAccessLevel(
          */
         public Builder mergeAccessLevel(com.google.identity.accesscontextmanager.v1.AccessLevel value) {
           if (accessLevelBuilder_ == null) {
    -        if (accessContextPolicyCase_ == 8
    -            && accessContextPolicy_
    -                != com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance()) {
    -          accessContextPolicy_ =
    -              com.google.identity.accesscontextmanager.v1.AccessLevel.newBuilder(
    -                      (com.google.identity.accesscontextmanager.v1.AccessLevel)
    -                          accessContextPolicy_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +        if (accessContextPolicyCase_ == 8 &&
    +            accessContextPolicy_ != com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance()) {
    +          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.AccessLevel.newBuilder((com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_)
    +              .mergeFrom(value).buildPartial();
             } else {
               accessContextPolicy_ = value;
             }
    @@ -3486,8 +3027,6 @@ public Builder mergeAccessLevel(com.google.identity.accesscontextmanager.v1.Acce
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -3512,8 +3051,6 @@ public Builder clearAccessLevel() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -3525,8 +3062,6 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel.Builder getAccess
           return getAccessLevelFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -3535,8 +3070,7 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel.Builder getAccess
          * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
          */
         @java.lang.Override
    -    public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder
    -        getAccessLevelOrBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAccessLevelOrBuilder() {
           if ((accessContextPolicyCase_ == 8) && (accessLevelBuilder_ != null)) {
             return accessLevelBuilder_.getMessageOrBuilder();
           } else {
    @@ -3547,8 +3081,6 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel.Builder getAccess
           }
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -3557,46 +3089,33 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel.Builder getAccess
          * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.AccessLevel,
    -            com.google.identity.accesscontextmanager.v1.AccessLevel.Builder,
    -            com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>
    +        com.google.identity.accesscontextmanager.v1.AccessLevel, com.google.identity.accesscontextmanager.v1.AccessLevel.Builder, com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder> 
             getAccessLevelFieldBuilder() {
           if (accessLevelBuilder_ == null) {
             if (!(accessContextPolicyCase_ == 8)) {
    -          accessContextPolicy_ =
    -              com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance();
    +          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance();
             }
    -        accessLevelBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.identity.accesscontextmanager.v1.AccessLevel,
    -                com.google.identity.accesscontextmanager.v1.AccessLevel.Builder,
    -                com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>(
    +        accessLevelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.identity.accesscontextmanager.v1.AccessLevel, com.google.identity.accesscontextmanager.v1.AccessLevel.Builder, com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>(
                     (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_,
                     getParentForChildren(),
                     isClean());
             accessContextPolicy_ = null;
           }
           accessContextPolicyCase_ = 8;
    -      onChanged();
    -      ;
    +      onChanged();;
           return accessLevelBuilder_;
         }
     
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.ServicePerimeter,
    -            com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder,
    -            com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>
    -        servicePerimeterBuilder_;
    +        com.google.identity.accesscontextmanager.v1.ServicePerimeter, com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder, com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder> servicePerimeterBuilder_;
         /**
    -     *
    -     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
          * 
    * * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; - * * @return Whether the servicePerimeter field is set. */ @java.lang.Override @@ -3604,23 +3123,19 @@ public boolean hasServicePerimeter() { return accessContextPolicyCase_ == 9; } /** - * - * *
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
          * 
    * * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; - * * @return The servicePerimeter. */ @java.lang.Override public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter() { if (servicePerimeterBuilder_ == null) { if (accessContextPolicyCase_ == 9) { - return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) - accessContextPolicy_; + return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_; } return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance(); } else { @@ -3631,8 +3146,6 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePe } } /** - * - * *
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3640,8 +3153,7 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePe
          *
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
    -    public Builder setServicePerimeter(
    -        com.google.identity.accesscontextmanager.v1.ServicePerimeter value) {
    +    public Builder setServicePerimeter(com.google.identity.accesscontextmanager.v1.ServicePerimeter value) {
           if (servicePerimeterBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -3655,8 +3167,6 @@ public Builder setServicePerimeter(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3676,8 +3186,6 @@ public Builder setServicePerimeter(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3685,19 +3193,12 @@ public Builder setServicePerimeter(
          *
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
    -    public Builder mergeServicePerimeter(
    -        com.google.identity.accesscontextmanager.v1.ServicePerimeter value) {
    +    public Builder mergeServicePerimeter(com.google.identity.accesscontextmanager.v1.ServicePerimeter value) {
           if (servicePerimeterBuilder_ == null) {
    -        if (accessContextPolicyCase_ == 9
    -            && accessContextPolicy_
    -                != com.google.identity.accesscontextmanager.v1.ServicePerimeter
    -                    .getDefaultInstance()) {
    -          accessContextPolicy_ =
    -              com.google.identity.accesscontextmanager.v1.ServicePerimeter.newBuilder(
    -                      (com.google.identity.accesscontextmanager.v1.ServicePerimeter)
    -                          accessContextPolicy_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +        if (accessContextPolicyCase_ == 9 &&
    +            accessContextPolicy_ != com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance()) {
    +          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.ServicePerimeter.newBuilder((com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_)
    +              .mergeFrom(value).buildPartial();
             } else {
               accessContextPolicy_ = value;
             }
    @@ -3713,8 +3214,6 @@ public Builder mergeServicePerimeter(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3739,8 +3238,6 @@ public Builder clearServicePerimeter() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3748,13 +3245,10 @@ public Builder clearServicePerimeter() {
          *
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
    -    public com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder
    -        getServicePerimeterBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder getServicePerimeterBuilder() {
           return getServicePerimeterFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3763,21 +3257,17 @@ public Builder clearServicePerimeter() {
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
         @java.lang.Override
    -    public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder
    -        getServicePerimeterOrBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder getServicePerimeterOrBuilder() {
           if ((accessContextPolicyCase_ == 9) && (servicePerimeterBuilder_ != null)) {
             return servicePerimeterBuilder_.getMessageOrBuilder();
           } else {
             if (accessContextPolicyCase_ == 9) {
    -          return (com.google.identity.accesscontextmanager.v1.ServicePerimeter)
    -              accessContextPolicy_;
    +          return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_;
             }
             return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
           }
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3786,40 +3276,28 @@ public Builder clearServicePerimeter() {
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.ServicePerimeter,
    -            com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder,
    -            com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>
    +        com.google.identity.accesscontextmanager.v1.ServicePerimeter, com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder, com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder> 
             getServicePerimeterFieldBuilder() {
           if (servicePerimeterBuilder_ == null) {
             if (!(accessContextPolicyCase_ == 9)) {
    -          accessContextPolicy_ =
    -              com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
    +          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
             }
    -        servicePerimeterBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.identity.accesscontextmanager.v1.ServicePerimeter,
    -                com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder,
    -                com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>(
    +        servicePerimeterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.identity.accesscontextmanager.v1.ServicePerimeter, com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder, com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>(
                     (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_,
                     getParentForChildren(),
                     isClean());
             accessContextPolicy_ = null;
           }
           accessContextPolicyCase_ = 9;
    -      onChanged();
    -      ;
    +      onChanged();;
           return servicePerimeterBuilder_;
         }
     
         private com.google.cloud.osconfig.v1.Inventory osInventory_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.osconfig.v1.Inventory,
    -            com.google.cloud.osconfig.v1.Inventory.Builder,
    -            com.google.cloud.osconfig.v1.InventoryOrBuilder>
    -        osInventoryBuilder_;
    +        com.google.cloud.osconfig.v1.Inventory, com.google.cloud.osconfig.v1.Inventory.Builder, com.google.cloud.osconfig.v1.InventoryOrBuilder> osInventoryBuilder_;
         /**
    -     *
    -     *
          * 
          * A representation of runtime OS Inventory information. See [this
          * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -3827,15 +3305,12 @@ public Builder clearServicePerimeter() {
          * 
    * * .google.cloud.osconfig.v1.Inventory os_inventory = 12; - * * @return Whether the osInventory field is set. */ public boolean hasOsInventory() { return osInventoryBuilder_ != null || osInventory_ != null; } /** - * - * *
          * A representation of runtime OS Inventory information. See [this
          * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -3843,21 +3318,16 @@ public boolean hasOsInventory() {
          * 
    * * .google.cloud.osconfig.v1.Inventory os_inventory = 12; - * * @return The osInventory. */ public com.google.cloud.osconfig.v1.Inventory getOsInventory() { if (osInventoryBuilder_ == null) { - return osInventory_ == null - ? com.google.cloud.osconfig.v1.Inventory.getDefaultInstance() - : osInventory_; + return osInventory_ == null ? com.google.cloud.osconfig.v1.Inventory.getDefaultInstance() : osInventory_; } else { return osInventoryBuilder_.getMessage(); } } /** - * - * *
          * A representation of runtime OS Inventory information. See [this
          * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -3880,8 +3350,6 @@ public Builder setOsInventory(com.google.cloud.osconfig.v1.Inventory value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of runtime OS Inventory information. See [this
          * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -3890,7 +3358,8 @@ public Builder setOsInventory(com.google.cloud.osconfig.v1.Inventory value) {
          *
          * .google.cloud.osconfig.v1.Inventory os_inventory = 12;
          */
    -    public Builder setOsInventory(com.google.cloud.osconfig.v1.Inventory.Builder builderForValue) {
    +    public Builder setOsInventory(
    +        com.google.cloud.osconfig.v1.Inventory.Builder builderForValue) {
           if (osInventoryBuilder_ == null) {
             osInventory_ = builderForValue.build();
             onChanged();
    @@ -3901,8 +3370,6 @@ public Builder setOsInventory(com.google.cloud.osconfig.v1.Inventory.Builder bui
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of runtime OS Inventory information. See [this
          * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -3915,9 +3382,7 @@ public Builder mergeOsInventory(com.google.cloud.osconfig.v1.Inventory value) {
           if (osInventoryBuilder_ == null) {
             if (osInventory_ != null) {
               osInventory_ =
    -              com.google.cloud.osconfig.v1.Inventory.newBuilder(osInventory_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +            com.google.cloud.osconfig.v1.Inventory.newBuilder(osInventory_).mergeFrom(value).buildPartial();
             } else {
               osInventory_ = value;
             }
    @@ -3929,8 +3394,6 @@ public Builder mergeOsInventory(com.google.cloud.osconfig.v1.Inventory value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of runtime OS Inventory information. See [this
          * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -3951,8 +3414,6 @@ public Builder clearOsInventory() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of runtime OS Inventory information. See [this
          * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -3962,13 +3423,11 @@ public Builder clearOsInventory() {
          * .google.cloud.osconfig.v1.Inventory os_inventory = 12;
          */
         public com.google.cloud.osconfig.v1.Inventory.Builder getOsInventoryBuilder() {
    -
    +      
           onChanged();
           return getOsInventoryFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * A representation of runtime OS Inventory information. See [this
          * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -3981,14 +3440,11 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
           if (osInventoryBuilder_ != null) {
             return osInventoryBuilder_.getMessageOrBuilder();
           } else {
    -        return osInventory_ == null
    -            ? com.google.cloud.osconfig.v1.Inventory.getDefaultInstance()
    -            : osInventory_;
    +        return osInventory_ == null ?
    +            com.google.cloud.osconfig.v1.Inventory.getDefaultInstance() : osInventory_;
           }
         }
         /**
    -     *
    -     *
          * 
          * A representation of runtime OS Inventory information. See [this
          * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -3998,17 +3454,14 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
          * .google.cloud.osconfig.v1.Inventory os_inventory = 12;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.osconfig.v1.Inventory,
    -            com.google.cloud.osconfig.v1.Inventory.Builder,
    -            com.google.cloud.osconfig.v1.InventoryOrBuilder>
    +        com.google.cloud.osconfig.v1.Inventory, com.google.cloud.osconfig.v1.Inventory.Builder, com.google.cloud.osconfig.v1.InventoryOrBuilder> 
             getOsInventoryFieldBuilder() {
           if (osInventoryBuilder_ == null) {
    -        osInventoryBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.cloud.osconfig.v1.Inventory,
    -                com.google.cloud.osconfig.v1.Inventory.Builder,
    -                com.google.cloud.osconfig.v1.InventoryOrBuilder>(
    -                getOsInventory(), getParentForChildren(), isClean());
    +        osInventoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.cloud.osconfig.v1.Inventory, com.google.cloud.osconfig.v1.Inventory.Builder, com.google.cloud.osconfig.v1.InventoryOrBuilder>(
    +                getOsInventory(),
    +                getParentForChildren(),
    +                isClean());
             osInventory_ = null;
           }
           return osInventoryBuilder_;
    @@ -4016,13 +3469,8 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
     
         private com.google.cloud.asset.v1.RelatedAssets relatedAssets_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.RelatedAssets,
    -            com.google.cloud.asset.v1.RelatedAssets.Builder,
    -            com.google.cloud.asset.v1.RelatedAssetsOrBuilder>
    -        relatedAssetsBuilder_;
    +        com.google.cloud.asset.v1.RelatedAssets, com.google.cloud.asset.v1.RelatedAssets.Builder, com.google.cloud.asset.v1.RelatedAssetsOrBuilder> relatedAssetsBuilder_;
         /**
    -     *
    -     *
          * 
          * DEPRECATED. This field only presents for the purpose of
          * backward-compatibility. The server will never generate responses with this
    @@ -4032,18 +3480,14 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
          * 
    * * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true]; - * - * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. See - * google/cloud/asset/v1/assets.proto;l=166 + * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. + * See google/cloud/asset/v1/assets.proto;l=166 * @return Whether the relatedAssets field is set. */ - @java.lang.Deprecated - public boolean hasRelatedAssets() { + @java.lang.Deprecated public boolean hasRelatedAssets() { return relatedAssetsBuilder_ != null || relatedAssets_ != null; } /** - * - * *
          * DEPRECATED. This field only presents for the purpose of
          * backward-compatibility. The server will never generate responses with this
    @@ -4053,24 +3497,18 @@ public boolean hasRelatedAssets() {
          * 
    * * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true]; - * - * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. See - * google/cloud/asset/v1/assets.proto;l=166 + * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. + * See google/cloud/asset/v1/assets.proto;l=166 * @return The relatedAssets. */ - @java.lang.Deprecated - public com.google.cloud.asset.v1.RelatedAssets getRelatedAssets() { + @java.lang.Deprecated public com.google.cloud.asset.v1.RelatedAssets getRelatedAssets() { if (relatedAssetsBuilder_ == null) { - return relatedAssets_ == null - ? com.google.cloud.asset.v1.RelatedAssets.getDefaultInstance() - : relatedAssets_; + return relatedAssets_ == null ? com.google.cloud.asset.v1.RelatedAssets.getDefaultInstance() : relatedAssets_; } else { return relatedAssetsBuilder_.getMessage(); } } /** - * - * *
          * DEPRECATED. This field only presents for the purpose of
          * backward-compatibility. The server will never generate responses with this
    @@ -4081,8 +3519,7 @@ public com.google.cloud.asset.v1.RelatedAssets getRelatedAssets() {
          *
          * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
          */
    -    @java.lang.Deprecated
    -    public Builder setRelatedAssets(com.google.cloud.asset.v1.RelatedAssets value) {
    +    @java.lang.Deprecated public Builder setRelatedAssets(com.google.cloud.asset.v1.RelatedAssets value) {
           if (relatedAssetsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -4096,8 +3533,6 @@ public Builder setRelatedAssets(com.google.cloud.asset.v1.RelatedAssets value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * DEPRECATED. This field only presents for the purpose of
          * backward-compatibility. The server will never generate responses with this
    @@ -4108,8 +3543,7 @@ public Builder setRelatedAssets(com.google.cloud.asset.v1.RelatedAssets value) {
          *
          * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
          */
    -    @java.lang.Deprecated
    -    public Builder setRelatedAssets(
    +    @java.lang.Deprecated public Builder setRelatedAssets(
             com.google.cloud.asset.v1.RelatedAssets.Builder builderForValue) {
           if (relatedAssetsBuilder_ == null) {
             relatedAssets_ = builderForValue.build();
    @@ -4121,8 +3555,6 @@ public Builder setRelatedAssets(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * DEPRECATED. This field only presents for the purpose of
          * backward-compatibility. The server will never generate responses with this
    @@ -4133,14 +3565,11 @@ public Builder setRelatedAssets(
          *
          * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
          */
    -    @java.lang.Deprecated
    -    public Builder mergeRelatedAssets(com.google.cloud.asset.v1.RelatedAssets value) {
    +    @java.lang.Deprecated public Builder mergeRelatedAssets(com.google.cloud.asset.v1.RelatedAssets value) {
           if (relatedAssetsBuilder_ == null) {
             if (relatedAssets_ != null) {
               relatedAssets_ =
    -              com.google.cloud.asset.v1.RelatedAssets.newBuilder(relatedAssets_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +            com.google.cloud.asset.v1.RelatedAssets.newBuilder(relatedAssets_).mergeFrom(value).buildPartial();
             } else {
               relatedAssets_ = value;
             }
    @@ -4152,8 +3581,6 @@ public Builder mergeRelatedAssets(com.google.cloud.asset.v1.RelatedAssets value)
           return this;
         }
         /**
    -     *
    -     *
          * 
          * DEPRECATED. This field only presents for the purpose of
          * backward-compatibility. The server will never generate responses with this
    @@ -4164,8 +3591,7 @@ public Builder mergeRelatedAssets(com.google.cloud.asset.v1.RelatedAssets value)
          *
          * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
          */
    -    @java.lang.Deprecated
    -    public Builder clearRelatedAssets() {
    +    @java.lang.Deprecated public Builder clearRelatedAssets() {
           if (relatedAssetsBuilder_ == null) {
             relatedAssets_ = null;
             onChanged();
    @@ -4177,8 +3603,6 @@ public Builder clearRelatedAssets() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * DEPRECATED. This field only presents for the purpose of
          * backward-compatibility. The server will never generate responses with this
    @@ -4189,15 +3613,12 @@ public Builder clearRelatedAssets() {
          *
          * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
          */
    -    @java.lang.Deprecated
    -    public com.google.cloud.asset.v1.RelatedAssets.Builder getRelatedAssetsBuilder() {
    -
    +    @java.lang.Deprecated public com.google.cloud.asset.v1.RelatedAssets.Builder getRelatedAssetsBuilder() {
    +      
           onChanged();
           return getRelatedAssetsFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * DEPRECATED. This field only presents for the purpose of
          * backward-compatibility. The server will never generate responses with this
    @@ -4208,19 +3629,15 @@ public com.google.cloud.asset.v1.RelatedAssets.Builder getRelatedAssetsBuilder()
          *
          * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
          */
    -    @java.lang.Deprecated
    -    public com.google.cloud.asset.v1.RelatedAssetsOrBuilder getRelatedAssetsOrBuilder() {
    +    @java.lang.Deprecated public com.google.cloud.asset.v1.RelatedAssetsOrBuilder getRelatedAssetsOrBuilder() {
           if (relatedAssetsBuilder_ != null) {
             return relatedAssetsBuilder_.getMessageOrBuilder();
           } else {
    -        return relatedAssets_ == null
    -            ? com.google.cloud.asset.v1.RelatedAssets.getDefaultInstance()
    -            : relatedAssets_;
    +        return relatedAssets_ == null ?
    +            com.google.cloud.asset.v1.RelatedAssets.getDefaultInstance() : relatedAssets_;
           }
         }
         /**
    -     *
    -     *
          * 
          * DEPRECATED. This field only presents for the purpose of
          * backward-compatibility. The server will never generate responses with this
    @@ -4232,17 +3649,14 @@ public com.google.cloud.asset.v1.RelatedAssetsOrBuilder getRelatedAssetsOrBuilde
          * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.RelatedAssets,
    -            com.google.cloud.asset.v1.RelatedAssets.Builder,
    -            com.google.cloud.asset.v1.RelatedAssetsOrBuilder>
    +        com.google.cloud.asset.v1.RelatedAssets, com.google.cloud.asset.v1.RelatedAssets.Builder, com.google.cloud.asset.v1.RelatedAssetsOrBuilder> 
             getRelatedAssetsFieldBuilder() {
           if (relatedAssetsBuilder_ == null) {
    -        relatedAssetsBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.cloud.asset.v1.RelatedAssets,
    -                com.google.cloud.asset.v1.RelatedAssets.Builder,
    -                com.google.cloud.asset.v1.RelatedAssetsOrBuilder>(
    -                getRelatedAssets(), getParentForChildren(), isClean());
    +        relatedAssetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.cloud.asset.v1.RelatedAssets, com.google.cloud.asset.v1.RelatedAssets.Builder, com.google.cloud.asset.v1.RelatedAssetsOrBuilder>(
    +                getRelatedAssets(),
    +                getParentForChildren(),
    +                isClean());
             relatedAssets_ = null;
           }
           return relatedAssetsBuilder_;
    @@ -4250,47 +3664,34 @@ public com.google.cloud.asset.v1.RelatedAssetsOrBuilder getRelatedAssetsOrBuilde
     
         private com.google.cloud.asset.v1.RelatedAsset relatedAsset_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.RelatedAsset,
    -            com.google.cloud.asset.v1.RelatedAsset.Builder,
    -            com.google.cloud.asset.v1.RelatedAssetOrBuilder>
    -        relatedAssetBuilder_;
    +        com.google.cloud.asset.v1.RelatedAsset, com.google.cloud.asset.v1.RelatedAsset.Builder, com.google.cloud.asset.v1.RelatedAssetOrBuilder> relatedAssetBuilder_;
         /**
    -     *
    -     *
          * 
          * One related asset of the current asset.
          * 
    * * .google.cloud.asset.v1.RelatedAsset related_asset = 15; - * * @return Whether the relatedAsset field is set. */ public boolean hasRelatedAsset() { return relatedAssetBuilder_ != null || relatedAsset_ != null; } /** - * - * *
          * One related asset of the current asset.
          * 
    * * .google.cloud.asset.v1.RelatedAsset related_asset = 15; - * * @return The relatedAsset. */ public com.google.cloud.asset.v1.RelatedAsset getRelatedAsset() { if (relatedAssetBuilder_ == null) { - return relatedAsset_ == null - ? com.google.cloud.asset.v1.RelatedAsset.getDefaultInstance() - : relatedAsset_; + return relatedAsset_ == null ? com.google.cloud.asset.v1.RelatedAsset.getDefaultInstance() : relatedAsset_; } else { return relatedAssetBuilder_.getMessage(); } } /** - * - * *
          * One related asset of the current asset.
          * 
    @@ -4311,15 +3712,14 @@ public Builder setRelatedAsset(com.google.cloud.asset.v1.RelatedAsset value) { return this; } /** - * - * *
          * One related asset of the current asset.
          * 
    * * .google.cloud.asset.v1.RelatedAsset related_asset = 15; */ - public Builder setRelatedAsset(com.google.cloud.asset.v1.RelatedAsset.Builder builderForValue) { + public Builder setRelatedAsset( + com.google.cloud.asset.v1.RelatedAsset.Builder builderForValue) { if (relatedAssetBuilder_ == null) { relatedAsset_ = builderForValue.build(); onChanged(); @@ -4330,8 +3730,6 @@ public Builder setRelatedAsset(com.google.cloud.asset.v1.RelatedAsset.Builder bu return this; } /** - * - * *
          * One related asset of the current asset.
          * 
    @@ -4342,9 +3740,7 @@ public Builder mergeRelatedAsset(com.google.cloud.asset.v1.RelatedAsset value) { if (relatedAssetBuilder_ == null) { if (relatedAsset_ != null) { relatedAsset_ = - com.google.cloud.asset.v1.RelatedAsset.newBuilder(relatedAsset_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.RelatedAsset.newBuilder(relatedAsset_).mergeFrom(value).buildPartial(); } else { relatedAsset_ = value; } @@ -4356,8 +3752,6 @@ public Builder mergeRelatedAsset(com.google.cloud.asset.v1.RelatedAsset value) { return this; } /** - * - * *
          * One related asset of the current asset.
          * 
    @@ -4376,8 +3770,6 @@ public Builder clearRelatedAsset() { return this; } /** - * - * *
          * One related asset of the current asset.
          * 
    @@ -4385,13 +3777,11 @@ public Builder clearRelatedAsset() { * .google.cloud.asset.v1.RelatedAsset related_asset = 15; */ public com.google.cloud.asset.v1.RelatedAsset.Builder getRelatedAssetBuilder() { - + onChanged(); return getRelatedAssetFieldBuilder().getBuilder(); } /** - * - * *
          * One related asset of the current asset.
          * 
    @@ -4402,14 +3792,11 @@ public com.google.cloud.asset.v1.RelatedAssetOrBuilder getRelatedAssetOrBuilder( if (relatedAssetBuilder_ != null) { return relatedAssetBuilder_.getMessageOrBuilder(); } else { - return relatedAsset_ == null - ? com.google.cloud.asset.v1.RelatedAsset.getDefaultInstance() - : relatedAsset_; + return relatedAsset_ == null ? + com.google.cloud.asset.v1.RelatedAsset.getDefaultInstance() : relatedAsset_; } } /** - * - * *
          * One related asset of the current asset.
          * 
    @@ -4417,34 +3804,27 @@ public com.google.cloud.asset.v1.RelatedAssetOrBuilder getRelatedAssetOrBuilder( * .google.cloud.asset.v1.RelatedAsset related_asset = 15; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.RelatedAsset, - com.google.cloud.asset.v1.RelatedAsset.Builder, - com.google.cloud.asset.v1.RelatedAssetOrBuilder> + com.google.cloud.asset.v1.RelatedAsset, com.google.cloud.asset.v1.RelatedAsset.Builder, com.google.cloud.asset.v1.RelatedAssetOrBuilder> getRelatedAssetFieldBuilder() { if (relatedAssetBuilder_ == null) { - relatedAssetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.RelatedAsset, - com.google.cloud.asset.v1.RelatedAsset.Builder, - com.google.cloud.asset.v1.RelatedAssetOrBuilder>( - getRelatedAsset(), getParentForChildren(), isClean()); + relatedAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.RelatedAsset, com.google.cloud.asset.v1.RelatedAsset.Builder, com.google.cloud.asset.v1.RelatedAssetOrBuilder>( + getRelatedAsset(), + getParentForChildren(), + isClean()); relatedAsset_ = null; } return relatedAssetBuilder_; } - private com.google.protobuf.LazyStringList ancestors_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAncestorsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { ancestors_ = new com.google.protobuf.LazyStringArrayList(ancestors_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -4456,15 +3836,13 @@ private void ensureAncestorsIsMutable() {
          * 
    * * repeated string ancestors = 10; - * * @return A list containing the ancestors. */ - public com.google.protobuf.ProtocolStringList getAncestorsList() { + public com.google.protobuf.ProtocolStringList + getAncestorsList() { return ancestors_.getUnmodifiableView(); } /** - * - * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -4476,15 +3854,12 @@ public com.google.protobuf.ProtocolStringList getAncestorsList() {
          * 
    * * repeated string ancestors = 10; - * * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); } /** - * - * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -4496,7 +3871,6 @@ public int getAncestorsCount() {
          * 
    * * repeated string ancestors = 10; - * * @param index The index of the element to return. * @return The ancestors at the given index. */ @@ -4504,8 +3878,6 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** - * - * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -4517,16 +3889,14 @@ public java.lang.String getAncestors(int index) {
          * 
    * * repeated string ancestors = 10; - * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - public com.google.protobuf.ByteString getAncestorsBytes(int index) { + public com.google.protobuf.ByteString + getAncestorsBytes(int index) { return ancestors_.getByteString(index); } /** - * - * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -4538,23 +3908,21 @@ public com.google.protobuf.ByteString getAncestorsBytes(int index) {
          * 
    * * repeated string ancestors = 10; - * * @param index The index to set the value at. * @param value The ancestors to set. * @return This builder for chaining. */ - public Builder setAncestors(int index, java.lang.String value) { + public Builder setAncestors( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAncestorsIsMutable(); + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); ancestors_.set(index, value); onChanged(); return this; } /** - * - * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -4566,22 +3934,20 @@ public Builder setAncestors(int index, java.lang.String value) {
          * 
    * * repeated string ancestors = 10; - * * @param value The ancestors to add. * @return This builder for chaining. */ - public Builder addAncestors(java.lang.String value) { + public Builder addAncestors( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAncestorsIsMutable(); + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); return this; } /** - * - * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -4593,19 +3959,18 @@ public Builder addAncestors(java.lang.String value) {
          * 
    * * repeated string ancestors = 10; - * * @param values The ancestors to add. * @return This builder for chaining. */ - public Builder addAllAncestors(java.lang.Iterable values) { + public Builder addAllAncestors( + java.lang.Iterable values) { ensureAncestorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ancestors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ancestors_); onChanged(); return this; } /** - * - * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -4617,7 +3982,6 @@ public Builder addAllAncestors(java.lang.Iterable values) {
          * 
    * * repeated string ancestors = 10; - * * @return This builder for chaining. */ public Builder clearAncestors() { @@ -4627,8 +3991,6 @@ public Builder clearAncestors() { return this; } /** - * - * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -4640,23 +4002,23 @@ public Builder clearAncestors() {
          * 
    * * repeated string ancestors = 10; - * * @param value The bytes of the ancestors to add. * @return This builder for chaining. */ - public Builder addAncestorsBytes(com.google.protobuf.ByteString value) { + public Builder addAncestorsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4666,12 +4028,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.Asset) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.Asset) private static final com.google.cloud.asset.v1.Asset DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.Asset(); } @@ -4680,16 +4042,27 @@ public static com.google.cloud.asset.v1.Asset getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Asset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Asset(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Asset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4704,4 +4077,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.Asset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetOrBuilder.java similarity index 89% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetOrBuilder.java index ece56a5d149b..24d40ac71917 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; -public interface AssetOrBuilder - extends +public interface AssetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.Asset) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The last update timestamp of an asset. update_time is updated when
        * create/update/delete operation is performed.
        * 
    * * .google.protobuf.Timestamp update_time = 11; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
        * The last update timestamp of an asset. update_time is updated when
        * create/update/delete operation is performed.
        * 
    * * .google.protobuf.Timestamp update_time = 11; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
        * The last update timestamp of an asset. update_time is updated when
        * create/update/delete operation is performed.
    @@ -62,8 +38,6 @@ public interface AssetOrBuilder
       com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -73,13 +47,10 @@ public interface AssetOrBuilder
        * 
    * * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -89,14 +60,12 @@ public interface AssetOrBuilder
        * 
    * * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -105,13 +74,10 @@ public interface AssetOrBuilder
        * 
    * * string asset_type = 2; - * * @return The assetType. */ java.lang.String getAssetType(); /** - * - * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -120,38 +86,30 @@ public interface AssetOrBuilder
        * 
    * * string asset_type = 2; - * * @return The bytes for assetType. */ - com.google.protobuf.ByteString getAssetTypeBytes(); + com.google.protobuf.ByteString + getAssetTypeBytes(); /** - * - * *
        * A representation of the resource.
        * 
    * * .google.cloud.asset.v1.Resource resource = 3; - * * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
        * A representation of the resource.
        * 
    * * .google.cloud.asset.v1.Resource resource = 3; - * * @return The resource. */ com.google.cloud.asset.v1.Resource getResource(); /** - * - * *
        * A representation of the resource.
        * 
    @@ -161,8 +119,6 @@ public interface AssetOrBuilder com.google.cloud.asset.v1.ResourceOrBuilder getResourceOrBuilder(); /** - * - * *
        * A representation of the Cloud IAM policy set on a Google Cloud resource.
        * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -176,13 +132,10 @@ public interface AssetOrBuilder
        * 
    * * .google.iam.v1.Policy iam_policy = 4; - * * @return Whether the iamPolicy field is set. */ boolean hasIamPolicy(); /** - * - * *
        * A representation of the Cloud IAM policy set on a Google Cloud resource.
        * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -196,13 +149,10 @@ public interface AssetOrBuilder
        * 
    * * .google.iam.v1.Policy iam_policy = 4; - * * @return The iamPolicy. */ com.google.iam.v1.Policy getIamPolicy(); /** - * - * *
        * A representation of the Cloud IAM policy set on a Google Cloud resource.
        * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -220,8 +170,6 @@ public interface AssetOrBuilder
       com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -231,10 +179,9 @@ public interface AssetOrBuilder
        *
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
    -  java.util.List getOrgPolicyList();
    +  java.util.List 
    +      getOrgPolicyList();
       /**
    -   *
    -   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -246,8 +193,6 @@ public interface AssetOrBuilder
        */
       com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index);
       /**
    -   *
    -   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -259,8 +204,6 @@ public interface AssetOrBuilder
        */
       int getOrgPolicyCount();
       /**
    -   *
    -   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -270,11 +213,9 @@ public interface AssetOrBuilder
        *
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
    -  java.util.List
    +  java.util.List 
           getOrgPolicyOrBuilderList();
       /**
    -   *
    -   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -284,37 +225,30 @@ public interface AssetOrBuilder
        *
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
    -  com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int index);
    +  com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
    +      int index);
     
       /**
    -   *
    -   *
        * 
        * Please also refer to the [access policy user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; - * * @return Whether the accessPolicy field is set. */ boolean hasAccessPolicy(); /** - * - * *
        * Please also refer to the [access policy user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; - * * @return The accessPolicy. */ com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy(); /** - * - * *
        * Please also refer to the [access policy user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -325,34 +259,26 @@ public interface AssetOrBuilder
       com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAccessPolicyOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * Please also refer to the [access level user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; - * * @return Whether the accessLevel field is set. */ boolean hasAccessLevel(); /** - * - * *
        * Please also refer to the [access level user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; - * * @return The accessLevel. */ com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel(); /** - * - * *
        * Please also refer to the [access level user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -363,34 +289,26 @@ public interface AssetOrBuilder
       com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAccessLevelOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * Please also refer to the [service perimeter user
        * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
        * 
    * * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; - * * @return Whether the servicePerimeter field is set. */ boolean hasServicePerimeter(); /** - * - * *
        * Please also refer to the [service perimeter user
        * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
        * 
    * * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; - * * @return The servicePerimeter. */ com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter(); /** - * - * *
        * Please also refer to the [service perimeter user
        * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -398,12 +316,9 @@ public interface AssetOrBuilder
        *
        * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
        */
    -  com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder
    -      getServicePerimeterOrBuilder();
    +  com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder getServicePerimeterOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * A representation of runtime OS Inventory information. See [this
        * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -411,13 +326,10 @@ public interface AssetOrBuilder
        * 
    * * .google.cloud.osconfig.v1.Inventory os_inventory = 12; - * * @return Whether the osInventory field is set. */ boolean hasOsInventory(); /** - * - * *
        * A representation of runtime OS Inventory information. See [this
        * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -425,13 +337,10 @@ public interface AssetOrBuilder
        * 
    * * .google.cloud.osconfig.v1.Inventory os_inventory = 12; - * * @return The osInventory. */ com.google.cloud.osconfig.v1.Inventory getOsInventory(); /** - * - * *
        * A representation of runtime OS Inventory information. See [this
        * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -443,8 +352,6 @@ public interface AssetOrBuilder
       com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * DEPRECATED. This field only presents for the purpose of
        * backward-compatibility. The server will never generate responses with this
    @@ -454,16 +361,12 @@ public interface AssetOrBuilder
        * 
    * * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true]; - * - * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. See - * google/cloud/asset/v1/assets.proto;l=166 + * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. + * See google/cloud/asset/v1/assets.proto;l=166 * @return Whether the relatedAssets field is set. */ - @java.lang.Deprecated - boolean hasRelatedAssets(); + @java.lang.Deprecated boolean hasRelatedAssets(); /** - * - * *
        * DEPRECATED. This field only presents for the purpose of
        * backward-compatibility. The server will never generate responses with this
    @@ -473,16 +376,12 @@ public interface AssetOrBuilder
        * 
    * * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true]; - * - * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. See - * google/cloud/asset/v1/assets.proto;l=166 + * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. + * See google/cloud/asset/v1/assets.proto;l=166 * @return The relatedAssets. */ - @java.lang.Deprecated - com.google.cloud.asset.v1.RelatedAssets getRelatedAssets(); + @java.lang.Deprecated com.google.cloud.asset.v1.RelatedAssets getRelatedAssets(); /** - * - * *
        * DEPRECATED. This field only presents for the purpose of
        * backward-compatibility. The server will never generate responses with this
    @@ -493,36 +392,27 @@ public interface AssetOrBuilder
        *
        * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
        */
    -  @java.lang.Deprecated
    -  com.google.cloud.asset.v1.RelatedAssetsOrBuilder getRelatedAssetsOrBuilder();
    +  @java.lang.Deprecated com.google.cloud.asset.v1.RelatedAssetsOrBuilder getRelatedAssetsOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * One related asset of the current asset.
        * 
    * * .google.cloud.asset.v1.RelatedAsset related_asset = 15; - * * @return Whether the relatedAsset field is set. */ boolean hasRelatedAsset(); /** - * - * *
        * One related asset of the current asset.
        * 
    * * .google.cloud.asset.v1.RelatedAsset related_asset = 15; - * * @return The relatedAsset. */ com.google.cloud.asset.v1.RelatedAsset getRelatedAsset(); /** - * - * *
        * One related asset of the current asset.
        * 
    @@ -532,8 +422,6 @@ public interface AssetOrBuilder com.google.cloud.asset.v1.RelatedAssetOrBuilder getRelatedAssetOrBuilder(); /** - * - * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -545,13 +433,11 @@ public interface AssetOrBuilder
        * 
    * * repeated string ancestors = 10; - * * @return A list containing the ancestors. */ - java.util.List getAncestorsList(); + java.util.List + getAncestorsList(); /** - * - * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -563,13 +449,10 @@ public interface AssetOrBuilder
        * 
    * * repeated string ancestors = 10; - * * @return The count of ancestors. */ int getAncestorsCount(); /** - * - * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -581,14 +464,11 @@ public interface AssetOrBuilder
        * 
    * * repeated string ancestors = 10; - * * @param index The index of the element to return. * @return The ancestors at the given index. */ java.lang.String getAncestors(int index); /** - * - * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -600,11 +480,11 @@ public interface AssetOrBuilder
        * 
    * * repeated string ancestors = 10; - * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - com.google.protobuf.ByteString getAncestorsBytes(int index); + com.google.protobuf.ByteString + getAncestorsBytes(int index); public com.google.cloud.asset.v1.Asset.AccessContextPolicyCase getAccessContextPolicyCase(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java new file mode 100644 index 000000000000..67cb92d103f4 --- /dev/null +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java @@ -0,0 +1,505 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/assets.proto + +package com.google.cloud.asset.v1; + +public final class AssetProto { + private AssetProto() {} + 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_asset_v1_TemporalAsset_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_TemporalAsset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_TimeWindow_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_TimeWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_Asset_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_Asset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_Resource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_Resource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_RelatedAssets_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_RelatedAssets_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_RelationshipAttributes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_RelatedAsset_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_RelatedAsset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ResourceSearchResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ResourceSearchResult_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ResourceSearchResult_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ResourceSearchResult_RelationshipsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ResourceSearchResult_RelationshipsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_VersionedResource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_VersionedResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_AttachedResource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_AttachedResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_RelatedResources_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_RelatedResources_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_RelatedResource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_RelatedResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicySearchResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ConditionEvaluation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\"google/cloud/asset/v1/assets.proto\022\025go" + + "ogle.cloud.asset.v1\032\037google/api/field_be" + + "havior.proto\032\031google/api/resource.proto\032" + + ")google/cloud/orgpolicy/v1/orgpolicy.pro" + + "to\032(google/cloud/osconfig/v1/inventory.p" + + "roto\032\032google/iam/v1/policy.proto\032:google" + + "/identity/accesscontextmanager/v1/access" + + "_level.proto\032;google/identity/accesscont" + + "extmanager/v1/access_policy.proto\032?googl" + + "e/identity/accesscontextmanager/v1/servi" + + "ce_perimeter.proto\032\034google/protobuf/stru" + + "ct.proto\032\037google/protobuf/timestamp.prot" + + "o\032\025google/rpc/code.proto\"\365\002\n\rTemporalAss" + + "et\0221\n\006window\030\001 \001(\0132!.google.cloud.asset." + + "v1.TimeWindow\022\017\n\007deleted\030\002 \001(\010\022+\n\005asset\030" + + "\003 \001(\0132\034.google.cloud.asset.v1.Asset\022O\n\021p" + + "rior_asset_state\030\004 \001(\01624.google.cloud.as" + + "set.v1.TemporalAsset.PriorAssetState\0221\n\013" + + "prior_asset\030\005 \001(\0132\034.google.cloud.asset.v" + + "1.Asset\"o\n\017PriorAssetState\022!\n\035PRIOR_ASSE" + + "T_STATE_UNSPECIFIED\020\000\022\013\n\007PRESENT\020\001\022\013\n\007IN" + + "VALID\020\002\022\022\n\016DOES_NOT_EXIST\020\003\022\013\n\007DELETED\020\004" + + "\"j\n\nTimeWindow\022.\n\nstart_time\030\001 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\022,\n\010end_time\030\002 \001(\013" + + "2\032.google.protobuf.Timestamp\"\363\005\n\005Asset\022/" + + "\n\013update_time\030\013 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022\014\n\004name\030\001 \001(\t\022\022\n\nasset_type\030\002 \001(" + + "\t\0221\n\010resource\030\003 \001(\0132\037.google.cloud.asset" + + ".v1.Resource\022)\n\niam_policy\030\004 \001(\0132\025.googl" + + "e.iam.v1.Policy\0225\n\norg_policy\030\006 \003(\0132!.go" + + "ogle.cloud.orgpolicy.v1.Policy\022N\n\raccess" + + "_policy\030\007 \001(\01325.google.identity.accessco" + + "ntextmanager.v1.AccessPolicyH\000\022L\n\014access" + + "_level\030\010 \001(\01324.google.identity.accesscon" + + "textmanager.v1.AccessLevelH\000\022V\n\021service_" + + "perimeter\030\t \001(\01329.google.identity.access" + + "contextmanager.v1.ServicePerimeterH\000\0229\n\014" + + "os_inventory\030\014 \001(\0132#.google.cloud.osconf" + + "ig.v1.Inventory\022@\n\016related_assets\030\r \001(\0132" + + "$.google.cloud.asset.v1.RelatedAssetsB\002\030" + + "\001\022:\n\rrelated_asset\030\017 \001(\0132#.google.cloud." + + "asset.v1.RelatedAsset\022\021\n\tancestors\030\n \003(\t" + + ":\'\352A$\n\037cloudasset.googleapis.com/Asset\022\001" + + "*B\027\n\025access_context_policy\"\262\001\n\010Resource\022" + + "\017\n\007version\030\001 \001(\t\022\036\n\026discovery_document_u" + + "ri\030\002 \001(\t\022\026\n\016discovery_name\030\003 \001(\t\022\024\n\014reso" + + "urce_url\030\004 \001(\t\022\016\n\006parent\030\005 \001(\t\022%\n\004data\030\006" + + " \001(\0132\027.google.protobuf.Struct\022\020\n\010locatio" + + "n\030\010 \001(\t\"\230\001\n\rRelatedAssets\022N\n\027relationshi" + + "p_attributes\030\001 \001(\0132-.google.cloud.asset." + + "v1.RelationshipAttributes\0223\n\006assets\030\002 \003(" + + "\0132#.google.cloud.asset.v1.RelatedAsset:\002" + + "\030\001\"v\n\026RelationshipAttributes\022\014\n\004type\030\004 \001" + + "(\t\022\034\n\024source_resource_type\030\001 \001(\t\022\034\n\024targ" + + "et_resource_type\030\002 \001(\t\022\016\n\006action\030\003 \001(\t:\002" + + "\030\001\"\205\001\n\014RelatedAsset\0223\n\005asset\030\001 \001(\tB$\372A!\n" + + "\037cloudasset.googleapis.com/Asset\022\022\n\nasse" + + "t_type\030\002 \001(\t\022\021\n\tancestors\030\003 \003(\t\022\031\n\021relat" + + "ionship_type\030\004 \001(\t\"\310\007\n\024ResourceSearchRes" + + "ult\022\014\n\004name\030\001 \001(\t\022\022\n\nasset_type\030\002 \001(\t\022\017\n" + + "\007project\030\003 \001(\t\022\017\n\007folders\030\021 \003(\t\022\024\n\014organ" + + "ization\030\022 \001(\t\022\024\n\014display_name\030\004 \001(\t\022\023\n\013d" + + "escription\030\005 \001(\t\022\020\n\010location\030\006 \001(\t\022G\n\006la" + + "bels\030\007 \003(\01327.google.cloud.asset.v1.Resou" + + "rceSearchResult.LabelsEntry\022\024\n\014network_t" + + "ags\030\010 \003(\t\022\023\n\007kms_key\030\n \001(\tB\002\030\001\022\020\n\010kms_ke" + + "ys\030\034 \003(\t\022/\n\013create_time\030\013 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022/\n\013update_time\030\014 \001(\0132\032" + + ".google.protobuf.Timestamp\022\r\n\005state\030\r \001(" + + "\t\0226\n\025additional_attributes\030\t \001(\0132\027.googl" + + "e.protobuf.Struct\022!\n\031parent_full_resourc" + + "e_name\030\023 \001(\t\022E\n\023versioned_resources\030\020 \003(" + + "\0132(.google.cloud.asset.v1.VersionedResou" + + "rce\022C\n\022attached_resources\030\024 \003(\0132\'.google" + + ".cloud.asset.v1.AttachedResource\022U\n\rrela" + + "tionships\030\025 \003(\0132>.google.cloud.asset.v1." + + "ResourceSearchResult.RelationshipsEntry\022" + + "\020\n\010tag_keys\030\027 \003(\t\022\022\n\ntag_values\030\031 \003(\t\022\025\n" + + "\rtag_value_ids\030\032 \003(\t\022\031\n\021parent_asset_typ" + + "e\030g \001(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\032]\n\022RelationshipsEntry\022\013\n\003" + + "key\030\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.google.cloud." + + "asset.v1.RelatedResources:\0028\001\"O\n\021Version" + + "edResource\022\017\n\007version\030\001 \001(\t\022)\n\010resource\030" + + "\002 \001(\0132\027.google.protobuf.Struct\"m\n\020Attach" + + "edResource\022\022\n\nasset_type\030\001 \001(\t\022E\n\023versio" + + "ned_resources\030\003 \003(\0132(.google.cloud.asset" + + ".v1.VersionedResource\"U\n\020RelatedResource" + + "s\022A\n\021related_resources\030\001 \003(\0132&.google.cl" + + "oud.asset.v1.RelatedResource\"A\n\017RelatedR" + + "esource\022\022\n\nasset_type\030\001 \001(\t\022\032\n\022full_reso" + + "urce_name\030\002 \001(\t\"\217\004\n\025IamPolicySearchResul" + + "t\022\020\n\010resource\030\001 \001(\t\022\022\n\nasset_type\030\005 \001(\t\022" + + "\017\n\007project\030\002 \001(\t\022\017\n\007folders\030\006 \003(\t\022\024\n\014org" + + "anization\030\007 \001(\t\022%\n\006policy\030\003 \001(\0132\025.google" + + ".iam.v1.Policy\022M\n\013explanation\030\004 \001(\01328.go" + + "ogle.cloud.asset.v1.IamPolicySearchResul" + + "t.Explanation\032\241\002\n\013Explanation\022m\n\023matched" + + "_permissions\030\001 \003(\0132P.google.cloud.asset." + + "v1.IamPolicySearchResult.Explanation.Mat" + + "chedPermissionsEntry\032\"\n\013Permissions\022\023\n\013p" + + "ermissions\030\001 \003(\t\032\177\n\027MatchedPermissionsEn" + + "try\022\013\n\003key\030\001 \001(\t\022S\n\005value\030\002 \001(\0132D.google" + + ".cloud.asset.v1.IamPolicySearchResult.Ex" + + "planation.Permissions:\0028\001\"G\n\026IamPolicyAn" + + "alysisState\022\036\n\004code\030\001 \001(\0162\020.google.rpc.C" + + "ode\022\r\n\005cause\030\002 \001(\t\"\306\001\n\023ConditionEvaluati" + + "on\022T\n\020evaluation_value\030\001 \001(\0162:.google.cl" + + "oud.asset.v1.ConditionEvaluation.Evaluat" + + "ionValue\"Y\n\017EvaluationValue\022 \n\034EVALUATIO" + + "N_VALUE_UNSPECIFIED\020\000\022\010\n\004TRUE\020\001\022\t\n\005FALSE" + + "\020\002\022\017\n\013CONDITIONAL\020\003\"\253\t\n\027IamPolicyAnalysi" + + "sResult\022#\n\033attached_resource_full_name\030\001" + + " \001(\t\022+\n\013iam_binding\030\002 \001(\0132\026.google.iam.v" + + "1.Binding\022^\n\024access_control_lists\030\003 \003(\0132" + + "@.google.cloud.asset.v1.IamPolicyAnalysi" + + "sResult.AccessControlList\022R\n\ridentity_li" + + "st\030\004 \001(\0132;.google.cloud.asset.v1.IamPoli" + + "cyAnalysisResult.IdentityList\022\026\n\016fully_e" + + "xplored\030\005 \001(\010\032m\n\010Resource\022\032\n\022full_resour" + + "ce_name\030\001 \001(\t\022E\n\016analysis_state\030\002 \001(\0132-." + + "google.cloud.asset.v1.IamPolicyAnalysisS" + + "tate\032\205\001\n\006Access\022\016\n\004role\030\001 \001(\tH\000\022\024\n\npermi" + + "ssion\030\002 \001(\tH\000\022E\n\016analysis_state\030\003 \001(\0132-." + + "google.cloud.asset.v1.IamPolicyAnalysisS" + + "tateB\016\n\014oneof_access\032_\n\010Identity\022\014\n\004name" + + "\030\001 \001(\t\022E\n\016analysis_state\030\002 \001(\0132-.google." + + "cloud.asset.v1.IamPolicyAnalysisState\0320\n" + + "\004Edge\022\023\n\013source_node\030\001 \001(\t\022\023\n\013target_nod" + + "e\030\002 \001(\t\032\277\002\n\021AccessControlList\022J\n\tresourc" + + "es\030\001 \003(\01327.google.cloud.asset.v1.IamPoli" + + "cyAnalysisResult.Resource\022G\n\010accesses\030\002 " + + "\003(\01325.google.cloud.asset.v1.IamPolicyAna" + + "lysisResult.Access\022K\n\016resource_edges\030\003 \003" + + "(\01323.google.cloud.asset.v1.IamPolicyAnal" + + "ysisResult.Edge\022H\n\024condition_evaluation\030" + + "\004 \001(\0132*.google.cloud.asset.v1.ConditionE" + + "valuation\032\245\001\n\014IdentityList\022K\n\nidentities" + + "\030\001 \003(\01327.google.cloud.asset.v1.IamPolicy" + + "AnalysisResult.Identity\022H\n\013group_edges\030\002" + + " \003(\01323.google.cloud.asset.v1.IamPolicyAn" + + "alysisResult.EdgeB\230\001\n\031com.google.cloud.a" + + "sset.v1B\nAssetProtoP\001Z:google.golang.org" + + "/genproto/googleapis/cloud/asset/v1;asse" + + "t\370\001\001\252\002\025Google.Cloud.Asset.V1\312\002\025Google\\Cl" + + "oud\\Asset\\V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(), + com.google.cloud.osconfig.v1.Inventories.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(), + com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(), + com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.CodeProto.getDescriptor(), + }); + internal_static_google_cloud_asset_v1_TemporalAsset_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_asset_v1_TemporalAsset_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_TemporalAsset_descriptor, + new java.lang.String[] { "Window", "Deleted", "Asset", "PriorAssetState", "PriorAsset", }); + internal_static_google_cloud_asset_v1_TimeWindow_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_asset_v1_TimeWindow_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_TimeWindow_descriptor, + new java.lang.String[] { "StartTime", "EndTime", }); + internal_static_google_cloud_asset_v1_Asset_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_asset_v1_Asset_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_Asset_descriptor, + new java.lang.String[] { "UpdateTime", "Name", "AssetType", "Resource", "IamPolicy", "OrgPolicy", "AccessPolicy", "AccessLevel", "ServicePerimeter", "OsInventory", "RelatedAssets", "RelatedAsset", "Ancestors", "AccessContextPolicy", }); + internal_static_google_cloud_asset_v1_Resource_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_asset_v1_Resource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_Resource_descriptor, + new java.lang.String[] { "Version", "DiscoveryDocumentUri", "DiscoveryName", "ResourceUrl", "Parent", "Data", "Location", }); + internal_static_google_cloud_asset_v1_RelatedAssets_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_asset_v1_RelatedAssets_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_RelatedAssets_descriptor, + new java.lang.String[] { "RelationshipAttributes", "Assets", }); + internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_asset_v1_RelationshipAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor, + new java.lang.String[] { "Type", "SourceResourceType", "TargetResourceType", "Action", }); + internal_static_google_cloud_asset_v1_RelatedAsset_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_asset_v1_RelatedAsset_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_RelatedAsset_descriptor, + new java.lang.String[] { "Asset", "AssetType", "Ancestors", "RelationshipType", }); + internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_asset_v1_ResourceSearchResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor, + new java.lang.String[] { "Name", "AssetType", "Project", "Folders", "Organization", "DisplayName", "Description", "Location", "Labels", "NetworkTags", "KmsKey", "KmsKeys", "CreateTime", "UpdateTime", "State", "AdditionalAttributes", "ParentFullResourceName", "VersionedResources", "AttachedResources", "Relationships", "TagKeys", "TagValues", "TagValueIds", "ParentAssetType", }); + internal_static_google_cloud_asset_v1_ResourceSearchResult_LabelsEntry_descriptor = + internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_asset_v1_ResourceSearchResult_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ResourceSearchResult_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_asset_v1_ResourceSearchResult_RelationshipsEntry_descriptor = + internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_asset_v1_ResourceSearchResult_RelationshipsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ResourceSearchResult_RelationshipsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_asset_v1_VersionedResource_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_asset_v1_VersionedResource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_VersionedResource_descriptor, + new java.lang.String[] { "Version", "Resource", }); + internal_static_google_cloud_asset_v1_AttachedResource_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_asset_v1_AttachedResource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_AttachedResource_descriptor, + new java.lang.String[] { "AssetType", "VersionedResources", }); + internal_static_google_cloud_asset_v1_RelatedResources_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_asset_v1_RelatedResources_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_RelatedResources_descriptor, + new java.lang.String[] { "RelatedResources", }); + internal_static_google_cloud_asset_v1_RelatedResource_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_asset_v1_RelatedResource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_RelatedResource_descriptor, + new java.lang.String[] { "AssetType", "FullResourceName", }); + internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_asset_v1_IamPolicySearchResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor, + new java.lang.String[] { "Resource", "AssetType", "Project", "Folders", "Organization", "Policy", "Explanation", }); + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor = + internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor, + new java.lang.String[] { "MatchedPermissions", }); + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor = + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor, + new java.lang.String[] { "Permissions", }); + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor = + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor, + new java.lang.String[] { "Code", "Cause", }); + internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_asset_v1_ConditionEvaluation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor, + new java.lang.String[] { "EvaluationValue", }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor, + new java.lang.String[] { "AttachedResourceFullName", "IamBinding", "AccessControlLists", "IdentityList", "FullyExplored", }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor, + new java.lang.String[] { "FullResourceName", "AnalysisState", }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor, + new java.lang.String[] { "Role", "Permission", "AnalysisState", "OneofAccess", }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor, + new java.lang.String[] { "Name", "AnalysisState", }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor, + new java.lang.String[] { "SourceNode", "TargetNode", }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor.getNestedTypes().get(4); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor, + new java.lang.String[] { "Resources", "Accesses", "ResourceEdges", "ConditionEvaluation", }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor.getNestedTypes().get(5); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor, + new java.lang.String[] { "Identities", "GroupEdges", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(); + com.google.cloud.osconfig.v1.Inventories.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(); + com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(); + com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.CodeProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java new file mode 100644 index 000000000000..57cad7816d2c --- /dev/null +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java @@ -0,0 +1,1149 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public final class AssetServiceProto { + private AssetServiceProto() {} + 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_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ExportAssetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ExportAssetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ListAssetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ListAssetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ListAssetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ListAssetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_CreateFeedRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_GetFeedRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ListFeedsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ListFeedsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_UpdateFeedRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_DeleteFeedRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_OutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_OutputResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_OutputResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_GcsOutputResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_GcsDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_BigQueryDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_PartitionSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_PartitionSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_PubsubDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_PubsubDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_FeedOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_Feed_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_Feed_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_SavedQuery_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_SavedQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_SavedQuery_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_SavedQuery_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_GetSavedQueryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_GetSavedQueryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_MoveAnalysis_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_MoveAnalysis_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_MoveAnalysisResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_MoveAnalysisResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_MoveImpact_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_MoveImpact_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_QueryAssetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_QueryAssetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_QueryAssetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_QueryAssetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_QueryResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_QueryResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_TableSchema_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_TableSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_TableFieldSchema_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_TableFieldSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/asset/v1/asset_service.pr" + + "oto\022\025google.cloud.asset.v1\032\034google/api/a" + + "nnotations.proto\032\027google/api/client.prot" + + "o\032\037google/api/field_behavior.proto\032\031goog" + + "le/api/resource.proto\032\"google/cloud/asse" + + "t/v1/assets.proto\032\032google/iam/v1/policy." + + "proto\032#google/longrunning/operations.pro" + + "to\032\036google/protobuf/duration.proto\032\033goog" + + "le/protobuf/empty.proto\032 google/protobuf" + + "/field_mask.proto\032\034google/protobuf/struc" + + "t.proto\032\037google/protobuf/timestamp.proto" + + "\032\027google/rpc/status.proto\032\026google/type/e" + + "xpr.proto\"[\n#AnalyzeIamPolicyLongrunning" + + "Metadata\0224\n\013create_time\030\001 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\"\251\002\n\023ExportAssetsR" + + "equest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037cloudass" + + "et.googleapis.com/Asset\022-\n\tread_time\030\002 \001" + + "(\0132\032.google.protobuf.Timestamp\022\023\n\013asset_" + + "types\030\003 \003(\t\0228\n\014content_type\030\004 \001(\0162\".goog" + + "le.cloud.asset.v1.ContentType\022?\n\routput_" + + "config\030\005 \001(\0132#.google.cloud.asset.v1.Out" + + "putConfigB\003\340A\002\022\032\n\022relationship_types\030\006 \003" + + "(\t\"\275\001\n\024ExportAssetsResponse\022-\n\tread_time" + + "\030\001 \001(\0132\032.google.protobuf.Timestamp\022:\n\rou" + + "tput_config\030\002 \001(\0132#.google.cloud.asset.v" + + "1.OutputConfig\022:\n\routput_result\030\003 \001(\0132#." + + "google.cloud.asset.v1.OutputResult\"\215\002\n\021L" + + "istAssetsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!" + + "\022\037cloudasset.googleapis.com/Asset\022-\n\trea" + + "d_time\030\002 \001(\0132\032.google.protobuf.Timestamp" + + "\022\023\n\013asset_types\030\003 \003(\t\0228\n\014content_type\030\004 " + + "\001(\0162\".google.cloud.asset.v1.ContentType\022" + + "\021\n\tpage_size\030\005 \001(\005\022\022\n\npage_token\030\006 \001(\t\022\032" + + "\n\022relationship_types\030\007 \003(\t\"\212\001\n\022ListAsset" + + "sResponse\022-\n\tread_time\030\001 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022,\n\006assets\030\002 \003(\0132\034.googl" + + "e.cloud.asset.v1.Asset\022\027\n\017next_page_toke" + + "n\030\003 \001(\t\"\216\002\n\034BatchGetAssetsHistoryRequest" + + "\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037cloudasset.goo" + + "gleapis.com/Asset\022\023\n\013asset_names\030\002 \003(\t\022=" + + "\n\014content_type\030\003 \001(\0162\".google.cloud.asse" + + "t.v1.ContentTypeB\003\340A\001\022@\n\020read_time_windo" + + "w\030\004 \001(\0132!.google.cloud.asset.v1.TimeWind" + + "owB\003\340A\001\022\037\n\022relationship_types\030\005 \003(\tB\003\340A\001" + + "\"U\n\035BatchGetAssetsHistoryResponse\0224\n\006ass" + + "ets\030\001 \003(\0132$.google.cloud.asset.v1.Tempor" + + "alAsset\"n\n\021CreateFeedRequest\022\023\n\006parent\030\001" + + " \001(\tB\003\340A\002\022\024\n\007feed_id\030\002 \001(\tB\003\340A\002\022.\n\004feed\030" + + "\003 \001(\0132\033.google.cloud.asset.v1.FeedB\003\340A\002\"" + + "F\n\016GetFeedRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036cloudasset.googleapis.com/Feed\"\'\n\020ListF" + + "eedsRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\"?\n\021List" + + "FeedsResponse\022*\n\005feeds\030\001 \003(\0132\033.google.cl" + + "oud.asset.v1.Feed\"y\n\021UpdateFeedRequest\022." + + "\n\004feed\030\001 \001(\0132\033.google.cloud.asset.v1.Fee" + + "dB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.pro" + + "tobuf.FieldMaskB\003\340A\002\"I\n\021DeleteFeedReques" + + "t\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036cloudasset.goog" + + "leapis.com/Feed\"\253\001\n\014OutputConfig\022@\n\017gcs_" + + "destination\030\001 \001(\0132%.google.cloud.asset.v" + + "1.GcsDestinationH\000\022J\n\024bigquery_destinati" + + "on\030\002 \001(\0132*.google.cloud.asset.v1.BigQuer" + + "yDestinationH\000B\r\n\013destination\"V\n\014OutputR" + + "esult\022<\n\ngcs_result\030\001 \001(\0132&.google.cloud" + + ".asset.v1.GcsOutputResultH\000B\010\n\006result\"\037\n" + + "\017GcsOutputResult\022\014\n\004uris\030\001 \003(\t\"C\n\016GcsDes" + + "tination\022\r\n\003uri\030\001 \001(\tH\000\022\024\n\nuri_prefix\030\002 " + + "\001(\tH\000B\014\n\nobject_uri\"\264\001\n\023BigQueryDestinat" + + "ion\022\024\n\007dataset\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\t" + + "B\003\340A\002\022\r\n\005force\030\003 \001(\010\022<\n\016partition_spec\030\004" + + " \001(\0132$.google.cloud.asset.v1.PartitionSp" + + "ec\022&\n\036separate_tables_per_asset_type\030\005 \001" + + "(\010\"\251\001\n\rPartitionSpec\022H\n\rpartition_key\030\001 " + + "\001(\01621.google.cloud.asset.v1.PartitionSpe" + + "c.PartitionKey\"N\n\014PartitionKey\022\035\n\031PARTIT" + + "ION_KEY_UNSPECIFIED\020\000\022\r\n\tREAD_TIME\020\001\022\020\n\014" + + "REQUEST_TIME\020\002\"\"\n\021PubsubDestination\022\r\n\005t" + + "opic\030\001 \001(\t\"i\n\020FeedOutputConfig\022F\n\022pubsub" + + "_destination\030\001 \001(\0132(.google.cloud.asset." + + "v1.PubsubDestinationH\000B\r\n\013destination\"\235\003" + + "\n\004Feed\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\013asset_names" + + "\030\002 \003(\t\022\023\n\013asset_types\030\003 \003(\t\0228\n\014content_t" + + "ype\030\004 \001(\0162\".google.cloud.asset.v1.Conten" + + "tType\022H\n\022feed_output_config\030\005 \001(\0132\'.goog" + + "le.cloud.asset.v1.FeedOutputConfigB\003\340A\002\022" + + "$\n\tcondition\030\006 \001(\0132\021.google.type.Expr\022\032\n" + + "\022relationship_types\030\007 \003(\t:\221\001\352A\215\001\n\036clouda" + + "sset.googleapis.com/Feed\022\037projects/{proj" + + "ect}/feeds/{feed}\022\035folders/{folder}/feed" + + "s/{feed}\022)organizations/{organization}/f" + + "eeds/{feed} \001\"\331\001\n\031SearchAllResourcesRequ" + + "est\022\022\n\005scope\030\001 \001(\tB\003\340A\002\022\022\n\005query\030\002 \001(\tB\003" + + "\340A\001\022\030\n\013asset_types\030\003 \003(\tB\003\340A\001\022\026\n\tpage_si" + + "ze\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005 \001(\tB\003\340A\001\022\025" + + "\n\010order_by\030\006 \001(\tB\003\340A\001\0222\n\tread_mask\030\010 \001(\013" + + "2\032.google.protobuf.FieldMaskB\003\340A\001\"s\n\032Sea" + + "rchAllResourcesResponse\022<\n\007results\030\001 \003(\013" + + "2+.google.cloud.asset.v1.ResourceSearchR" + + "esult\022\027\n\017next_page_token\030\002 \001(\t\"\247\001\n\033Searc" + + "hAllIamPoliciesRequest\022\022\n\005scope\030\001 \001(\tB\003\340" + + "A\002\022\022\n\005query\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(" + + "\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\022\030\n\013asset" + + "_types\030\005 \003(\tB\003\340A\001\022\025\n\010order_by\030\007 \001(\tB\003\340A\001" + + "\"v\n\034SearchAllIamPoliciesResponse\022=\n\007resu" + + "lts\030\001 \003(\0132,.google.cloud.asset.v1.IamPol" + + "icySearchResult\022\027\n\017next_page_token\030\002 \001(\t" + + "\"\306\007\n\026IamPolicyAnalysisQuery\022\022\n\005scope\030\001 \001" + + "(\tB\003\340A\002\022^\n\021resource_selector\030\002 \001(\0132>.goo" + + "gle.cloud.asset.v1.IamPolicyAnalysisQuer" + + "y.ResourceSelectorB\003\340A\001\022^\n\021identity_sele" + + "ctor\030\003 \001(\0132>.google.cloud.asset.v1.IamPo" + + "licyAnalysisQuery.IdentitySelectorB\003\340A\001\022" + + "Z\n\017access_selector\030\004 \001(\0132<.google.cloud." + + "asset.v1.IamPolicyAnalysisQuery.AccessSe" + + "lectorB\003\340A\001\022K\n\007options\030\005 \001(\01325.google.cl" + + "oud.asset.v1.IamPolicyAnalysisQuery.Opti" + + "onsB\003\340A\001\022^\n\021condition_context\030\006 \001(\0132>.go" + + "ogle.cloud.asset.v1.IamPolicyAnalysisQue" + + "ry.ConditionContextB\003\340A\001\0323\n\020ResourceSele" + + "ctor\022\037\n\022full_resource_name\030\001 \001(\tB\003\340A\002\032)\n" + + "\020IdentitySelector\022\025\n\010identity\030\001 \001(\tB\003\340A\002" + + "\032>\n\016AccessSelector\022\022\n\005roles\030\001 \003(\tB\003\340A\001\022\030" + + "\n\013permissions\030\002 \003(\tB\003\340A\001\032\330\001\n\007Options\022\032\n\r" + + "expand_groups\030\001 \001(\010B\003\340A\001\022\031\n\014expand_roles" + + "\030\002 \001(\010B\003\340A\001\022\035\n\020expand_resources\030\003 \001(\010B\003\340" + + "A\001\022\"\n\025output_resource_edges\030\004 \001(\010B\003\340A\001\022\037" + + "\n\022output_group_edges\030\005 \001(\010B\003\340A\001\0222\n%analy" + + "ze_service_account_impersonation\030\006 \001(\010B\003" + + "\340A\001\032T\n\020ConditionContext\0221\n\013access_time\030\001" + + " \001(\0132\032.google.protobuf.TimestampH\000B\r\n\013Ti" + + "meContext\"\303\001\n\027AnalyzeIamPolicyRequest\022J\n" + + "\016analysis_query\030\001 \001(\0132-.google.cloud.ass" + + "et.v1.IamPolicyAnalysisQueryB\003\340A\002\022!\n\024sav" + + "ed_analysis_query\030\003 \001(\tB\003\340A\001\0229\n\021executio" + + "n_timeout\030\002 \001(\0132\031.google.protobuf.Durati" + + "onB\003\340A\001\"\212\004\n\030AnalyzeIamPolicyResponse\022X\n\r" + + "main_analysis\030\001 \001(\0132A.google.cloud.asset" + + ".v1.AnalyzeIamPolicyResponse.IamPolicyAn" + + "alysis\022q\n&service_account_impersonation_" + + "analysis\030\002 \003(\0132A.google.cloud.asset.v1.A" + + "nalyzeIamPolicyResponse.IamPolicyAnalysi" + + "s\022\026\n\016fully_explored\030\003 \001(\010\032\210\002\n\021IamPolicyA" + + "nalysis\022E\n\016analysis_query\030\001 \001(\0132-.google" + + ".cloud.asset.v1.IamPolicyAnalysisQuery\022H" + + "\n\020analysis_results\030\002 \003(\0132..google.cloud." + + "asset.v1.IamPolicyAnalysisResult\022\026\n\016full" + + "y_explored\030\003 \001(\010\022J\n\023non_critical_errors\030" + + "\005 \003(\0132-.google.cloud.asset.v1.IamPolicyA" + + "nalysisState\"\264\004\n\035IamPolicyAnalysisOutput" + + "Config\022^\n\017gcs_destination\030\001 \001(\0132C.google" + + ".cloud.asset.v1.IamPolicyAnalysisOutputC" + + "onfig.GcsDestinationH\000\022h\n\024bigquery_desti" + + "nation\030\002 \001(\0132H.google.cloud.asset.v1.Iam" + + "PolicyAnalysisOutputConfig.BigQueryDesti" + + "nationH\000\032\"\n\016GcsDestination\022\020\n\003uri\030\001 \001(\tB" + + "\003\340A\002\032\225\002\n\023BigQueryDestination\022\024\n\007dataset\030" + + "\001 \001(\tB\003\340A\002\022\031\n\014table_prefix\030\002 \001(\tB\003\340A\002\022l\n" + + "\rpartition_key\030\003 \001(\0162U.google.cloud.asse" + + "t.v1.IamPolicyAnalysisOutputConfig.BigQu" + + "eryDestination.PartitionKey\022\036\n\021write_dis" + + "position\030\004 \001(\tB\003\340A\001\"?\n\014PartitionKey\022\035\n\031P" + + "ARTITION_KEY_UNSPECIFIED\020\000\022\020\n\014REQUEST_TI" + + "ME\020\001B\r\n\013destination\"\345\001\n\"AnalyzeIamPolicy" + + "LongrunningRequest\022J\n\016analysis_query\030\001 \001" + + "(\0132-.google.cloud.asset.v1.IamPolicyAnal" + + "ysisQueryB\003\340A\002\022!\n\024saved_analysis_query\030\003" + + " \001(\tB\003\340A\001\022P\n\routput_config\030\002 \001(\01324.googl" + + "e.cloud.asset.v1.IamPolicyAnalysisOutput" + + "ConfigB\003\340A\002\"%\n#AnalyzeIamPolicyLongrunni" + + "ngResponse\"\267\005\n\nSavedQuery\022\014\n\004name\030\001 \001(\t\022" + + "\023\n\013description\030\002 \001(\t\0224\n\013create_time\030\003 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022\024\n\007cr" + + "eator\030\004 \001(\tB\003\340A\003\0229\n\020last_update_time\030\005 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022\031\n\014l" + + "ast_updater\030\006 \001(\tB\003\340A\003\022=\n\006labels\030\007 \003(\0132-" + + ".google.cloud.asset.v1.SavedQuery.Labels" + + "Entry\022?\n\007content\030\010 \001(\0132..google.cloud.as" + + "set.v1.SavedQuery.QueryContent\032s\n\014QueryC" + + "ontent\022R\n\031iam_policy_analysis_query\030\001 \001(" + + "\0132-.google.cloud.asset.v1.IamPolicyAnaly" + + "sisQueryH\000B\017\n\rquery_content\032-\n\013LabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\277\001\352A\273" + + "\001\n$cloudasset.googleapis.com/SavedQuery\022" + + "-projects/{project}/savedQueries/{saved_" + + "query}\022+folders/{folder}/savedQueries/{s" + + "aved_query}\0227organizations/{organization" + + "}/savedQueries/{saved_query}\"\261\001\n\027CreateS" + + "avedQueryRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&" + + "\022$cloudasset.googleapis.com/SavedQuery\022;" + + "\n\013saved_query\030\002 \001(\0132!.google.cloud.asset" + + ".v1.SavedQueryB\003\340A\002\022\033\n\016saved_query_id\030\003 " + + "\001(\tB\003\340A\002\"R\n\024GetSavedQueryRequest\022:\n\004name" + + "\030\001 \001(\tB,\340A\002\372A&\n$cloudasset.googleapis.co" + + "m/SavedQuery\"\235\001\n\027ListSavedQueriesRequest" + + "\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$cloudasset.goo" + + "gleapis.com/SavedQuery\022\023\n\006filter\030\004 \001(\tB\003" + + "\340A\001\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_toke" + + "n\030\003 \001(\tB\003\340A\001\"m\n\030ListSavedQueriesResponse" + + "\0228\n\rsaved_queries\030\001 \003(\0132!.google.cloud.a" + + "sset.v1.SavedQuery\022\027\n\017next_page_token\030\002 " + + "\001(\t\"\214\001\n\027UpdateSavedQueryRequest\022;\n\013saved" + + "_query\030\001 \001(\0132!.google.cloud.asset.v1.Sav" + + "edQueryB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.goog" + + "le.protobuf.FieldMaskB\003\340A\002\"U\n\027DeleteSave" + + "dQueryRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$clo" + + "udasset.googleapis.com/SavedQuery\"\326\001\n\022An" + + "alyzeMoveRequest\022\025\n\010resource\030\001 \001(\tB\003\340A\002\022" + + "\037\n\022destination_parent\030\002 \001(\tB\003\340A\002\022D\n\004view" + + "\030\003 \001(\01626.google.cloud.asset.v1.AnalyzeMo" + + "veRequest.AnalysisView\"B\n\014AnalysisView\022\035" + + "\n\031ANALYSIS_VIEW_UNSPECIFIED\020\000\022\010\n\004FULL\020\001\022" + + "\t\n\005BASIC\020\002\"Q\n\023AnalyzeMoveResponse\022:\n\rmov" + + "e_analysis\030\001 \003(\0132#.google.cloud.asset.v1" + + ".MoveAnalysis\"\222\001\n\014MoveAnalysis\022\024\n\014displa" + + "y_name\030\001 \001(\t\022=\n\010analysis\030\002 \001(\0132).google." + + "cloud.asset.v1.MoveAnalysisResultH\000\022#\n\005e" + + "rror\030\003 \001(\0132\022.google.rpc.StatusH\000B\010\n\006resu" + + "lt\"~\n\022MoveAnalysisResult\0223\n\010blockers\030\001 \003" + + "(\0132!.google.cloud.asset.v1.MoveImpact\0223\n" + + "\010warnings\030\002 \003(\0132!.google.cloud.asset.v1." + + "MoveImpact\"\034\n\nMoveImpact\022\016\n\006detail\030\001 \001(\t" + + "\"\327\001\n\027QueryAssetsOutputConfig\022`\n\024bigquery" + + "_destination\030\001 \001(\0132B.google.cloud.asset." + + "v1.QueryAssetsOutputConfig.BigQueryDesti" + + "nation\032Z\n\023BigQueryDestination\022\024\n\007dataset" + + "\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\tB\003\340A\002\022\031\n\021write" + + "_disposition\030\003 \001(\t\"\276\003\n\022QueryAssetsReques" + + "t\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037cloudasset.go" + + "ogleapis.com/Asset\022\030\n\tstatement\030\002 \001(\tB\003\340" + + "A\001H\000\022\034\n\rjob_reference\030\003 \001(\tB\003\340A\001H\000\022\026\n\tpa" + + "ge_size\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005 \001(\tB\003" + + "\340A\001\022/\n\007timeout\030\006 \001(\0132\031.google.protobuf.D" + + "urationB\003\340A\001\022B\n\020read_time_window\030\007 \001(\0132!" + + ".google.cloud.asset.v1.TimeWindowB\003\340A\001H\001" + + "\0224\n\tread_time\030\010 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\001H\001\022J\n\routput_config\030\t \001(\0132.." + + "google.cloud.asset.v1.QueryAssetsOutputC" + + "onfigB\003\340A\001B\007\n\005queryB\006\n\004time\"\360\001\n\023QueryAss" + + "etsResponse\022\025\n\rjob_reference\030\001 \001(\t\022\014\n\004do" + + "ne\030\002 \001(\010\022#\n\005error\030\003 \001(\0132\022.google.rpc.Sta" + + "tusH\000\022:\n\014query_result\030\004 \001(\0132\".google.clo" + + "ud.asset.v1.QueryResultH\000\022G\n\routput_conf" + + "ig\030\005 \001(\0132..google.cloud.asset.v1.QueryAs" + + "setsOutputConfigH\000B\n\n\010response\"\225\001\n\013Query" + + "Result\022%\n\004rows\030\001 \003(\0132\027.google.protobuf.S" + + "truct\0222\n\006schema\030\002 \001(\0132\".google.cloud.ass" + + "et.v1.TableSchema\022\027\n\017next_page_token\030\003 \001" + + "(\t\022\022\n\ntotal_rows\030\004 \001(\003\"F\n\013TableSchema\0227\n" + + "\006fields\030\001 \003(\0132\'.google.cloud.asset.v1.Ta" + + "bleFieldSchema\"v\n\020TableFieldSchema\022\r\n\005fi" + + "eld\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\022\014\n\004mode\030\003 \001(\t\0227\n" + + "\006fields\030\004 \003(\0132\'.google.cloud.asset.v1.Ta" + + "bleFieldSchema\"Y\n#BatchGetEffectiveIamPo" + + "liciesRequest\022\030\n\005scope\030\001 \001(\tB\t\340A\002\372A\003\022\001*\022" + + "\030\n\005names\030\003 \003(\tB\t\340A\002\372A\003\n\001*\"\376\002\n$BatchGetEf" + + "fectiveIamPoliciesResponse\022f\n\016policy_res" + + "ults\030\002 \003(\0132N.google.cloud.asset.v1.Batch" + + "GetEffectiveIamPoliciesResponse.Effectiv" + + "eIamPolicy\032\355\001\n\022EffectiveIamPolicy\022\032\n\022ful" + + "l_resource_name\030\001 \001(\t\022k\n\010policies\030\002 \003(\0132" + + "Y.google.cloud.asset.v1.BatchGetEffectiv" + + "eIamPoliciesResponse.EffectiveIamPolicy." + + "PolicyInfo\032N\n\nPolicyInfo\022\031\n\021attached_res" + + "ource\030\001 \001(\t\022%\n\006policy\030\002 \001(\0132\025.google.iam" + + ".v1.Policy*\220\001\n\013ContentType\022\034\n\030CONTENT_TY" + + "PE_UNSPECIFIED\020\000\022\014\n\010RESOURCE\020\001\022\016\n\nIAM_PO" + + "LICY\020\002\022\016\n\nORG_POLICY\020\004\022\021\n\rACCESS_POLICY\020" + + "\005\022\020\n\014OS_INVENTORY\020\006\022\020\n\014RELATIONSHIP\020\0072\233\033" + + "\n\014AssetService\022\336\001\n\014ExportAssets\022*.google" + + ".cloud.asset.v1.ExportAssetsRequest\032\035.go" + + "ogle.longrunning.Operation\"\202\001\202\323\344\223\002\"\"\035/v1" + + "/{parent=*/*}:exportAssets:\001*\312AW\n*google" + + ".cloud.asset.v1.ExportAssetsResponse\022)go" + + "ogle.cloud.asset.v1.ExportAssetsRequest\022" + + "\213\001\n\nListAssets\022(.google.cloud.asset.v1.L" + + "istAssetsRequest\032).google.cloud.asset.v1" + + ".ListAssetsResponse\"(\202\323\344\223\002\031\022\027/v1/{parent" + + "=*/*}/assets\332A\006parent\022\262\001\n\025BatchGetAssets" + + "History\0223.google.cloud.asset.v1.BatchGet" + + "AssetsHistoryRequest\0324.google.cloud.asse" + + "t.v1.BatchGetAssetsHistoryResponse\".\202\323\344\223" + + "\002(\022&/v1/{parent=*/*}:batchGetAssetsHisto" + + "ry\022\177\n\nCreateFeed\022(.google.cloud.asset.v1" + + ".CreateFeedRequest\032\033.google.cloud.asset." + + "v1.Feed\"*\202\323\344\223\002\033\"\026/v1/{parent=*/*}/feeds:" + + "\001*\332A\006parent\022t\n\007GetFeed\022%.google.cloud.as" + + "set.v1.GetFeedRequest\032\033.google.cloud.ass" + + "et.v1.Feed\"%\202\323\344\223\002\030\022\026/v1/{name=*/*/feeds/" + + "*}\332A\004name\022\207\001\n\tListFeeds\022\'.google.cloud.a" + + "sset.v1.ListFeedsRequest\032(.google.cloud." + + "asset.v1.ListFeedsResponse\"\'\202\323\344\223\002\030\022\026/v1/" + + "{parent=*/*}/feeds\332A\006parent\022\202\001\n\nUpdateFe" + + "ed\022(.google.cloud.asset.v1.UpdateFeedReq" + + "uest\032\033.google.cloud.asset.v1.Feed\"-\202\323\344\223\002" + + " 2\033/v1/{feed.name=*/*/feeds/*}:\001*\332A\004feed" + + "\022u\n\nDeleteFeed\022(.google.cloud.asset.v1.D" + + "eleteFeedRequest\032\026.google.protobuf.Empty" + + "\"%\202\323\344\223\002\030*\026/v1/{name=*/*/feeds/*}\332A\004name\022" + + "\277\001\n\022SearchAllResources\0220.google.cloud.as" + + "set.v1.SearchAllResourcesRequest\0321.googl" + + "e.cloud.asset.v1.SearchAllResourcesRespo" + + "nse\"D\202\323\344\223\002$\022\"/v1/{scope=*/*}:searchAllRe" + + "sources\332A\027scope,query,asset_types\022\273\001\n\024Se" + + "archAllIamPolicies\0222.google.cloud.asset." + + "v1.SearchAllIamPoliciesRequest\0323.google." + + "cloud.asset.v1.SearchAllIamPoliciesRespo" + + "nse\":\202\323\344\223\002&\022$/v1/{scope=*/*}:searchAllIa" + + "mPolicies\332A\013scope,query\022\254\001\n\020AnalyzeIamPo" + + "licy\022..google.cloud.asset.v1.AnalyzeIamP" + + "olicyRequest\032/.google.cloud.asset.v1.Ana" + + "lyzeIamPolicyResponse\"7\202\323\344\223\0021\022//v1/{anal" + + "ysis_query.scope=*/*}:analyzeIamPolicy\022\270" + + "\002\n\033AnalyzeIamPolicyLongrunning\0229.google." + + "cloud.asset.v1.AnalyzeIamPolicyLongrunni" + + "ngRequest\032\035.google.longrunning.Operation" + + "\"\276\001\202\323\344\223\002?\":/v1/{analysis_query.scope=*/*" + + "}:analyzeIamPolicyLongrunning:\001*\312Av\n9goo" + + "gle.cloud.asset.v1.AnalyzeIamPolicyLongr" + + "unningResponse\0229google.cloud.asset.v1.An" + + "alyzeIamPolicyLongrunningMetadata\022\214\001\n\013An" + + "alyzeMove\022).google.cloud.asset.v1.Analyz" + + "eMoveRequest\032*.google.cloud.asset.v1.Ana" + + "lyzeMoveResponse\"&\202\323\344\223\002 \022\036/v1/{resource=" + + "*/*}:analyzeMove\022\215\001\n\013QueryAssets\022).googl" + + "e.cloud.asset.v1.QueryAssetsRequest\032*.go" + + "ogle.cloud.asset.v1.QueryAssetsResponse\"" + + "\'\202\323\344\223\002!\"\034/v1/{parent=*/*}:queryAssets:\001*" + + "\022\275\001\n\020CreateSavedQuery\022..google.cloud.ass" + + "et.v1.CreateSavedQueryRequest\032!.google.c" + + "loud.asset.v1.SavedQuery\"V\202\323\344\223\002,\"\035/v1/{p" + + "arent=*/*}/savedQueries:\013saved_query\332A!p" + + "arent,saved_query,saved_query_id\022\215\001\n\rGet" + + "SavedQuery\022+.google.cloud.asset.v1.GetSa" + + "vedQueryRequest\032!.google.cloud.asset.v1." + + "SavedQuery\",\202\323\344\223\002\037\022\035/v1/{name=*/*/savedQ" + + "ueries/*}\332A\004name\022\243\001\n\020ListSavedQueries\022.." + + "google.cloud.asset.v1.ListSavedQueriesRe" + + "quest\032/.google.cloud.asset.v1.ListSavedQ" + + "ueriesResponse\".\202\323\344\223\002\037\022\035/v1/{parent=*/*}" + + "/savedQueries\332A\006parent\022\277\001\n\020UpdateSavedQu" + + "ery\022..google.cloud.asset.v1.UpdateSavedQ" + + "ueryRequest\032!.google.cloud.asset.v1.Save" + + "dQuery\"X\202\323\344\223\00282)/v1/{saved_query.name=*/" + + "*/savedQueries/*}:\013saved_query\332A\027saved_q" + + "uery,update_mask\022\210\001\n\020DeleteSavedQuery\022.." + + "google.cloud.asset.v1.DeleteSavedQueryRe" + + "quest\032\026.google.protobuf.Empty\",\202\323\344\223\002\037*\035/" + + "v1/{name=*/*/savedQueries/*}\332A\004name\022\316\001\n\034" + + "BatchGetEffectiveIamPolicies\022:.google.cl" + + "oud.asset.v1.BatchGetEffectiveIamPolicie" + + "sRequest\032;.google.cloud.asset.v1.BatchGe" + + "tEffectiveIamPoliciesResponse\"5\202\323\344\223\002/\022-/" + + "v1/{scope=*/*}/effectiveIamPolicies:batc" + + "hGet\032M\312A\031cloudasset.googleapis.com\322A.htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "ormB\234\001\n\031com.google.cloud.asset.v1B\021Asset" + + "ServiceProtoP\001Z:google.golang.org/genpro" + + "to/googleapis/cloud/asset/v1;asset\252\002\025Goo" + + "gle.Cloud.Asset.V1\312\002\025Google\\Cloud\\Asset\\" + + "V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.asset.v1.AssetProto.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(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.type.ExprProto.getDescriptor(), + }); + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor, + new java.lang.String[] { "CreateTime", }); + internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_asset_v1_ExportAssetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor, + new java.lang.String[] { "Parent", "ReadTime", "AssetTypes", "ContentType", "OutputConfig", "RelationshipTypes", }); + internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_asset_v1_ExportAssetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor, + new java.lang.String[] { "ReadTime", "OutputConfig", "OutputResult", }); + internal_static_google_cloud_asset_v1_ListAssetsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_asset_v1_ListAssetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ListAssetsRequest_descriptor, + new java.lang.String[] { "Parent", "ReadTime", "AssetTypes", "ContentType", "PageSize", "PageToken", "RelationshipTypes", }); + internal_static_google_cloud_asset_v1_ListAssetsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_asset_v1_ListAssetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ListAssetsResponse_descriptor, + new java.lang.String[] { "ReadTime", "Assets", "NextPageToken", }); + internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor, + new java.lang.String[] { "Parent", "AssetNames", "ContentType", "ReadTimeWindow", "RelationshipTypes", }); + internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor, + new java.lang.String[] { "Assets", }); + internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_asset_v1_CreateFeedRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor, + new java.lang.String[] { "Parent", "FeedId", "Feed", }); + internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_asset_v1_GetFeedRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_asset_v1_ListFeedsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor, + new java.lang.String[] { "Parent", }); + internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_asset_v1_ListFeedsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor, + new java.lang.String[] { "Feeds", }); + internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_asset_v1_UpdateFeedRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor, + new java.lang.String[] { "Feed", "UpdateMask", }); + internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_asset_v1_DeleteFeedRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_asset_v1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_asset_v1_OutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_OutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "BigqueryDestination", "Destination", }); + internal_static_google_cloud_asset_v1_OutputResult_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_asset_v1_OutputResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_OutputResult_descriptor, + new java.lang.String[] { "GcsResult", "Result", }); + internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_asset_v1_GcsOutputResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor, + new java.lang.String[] { "Uris", }); + internal_static_google_cloud_asset_v1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_asset_v1_GcsDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_GcsDestination_descriptor, + new java.lang.String[] { "Uri", "UriPrefix", "ObjectUri", }); + internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_asset_v1_BigQueryDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor, + new java.lang.String[] { "Dataset", "Table", "Force", "PartitionSpec", "SeparateTablesPerAssetType", }); + internal_static_google_cloud_asset_v1_PartitionSpec_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_asset_v1_PartitionSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_PartitionSpec_descriptor, + new java.lang.String[] { "PartitionKey", }); + internal_static_google_cloud_asset_v1_PubsubDestination_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_asset_v1_PubsubDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_PubsubDestination_descriptor, + new java.lang.String[] { "Topic", }); + internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_asset_v1_FeedOutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor, + new java.lang.String[] { "PubsubDestination", "Destination", }); + internal_static_google_cloud_asset_v1_Feed_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_asset_v1_Feed_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_Feed_descriptor, + new java.lang.String[] { "Name", "AssetNames", "AssetTypes", "ContentType", "FeedOutputConfig", "Condition", "RelationshipTypes", }); + internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor, + new java.lang.String[] { "Scope", "Query", "AssetTypes", "PageSize", "PageToken", "OrderBy", "ReadMask", }); + internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor, + new java.lang.String[] { "Results", "NextPageToken", }); + internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor, + new java.lang.String[] { "Scope", "Query", "PageSize", "PageToken", "AssetTypes", "OrderBy", }); + internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor, + new java.lang.String[] { "Results", "NextPageToken", }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor, + new java.lang.String[] { "Scope", "ResourceSelector", "IdentitySelector", "AccessSelector", "Options", "ConditionContext", }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_descriptor, + new java.lang.String[] { "FullResourceName", }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_descriptor, + new java.lang.String[] { "Identity", }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_descriptor, + new java.lang.String[] { "Roles", "Permissions", }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_descriptor, + new java.lang.String[] { "ExpandGroups", "ExpandRoles", "ExpandResources", "OutputResourceEdges", "OutputGroupEdges", "AnalyzeServiceAccountImpersonation", }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor.getNestedTypes().get(4); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_descriptor, + new java.lang.String[] { "AccessTime", "TimeContext", }); + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_descriptor, + new java.lang.String[] { "AnalysisQuery", "SavedAnalysisQuery", "ExecutionTimeout", }); + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor, + new java.lang.String[] { "MainAnalysis", "ServiceAccountImpersonationAnalysis", "FullyExplored", }); + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor = + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor, + new java.lang.String[] { "AnalysisQuery", "AnalysisResults", "FullyExplored", "NonCriticalErrors", }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "BigqueryDestination", "Destination", }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor, + new java.lang.String[] { "Uri", }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor, + new java.lang.String[] { "Dataset", "TablePrefix", "PartitionKey", "WriteDisposition", }); + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_descriptor, + new java.lang.String[] { "AnalysisQuery", "SavedAnalysisQuery", "OutputConfig", }); + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_asset_v1_SavedQuery_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_asset_v1_SavedQuery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_SavedQuery_descriptor, + new java.lang.String[] { "Name", "Description", "CreateTime", "Creator", "LastUpdateTime", "LastUpdater", "Labels", "Content", }); + internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_descriptor = + internal_static_google_cloud_asset_v1_SavedQuery_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_descriptor, + new java.lang.String[] { "IamPolicyAnalysisQuery", "QueryContent", }); + internal_static_google_cloud_asset_v1_SavedQuery_LabelsEntry_descriptor = + internal_static_google_cloud_asset_v1_SavedQuery_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_asset_v1_SavedQuery_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_SavedQuery_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_descriptor, + new java.lang.String[] { "Parent", "SavedQuery", "SavedQueryId", }); + internal_static_google_cloud_asset_v1_GetSavedQueryRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_asset_v1_GetSavedQueryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_GetSavedQueryRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); + internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_descriptor, + new java.lang.String[] { "SavedQueries", "NextPageToken", }); + internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_descriptor, + new java.lang.String[] { "SavedQuery", "UpdateMask", }); + internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_descriptor, + new java.lang.String[] { "Resource", "DestinationParent", "View", }); + internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_descriptor, + new java.lang.String[] { "MoveAnalysis", }); + internal_static_google_cloud_asset_v1_MoveAnalysis_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_cloud_asset_v1_MoveAnalysis_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_MoveAnalysis_descriptor, + new java.lang.String[] { "DisplayName", "Analysis", "Error", "Result", }); + internal_static_google_cloud_asset_v1_MoveAnalysisResult_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_cloud_asset_v1_MoveAnalysisResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_MoveAnalysisResult_descriptor, + new java.lang.String[] { "Blockers", "Warnings", }); + internal_static_google_cloud_asset_v1_MoveImpact_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_cloud_asset_v1_MoveImpact_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_MoveImpact_descriptor, + new java.lang.String[] { "Detail", }); + internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor, + new java.lang.String[] { "BigqueryDestination", }); + internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_descriptor = + internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_descriptor, + new java.lang.String[] { "Dataset", "Table", "WriteDisposition", }); + internal_static_google_cloud_asset_v1_QueryAssetsRequest_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_cloud_asset_v1_QueryAssetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_QueryAssetsRequest_descriptor, + new java.lang.String[] { "Parent", "Statement", "JobReference", "PageSize", "PageToken", "Timeout", "ReadTimeWindow", "ReadTime", "OutputConfig", "Query", "Time", }); + internal_static_google_cloud_asset_v1_QueryAssetsResponse_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_cloud_asset_v1_QueryAssetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_QueryAssetsResponse_descriptor, + new java.lang.String[] { "JobReference", "Done", "Error", "QueryResult", "OutputConfig", "Response", }); + internal_static_google_cloud_asset_v1_QueryResult_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_cloud_asset_v1_QueryResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_QueryResult_descriptor, + new java.lang.String[] { "Rows", "Schema", "NextPageToken", "TotalRows", }); + internal_static_google_cloud_asset_v1_TableSchema_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_google_cloud_asset_v1_TableSchema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_TableSchema_descriptor, + new java.lang.String[] { "Fields", }); + internal_static_google_cloud_asset_v1_TableFieldSchema_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_google_cloud_asset_v1_TableFieldSchema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_TableFieldSchema_descriptor, + new java.lang.String[] { "Field", "Type", "Mode", "Fields", }); + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_descriptor = + getDescriptor().getMessageTypes().get(50); + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_descriptor, + new java.lang.String[] { "Scope", "Names", }); + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor, + new java.lang.String[] { "PolicyResults", }); + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor = + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor, + new java.lang.String[] { "FullResourceName", "Policies", }); + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor = + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor, + new java.lang.String[] { "AttachedResource", "Policy", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.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.asset.v1.AssetProto.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(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.type.ExprProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResource.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResource.java similarity index 74% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResource.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResource.java index 35e4ee10167e..853fe14ee973 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResource.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResource.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** - * - * *
      * Attached resource representation, which is defined by the corresponding
      * service provider. It represents an attached resource's payload.
    @@ -28,16 +11,15 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.AttachedResource}
      */
    -public final class AttachedResource extends com.google.protobuf.GeneratedMessageV3
    -    implements
    +public final class AttachedResource extends
    +    com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AttachedResource)
         AttachedResourceOrBuilder {
    -  private static final long serialVersionUID = 0L;
    +private static final long serialVersionUID = 0L;
       // Use AttachedResource.newBuilder() to construct.
       private AttachedResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -
       private AttachedResource() {
         assetType_ = "";
         versionedResources_ = java.util.Collections.emptyList();
    @@ -45,97 +27,32 @@ private AttachedResource() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(
    +      UnusedPrivateParameter unused) {
         return new AttachedResource();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet
    +  getUnknownFields() {
         return this.unknownFields;
       }
    -
    -  private AttachedResource(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              assetType_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                versionedResources_ =
    -                    new java.util.ArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              versionedResources_.add(
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.VersionedResource.parser(), extensionRegistry));
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        versionedResources_ = java.util.Collections.unmodifiableList(versionedResources_);
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
    -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetProto
    -        .internal_static_google_cloud_asset_v1_AttachedResource_descriptor;
    +  public static final com.google.protobuf.Descriptors.Descriptor
    +      getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_AttachedResource_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetProto
    -        .internal_static_google_cloud_asset_v1_AttachedResource_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_AttachedResource_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1.AttachedResource.class,
    -            com.google.cloud.asset.v1.AttachedResource.Builder.class);
    +            com.google.cloud.asset.v1.AttachedResource.class, com.google.cloud.asset.v1.AttachedResource.Builder.class);
       }
     
       public static final int ASSET_TYPE_FIELD_NUMBER = 1;
       private volatile java.lang.Object assetType_;
       /**
    -   *
    -   *
        * 
        * The type of this attached resource.
        * Example: `osconfig.googleapis.com/Inventory`
    @@ -145,7 +62,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
    * * string asset_type = 1; - * * @return The assetType. */ @java.lang.Override @@ -154,15 +70,14 @@ public java.lang.String getAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; } } /** - * - * *
        * The type of this attached resource.
        * Example: `osconfig.googleapis.com/Inventory`
    @@ -172,15 +87,16 @@ public java.lang.String getAssetType() {
        * 
    * * string asset_type = 1; - * * @return The bytes for assetType. */ @java.lang.Override - public com.google.protobuf.ByteString getAssetTypeBytes() { + public com.google.protobuf.ByteString + getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetType_ = b; return b; } else { @@ -191,8 +107,6 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { public static final int VERSIONED_RESOURCES_FIELD_NUMBER = 3; private java.util.List versionedResources_; /** - * - * *
        * Versioned resource representations of this attached resource. This is
        * repeated because there could be multiple versions of the attached resource
    @@ -206,8 +120,6 @@ public java.util.List getVersionedR
         return versionedResources_;
       }
       /**
    -   *
    -   *
        * 
        * Versioned resource representations of this attached resource. This is
        * repeated because there could be multiple versions of the attached resource
    @@ -217,13 +129,11 @@ public java.util.List getVersionedR
        * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;
        */
       @java.lang.Override
    -  public java.util.List
    +  public java.util.List 
           getVersionedResourcesOrBuilderList() {
         return versionedResources_;
       }
       /**
    -   *
    -   *
        * 
        * Versioned resource representations of this attached resource. This is
        * repeated because there could be multiple versions of the attached resource
    @@ -237,8 +147,6 @@ public int getVersionedResourcesCount() {
         return versionedResources_.size();
       }
       /**
    -   *
    -   *
        * 
        * Versioned resource representations of this attached resource. This is
        * repeated because there could be multiple versions of the attached resource
    @@ -252,8 +160,6 @@ public com.google.cloud.asset.v1.VersionedResource getVersionedResources(int ind
         return versionedResources_.get(index);
       }
       /**
    -   *
    -   *
        * 
        * Versioned resource representations of this attached resource. This is
        * repeated because there could be multiple versions of the attached resource
    @@ -269,7 +175,6 @@ public com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResource
       }
     
       private byte memoizedIsInitialized = -1;
    -
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -281,14 +186,15 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output)
    +                      throws java.io.IOException {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetType_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, assetType_);
         }
         for (int i = 0; i < versionedResources_.size(); i++) {
           output.writeMessage(3, versionedResources_.get(i));
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -301,10 +207,10 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, assetType_);
         }
         for (int i = 0; i < versionedResources_.size(); i++) {
    -      size +=
    -          com.google.protobuf.CodedOutputStream.computeMessageSize(3, versionedResources_.get(i));
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(3, versionedResources_.get(i));
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -312,17 +218,18 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -      return true;
    +     return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1.AttachedResource)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1.AttachedResource other =
    -        (com.google.cloud.asset.v1.AttachedResource) obj;
    +    com.google.cloud.asset.v1.AttachedResource other = (com.google.cloud.asset.v1.AttachedResource) obj;
     
    -    if (!getAssetType().equals(other.getAssetType())) return false;
    -    if (!getVersionedResourcesList().equals(other.getVersionedResourcesList())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getAssetType()
    +        .equals(other.getAssetType())) return false;
    +    if (!getVersionedResourcesList()
    +        .equals(other.getVersionedResourcesList())) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -339,109 +246,102 @@ public int hashCode() {
           hash = (37 * hash) + VERSIONED_RESOURCES_FIELD_NUMBER;
           hash = (53 * hash) + getVersionedResourcesList().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1.AttachedResource parseFrom(java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1.AttachedResource parseFrom(
    +      java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.AttachedResource parseFrom(
    -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.AttachedResource parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.AttachedResource 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.asset.v1.AttachedResource parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.AttachedResource parseFrom(
    -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.AttachedResource parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.AttachedResource parseFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
    -
    -  public static com.google.cloud.asset.v1.AttachedResource parseDelimitedFrom(
    -      java.io.InputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    +  public static com.google.cloud.asset.v1.AttachedResource parseDelimitedFrom(java.io.InputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.AttachedResource parseDelimitedFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.AttachedResource parseFrom(
    -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.AttachedResource parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() {
    -    return newBuilder();
    -  }
    -
    +  public Builder newBuilderForType() { return newBuilder(); }
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    -
       public static Builder newBuilder(com.google.cloud.asset.v1.AttachedResource prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    -
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE
    +        ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(
    +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    -   *
    -   *
        * 
        * Attached resource representation, which is defined by the corresponding
        * service provider. It represents an attached resource's payload.
    @@ -449,41 +349,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        * Protobuf type {@code google.cloud.asset.v1.AttachedResource}
        */
    -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    -      implements
    +  public static final class Builder extends
    +      com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AttachedResource)
           com.google.cloud.asset.v1.AttachedResourceOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_AttachedResource_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor
    +        getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_AttachedResource_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_AttachedResource_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_AttachedResource_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.AttachedResource.class,
    -              com.google.cloud.asset.v1.AttachedResource.Builder.class);
    +              com.google.cloud.asset.v1.AttachedResource.class, com.google.cloud.asset.v1.AttachedResource.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.AttachedResource.newBuilder()
         private Builder() {
    -      maybeForceBuilderInitialization();
    +
         }
     
    -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(
    +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
     
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getVersionedResourcesFieldBuilder();
    -      }
         }
    -
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -491,17 +383,18 @@ public Builder clear() {
     
           if (versionedResourcesBuilder_ == null) {
             versionedResources_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        versionedResources_ = null;
             versionedResourcesBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
           return this;
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_AttachedResource_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor
    +        getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_AttachedResource_descriptor;
         }
     
         @java.lang.Override
    @@ -520,8 +413,7 @@ public com.google.cloud.asset.v1.AttachedResource build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1.AttachedResource buildPartial() {
    -      com.google.cloud.asset.v1.AttachedResource result =
    -          new com.google.cloud.asset.v1.AttachedResource(this);
    +      com.google.cloud.asset.v1.AttachedResource result = new com.google.cloud.asset.v1.AttachedResource(this);
           int from_bitField0_ = bitField0_;
           result.assetType_ = assetType_;
           if (versionedResourcesBuilder_ == null) {
    @@ -541,39 +433,38 @@ public com.google.cloud.asset.v1.AttachedResource buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    -
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.AttachedResource) {
    -        return mergeFrom((com.google.cloud.asset.v1.AttachedResource) other);
    +        return mergeFrom((com.google.cloud.asset.v1.AttachedResource)other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -604,16 +495,15 @@ public Builder mergeFrom(com.google.cloud.asset.v1.AttachedResource other) {
                 versionedResourcesBuilder_ = null;
                 versionedResources_ = other.versionedResources_;
                 bitField0_ = (bitField0_ & ~0x00000001);
    -            versionedResourcesBuilder_ =
    -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
    -                    ? getVersionedResourcesFieldBuilder()
    -                    : null;
    +            versionedResourcesBuilder_ = 
    +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
    +                 getVersionedResourcesFieldBuilder() : null;
               } else {
                 versionedResourcesBuilder_.addAllMessages(other.versionedResources_);
               }
             }
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -628,26 +518,54 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.AttachedResource parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10: {
    +              assetType_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 10
    +            case 26: {
    +              com.google.cloud.asset.v1.VersionedResource m =
    +                  input.readMessage(
    +                      com.google.cloud.asset.v1.VersionedResource.parser(),
    +                      extensionRegistry);
    +              if (versionedResourcesBuilder_ == null) {
    +                ensureVersionedResourcesIsMutable();
    +                versionedResources_.add(m);
    +              } else {
    +                versionedResourcesBuilder_.addMessage(m);
    +              }
    +              break;
    +            } // case 26
    +            default: {
    +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                done = true; // was an endgroup tag
    +              }
    +              break;
    +            } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1.AttachedResource) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
    -
         private int bitField0_;
     
         private java.lang.Object assetType_ = "";
         /**
    -     *
    -     *
          * 
          * The type of this attached resource.
          * Example: `osconfig.googleapis.com/Inventory`
    @@ -657,13 +575,13 @@ public Builder mergeFrom(
          * 
    * * string asset_type = 1; - * * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; @@ -672,8 +590,6 @@ public java.lang.String getAssetType() { } } /** - * - * *
          * The type of this attached resource.
          * Example: `osconfig.googleapis.com/Inventory`
    @@ -683,14 +599,15 @@ public java.lang.String getAssetType() {
          * 
    * * string asset_type = 1; - * * @return The bytes for assetType. */ - public com.google.protobuf.ByteString getAssetTypeBytes() { + public com.google.protobuf.ByteString + getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetType_ = b; return b; } else { @@ -698,8 +615,6 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { } } /** - * - * *
          * The type of this attached resource.
          * Example: `osconfig.googleapis.com/Inventory`
    @@ -709,22 +624,20 @@ public com.google.protobuf.ByteString getAssetTypeBytes() {
          * 
    * * string asset_type = 1; - * * @param value The assetType to set. * @return This builder for chaining. */ - public Builder setAssetType(java.lang.String value) { + public Builder setAssetType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + assetType_ = value; onChanged(); return this; } /** - * - * *
          * The type of this attached resource.
          * Example: `osconfig.googleapis.com/Inventory`
    @@ -734,18 +647,15 @@ public Builder setAssetType(java.lang.String value) {
          * 
    * * string asset_type = 1; - * * @return This builder for chaining. */ public Builder clearAssetType() { - + assetType_ = getDefaultInstance().getAssetType(); onChanged(); return this; } /** - * - * *
          * The type of this attached resource.
          * Example: `osconfig.googleapis.com/Inventory`
    @@ -755,42 +665,34 @@ public Builder clearAssetType() {
          * 
    * * string asset_type = 1; - * * @param value The bytes for assetType to set. * @return This builder for chaining. */ - public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { + public Builder setAssetTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; onChanged(); return this; } private java.util.List versionedResources_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureVersionedResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - versionedResources_ = - new java.util.ArrayList( - versionedResources_); + versionedResources_ = new java.util.ArrayList(versionedResources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.VersionedResource, - com.google.cloud.asset.v1.VersionedResource.Builder, - com.google.cloud.asset.v1.VersionedResourceOrBuilder> - versionedResourcesBuilder_; + com.google.cloud.asset.v1.VersionedResource, com.google.cloud.asset.v1.VersionedResource.Builder, com.google.cloud.asset.v1.VersionedResourceOrBuilder> versionedResourcesBuilder_; /** - * - * *
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -807,8 +709,6 @@ public java.util.List getVersionedR
           }
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -825,8 +725,6 @@ public int getVersionedResourcesCount() {
           }
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -843,8 +741,6 @@ public com.google.cloud.asset.v1.VersionedResource getVersionedResources(int ind
           }
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -868,8 +764,6 @@ public Builder setVersionedResources(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -890,8 +784,6 @@ public Builder setVersionedResources(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -914,8 +806,6 @@ public Builder addVersionedResources(com.google.cloud.asset.v1.VersionedResource
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -939,8 +829,6 @@ public Builder addVersionedResources(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -961,8 +849,6 @@ public Builder addVersionedResources(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -983,8 +869,6 @@ public Builder addVersionedResources(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -997,7 +881,8 @@ public Builder addAllVersionedResources(
             java.lang.Iterable values) {
           if (versionedResourcesBuilder_ == null) {
             ensureVersionedResourcesIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, versionedResources_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    +            values, versionedResources_);
             onChanged();
           } else {
             versionedResourcesBuilder_.addAllMessages(values);
    @@ -1005,8 +890,6 @@ public Builder addAllVersionedResources(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -1026,8 +909,6 @@ public Builder clearVersionedResources() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -1047,8 +928,6 @@ public Builder removeVersionedResources(int index) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -1062,8 +941,6 @@ public com.google.cloud.asset.v1.VersionedResource.Builder getVersionedResources
           return getVersionedResourcesFieldBuilder().getBuilder(index);
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -1075,14 +952,11 @@ public com.google.cloud.asset.v1.VersionedResource.Builder getVersionedResources
         public com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResourcesOrBuilder(
             int index) {
           if (versionedResourcesBuilder_ == null) {
    -        return versionedResources_.get(index);
    -      } else {
    +        return versionedResources_.get(index);  } else {
             return versionedResourcesBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -1091,8 +965,8 @@ public com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResource
          *
          * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;
          */
    -    public java.util.List
    -        getVersionedResourcesOrBuilderList() {
    +    public java.util.List 
    +         getVersionedResourcesOrBuilderList() {
           if (versionedResourcesBuilder_ != null) {
             return versionedResourcesBuilder_.getMessageOrBuilderList();
           } else {
    @@ -1100,8 +974,6 @@ public com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResource
           }
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -1111,12 +983,10 @@ public com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResource
          * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;
          */
         public com.google.cloud.asset.v1.VersionedResource.Builder addVersionedResourcesBuilder() {
    -      return getVersionedResourcesFieldBuilder()
    -          .addBuilder(com.google.cloud.asset.v1.VersionedResource.getDefaultInstance());
    +      return getVersionedResourcesFieldBuilder().addBuilder(
    +          com.google.cloud.asset.v1.VersionedResource.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -1127,12 +997,10 @@ public com.google.cloud.asset.v1.VersionedResource.Builder addVersionedResources
          */
         public com.google.cloud.asset.v1.VersionedResource.Builder addVersionedResourcesBuilder(
             int index) {
    -      return getVersionedResourcesFieldBuilder()
    -          .addBuilder(index, com.google.cloud.asset.v1.VersionedResource.getDefaultInstance());
    +      return getVersionedResourcesFieldBuilder().addBuilder(
    +          index, com.google.cloud.asset.v1.VersionedResource.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -1141,22 +1009,16 @@ public com.google.cloud.asset.v1.VersionedResource.Builder addVersionedResources
          *
          * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;
          */
    -    public java.util.List
    -        getVersionedResourcesBuilderList() {
    +    public java.util.List 
    +         getVersionedResourcesBuilderList() {
           return getVersionedResourcesFieldBuilder().getBuilderList();
         }
    -
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.asset.v1.VersionedResource,
    -            com.google.cloud.asset.v1.VersionedResource.Builder,
    -            com.google.cloud.asset.v1.VersionedResourceOrBuilder>
    +        com.google.cloud.asset.v1.VersionedResource, com.google.cloud.asset.v1.VersionedResource.Builder, com.google.cloud.asset.v1.VersionedResourceOrBuilder> 
             getVersionedResourcesFieldBuilder() {
           if (versionedResourcesBuilder_ == null) {
    -        versionedResourcesBuilder_ =
    -            new com.google.protobuf.RepeatedFieldBuilderV3<
    -                com.google.cloud.asset.v1.VersionedResource,
    -                com.google.cloud.asset.v1.VersionedResource.Builder,
    -                com.google.cloud.asset.v1.VersionedResourceOrBuilder>(
    +        versionedResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    +            com.google.cloud.asset.v1.VersionedResource, com.google.cloud.asset.v1.VersionedResource.Builder, com.google.cloud.asset.v1.VersionedResourceOrBuilder>(
                     versionedResources_,
                     ((bitField0_ & 0x00000001) != 0),
                     getParentForChildren(),
    @@ -1165,9 +1027,9 @@ public com.google.cloud.asset.v1.VersionedResource.Builder addVersionedResources
           }
           return versionedResourcesBuilder_;
         }
    -
         @java.lang.Override
    -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(
    +        final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -1177,12 +1039,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    +
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.AttachedResource)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AttachedResource)
       private static final com.google.cloud.asset.v1.AttachedResource DEFAULT_INSTANCE;
    -
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1.AttachedResource();
       }
    @@ -1191,16 +1053,27 @@ public static com.google.cloud.asset.v1.AttachedResource getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser PARSER =
    -      new com.google.protobuf.AbstractParser() {
    -        @java.lang.Override
    -        public AttachedResource parsePartialFrom(
    -            com.google.protobuf.CodedInputStream input,
    -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -            throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new AttachedResource(input, extensionRegistry);
    -        }
    -      };
    +  private static final com.google.protobuf.Parser
    +      PARSER = new com.google.protobuf.AbstractParser() {
    +    @java.lang.Override
    +    public AttachedResource parsePartialFrom(
    +        com.google.protobuf.CodedInputStream input,
    +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        throws com.google.protobuf.InvalidProtocolBufferException {
    +      Builder builder = newBuilder();
    +      try {
    +        builder.mergeFrom(input, extensionRegistry);
    +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +        throw e.setUnfinishedMessage(builder.buildPartial());
    +      } catch (com.google.protobuf.UninitializedMessageException e) {
    +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +      } catch (java.io.IOException e) {
    +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +            .setUnfinishedMessage(builder.buildPartial());
    +      }
    +      return builder.buildPartial();
    +    }
    +  };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1215,4 +1088,6 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1.AttachedResource getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    +
     }
    +
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResourceOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResourceOrBuilder.java
    similarity index 76%
    rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResourceOrBuilder.java
    rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResourceOrBuilder.java
    index 3b927c8731fc..15fc2826e2e8 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResourceOrBuilder.java
    +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResourceOrBuilder.java
    @@ -1,31 +1,13 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/assets.proto
     
     package com.google.cloud.asset.v1;
     
    -public interface AttachedResourceOrBuilder
    -    extends
    +public interface AttachedResourceOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AttachedResource)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    -   *
    -   *
        * 
        * The type of this attached resource.
        * Example: `osconfig.googleapis.com/Inventory`
    @@ -35,13 +17,10 @@ public interface AttachedResourceOrBuilder
        * 
    * * string asset_type = 1; - * * @return The assetType. */ java.lang.String getAssetType(); /** - * - * *
        * The type of this attached resource.
        * Example: `osconfig.googleapis.com/Inventory`
    @@ -51,14 +30,12 @@ public interface AttachedResourceOrBuilder
        * 
    * * string asset_type = 1; - * * @return The bytes for assetType. */ - com.google.protobuf.ByteString getAssetTypeBytes(); + com.google.protobuf.ByteString + getAssetTypeBytes(); /** - * - * *
        * Versioned resource representations of this attached resource. This is
        * repeated because there could be multiple versions of the attached resource
    @@ -67,10 +44,9 @@ public interface AttachedResourceOrBuilder
        *
        * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;
        */
    -  java.util.List getVersionedResourcesList();
    +  java.util.List 
    +      getVersionedResourcesList();
       /**
    -   *
    -   *
        * 
        * Versioned resource representations of this attached resource. This is
        * repeated because there could be multiple versions of the attached resource
    @@ -81,8 +57,6 @@ public interface AttachedResourceOrBuilder
        */
       com.google.cloud.asset.v1.VersionedResource getVersionedResources(int index);
       /**
    -   *
    -   *
        * 
        * Versioned resource representations of this attached resource. This is
        * repeated because there could be multiple versions of the attached resource
    @@ -93,8 +67,6 @@ public interface AttachedResourceOrBuilder
        */
       int getVersionedResourcesCount();
       /**
    -   *
    -   *
        * 
        * Versioned resource representations of this attached resource. This is
        * repeated because there could be multiple versions of the attached resource
    @@ -103,11 +75,9 @@ public interface AttachedResourceOrBuilder
        *
        * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;
        */
    -  java.util.List
    +  java.util.List 
           getVersionedResourcesOrBuilderList();
       /**
    -   *
    -   *
        * 
        * Versioned resource representations of this attached resource. This is
        * repeated because there could be multiple versions of the attached resource
    @@ -116,5 +86,6 @@ public interface AttachedResourceOrBuilder
        *
        * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;
        */
    -  com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResourcesOrBuilder(int index);
    +  com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResourcesOrBuilder(
    +      int index);
     }
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java
    similarity index 73%
    rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java
    rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java
    index 6ea0ce8d56cb..d3927d3aa48b 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java
    +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java
    @@ -1,42 +1,24 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
     /**
    - *
    - *
      * 
      * Batch get assets history request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.BatchGetAssetsHistoryRequest} */ -public final class BatchGetAssetsHistoryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchGetAssetsHistoryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.BatchGetAssetsHistoryRequest) BatchGetAssetsHistoryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchGetAssetsHistoryRequest.newBuilder() to construct. private BatchGetAssetsHistoryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchGetAssetsHistoryRequest() { parent_ = ""; assetNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -46,141 +28,39 @@ private BatchGetAssetsHistoryRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchGetAssetsHistoryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private BatchGetAssetsHistoryRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - assetNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - assetNames_.add(s); - break; - } - case 24: - { - int rawValue = input.readEnum(); - - contentType_ = rawValue; - break; - } - case 34: - { - com.google.cloud.asset.v1.TimeWindow.Builder subBuilder = null; - if (readTimeWindow_ != null) { - subBuilder = readTimeWindow_.toBuilder(); - } - readTimeWindow_ = - input.readMessage( - com.google.cloud.asset.v1.TimeWindow.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTimeWindow_); - readTimeWindow_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - relationshipTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - relationshipTypes_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - assetNames_ = assetNames_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - relationshipTypes_ = relationshipTypes_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.class, - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.Builder.class); + com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.class, com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
        * Required. The relative name of the root asset. It can only be an
        * organization number (such as "organizations/123"), a project ID (such as
        * "projects/my-project-id")", or a project number (such as "projects/12345").
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -189,33 +69,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
        * Required. The relative name of the root asset. It can only be an
        * organization number (such as "organizations/123"), a project ID (such as
        * "projects/my-project-id")", or a project number (such as "projects/12345").
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -226,8 +104,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int ASSET_NAMES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList assetNames_; /** - * - * *
        * A list of the full names of the assets.
        * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -238,15 +114,13 @@ public com.google.protobuf.ByteString getParentBytes() {
        * 
    * * repeated string asset_names = 2; - * * @return A list containing the assetNames. */ - public com.google.protobuf.ProtocolStringList getAssetNamesList() { + public com.google.protobuf.ProtocolStringList + getAssetNamesList() { return assetNames_; } /** - * - * *
        * A list of the full names of the assets.
        * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -257,15 +131,12 @@ public com.google.protobuf.ProtocolStringList getAssetNamesList() {
        * 
    * * repeated string asset_names = 2; - * * @return The count of assetNames. */ public int getAssetNamesCount() { return assetNames_.size(); } /** - * - * *
        * A list of the full names of the assets.
        * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -276,7 +147,6 @@ public int getAssetNamesCount() {
        * 
    * * repeated string asset_names = 2; - * * @param index The index of the element to return. * @return The assetNames at the given index. */ @@ -284,8 +154,6 @@ public java.lang.String getAssetNames(int index) { return assetNames_.get(index); } /** - * - * *
        * A list of the full names of the assets.
        * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -296,59 +164,44 @@ public java.lang.String getAssetNames(int index) {
        * 
    * * repeated string asset_names = 2; - * * @param index The index of the value to return. * @return The bytes of the assetNames at the given index. */ - public com.google.protobuf.ByteString getAssetNamesBytes(int index) { + public com.google.protobuf.ByteString + getAssetNamesBytes(int index) { return assetNames_.getByteString(index); } public static final int CONTENT_TYPE_FIELD_NUMBER = 3; private int contentType_; /** - * - * *
        * Optional. The content type.
        * 
    * - * - * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override - public int getContentTypeValue() { + @java.lang.Override public int getContentTypeValue() { return contentType_; } /** - * - * *
        * Optional. The content type.
        * 
    * - * - * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The contentType. */ - @java.lang.Override - public com.google.cloud.asset.v1.ContentType getContentType() { + @java.lang.Override public com.google.cloud.asset.v1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.ContentType result = - com.google.cloud.asset.v1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1.ContentType result = com.google.cloud.asset.v1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1.ContentType.UNRECOGNIZED : result; } public static final int READ_TIME_WINDOW_FIELD_NUMBER = 4; private com.google.cloud.asset.v1.TimeWindow readTimeWindow_; /** - * - * *
        * Optional. The time window for the asset history. Both start_time and
        * end_time are optional and if set, it must be after the current time minus
    @@ -358,10 +211,7 @@ public com.google.cloud.asset.v1.ContentType getContentType() {
        * window overlap with read_time_window.
        * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the readTimeWindow field is set. */ @java.lang.Override @@ -369,8 +219,6 @@ public boolean hasReadTimeWindow() { return readTimeWindow_ != null; } /** - * - * *
        * Optional. The time window for the asset history. Both start_time and
        * end_time are optional and if set, it must be after the current time minus
    @@ -380,21 +228,14 @@ public boolean hasReadTimeWindow() {
        * window overlap with read_time_window.
        * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The readTimeWindow. */ @java.lang.Override public com.google.cloud.asset.v1.TimeWindow getReadTimeWindow() { - return readTimeWindow_ == null - ? com.google.cloud.asset.v1.TimeWindow.getDefaultInstance() - : readTimeWindow_; + return readTimeWindow_ == null ? com.google.cloud.asset.v1.TimeWindow.getDefaultInstance() : readTimeWindow_; } /** - * - * *
        * Optional. The time window for the asset history. Both start_time and
        * end_time are optional and if set, it must be after the current time minus
    @@ -404,9 +245,7 @@ public com.google.cloud.asset.v1.TimeWindow getReadTimeWindow() {
        * window overlap with read_time_window.
        * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder() { @@ -416,8 +255,6 @@ public com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder( public static final int RELATIONSHIP_TYPES_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList relationshipTypes_; /** - * - * *
        * Optional. A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -438,15 +275,13 @@ public com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder(
        * 
    * * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the relationshipTypes. */ - public com.google.protobuf.ProtocolStringList getRelationshipTypesList() { + public com.google.protobuf.ProtocolStringList + getRelationshipTypesList() { return relationshipTypes_; } /** - * - * *
        * Optional. A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -467,15 +302,12 @@ public com.google.protobuf.ProtocolStringList getRelationshipTypesList() {
        * 
    * * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of relationshipTypes. */ public int getRelationshipTypesCount() { return relationshipTypes_.size(); } /** - * - * *
        * Optional. A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -496,7 +328,6 @@ public int getRelationshipTypesCount() {
        * 
    * * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -504,8 +335,6 @@ public java.lang.String getRelationshipTypes(int index) { return relationshipTypes_.get(index); } /** - * - * *
        * Optional. A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -526,16 +355,15 @@ public java.lang.String getRelationshipTypes(int index) {
        * 
    * * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) { + public com.google.protobuf.ByteString + getRelationshipTypesBytes(int index) { return relationshipTypes_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -547,15 +375,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } for (int i = 0; i < assetNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, assetNames_.getRaw(i)); } - if (contentType_ - != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + if (contentType_ != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(3, contentType_); } if (readTimeWindow_ != null) { @@ -564,7 +392,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < relationshipTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, relationshipTypes_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -584,12 +412,13 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAssetNamesList().size(); } - if (contentType_ - != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, contentType_); + if (contentType_ != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, contentType_); } if (readTimeWindow_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadTimeWindow()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getReadTimeWindow()); } { int dataSize = 0; @@ -599,7 +428,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getRelationshipTypesList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -607,23 +436,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest other = - (com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest) obj; + com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest other = (com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getAssetNamesList().equals(other.getAssetNamesList())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getAssetNamesList() + .equals(other.getAssetNamesList())) return false; if (contentType_ != other.contentType_) return false; if (hasReadTimeWindow() != other.hasReadTimeWindow()) return false; if (hasReadTimeWindow()) { - if (!getReadTimeWindow().equals(other.getReadTimeWindow())) return false; + if (!getReadTimeWindow() + .equals(other.getReadTimeWindow())) return false; } - if (!getRelationshipTypesList().equals(other.getRelationshipTypesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getRelationshipTypesList() + .equals(other.getRelationshipTypesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -650,149 +482,135 @@ public int hashCode() { hash = (37 * hash) + RELATIONSHIP_TYPES_FIELD_NUMBER; hash = (53 * hash) + getRelationshipTypesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest 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.asset.v1.BatchGetAssetsHistoryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Batch get assets history request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.BatchGetAssetsHistoryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.BatchGetAssetsHistoryRequest) com.google.cloud.asset.v1.BatchGetAssetsHistoryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.class, - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.Builder.class); + com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.class, com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -814,9 +632,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor; } @java.lang.Override @@ -835,8 +653,7 @@ public com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest build() { @java.lang.Override public com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest buildPartial() { - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest result = - new com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest(this); + com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest result = new com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (((bitField0_ & 0x00000001) != 0)) { @@ -863,39 +680,38 @@ public com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.BatchGetAssetsHistoryRequest) { - return mergeFrom((com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest) other); + return mergeFrom((com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest)other); } else { super.mergeFrom(other); return this; @@ -903,8 +719,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest other) { - if (other == com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -935,7 +750,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -950,43 +765,79 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAssetNamesIsMutable(); + assetNames_.add(s); + break; + } // case 18 + case 24: { + contentType_ = input.readEnum(); + + break; + } // case 24 + case 34: { + input.readMessage( + getReadTimeWindowFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureRelationshipTypesIsMutable(); + relationshipTypes_.add(s); + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
          * Required. The relative name of the root asset. It can only be an
          * organization number (such as "organizations/123"), a project ID (such as
          * "projects/my-project-id")", or a project number (such as "projects/12345").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -995,25 +846,22 @@ public java.lang.String getParent() { } } /** - * - * *
          * Required. The relative name of the root asset. It can only be an
          * organization number (such as "organizations/123"), a project ID (such as
          * "projects/my-project-id")", or a project number (such as "projects/12345").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1021,90 +869,73 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
          * Required. The relative name of the root asset. It can only be an
          * organization number (such as "organizations/123"), a project ID (such as
          * "projects/my-project-id")", or a project number (such as "projects/12345").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
          * Required. The relative name of the root asset. It can only be an
          * organization number (such as "organizations/123"), a project ID (such as
          * "projects/my-project-id")", or a project number (such as "projects/12345").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
          * Required. The relative name of the root asset. It can only be an
          * organization number (such as "organizations/123"), a project ID (such as
          * "projects/my-project-id")", or a project number (such as "projects/12345").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList assetNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList assetNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAssetNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assetNames_ = new com.google.protobuf.LazyStringArrayList(assetNames_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
          * A list of the full names of the assets.
          * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -1115,15 +946,13 @@ private void ensureAssetNamesIsMutable() {
          * 
    * * repeated string asset_names = 2; - * * @return A list containing the assetNames. */ - public com.google.protobuf.ProtocolStringList getAssetNamesList() { + public com.google.protobuf.ProtocolStringList + getAssetNamesList() { return assetNames_.getUnmodifiableView(); } /** - * - * *
          * A list of the full names of the assets.
          * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -1134,15 +963,12 @@ public com.google.protobuf.ProtocolStringList getAssetNamesList() {
          * 
    * * repeated string asset_names = 2; - * * @return The count of assetNames. */ public int getAssetNamesCount() { return assetNames_.size(); } /** - * - * *
          * A list of the full names of the assets.
          * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -1153,7 +979,6 @@ public int getAssetNamesCount() {
          * 
    * * repeated string asset_names = 2; - * * @param index The index of the element to return. * @return The assetNames at the given index. */ @@ -1161,8 +986,6 @@ public java.lang.String getAssetNames(int index) { return assetNames_.get(index); } /** - * - * *
          * A list of the full names of the assets.
          * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -1173,16 +996,14 @@ public java.lang.String getAssetNames(int index) {
          * 
    * * repeated string asset_names = 2; - * * @param index The index of the value to return. * @return The bytes of the assetNames at the given index. */ - public com.google.protobuf.ByteString getAssetNamesBytes(int index) { + public com.google.protobuf.ByteString + getAssetNamesBytes(int index) { return assetNames_.getByteString(index); } /** - * - * *
          * A list of the full names of the assets.
          * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -1193,23 +1014,21 @@ public com.google.protobuf.ByteString getAssetNamesBytes(int index) {
          * 
    * * repeated string asset_names = 2; - * * @param index The index to set the value at. * @param value The assetNames to set. * @return This builder for chaining. */ - public Builder setAssetNames(int index, java.lang.String value) { + public Builder setAssetNames( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetNamesIsMutable(); + throw new NullPointerException(); + } + ensureAssetNamesIsMutable(); assetNames_.set(index, value); onChanged(); return this; } /** - * - * *
          * A list of the full names of the assets.
          * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -1220,22 +1039,20 @@ public Builder setAssetNames(int index, java.lang.String value) {
          * 
    * * repeated string asset_names = 2; - * * @param value The assetNames to add. * @return This builder for chaining. */ - public Builder addAssetNames(java.lang.String value) { + public Builder addAssetNames( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetNamesIsMutable(); + throw new NullPointerException(); + } + ensureAssetNamesIsMutable(); assetNames_.add(value); onChanged(); return this; } /** - * - * *
          * A list of the full names of the assets.
          * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -1246,19 +1063,18 @@ public Builder addAssetNames(java.lang.String value) {
          * 
    * * repeated string asset_names = 2; - * * @param values The assetNames to add. * @return This builder for chaining. */ - public Builder addAllAssetNames(java.lang.Iterable values) { + public Builder addAllAssetNames( + java.lang.Iterable values) { ensureAssetNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, assetNames_); onChanged(); return this; } /** - * - * *
          * A list of the full names of the assets.
          * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -1269,7 +1085,6 @@ public Builder addAllAssetNames(java.lang.Iterable values) {
          * 
    * * repeated string asset_names = 2; - * * @return This builder for chaining. */ public Builder clearAssetNames() { @@ -1279,8 +1094,6 @@ public Builder clearAssetNames() { return this; } /** - * - * *
          * A list of the full names of the assets.
          * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -1291,15 +1104,15 @@ public Builder clearAssetNames() {
          * 
    * * repeated string asset_names = 2; - * * @param value The bytes of the assetNames to add. * @return This builder for chaining. */ - public Builder addAssetNamesBytes(com.google.protobuf.ByteString value) { + public Builder addAssetNamesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssetNamesIsMutable(); assetNames_.add(value); onChanged(); @@ -1308,73 +1121,51 @@ public Builder addAssetNamesBytes(com.google.protobuf.ByteString value) { private int contentType_ = 0; /** - * - * *
          * Optional. The content type.
          * 
    * - * - * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override - public int getContentTypeValue() { + @java.lang.Override public int getContentTypeValue() { return contentType_; } /** - * - * *
          * Optional. The content type.
          * 
    * - * - * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for contentType to set. * @return This builder for chaining. */ public Builder setContentTypeValue(int value) { - + contentType_ = value; onChanged(); return this; } /** - * - * *
          * Optional. The content type.
          * 
    * - * - * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The contentType. */ @java.lang.Override public com.google.cloud.asset.v1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.ContentType result = - com.google.cloud.asset.v1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1.ContentType result = com.google.cloud.asset.v1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1.ContentType.UNRECOGNIZED : result; } /** - * - * *
          * Optional. The content type.
          * 
    * - * - * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The contentType to set. * @return This builder for chaining. */ @@ -1382,26 +1173,21 @@ public Builder setContentType(com.google.cloud.asset.v1.ContentType value) { if (value == null) { throw new NullPointerException(); } - + contentType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
          * Optional. The content type.
          * 
    * - * - * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearContentType() { - + contentType_ = 0; onChanged(); return this; @@ -1409,13 +1195,8 @@ public Builder clearContentType() { private com.google.cloud.asset.v1.TimeWindow readTimeWindow_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.TimeWindow, - com.google.cloud.asset.v1.TimeWindow.Builder, - com.google.cloud.asset.v1.TimeWindowOrBuilder> - readTimeWindowBuilder_; + com.google.cloud.asset.v1.TimeWindow, com.google.cloud.asset.v1.TimeWindow.Builder, com.google.cloud.asset.v1.TimeWindowOrBuilder> readTimeWindowBuilder_; /** - * - * *
          * Optional. The time window for the asset history. Both start_time and
          * end_time are optional and if set, it must be after the current time minus
    @@ -1425,18 +1206,13 @@ public Builder clearContentType() {
          * window overlap with read_time_window.
          * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the readTimeWindow field is set. */ public boolean hasReadTimeWindow() { return readTimeWindowBuilder_ != null || readTimeWindow_ != null; } /** - * - * *
          * Optional. The time window for the asset history. Both start_time and
          * end_time are optional and if set, it must be after the current time minus
    @@ -1446,24 +1222,17 @@ public boolean hasReadTimeWindow() {
          * window overlap with read_time_window.
          * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The readTimeWindow. */ public com.google.cloud.asset.v1.TimeWindow getReadTimeWindow() { if (readTimeWindowBuilder_ == null) { - return readTimeWindow_ == null - ? com.google.cloud.asset.v1.TimeWindow.getDefaultInstance() - : readTimeWindow_; + return readTimeWindow_ == null ? com.google.cloud.asset.v1.TimeWindow.getDefaultInstance() : readTimeWindow_; } else { return readTimeWindowBuilder_.getMessage(); } } /** - * - * *
          * Optional. The time window for the asset history. Both start_time and
          * end_time are optional and if set, it must be after the current time minus
    @@ -1473,9 +1242,7 @@ public com.google.cloud.asset.v1.TimeWindow getReadTimeWindow() {
          * window overlap with read_time_window.
          * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setReadTimeWindow(com.google.cloud.asset.v1.TimeWindow value) { if (readTimeWindowBuilder_ == null) { @@ -1491,8 +1258,6 @@ public Builder setReadTimeWindow(com.google.cloud.asset.v1.TimeWindow value) { return this; } /** - * - * *
          * Optional. The time window for the asset history. Both start_time and
          * end_time are optional and if set, it must be after the current time minus
    @@ -1502,11 +1267,10 @@ public Builder setReadTimeWindow(com.google.cloud.asset.v1.TimeWindow value) {
          * window overlap with read_time_window.
          * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setReadTimeWindow(com.google.cloud.asset.v1.TimeWindow.Builder builderForValue) { + public Builder setReadTimeWindow( + com.google.cloud.asset.v1.TimeWindow.Builder builderForValue) { if (readTimeWindowBuilder_ == null) { readTimeWindow_ = builderForValue.build(); onChanged(); @@ -1517,8 +1281,6 @@ public Builder setReadTimeWindow(com.google.cloud.asset.v1.TimeWindow.Builder bu return this; } /** - * - * *
          * Optional. The time window for the asset history. Both start_time and
          * end_time are optional and if set, it must be after the current time minus
    @@ -1528,17 +1290,13 @@ public Builder setReadTimeWindow(com.google.cloud.asset.v1.TimeWindow.Builder bu
          * window overlap with read_time_window.
          * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeReadTimeWindow(com.google.cloud.asset.v1.TimeWindow value) { if (readTimeWindowBuilder_ == null) { if (readTimeWindow_ != null) { readTimeWindow_ = - com.google.cloud.asset.v1.TimeWindow.newBuilder(readTimeWindow_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.TimeWindow.newBuilder(readTimeWindow_).mergeFrom(value).buildPartial(); } else { readTimeWindow_ = value; } @@ -1550,8 +1308,6 @@ public Builder mergeReadTimeWindow(com.google.cloud.asset.v1.TimeWindow value) { return this; } /** - * - * *
          * Optional. The time window for the asset history. Both start_time and
          * end_time are optional and if set, it must be after the current time minus
    @@ -1561,9 +1317,7 @@ public Builder mergeReadTimeWindow(com.google.cloud.asset.v1.TimeWindow value) {
          * window overlap with read_time_window.
          * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearReadTimeWindow() { if (readTimeWindowBuilder_ == null) { @@ -1577,8 +1331,6 @@ public Builder clearReadTimeWindow() { return this; } /** - * - * *
          * Optional. The time window for the asset history. Both start_time and
          * end_time are optional and if set, it must be after the current time minus
    @@ -1588,18 +1340,14 @@ public Builder clearReadTimeWindow() {
          * window overlap with read_time_window.
          * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.asset.v1.TimeWindow.Builder getReadTimeWindowBuilder() { - + onChanged(); return getReadTimeWindowFieldBuilder().getBuilder(); } /** - * - * *
          * Optional. The time window for the asset history. Both start_time and
          * end_time are optional and if set, it must be after the current time minus
    @@ -1609,22 +1357,17 @@ public com.google.cloud.asset.v1.TimeWindow.Builder getReadTimeWindowBuilder() {
          * window overlap with read_time_window.
          * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder() { if (readTimeWindowBuilder_ != null) { return readTimeWindowBuilder_.getMessageOrBuilder(); } else { - return readTimeWindow_ == null - ? com.google.cloud.asset.v1.TimeWindow.getDefaultInstance() - : readTimeWindow_; + return readTimeWindow_ == null ? + com.google.cloud.asset.v1.TimeWindow.getDefaultInstance() : readTimeWindow_; } } /** - * - * *
          * Optional. The time window for the asset history. Both start_time and
          * end_time are optional and if set, it must be after the current time minus
    @@ -1634,39 +1377,30 @@ public com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder(
          * window overlap with read_time_window.
          * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.TimeWindow, - com.google.cloud.asset.v1.TimeWindow.Builder, - com.google.cloud.asset.v1.TimeWindowOrBuilder> + com.google.cloud.asset.v1.TimeWindow, com.google.cloud.asset.v1.TimeWindow.Builder, com.google.cloud.asset.v1.TimeWindowOrBuilder> getReadTimeWindowFieldBuilder() { if (readTimeWindowBuilder_ == null) { - readTimeWindowBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.TimeWindow, - com.google.cloud.asset.v1.TimeWindow.Builder, - com.google.cloud.asset.v1.TimeWindowOrBuilder>( - getReadTimeWindow(), getParentForChildren(), isClean()); + readTimeWindowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.TimeWindow, com.google.cloud.asset.v1.TimeWindow.Builder, com.google.cloud.asset.v1.TimeWindowOrBuilder>( + getReadTimeWindow(), + getParentForChildren(), + isClean()); readTimeWindow_ = null; } return readTimeWindowBuilder_; } - private com.google.protobuf.LazyStringList relationshipTypes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList relationshipTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRelationshipTypesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { relationshipTypes_ = new com.google.protobuf.LazyStringArrayList(relationshipTypes_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
          * Optional. A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1686,17 +1420,14 @@ private void ensureRelationshipTypesIsMutable() {
          * supported asset types and relationship types.
          * 
    * - * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the relationshipTypes. */ - public com.google.protobuf.ProtocolStringList getRelationshipTypesList() { + public com.google.protobuf.ProtocolStringList + getRelationshipTypesList() { return relationshipTypes_.getUnmodifiableView(); } /** - * - * *
          * Optional. A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1716,17 +1447,13 @@ public com.google.protobuf.ProtocolStringList getRelationshipTypesList() {
          * supported asset types and relationship types.
          * 
    * - * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of relationshipTypes. */ public int getRelationshipTypesCount() { return relationshipTypes_.size(); } /** - * - * *
          * Optional. A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1746,9 +1473,7 @@ public int getRelationshipTypesCount() {
          * supported asset types and relationship types.
          * 
    * - * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -1756,8 +1481,6 @@ public java.lang.String getRelationshipTypes(int index) { return relationshipTypes_.get(index); } /** - * - * *
          * Optional. A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1777,18 +1500,15 @@ public java.lang.String getRelationshipTypes(int index) {
          * supported asset types and relationship types.
          * 
    * - * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) { + public com.google.protobuf.ByteString + getRelationshipTypesBytes(int index) { return relationshipTypes_.getByteString(index); } /** - * - * *
          * Optional. A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1808,25 +1528,22 @@ public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) {
          * supported asset types and relationship types.
          * 
    * - * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The relationshipTypes to set. * @return This builder for chaining. */ - public Builder setRelationshipTypes(int index, java.lang.String value) { + public Builder setRelationshipTypes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRelationshipTypesIsMutable(); + throw new NullPointerException(); + } + ensureRelationshipTypesIsMutable(); relationshipTypes_.set(index, value); onChanged(); return this; } /** - * - * *
          * Optional. A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1846,24 +1563,21 @@ public Builder setRelationshipTypes(int index, java.lang.String value) {
          * supported asset types and relationship types.
          * 
    * - * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param value The relationshipTypes to add. * @return This builder for chaining. */ - public Builder addRelationshipTypes(java.lang.String value) { + public Builder addRelationshipTypes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRelationshipTypesIsMutable(); + throw new NullPointerException(); + } + ensureRelationshipTypesIsMutable(); relationshipTypes_.add(value); onChanged(); return this; } /** - * - * *
          * Optional. A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1883,21 +1597,19 @@ public Builder addRelationshipTypes(java.lang.String value) {
          * supported asset types and relationship types.
          * 
    * - * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param values The relationshipTypes to add. * @return This builder for chaining. */ - public Builder addAllRelationshipTypes(java.lang.Iterable values) { + public Builder addAllRelationshipTypes( + java.lang.Iterable values) { ensureRelationshipTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relationshipTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, relationshipTypes_); onChanged(); return this; } /** - * - * *
          * Optional. A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1917,9 +1629,7 @@ public Builder addAllRelationshipTypes(java.lang.Iterable valu
          * supported asset types and relationship types.
          * 
    * - * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearRelationshipTypes() { @@ -1929,8 +1639,6 @@ public Builder clearRelationshipTypes() { return this; } /** - * - * *
          * Optional. A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1950,25 +1658,24 @@ public Builder clearRelationshipTypes() {
          * supported asset types and relationship types.
          * 
    * - * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the relationshipTypes to add. * @return This builder for chaining. */ - public Builder addRelationshipTypesBytes(com.google.protobuf.ByteString value) { + public Builder addRelationshipTypesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureRelationshipTypesIsMutable(); relationshipTypes_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1978,12 +1685,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.BatchGetAssetsHistoryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.BatchGetAssetsHistoryRequest) private static final com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest(); } @@ -1992,16 +1699,27 @@ public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchGetAssetsHistoryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchGetAssetsHistoryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchGetAssetsHistoryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2016,4 +1734,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequestOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequestOrBuilder.java similarity index 82% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequestOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequestOrBuilder.java index eec14316902c..cfc137961ccd 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequestOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface BatchGetAssetsHistoryRequestOrBuilder - extends +public interface BatchGetAssetsHistoryRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.BatchGetAssetsHistoryRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The relative name of the root asset. It can only be an
        * organization number (such as "organizations/123"), a project ID (such as
        * "projects/my-project-id")", or a project number (such as "projects/12345").
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
        * Required. The relative name of the root asset. It can only be an
        * organization number (such as "organizations/123"), a project ID (such as
        * "projects/my-project-id")", or a project number (such as "projects/12345").
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
        * A list of the full names of the assets.
        * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -69,13 +42,11 @@ public interface BatchGetAssetsHistoryRequestOrBuilder
        * 
    * * repeated string asset_names = 2; - * * @return A list containing the assetNames. */ - java.util.List getAssetNamesList(); + java.util.List + getAssetNamesList(); /** - * - * *
        * A list of the full names of the assets.
        * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -86,13 +57,10 @@ public interface BatchGetAssetsHistoryRequestOrBuilder
        * 
    * * repeated string asset_names = 2; - * * @return The count of assetNames. */ int getAssetNamesCount(); /** - * - * *
        * A list of the full names of the assets.
        * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -103,14 +71,11 @@ public interface BatchGetAssetsHistoryRequestOrBuilder
        * 
    * * repeated string asset_names = 2; - * * @param index The index of the element to return. * @return The assetNames at the given index. */ java.lang.String getAssetNames(int index); /** - * - * *
        * A list of the full names of the assets.
        * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -121,44 +86,32 @@ public interface BatchGetAssetsHistoryRequestOrBuilder
        * 
    * * repeated string asset_names = 2; - * * @param index The index of the value to return. * @return The bytes of the assetNames at the given index. */ - com.google.protobuf.ByteString getAssetNamesBytes(int index); + com.google.protobuf.ByteString + getAssetNamesBytes(int index); /** - * - * *
        * Optional. The content type.
        * 
    * - * - * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for contentType. */ int getContentTypeValue(); /** - * - * *
        * Optional. The content type.
        * 
    * - * - * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The contentType. */ com.google.cloud.asset.v1.ContentType getContentType(); /** - * - * *
        * Optional. The time window for the asset history. Both start_time and
        * end_time are optional and if set, it must be after the current time minus
    @@ -168,16 +121,11 @@ public interface BatchGetAssetsHistoryRequestOrBuilder
        * window overlap with read_time_window.
        * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the readTimeWindow field is set. */ boolean hasReadTimeWindow(); /** - * - * *
        * Optional. The time window for the asset history. Both start_time and
        * end_time are optional and if set, it must be after the current time minus
    @@ -187,16 +135,11 @@ public interface BatchGetAssetsHistoryRequestOrBuilder
        * window overlap with read_time_window.
        * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The readTimeWindow. */ com.google.cloud.asset.v1.TimeWindow getReadTimeWindow(); /** - * - * *
        * Optional. The time window for the asset history. Both start_time and
        * end_time are optional and if set, it must be after the current time minus
    @@ -206,15 +149,11 @@ public interface BatchGetAssetsHistoryRequestOrBuilder
        * window overlap with read_time_window.
        * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder(); /** - * - * *
        * Optional. A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -235,13 +174,11 @@ public interface BatchGetAssetsHistoryRequestOrBuilder
        * 
    * * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the relationshipTypes. */ - java.util.List getRelationshipTypesList(); + java.util.List + getRelationshipTypesList(); /** - * - * *
        * Optional. A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -262,13 +199,10 @@ public interface BatchGetAssetsHistoryRequestOrBuilder
        * 
    * * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of relationshipTypes. */ int getRelationshipTypesCount(); /** - * - * *
        * Optional. A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -289,14 +223,11 @@ public interface BatchGetAssetsHistoryRequestOrBuilder
        * 
    * * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ java.lang.String getRelationshipTypes(int index); /** - * - * *
        * Optional. A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -317,9 +248,9 @@ public interface BatchGetAssetsHistoryRequestOrBuilder
        * 
    * * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - com.google.protobuf.ByteString getRelationshipTypesBytes(int index); + com.google.protobuf.ByteString + getRelationshipTypesBytes(int index); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponse.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponse.java similarity index 67% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponse.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponse.java index eae14325c866..4bbb183f5d77 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponse.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponse.java @@ -1,131 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * Batch get assets history response.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.BatchGetAssetsHistoryResponse} */ -public final class BatchGetAssetsHistoryResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchGetAssetsHistoryResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.BatchGetAssetsHistoryResponse) BatchGetAssetsHistoryResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchGetAssetsHistoryResponse.newBuilder() to construct. private BatchGetAssetsHistoryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchGetAssetsHistoryResponse() { assets_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchGetAssetsHistoryResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private BatchGetAssetsHistoryResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - assets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - assets_.add( - input.readMessage( - com.google.cloud.asset.v1.TemporalAsset.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - assets_ = java.util.Collections.unmodifiableList(assets_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.class, - com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.Builder.class); + com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.class, com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.Builder.class); } public static final int ASSETS_FIELD_NUMBER = 1; private java.util.List assets_; /** - * - * *
        * A list of assets with valid time windows.
        * 
    @@ -137,8 +62,6 @@ public java.util.List getAssetsList() { return assets_; } /** - * - * *
        * A list of assets with valid time windows.
        * 
    @@ -146,13 +69,11 @@ public java.util.List getAssetsList() { * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getAssetsOrBuilderList() { return assets_; } /** - * - * *
        * A list of assets with valid time windows.
        * 
    @@ -164,8 +85,6 @@ public int getAssetsCount() { return assets_.size(); } /** - * - * *
        * A list of assets with valid time windows.
        * 
    @@ -177,8 +96,6 @@ public com.google.cloud.asset.v1.TemporalAsset getAssets(int index) { return assets_.get(index); } /** - * - * *
        * A list of assets with valid time windows.
        * 
    @@ -186,12 +103,12 @@ public com.google.cloud.asset.v1.TemporalAsset getAssets(int index) { * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ @java.lang.Override - public com.google.cloud.asset.v1.TemporalAssetOrBuilder getAssetsOrBuilder(int index) { + public com.google.cloud.asset.v1.TemporalAssetOrBuilder getAssetsOrBuilder( + int index) { return assets_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,11 +120,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < assets_.size(); i++) { output.writeMessage(1, assets_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -217,9 +135,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < assets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, assets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, assets_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -227,16 +146,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse other = - (com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse) obj; + com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse other = (com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse) obj; - if (!getAssetsList().equals(other.getAssetsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getAssetsList() + .equals(other.getAssetsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -251,167 +170,152 @@ public int hashCode() { hash = (37 * hash) + ASSETS_FIELD_NUMBER; hash = (53 * hash) + getAssetsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse 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.asset.v1.BatchGetAssetsHistoryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Batch get assets history response.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.BatchGetAssetsHistoryResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.BatchGetAssetsHistoryResponse) com.google.cloud.asset.v1.BatchGetAssetsHistoryResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.class, - com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.Builder.class); + com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.class, com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.Builder.class); } // Construct using com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAssetsFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); if (assetsBuilder_ == null) { assets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + assets_ = null; assetsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor; } @java.lang.Override @@ -430,8 +334,7 @@ public com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse build() { @java.lang.Override public com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse buildPartial() { - com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse result = - new com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse(this); + com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse result = new com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse(this); int from_bitField0_ = bitField0_; if (assetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -450,39 +353,38 @@ public com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.BatchGetAssetsHistoryResponse) { - return mergeFrom((com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse) other); + return mergeFrom((com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse)other); } else { super.mergeFrom(other); return this; @@ -490,8 +392,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse other) { - if (other == com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.getDefaultInstance()) return this; if (assetsBuilder_ == null) { if (!other.assets_.isEmpty()) { if (assets_.isEmpty()) { @@ -510,16 +411,15 @@ public Builder mergeFrom(com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse assetsBuilder_ = null; assets_ = other.assets_; bitField0_ = (bitField0_ & ~0x00000001); - assetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAssetsFieldBuilder() - : null; + assetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAssetsFieldBuilder() : null; } else { assetsBuilder_.addAllMessages(other.assets_); } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -534,42 +434,60 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.asset.v1.TemporalAsset m = + input.readMessage( + com.google.cloud.asset.v1.TemporalAsset.parser(), + extensionRegistry); + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.add(m); + } else { + assetsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.util.List assets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAssetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assets_ = new java.util.ArrayList(assets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.TemporalAsset, - com.google.cloud.asset.v1.TemporalAsset.Builder, - com.google.cloud.asset.v1.TemporalAssetOrBuilder> - assetsBuilder_; + com.google.cloud.asset.v1.TemporalAsset, com.google.cloud.asset.v1.TemporalAsset.Builder, com.google.cloud.asset.v1.TemporalAssetOrBuilder> assetsBuilder_; /** - * - * *
          * A list of assets with valid time windows.
          * 
    @@ -584,8 +502,6 @@ public java.util.List getAssetsList() { } } /** - * - * *
          * A list of assets with valid time windows.
          * 
    @@ -600,8 +516,6 @@ public int getAssetsCount() { } } /** - * - * *
          * A list of assets with valid time windows.
          * 
    @@ -616,15 +530,14 @@ public com.google.cloud.asset.v1.TemporalAsset getAssets(int index) { } } /** - * - * *
          * A list of assets with valid time windows.
          * 
    * * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ - public Builder setAssets(int index, com.google.cloud.asset.v1.TemporalAsset value) { + public Builder setAssets( + int index, com.google.cloud.asset.v1.TemporalAsset value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -638,8 +551,6 @@ public Builder setAssets(int index, com.google.cloud.asset.v1.TemporalAsset valu return this; } /** - * - * *
          * A list of assets with valid time windows.
          * 
    @@ -658,8 +569,6 @@ public Builder setAssets( return this; } /** - * - * *
          * A list of assets with valid time windows.
          * 
    @@ -680,15 +589,14 @@ public Builder addAssets(com.google.cloud.asset.v1.TemporalAsset value) { return this; } /** - * - * *
          * A list of assets with valid time windows.
          * 
    * * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ - public Builder addAssets(int index, com.google.cloud.asset.v1.TemporalAsset value) { + public Builder addAssets( + int index, com.google.cloud.asset.v1.TemporalAsset value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -702,15 +610,14 @@ public Builder addAssets(int index, com.google.cloud.asset.v1.TemporalAsset valu return this; } /** - * - * *
          * A list of assets with valid time windows.
          * 
    * * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ - public Builder addAssets(com.google.cloud.asset.v1.TemporalAsset.Builder builderForValue) { + public Builder addAssets( + com.google.cloud.asset.v1.TemporalAsset.Builder builderForValue) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.add(builderForValue.build()); @@ -721,8 +628,6 @@ public Builder addAssets(com.google.cloud.asset.v1.TemporalAsset.Builder builder return this; } /** - * - * *
          * A list of assets with valid time windows.
          * 
    @@ -741,8 +646,6 @@ public Builder addAssets( return this; } /** - * - * *
          * A list of assets with valid time windows.
          * 
    @@ -753,7 +656,8 @@ public Builder addAllAssets( java.lang.Iterable values) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, assets_); onChanged(); } else { assetsBuilder_.addAllMessages(values); @@ -761,8 +665,6 @@ public Builder addAllAssets( return this; } /** - * - * *
          * A list of assets with valid time windows.
          * 
    @@ -780,8 +682,6 @@ public Builder clearAssets() { return this; } /** - * - * *
          * A list of assets with valid time windows.
          * 
    @@ -799,44 +699,39 @@ public Builder removeAssets(int index) { return this; } /** - * - * *
          * A list of assets with valid time windows.
          * 
    * * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ - public com.google.cloud.asset.v1.TemporalAsset.Builder getAssetsBuilder(int index) { + public com.google.cloud.asset.v1.TemporalAsset.Builder getAssetsBuilder( + int index) { return getAssetsFieldBuilder().getBuilder(index); } /** - * - * *
          * A list of assets with valid time windows.
          * 
    * * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ - public com.google.cloud.asset.v1.TemporalAssetOrBuilder getAssetsOrBuilder(int index) { + public com.google.cloud.asset.v1.TemporalAssetOrBuilder getAssetsOrBuilder( + int index) { if (assetsBuilder_ == null) { - return assets_.get(index); - } else { + return assets_.get(index); } else { return assetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
          * A list of assets with valid time windows.
          * 
    * * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ - public java.util.List - getAssetsOrBuilderList() { + public java.util.List + getAssetsOrBuilderList() { if (assetsBuilder_ != null) { return assetsBuilder_.getMessageOrBuilderList(); } else { @@ -844,8 +739,6 @@ public com.google.cloud.asset.v1.TemporalAssetOrBuilder getAssetsOrBuilder(int i } } /** - * - * *
          * A list of assets with valid time windows.
          * 
    @@ -853,54 +746,49 @@ public com.google.cloud.asset.v1.TemporalAssetOrBuilder getAssetsOrBuilder(int i * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ public com.google.cloud.asset.v1.TemporalAsset.Builder addAssetsBuilder() { - return getAssetsFieldBuilder() - .addBuilder(com.google.cloud.asset.v1.TemporalAsset.getDefaultInstance()); + return getAssetsFieldBuilder().addBuilder( + com.google.cloud.asset.v1.TemporalAsset.getDefaultInstance()); } /** - * - * *
          * A list of assets with valid time windows.
          * 
    * * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ - public com.google.cloud.asset.v1.TemporalAsset.Builder addAssetsBuilder(int index) { - return getAssetsFieldBuilder() - .addBuilder(index, com.google.cloud.asset.v1.TemporalAsset.getDefaultInstance()); + public com.google.cloud.asset.v1.TemporalAsset.Builder addAssetsBuilder( + int index) { + return getAssetsFieldBuilder().addBuilder( + index, com.google.cloud.asset.v1.TemporalAsset.getDefaultInstance()); } /** - * - * *
          * A list of assets with valid time windows.
          * 
    * * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ - public java.util.List getAssetsBuilderList() { + public java.util.List + getAssetsBuilderList() { return getAssetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.TemporalAsset, - com.google.cloud.asset.v1.TemporalAsset.Builder, - com.google.cloud.asset.v1.TemporalAssetOrBuilder> + com.google.cloud.asset.v1.TemporalAsset, com.google.cloud.asset.v1.TemporalAsset.Builder, com.google.cloud.asset.v1.TemporalAssetOrBuilder> getAssetsFieldBuilder() { if (assetsBuilder_ == null) { - assetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.TemporalAsset, - com.google.cloud.asset.v1.TemporalAsset.Builder, - com.google.cloud.asset.v1.TemporalAssetOrBuilder>( - assets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + assetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.TemporalAsset, com.google.cloud.asset.v1.TemporalAsset.Builder, com.google.cloud.asset.v1.TemporalAssetOrBuilder>( + assets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); assets_ = null; } return assetsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -910,12 +798,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.BatchGetAssetsHistoryResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.BatchGetAssetsHistoryResponse) private static final com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse(); } @@ -924,16 +812,27 @@ public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchGetAssetsHistoryResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchGetAssetsHistoryResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchGetAssetsHistoryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -948,4 +847,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponseOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponseOrBuilder.java similarity index 62% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponseOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponseOrBuilder.java index 22976e616b9e..70e9d55a250e 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponseOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface BatchGetAssetsHistoryResponseOrBuilder - extends +public interface BatchGetAssetsHistoryResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.BatchGetAssetsHistoryResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * A list of assets with valid time windows.
        * 
    * * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ - java.util.List getAssetsList(); + java.util.List + getAssetsList(); /** - * - * *
        * A list of assets with valid time windows.
        * 
    @@ -44,8 +25,6 @@ public interface BatchGetAssetsHistoryResponseOrBuilder */ com.google.cloud.asset.v1.TemporalAsset getAssets(int index); /** - * - * *
        * A list of assets with valid time windows.
        * 
    @@ -54,24 +33,21 @@ public interface BatchGetAssetsHistoryResponseOrBuilder */ int getAssetsCount(); /** - * - * *
        * A list of assets with valid time windows.
        * 
    * * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ - java.util.List + java.util.List getAssetsOrBuilderList(); /** - * - * *
        * A list of assets with valid time windows.
        * 
    * * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ - com.google.cloud.asset.v1.TemporalAssetOrBuilder getAssetsOrBuilder(int index); + com.google.cloud.asset.v1.TemporalAssetOrBuilder getAssetsOrBuilder( + int index); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequest.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequest.java similarity index 65% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequest.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequest.java index 13901f54353b..bebd9583df73 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequest.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequest.java @@ -1,45 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
    - * A request message for
    - * [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
    + * A request message for [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
      * 
    * * Protobuf type {@code google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest} */ -public final class BatchGetEffectiveIamPoliciesRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchGetEffectiveIamPoliciesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest) BatchGetEffectiveIamPoliciesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchGetEffectiveIamPoliciesRequest.newBuilder() to construct. - private BatchGetEffectiveIamPoliciesRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchGetEffectiveIamPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchGetEffectiveIamPoliciesRequest() { scope_ = ""; names_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -47,95 +26,32 @@ private BatchGetEffectiveIamPoliciesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchGetEffectiveIamPoliciesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private BatchGetEffectiveIamPoliciesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - scope_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - names_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - names_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - names_ = names_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.class, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.Builder.class); + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.class, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.Builder.class); } public static final int SCOPE_FIELD_NUMBER = 1; private volatile java.lang.Object scope_; /** - * - * *
        * Required. Only IAM policies on or below the scope will be returned.
        * This can only be an organization number (such as "organizations/123"), a
    @@ -147,10 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
        * 
    * - * - * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The scope. */ @java.lang.Override @@ -159,15 +72,14 @@ public java.lang.String getScope() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; } } /** - * - * *
        * Required. Only IAM policies on or below the scope will be returned.
        * This can only be an organization number (such as "organizations/123"), a
    @@ -179,18 +91,17 @@ public java.lang.String getScope() {
        * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
        * 
    * - * - * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for scope. */ @java.lang.Override - public com.google.protobuf.ByteString getScopeBytes() { + public com.google.protobuf.ByteString + getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); scope_ = b; return b; } else { @@ -201,8 +112,6 @@ public com.google.protobuf.ByteString getScopeBytes() { public static final int NAMES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList names_; /** - * - * *
        * Required. The names refer to the [full_resource_names]
        * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -211,18 +120,14 @@ public com.google.protobuf.ByteString getScopeBytes() {
        * A maximum of 20 resources' effective policies can be retrieved in a batch.
        * 
    * - * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return A list containing the names. */ - public com.google.protobuf.ProtocolStringList getNamesList() { + public com.google.protobuf.ProtocolStringList + getNamesList() { return names_; } /** - * - * *
        * Required. The names refer to the [full_resource_names]
        * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -231,18 +136,13 @@ public com.google.protobuf.ProtocolStringList getNamesList() {
        * A maximum of 20 resources' effective policies can be retrieved in a batch.
        * 
    * - * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The count of names. */ public int getNamesCount() { return names_.size(); } /** - * - * *
        * Required. The names refer to the [full_resource_names]
        * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -251,10 +151,7 @@ public int getNamesCount() {
        * A maximum of 20 resources' effective policies can be retrieved in a batch.
        * 
    * - * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The names at the given index. */ @@ -262,8 +159,6 @@ public java.lang.String getNames(int index) { return names_.get(index); } /** - * - * *
        * Required. The names refer to the [full_resource_names]
        * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -272,19 +167,16 @@ public java.lang.String getNames(int index) {
        * A maximum of 20 resources' effective policies can be retrieved in a batch.
        * 
    * - * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the names at the given index. */ - public com.google.protobuf.ByteString getNamesBytes(int index) { + public com.google.protobuf.ByteString + getNamesBytes(int index) { return names_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -296,14 +188,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scope_); } for (int i = 0; i < names_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, names_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -323,7 +216,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getNamesList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -331,17 +224,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest other = - (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest) obj; + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest other = (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest) obj; - if (!getScope().equals(other.getScope())) return false; - if (!getNamesList().equals(other.getNamesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getScope() + .equals(other.getScope())) return false; + if (!getNamesList() + .equals(other.getNamesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -358,150 +252,135 @@ public int hashCode() { hash = (37 * hash) + NAMES_FIELD_NUMBER; hash = (53 * hash) + getNamesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest 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.asset.v1.BatchGetEffectiveIamPoliciesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    -   * A request message for
    -   * [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
    +   * A request message for [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
        * 
    * * Protobuf type {@code google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest) com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.class, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.Builder.class); + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.class, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -513,14 +392,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest - getDefaultInstanceForType() { + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest getDefaultInstanceForType() { return com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.getDefaultInstance(); } @@ -535,8 +413,7 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest build() { @java.lang.Override public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest buildPartial() { - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest result = - new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest(this); + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest result = new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest(this); int from_bitField0_ = bitField0_; result.scope_ = scope_; if (((bitField0_ & 0x00000001) != 0)) { @@ -552,39 +429,38 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.BatchGetEffectiveIamPoliciesRequest) { - return mergeFrom((com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest) other); + return mergeFrom((com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest)other); } else { super.mergeFrom(other); return this; @@ -592,9 +468,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest other) { - if (other - == com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.getDefaultInstance()) return this; if (!other.getScope().isEmpty()) { scope_ = other.scope_; onChanged(); @@ -609,7 +483,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesR } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -624,28 +498,47 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + scope_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.lang.Object scope_ = ""; /** - * - * *
          * Required. Only IAM policies on or below the scope will be returned.
          * This can only be an organization number (such as "organizations/123"), a
    @@ -657,16 +550,14 @@ public Builder mergeFrom(
          * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
          * 
    * - * - * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The scope. */ public java.lang.String getScope() { java.lang.Object ref = scope_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; @@ -675,8 +566,6 @@ public java.lang.String getScope() { } } /** - * - * *
          * Required. Only IAM policies on or below the scope will be returned.
          * This can only be an organization number (such as "organizations/123"), a
    @@ -688,17 +577,16 @@ public java.lang.String getScope() {
          * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
          * 
    * - * - * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for scope. */ - public com.google.protobuf.ByteString getScopeBytes() { + public com.google.protobuf.ByteString + getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); scope_ = b; return b; } else { @@ -706,8 +594,6 @@ public com.google.protobuf.ByteString getScopeBytes() { } } /** - * - * *
          * Required. Only IAM policies on or below the scope will be returned.
          * This can only be an organization number (such as "organizations/123"), a
    @@ -719,25 +605,21 @@ public com.google.protobuf.ByteString getScopeBytes() {
          * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
          * 
    * - * - * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The scope to set. * @return This builder for chaining. */ - public Builder setScope(java.lang.String value) { + public Builder setScope( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + scope_ = value; onChanged(); return this; } /** - * - * *
          * Required. Only IAM policies on or below the scope will be returned.
          * This can only be an organization number (such as "organizations/123"), a
    @@ -749,21 +631,16 @@ public Builder setScope(java.lang.String value) {
          * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
          * 
    * - * - * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearScope() { - + scope_ = getDefaultInstance().getScope(); onChanged(); return this; } /** - * - * *
          * Required. Only IAM policies on or below the scope will be returned.
          * This can only be an organization number (such as "organizations/123"), a
    @@ -775,36 +652,30 @@ public Builder clearScope() {
          * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
          * 
    * - * - * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for scope to set. * @return This builder for chaining. */ - public Builder setScopeBytes(com.google.protobuf.ByteString value) { + public Builder setScopeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scope_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList names_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList names_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { names_ = new com.google.protobuf.LazyStringArrayList(names_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
          * Required. The names refer to the [full_resource_names]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -813,18 +684,14 @@ private void ensureNamesIsMutable() {
          * A maximum of 20 resources' effective policies can be retrieved in a batch.
          * 
    * - * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return A list containing the names. */ - public com.google.protobuf.ProtocolStringList getNamesList() { + public com.google.protobuf.ProtocolStringList + getNamesList() { return names_.getUnmodifiableView(); } /** - * - * *
          * Required. The names refer to the [full_resource_names]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -833,18 +700,13 @@ public com.google.protobuf.ProtocolStringList getNamesList() {
          * A maximum of 20 resources' effective policies can be retrieved in a batch.
          * 
    * - * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The count of names. */ public int getNamesCount() { return names_.size(); } /** - * - * *
          * Required. The names refer to the [full_resource_names]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -853,10 +715,7 @@ public int getNamesCount() {
          * A maximum of 20 resources' effective policies can be retrieved in a batch.
          * 
    * - * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The names at the given index. */ @@ -864,8 +723,6 @@ public java.lang.String getNames(int index) { return names_.get(index); } /** - * - * *
          * Required. The names refer to the [full_resource_names]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -874,19 +731,15 @@ public java.lang.String getNames(int index) {
          * A maximum of 20 resources' effective policies can be retrieved in a batch.
          * 
    * - * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the names at the given index. */ - public com.google.protobuf.ByteString getNamesBytes(int index) { + public com.google.protobuf.ByteString + getNamesBytes(int index) { return names_.getByteString(index); } /** - * - * *
          * Required. The names refer to the [full_resource_names]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -895,26 +748,22 @@ public com.google.protobuf.ByteString getNamesBytes(int index) {
          * A maximum of 20 resources' effective policies can be retrieved in a batch.
          * 
    * - * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The names to set. * @return This builder for chaining. */ - public Builder setNames(int index, java.lang.String value) { + public Builder setNames( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNamesIsMutable(); + throw new NullPointerException(); + } + ensureNamesIsMutable(); names_.set(index, value); onChanged(); return this; } /** - * - * *
          * Required. The names refer to the [full_resource_names]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -923,25 +772,21 @@ public Builder setNames(int index, java.lang.String value) {
          * A maximum of 20 resources' effective policies can be retrieved in a batch.
          * 
    * - * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The names to add. * @return This builder for chaining. */ - public Builder addNames(java.lang.String value) { + public Builder addNames( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNamesIsMutable(); + throw new NullPointerException(); + } + ensureNamesIsMutable(); names_.add(value); onChanged(); return this; } /** - * - * *
          * Required. The names refer to the [full_resource_names]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -950,22 +795,19 @@ public Builder addNames(java.lang.String value) {
          * A maximum of 20 resources' effective policies can be retrieved in a batch.
          * 
    * - * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param values The names to add. * @return This builder for chaining. */ - public Builder addAllNames(java.lang.Iterable values) { + public Builder addAllNames( + java.lang.Iterable values) { ensureNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, names_); onChanged(); return this; } /** - * - * *
          * Required. The names refer to the [full_resource_names]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -974,10 +816,7 @@ public Builder addAllNames(java.lang.Iterable values) {
          * A maximum of 20 resources' effective policies can be retrieved in a batch.
          * 
    * - * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearNames() { @@ -987,8 +826,6 @@ public Builder clearNames() { return this; } /** - * - * *
          * Required. The names refer to the [full_resource_names]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -997,26 +834,24 @@ public Builder clearNames() {
          * A maximum of 20 resources' effective policies can be retrieved in a batch.
          * 
    * - * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes of the names to add. * @return This builder for chaining. */ - public Builder addNamesBytes(com.google.protobuf.ByteString value) { + public Builder addNamesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureNamesIsMutable(); names_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1026,13 +861,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest) - private static final com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest(); } @@ -1041,16 +875,27 @@ public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchGetEffectiveIamPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchGetEffectiveIamPoliciesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchGetEffectiveIamPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1065,4 +910,6 @@ public com.google.protobuf.Parser getParser public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequestOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequestOrBuilder.java similarity index 67% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequestOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequestOrBuilder.java index 90bbc28f3afd..f75a8b07cda0 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequestOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface BatchGetEffectiveIamPoliciesRequestOrBuilder - extends +public interface BatchGetEffectiveIamPoliciesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. Only IAM policies on or below the scope will be returned.
        * This can only be an organization number (such as "organizations/123"), a
    @@ -37,16 +19,11 @@ public interface BatchGetEffectiveIamPoliciesRequestOrBuilder
        * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
        * 
    * - * - * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The scope. */ java.lang.String getScope(); /** - * - * *
        * Required. Only IAM policies on or below the scope will be returned.
        * This can only be an organization number (such as "organizations/123"), a
    @@ -58,17 +35,13 @@ public interface BatchGetEffectiveIamPoliciesRequestOrBuilder
        * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
        * 
    * - * - * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for scope. */ - com.google.protobuf.ByteString getScopeBytes(); + com.google.protobuf.ByteString + getScopeBytes(); /** - * - * *
        * Required. The names refer to the [full_resource_names]
        * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -77,16 +50,12 @@ public interface BatchGetEffectiveIamPoliciesRequestOrBuilder
        * A maximum of 20 resources' effective policies can be retrieved in a batch.
        * 
    * - * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return A list containing the names. */ - java.util.List getNamesList(); + java.util.List + getNamesList(); /** - * - * *
        * Required. The names refer to the [full_resource_names]
        * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -95,16 +64,11 @@ public interface BatchGetEffectiveIamPoliciesRequestOrBuilder
        * A maximum of 20 resources' effective policies can be retrieved in a batch.
        * 
    * - * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The count of names. */ int getNamesCount(); /** - * - * *
        * Required. The names refer to the [full_resource_names]
        * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -113,17 +77,12 @@ public interface BatchGetEffectiveIamPoliciesRequestOrBuilder
        * A maximum of 20 resources' effective policies can be retrieved in a batch.
        * 
    * - * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The names at the given index. */ java.lang.String getNames(int index); /** - * - * *
        * Required. The names refer to the [full_resource_names]
        * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -132,12 +91,10 @@ public interface BatchGetEffectiveIamPoliciesRequestOrBuilder
        * A maximum of 20 resources' effective policies can be retrieved in a batch.
        * 
    * - * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the names at the given index. */ - com.google.protobuf.ByteString getNamesBytes(int index); + com.google.protobuf.ByteString + getNamesBytes(int index); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponse.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponse.java new file mode 100644 index 000000000000..3b35f780f8a5 --- /dev/null +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponse.java @@ -0,0 +1,3190 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +/** + *
    + * A response message for [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
    + * 
    + * + * Protobuf type {@code google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse} + */ +public final class BatchGetEffectiveIamPoliciesResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse) + BatchGetEffectiveIamPoliciesResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use BatchGetEffectiveIamPoliciesResponse.newBuilder() to construct. + private BatchGetEffectiveIamPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BatchGetEffectiveIamPoliciesResponse() { + policyResults_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BatchGetEffectiveIamPoliciesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.class, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.Builder.class); + } + + public interface EffectiveIamPolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + *
    +     * The [full_resource_name]
    +     * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    +     * for which the [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies] are computed. This is one of the
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names] the caller provides in the
    +     * request.
    +     * 
    + * + * string full_resource_name = 1; + * @return The fullResourceName. + */ + java.lang.String getFullResourceName(); + /** + *
    +     * The [full_resource_name]
    +     * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    +     * for which the [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies] are computed. This is one of the
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names] the caller provides in the
    +     * request.
    +     * 
    + * + * string full_resource_name = 1; + * @return The bytes for fullResourceName. + */ + com.google.protobuf.ByteString + getFullResourceNameBytes(); + + /** + *
    +     * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +     * those set on its parents and ancestors up to the
    +     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +     * are not filtered according to the resource type of the
    +     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies are hierarchically ordered by
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +     * itself to its parents and ancestors, such that policies[i]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + java.util.List + getPoliciesList(); + /** + *
    +     * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +     * those set on its parents and ancestors up to the
    +     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +     * are not filtered according to the resource type of the
    +     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies are hierarchically ordered by
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +     * itself to its parents and ancestors, such that policies[i]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo getPolicies(int index); + /** + *
    +     * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +     * those set on its parents and ancestors up to the
    +     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +     * are not filtered according to the resource type of the
    +     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies are hierarchically ordered by
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +     * itself to its parents and ancestors, such that policies[i]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + int getPoliciesCount(); + /** + *
    +     * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +     * those set on its parents and ancestors up to the
    +     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +     * are not filtered according to the resource type of the
    +     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies are hierarchically ordered by
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +     * itself to its parents and ancestors, such that policies[i]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + java.util.List + getPoliciesOrBuilderList(); + /** + *
    +     * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +     * those set on its parents and ancestors up to the
    +     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +     * are not filtered according to the resource type of the
    +     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies are hierarchically ordered by
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +     * itself to its parents and ancestors, such that policies[i]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfoOrBuilder getPoliciesOrBuilder( + int index); + } + /** + *
    +   * The effective IAM policies on one resource.
    +   * 
    + * + * Protobuf type {@code google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy} + */ + public static final class EffectiveIamPolicy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) + EffectiveIamPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use EffectiveIamPolicy.newBuilder() to construct. + private EffectiveIamPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EffectiveIamPolicy() { + fullResourceName_ = ""; + policies_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new EffectiveIamPolicy(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.class, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder.class); + } + + public interface PolicyInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
    +       * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
    +       * 
    + * + * string attached_resource = 1; + * @return The attachedResource. + */ + java.lang.String getAttachedResource(); + /** + *
    +       * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
    +       * 
    + * + * string attached_resource = 1; + * @return The bytes for attachedResource. + */ + com.google.protobuf.ByteString + getAttachedResourceBytes(); + + /** + *
    +       * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +       * 
    + * + * .google.iam.v1.Policy policy = 2; + * @return Whether the policy field is set. + */ + boolean hasPolicy(); + /** + *
    +       * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +       * 
    + * + * .google.iam.v1.Policy policy = 2; + * @return The policy. + */ + com.google.iam.v1.Policy getPolicy(); + /** + *
    +       * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +       * 
    + * + * .google.iam.v1.Policy policy = 2; + */ + com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder(); + } + /** + *
    +     * The IAM policy and its attached resource.
    +     * 
    + * + * Protobuf type {@code google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo} + */ + public static final class PolicyInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo) + PolicyInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use PolicyInfo.newBuilder() to construct. + private PolicyInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PolicyInfo() { + attachedResource_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PolicyInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.class, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.Builder.class); + } + + public static final int ATTACHED_RESOURCE_FIELD_NUMBER = 1; + private volatile java.lang.Object attachedResource_; + /** + *
    +       * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
    +       * 
    + * + * string attached_resource = 1; + * @return The attachedResource. + */ + @java.lang.Override + public java.lang.String getAttachedResource() { + java.lang.Object ref = attachedResource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attachedResource_ = s; + return s; + } + } + /** + *
    +       * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
    +       * 
    + * + * string attached_resource = 1; + * @return The bytes for attachedResource. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAttachedResourceBytes() { + java.lang.Object ref = attachedResource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attachedResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POLICY_FIELD_NUMBER = 2; + private com.google.iam.v1.Policy policy_; + /** + *
    +       * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +       * 
    + * + * .google.iam.v1.Policy policy = 2; + * @return Whether the policy field is set. + */ + @java.lang.Override + public boolean hasPolicy() { + return policy_ != null; + } + /** + *
    +       * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +       * 
    + * + * .google.iam.v1.Policy policy = 2; + * @return The policy. + */ + @java.lang.Override + public com.google.iam.v1.Policy getPolicy() { + return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; + } + /** + *
    +       * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +       * 
    + * + * .google.iam.v1.Policy policy = 2; + */ + @java.lang.Override + public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { + return getPolicy(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attachedResource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attachedResource_); + } + if (policy_ != null) { + output.writeMessage(2, getPolicy()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attachedResource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, attachedResource_); + } + if (policy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPolicy()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo)) { + return super.equals(obj); + } + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo other = (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo) obj; + + if (!getAttachedResource() + .equals(other.getAttachedResource())) return false; + if (hasPolicy() != other.hasPolicy()) return false; + if (hasPolicy()) { + if (!getPolicy() + .equals(other.getPolicy())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ATTACHED_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getAttachedResource().hashCode(); + if (hasPolicy()) { + hash = (37 * hash) + POLICY_FIELD_NUMBER; + hash = (53 * hash) + getPolicy().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo 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; + } + /** + *
    +       * The IAM policy and its attached resource.
    +       * 
    + * + * Protobuf type {@code google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo) + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.class, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.Builder.class); + } + + // Construct using com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + attachedResource_ = ""; + + if (policyBuilder_ == null) { + policy_ = null; + } else { + policy_ = null; + policyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo getDefaultInstanceForType() { + return com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo build() { + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo buildPartial() { + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo result = new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo(this); + result.attachedResource_ = attachedResource_; + if (policyBuilder_ == null) { + result.policy_ = policy_; + } else { + result.policy_ = policyBuilder_.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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo) { + return mergeFrom((com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo other) { + if (other == com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.getDefaultInstance()) return this; + if (!other.getAttachedResource().isEmpty()) { + attachedResource_ = other.attachedResource_; + onChanged(); + } + if (other.hasPolicy()) { + mergePolicy(other.getPolicy()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + attachedResource_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getPolicyFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object attachedResource_ = ""; + /** + *
    +         * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
    +         * 
    + * + * string attached_resource = 1; + * @return The attachedResource. + */ + public java.lang.String getAttachedResource() { + java.lang.Object ref = attachedResource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attachedResource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +         * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
    +         * 
    + * + * string attached_resource = 1; + * @return The bytes for attachedResource. + */ + public com.google.protobuf.ByteString + getAttachedResourceBytes() { + java.lang.Object ref = attachedResource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + attachedResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +         * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
    +         * 
    + * + * string attached_resource = 1; + * @param value The attachedResource to set. + * @return This builder for chaining. + */ + public Builder setAttachedResource( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + attachedResource_ = value; + onChanged(); + return this; + } + /** + *
    +         * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
    +         * 
    + * + * string attached_resource = 1; + * @return This builder for chaining. + */ + public Builder clearAttachedResource() { + + attachedResource_ = getDefaultInstance().getAttachedResource(); + onChanged(); + return this; + } + /** + *
    +         * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
    +         * 
    + * + * string attached_resource = 1; + * @param value The bytes for attachedResource to set. + * @return This builder for chaining. + */ + public Builder setAttachedResourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + attachedResource_ = value; + onChanged(); + return this; + } + + private com.google.iam.v1.Policy policy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> policyBuilder_; + /** + *
    +         * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +         * 
    + * + * .google.iam.v1.Policy policy = 2; + * @return Whether the policy field is set. + */ + public boolean hasPolicy() { + return policyBuilder_ != null || policy_ != null; + } + /** + *
    +         * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +         * 
    + * + * .google.iam.v1.Policy policy = 2; + * @return The policy. + */ + public com.google.iam.v1.Policy getPolicy() { + if (policyBuilder_ == null) { + return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; + } else { + return policyBuilder_.getMessage(); + } + } + /** + *
    +         * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +         * 
    + * + * .google.iam.v1.Policy policy = 2; + */ + public Builder setPolicy(com.google.iam.v1.Policy value) { + if (policyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + policy_ = value; + onChanged(); + } else { + policyBuilder_.setMessage(value); + } + + return this; + } + /** + *
    +         * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +         * 
    + * + * .google.iam.v1.Policy policy = 2; + */ + public Builder setPolicy( + com.google.iam.v1.Policy.Builder builderForValue) { + if (policyBuilder_ == null) { + policy_ = builderForValue.build(); + onChanged(); + } else { + policyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
    +         * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +         * 
    + * + * .google.iam.v1.Policy policy = 2; + */ + public Builder mergePolicy(com.google.iam.v1.Policy value) { + if (policyBuilder_ == null) { + if (policy_ != null) { + policy_ = + com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial(); + } else { + policy_ = value; + } + onChanged(); + } else { + policyBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
    +         * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +         * 
    + * + * .google.iam.v1.Policy policy = 2; + */ + public Builder clearPolicy() { + if (policyBuilder_ == null) { + policy_ = null; + onChanged(); + } else { + policy_ = null; + policyBuilder_ = null; + } + + return this; + } + /** + *
    +         * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +         * 
    + * + * .google.iam.v1.Policy policy = 2; + */ + public com.google.iam.v1.Policy.Builder getPolicyBuilder() { + + onChanged(); + return getPolicyFieldBuilder().getBuilder(); + } + /** + *
    +         * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +         * 
    + * + * .google.iam.v1.Policy policy = 2; + */ + public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { + if (policyBuilder_ != null) { + return policyBuilder_.getMessageOrBuilder(); + } else { + return policy_ == null ? + com.google.iam.v1.Policy.getDefaultInstance() : policy_; + } + } + /** + *
    +         * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +         * 
    + * + * .google.iam.v1.Policy policy = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> + getPolicyFieldBuilder() { + if (policyBuilder_ == null) { + policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>( + getPolicy(), + getParentForChildren(), + isClean()); + policy_ = null; + } + return policyBuilder_; + } + @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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo) + private static final com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo(); + } + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int FULL_RESOURCE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object fullResourceName_; + /** + *
    +     * The [full_resource_name]
    +     * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    +     * for which the [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies] are computed. This is one of the
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names] the caller provides in the
    +     * request.
    +     * 
    + * + * string full_resource_name = 1; + * @return The fullResourceName. + */ + @java.lang.Override + public java.lang.String getFullResourceName() { + java.lang.Object ref = fullResourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fullResourceName_ = s; + return s; + } + } + /** + *
    +     * The [full_resource_name]
    +     * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    +     * for which the [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies] are computed. This is one of the
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names] the caller provides in the
    +     * request.
    +     * 
    + * + * string full_resource_name = 1; + * @return The bytes for fullResourceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFullResourceNameBytes() { + java.lang.Object ref = fullResourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fullResourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POLICIES_FIELD_NUMBER = 2; + private java.util.List policies_; + /** + *
    +     * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +     * those set on its parents and ancestors up to the
    +     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +     * are not filtered according to the resource type of the
    +     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies are hierarchically ordered by
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +     * itself to its parents and ancestors, such that policies[i]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + @java.lang.Override + public java.util.List getPoliciesList() { + return policies_; + } + /** + *
    +     * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +     * those set on its parents and ancestors up to the
    +     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +     * are not filtered according to the resource type of the
    +     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies are hierarchically ordered by
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +     * itself to its parents and ancestors, such that policies[i]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + @java.lang.Override + public java.util.List + getPoliciesOrBuilderList() { + return policies_; + } + /** + *
    +     * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +     * those set on its parents and ancestors up to the
    +     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +     * are not filtered according to the resource type of the
    +     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies are hierarchically ordered by
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +     * itself to its parents and ancestors, such that policies[i]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + @java.lang.Override + public int getPoliciesCount() { + return policies_.size(); + } + /** + *
    +     * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +     * those set on its parents and ancestors up to the
    +     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +     * are not filtered according to the resource type of the
    +     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies are hierarchically ordered by
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +     * itself to its parents and ancestors, such that policies[i]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + @java.lang.Override + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo getPolicies(int index) { + return policies_.get(index); + } + /** + *
    +     * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +     * those set on its parents and ancestors up to the
    +     * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +     * are not filtered according to the resource type of the
    +     * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +     * These policies are hierarchically ordered by
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +     * itself to its parents and ancestors, such that policies[i]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +     * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + @java.lang.Override + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfoOrBuilder getPoliciesOrBuilder( + int index) { + return policies_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fullResourceName_); + } + for (int i = 0; i < policies_.size(); i++) { + output.writeMessage(2, policies_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fullResourceName_); + } + for (int i = 0; i < policies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, policies_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy)) { + return super.equals(obj); + } + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy other = (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) obj; + + if (!getFullResourceName() + .equals(other.getFullResourceName())) return false; + if (!getPoliciesList() + .equals(other.getPoliciesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FULL_RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFullResourceName().hashCode(); + if (getPoliciesCount() > 0) { + hash = (37 * hash) + POLICIES_FIELD_NUMBER; + hash = (53 * hash) + getPoliciesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy 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; + } + /** + *
    +     * The effective IAM policies on one resource.
    +     * 
    + * + * Protobuf type {@code google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.class, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder.class); + } + + // Construct using com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + fullResourceName_ = ""; + + if (policiesBuilder_ == null) { + policies_ = java.util.Collections.emptyList(); + } else { + policies_ = null; + policiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy getDefaultInstanceForType() { + return com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy build() { + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy buildPartial() { + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy result = new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy(this); + int from_bitField0_ = bitField0_; + result.fullResourceName_ = fullResourceName_; + if (policiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + policies_ = java.util.Collections.unmodifiableList(policies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.policies_ = policies_; + } else { + result.policies_ = policiesBuilder_.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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) { + return mergeFrom((com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy other) { + if (other == com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.getDefaultInstance()) return this; + if (!other.getFullResourceName().isEmpty()) { + fullResourceName_ = other.fullResourceName_; + onChanged(); + } + if (policiesBuilder_ == null) { + if (!other.policies_.isEmpty()) { + if (policies_.isEmpty()) { + policies_ = other.policies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePoliciesIsMutable(); + policies_.addAll(other.policies_); + } + onChanged(); + } + } else { + if (!other.policies_.isEmpty()) { + if (policiesBuilder_.isEmpty()) { + policiesBuilder_.dispose(); + policiesBuilder_ = null; + policies_ = other.policies_; + bitField0_ = (bitField0_ & ~0x00000001); + policiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPoliciesFieldBuilder() : null; + } else { + policiesBuilder_.addAllMessages(other.policies_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + fullResourceName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo m = + input.readMessage( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.parser(), + extensionRegistry); + if (policiesBuilder_ == null) { + ensurePoliciesIsMutable(); + policies_.add(m); + } else { + policiesBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object fullResourceName_ = ""; + /** + *
    +       * The [full_resource_name]
    +       * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    +       * for which the [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies] are computed. This is one of the
    +       * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names] the caller provides in the
    +       * request.
    +       * 
    + * + * string full_resource_name = 1; + * @return The fullResourceName. + */ + public java.lang.String getFullResourceName() { + java.lang.Object ref = fullResourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fullResourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +       * The [full_resource_name]
    +       * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    +       * for which the [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies] are computed. This is one of the
    +       * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names] the caller provides in the
    +       * request.
    +       * 
    + * + * string full_resource_name = 1; + * @return The bytes for fullResourceName. + */ + public com.google.protobuf.ByteString + getFullResourceNameBytes() { + java.lang.Object ref = fullResourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fullResourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +       * The [full_resource_name]
    +       * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    +       * for which the [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies] are computed. This is one of the
    +       * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names] the caller provides in the
    +       * request.
    +       * 
    + * + * string full_resource_name = 1; + * @param value The fullResourceName to set. + * @return This builder for chaining. + */ + public Builder setFullResourceName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fullResourceName_ = value; + onChanged(); + return this; + } + /** + *
    +       * The [full_resource_name]
    +       * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    +       * for which the [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies] are computed. This is one of the
    +       * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names] the caller provides in the
    +       * request.
    +       * 
    + * + * string full_resource_name = 1; + * @return This builder for chaining. + */ + public Builder clearFullResourceName() { + + fullResourceName_ = getDefaultInstance().getFullResourceName(); + onChanged(); + return this; + } + /** + *
    +       * The [full_resource_name]
    +       * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    +       * for which the [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies] are computed. This is one of the
    +       * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names] the caller provides in the
    +       * request.
    +       * 
    + * + * string full_resource_name = 1; + * @param value The bytes for fullResourceName to set. + * @return This builder for chaining. + */ + public Builder setFullResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fullResourceName_ = value; + onChanged(); + return this; + } + + private java.util.List policies_ = + java.util.Collections.emptyList(); + private void ensurePoliciesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + policies_ = new java.util.ArrayList(policies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.Builder, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfoOrBuilder> policiesBuilder_; + + /** + *
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
    +       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies are hierarchically ordered by
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * itself to its parents and ancestors, such that policies[i]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +       * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + public java.util.List getPoliciesList() { + if (policiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(policies_); + } else { + return policiesBuilder_.getMessageList(); + } + } + /** + *
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
    +       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies are hierarchically ordered by
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * itself to its parents and ancestors, such that policies[i]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +       * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + public int getPoliciesCount() { + if (policiesBuilder_ == null) { + return policies_.size(); + } else { + return policiesBuilder_.getCount(); + } + } + /** + *
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
    +       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies are hierarchically ordered by
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * itself to its parents and ancestors, such that policies[i]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +       * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo getPolicies(int index) { + if (policiesBuilder_ == null) { + return policies_.get(index); + } else { + return policiesBuilder_.getMessage(index); + } + } + /** + *
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
    +       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies are hierarchically ordered by
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * itself to its parents and ancestors, such that policies[i]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +       * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + public Builder setPolicies( + int index, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo value) { + if (policiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePoliciesIsMutable(); + policies_.set(index, value); + onChanged(); + } else { + policiesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
    +       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies are hierarchically ordered by
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * itself to its parents and ancestors, such that policies[i]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +       * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + public Builder setPolicies( + int index, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.Builder builderForValue) { + if (policiesBuilder_ == null) { + ensurePoliciesIsMutable(); + policies_.set(index, builderForValue.build()); + onChanged(); + } else { + policiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
    +       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies are hierarchically ordered by
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * itself to its parents and ancestors, such that policies[i]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +       * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + public Builder addPolicies(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo value) { + if (policiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePoliciesIsMutable(); + policies_.add(value); + onChanged(); + } else { + policiesBuilder_.addMessage(value); + } + return this; + } + /** + *
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
    +       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies are hierarchically ordered by
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * itself to its parents and ancestors, such that policies[i]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +       * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + public Builder addPolicies( + int index, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo value) { + if (policiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePoliciesIsMutable(); + policies_.add(index, value); + onChanged(); + } else { + policiesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
    +       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies are hierarchically ordered by
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * itself to its parents and ancestors, such that policies[i]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +       * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + public Builder addPolicies( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.Builder builderForValue) { + if (policiesBuilder_ == null) { + ensurePoliciesIsMutable(); + policies_.add(builderForValue.build()); + onChanged(); + } else { + policiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
    +       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies are hierarchically ordered by
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * itself to its parents and ancestors, such that policies[i]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +       * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + public Builder addPolicies( + int index, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.Builder builderForValue) { + if (policiesBuilder_ == null) { + ensurePoliciesIsMutable(); + policies_.add(index, builderForValue.build()); + onChanged(); + } else { + policiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
    +       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies are hierarchically ordered by
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * itself to its parents and ancestors, such that policies[i]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +       * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + public Builder addAllPolicies( + java.lang.Iterable values) { + if (policiesBuilder_ == null) { + ensurePoliciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, policies_); + onChanged(); + } else { + policiesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
    +       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies are hierarchically ordered by
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * itself to its parents and ancestors, such that policies[i]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +       * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + public Builder clearPolicies() { + if (policiesBuilder_ == null) { + policies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + policiesBuilder_.clear(); + } + return this; + } + /** + *
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
    +       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies are hierarchically ordered by
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * itself to its parents and ancestors, such that policies[i]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +       * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + public Builder removePolicies(int index) { + if (policiesBuilder_ == null) { + ensurePoliciesIsMutable(); + policies_.remove(index); + onChanged(); + } else { + policiesBuilder_.remove(index); + } + return this; + } + /** + *
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
    +       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies are hierarchically ordered by
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * itself to its parents and ancestors, such that policies[i]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +       * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.Builder getPoliciesBuilder( + int index) { + return getPoliciesFieldBuilder().getBuilder(index); + } + /** + *
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
    +       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies are hierarchically ordered by
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * itself to its parents and ancestors, such that policies[i]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +       * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfoOrBuilder getPoliciesOrBuilder( + int index) { + if (policiesBuilder_ == null) { + return policies_.get(index); } else { + return policiesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
    +       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies are hierarchically ordered by
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * itself to its parents and ancestors, such that policies[i]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +       * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + public java.util.List + getPoliciesOrBuilderList() { + if (policiesBuilder_ != null) { + return policiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(policies_); + } + } + /** + *
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
    +       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies are hierarchically ordered by
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * itself to its parents and ancestors, such that policies[i]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +       * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.Builder addPoliciesBuilder() { + return getPoliciesFieldBuilder().addBuilder( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.getDefaultInstance()); + } + /** + *
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
    +       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies are hierarchically ordered by
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * itself to its parents and ancestors, such that policies[i]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +       * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.Builder addPoliciesBuilder( + int index) { + return getPoliciesFieldBuilder().addBuilder( + index, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.getDefaultInstance()); + } + /** + *
    +       * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +       * those set on its parents and ancestors up to the
    +       * [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +       * are not filtered according to the resource type of the
    +       * [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +       * These policies are hierarchically ordered by
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +       * itself to its parents and ancestors, such that policies[i]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +       * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
    +       * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + */ + public java.util.List + getPoliciesBuilderList() { + return getPoliciesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.Builder, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfoOrBuilder> + getPoliciesFieldBuilder() { + if (policiesBuilder_ == null) { + policiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.Builder, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfoOrBuilder>( + policies_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + policies_ = null; + } + return policiesBuilder_; + } + @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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) + private static final com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy(); + } + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EffectiveIamPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int POLICY_RESULTS_FIELD_NUMBER = 2; + private java.util.List policyResults_; + /** + *
    +   * The effective policies for a batch of resources. Note that the results
    +   * order is the same as the order of
    +   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +   * have any effective IAM policies, its corresponding policy_result will
    +   * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +   * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + @java.lang.Override + public java.util.List getPolicyResultsList() { + return policyResults_; + } + /** + *
    +   * The effective policies for a batch of resources. Note that the results
    +   * order is the same as the order of
    +   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +   * have any effective IAM policies, its corresponding policy_result will
    +   * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +   * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + @java.lang.Override + public java.util.List + getPolicyResultsOrBuilderList() { + return policyResults_; + } + /** + *
    +   * The effective policies for a batch of resources. Note that the results
    +   * order is the same as the order of
    +   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +   * have any effective IAM policies, its corresponding policy_result will
    +   * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +   * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + @java.lang.Override + public int getPolicyResultsCount() { + return policyResults_.size(); + } + /** + *
    +   * The effective policies for a batch of resources. Note that the results
    +   * order is the same as the order of
    +   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +   * have any effective IAM policies, its corresponding policy_result will
    +   * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +   * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + @java.lang.Override + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy getPolicyResults(int index) { + return policyResults_.get(index); + } + /** + *
    +   * The effective policies for a batch of resources. Note that the results
    +   * order is the same as the order of
    +   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +   * have any effective IAM policies, its corresponding policy_result will
    +   * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +   * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + @java.lang.Override + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicyOrBuilder getPolicyResultsOrBuilder( + int index) { + return policyResults_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < policyResults_.size(); i++) { + output.writeMessage(2, policyResults_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < policyResults_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, policyResults_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse)) { + return super.equals(obj); + } + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse other = (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse) obj; + + if (!getPolicyResultsList() + .equals(other.getPolicyResultsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPolicyResultsCount() > 0) { + hash = (37 * hash) + POLICY_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getPolicyResultsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse 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.asset.v1.BatchGetEffectiveIamPoliciesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse 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.asset.v1.BatchGetEffectiveIamPoliciesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse 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.asset.v1.BatchGetEffectiveIamPoliciesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse 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.asset.v1.BatchGetEffectiveIamPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse 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.asset.v1.BatchGetEffectiveIamPoliciesResponse 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; + } + /** + *
    +   * A response message for [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
    +   * 
    + * + * Protobuf type {@code google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse) + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.class, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.Builder.class); + } + + // Construct using com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (policyResultsBuilder_ == null) { + policyResults_ = java.util.Collections.emptyList(); + } else { + policyResults_ = null; + policyResultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse getDefaultInstanceForType() { + return com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse build() { + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse buildPartial() { + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse result = new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse(this); + int from_bitField0_ = bitField0_; + if (policyResultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + policyResults_ = java.util.Collections.unmodifiableList(policyResults_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.policyResults_ = policyResults_; + } else { + result.policyResults_ = policyResultsBuilder_.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.asset.v1.BatchGetEffectiveIamPoliciesResponse) { + return mergeFrom((com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse other) { + if (other == com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.getDefaultInstance()) return this; + if (policyResultsBuilder_ == null) { + if (!other.policyResults_.isEmpty()) { + if (policyResults_.isEmpty()) { + policyResults_ = other.policyResults_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePolicyResultsIsMutable(); + policyResults_.addAll(other.policyResults_); + } + onChanged(); + } + } else { + if (!other.policyResults_.isEmpty()) { + if (policyResultsBuilder_.isEmpty()) { + policyResultsBuilder_.dispose(); + policyResultsBuilder_ = null; + policyResults_ = other.policyResults_; + bitField0_ = (bitField0_ & ~0x00000001); + policyResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPolicyResultsFieldBuilder() : null; + } else { + policyResultsBuilder_.addAllMessages(other.policyResults_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: { + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy m = + input.readMessage( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.parser(), + extensionRegistry); + if (policyResultsBuilder_ == null) { + ensurePolicyResultsIsMutable(); + policyResults_.add(m); + } else { + policyResultsBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List policyResults_ = + java.util.Collections.emptyList(); + private void ensurePolicyResultsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + policyResults_ = new java.util.ArrayList(policyResults_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicyOrBuilder> policyResultsBuilder_; + + /** + *
    +     * The effective policies for a batch of resources. Note that the results
    +     * order is the same as the order of
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + public java.util.List getPolicyResultsList() { + if (policyResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(policyResults_); + } else { + return policyResultsBuilder_.getMessageList(); + } + } + /** + *
    +     * The effective policies for a batch of resources. Note that the results
    +     * order is the same as the order of
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + public int getPolicyResultsCount() { + if (policyResultsBuilder_ == null) { + return policyResults_.size(); + } else { + return policyResultsBuilder_.getCount(); + } + } + /** + *
    +     * The effective policies for a batch of resources. Note that the results
    +     * order is the same as the order of
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy getPolicyResults(int index) { + if (policyResultsBuilder_ == null) { + return policyResults_.get(index); + } else { + return policyResultsBuilder_.getMessage(index); + } + } + /** + *
    +     * The effective policies for a batch of resources. Note that the results
    +     * order is the same as the order of
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + public Builder setPolicyResults( + int index, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy value) { + if (policyResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyResultsIsMutable(); + policyResults_.set(index, value); + onChanged(); + } else { + policyResultsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
    +     * The effective policies for a batch of resources. Note that the results
    +     * order is the same as the order of
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + public Builder setPolicyResults( + int index, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder builderForValue) { + if (policyResultsBuilder_ == null) { + ensurePolicyResultsIsMutable(); + policyResults_.set(index, builderForValue.build()); + onChanged(); + } else { + policyResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
    +     * The effective policies for a batch of resources. Note that the results
    +     * order is the same as the order of
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + public Builder addPolicyResults(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy value) { + if (policyResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyResultsIsMutable(); + policyResults_.add(value); + onChanged(); + } else { + policyResultsBuilder_.addMessage(value); + } + return this; + } + /** + *
    +     * The effective policies for a batch of resources. Note that the results
    +     * order is the same as the order of
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + public Builder addPolicyResults( + int index, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy value) { + if (policyResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyResultsIsMutable(); + policyResults_.add(index, value); + onChanged(); + } else { + policyResultsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
    +     * The effective policies for a batch of resources. Note that the results
    +     * order is the same as the order of
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + public Builder addPolicyResults( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder builderForValue) { + if (policyResultsBuilder_ == null) { + ensurePolicyResultsIsMutable(); + policyResults_.add(builderForValue.build()); + onChanged(); + } else { + policyResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
    +     * The effective policies for a batch of resources. Note that the results
    +     * order is the same as the order of
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + public Builder addPolicyResults( + int index, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder builderForValue) { + if (policyResultsBuilder_ == null) { + ensurePolicyResultsIsMutable(); + policyResults_.add(index, builderForValue.build()); + onChanged(); + } else { + policyResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
    +     * The effective policies for a batch of resources. Note that the results
    +     * order is the same as the order of
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + public Builder addAllPolicyResults( + java.lang.Iterable values) { + if (policyResultsBuilder_ == null) { + ensurePolicyResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, policyResults_); + onChanged(); + } else { + policyResultsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
    +     * The effective policies for a batch of resources. Note that the results
    +     * order is the same as the order of
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + public Builder clearPolicyResults() { + if (policyResultsBuilder_ == null) { + policyResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + policyResultsBuilder_.clear(); + } + return this; + } + /** + *
    +     * The effective policies for a batch of resources. Note that the results
    +     * order is the same as the order of
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + public Builder removePolicyResults(int index) { + if (policyResultsBuilder_ == null) { + ensurePolicyResultsIsMutable(); + policyResults_.remove(index); + onChanged(); + } else { + policyResultsBuilder_.remove(index); + } + return this; + } + /** + *
    +     * The effective policies for a batch of resources. Note that the results
    +     * order is the same as the order of
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder getPolicyResultsBuilder( + int index) { + return getPolicyResultsFieldBuilder().getBuilder(index); + } + /** + *
    +     * The effective policies for a batch of resources. Note that the results
    +     * order is the same as the order of
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicyOrBuilder getPolicyResultsOrBuilder( + int index) { + if (policyResultsBuilder_ == null) { + return policyResults_.get(index); } else { + return policyResultsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
    +     * The effective policies for a batch of resources. Note that the results
    +     * order is the same as the order of
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + public java.util.List + getPolicyResultsOrBuilderList() { + if (policyResultsBuilder_ != null) { + return policyResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(policyResults_); + } + } + /** + *
    +     * The effective policies for a batch of resources. Note that the results
    +     * order is the same as the order of
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder addPolicyResultsBuilder() { + return getPolicyResultsFieldBuilder().addBuilder( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.getDefaultInstance()); + } + /** + *
    +     * The effective policies for a batch of resources. Note that the results
    +     * order is the same as the order of
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder addPolicyResultsBuilder( + int index) { + return getPolicyResultsFieldBuilder().addBuilder( + index, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.getDefaultInstance()); + } + /** + *
    +     * The effective policies for a batch of resources. Note that the results
    +     * order is the same as the order of
    +     * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +     * have any effective IAM policies, its corresponding policy_result will
    +     * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +     * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + public java.util.List + getPolicyResultsBuilderList() { + return getPolicyResultsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicyOrBuilder> + getPolicyResultsFieldBuilder() { + if (policyResultsBuilder_ == null) { + policyResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicyOrBuilder>( + policyResults_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + policyResults_ = null; + } + return policyResultsBuilder_; + } + @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.asset.v1.BatchGetEffectiveIamPoliciesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse) + private static final com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse(); + } + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchGetEffectiveIamPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponseOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponseOrBuilder.java new file mode 100644 index 000000000000..9bbe167a0d70 --- /dev/null +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponseOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface BatchGetEffectiveIamPoliciesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
    +   * The effective policies for a batch of resources. Note that the results
    +   * order is the same as the order of
    +   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +   * have any effective IAM policies, its corresponding policy_result will
    +   * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +   * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + java.util.List + getPolicyResultsList(); + /** + *
    +   * The effective policies for a batch of resources. Note that the results
    +   * order is the same as the order of
    +   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +   * have any effective IAM policies, its corresponding policy_result will
    +   * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +   * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy getPolicyResults(int index); + /** + *
    +   * The effective policies for a batch of resources. Note that the results
    +   * order is the same as the order of
    +   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +   * have any effective IAM policies, its corresponding policy_result will
    +   * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +   * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + int getPolicyResultsCount(); + /** + *
    +   * The effective policies for a batch of resources. Note that the results
    +   * order is the same as the order of
    +   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +   * have any effective IAM policies, its corresponding policy_result will
    +   * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +   * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + java.util.List + getPolicyResultsOrBuilderList(); + /** + *
    +   * The effective policies for a batch of resources. Note that the results
    +   * order is the same as the order of
    +   * [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +   * have any effective IAM policies, its corresponding policy_result will
    +   * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +   * 
    + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + */ + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicyOrBuilder getPolicyResultsOrBuilder( + int index); +} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java similarity index 80% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java index d3db2835dee3..4f042fb3a83d 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * A BigQuery destination for exporting assets to.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.BigQueryDestination} */ -public final class BigQueryDestination extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BigQueryDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.BigQueryDestination) BigQueryDestinationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BigQueryDestination.newBuilder() to construct. private BigQueryDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BigQueryDestination() { dataset_ = ""; table_ = ""; @@ -44,114 +26,32 @@ private BigQueryDestination() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BigQueryDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private BigQueryDestination( - 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(); - - dataset_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - table_ = s; - break; - } - case 24: - { - force_ = input.readBool(); - break; - } - case 34: - { - com.google.cloud.asset.v1.PartitionSpec.Builder subBuilder = null; - if (partitionSpec_ != null) { - subBuilder = partitionSpec_.toBuilder(); - } - partitionSpec_ = - input.readMessage( - com.google.cloud.asset.v1.PartitionSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(partitionSpec_); - partitionSpec_ = subBuilder.buildPartial(); - } - - break; - } - case 40: - { - separateTablesPerAssetType_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BigQueryDestination_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BigQueryDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BigQueryDestination.class, - com.google.cloud.asset.v1.BigQueryDestination.Builder.class); + com.google.cloud.asset.v1.BigQueryDestination.class, com.google.cloud.asset.v1.BigQueryDestination.Builder.class); } public static final int DATASET_FIELD_NUMBER = 1; private volatile java.lang.Object dataset_; /** - * - * *
        * Required. The BigQuery dataset in format
        * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -164,7 +64,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The dataset. */ @java.lang.Override @@ -173,15 +72,14 @@ public java.lang.String getDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; } } /** - * - * *
        * Required. The BigQuery dataset in format
        * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -194,15 +92,16 @@ public java.lang.String getDataset() {
        * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for dataset. */ @java.lang.Override - public com.google.protobuf.ByteString getDatasetBytes() { + public com.google.protobuf.ByteString + getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataset_ = b; return b; } else { @@ -213,8 +112,6 @@ public com.google.protobuf.ByteString getDatasetBytes() { public static final int TABLE_FIELD_NUMBER = 2; private volatile java.lang.Object table_; /** - * - * *
        * Required. The BigQuery table to which the snapshot result should be
        * written. If this table does not exist, a new table with the given name
    @@ -222,7 +119,6 @@ public com.google.protobuf.ByteString getDatasetBytes() {
        * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The table. */ @java.lang.Override @@ -231,15 +127,14 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** - * - * *
        * Required. The BigQuery table to which the snapshot result should be
        * written. If this table does not exist, a new table with the given name
    @@ -247,15 +142,16 @@ public java.lang.String getTable() {
        * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString getTableBytes() { + public com.google.protobuf.ByteString + getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -266,8 +162,6 @@ public com.google.protobuf.ByteString getTableBytes() { public static final int FORCE_FIELD_NUMBER = 3; private boolean force_; /** - * - * *
        * If the destination table already exists and this flag is `TRUE`, the
        * table will be overwritten by the contents of assets snapshot. If the flag
    @@ -276,7 +170,6 @@ public com.google.protobuf.ByteString getTableBytes() {
        * 
    * * bool force = 3; - * * @return The force. */ @java.lang.Override @@ -287,8 +180,6 @@ public boolean getForce() { public static final int PARTITION_SPEC_FIELD_NUMBER = 4; private com.google.cloud.asset.v1.PartitionSpec partitionSpec_; /** - * - * *
        * [partition_spec] determines whether to export to partitioned table(s) and
        * how to partition the data.
    @@ -308,7 +199,6 @@ public boolean getForce() {
        * 
    * * .google.cloud.asset.v1.PartitionSpec partition_spec = 4; - * * @return Whether the partitionSpec field is set. */ @java.lang.Override @@ -316,8 +206,6 @@ public boolean hasPartitionSpec() { return partitionSpec_ != null; } /** - * - * *
        * [partition_spec] determines whether to export to partitioned table(s) and
        * how to partition the data.
    @@ -337,18 +225,13 @@ public boolean hasPartitionSpec() {
        * 
    * * .google.cloud.asset.v1.PartitionSpec partition_spec = 4; - * * @return The partitionSpec. */ @java.lang.Override public com.google.cloud.asset.v1.PartitionSpec getPartitionSpec() { - return partitionSpec_ == null - ? com.google.cloud.asset.v1.PartitionSpec.getDefaultInstance() - : partitionSpec_; + return partitionSpec_ == null ? com.google.cloud.asset.v1.PartitionSpec.getDefaultInstance() : partitionSpec_; } /** - * - * *
        * [partition_spec] determines whether to export to partitioned table(s) and
        * how to partition the data.
    @@ -377,8 +260,6 @@ public com.google.cloud.asset.v1.PartitionSpecOrBuilder getPartitionSpecOrBuilde
       public static final int SEPARATE_TABLES_PER_ASSET_TYPE_FIELD_NUMBER = 5;
       private boolean separateTablesPerAssetType_;
       /**
    -   *
    -   *
        * 
        * If this flag is `TRUE`, the snapshot results will be written to one or
        * multiple tables, each of which contains results of one asset type. The
    @@ -407,7 +288,6 @@ public com.google.cloud.asset.v1.PartitionSpecOrBuilder getPartitionSpecOrBuilde
        * 
    * * bool separate_tables_per_asset_type = 5; - * * @return The separateTablesPerAssetType. */ @java.lang.Override @@ -416,7 +296,6 @@ public boolean getSeparateTablesPerAssetType() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -428,7 +307,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); } @@ -444,7 +324,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (separateTablesPerAssetType_ != false) { output.writeBool(5, separateTablesPerAssetType_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -460,15 +340,18 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, table_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, force_); } if (partitionSpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPartitionSpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getPartitionSpec()); } if (separateTablesPerAssetType_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, separateTablesPerAssetType_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, separateTablesPerAssetType_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -476,23 +359,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.BigQueryDestination)) { return super.equals(obj); } - com.google.cloud.asset.v1.BigQueryDestination other = - (com.google.cloud.asset.v1.BigQueryDestination) obj; + com.google.cloud.asset.v1.BigQueryDestination other = (com.google.cloud.asset.v1.BigQueryDestination) obj; - if (!getDataset().equals(other.getDataset())) return false; - if (!getTable().equals(other.getTable())) return false; - if (getForce() != other.getForce()) return false; + if (!getDataset() + .equals(other.getDataset())) return false; + if (!getTable() + .equals(other.getTable())) return false; + if (getForce() + != other.getForce()) return false; if (hasPartitionSpec() != other.hasPartitionSpec()) return false; if (hasPartitionSpec()) { - if (!getPartitionSpec().equals(other.getPartitionSpec())) return false; + if (!getPartitionSpec() + .equals(other.getPartitionSpec())) return false; } - if (getSeparateTablesPerAssetType() != other.getSeparateTablesPerAssetType()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (getSeparateTablesPerAssetType() + != other.getSeparateTablesPerAssetType()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -508,155 +395,144 @@ public int hashCode() { hash = (37 * hash) + TABLE_FIELD_NUMBER; hash = (53 * hash) + getTable().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); if (hasPartitionSpec()) { hash = (37 * hash) + PARTITION_SPEC_FIELD_NUMBER; hash = (53 * hash) + getPartitionSpec().hashCode(); } hash = (37 * hash) + SEPARATE_TABLES_PER_ASSET_TYPE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSeparateTablesPerAssetType()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSeparateTablesPerAssetType()); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.BigQueryDestination parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.BigQueryDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.BigQueryDestination parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.BigQueryDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.BigQueryDestination 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.asset.v1.BigQueryDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.BigQueryDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.BigQueryDestination parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.BigQueryDestination parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.BigQueryDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.BigQueryDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.BigQueryDestination parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.BigQueryDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.BigQueryDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.BigQueryDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * A BigQuery destination for exporting assets to.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.BigQueryDestination} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.BigQueryDestination) com.google.cloud.asset.v1.BigQueryDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BigQueryDestination_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BigQueryDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BigQueryDestination.class, - com.google.cloud.asset.v1.BigQueryDestination.Builder.class); + com.google.cloud.asset.v1.BigQueryDestination.class, com.google.cloud.asset.v1.BigQueryDestination.Builder.class); } // Construct using com.google.cloud.asset.v1.BigQueryDestination.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -678,9 +554,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor; } @java.lang.Override @@ -699,8 +575,7 @@ public com.google.cloud.asset.v1.BigQueryDestination build() { @java.lang.Override public com.google.cloud.asset.v1.BigQueryDestination buildPartial() { - com.google.cloud.asset.v1.BigQueryDestination result = - new com.google.cloud.asset.v1.BigQueryDestination(this); + com.google.cloud.asset.v1.BigQueryDestination result = new com.google.cloud.asset.v1.BigQueryDestination(this); result.dataset_ = dataset_; result.table_ = table_; result.force_ = force_; @@ -718,39 +593,38 @@ public com.google.cloud.asset.v1.BigQueryDestination buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.BigQueryDestination) { - return mergeFrom((com.google.cloud.asset.v1.BigQueryDestination) other); + return mergeFrom((com.google.cloud.asset.v1.BigQueryDestination)other); } else { super.mergeFrom(other); return this; @@ -776,7 +650,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.BigQueryDestination other) { if (other.getSeparateTablesPerAssetType() != false) { setSeparateTablesPerAssetType(other.getSeparateTablesPerAssetType()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -791,24 +665,62 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.BigQueryDestination parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + dataset_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + table_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + force_ = input.readBool(); + + break; + } // case 24 + case 34: { + input.readMessage( + getPartitionSpecFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 40: { + separateTablesPerAssetType_ = input.readBool(); + + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.BigQueryDestination) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object dataset_ = ""; /** - * - * *
          * Required. The BigQuery dataset in format
          * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -821,13 +733,13 @@ public Builder mergeFrom(
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The dataset. */ public java.lang.String getDataset() { java.lang.Object ref = dataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; @@ -836,8 +748,6 @@ public java.lang.String getDataset() { } } /** - * - * *
          * Required. The BigQuery dataset in format
          * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -850,14 +760,15 @@ public java.lang.String getDataset() {
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for dataset. */ - public com.google.protobuf.ByteString getDatasetBytes() { + public com.google.protobuf.ByteString + getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataset_ = b; return b; } else { @@ -865,8 +776,6 @@ public com.google.protobuf.ByteString getDatasetBytes() { } } /** - * - * *
          * Required. The BigQuery dataset in format
          * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -879,22 +788,20 @@ public com.google.protobuf.ByteString getDatasetBytes() {
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The dataset to set. * @return This builder for chaining. */ - public Builder setDataset(java.lang.String value) { + public Builder setDataset( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataset_ = value; onChanged(); return this; } /** - * - * *
          * Required. The BigQuery dataset in format
          * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -907,18 +814,15 @@ public Builder setDataset(java.lang.String value) {
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDataset() { - + dataset_ = getDefaultInstance().getDataset(); onChanged(); return this; } /** - * - * *
          * Required. The BigQuery dataset in format
          * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -931,16 +835,16 @@ public Builder clearDataset() {
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for dataset to set. * @return This builder for chaining. */ - public Builder setDatasetBytes(com.google.protobuf.ByteString value) { + public Builder setDatasetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; onChanged(); return this; @@ -948,8 +852,6 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { private java.lang.Object table_ = ""; /** - * - * *
          * Required. The BigQuery table to which the snapshot result should be
          * written. If this table does not exist, a new table with the given name
    @@ -957,13 +859,13 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) {
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -972,8 +874,6 @@ public java.lang.String getTable() { } } /** - * - * *
          * Required. The BigQuery table to which the snapshot result should be
          * written. If this table does not exist, a new table with the given name
    @@ -981,14 +881,15 @@ public java.lang.String getTable() {
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for table. */ - public com.google.protobuf.ByteString getTableBytes() { + public com.google.protobuf.ByteString + getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -996,8 +897,6 @@ public com.google.protobuf.ByteString getTableBytes() { } } /** - * - * *
          * Required. The BigQuery table to which the snapshot result should be
          * written. If this table does not exist, a new table with the given name
    @@ -1005,22 +904,20 @@ public com.google.protobuf.ByteString getTableBytes() {
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable(java.lang.String value) { + public Builder setTable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + table_ = value; onChanged(); return this; } /** - * - * *
          * Required. The BigQuery table to which the snapshot result should be
          * written. If this table does not exist, a new table with the given name
    @@ -1028,18 +925,15 @@ public Builder setTable(java.lang.String value) {
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTable() { - + table_ = getDefaultInstance().getTable(); onChanged(); return this; } /** - * - * *
          * Required. The BigQuery table to which the snapshot result should be
          * written. If this table does not exist, a new table with the given name
    @@ -1047,25 +941,23 @@ public Builder clearTable() {
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for table to set. * @return This builder for chaining. */ - public Builder setTableBytes(com.google.protobuf.ByteString value) { + public Builder setTableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + table_ = value; onChanged(); return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
          * If the destination table already exists and this flag is `TRUE`, the
          * table will be overwritten by the contents of assets snapshot. If the flag
    @@ -1074,7 +966,6 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) {
          * 
    * * bool force = 3; - * * @return The force. */ @java.lang.Override @@ -1082,8 +973,6 @@ public boolean getForce() { return force_; } /** - * - * *
          * If the destination table already exists and this flag is `TRUE`, the
          * table will be overwritten by the contents of assets snapshot. If the flag
    @@ -1092,19 +981,16 @@ public boolean getForce() {
          * 
    * * bool force = 3; - * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** - * - * *
          * If the destination table already exists and this flag is `TRUE`, the
          * table will be overwritten by the contents of assets snapshot. If the flag
    @@ -1113,11 +999,10 @@ public Builder setForce(boolean value) {
          * 
    * * bool force = 3; - * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; @@ -1125,13 +1010,8 @@ public Builder clearForce() { private com.google.cloud.asset.v1.PartitionSpec partitionSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.PartitionSpec, - com.google.cloud.asset.v1.PartitionSpec.Builder, - com.google.cloud.asset.v1.PartitionSpecOrBuilder> - partitionSpecBuilder_; + com.google.cloud.asset.v1.PartitionSpec, com.google.cloud.asset.v1.PartitionSpec.Builder, com.google.cloud.asset.v1.PartitionSpecOrBuilder> partitionSpecBuilder_; /** - * - * *
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1151,15 +1031,12 @@ public Builder clearForce() {
          * 
    * * .google.cloud.asset.v1.PartitionSpec partition_spec = 4; - * * @return Whether the partitionSpec field is set. */ public boolean hasPartitionSpec() { return partitionSpecBuilder_ != null || partitionSpec_ != null; } /** - * - * *
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1179,21 +1056,16 @@ public boolean hasPartitionSpec() {
          * 
    * * .google.cloud.asset.v1.PartitionSpec partition_spec = 4; - * * @return The partitionSpec. */ public com.google.cloud.asset.v1.PartitionSpec getPartitionSpec() { if (partitionSpecBuilder_ == null) { - return partitionSpec_ == null - ? com.google.cloud.asset.v1.PartitionSpec.getDefaultInstance() - : partitionSpec_; + return partitionSpec_ == null ? com.google.cloud.asset.v1.PartitionSpec.getDefaultInstance() : partitionSpec_; } else { return partitionSpecBuilder_.getMessage(); } } /** - * - * *
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1228,8 +1100,6 @@ public Builder setPartitionSpec(com.google.cloud.asset.v1.PartitionSpec value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1262,8 +1132,6 @@ public Builder setPartitionSpec(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1288,9 +1156,7 @@ public Builder mergePartitionSpec(com.google.cloud.asset.v1.PartitionSpec value)
           if (partitionSpecBuilder_ == null) {
             if (partitionSpec_ != null) {
               partitionSpec_ =
    -              com.google.cloud.asset.v1.PartitionSpec.newBuilder(partitionSpec_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +            com.google.cloud.asset.v1.PartitionSpec.newBuilder(partitionSpec_).mergeFrom(value).buildPartial();
             } else {
               partitionSpec_ = value;
             }
    @@ -1302,8 +1168,6 @@ public Builder mergePartitionSpec(com.google.cloud.asset.v1.PartitionSpec value)
           return this;
         }
         /**
    -     *
    -     *
          * 
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1336,8 +1200,6 @@ public Builder clearPartitionSpec() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1359,13 +1221,11 @@ public Builder clearPartitionSpec() {
          * .google.cloud.asset.v1.PartitionSpec partition_spec = 4;
          */
         public com.google.cloud.asset.v1.PartitionSpec.Builder getPartitionSpecBuilder() {
    -
    +      
           onChanged();
           return getPartitionSpecFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1390,14 +1250,11 @@ public com.google.cloud.asset.v1.PartitionSpecOrBuilder getPartitionSpecOrBuilde
           if (partitionSpecBuilder_ != null) {
             return partitionSpecBuilder_.getMessageOrBuilder();
           } else {
    -        return partitionSpec_ == null
    -            ? com.google.cloud.asset.v1.PartitionSpec.getDefaultInstance()
    -            : partitionSpec_;
    +        return partitionSpec_ == null ?
    +            com.google.cloud.asset.v1.PartitionSpec.getDefaultInstance() : partitionSpec_;
           }
         }
         /**
    -     *
    -     *
          * 
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1419,26 +1276,21 @@ public com.google.cloud.asset.v1.PartitionSpecOrBuilder getPartitionSpecOrBuilde
          * .google.cloud.asset.v1.PartitionSpec partition_spec = 4;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.PartitionSpec,
    -            com.google.cloud.asset.v1.PartitionSpec.Builder,
    -            com.google.cloud.asset.v1.PartitionSpecOrBuilder>
    +        com.google.cloud.asset.v1.PartitionSpec, com.google.cloud.asset.v1.PartitionSpec.Builder, com.google.cloud.asset.v1.PartitionSpecOrBuilder> 
             getPartitionSpecFieldBuilder() {
           if (partitionSpecBuilder_ == null) {
    -        partitionSpecBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.cloud.asset.v1.PartitionSpec,
    -                com.google.cloud.asset.v1.PartitionSpec.Builder,
    -                com.google.cloud.asset.v1.PartitionSpecOrBuilder>(
    -                getPartitionSpec(), getParentForChildren(), isClean());
    +        partitionSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.cloud.asset.v1.PartitionSpec, com.google.cloud.asset.v1.PartitionSpec.Builder, com.google.cloud.asset.v1.PartitionSpecOrBuilder>(
    +                getPartitionSpec(),
    +                getParentForChildren(),
    +                isClean());
             partitionSpec_ = null;
           }
           return partitionSpecBuilder_;
         }
     
    -    private boolean separateTablesPerAssetType_;
    +    private boolean separateTablesPerAssetType_ ;
         /**
    -     *
    -     *
          * 
          * If this flag is `TRUE`, the snapshot results will be written to one or
          * multiple tables, each of which contains results of one asset type. The
    @@ -1467,7 +1319,6 @@ public com.google.cloud.asset.v1.PartitionSpecOrBuilder getPartitionSpecOrBuilde
          * 
    * * bool separate_tables_per_asset_type = 5; - * * @return The separateTablesPerAssetType. */ @java.lang.Override @@ -1475,8 +1326,6 @@ public boolean getSeparateTablesPerAssetType() { return separateTablesPerAssetType_; } /** - * - * *
          * If this flag is `TRUE`, the snapshot results will be written to one or
          * multiple tables, each of which contains results of one asset type. The
    @@ -1505,19 +1354,16 @@ public boolean getSeparateTablesPerAssetType() {
          * 
    * * bool separate_tables_per_asset_type = 5; - * * @param value The separateTablesPerAssetType to set. * @return This builder for chaining. */ public Builder setSeparateTablesPerAssetType(boolean value) { - + separateTablesPerAssetType_ = value; onChanged(); return this; } /** - * - * *
          * If this flag is `TRUE`, the snapshot results will be written to one or
          * multiple tables, each of which contains results of one asset type. The
    @@ -1546,18 +1392,17 @@ public Builder setSeparateTablesPerAssetType(boolean value) {
          * 
    * * bool separate_tables_per_asset_type = 5; - * * @return This builder for chaining. */ public Builder clearSeparateTablesPerAssetType() { - + separateTablesPerAssetType_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1567,12 +1412,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.BigQueryDestination) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.BigQueryDestination) private static final com.google.cloud.asset.v1.BigQueryDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.BigQueryDestination(); } @@ -1581,16 +1426,27 @@ public static com.google.cloud.asset.v1.BigQueryDestination getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BigQueryDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1605,4 +1461,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.BigQueryDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestinationOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestinationOrBuilder.java similarity index 90% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestinationOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestinationOrBuilder.java index b5571d295fbd..2b70f211fc51 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestinationOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestinationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface BigQueryDestinationOrBuilder - extends +public interface BigQueryDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.BigQueryDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The BigQuery dataset in format
        * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -38,13 +20,10 @@ public interface BigQueryDestinationOrBuilder
        * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The dataset. */ java.lang.String getDataset(); /** - * - * *
        * Required. The BigQuery dataset in format
        * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -57,14 +36,12 @@ public interface BigQueryDestinationOrBuilder
        * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for dataset. */ - com.google.protobuf.ByteString getDatasetBytes(); + com.google.protobuf.ByteString + getDatasetBytes(); /** - * - * *
        * Required. The BigQuery table to which the snapshot result should be
        * written. If this table does not exist, a new table with the given name
    @@ -72,13 +49,10 @@ public interface BigQueryDestinationOrBuilder
        * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The table. */ java.lang.String getTable(); /** - * - * *
        * Required. The BigQuery table to which the snapshot result should be
        * written. If this table does not exist, a new table with the given name
    @@ -86,14 +60,12 @@ public interface BigQueryDestinationOrBuilder
        * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for table. */ - com.google.protobuf.ByteString getTableBytes(); + com.google.protobuf.ByteString + getTableBytes(); /** - * - * *
        * If the destination table already exists and this flag is `TRUE`, the
        * table will be overwritten by the contents of assets snapshot. If the flag
    @@ -102,14 +74,11 @@ public interface BigQueryDestinationOrBuilder
        * 
    * * bool force = 3; - * * @return The force. */ boolean getForce(); /** - * - * *
        * [partition_spec] determines whether to export to partitioned table(s) and
        * how to partition the data.
    @@ -129,13 +98,10 @@ public interface BigQueryDestinationOrBuilder
        * 
    * * .google.cloud.asset.v1.PartitionSpec partition_spec = 4; - * * @return Whether the partitionSpec field is set. */ boolean hasPartitionSpec(); /** - * - * *
        * [partition_spec] determines whether to export to partitioned table(s) and
        * how to partition the data.
    @@ -155,13 +121,10 @@ public interface BigQueryDestinationOrBuilder
        * 
    * * .google.cloud.asset.v1.PartitionSpec partition_spec = 4; - * * @return The partitionSpec. */ com.google.cloud.asset.v1.PartitionSpec getPartitionSpec(); /** - * - * *
        * [partition_spec] determines whether to export to partitioned table(s) and
        * how to partition the data.
    @@ -185,8 +148,6 @@ public interface BigQueryDestinationOrBuilder
       com.google.cloud.asset.v1.PartitionSpecOrBuilder getPartitionSpecOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * If this flag is `TRUE`, the snapshot results will be written to one or
        * multiple tables, each of which contains results of one asset type. The
    @@ -215,7 +176,6 @@ public interface BigQueryDestinationOrBuilder
        * 
    * * bool separate_tables_per_asset_type = 5; - * * @return The separateTablesPerAssetType. */ boolean getSeparateTablesPerAssetType(); diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluation.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluation.java similarity index 63% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluation.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluation.java index 2d821fe3fb7f..f8b38612e299 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluation.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluation.java @@ -1,131 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** - * - * *
      * The Condition evaluation.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.ConditionEvaluation} */ -public final class ConditionEvaluation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ConditionEvaluation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.ConditionEvaluation) ConditionEvaluationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ConditionEvaluation.newBuilder() to construct. private ConditionEvaluation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConditionEvaluation() { evaluationValue_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConditionEvaluation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private ConditionEvaluation( - 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(); - - evaluationValue_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_ConditionEvaluation_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_ConditionEvaluation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ConditionEvaluation.class, - com.google.cloud.asset.v1.ConditionEvaluation.Builder.class); + com.google.cloud.asset.v1.ConditionEvaluation.class, com.google.cloud.asset.v1.ConditionEvaluation.Builder.class); } /** - * - * *
        * Value of this expression.
        * 
    * * Protobuf enum {@code google.cloud.asset.v1.ConditionEvaluation.EvaluationValue} */ - public enum EvaluationValue implements com.google.protobuf.ProtocolMessageEnum { + public enum EvaluationValue + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
          * Reserved for future use.
          * 
    @@ -134,8 +66,6 @@ public enum EvaluationValue implements com.google.protobuf.ProtocolMessageEnum { */ EVALUATION_VALUE_UNSPECIFIED(0), /** - * - * *
          * The evaluation result is `true`.
          * 
    @@ -144,8 +74,6 @@ public enum EvaluationValue implements com.google.protobuf.ProtocolMessageEnum { */ TRUE(1), /** - * - * *
          * The evaluation result is `false`.
          * 
    @@ -154,8 +82,6 @@ public enum EvaluationValue implements com.google.protobuf.ProtocolMessageEnum { */ FALSE(2), /** - * - * *
          * The evaluation result is `conditional` when the condition expression
          * contains variables that are either missing input values or have not been
    @@ -169,8 +95,6 @@ public enum EvaluationValue implements com.google.protobuf.ProtocolMessageEnum {
         ;
     
         /**
    -     *
    -     *
          * 
          * Reserved for future use.
          * 
    @@ -179,8 +103,6 @@ public enum EvaluationValue implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EVALUATION_VALUE_UNSPECIFIED_VALUE = 0; /** - * - * *
          * The evaluation result is `true`.
          * 
    @@ -189,8 +111,6 @@ public enum EvaluationValue implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TRUE_VALUE = 1; /** - * - * *
          * The evaluation result is `false`.
          * 
    @@ -199,8 +119,6 @@ public enum EvaluationValue implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FALSE_VALUE = 2; /** - * - * *
          * The evaluation result is `conditional` when the condition expression
          * contains variables that are either missing input values or have not been
    @@ -211,6 +129,7 @@ public enum EvaluationValue implements com.google.protobuf.ProtocolMessageEnum {
          */
         public static final int CONDITIONAL_VALUE = 3;
     
    +
         public final int getNumber() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalArgumentException(
    @@ -235,44 +154,40 @@ public static EvaluationValue valueOf(int value) {
          */
         public static EvaluationValue forNumber(int value) {
           switch (value) {
    -        case 0:
    -          return EVALUATION_VALUE_UNSPECIFIED;
    -        case 1:
    -          return TRUE;
    -        case 2:
    -          return FALSE;
    -        case 3:
    -          return CONDITIONAL;
    -        default:
    -          return null;
    +        case 0: return EVALUATION_VALUE_UNSPECIFIED;
    +        case 1: return TRUE;
    +        case 2: return FALSE;
    +        case 3: return CONDITIONAL;
    +        default: return null;
           }
         }
     
    -    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
    +    public static com.google.protobuf.Internal.EnumLiteMap
    +        internalGetValueMap() {
           return internalValueMap;
         }
    +    private static final com.google.protobuf.Internal.EnumLiteMap<
    +        EvaluationValue> internalValueMap =
    +          new com.google.protobuf.Internal.EnumLiteMap() {
    +            public EvaluationValue findValueByNumber(int number) {
    +              return EvaluationValue.forNumber(number);
    +            }
    +          };
     
    -    private static final com.google.protobuf.Internal.EnumLiteMap
    -        internalValueMap =
    -            new com.google.protobuf.Internal.EnumLiteMap() {
    -              public EvaluationValue findValueByNumber(int number) {
    -                return EvaluationValue.forNumber(number);
    -              }
    -            };
    -
    -    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
    +    public final com.google.protobuf.Descriptors.EnumValueDescriptor
    +        getValueDescriptor() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalStateException(
                 "Can't get the descriptor of an unrecognized enum value.");
           }
           return getDescriptor().getValues().get(ordinal());
         }
    -
    -    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
    +    public final com.google.protobuf.Descriptors.EnumDescriptor
    +        getDescriptorForType() {
           return getDescriptor();
         }
    -
    -    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
    +    public static final com.google.protobuf.Descriptors.EnumDescriptor
    +        getDescriptor() {
           return com.google.cloud.asset.v1.ConditionEvaluation.getDescriptor().getEnumTypes().get(0);
         }
     
    @@ -281,7 +196,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
         public static EvaluationValue valueOf(
             com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
           if (desc.getType() != getDescriptor()) {
    -        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
    +        throw new java.lang.IllegalArgumentException(
    +          "EnumValueDescriptor is not for this type.");
           }
           if (desc.getIndex() == -1) {
             return UNRECOGNIZED;
    @@ -301,43 +217,31 @@ private EvaluationValue(int value) {
       public static final int EVALUATION_VALUE_FIELD_NUMBER = 1;
       private int evaluationValue_;
       /**
    -   *
    -   *
        * 
        * The evaluation result.
        * 
    * * .google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1; - * * @return The enum numeric value on the wire for evaluationValue. */ - @java.lang.Override - public int getEvaluationValueValue() { + @java.lang.Override public int getEvaluationValueValue() { return evaluationValue_; } /** - * - * *
        * The evaluation result.
        * 
    * * .google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1; - * * @return The evaluationValue. */ - @java.lang.Override - public com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue getEvaluationValue() { + @java.lang.Override public com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue getEvaluationValue() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue result = - com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue.valueOf(evaluationValue_); - return result == null - ? com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue.UNRECOGNIZED - : result; + com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue result = com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue.valueOf(evaluationValue_); + return result == null ? com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -349,14 +253,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (evaluationValue_ - != com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue - .EVALUATION_VALUE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (evaluationValue_ != com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue.EVALUATION_VALUE_UNSPECIFIED.getNumber()) { output.writeEnum(1, evaluationValue_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -365,13 +267,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (evaluationValue_ - != com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue - .EVALUATION_VALUE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, evaluationValue_); + if (evaluationValue_ != com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue.EVALUATION_VALUE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, evaluationValue_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -379,16 +279,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.ConditionEvaluation)) { return super.equals(obj); } - com.google.cloud.asset.v1.ConditionEvaluation other = - (com.google.cloud.asset.v1.ConditionEvaluation) obj; + com.google.cloud.asset.v1.ConditionEvaluation other = (com.google.cloud.asset.v1.ConditionEvaluation) obj; if (evaluationValue_ != other.evaluationValue_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -401,148 +300,135 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + EVALUATION_VALUE_FIELD_NUMBER; hash = (53 * hash) + evaluationValue_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ConditionEvaluation 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.asset.v1.ConditionEvaluation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.ConditionEvaluation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.ConditionEvaluation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ConditionEvaluation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.ConditionEvaluation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * The Condition evaluation.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.ConditionEvaluation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.ConditionEvaluation) com.google.cloud.asset.v1.ConditionEvaluationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_ConditionEvaluation_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_ConditionEvaluation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ConditionEvaluation.class, - com.google.cloud.asset.v1.ConditionEvaluation.Builder.class); + com.google.cloud.asset.v1.ConditionEvaluation.class, com.google.cloud.asset.v1.ConditionEvaluation.Builder.class); } // Construct using com.google.cloud.asset.v1.ConditionEvaluation.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -552,9 +438,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor; } @java.lang.Override @@ -573,8 +459,7 @@ public com.google.cloud.asset.v1.ConditionEvaluation build() { @java.lang.Override public com.google.cloud.asset.v1.ConditionEvaluation buildPartial() { - com.google.cloud.asset.v1.ConditionEvaluation result = - new com.google.cloud.asset.v1.ConditionEvaluation(this); + com.google.cloud.asset.v1.ConditionEvaluation result = new com.google.cloud.asset.v1.ConditionEvaluation(this); result.evaluationValue_ = evaluationValue_; onBuilt(); return result; @@ -584,39 +469,38 @@ public com.google.cloud.asset.v1.ConditionEvaluation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.ConditionEvaluation) { - return mergeFrom((com.google.cloud.asset.v1.ConditionEvaluation) other); + return mergeFrom((com.google.cloud.asset.v1.ConditionEvaluation)other); } else { super.mergeFrom(other); return this; @@ -628,7 +512,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ConditionEvaluation other) { if (other.evaluationValue_ != 0) { setEvaluationValueValue(other.getEvaluationValueValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -643,116 +527,114 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.ConditionEvaluation parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + evaluationValue_ = input.readEnum(); + + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.ConditionEvaluation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int evaluationValue_ = 0; /** - * - * *
          * The evaluation result.
          * 
    * * .google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1; - * * @return The enum numeric value on the wire for evaluationValue. */ - @java.lang.Override - public int getEvaluationValueValue() { + @java.lang.Override public int getEvaluationValueValue() { return evaluationValue_; } /** - * - * *
          * The evaluation result.
          * 
    * * .google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1; - * * @param value The enum numeric value on the wire for evaluationValue to set. * @return This builder for chaining. */ public Builder setEvaluationValueValue(int value) { - + evaluationValue_ = value; onChanged(); return this; } /** - * - * *
          * The evaluation result.
          * 
    * * .google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1; - * * @return The evaluationValue. */ @java.lang.Override public com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue getEvaluationValue() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue result = - com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue.valueOf(evaluationValue_); - return result == null - ? com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue.UNRECOGNIZED - : result; + com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue result = com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue.valueOf(evaluationValue_); + return result == null ? com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue.UNRECOGNIZED : result; } /** - * - * *
          * The evaluation result.
          * 
    * * .google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1; - * * @param value The evaluationValue to set. * @return This builder for chaining. */ - public Builder setEvaluationValue( - com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue value) { + public Builder setEvaluationValue(com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue value) { if (value == null) { throw new NullPointerException(); } - + evaluationValue_ = value.getNumber(); onChanged(); return this; } /** - * - * *
          * The evaluation result.
          * 
    * * .google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1; - * * @return This builder for chaining. */ public Builder clearEvaluationValue() { - + evaluationValue_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -762,12 +644,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.ConditionEvaluation) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.ConditionEvaluation) private static final com.google.cloud.asset.v1.ConditionEvaluation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.ConditionEvaluation(); } @@ -776,16 +658,27 @@ public static com.google.cloud.asset.v1.ConditionEvaluation getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConditionEvaluation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConditionEvaluation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConditionEvaluation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -800,4 +693,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.ConditionEvaluation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluationOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluationOrBuilder.java similarity index 55% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluationOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluationOrBuilder.java index 316a06ba4cd8..999084a21084 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluationOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluationOrBuilder.java @@ -1,49 +1,27 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; -public interface ConditionEvaluationOrBuilder - extends +public interface ConditionEvaluationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.ConditionEvaluation) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The evaluation result.
        * 
    * * .google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1; - * * @return The enum numeric value on the wire for evaluationValue. */ int getEvaluationValueValue(); /** - * - * *
        * The evaluation result.
        * 
    * * .google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1; - * * @return The evaluationValue. */ com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue getEvaluationValue(); diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ContentType.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ContentType.java similarity index 70% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ContentType.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ContentType.java index 973207d8905d..9838b22f41bb 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ContentType.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ContentType.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * Asset content type.
      * 
    * * Protobuf enum {@code google.cloud.asset.v1.ContentType} */ -public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { +public enum ContentType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unspecified content type.
        * 
    @@ -39,8 +21,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ CONTENT_TYPE_UNSPECIFIED(0), /** - * - * *
        * Resource metadata.
        * 
    @@ -49,8 +29,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ RESOURCE(1), /** - * - * *
        * The actual IAM policy set on a resource.
        * 
    @@ -59,8 +37,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ IAM_POLICY(2), /** - * - * *
        * The Cloud Organization Policy set on an asset.
        * 
    @@ -69,8 +45,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ ORG_POLICY(4), /** - * - * *
        * The Cloud Access context manager Policy set on an asset.
        * 
    @@ -79,8 +53,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ ACCESS_POLICY(5), /** - * - * *
        * The runtime OS Inventory information.
        * 
    @@ -89,8 +61,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ OS_INVENTORY(6), /** - * - * *
        * The related resources.
        * 
    @@ -102,8 +72,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unspecified content type.
        * 
    @@ -112,8 +80,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONTENT_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Resource metadata.
        * 
    @@ -122,8 +88,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RESOURCE_VALUE = 1; /** - * - * *
        * The actual IAM policy set on a resource.
        * 
    @@ -132,8 +96,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IAM_POLICY_VALUE = 2; /** - * - * *
        * The Cloud Organization Policy set on an asset.
        * 
    @@ -142,8 +104,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ORG_POLICY_VALUE = 4; /** - * - * *
        * The Cloud Access context manager Policy set on an asset.
        * 
    @@ -152,8 +112,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACCESS_POLICY_VALUE = 5; /** - * - * *
        * The runtime OS Inventory information.
        * 
    @@ -162,8 +120,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OS_INVENTORY_VALUE = 6; /** - * - * *
        * The related resources.
        * 
    @@ -172,6 +128,7 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RELATIONSHIP_VALUE = 7; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -196,57 +153,53 @@ public static ContentType valueOf(int value) { */ public static ContentType forNumber(int value) { switch (value) { - case 0: - return CONTENT_TYPE_UNSPECIFIED; - case 1: - return RESOURCE; - case 2: - return IAM_POLICY; - case 4: - return ORG_POLICY; - case 5: - return ACCESS_POLICY; - case 6: - return OS_INVENTORY; - case 7: - return RELATIONSHIP; - default: - return null; + case 0: return CONTENT_TYPE_UNSPECIFIED; + case 1: return RESOURCE; + case 2: return IAM_POLICY; + case 4: return ORG_POLICY; + case 5: return ACCESS_POLICY; + case 6: return OS_INVENTORY; + case 7: return RELATIONSHIP; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + 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 ContentType findValueByNumber(int number) { - return ContentType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + ContentType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ContentType findValueByNumber(int number) { + return ContentType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.asset.v1.AssetServiceProto.getDescriptor().getEnumTypes().get(0); } private static final ContentType[] VALUES = values(); - public static ContentType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ContentType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -262,3 +215,4 @@ private ContentType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.asset.v1.ContentType) } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java similarity index 68% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java index f05fab727f45..93fd3c3cb30c 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * Create asset feed request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.CreateFeedRequest} */ -public final class CreateFeedRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateFeedRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.CreateFeedRequest) CreateFeedRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateFeedRequest.newBuilder() to construct. private CreateFeedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateFeedRequest() { parent_ = ""; feedId_ = ""; @@ -44,102 +26,32 @@ private CreateFeedRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateFeedRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private CreateFeedRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - feedId_ = s; - break; - } - case 26: - { - com.google.cloud.asset.v1.Feed.Builder subBuilder = null; - if (feed_ != null) { - subBuilder = feed_.toBuilder(); - } - feed_ = input.readMessage(com.google.cloud.asset.v1.Feed.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(feed_); - feed_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_CreateFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_CreateFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.CreateFeedRequest.class, - com.google.cloud.asset.v1.CreateFeedRequest.Builder.class); + com.google.cloud.asset.v1.CreateFeedRequest.class, com.google.cloud.asset.v1.CreateFeedRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
        * Required. The name of the project/folder/organization where this feed
        * should be created in. It can only be an organization number (such as
    @@ -149,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -158,15 +69,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
        * Required. The name of the project/folder/organization where this feed
        * should be created in. It can only be an organization number (such as
    @@ -176,15 +86,16 @@ public java.lang.String getParent() {
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -195,15 +106,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FEED_ID_FIELD_NUMBER = 2; private volatile java.lang.Object feedId_; /** - * - * *
        * Required. This is the client-assigned asset feed identifier and it needs to
        * be unique under a specific parent project/folder/organization.
        * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The feedId. */ @java.lang.Override @@ -212,30 +120,30 @@ public java.lang.String getFeedId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); feedId_ = s; return s; } } /** - * - * *
        * Required. This is the client-assigned asset feed identifier and it needs to
        * be unique under a specific parent project/folder/organization.
        * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for feedId. */ @java.lang.Override - public com.google.protobuf.ByteString getFeedIdBytes() { + public com.google.protobuf.ByteString + getFeedIdBytes() { java.lang.Object ref = feedId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); feedId_ = b; return b; } else { @@ -246,17 +154,15 @@ public com.google.protobuf.ByteString getFeedIdBytes() { public static final int FEED_FIELD_NUMBER = 3; private com.google.cloud.asset.v1.Feed feed_; /** - * - * *
    -   * Required. The feed details. The field `name` must be empty and it will be
    -   * generated in the format of: projects/project_number/feeds/feed_id
    +   * Required. The feed details. The field `name` must be empty and it will be generated
    +   * in the format of:
    +   * projects/project_number/feeds/feed_id
        * folders/folder_number/feeds/feed_id
        * organizations/organization_number/feeds/feed_id
        * 
    * * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the feed field is set. */ @java.lang.Override @@ -264,17 +170,15 @@ public boolean hasFeed() { return feed_ != null; } /** - * - * *
    -   * Required. The feed details. The field `name` must be empty and it will be
    -   * generated in the format of: projects/project_number/feeds/feed_id
    +   * Required. The feed details. The field `name` must be empty and it will be generated
    +   * in the format of:
    +   * projects/project_number/feeds/feed_id
        * folders/folder_number/feeds/feed_id
        * organizations/organization_number/feeds/feed_id
        * 
    * * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The feed. */ @java.lang.Override @@ -282,11 +186,10 @@ public com.google.cloud.asset.v1.Feed getFeed() { return feed_ == null ? com.google.cloud.asset.v1.Feed.getDefaultInstance() : feed_; } /** - * - * *
    -   * Required. The feed details. The field `name` must be empty and it will be
    -   * generated in the format of: projects/project_number/feeds/feed_id
    +   * Required. The feed details. The field `name` must be empty and it will be generated
    +   * in the format of:
    +   * projects/project_number/feeds/feed_id
        * folders/folder_number/feeds/feed_id
        * organizations/organization_number/feeds/feed_id
        * 
    @@ -299,7 +202,6 @@ public com.google.cloud.asset.v1.FeedOrBuilder getFeedOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -311,7 +213,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -321,7 +224,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (feed_ != null) { output.writeMessage(3, getFeed()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -337,9 +240,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, feedId_); } if (feed_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFeed()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getFeed()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -347,21 +251,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.CreateFeedRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.CreateFeedRequest other = - (com.google.cloud.asset.v1.CreateFeedRequest) obj; + com.google.cloud.asset.v1.CreateFeedRequest other = (com.google.cloud.asset.v1.CreateFeedRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFeedId().equals(other.getFeedId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFeedId() + .equals(other.getFeedId())) return false; if (hasFeed() != other.hasFeed()) return false; if (hasFeed()) { - if (!getFeed().equals(other.getFeed())) return false; + if (!getFeed() + .equals(other.getFeed())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -380,148 +286,135 @@ public int hashCode() { hash = (37 * hash) + FEED_FIELD_NUMBER; hash = (53 * hash) + getFeed().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.CreateFeedRequest 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.asset.v1.CreateFeedRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.CreateFeedRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.CreateFeedRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.CreateFeedRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.CreateFeedRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Create asset feed request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.CreateFeedRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.CreateFeedRequest) com.google.cloud.asset.v1.CreateFeedRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_CreateFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_CreateFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.CreateFeedRequest.class, - com.google.cloud.asset.v1.CreateFeedRequest.Builder.class); + com.google.cloud.asset.v1.CreateFeedRequest.class, com.google.cloud.asset.v1.CreateFeedRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.CreateFeedRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -539,9 +432,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor; } @java.lang.Override @@ -560,8 +453,7 @@ public com.google.cloud.asset.v1.CreateFeedRequest build() { @java.lang.Override public com.google.cloud.asset.v1.CreateFeedRequest buildPartial() { - com.google.cloud.asset.v1.CreateFeedRequest result = - new com.google.cloud.asset.v1.CreateFeedRequest(this); + com.google.cloud.asset.v1.CreateFeedRequest result = new com.google.cloud.asset.v1.CreateFeedRequest(this); result.parent_ = parent_; result.feedId_ = feedId_; if (feedBuilder_ == null) { @@ -577,39 +469,38 @@ public com.google.cloud.asset.v1.CreateFeedRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.CreateFeedRequest) { - return mergeFrom((com.google.cloud.asset.v1.CreateFeedRequest) other); + return mergeFrom((com.google.cloud.asset.v1.CreateFeedRequest)other); } else { super.mergeFrom(other); return this; @@ -629,7 +520,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.CreateFeedRequest other) { if (other.hasFeed()) { mergeFeed(other.getFeed()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -644,24 +535,52 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.CreateFeedRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + feedId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + input.readMessage( + getFeedFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.CreateFeedRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object parent_ = ""; /** - * - * *
          * Required. The name of the project/folder/organization where this feed
          * should be created in. It can only be an organization number (such as
    @@ -671,13 +590,13 @@ public Builder mergeFrom(
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -686,8 +605,6 @@ public java.lang.String getParent() { } } /** - * - * *
          * Required. The name of the project/folder/organization where this feed
          * should be created in. It can only be an organization number (such as
    @@ -697,14 +614,15 @@ public java.lang.String getParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -712,8 +630,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
          * Required. The name of the project/folder/organization where this feed
          * should be created in. It can only be an organization number (such as
    @@ -723,22 +639,20 @@ public com.google.protobuf.ByteString getParentBytes() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
          * Required. The name of the project/folder/organization where this feed
          * should be created in. It can only be an organization number (such as
    @@ -748,18 +662,15 @@ public Builder setParent(java.lang.String value) {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
          * Required. The name of the project/folder/organization where this feed
          * should be created in. It can only be an organization number (such as
    @@ -769,16 +680,16 @@ public Builder clearParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -786,21 +697,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object feedId_ = ""; /** - * - * *
          * Required. This is the client-assigned asset feed identifier and it needs to
          * be unique under a specific parent project/folder/organization.
          * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The feedId. */ public java.lang.String getFeedId() { java.lang.Object ref = feedId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); feedId_ = s; return s; @@ -809,22 +718,21 @@ public java.lang.String getFeedId() { } } /** - * - * *
          * Required. This is the client-assigned asset feed identifier and it needs to
          * be unique under a specific parent project/folder/organization.
          * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for feedId. */ - public com.google.protobuf.ByteString getFeedIdBytes() { + public com.google.protobuf.ByteString + getFeedIdBytes() { java.lang.Object ref = feedId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); feedId_ = b; return b; } else { @@ -832,64 +740,57 @@ public com.google.protobuf.ByteString getFeedIdBytes() { } } /** - * - * *
          * Required. This is the client-assigned asset feed identifier and it needs to
          * be unique under a specific parent project/folder/organization.
          * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The feedId to set. * @return This builder for chaining. */ - public Builder setFeedId(java.lang.String value) { + public Builder setFeedId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + feedId_ = value; onChanged(); return this; } /** - * - * *
          * Required. This is the client-assigned asset feed identifier and it needs to
          * be unique under a specific parent project/folder/organization.
          * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFeedId() { - + feedId_ = getDefaultInstance().getFeedId(); onChanged(); return this; } /** - * - * *
          * Required. This is the client-assigned asset feed identifier and it needs to
          * be unique under a specific parent project/folder/organization.
          * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for feedId to set. * @return This builder for chaining. */ - public Builder setFeedIdBytes(com.google.protobuf.ByteString value) { + public Builder setFeedIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + feedId_ = value; onChanged(); return this; @@ -897,39 +798,32 @@ public Builder setFeedIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.asset.v1.Feed feed_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.Feed, - com.google.cloud.asset.v1.Feed.Builder, - com.google.cloud.asset.v1.FeedOrBuilder> - feedBuilder_; + com.google.cloud.asset.v1.Feed, com.google.cloud.asset.v1.Feed.Builder, com.google.cloud.asset.v1.FeedOrBuilder> feedBuilder_; /** - * - * *
    -     * Required. The feed details. The field `name` must be empty and it will be
    -     * generated in the format of: projects/project_number/feeds/feed_id
    +     * Required. The feed details. The field `name` must be empty and it will be generated
    +     * in the format of:
    +     * projects/project_number/feeds/feed_id
          * folders/folder_number/feeds/feed_id
          * organizations/organization_number/feeds/feed_id
          * 
    * * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the feed field is set. */ public boolean hasFeed() { return feedBuilder_ != null || feed_ != null; } /** - * - * *
    -     * Required. The feed details. The field `name` must be empty and it will be
    -     * generated in the format of: projects/project_number/feeds/feed_id
    +     * Required. The feed details. The field `name` must be empty and it will be generated
    +     * in the format of:
    +     * projects/project_number/feeds/feed_id
          * folders/folder_number/feeds/feed_id
          * organizations/organization_number/feeds/feed_id
          * 
    * * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The feed. */ public com.google.cloud.asset.v1.Feed getFeed() { @@ -940,11 +834,10 @@ public com.google.cloud.asset.v1.Feed getFeed() { } } /** - * - * *
    -     * Required. The feed details. The field `name` must be empty and it will be
    -     * generated in the format of: projects/project_number/feeds/feed_id
    +     * Required. The feed details. The field `name` must be empty and it will be generated
    +     * in the format of:
    +     * projects/project_number/feeds/feed_id
          * folders/folder_number/feeds/feed_id
          * organizations/organization_number/feeds/feed_id
          * 
    @@ -965,18 +858,18 @@ public Builder setFeed(com.google.cloud.asset.v1.Feed value) { return this; } /** - * - * *
    -     * Required. The feed details. The field `name` must be empty and it will be
    -     * generated in the format of: projects/project_number/feeds/feed_id
    +     * Required. The feed details. The field `name` must be empty and it will be generated
    +     * in the format of:
    +     * projects/project_number/feeds/feed_id
          * folders/folder_number/feeds/feed_id
          * organizations/organization_number/feeds/feed_id
          * 
    * * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setFeed(com.google.cloud.asset.v1.Feed.Builder builderForValue) { + public Builder setFeed( + com.google.cloud.asset.v1.Feed.Builder builderForValue) { if (feedBuilder_ == null) { feed_ = builderForValue.build(); onChanged(); @@ -987,11 +880,10 @@ public Builder setFeed(com.google.cloud.asset.v1.Feed.Builder builderForValue) { return this; } /** - * - * *
    -     * Required. The feed details. The field `name` must be empty and it will be
    -     * generated in the format of: projects/project_number/feeds/feed_id
    +     * Required. The feed details. The field `name` must be empty and it will be generated
    +     * in the format of:
    +     * projects/project_number/feeds/feed_id
          * folders/folder_number/feeds/feed_id
          * organizations/organization_number/feeds/feed_id
          * 
    @@ -1001,7 +893,8 @@ public Builder setFeed(com.google.cloud.asset.v1.Feed.Builder builderForValue) { public Builder mergeFeed(com.google.cloud.asset.v1.Feed value) { if (feedBuilder_ == null) { if (feed_ != null) { - feed_ = com.google.cloud.asset.v1.Feed.newBuilder(feed_).mergeFrom(value).buildPartial(); + feed_ = + com.google.cloud.asset.v1.Feed.newBuilder(feed_).mergeFrom(value).buildPartial(); } else { feed_ = value; } @@ -1013,11 +906,10 @@ public Builder mergeFeed(com.google.cloud.asset.v1.Feed value) { return this; } /** - * - * *
    -     * Required. The feed details. The field `name` must be empty and it will be
    -     * generated in the format of: projects/project_number/feeds/feed_id
    +     * Required. The feed details. The field `name` must be empty and it will be generated
    +     * in the format of:
    +     * projects/project_number/feeds/feed_id
          * folders/folder_number/feeds/feed_id
          * organizations/organization_number/feeds/feed_id
          * 
    @@ -1036,11 +928,10 @@ public Builder clearFeed() { return this; } /** - * - * *
    -     * Required. The feed details. The field `name` must be empty and it will be
    -     * generated in the format of: projects/project_number/feeds/feed_id
    +     * Required. The feed details. The field `name` must be empty and it will be generated
    +     * in the format of:
    +     * projects/project_number/feeds/feed_id
          * folders/folder_number/feeds/feed_id
          * organizations/organization_number/feeds/feed_id
          * 
    @@ -1048,16 +939,15 @@ public Builder clearFeed() { * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.asset.v1.Feed.Builder getFeedBuilder() { - + onChanged(); return getFeedFieldBuilder().getBuilder(); } /** - * - * *
    -     * Required. The feed details. The field `name` must be empty and it will be
    -     * generated in the format of: projects/project_number/feeds/feed_id
    +     * Required. The feed details. The field `name` must be empty and it will be generated
    +     * in the format of:
    +     * projects/project_number/feeds/feed_id
          * folders/folder_number/feeds/feed_id
          * organizations/organization_number/feeds/feed_id
          * 
    @@ -1068,15 +958,15 @@ public com.google.cloud.asset.v1.FeedOrBuilder getFeedOrBuilder() { if (feedBuilder_ != null) { return feedBuilder_.getMessageOrBuilder(); } else { - return feed_ == null ? com.google.cloud.asset.v1.Feed.getDefaultInstance() : feed_; + return feed_ == null ? + com.google.cloud.asset.v1.Feed.getDefaultInstance() : feed_; } } /** - * - * *
    -     * Required. The feed details. The field `name` must be empty and it will be
    -     * generated in the format of: projects/project_number/feeds/feed_id
    +     * Required. The feed details. The field `name` must be empty and it will be generated
    +     * in the format of:
    +     * projects/project_number/feeds/feed_id
          * folders/folder_number/feeds/feed_id
          * organizations/organization_number/feeds/feed_id
          * 
    @@ -1084,24 +974,21 @@ public com.google.cloud.asset.v1.FeedOrBuilder getFeedOrBuilder() { * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.Feed, - com.google.cloud.asset.v1.Feed.Builder, - com.google.cloud.asset.v1.FeedOrBuilder> + com.google.cloud.asset.v1.Feed, com.google.cloud.asset.v1.Feed.Builder, com.google.cloud.asset.v1.FeedOrBuilder> getFeedFieldBuilder() { if (feedBuilder_ == null) { - feedBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.Feed, - com.google.cloud.asset.v1.Feed.Builder, - com.google.cloud.asset.v1.FeedOrBuilder>( - getFeed(), getParentForChildren(), isClean()); + feedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.Feed, com.google.cloud.asset.v1.Feed.Builder, com.google.cloud.asset.v1.FeedOrBuilder>( + getFeed(), + getParentForChildren(), + isClean()); feed_ = null; } return feedBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1111,12 +998,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.CreateFeedRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.CreateFeedRequest) private static final com.google.cloud.asset.v1.CreateFeedRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.CreateFeedRequest(); } @@ -1125,16 +1012,27 @@ public static com.google.cloud.asset.v1.CreateFeedRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFeedRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateFeedRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFeedRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1149,4 +1047,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.CreateFeedRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java similarity index 72% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java index 8b873ad91afc..e8371de16d32 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface CreateFeedRequestOrBuilder - extends +public interface CreateFeedRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.CreateFeedRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The name of the project/folder/organization where this feed
        * should be created in. It can only be an organization number (such as
    @@ -35,13 +17,10 @@ public interface CreateFeedRequestOrBuilder
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
        * Required. The name of the project/folder/organization where this feed
        * should be created in. It can only be an organization number (such as
    @@ -51,74 +30,64 @@ public interface CreateFeedRequestOrBuilder
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
        * Required. This is the client-assigned asset feed identifier and it needs to
        * be unique under a specific parent project/folder/organization.
        * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The feedId. */ java.lang.String getFeedId(); /** - * - * *
        * Required. This is the client-assigned asset feed identifier and it needs to
        * be unique under a specific parent project/folder/organization.
        * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for feedId. */ - com.google.protobuf.ByteString getFeedIdBytes(); + com.google.protobuf.ByteString + getFeedIdBytes(); /** - * - * *
    -   * Required. The feed details. The field `name` must be empty and it will be
    -   * generated in the format of: projects/project_number/feeds/feed_id
    +   * Required. The feed details. The field `name` must be empty and it will be generated
    +   * in the format of:
    +   * projects/project_number/feeds/feed_id
        * folders/folder_number/feeds/feed_id
        * organizations/organization_number/feeds/feed_id
        * 
    * * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the feed field is set. */ boolean hasFeed(); /** - * - * *
    -   * Required. The feed details. The field `name` must be empty and it will be
    -   * generated in the format of: projects/project_number/feeds/feed_id
    +   * Required. The feed details. The field `name` must be empty and it will be generated
    +   * in the format of:
    +   * projects/project_number/feeds/feed_id
        * folders/folder_number/feeds/feed_id
        * organizations/organization_number/feeds/feed_id
        * 
    * * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The feed. */ com.google.cloud.asset.v1.Feed getFeed(); /** - * - * *
    -   * Required. The feed details. The field `name` must be empty and it will be
    -   * generated in the format of: projects/project_number/feeds/feed_id
    +   * Required. The feed details. The field `name` must be empty and it will be generated
    +   * in the format of:
    +   * projects/project_number/feeds/feed_id
        * folders/folder_number/feeds/feed_id
        * organizations/organization_number/feeds/feed_id
        * 
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequest.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequest.java similarity index 56% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequest.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequest.java index 7bb028864cc6..2d7bcbf3e098 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequest.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * Request to create a saved query.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.CreateSavedQueryRequest} */ -public final class CreateSavedQueryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateSavedQueryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.CreateSavedQueryRequest) CreateSavedQueryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateSavedQueryRequest.newBuilder() to construct. private CreateSavedQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateSavedQueryRequest() { parent_ = ""; savedQueryId_ = ""; @@ -44,116 +26,41 @@ private CreateSavedQueryRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateSavedQueryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private CreateSavedQueryRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - com.google.cloud.asset.v1.SavedQuery.Builder subBuilder = null; - if (savedQuery_ != null) { - subBuilder = savedQuery_.toBuilder(); - } - savedQuery_ = - input.readMessage( - com.google.cloud.asset.v1.SavedQuery.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(savedQuery_); - savedQuery_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - savedQueryId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.CreateSavedQueryRequest.class, - com.google.cloud.asset.v1.CreateSavedQueryRequest.Builder.class); + com.google.cloud.asset.v1.CreateSavedQueryRequest.class, com.google.cloud.asset.v1.CreateSavedQueryRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    -   * Required. The name of the project/folder/organization where this
    -   * saved_query should be created in. It can only be an organization number
    -   * (such as "organizations/123"), a folder number (such as "folders/123"), a
    -   * project ID (such as "projects/my-project-id")", or a project number (such
    -   * as "projects/12345").
    +   * Required. The name of the project/folder/organization where this saved_query
    +   * should be created in. It can only be an organization number (such as
    +   * "organizations/123"), a folder number (such as "folders/123"), a project ID
    +   * (such as "projects/my-project-id")", or a project number (such as
    +   * "projects/12345").
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -162,35 +69,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    -   * Required. The name of the project/folder/organization where this
    -   * saved_query should be created in. It can only be an organization number
    -   * (such as "organizations/123"), a folder number (such as "folders/123"), a
    -   * project ID (such as "projects/my-project-id")", or a project number (such
    -   * as "projects/12345").
    +   * Required. The name of the project/folder/organization where this saved_query
    +   * should be created in. It can only be an organization number (such as
    +   * "organizations/123"), a folder number (such as "folders/123"), a project ID
    +   * (such as "projects/my-project-id")", or a project number (such as
    +   * "projects/12345").
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -201,17 +106,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SAVED_QUERY_FIELD_NUMBER = 2; private com.google.cloud.asset.v1.SavedQuery savedQuery_; /** - * - * *
    -   * Required. The saved_query details. The `name` field must be empty as it
    -   * will be generated based on the parent and saved_query_id.
    +   * Required. The saved_query details. The `name` field must be empty as it will be
    +   * generated based on the parent and saved_query_id.
        * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the savedQuery field is set. */ @java.lang.Override @@ -219,36 +119,25 @@ public boolean hasSavedQuery() { return savedQuery_ != null; } /** - * - * *
    -   * Required. The saved_query details. The `name` field must be empty as it
    -   * will be generated based on the parent and saved_query_id.
    +   * Required. The saved_query details. The `name` field must be empty as it will be
    +   * generated based on the parent and saved_query_id.
        * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The savedQuery. */ @java.lang.Override public com.google.cloud.asset.v1.SavedQuery getSavedQuery() { - return savedQuery_ == null - ? com.google.cloud.asset.v1.SavedQuery.getDefaultInstance() - : savedQuery_; + return savedQuery_ == null ? com.google.cloud.asset.v1.SavedQuery.getDefaultInstance() : savedQuery_; } /** - * - * *
    -   * Required. The saved_query details. The `name` field must be empty as it
    -   * will be generated based on the parent and saved_query_id.
    +   * Required. The saved_query details. The `name` field must be empty as it will be
    +   * generated based on the parent and saved_query_id.
        * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() { @@ -258,12 +147,10 @@ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() { public static final int SAVED_QUERY_ID_FIELD_NUMBER = 3; private volatile java.lang.Object savedQueryId_; /** - * - * *
    -   * Required. The ID to use for the saved query, which must be unique in the
    -   * specified parent. It will become the final component of the saved query's
    -   * resource name.
    +   * Required. The ID to use for the saved query, which must be unique in the specified
    +   * parent. It will become the final component of the saved query's resource
    +   * name.
        * This value should be 4-63 characters, and valid characters
        * are /[a-z][0-9]-/.
        * Notice that this field is required in the saved query creation, and the
    @@ -271,7 +158,6 @@ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() {
        * 
    * * string saved_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The savedQueryId. */ @java.lang.Override @@ -280,19 +166,18 @@ public java.lang.String getSavedQueryId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); savedQueryId_ = s; return s; } } /** - * - * *
    -   * Required. The ID to use for the saved query, which must be unique in the
    -   * specified parent. It will become the final component of the saved query's
    -   * resource name.
    +   * Required. The ID to use for the saved query, which must be unique in the specified
    +   * parent. It will become the final component of the saved query's resource
    +   * name.
        * This value should be 4-63 characters, and valid characters
        * are /[a-z][0-9]-/.
        * Notice that this field is required in the saved query creation, and the
    @@ -300,15 +185,16 @@ public java.lang.String getSavedQueryId() {
        * 
    * * string saved_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for savedQueryId. */ @java.lang.Override - public com.google.protobuf.ByteString getSavedQueryIdBytes() { + public com.google.protobuf.ByteString + getSavedQueryIdBytes() { java.lang.Object ref = savedQueryId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); savedQueryId_ = b; return b; } else { @@ -317,7 +203,6 @@ public com.google.protobuf.ByteString getSavedQueryIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -329,7 +214,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -339,7 +225,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedQueryId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, savedQueryId_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -352,12 +238,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (savedQuery_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSavedQuery()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSavedQuery()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedQueryId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, savedQueryId_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -365,21 +252,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.CreateSavedQueryRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.CreateSavedQueryRequest other = - (com.google.cloud.asset.v1.CreateSavedQueryRequest) obj; + com.google.cloud.asset.v1.CreateSavedQueryRequest other = (com.google.cloud.asset.v1.CreateSavedQueryRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasSavedQuery() != other.hasSavedQuery()) return false; if (hasSavedQuery()) { - if (!getSavedQuery().equals(other.getSavedQuery())) return false; + if (!getSavedQuery() + .equals(other.getSavedQuery())) return false; } - if (!getSavedQueryId().equals(other.getSavedQueryId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getSavedQueryId() + .equals(other.getSavedQueryId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -398,148 +287,135 @@ public int hashCode() { } hash = (37 * hash) + SAVED_QUERY_ID_FIELD_NUMBER; hash = (53 * hash) + getSavedQueryId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.CreateSavedQueryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.CreateSavedQueryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.CreateSavedQueryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.CreateSavedQueryRequest 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.asset.v1.CreateSavedQueryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.CreateSavedQueryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.CreateSavedQueryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.CreateSavedQueryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.CreateSavedQueryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.CreateSavedQueryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.CreateSavedQueryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.CreateSavedQueryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.CreateSavedQueryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.CreateSavedQueryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.CreateSavedQueryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Request to create a saved query.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.CreateSavedQueryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.CreateSavedQueryRequest) com.google.cloud.asset.v1.CreateSavedQueryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.CreateSavedQueryRequest.class, - com.google.cloud.asset.v1.CreateSavedQueryRequest.Builder.class); + com.google.cloud.asset.v1.CreateSavedQueryRequest.class, com.google.cloud.asset.v1.CreateSavedQueryRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.CreateSavedQueryRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -557,9 +433,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_descriptor; } @java.lang.Override @@ -578,8 +454,7 @@ public com.google.cloud.asset.v1.CreateSavedQueryRequest build() { @java.lang.Override public com.google.cloud.asset.v1.CreateSavedQueryRequest buildPartial() { - com.google.cloud.asset.v1.CreateSavedQueryRequest result = - new com.google.cloud.asset.v1.CreateSavedQueryRequest(this); + com.google.cloud.asset.v1.CreateSavedQueryRequest result = new com.google.cloud.asset.v1.CreateSavedQueryRequest(this); result.parent_ = parent_; if (savedQueryBuilder_ == null) { result.savedQuery_ = savedQuery_; @@ -595,39 +470,38 @@ public com.google.cloud.asset.v1.CreateSavedQueryRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.CreateSavedQueryRequest) { - return mergeFrom((com.google.cloud.asset.v1.CreateSavedQueryRequest) other); + return mergeFrom((com.google.cloud.asset.v1.CreateSavedQueryRequest)other); } else { super.mergeFrom(other); return this; @@ -635,8 +509,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.CreateSavedQueryRequest other) { - if (other == com.google.cloud.asset.v1.CreateSavedQueryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.CreateSavedQueryRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -648,7 +521,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.CreateSavedQueryRequest other savedQueryId_ = other.savedQueryId_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -663,43 +536,68 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.CreateSavedQueryRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getSavedQueryFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + savedQueryId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.CreateSavedQueryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object parent_ = ""; /** - * - * *
    -     * Required. The name of the project/folder/organization where this
    -     * saved_query should be created in. It can only be an organization number
    -     * (such as "organizations/123"), a folder number (such as "folders/123"), a
    -     * project ID (such as "projects/my-project-id")", or a project number (such
    -     * as "projects/12345").
    +     * Required. The name of the project/folder/organization where this saved_query
    +     * should be created in. It can only be an organization number (such as
    +     * "organizations/123"), a folder number (such as "folders/123"), a project ID
    +     * (such as "projects/my-project-id")", or a project number (such as
    +     * "projects/12345").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -708,27 +606,24 @@ public java.lang.String getParent() { } } /** - * - * *
    -     * Required. The name of the project/folder/organization where this
    -     * saved_query should be created in. It can only be an organization number
    -     * (such as "organizations/123"), a folder number (such as "folders/123"), a
    -     * project ID (such as "projects/my-project-id")", or a project number (such
    -     * as "projects/12345").
    +     * Required. The name of the project/folder/organization where this saved_query
    +     * should be created in. It can only be an organization number (such as
    +     * "organizations/123"), a folder number (such as "folders/123"), a project ID
    +     * (such as "projects/my-project-id")", or a project number (such as
    +     * "projects/12345").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -736,79 +631,66 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
    -     * Required. The name of the project/folder/organization where this
    -     * saved_query should be created in. It can only be an organization number
    -     * (such as "organizations/123"), a folder number (such as "folders/123"), a
    -     * project ID (such as "projects/my-project-id")", or a project number (such
    -     * as "projects/12345").
    +     * Required. The name of the project/folder/organization where this saved_query
    +     * should be created in. It can only be an organization number (such as
    +     * "organizations/123"), a folder number (such as "folders/123"), a project ID
    +     * (such as "projects/my-project-id")", or a project number (such as
    +     * "projects/12345").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
    -     * Required. The name of the project/folder/organization where this
    -     * saved_query should be created in. It can only be an organization number
    -     * (such as "organizations/123"), a folder number (such as "folders/123"), a
    -     * project ID (such as "projects/my-project-id")", or a project number (such
    -     * as "projects/12345").
    +     * Required. The name of the project/folder/organization where this saved_query
    +     * should be created in. It can only be an organization number (such as
    +     * "organizations/123"), a folder number (such as "folders/123"), a project ID
    +     * (such as "projects/my-project-id")", or a project number (such as
    +     * "projects/12345").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
    -     * Required. The name of the project/folder/organization where this
    -     * saved_query should be created in. It can only be an organization number
    -     * (such as "organizations/123"), a folder number (such as "folders/123"), a
    -     * project ID (such as "projects/my-project-id")", or a project number (such
    -     * as "projects/12345").
    +     * Required. The name of the project/folder/organization where this saved_query
    +     * should be created in. It can only be an organization number (such as
    +     * "organizations/123"), a folder number (such as "folders/123"), a project ID
    +     * (such as "projects/my-project-id")", or a project number (such as
    +     * "projects/12345").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -816,61 +698,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.asset.v1.SavedQuery savedQuery_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.SavedQuery, - com.google.cloud.asset.v1.SavedQuery.Builder, - com.google.cloud.asset.v1.SavedQueryOrBuilder> - savedQueryBuilder_; + com.google.cloud.asset.v1.SavedQuery, com.google.cloud.asset.v1.SavedQuery.Builder, com.google.cloud.asset.v1.SavedQueryOrBuilder> savedQueryBuilder_; /** - * - * *
    -     * Required. The saved_query details. The `name` field must be empty as it
    -     * will be generated based on the parent and saved_query_id.
    +     * Required. The saved_query details. The `name` field must be empty as it will be
    +     * generated based on the parent and saved_query_id.
          * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the savedQuery field is set. */ public boolean hasSavedQuery() { return savedQueryBuilder_ != null || savedQuery_ != null; } /** - * - * *
    -     * Required. The saved_query details. The `name` field must be empty as it
    -     * will be generated based on the parent and saved_query_id.
    +     * Required. The saved_query details. The `name` field must be empty as it will be
    +     * generated based on the parent and saved_query_id.
          * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The savedQuery. */ public com.google.cloud.asset.v1.SavedQuery getSavedQuery() { if (savedQueryBuilder_ == null) { - return savedQuery_ == null - ? com.google.cloud.asset.v1.SavedQuery.getDefaultInstance() - : savedQuery_; + return savedQuery_ == null ? com.google.cloud.asset.v1.SavedQuery.getDefaultInstance() : savedQuery_; } else { return savedQueryBuilder_.getMessage(); } } /** - * - * *
    -     * Required. The saved_query details. The `name` field must be empty as it
    -     * will be generated based on the parent and saved_query_id.
    +     * Required. The saved_query details. The `name` field must be empty as it will be
    +     * generated based on the parent and saved_query_id.
          * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSavedQuery(com.google.cloud.asset.v1.SavedQuery value) { if (savedQueryBuilder_ == null) { @@ -886,18 +749,15 @@ public Builder setSavedQuery(com.google.cloud.asset.v1.SavedQuery value) { return this; } /** - * - * *
    -     * Required. The saved_query details. The `name` field must be empty as it
    -     * will be generated based on the parent and saved_query_id.
    +     * Required. The saved_query details. The `name` field must be empty as it will be
    +     * generated based on the parent and saved_query_id.
          * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSavedQuery(com.google.cloud.asset.v1.SavedQuery.Builder builderForValue) { + public Builder setSavedQuery( + com.google.cloud.asset.v1.SavedQuery.Builder builderForValue) { if (savedQueryBuilder_ == null) { savedQuery_ = builderForValue.build(); onChanged(); @@ -908,24 +768,18 @@ public Builder setSavedQuery(com.google.cloud.asset.v1.SavedQuery.Builder builde return this; } /** - * - * *
    -     * Required. The saved_query details. The `name` field must be empty as it
    -     * will be generated based on the parent and saved_query_id.
    +     * Required. The saved_query details. The `name` field must be empty as it will be
    +     * generated based on the parent and saved_query_id.
          * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSavedQuery(com.google.cloud.asset.v1.SavedQuery value) { if (savedQueryBuilder_ == null) { if (savedQuery_ != null) { savedQuery_ = - com.google.cloud.asset.v1.SavedQuery.newBuilder(savedQuery_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.SavedQuery.newBuilder(savedQuery_).mergeFrom(value).buildPartial(); } else { savedQuery_ = value; } @@ -937,16 +791,12 @@ public Builder mergeSavedQuery(com.google.cloud.asset.v1.SavedQuery value) { return this; } /** - * - * *
    -     * Required. The saved_query details. The `name` field must be empty as it
    -     * will be generated based on the parent and saved_query_id.
    +     * Required. The saved_query details. The `name` field must be empty as it will be
    +     * generated based on the parent and saved_query_id.
          * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSavedQuery() { if (savedQueryBuilder_ == null) { @@ -960,67 +810,51 @@ public Builder clearSavedQuery() { return this; } /** - * - * *
    -     * Required. The saved_query details. The `name` field must be empty as it
    -     * will be generated based on the parent and saved_query_id.
    +     * Required. The saved_query details. The `name` field must be empty as it will be
    +     * generated based on the parent and saved_query_id.
          * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.asset.v1.SavedQuery.Builder getSavedQueryBuilder() { - + onChanged(); return getSavedQueryFieldBuilder().getBuilder(); } /** - * - * *
    -     * Required. The saved_query details. The `name` field must be empty as it
    -     * will be generated based on the parent and saved_query_id.
    +     * Required. The saved_query details. The `name` field must be empty as it will be
    +     * generated based on the parent and saved_query_id.
          * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() { if (savedQueryBuilder_ != null) { return savedQueryBuilder_.getMessageOrBuilder(); } else { - return savedQuery_ == null - ? com.google.cloud.asset.v1.SavedQuery.getDefaultInstance() - : savedQuery_; + return savedQuery_ == null ? + com.google.cloud.asset.v1.SavedQuery.getDefaultInstance() : savedQuery_; } } /** - * - * *
    -     * Required. The saved_query details. The `name` field must be empty as it
    -     * will be generated based on the parent and saved_query_id.
    +     * Required. The saved_query details. The `name` field must be empty as it will be
    +     * generated based on the parent and saved_query_id.
          * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.SavedQuery, - com.google.cloud.asset.v1.SavedQuery.Builder, - com.google.cloud.asset.v1.SavedQueryOrBuilder> + com.google.cloud.asset.v1.SavedQuery, com.google.cloud.asset.v1.SavedQuery.Builder, com.google.cloud.asset.v1.SavedQueryOrBuilder> getSavedQueryFieldBuilder() { if (savedQueryBuilder_ == null) { - savedQueryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.SavedQuery, - com.google.cloud.asset.v1.SavedQuery.Builder, - com.google.cloud.asset.v1.SavedQueryOrBuilder>( - getSavedQuery(), getParentForChildren(), isClean()); + savedQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.SavedQuery, com.google.cloud.asset.v1.SavedQuery.Builder, com.google.cloud.asset.v1.SavedQueryOrBuilder>( + getSavedQuery(), + getParentForChildren(), + isClean()); savedQuery_ = null; } return savedQueryBuilder_; @@ -1028,12 +862,10 @@ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() { private java.lang.Object savedQueryId_ = ""; /** - * - * *
    -     * Required. The ID to use for the saved query, which must be unique in the
    -     * specified parent. It will become the final component of the saved query's
    -     * resource name.
    +     * Required. The ID to use for the saved query, which must be unique in the specified
    +     * parent. It will become the final component of the saved query's resource
    +     * name.
          * This value should be 4-63 characters, and valid characters
          * are /[a-z][0-9]-/.
          * Notice that this field is required in the saved query creation, and the
    @@ -1041,13 +873,13 @@ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() {
          * 
    * * string saved_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The savedQueryId. */ public java.lang.String getSavedQueryId() { java.lang.Object ref = savedQueryId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); savedQueryId_ = s; return s; @@ -1056,12 +888,10 @@ public java.lang.String getSavedQueryId() { } } /** - * - * *
    -     * Required. The ID to use for the saved query, which must be unique in the
    -     * specified parent. It will become the final component of the saved query's
    -     * resource name.
    +     * Required. The ID to use for the saved query, which must be unique in the specified
    +     * parent. It will become the final component of the saved query's resource
    +     * name.
          * This value should be 4-63 characters, and valid characters
          * are /[a-z][0-9]-/.
          * Notice that this field is required in the saved query creation, and the
    @@ -1069,14 +899,15 @@ public java.lang.String getSavedQueryId() {
          * 
    * * string saved_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for savedQueryId. */ - public com.google.protobuf.ByteString getSavedQueryIdBytes() { + public com.google.protobuf.ByteString + getSavedQueryIdBytes() { java.lang.Object ref = savedQueryId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); savedQueryId_ = b; return b; } else { @@ -1084,12 +915,10 @@ public com.google.protobuf.ByteString getSavedQueryIdBytes() { } } /** - * - * *
    -     * Required. The ID to use for the saved query, which must be unique in the
    -     * specified parent. It will become the final component of the saved query's
    -     * resource name.
    +     * Required. The ID to use for the saved query, which must be unique in the specified
    +     * parent. It will become the final component of the saved query's resource
    +     * name.
          * This value should be 4-63 characters, and valid characters
          * are /[a-z][0-9]-/.
          * Notice that this field is required in the saved query creation, and the
    @@ -1097,26 +926,24 @@ public com.google.protobuf.ByteString getSavedQueryIdBytes() {
          * 
    * * string saved_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The savedQueryId to set. * @return This builder for chaining. */ - public Builder setSavedQueryId(java.lang.String value) { + public Builder setSavedQueryId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + savedQueryId_ = value; onChanged(); return this; } /** - * - * *
    -     * Required. The ID to use for the saved query, which must be unique in the
    -     * specified parent. It will become the final component of the saved query's
    -     * resource name.
    +     * Required. The ID to use for the saved query, which must be unique in the specified
    +     * parent. It will become the final component of the saved query's resource
    +     * name.
          * This value should be 4-63 characters, and valid characters
          * are /[a-z][0-9]-/.
          * Notice that this field is required in the saved query creation, and the
    @@ -1124,22 +951,19 @@ public Builder setSavedQueryId(java.lang.String value) {
          * 
    * * string saved_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSavedQueryId() { - + savedQueryId_ = getDefaultInstance().getSavedQueryId(); onChanged(); return this; } /** - * - * *
    -     * Required. The ID to use for the saved query, which must be unique in the
    -     * specified parent. It will become the final component of the saved query's
    -     * resource name.
    +     * Required. The ID to use for the saved query, which must be unique in the specified
    +     * parent. It will become the final component of the saved query's resource
    +     * name.
          * This value should be 4-63 characters, and valid characters
          * are /[a-z][0-9]-/.
          * Notice that this field is required in the saved query creation, and the
    @@ -1147,23 +971,23 @@ public Builder clearSavedQueryId() {
          * 
    * * string saved_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for savedQueryId to set. * @return This builder for chaining. */ - public Builder setSavedQueryIdBytes(com.google.protobuf.ByteString value) { + public Builder setSavedQueryIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + savedQueryId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1173,12 +997,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.CreateSavedQueryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.CreateSavedQueryRequest) private static final com.google.cloud.asset.v1.CreateSavedQueryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.CreateSavedQueryRequest(); } @@ -1187,16 +1011,27 @@ public static com.google.cloud.asset.v1.CreateSavedQueryRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSavedQueryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateSavedQueryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSavedQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1211,4 +1046,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.CreateSavedQueryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequestOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequestOrBuilder.java new file mode 100644 index 000000000000..df53fe88f574 --- /dev/null +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequestOrBuilder.java @@ -0,0 +1,99 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface CreateSavedQueryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.CreateSavedQueryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
    +   * Required. The name of the project/folder/organization where this saved_query
    +   * should be created in. It can only be an organization number (such as
    +   * "organizations/123"), a folder number (such as "folders/123"), a project ID
    +   * (such as "projects/my-project-id")", or a project number (such as
    +   * "projects/12345").
    +   * 
    + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
    +   * Required. The name of the project/folder/organization where this saved_query
    +   * should be created in. It can only be an organization number (such as
    +   * "organizations/123"), a folder number (such as "folders/123"), a project ID
    +   * (such as "projects/my-project-id")", or a project number (such as
    +   * "projects/12345").
    +   * 
    + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
    +   * Required. The saved_query details. The `name` field must be empty as it will be
    +   * generated based on the parent and saved_query_id.
    +   * 
    + * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the savedQuery field is set. + */ + boolean hasSavedQuery(); + /** + *
    +   * Required. The saved_query details. The `name` field must be empty as it will be
    +   * generated based on the parent and saved_query_id.
    +   * 
    + * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The savedQuery. + */ + com.google.cloud.asset.v1.SavedQuery getSavedQuery(); + /** + *
    +   * Required. The saved_query details. The `name` field must be empty as it will be
    +   * generated based on the parent and saved_query_id.
    +   * 
    + * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder(); + + /** + *
    +   * Required. The ID to use for the saved query, which must be unique in the specified
    +   * parent. It will become the final component of the saved query's resource
    +   * name.
    +   * This value should be 4-63 characters, and valid characters
    +   * are /[a-z][0-9]-/.
    +   * Notice that this field is required in the saved query creation, and the
    +   * `name` field of the `saved_query` will be ignored.
    +   * 
    + * + * string saved_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The savedQueryId. + */ + java.lang.String getSavedQueryId(); + /** + *
    +   * Required. The ID to use for the saved query, which must be unique in the specified
    +   * parent. It will become the final component of the saved query's resource
    +   * name.
    +   * This value should be 4-63 characters, and valid characters
    +   * are /[a-z][0-9]-/.
    +   * Notice that this field is required in the saved query creation, and the
    +   * `name` field of the `saved_query` will be ignored.
    +   * 
    + * + * string saved_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for savedQueryId. + */ + com.google.protobuf.ByteString + getSavedQueryIdBytes(); +} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequest.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequest.java similarity index 58% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequest.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequest.java index e8556cb77723..2c456818072a 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequest.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequest.java @@ -1,115 +1,52 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -/** Protobuf type {@code google.cloud.asset.v1.DeleteFeedRequest} */ -public final class DeleteFeedRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.asset.v1.DeleteFeedRequest} + */ +public final class DeleteFeedRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.DeleteFeedRequest) DeleteFeedRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteFeedRequest.newBuilder() to construct. private DeleteFeedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteFeedRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteFeedRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private DeleteFeedRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_DeleteFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_DeleteFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.DeleteFeedRequest.class, - com.google.cloud.asset.v1.DeleteFeedRequest.Builder.class); + com.google.cloud.asset.v1.DeleteFeedRequest.class, com.google.cloud.asset.v1.DeleteFeedRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
        * Required. The name of the feed and it must be in the format of:
        * projects/project_number/feeds/feed_id
    @@ -117,10 +54,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * organizations/organization_number/feeds/feed_id
        * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -129,15 +63,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
        * Required. The name of the feed and it must be in the format of:
        * projects/project_number/feeds/feed_id
    @@ -145,18 +78,17 @@ public java.lang.String getName() {
        * organizations/organization_number/feeds/feed_id
        * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,11 +108,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -193,7 +125,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -201,16 +133,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.DeleteFeedRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.DeleteFeedRequest other = - (com.google.cloud.asset.v1.DeleteFeedRequest) obj; + com.google.cloud.asset.v1.DeleteFeedRequest other = (com.google.cloud.asset.v1.DeleteFeedRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,140 +155,131 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.DeleteFeedRequest 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.asset.v1.DeleteFeedRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.DeleteFeedRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.DeleteFeedRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.DeleteFeedRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.DeleteFeedRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.asset.v1.DeleteFeedRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.asset.v1.DeleteFeedRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.DeleteFeedRequest) com.google.cloud.asset.v1.DeleteFeedRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_DeleteFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_DeleteFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.DeleteFeedRequest.class, - com.google.cloud.asset.v1.DeleteFeedRequest.Builder.class); + com.google.cloud.asset.v1.DeleteFeedRequest.class, com.google.cloud.asset.v1.DeleteFeedRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.DeleteFeedRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -366,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor; } @java.lang.Override @@ -387,8 +310,7 @@ public com.google.cloud.asset.v1.DeleteFeedRequest build() { @java.lang.Override public com.google.cloud.asset.v1.DeleteFeedRequest buildPartial() { - com.google.cloud.asset.v1.DeleteFeedRequest result = - new com.google.cloud.asset.v1.DeleteFeedRequest(this); + com.google.cloud.asset.v1.DeleteFeedRequest result = new com.google.cloud.asset.v1.DeleteFeedRequest(this); result.name_ = name_; onBuilt(); return result; @@ -398,39 +320,38 @@ public com.google.cloud.asset.v1.DeleteFeedRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.DeleteFeedRequest) { - return mergeFrom((com.google.cloud.asset.v1.DeleteFeedRequest) other); + return mergeFrom((com.google.cloud.asset.v1.DeleteFeedRequest)other); } else { super.mergeFrom(other); return this; @@ -443,7 +364,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.DeleteFeedRequest other) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -458,24 +379,40 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.DeleteFeedRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.DeleteFeedRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object name_ = ""; /** - * - * *
          * Required. The name of the feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -483,16 +420,14 @@ public Builder mergeFrom(
          * organizations/organization_number/feeds/feed_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -501,8 +436,6 @@ public java.lang.String getName() { } } /** - * - * *
          * Required. The name of the feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -510,17 +443,16 @@ public java.lang.String getName() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -528,8 +460,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
          * Required. The name of the feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -537,25 +467,21 @@ public com.google.protobuf.ByteString getNameBytes() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
          * Required. The name of the feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -563,21 +489,16 @@ public Builder setName(java.lang.String value) {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
          * Required. The name of the feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -585,26 +506,24 @@ public Builder clearName() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -614,12 +533,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.DeleteFeedRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.DeleteFeedRequest) private static final com.google.cloud.asset.v1.DeleteFeedRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.DeleteFeedRequest(); } @@ -628,16 +547,27 @@ public static com.google.cloud.asset.v1.DeleteFeedRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteFeedRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteFeedRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFeedRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -652,4 +582,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.DeleteFeedRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequestOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequestOrBuilder.java new file mode 100644 index 000000000000..cf666128a512 --- /dev/null +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequestOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface DeleteFeedRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.DeleteFeedRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
    +   * Required. The name of the feed and it must be in the format of:
    +   * projects/project_number/feeds/feed_id
    +   * folders/folder_number/feeds/feed_id
    +   * organizations/organization_number/feeds/feed_id
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
    +   * Required. The name of the feed and it must be in the format of:
    +   * projects/project_number/feeds/feed_id
    +   * folders/folder_number/feeds/feed_id
    +   * organizations/organization_number/feeds/feed_id
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequest.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequest.java similarity index 59% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequest.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequest.java index 87acf06bf1af..1943d533f0e4 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequest.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequest.java @@ -1,135 +1,64 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * Request to delete a saved query.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.DeleteSavedQueryRequest} */ -public final class DeleteSavedQueryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteSavedQueryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.DeleteSavedQueryRequest) DeleteSavedQueryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteSavedQueryRequest.newBuilder() to construct. private DeleteSavedQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteSavedQueryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteSavedQueryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private DeleteSavedQueryRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.DeleteSavedQueryRequest.class, - com.google.cloud.asset.v1.DeleteSavedQueryRequest.Builder.class); + com.google.cloud.asset.v1.DeleteSavedQueryRequest.class, com.google.cloud.asset.v1.DeleteSavedQueryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    -   * Required. The name of the saved query to delete. It must be in the format
    -   * of:
    +   * Required. The name of the saved query to delete. It must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
        * * folders/folder_number/savedQueries/saved_query_id
        * * organizations/organization_number/savedQueries/saved_query_id
        * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -138,35 +67,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    -   * Required. The name of the saved query to delete. It must be in the format
    -   * of:
    +   * Required. The name of the saved query to delete. It must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
        * * folders/folder_number/savedQueries/saved_query_id
        * * organizations/organization_number/savedQueries/saved_query_id
        * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -175,7 +101,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,11 +112,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -203,7 +129,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -211,16 +137,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.DeleteSavedQueryRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.DeleteSavedQueryRequest other = - (com.google.cloud.asset.v1.DeleteSavedQueryRequest) obj; + com.google.cloud.asset.v1.DeleteSavedQueryRequest other = (com.google.cloud.asset.v1.DeleteSavedQueryRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,148 +159,135 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.DeleteSavedQueryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.DeleteSavedQueryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.DeleteSavedQueryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.DeleteSavedQueryRequest 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.asset.v1.DeleteSavedQueryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.DeleteSavedQueryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.DeleteSavedQueryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.DeleteSavedQueryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.DeleteSavedQueryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.DeleteSavedQueryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.DeleteSavedQueryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.DeleteSavedQueryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.DeleteSavedQueryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.DeleteSavedQueryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.DeleteSavedQueryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Request to delete a saved query.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.DeleteSavedQueryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.DeleteSavedQueryRequest) com.google.cloud.asset.v1.DeleteSavedQueryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.DeleteSavedQueryRequest.class, - com.google.cloud.asset.v1.DeleteSavedQueryRequest.Builder.class); + com.google.cloud.asset.v1.DeleteSavedQueryRequest.class, com.google.cloud.asset.v1.DeleteSavedQueryRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.DeleteSavedQueryRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -384,9 +297,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_descriptor; } @java.lang.Override @@ -405,8 +318,7 @@ public com.google.cloud.asset.v1.DeleteSavedQueryRequest build() { @java.lang.Override public com.google.cloud.asset.v1.DeleteSavedQueryRequest buildPartial() { - com.google.cloud.asset.v1.DeleteSavedQueryRequest result = - new com.google.cloud.asset.v1.DeleteSavedQueryRequest(this); + com.google.cloud.asset.v1.DeleteSavedQueryRequest result = new com.google.cloud.asset.v1.DeleteSavedQueryRequest(this); result.name_ = name_; onBuilt(); return result; @@ -416,39 +328,38 @@ public com.google.cloud.asset.v1.DeleteSavedQueryRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.DeleteSavedQueryRequest) { - return mergeFrom((com.google.cloud.asset.v1.DeleteSavedQueryRequest) other); + return mergeFrom((com.google.cloud.asset.v1.DeleteSavedQueryRequest)other); } else { super.mergeFrom(other); return this; @@ -456,13 +367,12 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.DeleteSavedQueryRequest other) { - if (other == com.google.cloud.asset.v1.DeleteSavedQueryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.DeleteSavedQueryRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -477,43 +387,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.DeleteSavedQueryRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.DeleteSavedQueryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object name_ = ""; /** - * - * *
    -     * Required. The name of the saved query to delete. It must be in the format
    -     * of:
    +     * Required. The name of the saved query to delete. It must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
          * * folders/folder_number/savedQueries/saved_query_id
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -522,27 +444,23 @@ public java.lang.String getName() { } } /** - * - * *
    -     * Required. The name of the saved query to delete. It must be in the format
    -     * of:
    +     * Required. The name of the saved query to delete. It must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
          * * folders/folder_number/savedQueries/saved_query_id
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -550,86 +468,70 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
    -     * Required. The name of the saved query to delete. It must be in the format
    -     * of:
    +     * Required. The name of the saved query to delete. It must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
          * * folders/folder_number/savedQueries/saved_query_id
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
    -     * Required. The name of the saved query to delete. It must be in the format
    -     * of:
    +     * Required. The name of the saved query to delete. It must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
          * * folders/folder_number/savedQueries/saved_query_id
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
    -     * Required. The name of the saved query to delete. It must be in the format
    -     * of:
    +     * Required. The name of the saved query to delete. It must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
          * * folders/folder_number/savedQueries/saved_query_id
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -639,12 +541,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.DeleteSavedQueryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.DeleteSavedQueryRequest) private static final com.google.cloud.asset.v1.DeleteSavedQueryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.DeleteSavedQueryRequest(); } @@ -653,16 +555,27 @@ public static com.google.cloud.asset.v1.DeleteSavedQueryRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSavedQueryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteSavedQueryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSavedQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -677,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.DeleteSavedQueryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequestOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequestOrBuilder.java new file mode 100644 index 000000000000..e0ba72b7526f --- /dev/null +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequestOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface DeleteSavedQueryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.DeleteSavedQueryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
    +   * Required. The name of the saved query to delete. It must be in the format of:
    +   * * projects/project_number/savedQueries/saved_query_id
    +   * * folders/folder_number/savedQueries/saved_query_id
    +   * * organizations/organization_number/savedQueries/saved_query_id
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
    +   * Required. The name of the saved query to delete. It must be in the format of:
    +   * * projects/project_number/savedQueries/saved_query_id
    +   * * folders/folder_number/savedQueries/saved_query_id
    +   * * organizations/organization_number/savedQueries/saved_query_id
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java similarity index 77% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java index 5d34a1eb0606..38f15b5d0769 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * Export asset request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.ExportAssetsRequest} */ -public final class ExportAssetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ExportAssetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.ExportAssetsRequest) ExportAssetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ExportAssetsRequest.newBuilder() to construct. private ExportAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExportAssetsRequest() { parent_ = ""; assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -46,146 +28,32 @@ private ExportAssetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExportAssetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private ExportAssetsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - assetTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - assetTypes_.add(s); - break; - } - case 32: - { - int rawValue = input.readEnum(); - - contentType_ = rawValue; - break; - } - case 42: - { - com.google.cloud.asset.v1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.asset.v1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - relationshipTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - relationshipTypes_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - assetTypes_ = assetTypes_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - relationshipTypes_ = relationshipTypes_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ExportAssetsRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ExportAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ExportAssetsRequest.class, - com.google.cloud.asset.v1.ExportAssetsRequest.Builder.class); + com.google.cloud.asset.v1.ExportAssetsRequest.class, com.google.cloud.asset.v1.ExportAssetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
        * Required. The relative name of the root asset. This can only be an
        * organization number (such as "organizations/123"), a project ID (such as
    @@ -193,10 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * or a folder number (such as "folders/123").
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -205,15 +70,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
        * Required. The relative name of the root asset. This can only be an
        * organization number (such as "organizations/123"), a project ID (such as
    @@ -221,18 +85,17 @@ public java.lang.String getParent() {
        * or a folder number (such as "folders/123").
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -243,8 +106,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int READ_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp readTime_; /** - * - * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -254,7 +115,6 @@ public com.google.protobuf.ByteString getParentBytes() {
        * 
    * * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -262,8 +122,6 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -273,7 +131,6 @@ public boolean hasReadTime() {
        * 
    * * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ @java.lang.Override @@ -281,8 +138,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -301,8 +156,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       public static final int ASSET_TYPES_FIELD_NUMBER = 3;
       private com.google.protobuf.LazyStringList assetTypes_;
       /**
    -   *
    -   *
        * 
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -321,15 +174,13 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
        * 
    * * repeated string asset_types = 3; - * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList getAssetTypesList() { + public com.google.protobuf.ProtocolStringList + getAssetTypesList() { return assetTypes_; } /** - * - * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -348,15 +199,12 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() {
        * 
    * * repeated string asset_types = 3; - * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** - * - * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -375,7 +223,6 @@ public int getAssetTypesCount() {
        * 
    * * repeated string asset_types = 3; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -383,8 +230,6 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** - * - * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -403,66 +248,51 @@ public java.lang.String getAssetTypes(int index) {
        * 
    * * repeated string asset_types = 3; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString + getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } public static final int CONTENT_TYPE_FIELD_NUMBER = 4; private int contentType_; /** - * - * *
        * Asset content type. If not specified, no content but the asset name will be
        * returned.
        * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override - public int getContentTypeValue() { + @java.lang.Override public int getContentTypeValue() { return contentType_; } /** - * - * *
        * Asset content type. If not specified, no content but the asset name will be
        * returned.
        * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @return The contentType. */ - @java.lang.Override - public com.google.cloud.asset.v1.ContentType getContentType() { + @java.lang.Override public com.google.cloud.asset.v1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.ContentType result = - com.google.cloud.asset.v1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1.ContentType result = com.google.cloud.asset.v1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1.ContentType.UNRECOGNIZED : result; } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.asset.v1.OutputConfig outputConfig_; /** - * - * *
    -   * Required. Output configuration indicating where the results will be output
    -   * to.
    +   * Required. Output configuration indicating where the results will be output to.
        * 
    * - * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -470,36 +300,23 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    -   * Required. Output configuration indicating where the results will be output
    -   * to.
    +   * Required. Output configuration indicating where the results will be output to.
        * 
    * - * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.asset.v1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.asset.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.asset.v1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    -   * Required. Output configuration indicating where the results will be output
    -   * to.
    +   * Required. Output configuration indicating where the results will be output to.
        * 
    * - * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -509,8 +326,6 @@ public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder( public static final int RELATIONSHIP_TYPES_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList relationshipTypes_; /** - * - * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -530,15 +345,13 @@ public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(
        * 
    * * repeated string relationship_types = 6; - * * @return A list containing the relationshipTypes. */ - public com.google.protobuf.ProtocolStringList getRelationshipTypesList() { + public com.google.protobuf.ProtocolStringList + getRelationshipTypesList() { return relationshipTypes_; } /** - * - * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -558,15 +371,12 @@ public com.google.protobuf.ProtocolStringList getRelationshipTypesList() {
        * 
    * * repeated string relationship_types = 6; - * * @return The count of relationshipTypes. */ public int getRelationshipTypesCount() { return relationshipTypes_.size(); } /** - * - * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -586,7 +396,6 @@ public int getRelationshipTypesCount() {
        * 
    * * repeated string relationship_types = 6; - * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -594,8 +403,6 @@ public java.lang.String getRelationshipTypes(int index) { return relationshipTypes_.get(index); } /** - * - * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -615,16 +422,15 @@ public java.lang.String getRelationshipTypes(int index) {
        * 
    * * repeated string relationship_types = 6; - * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) { + public com.google.protobuf.ByteString + getRelationshipTypesBytes(int index) { return relationshipTypes_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -636,7 +442,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -646,8 +453,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < assetTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, assetTypes_.getRaw(i)); } - if (contentType_ - != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + if (contentType_ != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, contentType_); } if (outputConfig_ != null) { @@ -656,7 +462,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < relationshipTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, relationshipTypes_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -669,7 +475,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReadTime()); } { int dataSize = 0; @@ -679,12 +486,13 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAssetTypesList().size(); } - if (contentType_ - != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, contentType_); + if (contentType_ != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, contentType_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getOutputConfig()); } { int dataSize = 0; @@ -694,7 +502,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getRelationshipTypesList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -702,27 +510,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.ExportAssetsRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.ExportAssetsRequest other = - (com.google.cloud.asset.v1.ExportAssetsRequest) obj; + com.google.cloud.asset.v1.ExportAssetsRequest other = (com.google.cloud.asset.v1.ExportAssetsRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } - if (!getAssetTypesList().equals(other.getAssetTypesList())) return false; + if (!getAssetTypesList() + .equals(other.getAssetTypesList())) return false; if (contentType_ != other.contentType_) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } - if (!getRelationshipTypesList().equals(other.getRelationshipTypesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getRelationshipTypesList() + .equals(other.getRelationshipTypesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -753,148 +565,135 @@ public int hashCode() { hash = (37 * hash) + RELATIONSHIP_TYPES_FIELD_NUMBER; hash = (53 * hash) + getRelationshipTypesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ExportAssetsRequest 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.asset.v1.ExportAssetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.ExportAssetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.ExportAssetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ExportAssetsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.ExportAssetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Export asset request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.ExportAssetsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.ExportAssetsRequest) com.google.cloud.asset.v1.ExportAssetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ExportAssetsRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ExportAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ExportAssetsRequest.class, - com.google.cloud.asset.v1.ExportAssetsRequest.Builder.class); + com.google.cloud.asset.v1.ExportAssetsRequest.class, com.google.cloud.asset.v1.ExportAssetsRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.ExportAssetsRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -922,9 +721,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor; } @java.lang.Override @@ -943,8 +742,7 @@ public com.google.cloud.asset.v1.ExportAssetsRequest build() { @java.lang.Override public com.google.cloud.asset.v1.ExportAssetsRequest buildPartial() { - com.google.cloud.asset.v1.ExportAssetsRequest result = - new com.google.cloud.asset.v1.ExportAssetsRequest(this); + com.google.cloud.asset.v1.ExportAssetsRequest result = new com.google.cloud.asset.v1.ExportAssetsRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (readTimeBuilder_ == null) { @@ -976,39 +774,38 @@ public com.google.cloud.asset.v1.ExportAssetsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.ExportAssetsRequest) { - return mergeFrom((com.google.cloud.asset.v1.ExportAssetsRequest) other); + return mergeFrom((com.google.cloud.asset.v1.ExportAssetsRequest)other); } else { super.mergeFrom(other); return this; @@ -1050,7 +847,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ExportAssetsRequest other) { } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1065,26 +862,72 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.ExportAssetsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getReadTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAssetTypesIsMutable(); + assetTypes_.add(s); + break; + } // case 26 + case 32: { + contentType_ = input.readEnum(); + + break; + } // case 32 + case 42: { + input.readMessage( + getOutputConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + ensureRelationshipTypesIsMutable(); + relationshipTypes_.add(s); + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.ExportAssetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -1092,16 +935,14 @@ public Builder mergeFrom(
          * or a folder number (such as "folders/123").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1110,8 +951,6 @@ public java.lang.String getParent() { } } /** - * - * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -1119,17 +958,16 @@ public java.lang.String getParent() {
          * or a folder number (such as "folders/123").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1137,8 +975,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -1146,25 +982,21 @@ public com.google.protobuf.ByteString getParentBytes() {
          * or a folder number (such as "folders/123").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -1172,21 +1004,16 @@ public Builder setParent(java.lang.String value) {
          * or a folder number (such as "folders/123").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -1194,19 +1021,17 @@ public Builder clearParent() {
          * or a folder number (such as "folders/123").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1214,13 +1039,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1230,15 +1050,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
          * 
    * * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1248,7 +1065,6 @@ public boolean hasReadTime() {
          * 
    * * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1259,8 +1075,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1285,8 +1099,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1297,7 +1109,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
          *
          * .google.protobuf.Timestamp read_time = 2;
          */
    -    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
    +    public Builder setReadTime(
    +        com.google.protobuf.Timestamp.Builder builderForValue) {
           if (readTimeBuilder_ == null) {
             readTime_ = builderForValue.build();
             onChanged();
    @@ -1308,8 +1121,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1324,7 +1135,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
           if (readTimeBuilder_ == null) {
             if (readTime_ != null) {
               readTime_ =
    -              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
    +            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
             } else {
               readTime_ = value;
             }
    @@ -1336,8 +1147,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1360,8 +1169,6 @@ public Builder clearReadTime() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1373,13 +1180,11 @@ public Builder clearReadTime() {
          * .google.protobuf.Timestamp read_time = 2;
          */
         public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
    -
    +      
           onChanged();
           return getReadTimeFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1394,12 +1199,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
           if (readTimeBuilder_ != null) {
             return readTimeBuilder_.getMessageOrBuilder();
           } else {
    -        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
    +        return readTime_ == null ?
    +            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
           }
         }
         /**
    -     *
    -     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1411,34 +1215,27 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
          * .google.protobuf.Timestamp read_time = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp,
    -            com.google.protobuf.Timestamp.Builder,
    -            com.google.protobuf.TimestampOrBuilder>
    +        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
             getReadTimeFieldBuilder() {
           if (readTimeBuilder_ == null) {
    -        readTimeBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.protobuf.Timestamp,
    -                com.google.protobuf.Timestamp.Builder,
    -                com.google.protobuf.TimestampOrBuilder>(
    -                getReadTime(), getParentForChildren(), isClean());
    +        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    +                getReadTime(),
    +                getParentForChildren(),
    +                isClean());
             readTime_ = null;
           }
           return readTimeBuilder_;
         }
     
    -    private com.google.protobuf.LazyStringList assetTypes_ =
    -        com.google.protobuf.LazyStringArrayList.EMPTY;
    -
    +    private com.google.protobuf.LazyStringList assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
         private void ensureAssetTypesIsMutable() {
           if (!((bitField0_ & 0x00000001) != 0)) {
             assetTypes_ = new com.google.protobuf.LazyStringArrayList(assetTypes_);
             bitField0_ |= 0x00000001;
    -      }
    +       }
         }
         /**
    -     *
    -     *
          * 
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1457,15 +1254,13 @@ private void ensureAssetTypesIsMutable() {
          * 
    * * repeated string asset_types = 3; - * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList getAssetTypesList() { + public com.google.protobuf.ProtocolStringList + getAssetTypesList() { return assetTypes_.getUnmodifiableView(); } /** - * - * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1484,15 +1279,12 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() {
          * 
    * * repeated string asset_types = 3; - * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** - * - * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1511,7 +1303,6 @@ public int getAssetTypesCount() {
          * 
    * * repeated string asset_types = 3; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -1519,8 +1310,6 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** - * - * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1539,16 +1328,14 @@ public java.lang.String getAssetTypes(int index) {
          * 
    * * repeated string asset_types = 3; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString + getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } /** - * - * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1567,23 +1354,21 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) {
          * 
    * * repeated string asset_types = 3; - * * @param index The index to set the value at. * @param value The assetTypes to set. * @return This builder for chaining. */ - public Builder setAssetTypes(int index, java.lang.String value) { + public Builder setAssetTypes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.set(index, value); onChanged(); return this; } /** - * - * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1602,22 +1387,20 @@ public Builder setAssetTypes(int index, java.lang.String value) {
          * 
    * * repeated string asset_types = 3; - * * @param value The assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypes(java.lang.String value) { + public Builder addAssetTypes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); return this; } /** - * - * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1636,19 +1419,18 @@ public Builder addAssetTypes(java.lang.String value) {
          * 
    * * repeated string asset_types = 3; - * * @param values The assetTypes to add. * @return This builder for chaining. */ - public Builder addAllAssetTypes(java.lang.Iterable values) { + public Builder addAllAssetTypes( + java.lang.Iterable values) { ensureAssetTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, assetTypes_); onChanged(); return this; } /** - * - * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1667,7 +1449,6 @@ public Builder addAllAssetTypes(java.lang.Iterable values) {
          * 
    * * repeated string asset_types = 3; - * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1677,8 +1458,6 @@ public Builder clearAssetTypes() { return this; } /** - * - * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1697,15 +1476,15 @@ public Builder clearAssetTypes() {
          * 
    * * repeated string asset_types = 3; - * * @param value The bytes of the assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { + public Builder addAssetTypesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); @@ -1714,69 +1493,55 @@ public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { private int contentType_ = 0; /** - * - * *
          * Asset content type. If not specified, no content but the asset name will be
          * returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override - public int getContentTypeValue() { + @java.lang.Override public int getContentTypeValue() { return contentType_; } /** - * - * *
          * Asset content type. If not specified, no content but the asset name will be
          * returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @param value The enum numeric value on the wire for contentType to set. * @return This builder for chaining. */ public Builder setContentTypeValue(int value) { - + contentType_ = value; onChanged(); return this; } /** - * - * *
          * Asset content type. If not specified, no content but the asset name will be
          * returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @return The contentType. */ @java.lang.Override public com.google.cloud.asset.v1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.ContentType result = - com.google.cloud.asset.v1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1.ContentType result = com.google.cloud.asset.v1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1.ContentType.UNRECOGNIZED : result; } /** - * - * *
          * Asset content type. If not specified, no content but the asset name will be
          * returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @param value The contentType to set. * @return This builder for chaining. */ @@ -1784,25 +1549,22 @@ public Builder setContentType(com.google.cloud.asset.v1.ContentType value) { if (value == null) { throw new NullPointerException(); } - + contentType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
          * Asset content type. If not specified, no content but the asset name will be
          * returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @return This builder for chaining. */ public Builder clearContentType() { - + contentType_ = 0; onChanged(); return this; @@ -1810,61 +1572,39 @@ public Builder clearContentType() { private com.google.cloud.asset.v1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.OutputConfig, - com.google.cloud.asset.v1.OutputConfig.Builder, - com.google.cloud.asset.v1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.asset.v1.OutputConfig, com.google.cloud.asset.v1.OutputConfig.Builder, com.google.cloud.asset.v1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
    -     * Required. Output configuration indicating where the results will be output
    -     * to.
    +     * Required. Output configuration indicating where the results will be output to.
          * 
    * - * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
    -     * Required. Output configuration indicating where the results will be output
    -     * to.
    +     * Required. Output configuration indicating where the results will be output to.
          * 
    * - * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.asset.v1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.asset.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.asset.v1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
    -     * Required. Output configuration indicating where the results will be output
    -     * to.
    +     * Required. Output configuration indicating where the results will be output to.
          * 
    * - * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig(com.google.cloud.asset.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1880,18 +1620,14 @@ public Builder setOutputConfig(com.google.cloud.asset.v1.OutputConfig value) { return this; } /** - * - * *
    -     * Required. Output configuration indicating where the results will be output
    -     * to.
    +     * Required. Output configuration indicating where the results will be output to.
          * 
    * - * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setOutputConfig(com.google.cloud.asset.v1.OutputConfig.Builder builderForValue) { + public Builder setOutputConfig( + com.google.cloud.asset.v1.OutputConfig.Builder builderForValue) { if (outputConfigBuilder_ == null) { outputConfig_ = builderForValue.build(); onChanged(); @@ -1902,24 +1638,17 @@ public Builder setOutputConfig(com.google.cloud.asset.v1.OutputConfig.Builder bu return this; } /** - * - * *
    -     * Required. Output configuration indicating where the results will be output
    -     * to.
    +     * Required. Output configuration indicating where the results will be output to.
          * 
    * - * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeOutputConfig(com.google.cloud.asset.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.asset.v1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -1931,16 +1660,11 @@ public Builder mergeOutputConfig(com.google.cloud.asset.v1.OutputConfig value) { return this; } /** - * - * *
    -     * Required. Output configuration indicating where the results will be output
    -     * to.
    +     * Required. Output configuration indicating where the results will be output to.
          * 
    * - * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1954,84 +1678,61 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
    -     * Required. Output configuration indicating where the results will be output
    -     * to.
    +     * Required. Output configuration indicating where the results will be output to.
          * 
    * - * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.asset.v1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
    -     * Required. Output configuration indicating where the results will be output
    -     * to.
    +     * Required. Output configuration indicating where the results will be output to.
          * 
    * - * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.asset.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.asset.v1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
    -     * Required. Output configuration indicating where the results will be output
    -     * to.
    +     * Required. Output configuration indicating where the results will be output to.
          * 
    * - * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.OutputConfig, - com.google.cloud.asset.v1.OutputConfig.Builder, - com.google.cloud.asset.v1.OutputConfigOrBuilder> + com.google.cloud.asset.v1.OutputConfig, com.google.cloud.asset.v1.OutputConfig.Builder, com.google.cloud.asset.v1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.OutputConfig, - com.google.cloud.asset.v1.OutputConfig.Builder, - com.google.cloud.asset.v1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.OutputConfig, com.google.cloud.asset.v1.OutputConfig.Builder, com.google.cloud.asset.v1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - private com.google.protobuf.LazyStringList relationshipTypes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList relationshipTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRelationshipTypesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { relationshipTypes_ = new com.google.protobuf.LazyStringArrayList(relationshipTypes_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2051,15 +1752,13 @@ private void ensureRelationshipTypesIsMutable() {
          * 
    * * repeated string relationship_types = 6; - * * @return A list containing the relationshipTypes. */ - public com.google.protobuf.ProtocolStringList getRelationshipTypesList() { + public com.google.protobuf.ProtocolStringList + getRelationshipTypesList() { return relationshipTypes_.getUnmodifiableView(); } /** - * - * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2079,15 +1778,12 @@ public com.google.protobuf.ProtocolStringList getRelationshipTypesList() {
          * 
    * * repeated string relationship_types = 6; - * * @return The count of relationshipTypes. */ public int getRelationshipTypesCount() { return relationshipTypes_.size(); } /** - * - * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2107,7 +1803,6 @@ public int getRelationshipTypesCount() {
          * 
    * * repeated string relationship_types = 6; - * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -2115,8 +1810,6 @@ public java.lang.String getRelationshipTypes(int index) { return relationshipTypes_.get(index); } /** - * - * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2136,16 +1829,14 @@ public java.lang.String getRelationshipTypes(int index) {
          * 
    * * repeated string relationship_types = 6; - * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) { + public com.google.protobuf.ByteString + getRelationshipTypesBytes(int index) { return relationshipTypes_.getByteString(index); } /** - * - * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2165,23 +1856,21 @@ public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) {
          * 
    * * repeated string relationship_types = 6; - * * @param index The index to set the value at. * @param value The relationshipTypes to set. * @return This builder for chaining. */ - public Builder setRelationshipTypes(int index, java.lang.String value) { + public Builder setRelationshipTypes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRelationshipTypesIsMutable(); + throw new NullPointerException(); + } + ensureRelationshipTypesIsMutable(); relationshipTypes_.set(index, value); onChanged(); return this; } /** - * - * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2201,22 +1890,20 @@ public Builder setRelationshipTypes(int index, java.lang.String value) {
          * 
    * * repeated string relationship_types = 6; - * * @param value The relationshipTypes to add. * @return This builder for chaining. */ - public Builder addRelationshipTypes(java.lang.String value) { + public Builder addRelationshipTypes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRelationshipTypesIsMutable(); + throw new NullPointerException(); + } + ensureRelationshipTypesIsMutable(); relationshipTypes_.add(value); onChanged(); return this; } /** - * - * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2236,19 +1923,18 @@ public Builder addRelationshipTypes(java.lang.String value) {
          * 
    * * repeated string relationship_types = 6; - * * @param values The relationshipTypes to add. * @return This builder for chaining. */ - public Builder addAllRelationshipTypes(java.lang.Iterable values) { + public Builder addAllRelationshipTypes( + java.lang.Iterable values) { ensureRelationshipTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relationshipTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, relationshipTypes_); onChanged(); return this; } /** - * - * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2268,7 +1954,6 @@ public Builder addAllRelationshipTypes(java.lang.Iterable valu
          * 
    * * repeated string relationship_types = 6; - * * @return This builder for chaining. */ public Builder clearRelationshipTypes() { @@ -2278,8 +1963,6 @@ public Builder clearRelationshipTypes() { return this; } /** - * - * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2299,23 +1982,23 @@ public Builder clearRelationshipTypes() {
          * 
    * * repeated string relationship_types = 6; - * * @param value The bytes of the relationshipTypes to add. * @return This builder for chaining. */ - public Builder addRelationshipTypesBytes(com.google.protobuf.ByteString value) { + public Builder addRelationshipTypesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureRelationshipTypesIsMutable(); relationshipTypes_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2325,12 +2008,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.ExportAssetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.ExportAssetsRequest) private static final com.google.cloud.asset.v1.ExportAssetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.ExportAssetsRequest(); } @@ -2339,16 +2022,27 @@ public static com.google.cloud.asset.v1.ExportAssetsRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportAssetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportAssetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2363,4 +2057,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.ExportAssetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java similarity index 86% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java index 01284605acd9..642b7864f94e 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface ExportAssetsRequestOrBuilder - extends +public interface ExportAssetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.ExportAssetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The relative name of the root asset. This can only be an
        * organization number (such as "organizations/123"), a project ID (such as
    @@ -33,16 +15,11 @@ public interface ExportAssetsRequestOrBuilder
        * or a folder number (such as "folders/123").
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
        * Required. The relative name of the root asset. This can only be an
        * organization number (such as "organizations/123"), a project ID (such as
    @@ -50,17 +27,13 @@ public interface ExportAssetsRequestOrBuilder
        * or a folder number (such as "folders/123").
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -70,13 +43,10 @@ public interface ExportAssetsRequestOrBuilder
        * 
    * * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -86,13 +56,10 @@ public interface ExportAssetsRequestOrBuilder
        * 
    * * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -106,8 +73,6 @@ public interface ExportAssetsRequestOrBuilder
       com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -126,13 +91,11 @@ public interface ExportAssetsRequestOrBuilder
        * 
    * * repeated string asset_types = 3; - * * @return A list containing the assetTypes. */ - java.util.List getAssetTypesList(); + java.util.List + getAssetTypesList(); /** - * - * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -151,13 +114,10 @@ public interface ExportAssetsRequestOrBuilder
        * 
    * * repeated string asset_types = 3; - * * @return The count of assetTypes. */ int getAssetTypesCount(); /** - * - * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -176,14 +136,11 @@ public interface ExportAssetsRequestOrBuilder
        * 
    * * repeated string asset_types = 3; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ java.lang.String getAssetTypes(int index); /** - * - * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -202,86 +159,61 @@ public interface ExportAssetsRequestOrBuilder
        * 
    * * repeated string asset_types = 3; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - com.google.protobuf.ByteString getAssetTypesBytes(int index); + com.google.protobuf.ByteString + getAssetTypesBytes(int index); /** - * - * *
        * Asset content type. If not specified, no content but the asset name will be
        * returned.
        * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @return The enum numeric value on the wire for contentType. */ int getContentTypeValue(); /** - * - * *
        * Asset content type. If not specified, no content but the asset name will be
        * returned.
        * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @return The contentType. */ com.google.cloud.asset.v1.ContentType getContentType(); /** - * - * *
    -   * Required. Output configuration indicating where the results will be output
    -   * to.
    +   * Required. Output configuration indicating where the results will be output to.
        * 
    * - * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    -   * Required. Output configuration indicating where the results will be output
    -   * to.
    +   * Required. Output configuration indicating where the results will be output to.
        * 
    * - * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ com.google.cloud.asset.v1.OutputConfig getOutputConfig(); /** - * - * *
    -   * Required. Output configuration indicating where the results will be output
    -   * to.
    +   * Required. Output configuration indicating where the results will be output to.
        * 
    * - * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -301,13 +233,11 @@ public interface ExportAssetsRequestOrBuilder
        * 
    * * repeated string relationship_types = 6; - * * @return A list containing the relationshipTypes. */ - java.util.List getRelationshipTypesList(); + java.util.List + getRelationshipTypesList(); /** - * - * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -327,13 +257,10 @@ public interface ExportAssetsRequestOrBuilder
        * 
    * * repeated string relationship_types = 6; - * * @return The count of relationshipTypes. */ int getRelationshipTypesCount(); /** - * - * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -353,14 +280,11 @@ public interface ExportAssetsRequestOrBuilder
        * 
    * * repeated string relationship_types = 6; - * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ java.lang.String getRelationshipTypes(int index); /** - * - * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -380,9 +304,9 @@ public interface ExportAssetsRequestOrBuilder
        * 
    * * repeated string relationship_types = 6; - * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - com.google.protobuf.ByteString getRelationshipTypesBytes(int index); + com.google.protobuf.ByteString + getRelationshipTypesBytes(int index); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java similarity index 69% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java index 871329111603..880e308cc9e7 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java @@ -1,171 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * The export asset response. This message is returned by the
    - * [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation]
    - * method in the returned
    - * [google.longrunning.Operation.response][google.longrunning.Operation.response]
    - * field.
    + * [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation] method in the returned
    + * [google.longrunning.Operation.response][google.longrunning.Operation.response] field.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.ExportAssetsResponse} */ -public final class ExportAssetsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ExportAssetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.ExportAssetsResponse) ExportAssetsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ExportAssetsResponse.newBuilder() to construct. private ExportAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ExportAssetsResponse() {} + private ExportAssetsResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExportAssetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private ExportAssetsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.cloud.asset.v1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.asset.v1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.cloud.asset.v1.OutputResult.Builder subBuilder = null; - if (outputResult_ != null) { - subBuilder = outputResult_.toBuilder(); - } - outputResult_ = - input.readMessage( - com.google.cloud.asset.v1.OutputResult.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ExportAssetsResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ExportAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ExportAssetsResponse.class, - com.google.cloud.asset.v1.ExportAssetsResponse.Builder.class); + com.google.cloud.asset.v1.ExportAssetsResponse.class, com.google.cloud.asset.v1.ExportAssetsResponse.Builder.class); } public static final int READ_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp readTime_; /** - * - * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -173,14 +64,11 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; - * * @return The readTime. */ @java.lang.Override @@ -188,8 +76,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
        * Time the snapshot was taken.
        * 
    @@ -204,14 +90,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.asset.v1.OutputConfig outputConfig_; /** - * - * *
        * Output configuration indicating where the results were output to.
        * 
    * * .google.cloud.asset.v1.OutputConfig output_config = 2; - * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -219,25 +102,18 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
        * Output configuration indicating where the results were output to.
        * 
    * * .google.cloud.asset.v1.OutputConfig output_config = 2; - * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.asset.v1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.asset.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.asset.v1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
        * Output configuration indicating where the results were output to.
        * 
    @@ -252,8 +128,6 @@ public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder( public static final int OUTPUT_RESULT_FIELD_NUMBER = 3; private com.google.cloud.asset.v1.OutputResult outputResult_; /** - * - * *
        * Output result indicating where the assets were exported to. For example, a
        * set of actual Google Cloud Storage object uris where the assets are
    @@ -263,7 +137,6 @@ public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(
        * 
    * * .google.cloud.asset.v1.OutputResult output_result = 3; - * * @return Whether the outputResult field is set. */ @java.lang.Override @@ -271,8 +144,6 @@ public boolean hasOutputResult() { return outputResult_ != null; } /** - * - * *
        * Output result indicating where the assets were exported to. For example, a
        * set of actual Google Cloud Storage object uris where the assets are
    @@ -282,18 +153,13 @@ public boolean hasOutputResult() {
        * 
    * * .google.cloud.asset.v1.OutputResult output_result = 3; - * * @return The outputResult. */ @java.lang.Override public com.google.cloud.asset.v1.OutputResult getOutputResult() { - return outputResult_ == null - ? com.google.cloud.asset.v1.OutputResult.getDefaultInstance() - : outputResult_; + return outputResult_ == null ? com.google.cloud.asset.v1.OutputResult.getDefaultInstance() : outputResult_; } /** - * - * *
        * Output result indicating where the assets were exported to. For example, a
        * set of actual Google Cloud Storage object uris where the assets are
    @@ -310,7 +176,6 @@ public com.google.cloud.asset.v1.OutputResultOrBuilder getOutputResultOrBuilder(
       }
     
       private byte memoizedIsInitialized = -1;
    -
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -322,7 +187,8 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output)
    +                      throws java.io.IOException {
         if (readTime_ != null) {
           output.writeMessage(1, getReadTime());
         }
    @@ -332,7 +198,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (outputResult_ != null) {
           output.writeMessage(3, getOutputResult());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -342,15 +208,18 @@ public int getSerializedSize() {
     
         size = 0;
         if (readTime_ != null) {
    -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReadTime());
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(1, getReadTime());
         }
         if (outputConfig_ != null) {
    -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputConfig());
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(2, getOutputConfig());
         }
         if (outputResult_ != null) {
    -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputResult());
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(3, getOutputResult());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -358,27 +227,29 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -      return true;
    +     return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1.ExportAssetsResponse)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1.ExportAssetsResponse other =
    -        (com.google.cloud.asset.v1.ExportAssetsResponse) obj;
    +    com.google.cloud.asset.v1.ExportAssetsResponse other = (com.google.cloud.asset.v1.ExportAssetsResponse) obj;
     
         if (hasReadTime() != other.hasReadTime()) return false;
         if (hasReadTime()) {
    -      if (!getReadTime().equals(other.getReadTime())) return false;
    +      if (!getReadTime()
    +          .equals(other.getReadTime())) return false;
         }
         if (hasOutputConfig() != other.hasOutputConfig()) return false;
         if (hasOutputConfig()) {
    -      if (!getOutputConfig().equals(other.getOutputConfig())) return false;
    +      if (!getOutputConfig()
    +          .equals(other.getOutputConfig())) return false;
         }
         if (hasOutputResult() != other.hasOutputResult()) return false;
         if (hasOutputResult()) {
    -      if (!getOutputResult().equals(other.getOutputResult())) return false;
    +      if (!getOutputResult()
    +          .equals(other.getOutputResult())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -401,152 +272,137 @@ public int hashCode() {
           hash = (37 * hash) + OUTPUT_RESULT_FIELD_NUMBER;
           hash = (53 * hash) + getOutputResult().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1.ExportAssetsResponse parseFrom(java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1.ExportAssetsResponse parseFrom(
    +      java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.ExportAssetsResponse parseFrom(
    -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.ExportAssetsResponse parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.ExportAssetsResponse 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.asset.v1.ExportAssetsResponse parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.ExportAssetsResponse parseFrom(
    -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.ExportAssetsResponse parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.ExportAssetsResponse parseFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
    -
    -  public static com.google.cloud.asset.v1.ExportAssetsResponse parseDelimitedFrom(
    -      java.io.InputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    +  public static com.google.cloud.asset.v1.ExportAssetsResponse parseDelimitedFrom(java.io.InputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.ExportAssetsResponse parseDelimitedFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.ExportAssetsResponse parseFrom(
    -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.ExportAssetsResponse parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() {
    -    return newBuilder();
    -  }
    -
    +  public Builder newBuilderForType() { return newBuilder(); }
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    -
       public static Builder newBuilder(com.google.cloud.asset.v1.ExportAssetsResponse prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    -
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE
    +        ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(
    +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    -   *
    -   *
        * 
        * The export asset response. This message is returned by the
    -   * [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation]
    -   * method in the returned
    -   * [google.longrunning.Operation.response][google.longrunning.Operation.response]
    -   * field.
    +   * [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation] method in the returned
    +   * [google.longrunning.Operation.response][google.longrunning.Operation.response] field.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.ExportAssetsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.ExportAssetsResponse) com.google.cloud.asset.v1.ExportAssetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ExportAssetsResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ExportAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ExportAssetsResponse.class, - com.google.cloud.asset.v1.ExportAssetsResponse.Builder.class); + com.google.cloud.asset.v1.ExportAssetsResponse.class, com.google.cloud.asset.v1.ExportAssetsResponse.Builder.class); } // Construct using com.google.cloud.asset.v1.ExportAssetsResponse.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -572,9 +428,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor; } @java.lang.Override @@ -593,8 +449,7 @@ public com.google.cloud.asset.v1.ExportAssetsResponse build() { @java.lang.Override public com.google.cloud.asset.v1.ExportAssetsResponse buildPartial() { - com.google.cloud.asset.v1.ExportAssetsResponse result = - new com.google.cloud.asset.v1.ExportAssetsResponse(this); + com.google.cloud.asset.v1.ExportAssetsResponse result = new com.google.cloud.asset.v1.ExportAssetsResponse(this); if (readTimeBuilder_ == null) { result.readTime_ = readTime_; } else { @@ -618,39 +473,38 @@ public com.google.cloud.asset.v1.ExportAssetsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.ExportAssetsResponse) { - return mergeFrom((com.google.cloud.asset.v1.ExportAssetsResponse) other); + return mergeFrom((com.google.cloud.asset.v1.ExportAssetsResponse)other); } else { super.mergeFrom(other); return this; @@ -668,7 +522,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ExportAssetsResponse other) { if (other.hasOutputResult()) { mergeOutputResult(other.getOutputResult()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -683,49 +537,74 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.ExportAssetsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getReadTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getOutputConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + input.readMessage( + getOutputResultFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.ExportAssetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
          * Time the snapshot was taken.
          * 
    * * .google.protobuf.Timestamp read_time = 1; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
          * Time the snapshot was taken.
          * 
    * * .google.protobuf.Timestamp read_time = 1; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -736,8 +615,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
          * Time the snapshot was taken.
          * 
    @@ -758,15 +635,14 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
          * Time the snapshot was taken.
          * 
    * * .google.protobuf.Timestamp read_time = 1; */ - public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -777,8 +653,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue return this; } /** - * - * *
          * Time the snapshot was taken.
          * 
    @@ -789,7 +663,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -801,8 +675,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
          * Time the snapshot was taken.
          * 
    @@ -821,8 +693,6 @@ public Builder clearReadTime() { return this; } /** - * - * *
          * Time the snapshot was taken.
          * 
    @@ -830,13 +700,11 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 1; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** - * - * *
          * Time the snapshot was taken.
          * 
    @@ -847,12 +715,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** - * - * *
          * Time the snapshot was taken.
          * 
    @@ -860,17 +727,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getReadTime(), getParentForChildren(), isClean()); + readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getReadTime(), + getParentForChildren(), + isClean()); readTime_ = null; } return readTimeBuilder_; @@ -878,47 +742,34 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private com.google.cloud.asset.v1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.OutputConfig, - com.google.cloud.asset.v1.OutputConfig.Builder, - com.google.cloud.asset.v1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.asset.v1.OutputConfig, com.google.cloud.asset.v1.OutputConfig.Builder, com.google.cloud.asset.v1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
          * Output configuration indicating where the results were output to.
          * 
    * * .google.cloud.asset.v1.OutputConfig output_config = 2; - * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
          * Output configuration indicating where the results were output to.
          * 
    * * .google.cloud.asset.v1.OutputConfig output_config = 2; - * * @return The outputConfig. */ public com.google.cloud.asset.v1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.asset.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.asset.v1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -939,15 +790,14 @@ public Builder setOutputConfig(com.google.cloud.asset.v1.OutputConfig value) { return this; } /** - * - * *
          * Output configuration indicating where the results were output to.
          * 
    * * .google.cloud.asset.v1.OutputConfig output_config = 2; */ - public Builder setOutputConfig(com.google.cloud.asset.v1.OutputConfig.Builder builderForValue) { + public Builder setOutputConfig( + com.google.cloud.asset.v1.OutputConfig.Builder builderForValue) { if (outputConfigBuilder_ == null) { outputConfig_ = builderForValue.build(); onChanged(); @@ -958,8 +808,6 @@ public Builder setOutputConfig(com.google.cloud.asset.v1.OutputConfig.Builder bu return this; } /** - * - * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -970,9 +818,7 @@ public Builder mergeOutputConfig(com.google.cloud.asset.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.asset.v1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -984,8 +830,6 @@ public Builder mergeOutputConfig(com.google.cloud.asset.v1.OutputConfig value) { return this; } /** - * - * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -1004,8 +848,6 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -1013,13 +855,11 @@ public Builder clearOutputConfig() { * .google.cloud.asset.v1.OutputConfig output_config = 2; */ public com.google.cloud.asset.v1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -1030,14 +870,11 @@ public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder( if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.asset.v1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.asset.v1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -1045,17 +882,14 @@ public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder( * .google.cloud.asset.v1.OutputConfig output_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.OutputConfig, - com.google.cloud.asset.v1.OutputConfig.Builder, - com.google.cloud.asset.v1.OutputConfigOrBuilder> + com.google.cloud.asset.v1.OutputConfig, com.google.cloud.asset.v1.OutputConfig.Builder, com.google.cloud.asset.v1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.OutputConfig, - com.google.cloud.asset.v1.OutputConfig.Builder, - com.google.cloud.asset.v1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.OutputConfig, com.google.cloud.asset.v1.OutputConfig.Builder, com.google.cloud.asset.v1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; @@ -1063,13 +897,8 @@ public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder( private com.google.cloud.asset.v1.OutputResult outputResult_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.OutputResult, - com.google.cloud.asset.v1.OutputResult.Builder, - com.google.cloud.asset.v1.OutputResultOrBuilder> - outputResultBuilder_; + com.google.cloud.asset.v1.OutputResult, com.google.cloud.asset.v1.OutputResult.Builder, com.google.cloud.asset.v1.OutputResultOrBuilder> outputResultBuilder_; /** - * - * *
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1079,15 +908,12 @@ public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(
          * 
    * * .google.cloud.asset.v1.OutputResult output_result = 3; - * * @return Whether the outputResult field is set. */ public boolean hasOutputResult() { return outputResultBuilder_ != null || outputResult_ != null; } /** - * - * *
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1097,21 +923,16 @@ public boolean hasOutputResult() {
          * 
    * * .google.cloud.asset.v1.OutputResult output_result = 3; - * * @return The outputResult. */ public com.google.cloud.asset.v1.OutputResult getOutputResult() { if (outputResultBuilder_ == null) { - return outputResult_ == null - ? com.google.cloud.asset.v1.OutputResult.getDefaultInstance() - : outputResult_; + return outputResult_ == null ? com.google.cloud.asset.v1.OutputResult.getDefaultInstance() : outputResult_; } else { return outputResultBuilder_.getMessage(); } } /** - * - * *
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1136,8 +957,6 @@ public Builder setOutputResult(com.google.cloud.asset.v1.OutputResult value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1148,7 +967,8 @@ public Builder setOutputResult(com.google.cloud.asset.v1.OutputResult value) {
          *
          * .google.cloud.asset.v1.OutputResult output_result = 3;
          */
    -    public Builder setOutputResult(com.google.cloud.asset.v1.OutputResult.Builder builderForValue) {
    +    public Builder setOutputResult(
    +        com.google.cloud.asset.v1.OutputResult.Builder builderForValue) {
           if (outputResultBuilder_ == null) {
             outputResult_ = builderForValue.build();
             onChanged();
    @@ -1159,8 +979,6 @@ public Builder setOutputResult(com.google.cloud.asset.v1.OutputResult.Builder bu
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1175,9 +993,7 @@ public Builder mergeOutputResult(com.google.cloud.asset.v1.OutputResult value) {
           if (outputResultBuilder_ == null) {
             if (outputResult_ != null) {
               outputResult_ =
    -              com.google.cloud.asset.v1.OutputResult.newBuilder(outputResult_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +            com.google.cloud.asset.v1.OutputResult.newBuilder(outputResult_).mergeFrom(value).buildPartial();
             } else {
               outputResult_ = value;
             }
    @@ -1189,8 +1005,6 @@ public Builder mergeOutputResult(com.google.cloud.asset.v1.OutputResult value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1213,8 +1027,6 @@ public Builder clearOutputResult() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1226,13 +1038,11 @@ public Builder clearOutputResult() {
          * .google.cloud.asset.v1.OutputResult output_result = 3;
          */
         public com.google.cloud.asset.v1.OutputResult.Builder getOutputResultBuilder() {
    -
    +      
           onChanged();
           return getOutputResultFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1247,14 +1057,11 @@ public com.google.cloud.asset.v1.OutputResultOrBuilder getOutputResultOrBuilder(
           if (outputResultBuilder_ != null) {
             return outputResultBuilder_.getMessageOrBuilder();
           } else {
    -        return outputResult_ == null
    -            ? com.google.cloud.asset.v1.OutputResult.getDefaultInstance()
    -            : outputResult_;
    +        return outputResult_ == null ?
    +            com.google.cloud.asset.v1.OutputResult.getDefaultInstance() : outputResult_;
           }
         }
         /**
    -     *
    -     *
          * 
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1266,24 +1073,21 @@ public com.google.cloud.asset.v1.OutputResultOrBuilder getOutputResultOrBuilder(
          * .google.cloud.asset.v1.OutputResult output_result = 3;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.OutputResult,
    -            com.google.cloud.asset.v1.OutputResult.Builder,
    -            com.google.cloud.asset.v1.OutputResultOrBuilder>
    +        com.google.cloud.asset.v1.OutputResult, com.google.cloud.asset.v1.OutputResult.Builder, com.google.cloud.asset.v1.OutputResultOrBuilder> 
             getOutputResultFieldBuilder() {
           if (outputResultBuilder_ == null) {
    -        outputResultBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.cloud.asset.v1.OutputResult,
    -                com.google.cloud.asset.v1.OutputResult.Builder,
    -                com.google.cloud.asset.v1.OutputResultOrBuilder>(
    -                getOutputResult(), getParentForChildren(), isClean());
    +        outputResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.cloud.asset.v1.OutputResult, com.google.cloud.asset.v1.OutputResult.Builder, com.google.cloud.asset.v1.OutputResultOrBuilder>(
    +                getOutputResult(),
    +                getParentForChildren(),
    +                isClean());
             outputResult_ = null;
           }
           return outputResultBuilder_;
         }
    -
         @java.lang.Override
    -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(
    +        final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -1293,12 +1097,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    +
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.ExportAssetsResponse)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.ExportAssetsResponse)
       private static final com.google.cloud.asset.v1.ExportAssetsResponse DEFAULT_INSTANCE;
    -
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1.ExportAssetsResponse();
       }
    @@ -1307,16 +1111,27 @@ public static com.google.cloud.asset.v1.ExportAssetsResponse getDefaultInstance(
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser PARSER =
    -      new com.google.protobuf.AbstractParser() {
    -        @java.lang.Override
    -        public ExportAssetsResponse parsePartialFrom(
    -            com.google.protobuf.CodedInputStream input,
    -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -            throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ExportAssetsResponse(input, extensionRegistry);
    -        }
    -      };
    +  private static final com.google.protobuf.Parser
    +      PARSER = new com.google.protobuf.AbstractParser() {
    +    @java.lang.Override
    +    public ExportAssetsResponse parsePartialFrom(
    +        com.google.protobuf.CodedInputStream input,
    +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        throws com.google.protobuf.InvalidProtocolBufferException {
    +      Builder builder = newBuilder();
    +      try {
    +        builder.mergeFrom(input, extensionRegistry);
    +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +        throw e.setUnfinishedMessage(builder.buildPartial());
    +      } catch (com.google.protobuf.UninitializedMessageException e) {
    +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +      } catch (java.io.IOException e) {
    +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +            .setUnfinishedMessage(builder.buildPartial());
    +      }
    +      return builder.buildPartial();
    +    }
    +  };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1331,4 +1146,6 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1.ExportAssetsResponse getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    +
     }
    +
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponseOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponseOrBuilder.java
    similarity index 81%
    rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponseOrBuilder.java
    rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponseOrBuilder.java
    index 83e57dbafd22..e3a7e58899ba 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponseOrBuilder.java
    +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponseOrBuilder.java
    @@ -1,55 +1,31 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
    -public interface ExportAssetsResponseOrBuilder
    -    extends
    +public interface ExportAssetsResponseOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.ExportAssetsResponse)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    -   *
    -   *
        * 
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
        * Time the snapshot was taken.
        * 
    @@ -59,32 +35,24 @@ public interface ExportAssetsResponseOrBuilder com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** - * - * *
        * Output configuration indicating where the results were output to.
        * 
    * * .google.cloud.asset.v1.OutputConfig output_config = 2; - * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
        * Output configuration indicating where the results were output to.
        * 
    * * .google.cloud.asset.v1.OutputConfig output_config = 2; - * * @return The outputConfig. */ com.google.cloud.asset.v1.OutputConfig getOutputConfig(); /** - * - * *
        * Output configuration indicating where the results were output to.
        * 
    @@ -94,8 +62,6 @@ public interface ExportAssetsResponseOrBuilder com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
        * Output result indicating where the assets were exported to. For example, a
        * set of actual Google Cloud Storage object uris where the assets are
    @@ -105,13 +71,10 @@ public interface ExportAssetsResponseOrBuilder
        * 
    * * .google.cloud.asset.v1.OutputResult output_result = 3; - * * @return Whether the outputResult field is set. */ boolean hasOutputResult(); /** - * - * *
        * Output result indicating where the assets were exported to. For example, a
        * set of actual Google Cloud Storage object uris where the assets are
    @@ -121,13 +84,10 @@ public interface ExportAssetsResponseOrBuilder
        * 
    * * .google.cloud.asset.v1.OutputResult output_result = 3; - * * @return The outputResult. */ com.google.cloud.asset.v1.OutputResult getOutputResult(); /** - * - * *
        * Output result indicating where the assets were exported to. For example, a
        * set of actual Google Cloud Storage object uris where the assets are
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java
    similarity index 79%
    rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java
    rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java
    index 54f0957682ab..3f3c3b81afa2 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java
    +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java
    @@ -1,26 +1,9 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
     /**
    - *
    - *
      * 
      * An asset feed used to export asset updates to a destinations.
      * An asset feed filter controls what updates are exported.
    @@ -31,16 +14,15 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.Feed}
      */
    -public final class Feed extends com.google.protobuf.GeneratedMessageV3
    -    implements
    +public final class Feed extends
    +    com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.Feed)
         FeedOrBuilder {
    -  private static final long serialVersionUID = 0L;
    +private static final long serialVersionUID = 0L;
       // Use Feed.newBuilder() to construct.
       private Feed(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -
       private Feed() {
         name_ = "";
         assetNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    @@ -51,148 +33,25 @@ private Feed() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(
    +      UnusedPrivateParameter unused) {
         return new Feed();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet
    +  getUnknownFields() {
         return this.unknownFields;
       }
    -
    -  private Feed(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              name_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                assetNames_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              assetNames_.add(s);
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
    -                assetTypes_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000002;
    -              }
    -              assetTypes_.add(s);
    -              break;
    -            }
    -          case 32:
    -            {
    -              int rawValue = input.readEnum();
    -
    -              contentType_ = rawValue;
    -              break;
    -            }
    -          case 42:
    -            {
    -              com.google.cloud.asset.v1.FeedOutputConfig.Builder subBuilder = null;
    -              if (feedOutputConfig_ != null) {
    -                subBuilder = feedOutputConfig_.toBuilder();
    -              }
    -              feedOutputConfig_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.FeedOutputConfig.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(feedOutputConfig_);
    -                feedOutputConfig_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 50:
    -            {
    -              com.google.type.Expr.Builder subBuilder = null;
    -              if (condition_ != null) {
    -                subBuilder = condition_.toBuilder();
    -              }
    -              condition_ = input.readMessage(com.google.type.Expr.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(condition_);
    -                condition_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 58:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
    -                relationshipTypes_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000004;
    -              }
    -              relationshipTypes_.add(s);
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        assetNames_ = assetNames_.getUnmodifiableView();
    -      }
    -      if (((mutable_bitField0_ & 0x00000002) != 0)) {
    -        assetTypes_ = assetTypes_.getUnmodifiableView();
    -      }
    -      if (((mutable_bitField0_ & 0x00000004) != 0)) {
    -        relationshipTypes_ = relationshipTypes_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
    -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetServiceProto
    -        .internal_static_google_cloud_asset_v1_Feed_descriptor;
    +  public static final com.google.protobuf.Descriptors.Descriptor
    +      getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_Feed_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetServiceProto
    -        .internal_static_google_cloud_asset_v1_Feed_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_Feed_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
                 com.google.cloud.asset.v1.Feed.class, com.google.cloud.asset.v1.Feed.Builder.class);
       }
    @@ -200,8 +59,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       public static final int NAME_FIELD_NUMBER = 1;
       private volatile java.lang.Object name_;
       /**
    -   *
    -   *
        * 
        * Required. The format will be
        * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -212,7 +69,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -221,15 +77,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
        * Required. The format will be
        * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -240,15 +95,16 @@ public java.lang.String getName() {
        * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -259,8 +115,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ASSET_NAMES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList assetNames_; /** - * - * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -272,15 +126,13 @@ public com.google.protobuf.ByteString getNameBytes() {
        * 
    * * repeated string asset_names = 2; - * * @return A list containing the assetNames. */ - public com.google.protobuf.ProtocolStringList getAssetNamesList() { + public com.google.protobuf.ProtocolStringList + getAssetNamesList() { return assetNames_; } /** - * - * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -292,15 +144,12 @@ public com.google.protobuf.ProtocolStringList getAssetNamesList() {
        * 
    * * repeated string asset_names = 2; - * * @return The count of assetNames. */ public int getAssetNamesCount() { return assetNames_.size(); } /** - * - * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -312,7 +161,6 @@ public int getAssetNamesCount() {
        * 
    * * repeated string asset_names = 2; - * * @param index The index of the element to return. * @return The assetNames at the given index. */ @@ -320,8 +168,6 @@ public java.lang.String getAssetNames(int index) { return assetNames_.get(index); } /** - * - * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -333,19 +179,17 @@ public java.lang.String getAssetNames(int index) {
        * 
    * * repeated string asset_names = 2; - * * @param index The index of the value to return. * @return The bytes of the assetNames at the given index. */ - public com.google.protobuf.ByteString getAssetNamesBytes(int index) { + public com.google.protobuf.ByteString + getAssetNamesBytes(int index) { return assetNames_.getByteString(index); } public static final int ASSET_TYPES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList assetTypes_; /** - * - * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -356,15 +200,13 @@ public com.google.protobuf.ByteString getAssetNamesBytes(int index) {
        * 
    * * repeated string asset_types = 3; - * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList getAssetTypesList() { + public com.google.protobuf.ProtocolStringList + getAssetTypesList() { return assetTypes_; } /** - * - * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -375,15 +217,12 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() {
        * 
    * * repeated string asset_types = 3; - * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** - * - * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -394,7 +233,6 @@ public int getAssetTypesCount() {
        * 
    * * repeated string asset_types = 3; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -402,8 +240,6 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** - * - * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -414,66 +250,52 @@ public java.lang.String getAssetTypes(int index) {
        * 
    * * repeated string asset_types = 3; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString + getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } public static final int CONTENT_TYPE_FIELD_NUMBER = 4; private int contentType_; /** - * - * *
        * Asset content type. If not specified, no content but the asset name and
        * type will be returned.
        * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override - public int getContentTypeValue() { + @java.lang.Override public int getContentTypeValue() { return contentType_; } /** - * - * *
        * Asset content type. If not specified, no content but the asset name and
        * type will be returned.
        * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @return The contentType. */ - @java.lang.Override - public com.google.cloud.asset.v1.ContentType getContentType() { + @java.lang.Override public com.google.cloud.asset.v1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.ContentType result = - com.google.cloud.asset.v1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1.ContentType result = com.google.cloud.asset.v1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1.ContentType.UNRECOGNIZED : result; } public static final int FEED_OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.asset.v1.FeedOutputConfig feedOutputConfig_; /** - * - * *
        * Required. Feed output configuration defining where the asset updates are
        * published to.
        * 
    * - * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the feedOutputConfig field is set. */ @java.lang.Override @@ -481,36 +303,25 @@ public boolean hasFeedOutputConfig() { return feedOutputConfig_ != null; } /** - * - * *
        * Required. Feed output configuration defining where the asset updates are
        * published to.
        * 
    * - * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The feedOutputConfig. */ @java.lang.Override public com.google.cloud.asset.v1.FeedOutputConfig getFeedOutputConfig() { - return feedOutputConfig_ == null - ? com.google.cloud.asset.v1.FeedOutputConfig.getDefaultInstance() - : feedOutputConfig_; + return feedOutputConfig_ == null ? com.google.cloud.asset.v1.FeedOutputConfig.getDefaultInstance() : feedOutputConfig_; } /** - * - * *
        * Required. Feed output configuration defining where the asset updates are
        * published to.
        * 
    * - * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.asset.v1.FeedOutputConfigOrBuilder getFeedOutputConfigOrBuilder() { @@ -520,8 +331,6 @@ public com.google.cloud.asset.v1.FeedOutputConfigOrBuilder getFeedOutputConfigOr public static final int CONDITION_FIELD_NUMBER = 6; private com.google.type.Expr condition_; /** - * - * *
        * A condition which determines whether an asset update should be published.
        * If specified, an asset will be returned only when the expression evaluates
    @@ -537,7 +346,6 @@ public com.google.cloud.asset.v1.FeedOutputConfigOrBuilder getFeedOutputConfigOr
        * 
    * * .google.type.Expr condition = 6; - * * @return Whether the condition field is set. */ @java.lang.Override @@ -545,8 +353,6 @@ public boolean hasCondition() { return condition_ != null; } /** - * - * *
        * A condition which determines whether an asset update should be published.
        * If specified, an asset will be returned only when the expression evaluates
    @@ -562,7 +368,6 @@ public boolean hasCondition() {
        * 
    * * .google.type.Expr condition = 6; - * * @return The condition. */ @java.lang.Override @@ -570,8 +375,6 @@ public com.google.type.Expr getCondition() { return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; } /** - * - * *
        * A condition which determines whether an asset update should be published.
        * If specified, an asset will be returned only when the expression evaluates
    @@ -596,8 +399,6 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
       public static final int RELATIONSHIP_TYPES_FIELD_NUMBER = 7;
       private com.google.protobuf.LazyStringList relationshipTypes_;
       /**
    -   *
    -   *
        * 
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -618,15 +419,13 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
        * 
    * * repeated string relationship_types = 7; - * * @return A list containing the relationshipTypes. */ - public com.google.protobuf.ProtocolStringList getRelationshipTypesList() { + public com.google.protobuf.ProtocolStringList + getRelationshipTypesList() { return relationshipTypes_; } /** - * - * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -647,15 +446,12 @@ public com.google.protobuf.ProtocolStringList getRelationshipTypesList() {
        * 
    * * repeated string relationship_types = 7; - * * @return The count of relationshipTypes. */ public int getRelationshipTypesCount() { return relationshipTypes_.size(); } /** - * - * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -676,7 +472,6 @@ public int getRelationshipTypesCount() {
        * 
    * * repeated string relationship_types = 7; - * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -684,8 +479,6 @@ public java.lang.String getRelationshipTypes(int index) { return relationshipTypes_.get(index); } /** - * - * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -706,16 +499,15 @@ public java.lang.String getRelationshipTypes(int index) {
        * 
    * * repeated string relationship_types = 7; - * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) { + public com.google.protobuf.ByteString + getRelationshipTypesBytes(int index) { return relationshipTypes_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -727,7 +519,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -737,8 +530,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < assetTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, assetTypes_.getRaw(i)); } - if (contentType_ - != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + if (contentType_ != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, contentType_); } if (feedOutputConfig_ != null) { @@ -750,7 +542,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < relationshipTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, relationshipTypes_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -778,15 +570,17 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAssetTypesList().size(); } - if (contentType_ - != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, contentType_); + if (contentType_ != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, contentType_); } if (feedOutputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFeedOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getFeedOutputConfig()); } if (condition_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCondition()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCondition()); } { int dataSize = 0; @@ -796,7 +590,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getRelationshipTypesList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -804,27 +598,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.Feed)) { return super.equals(obj); } com.google.cloud.asset.v1.Feed other = (com.google.cloud.asset.v1.Feed) obj; - if (!getName().equals(other.getName())) return false; - if (!getAssetNamesList().equals(other.getAssetNamesList())) return false; - if (!getAssetTypesList().equals(other.getAssetTypesList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getAssetNamesList() + .equals(other.getAssetNamesList())) return false; + if (!getAssetTypesList() + .equals(other.getAssetTypesList())) return false; if (contentType_ != other.contentType_) return false; if (hasFeedOutputConfig() != other.hasFeedOutputConfig()) return false; if (hasFeedOutputConfig()) { - if (!getFeedOutputConfig().equals(other.getFeedOutputConfig())) return false; + if (!getFeedOutputConfig() + .equals(other.getFeedOutputConfig())) return false; } if (hasCondition() != other.hasCondition()) return false; if (hasCondition()) { - if (!getCondition().equals(other.getCondition())) return false; + if (!getCondition() + .equals(other.getCondition())) return false; } - if (!getRelationshipTypesList().equals(other.getRelationshipTypesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getRelationshipTypesList() + .equals(other.getRelationshipTypesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -859,108 +659,102 @@ public int hashCode() { hash = (37 * hash) + RELATIONSHIP_TYPES_FIELD_NUMBER; hash = (53 * hash) + getRelationshipTypesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.Feed parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.Feed parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.Feed parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.Feed parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.asset.v1.Feed parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.Feed 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.asset.v1.Feed parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.Feed parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.Feed parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.Feed parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.Feed parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.Feed parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.Feed parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.cloud.asset.v1.Feed parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.Feed parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.Feed prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * An asset feed used to export asset updates to a destinations.
        * An asset feed filter controls what updates are exported.
    @@ -971,38 +765,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        * Protobuf type {@code google.cloud.asset.v1.Feed}
        */
    -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    -      implements
    +  public static final class Builder extends
    +      com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.Feed)
           com.google.cloud.asset.v1.FeedOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetServiceProto
    -          .internal_static_google_cloud_asset_v1_Feed_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor
    +        getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_Feed_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetServiceProto
    -          .internal_static_google_cloud_asset_v1_Feed_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_Feed_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
                   com.google.cloud.asset.v1.Feed.class, com.google.cloud.asset.v1.Feed.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.Feed.newBuilder()
         private Builder() {
    -      maybeForceBuilderInitialization();
    +
         }
     
    -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    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();
    @@ -1032,9 +821,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetServiceProto
    -          .internal_static_google_cloud_asset_v1_Feed_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor
    +        getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_Feed_descriptor;
         }
     
         @java.lang.Override
    @@ -1090,39 +879,38 @@ public com.google.cloud.asset.v1.Feed buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    -
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.Feed) {
    -        return mergeFrom((com.google.cloud.asset.v1.Feed) other);
    +        return mergeFrom((com.google.cloud.asset.v1.Feed)other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -1174,7 +962,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.Feed other) {
             }
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -1189,26 +977,78 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.Feed parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10: {
    +              name_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 10
    +            case 18: {
    +              java.lang.String s = input.readStringRequireUtf8();
    +              ensureAssetNamesIsMutable();
    +              assetNames_.add(s);
    +              break;
    +            } // case 18
    +            case 26: {
    +              java.lang.String s = input.readStringRequireUtf8();
    +              ensureAssetTypesIsMutable();
    +              assetTypes_.add(s);
    +              break;
    +            } // case 26
    +            case 32: {
    +              contentType_ = input.readEnum();
    +
    +              break;
    +            } // case 32
    +            case 42: {
    +              input.readMessage(
    +                  getFeedOutputConfigFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 42
    +            case 50: {
    +              input.readMessage(
    +                  getConditionFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 50
    +            case 58: {
    +              java.lang.String s = input.readStringRequireUtf8();
    +              ensureRelationshipTypesIsMutable();
    +              relationshipTypes_.add(s);
    +              break;
    +            } // case 58
    +            default: {
    +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                done = true; // was an endgroup tag
    +              }
    +              break;
    +            } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1.Feed) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
    -
         private int bitField0_;
     
         private java.lang.Object name_ = "";
         /**
    -     *
    -     *
          * 
          * Required. The format will be
          * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -1219,13 +1059,13 @@ public Builder mergeFrom(
          * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1234,8 +1074,6 @@ public java.lang.String getName() { } } /** - * - * *
          * Required. The format will be
          * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -1246,14 +1084,15 @@ public java.lang.String getName() {
          * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1261,8 +1100,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
          * Required. The format will be
          * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -1273,22 +1110,20 @@ public com.google.protobuf.ByteString getNameBytes() {
          * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
          * Required. The format will be
          * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -1299,18 +1134,15 @@ public Builder setName(java.lang.String value) {
          * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
          * Required. The format will be
          * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -1321,33 +1153,29 @@ public Builder clearName() {
          * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList assetNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList assetNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAssetNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assetNames_ = new com.google.protobuf.LazyStringArrayList(assetNames_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1359,15 +1187,13 @@ private void ensureAssetNamesIsMutable() {
          * 
    * * repeated string asset_names = 2; - * * @return A list containing the assetNames. */ - public com.google.protobuf.ProtocolStringList getAssetNamesList() { + public com.google.protobuf.ProtocolStringList + getAssetNamesList() { return assetNames_.getUnmodifiableView(); } /** - * - * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1379,15 +1205,12 @@ public com.google.protobuf.ProtocolStringList getAssetNamesList() {
          * 
    * * repeated string asset_names = 2; - * * @return The count of assetNames. */ public int getAssetNamesCount() { return assetNames_.size(); } /** - * - * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1399,7 +1222,6 @@ public int getAssetNamesCount() {
          * 
    * * repeated string asset_names = 2; - * * @param index The index of the element to return. * @return The assetNames at the given index. */ @@ -1407,8 +1229,6 @@ public java.lang.String getAssetNames(int index) { return assetNames_.get(index); } /** - * - * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1420,16 +1240,14 @@ public java.lang.String getAssetNames(int index) {
          * 
    * * repeated string asset_names = 2; - * * @param index The index of the value to return. * @return The bytes of the assetNames at the given index. */ - public com.google.protobuf.ByteString getAssetNamesBytes(int index) { + public com.google.protobuf.ByteString + getAssetNamesBytes(int index) { return assetNames_.getByteString(index); } /** - * - * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1441,23 +1259,21 @@ public com.google.protobuf.ByteString getAssetNamesBytes(int index) {
          * 
    * * repeated string asset_names = 2; - * * @param index The index to set the value at. * @param value The assetNames to set. * @return This builder for chaining. */ - public Builder setAssetNames(int index, java.lang.String value) { + public Builder setAssetNames( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetNamesIsMutable(); + throw new NullPointerException(); + } + ensureAssetNamesIsMutable(); assetNames_.set(index, value); onChanged(); return this; } /** - * - * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1469,22 +1285,20 @@ public Builder setAssetNames(int index, java.lang.String value) {
          * 
    * * repeated string asset_names = 2; - * * @param value The assetNames to add. * @return This builder for chaining. */ - public Builder addAssetNames(java.lang.String value) { + public Builder addAssetNames( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetNamesIsMutable(); + throw new NullPointerException(); + } + ensureAssetNamesIsMutable(); assetNames_.add(value); onChanged(); return this; } /** - * - * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1496,19 +1310,18 @@ public Builder addAssetNames(java.lang.String value) {
          * 
    * * repeated string asset_names = 2; - * * @param values The assetNames to add. * @return This builder for chaining. */ - public Builder addAllAssetNames(java.lang.Iterable values) { + public Builder addAllAssetNames( + java.lang.Iterable values) { ensureAssetNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, assetNames_); onChanged(); return this; } /** - * - * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1520,7 +1333,6 @@ public Builder addAllAssetNames(java.lang.Iterable values) {
          * 
    * * repeated string asset_names = 2; - * * @return This builder for chaining. */ public Builder clearAssetNames() { @@ -1530,8 +1342,6 @@ public Builder clearAssetNames() { return this; } /** - * - * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1543,33 +1353,29 @@ public Builder clearAssetNames() {
          * 
    * * repeated string asset_names = 2; - * * @param value The bytes of the assetNames to add. * @return This builder for chaining. */ - public Builder addAssetNamesBytes(com.google.protobuf.ByteString value) { + public Builder addAssetNamesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssetNamesIsMutable(); assetNames_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList assetTypes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAssetTypesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { assetTypes_ = new com.google.protobuf.LazyStringArrayList(assetTypes_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1580,15 +1386,13 @@ private void ensureAssetTypesIsMutable() {
          * 
    * * repeated string asset_types = 3; - * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList getAssetTypesList() { + public com.google.protobuf.ProtocolStringList + getAssetTypesList() { return assetTypes_.getUnmodifiableView(); } /** - * - * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1599,15 +1403,12 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() {
          * 
    * * repeated string asset_types = 3; - * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** - * - * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1618,7 +1419,6 @@ public int getAssetTypesCount() {
          * 
    * * repeated string asset_types = 3; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -1626,8 +1426,6 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** - * - * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1638,16 +1436,14 @@ public java.lang.String getAssetTypes(int index) {
          * 
    * * repeated string asset_types = 3; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString + getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } /** - * - * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1658,23 +1454,21 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) {
          * 
    * * repeated string asset_types = 3; - * * @param index The index to set the value at. * @param value The assetTypes to set. * @return This builder for chaining. */ - public Builder setAssetTypes(int index, java.lang.String value) { + public Builder setAssetTypes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.set(index, value); onChanged(); return this; } /** - * - * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1685,22 +1479,20 @@ public Builder setAssetTypes(int index, java.lang.String value) {
          * 
    * * repeated string asset_types = 3; - * * @param value The assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypes(java.lang.String value) { + public Builder addAssetTypes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); return this; } /** - * - * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1711,19 +1503,18 @@ public Builder addAssetTypes(java.lang.String value) {
          * 
    * * repeated string asset_types = 3; - * * @param values The assetTypes to add. * @return This builder for chaining. */ - public Builder addAllAssetTypes(java.lang.Iterable values) { + public Builder addAllAssetTypes( + java.lang.Iterable values) { ensureAssetTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, assetTypes_); onChanged(); return this; } /** - * - * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1734,7 +1525,6 @@ public Builder addAllAssetTypes(java.lang.Iterable values) {
          * 
    * * repeated string asset_types = 3; - * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1744,8 +1534,6 @@ public Builder clearAssetTypes() { return this; } /** - * - * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1756,15 +1544,15 @@ public Builder clearAssetTypes() {
          * 
    * * repeated string asset_types = 3; - * * @param value The bytes of the assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { + public Builder addAssetTypesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); @@ -1773,69 +1561,55 @@ public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { private int contentType_ = 0; /** - * - * *
          * Asset content type. If not specified, no content but the asset name and
          * type will be returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override - public int getContentTypeValue() { + @java.lang.Override public int getContentTypeValue() { return contentType_; } /** - * - * *
          * Asset content type. If not specified, no content but the asset name and
          * type will be returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @param value The enum numeric value on the wire for contentType to set. * @return This builder for chaining. */ public Builder setContentTypeValue(int value) { - + contentType_ = value; onChanged(); return this; } /** - * - * *
          * Asset content type. If not specified, no content but the asset name and
          * type will be returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @return The contentType. */ @java.lang.Override public com.google.cloud.asset.v1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.ContentType result = - com.google.cloud.asset.v1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1.ContentType result = com.google.cloud.asset.v1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1.ContentType.UNRECOGNIZED : result; } /** - * - * *
          * Asset content type. If not specified, no content but the asset name and
          * type will be returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @param value The contentType to set. * @return This builder for chaining. */ @@ -1843,25 +1617,22 @@ public Builder setContentType(com.google.cloud.asset.v1.ContentType value) { if (value == null) { throw new NullPointerException(); } - + contentType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
          * Asset content type. If not specified, no content but the asset name and
          * type will be returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @return This builder for chaining. */ public Builder clearContentType() { - + contentType_ = 0; onChanged(); return this; @@ -1869,61 +1640,42 @@ public Builder clearContentType() { private com.google.cloud.asset.v1.FeedOutputConfig feedOutputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.FeedOutputConfig, - com.google.cloud.asset.v1.FeedOutputConfig.Builder, - com.google.cloud.asset.v1.FeedOutputConfigOrBuilder> - feedOutputConfigBuilder_; + com.google.cloud.asset.v1.FeedOutputConfig, com.google.cloud.asset.v1.FeedOutputConfig.Builder, com.google.cloud.asset.v1.FeedOutputConfigOrBuilder> feedOutputConfigBuilder_; /** - * - * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the feedOutputConfig field is set. */ public boolean hasFeedOutputConfig() { return feedOutputConfigBuilder_ != null || feedOutputConfig_ != null; } /** - * - * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The feedOutputConfig. */ public com.google.cloud.asset.v1.FeedOutputConfig getFeedOutputConfig() { if (feedOutputConfigBuilder_ == null) { - return feedOutputConfig_ == null - ? com.google.cloud.asset.v1.FeedOutputConfig.getDefaultInstance() - : feedOutputConfig_; + return feedOutputConfig_ == null ? com.google.cloud.asset.v1.FeedOutputConfig.getDefaultInstance() : feedOutputConfig_; } else { return feedOutputConfigBuilder_.getMessage(); } } /** - * - * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFeedOutputConfig(com.google.cloud.asset.v1.FeedOutputConfig value) { if (feedOutputConfigBuilder_ == null) { @@ -1939,16 +1691,12 @@ public Builder setFeedOutputConfig(com.google.cloud.asset.v1.FeedOutputConfig va return this; } /** - * - * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFeedOutputConfig( com.google.cloud.asset.v1.FeedOutputConfig.Builder builderForValue) { @@ -1962,24 +1710,18 @@ public Builder setFeedOutputConfig( return this; } /** - * - * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeFeedOutputConfig(com.google.cloud.asset.v1.FeedOutputConfig value) { if (feedOutputConfigBuilder_ == null) { if (feedOutputConfig_ != null) { feedOutputConfig_ = - com.google.cloud.asset.v1.FeedOutputConfig.newBuilder(feedOutputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.FeedOutputConfig.newBuilder(feedOutputConfig_).mergeFrom(value).buildPartial(); } else { feedOutputConfig_ = value; } @@ -1991,16 +1733,12 @@ public Builder mergeFeedOutputConfig(com.google.cloud.asset.v1.FeedOutputConfig return this; } /** - * - * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearFeedOutputConfig() { if (feedOutputConfigBuilder_ == null) { @@ -2014,67 +1752,51 @@ public Builder clearFeedOutputConfig() { return this; } /** - * - * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.asset.v1.FeedOutputConfig.Builder getFeedOutputConfigBuilder() { - + onChanged(); return getFeedOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.asset.v1.FeedOutputConfigOrBuilder getFeedOutputConfigOrBuilder() { if (feedOutputConfigBuilder_ != null) { return feedOutputConfigBuilder_.getMessageOrBuilder(); } else { - return feedOutputConfig_ == null - ? com.google.cloud.asset.v1.FeedOutputConfig.getDefaultInstance() - : feedOutputConfig_; + return feedOutputConfig_ == null ? + com.google.cloud.asset.v1.FeedOutputConfig.getDefaultInstance() : feedOutputConfig_; } } /** - * - * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.FeedOutputConfig, - com.google.cloud.asset.v1.FeedOutputConfig.Builder, - com.google.cloud.asset.v1.FeedOutputConfigOrBuilder> + com.google.cloud.asset.v1.FeedOutputConfig, com.google.cloud.asset.v1.FeedOutputConfig.Builder, com.google.cloud.asset.v1.FeedOutputConfigOrBuilder> getFeedOutputConfigFieldBuilder() { if (feedOutputConfigBuilder_ == null) { - feedOutputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.FeedOutputConfig, - com.google.cloud.asset.v1.FeedOutputConfig.Builder, - com.google.cloud.asset.v1.FeedOutputConfigOrBuilder>( - getFeedOutputConfig(), getParentForChildren(), isClean()); + feedOutputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.FeedOutputConfig, com.google.cloud.asset.v1.FeedOutputConfig.Builder, com.google.cloud.asset.v1.FeedOutputConfigOrBuilder>( + getFeedOutputConfig(), + getParentForChildren(), + isClean()); feedOutputConfig_ = null; } return feedOutputConfigBuilder_; @@ -2082,11 +1804,8 @@ public com.google.cloud.asset.v1.FeedOutputConfigOrBuilder getFeedOutputConfigOr private com.google.type.Expr condition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> - conditionBuilder_; + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> conditionBuilder_; /** - * - * *
          * A condition which determines whether an asset update should be published.
          * If specified, an asset will be returned only when the expression evaluates
    @@ -2102,15 +1821,12 @@ public com.google.cloud.asset.v1.FeedOutputConfigOrBuilder getFeedOutputConfigOr
          * 
    * * .google.type.Expr condition = 6; - * * @return Whether the condition field is set. */ public boolean hasCondition() { return conditionBuilder_ != null || condition_ != null; } /** - * - * *
          * A condition which determines whether an asset update should be published.
          * If specified, an asset will be returned only when the expression evaluates
    @@ -2126,7 +1842,6 @@ public boolean hasCondition() {
          * 
    * * .google.type.Expr condition = 6; - * * @return The condition. */ public com.google.type.Expr getCondition() { @@ -2137,8 +1852,6 @@ public com.google.type.Expr getCondition() { } } /** - * - * *
          * A condition which determines whether an asset update should be published.
          * If specified, an asset will be returned only when the expression evaluates
    @@ -2169,8 +1882,6 @@ public Builder setCondition(com.google.type.Expr value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A condition which determines whether an asset update should be published.
          * If specified, an asset will be returned only when the expression evaluates
    @@ -2187,7 +1898,8 @@ public Builder setCondition(com.google.type.Expr value) {
          *
          * .google.type.Expr condition = 6;
          */
    -    public Builder setCondition(com.google.type.Expr.Builder builderForValue) {
    +    public Builder setCondition(
    +        com.google.type.Expr.Builder builderForValue) {
           if (conditionBuilder_ == null) {
             condition_ = builderForValue.build();
             onChanged();
    @@ -2198,8 +1910,6 @@ public Builder setCondition(com.google.type.Expr.Builder builderForValue) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A condition which determines whether an asset update should be published.
          * If specified, an asset will be returned only when the expression evaluates
    @@ -2219,7 +1929,8 @@ public Builder setCondition(com.google.type.Expr.Builder builderForValue) {
         public Builder mergeCondition(com.google.type.Expr value) {
           if (conditionBuilder_ == null) {
             if (condition_ != null) {
    -          condition_ = com.google.type.Expr.newBuilder(condition_).mergeFrom(value).buildPartial();
    +          condition_ =
    +            com.google.type.Expr.newBuilder(condition_).mergeFrom(value).buildPartial();
             } else {
               condition_ = value;
             }
    @@ -2231,8 +1942,6 @@ public Builder mergeCondition(com.google.type.Expr value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A condition which determines whether an asset update should be published.
          * If specified, an asset will be returned only when the expression evaluates
    @@ -2261,8 +1970,6 @@ public Builder clearCondition() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A condition which determines whether an asset update should be published.
          * If specified, an asset will be returned only when the expression evaluates
    @@ -2280,13 +1987,11 @@ public Builder clearCondition() {
          * .google.type.Expr condition = 6;
          */
         public com.google.type.Expr.Builder getConditionBuilder() {
    -
    +      
           onChanged();
           return getConditionFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * A condition which determines whether an asset update should be published.
          * If specified, an asset will be returned only when the expression evaluates
    @@ -2307,12 +2012,11 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
           if (conditionBuilder_ != null) {
             return conditionBuilder_.getMessageOrBuilder();
           } else {
    -        return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_;
    +        return condition_ == null ?
    +            com.google.type.Expr.getDefaultInstance() : condition_;
           }
         }
         /**
    -     *
    -     *
          * 
          * A condition which determines whether an asset update should be published.
          * If specified, an asset will be returned only when the expression evaluates
    @@ -2330,30 +2034,27 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
          * .google.type.Expr condition = 6;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>
    +        com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> 
             getConditionFieldBuilder() {
           if (conditionBuilder_ == null) {
    -        conditionBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
    -                getCondition(), getParentForChildren(), isClean());
    +        conditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
    +                getCondition(),
    +                getParentForChildren(),
    +                isClean());
             condition_ = null;
           }
           return conditionBuilder_;
         }
     
    -    private com.google.protobuf.LazyStringList relationshipTypes_ =
    -        com.google.protobuf.LazyStringArrayList.EMPTY;
    -
    +    private com.google.protobuf.LazyStringList relationshipTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
         private void ensureRelationshipTypesIsMutable() {
           if (!((bitField0_ & 0x00000004) != 0)) {
             relationshipTypes_ = new com.google.protobuf.LazyStringArrayList(relationshipTypes_);
             bitField0_ |= 0x00000004;
    -      }
    +       }
         }
         /**
    -     *
    -     *
          * 
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2374,15 +2075,13 @@ private void ensureRelationshipTypesIsMutable() {
          * 
    * * repeated string relationship_types = 7; - * * @return A list containing the relationshipTypes. */ - public com.google.protobuf.ProtocolStringList getRelationshipTypesList() { + public com.google.protobuf.ProtocolStringList + getRelationshipTypesList() { return relationshipTypes_.getUnmodifiableView(); } /** - * - * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2403,15 +2102,12 @@ public com.google.protobuf.ProtocolStringList getRelationshipTypesList() {
          * 
    * * repeated string relationship_types = 7; - * * @return The count of relationshipTypes. */ public int getRelationshipTypesCount() { return relationshipTypes_.size(); } /** - * - * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2432,7 +2128,6 @@ public int getRelationshipTypesCount() {
          * 
    * * repeated string relationship_types = 7; - * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -2440,8 +2135,6 @@ public java.lang.String getRelationshipTypes(int index) { return relationshipTypes_.get(index); } /** - * - * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2462,16 +2155,14 @@ public java.lang.String getRelationshipTypes(int index) {
          * 
    * * repeated string relationship_types = 7; - * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) { + public com.google.protobuf.ByteString + getRelationshipTypesBytes(int index) { return relationshipTypes_.getByteString(index); } /** - * - * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2492,23 +2183,21 @@ public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) {
          * 
    * * repeated string relationship_types = 7; - * * @param index The index to set the value at. * @param value The relationshipTypes to set. * @return This builder for chaining. */ - public Builder setRelationshipTypes(int index, java.lang.String value) { + public Builder setRelationshipTypes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRelationshipTypesIsMutable(); + throw new NullPointerException(); + } + ensureRelationshipTypesIsMutable(); relationshipTypes_.set(index, value); onChanged(); return this; } /** - * - * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2529,22 +2218,20 @@ public Builder setRelationshipTypes(int index, java.lang.String value) {
          * 
    * * repeated string relationship_types = 7; - * * @param value The relationshipTypes to add. * @return This builder for chaining. */ - public Builder addRelationshipTypes(java.lang.String value) { + public Builder addRelationshipTypes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRelationshipTypesIsMutable(); + throw new NullPointerException(); + } + ensureRelationshipTypesIsMutable(); relationshipTypes_.add(value); onChanged(); return this; } /** - * - * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2565,19 +2252,18 @@ public Builder addRelationshipTypes(java.lang.String value) {
          * 
    * * repeated string relationship_types = 7; - * * @param values The relationshipTypes to add. * @return This builder for chaining. */ - public Builder addAllRelationshipTypes(java.lang.Iterable values) { + public Builder addAllRelationshipTypes( + java.lang.Iterable values) { ensureRelationshipTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relationshipTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, relationshipTypes_); onChanged(); return this; } /** - * - * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2598,7 +2284,6 @@ public Builder addAllRelationshipTypes(java.lang.Iterable valu
          * 
    * * repeated string relationship_types = 7; - * * @return This builder for chaining. */ public Builder clearRelationshipTypes() { @@ -2608,8 +2293,6 @@ public Builder clearRelationshipTypes() { return this; } /** - * - * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2630,23 +2313,23 @@ public Builder clearRelationshipTypes() {
          * 
    * * repeated string relationship_types = 7; - * * @param value The bytes of the relationshipTypes to add. * @return This builder for chaining. */ - public Builder addRelationshipTypesBytes(com.google.protobuf.ByteString value) { + public Builder addRelationshipTypesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureRelationshipTypesIsMutable(); relationshipTypes_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2656,12 +2339,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.Feed) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.Feed) private static final com.google.cloud.asset.v1.Feed DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.Feed(); } @@ -2670,16 +2353,27 @@ public static com.google.cloud.asset.v1.Feed getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Feed parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Feed(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feed parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2694,4 +2388,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.Feed getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedName.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedName.java similarity index 100% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedName.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedName.java diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java similarity index 89% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java index 3a9a8f7e2632..1086910dc923 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface FeedOrBuilder - extends +public interface FeedOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.Feed) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The format will be
        * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -36,13 +18,10 @@ public interface FeedOrBuilder
        * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
        * Required. The format will be
        * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -53,14 +32,12 @@ public interface FeedOrBuilder
        * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -72,13 +49,11 @@ public interface FeedOrBuilder
        * 
    * * repeated string asset_names = 2; - * * @return A list containing the assetNames. */ - java.util.List getAssetNamesList(); + java.util.List + getAssetNamesList(); /** - * - * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -90,13 +65,10 @@ public interface FeedOrBuilder
        * 
    * * repeated string asset_names = 2; - * * @return The count of assetNames. */ int getAssetNamesCount(); /** - * - * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -108,14 +80,11 @@ public interface FeedOrBuilder
        * 
    * * repeated string asset_names = 2; - * * @param index The index of the element to return. * @return The assetNames at the given index. */ java.lang.String getAssetNames(int index); /** - * - * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -127,15 +96,13 @@ public interface FeedOrBuilder
        * 
    * * repeated string asset_names = 2; - * * @param index The index of the value to return. * @return The bytes of the assetNames at the given index. */ - com.google.protobuf.ByteString getAssetNamesBytes(int index); + com.google.protobuf.ByteString + getAssetNamesBytes(int index); /** - * - * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -146,13 +113,11 @@ public interface FeedOrBuilder
        * 
    * * repeated string asset_types = 3; - * * @return A list containing the assetTypes. */ - java.util.List getAssetTypesList(); + java.util.List + getAssetTypesList(); /** - * - * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -163,13 +128,10 @@ public interface FeedOrBuilder
        * 
    * * repeated string asset_types = 3; - * * @return The count of assetTypes. */ int getAssetTypesCount(); /** - * - * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -180,14 +142,11 @@ public interface FeedOrBuilder
        * 
    * * repeated string asset_types = 3; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ java.lang.String getAssetTypes(int index); /** - * - * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -198,86 +157,64 @@ public interface FeedOrBuilder
        * 
    * * repeated string asset_types = 3; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - com.google.protobuf.ByteString getAssetTypesBytes(int index); + com.google.protobuf.ByteString + getAssetTypesBytes(int index); /** - * - * *
        * Asset content type. If not specified, no content but the asset name and
        * type will be returned.
        * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @return The enum numeric value on the wire for contentType. */ int getContentTypeValue(); /** - * - * *
        * Asset content type. If not specified, no content but the asset name and
        * type will be returned.
        * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @return The contentType. */ com.google.cloud.asset.v1.ContentType getContentType(); /** - * - * *
        * Required. Feed output configuration defining where the asset updates are
        * published to.
        * 
    * - * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the feedOutputConfig field is set. */ boolean hasFeedOutputConfig(); /** - * - * *
        * Required. Feed output configuration defining where the asset updates are
        * published to.
        * 
    * - * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The feedOutputConfig. */ com.google.cloud.asset.v1.FeedOutputConfig getFeedOutputConfig(); /** - * - * *
        * Required. Feed output configuration defining where the asset updates are
        * published to.
        * 
    * - * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.asset.v1.FeedOutputConfigOrBuilder getFeedOutputConfigOrBuilder(); /** - * - * *
        * A condition which determines whether an asset update should be published.
        * If specified, an asset will be returned only when the expression evaluates
    @@ -293,13 +230,10 @@ public interface FeedOrBuilder
        * 
    * * .google.type.Expr condition = 6; - * * @return Whether the condition field is set. */ boolean hasCondition(); /** - * - * *
        * A condition which determines whether an asset update should be published.
        * If specified, an asset will be returned only when the expression evaluates
    @@ -315,13 +249,10 @@ public interface FeedOrBuilder
        * 
    * * .google.type.Expr condition = 6; - * * @return The condition. */ com.google.type.Expr getCondition(); /** - * - * *
        * A condition which determines whether an asset update should be published.
        * If specified, an asset will be returned only when the expression evaluates
    @@ -341,8 +272,6 @@ public interface FeedOrBuilder
       com.google.type.ExprOrBuilder getConditionOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -363,13 +292,11 @@ public interface FeedOrBuilder
        * 
    * * repeated string relationship_types = 7; - * * @return A list containing the relationshipTypes. */ - java.util.List getRelationshipTypesList(); + java.util.List + getRelationshipTypesList(); /** - * - * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -390,13 +317,10 @@ public interface FeedOrBuilder
        * 
    * * repeated string relationship_types = 7; - * * @return The count of relationshipTypes. */ int getRelationshipTypesCount(); /** - * - * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -417,14 +341,11 @@ public interface FeedOrBuilder
        * 
    * * repeated string relationship_types = 7; - * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ java.lang.String getRelationshipTypes(int index); /** - * - * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -445,9 +366,9 @@ public interface FeedOrBuilder
        * 
    * * repeated string relationship_types = 7; - * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - com.google.protobuf.ByteString getRelationshipTypesBytes(int index); + com.google.protobuf.ByteString + getRelationshipTypesBytes(int index); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java similarity index 63% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java index b117cbc08f7b..03a85c5650c4 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java @@ -1,137 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * Output configuration for asset feed destination.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.FeedOutputConfig} */ -public final class FeedOutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FeedOutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.FeedOutputConfig) FeedOutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FeedOutputConfig.newBuilder() to construct. private FeedOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private FeedOutputConfig() {} + private FeedOutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FeedOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private FeedOutputConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.asset.v1.PubsubDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = - ((com.google.cloud.asset.v1.PubsubDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.asset.v1.PubsubDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.asset.v1.PubsubDestination) destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 1; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_FeedOutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_FeedOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.FeedOutputConfig.class, - com.google.cloud.asset.v1.FeedOutputConfig.Builder.class); + com.google.cloud.asset.v1.FeedOutputConfig.class, com.google.cloud.asset.v1.FeedOutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PUBSUB_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -147,34 +70,29 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return PUBSUB_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return PUBSUB_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int PUBSUB_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
        * Destination on Pub/Sub.
        * 
    * * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; - * * @return Whether the pubsubDestination field is set. */ @java.lang.Override @@ -182,26 +100,21 @@ public boolean hasPubsubDestination() { return destinationCase_ == 1; } /** - * - * *
        * Destination on Pub/Sub.
        * 
    * * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; - * * @return The pubsubDestination. */ @java.lang.Override public com.google.cloud.asset.v1.PubsubDestination getPubsubDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1.PubsubDestination) destination_; + return (com.google.cloud.asset.v1.PubsubDestination) destination_; } return com.google.cloud.asset.v1.PubsubDestination.getDefaultInstance(); } /** - * - * *
        * Destination on Pub/Sub.
        * 
    @@ -211,13 +124,12 @@ public com.google.cloud.asset.v1.PubsubDestination getPubsubDestination() { @java.lang.Override public com.google.cloud.asset.v1.PubsubDestinationOrBuilder getPubsubDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1.PubsubDestination) destination_; + return (com.google.cloud.asset.v1.PubsubDestination) destination_; } return com.google.cloud.asset.v1.PubsubDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,11 +141,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.asset.v1.PubsubDestination) destination_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -243,11 +156,10 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.asset.v1.PubsubDestination) destination_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.asset.v1.PubsubDestination) destination_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -255,23 +167,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.FeedOutputConfig)) { return super.equals(obj); } - com.google.cloud.asset.v1.FeedOutputConfig other = - (com.google.cloud.asset.v1.FeedOutputConfig) obj; + com.google.cloud.asset.v1.FeedOutputConfig other = (com.google.cloud.asset.v1.FeedOutputConfig) obj; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getPubsubDestination().equals(other.getPubsubDestination())) return false; + if (!getPubsubDestination() + .equals(other.getPubsubDestination())) return false; break; case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -290,160 +202,150 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.FeedOutputConfig 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.asset.v1.FeedOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.FeedOutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.FeedOutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.FeedOutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.FeedOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Output configuration for asset feed destination.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.FeedOutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.FeedOutputConfig) com.google.cloud.asset.v1.FeedOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_FeedOutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_FeedOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.FeedOutputConfig.class, - com.google.cloud.asset.v1.FeedOutputConfig.Builder.class); + com.google.cloud.asset.v1.FeedOutputConfig.class, com.google.cloud.asset.v1.FeedOutputConfig.Builder.class); } // Construct using com.google.cloud.asset.v1.FeedOutputConfig.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @java.lang.Override public Builder clear() { super.clear(); + if (pubsubDestinationBuilder_ != null) { + pubsubDestinationBuilder_.clear(); + } destinationCase_ = 0; destination_ = null; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor; } @java.lang.Override @@ -462,8 +364,7 @@ public com.google.cloud.asset.v1.FeedOutputConfig build() { @java.lang.Override public com.google.cloud.asset.v1.FeedOutputConfig buildPartial() { - com.google.cloud.asset.v1.FeedOutputConfig result = - new com.google.cloud.asset.v1.FeedOutputConfig(this); + com.google.cloud.asset.v1.FeedOutputConfig result = new com.google.cloud.asset.v1.FeedOutputConfig(this); if (destinationCase_ == 1) { if (pubsubDestinationBuilder_ == null) { result.destination_ = destination_; @@ -480,39 +381,38 @@ public com.google.cloud.asset.v1.FeedOutputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.FeedOutputConfig) { - return mergeFrom((com.google.cloud.asset.v1.FeedOutputConfig) other); + return mergeFrom((com.google.cloud.asset.v1.FeedOutputConfig)other); } else { super.mergeFrom(other); return this; @@ -522,17 +422,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.asset.v1.FeedOutputConfig other) { if (other == com.google.cloud.asset.v1.FeedOutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case PUBSUB_DESTINATION: - { - mergePubsubDestination(other.getPubsubDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case PUBSUB_DESTINATION: { + mergePubsubDestination(other.getPubsubDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -547,25 +445,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.FeedOutputConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPubsubDestinationFieldBuilder().getBuilder(), + extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.FeedOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -575,20 +493,15 @@ public Builder clearDestination() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.PubsubDestination, - com.google.cloud.asset.v1.PubsubDestination.Builder, - com.google.cloud.asset.v1.PubsubDestinationOrBuilder> - pubsubDestinationBuilder_; + com.google.cloud.asset.v1.PubsubDestination, com.google.cloud.asset.v1.PubsubDestination.Builder, com.google.cloud.asset.v1.PubsubDestinationOrBuilder> pubsubDestinationBuilder_; /** - * - * *
          * Destination on Pub/Sub.
          * 
    * * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; - * * @return Whether the pubsubDestination field is set. */ @java.lang.Override @@ -596,14 +509,11 @@ public boolean hasPubsubDestination() { return destinationCase_ == 1; } /** - * - * *
          * Destination on Pub/Sub.
          * 
    * * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; - * * @return The pubsubDestination. */ @java.lang.Override @@ -621,8 +531,6 @@ public com.google.cloud.asset.v1.PubsubDestination getPubsubDestination() { } } /** - * - * *
          * Destination on Pub/Sub.
          * 
    @@ -643,8 +551,6 @@ public Builder setPubsubDestination(com.google.cloud.asset.v1.PubsubDestination return this; } /** - * - * *
          * Destination on Pub/Sub.
          * 
    @@ -663,8 +569,6 @@ public Builder setPubsubDestination( return this; } /** - * - * *
          * Destination on Pub/Sub.
          * 
    @@ -673,13 +577,10 @@ public Builder setPubsubDestination( */ public Builder mergePubsubDestination(com.google.cloud.asset.v1.PubsubDestination value) { if (pubsubDestinationBuilder_ == null) { - if (destinationCase_ == 1 - && destination_ != com.google.cloud.asset.v1.PubsubDestination.getDefaultInstance()) { - destination_ = - com.google.cloud.asset.v1.PubsubDestination.newBuilder( - (com.google.cloud.asset.v1.PubsubDestination) destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 1 && + destination_ != com.google.cloud.asset.v1.PubsubDestination.getDefaultInstance()) { + destination_ = com.google.cloud.asset.v1.PubsubDestination.newBuilder((com.google.cloud.asset.v1.PubsubDestination) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -695,8 +596,6 @@ public Builder mergePubsubDestination(com.google.cloud.asset.v1.PubsubDestinatio return this; } /** - * - * *
          * Destination on Pub/Sub.
          * 
    @@ -720,8 +619,6 @@ public Builder clearPubsubDestination() { return this; } /** - * - * *
          * Destination on Pub/Sub.
          * 
    @@ -732,8 +629,6 @@ public com.google.cloud.asset.v1.PubsubDestination.Builder getPubsubDestinationB return getPubsubDestinationFieldBuilder().getBuilder(); } /** - * - * *
          * Destination on Pub/Sub.
          * 
    @@ -752,8 +647,6 @@ public com.google.cloud.asset.v1.PubsubDestinationOrBuilder getPubsubDestination } } /** - * - * *
          * Destination on Pub/Sub.
          * 
    @@ -761,32 +654,26 @@ public com.google.cloud.asset.v1.PubsubDestinationOrBuilder getPubsubDestination * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.PubsubDestination, - com.google.cloud.asset.v1.PubsubDestination.Builder, - com.google.cloud.asset.v1.PubsubDestinationOrBuilder> + com.google.cloud.asset.v1.PubsubDestination, com.google.cloud.asset.v1.PubsubDestination.Builder, com.google.cloud.asset.v1.PubsubDestinationOrBuilder> getPubsubDestinationFieldBuilder() { if (pubsubDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.asset.v1.PubsubDestination.getDefaultInstance(); } - pubsubDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.PubsubDestination, - com.google.cloud.asset.v1.PubsubDestination.Builder, - com.google.cloud.asset.v1.PubsubDestinationOrBuilder>( + pubsubDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.PubsubDestination, com.google.cloud.asset.v1.PubsubDestination.Builder, com.google.cloud.asset.v1.PubsubDestinationOrBuilder>( (com.google.cloud.asset.v1.PubsubDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 1; - onChanged(); - ; + onChanged();; return pubsubDestinationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -796,12 +683,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.FeedOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.FeedOutputConfig) private static final com.google.cloud.asset.v1.FeedOutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.FeedOutputConfig(); } @@ -810,16 +697,27 @@ public static com.google.cloud.asset.v1.FeedOutputConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeedOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeedOutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeedOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -834,4 +732,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.FeedOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfigOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfigOrBuilder.java similarity index 61% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfigOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfigOrBuilder.java index 4d58fa3e40f0..ac8bae6335c6 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfigOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfigOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface FeedOutputConfigOrBuilder - extends +public interface FeedOutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.FeedOutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Destination on Pub/Sub.
        * 
    * * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; - * * @return Whether the pubsubDestination field is set. */ boolean hasPubsubDestination(); /** - * - * *
        * Destination on Pub/Sub.
        * 
    * * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; - * * @return The pubsubDestination. */ com.google.cloud.asset.v1.PubsubDestination getPubsubDestination(); /** - * - * *
        * Destination on Pub/Sub.
        * 
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FolderName.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FolderName.java similarity index 100% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FolderName.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FolderName.java diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestination.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestination.java similarity index 73% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestination.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestination.java index 1dce75f52d77..423cd85224b0 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestination.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestination.java @@ -1,135 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * A Cloud Storage location.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.GcsDestination} */ -public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.GcsDestination) GcsDestinationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private GcsDestination() {} + private GcsDestination() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private GcsDestination( - 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(); - objectUriCase_ = 1; - objectUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - objectUriCase_ = 2; - objectUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_GcsDestination_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.GcsDestination.class, - com.google.cloud.asset.v1.GcsDestination.Builder.class); + com.google.cloud.asset.v1.GcsDestination.class, com.google.cloud.asset.v1.GcsDestination.Builder.class); } private int objectUriCase_ = 0; private java.lang.Object objectUri_; - public enum ObjectUriCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { URI(1), URI_PREFIX(2), OBJECTURI_NOT_SET(0); private final int value; - private ObjectUriCase(int value) { this.value = value; } @@ -145,30 +71,25 @@ public static ObjectUriCase valueOf(int value) { public static ObjectUriCase forNumber(int value) { switch (value) { - case 1: - return URI; - case 2: - return URI_PREFIX; - case 0: - return OBJECTURI_NOT_SET; - default: - return null; + case 1: return URI; + case 2: return URI_PREFIX; + case 0: return OBJECTURI_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ObjectUriCase getObjectUriCase() { - return ObjectUriCase.forNumber(objectUriCase_); + public ObjectUriCase + getObjectUriCase() { + return ObjectUriCase.forNumber( + objectUriCase_); } public static final int URI_FIELD_NUMBER = 1; /** - * - * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -181,15 +102,12 @@ public ObjectUriCase getObjectUriCase() {
        * 
    * * string uri = 1; - * * @return Whether the uri field is set. */ public boolean hasUri() { return objectUriCase_ == 1; } /** - * - * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -202,7 +120,6 @@ public boolean hasUri() {
        * 
    * * string uri = 1; - * * @return The uri. */ public java.lang.String getUri() { @@ -213,7 +130,8 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (objectUriCase_ == 1) { objectUri_ = s; @@ -222,8 +140,6 @@ public java.lang.String getUri() { } } /** - * - * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -236,17 +152,18 @@ public java.lang.String getUri() {
        * 
    * * string uri = 1; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = ""; if (objectUriCase_ == 1) { ref = objectUri_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (objectUriCase_ == 1) { objectUri_ = b; } @@ -258,8 +175,6 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int URI_PREFIX_FIELD_NUMBER = 2; /** - * - * *
        * The uri prefix of all generated Cloud Storage objects. Example:
        * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -273,15 +188,12 @@ public com.google.protobuf.ByteString getUriBytes() {
        * 
    * * string uri_prefix = 2; - * * @return Whether the uriPrefix field is set. */ public boolean hasUriPrefix() { return objectUriCase_ == 2; } /** - * - * *
        * The uri prefix of all generated Cloud Storage objects. Example:
        * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -295,7 +207,6 @@ public boolean hasUriPrefix() {
        * 
    * * string uri_prefix = 2; - * * @return The uriPrefix. */ public java.lang.String getUriPrefix() { @@ -306,7 +217,8 @@ public java.lang.String getUriPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (objectUriCase_ == 2) { objectUri_ = s; @@ -315,8 +227,6 @@ public java.lang.String getUriPrefix() { } } /** - * - * *
        * The uri prefix of all generated Cloud Storage objects. Example:
        * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -330,17 +240,18 @@ public java.lang.String getUriPrefix() {
        * 
    * * string uri_prefix = 2; - * * @return The bytes for uriPrefix. */ - public com.google.protobuf.ByteString getUriPrefixBytes() { + public com.google.protobuf.ByteString + getUriPrefixBytes() { java.lang.Object ref = ""; if (objectUriCase_ == 2) { ref = objectUri_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (objectUriCase_ == 2) { objectUri_ = b; } @@ -351,7 +262,6 @@ public com.google.protobuf.ByteString getUriPrefixBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -363,14 +273,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (objectUriCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, objectUri_); } if (objectUriCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, objectUri_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -385,7 +296,7 @@ public int getSerializedSize() { if (objectUriCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, objectUri_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -393,7 +304,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.GcsDestination)) { return super.equals(obj); @@ -403,15 +314,17 @@ public boolean equals(final java.lang.Object obj) { if (!getObjectUriCase().equals(other.getObjectUriCase())) return false; switch (objectUriCase_) { case 1: - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; break; case 2: - if (!getUriPrefix().equals(other.getUriPrefix())) return false; + if (!getUriPrefix() + .equals(other.getUriPrefix())) return false; break; case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -434,148 +347,135 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.GcsDestination parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.GcsDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.GcsDestination parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.GcsDestination 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.asset.v1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.GcsDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.GcsDestination parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.GcsDestination parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.GcsDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.GcsDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * A Cloud Storage location.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.GcsDestination} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.GcsDestination) com.google.cloud.asset.v1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_GcsDestination_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.GcsDestination.class, - com.google.cloud.asset.v1.GcsDestination.Builder.class); + com.google.cloud.asset.v1.GcsDestination.class, com.google.cloud.asset.v1.GcsDestination.Builder.class); } // Construct using com.google.cloud.asset.v1.GcsDestination.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -585,9 +485,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GcsDestination_descriptor; } @java.lang.Override @@ -606,8 +506,7 @@ public com.google.cloud.asset.v1.GcsDestination build() { @java.lang.Override public com.google.cloud.asset.v1.GcsDestination buildPartial() { - com.google.cloud.asset.v1.GcsDestination result = - new com.google.cloud.asset.v1.GcsDestination(this); + com.google.cloud.asset.v1.GcsDestination result = new com.google.cloud.asset.v1.GcsDestination(this); if (objectUriCase_ == 1) { result.objectUri_ = objectUri_; } @@ -623,39 +522,38 @@ public com.google.cloud.asset.v1.GcsDestination buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.GcsDestination) { - return mergeFrom((com.google.cloud.asset.v1.GcsDestination) other); + return mergeFrom((com.google.cloud.asset.v1.GcsDestination)other); } else { super.mergeFrom(other); return this; @@ -665,26 +563,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.asset.v1.GcsDestination other) { if (other == com.google.cloud.asset.v1.GcsDestination.getDefaultInstance()) return this; switch (other.getObjectUriCase()) { - case URI: - { - objectUriCase_ = 1; - objectUri_ = other.objectUri_; - onChanged(); - break; - } - case URI_PREFIX: - { - objectUriCase_ = 2; - objectUri_ = other.objectUri_; - onChanged(); - break; - } - case OBJECTURI_NOT_SET: - { - break; - } + case URI: { + objectUriCase_ = 1; + objectUri_ = other.objectUri_; + onChanged(); + break; + } + case URI_PREFIX: { + objectUriCase_ = 2; + objectUri_ = other.objectUri_; + onChanged(); + break; + } + case OBJECTURI_NOT_SET: { + break; + } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -699,25 +594,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.GcsDestination parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + objectUriCase_ = 1; + objectUri_ = s; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + objectUriCase_ = 2; + objectUri_ = s; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.GcsDestination) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int objectUriCase_ = 0; private java.lang.Object objectUri_; - - public ObjectUriCase getObjectUriCase() { - return ObjectUriCase.forNumber(objectUriCase_); + public ObjectUriCase + getObjectUriCase() { + return ObjectUriCase.forNumber( + objectUriCase_); } public Builder clearObjectUri() { @@ -727,9 +647,8 @@ public Builder clearObjectUri() { return this; } + /** - * - * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -742,7 +661,6 @@ public Builder clearObjectUri() {
          * 
    * * string uri = 1; - * * @return Whether the uri field is set. */ @java.lang.Override @@ -750,8 +668,6 @@ public boolean hasUri() { return objectUriCase_ == 1; } /** - * - * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -764,7 +680,6 @@ public boolean hasUri() {
          * 
    * * string uri = 1; - * * @return The uri. */ @java.lang.Override @@ -774,7 +689,8 @@ public java.lang.String getUri() { ref = objectUri_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (objectUriCase_ == 1) { objectUri_ = s; @@ -785,8 +701,6 @@ public java.lang.String getUri() { } } /** - * - * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -799,18 +713,19 @@ public java.lang.String getUri() {
          * 
    * * string uri = 1; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = ""; if (objectUriCase_ == 1) { ref = objectUri_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (objectUriCase_ == 1) { objectUri_ = b; } @@ -820,8 +735,6 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -834,22 +747,20 @@ public com.google.protobuf.ByteString getUriBytes() {
          * 
    * * string uri = 1; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - objectUriCase_ = 1; + throw new NullPointerException(); + } + objectUriCase_ = 1; objectUri_ = value; onChanged(); return this; } /** - * - * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -862,7 +773,6 @@ public Builder setUri(java.lang.String value) {
          * 
    * * string uri = 1; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -874,8 +784,6 @@ public Builder clearUri() { return this; } /** - * - * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -888,15 +796,15 @@ public Builder clearUri() {
          * 
    * * string uri = 1; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); objectUriCase_ = 1; objectUri_ = value; onChanged(); @@ -904,8 +812,6 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { } /** - * - * *
          * The uri prefix of all generated Cloud Storage objects. Example:
          * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -919,7 +825,6 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
          * 
    * * string uri_prefix = 2; - * * @return Whether the uriPrefix field is set. */ @java.lang.Override @@ -927,8 +832,6 @@ public boolean hasUriPrefix() { return objectUriCase_ == 2; } /** - * - * *
          * The uri prefix of all generated Cloud Storage objects. Example:
          * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -942,7 +845,6 @@ public boolean hasUriPrefix() {
          * 
    * * string uri_prefix = 2; - * * @return The uriPrefix. */ @java.lang.Override @@ -952,7 +854,8 @@ public java.lang.String getUriPrefix() { ref = objectUri_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (objectUriCase_ == 2) { objectUri_ = s; @@ -963,8 +866,6 @@ public java.lang.String getUriPrefix() { } } /** - * - * *
          * The uri prefix of all generated Cloud Storage objects. Example:
          * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -978,18 +879,19 @@ public java.lang.String getUriPrefix() {
          * 
    * * string uri_prefix = 2; - * * @return The bytes for uriPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString getUriPrefixBytes() { + public com.google.protobuf.ByteString + getUriPrefixBytes() { java.lang.Object ref = ""; if (objectUriCase_ == 2) { ref = objectUri_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (objectUriCase_ == 2) { objectUri_ = b; } @@ -999,8 +901,6 @@ public com.google.protobuf.ByteString getUriPrefixBytes() { } } /** - * - * *
          * The uri prefix of all generated Cloud Storage objects. Example:
          * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -1014,22 +914,20 @@ public com.google.protobuf.ByteString getUriPrefixBytes() {
          * 
    * * string uri_prefix = 2; - * * @param value The uriPrefix to set. * @return This builder for chaining. */ - public Builder setUriPrefix(java.lang.String value) { + public Builder setUriPrefix( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - objectUriCase_ = 2; + throw new NullPointerException(); + } + objectUriCase_ = 2; objectUri_ = value; onChanged(); return this; } /** - * - * *
          * The uri prefix of all generated Cloud Storage objects. Example:
          * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -1043,7 +941,6 @@ public Builder setUriPrefix(java.lang.String value) {
          * 
    * * string uri_prefix = 2; - * * @return This builder for chaining. */ public Builder clearUriPrefix() { @@ -1055,8 +952,6 @@ public Builder clearUriPrefix() { return this; } /** - * - * *
          * The uri prefix of all generated Cloud Storage objects. Example:
          * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -1070,23 +965,23 @@ public Builder clearUriPrefix() {
          * 
    * * string uri_prefix = 2; - * * @param value The bytes for uriPrefix to set. * @return This builder for chaining. */ - public Builder setUriPrefixBytes(com.google.protobuf.ByteString value) { + public Builder setUriPrefixBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); objectUriCase_ = 2; objectUri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1096,12 +991,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.GcsDestination) private static final com.google.cloud.asset.v1.GcsDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.GcsDestination(); } @@ -1110,16 +1005,27 @@ public static com.google.cloud.asset.v1.GcsDestination getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1134,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestinationOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestinationOrBuilder.java similarity index 84% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestinationOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestinationOrBuilder.java index 99805d341767..7fef46dc7c32 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestinationOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestinationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface GcsDestinationOrBuilder - extends +public interface GcsDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -38,13 +20,10 @@ public interface GcsDestinationOrBuilder
        * 
    * * string uri = 1; - * * @return Whether the uri field is set. */ boolean hasUri(); /** - * - * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -57,13 +36,10 @@ public interface GcsDestinationOrBuilder
        * 
    * * string uri = 1; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -76,14 +52,12 @@ public interface GcsDestinationOrBuilder
        * 
    * * string uri = 1; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
        * The uri prefix of all generated Cloud Storage objects. Example:
        * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -97,13 +71,10 @@ public interface GcsDestinationOrBuilder
        * 
    * * string uri_prefix = 2; - * * @return Whether the uriPrefix field is set. */ boolean hasUriPrefix(); /** - * - * *
        * The uri prefix of all generated Cloud Storage objects. Example:
        * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -117,13 +88,10 @@ public interface GcsDestinationOrBuilder
        * 
    * * string uri_prefix = 2; - * * @return The uriPrefix. */ java.lang.String getUriPrefix(); /** - * - * *
        * The uri prefix of all generated Cloud Storage objects. Example:
        * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -137,10 +105,10 @@ public interface GcsDestinationOrBuilder
        * 
    * * string uri_prefix = 2; - * * @return The bytes for uriPrefix. */ - com.google.protobuf.ByteString getUriPrefixBytes(); + com.google.protobuf.ByteString + getUriPrefixBytes(); public com.google.cloud.asset.v1.GcsDestination.ObjectUriCase getObjectUriCase(); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResult.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResult.java similarity index 63% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResult.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResult.java index 0aa88585c5c0..9e620e9dc0ed 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResult.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResult.java @@ -1,167 +1,87 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * A Cloud Storage output result.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.GcsOutputResult} */ -public final class GcsOutputResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsOutputResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.GcsOutputResult) GcsOutputResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsOutputResult.newBuilder() to construct. private GcsOutputResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsOutputResult() { uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsOutputResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private GcsOutputResult( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - uris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - uris_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - uris_ = uris_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_GcsOutputResult_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GcsOutputResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.GcsOutputResult.class, - com.google.cloud.asset.v1.GcsOutputResult.Builder.class); + com.google.cloud.asset.v1.GcsOutputResult.class, com.google.cloud.asset.v1.GcsOutputResult.Builder.class); } public static final int URIS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList uris_; /** - * - * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; - * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList getUrisList() { + public com.google.protobuf.ProtocolStringList + getUrisList() { return uris_; } /** - * - * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; - * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** - * - * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; - * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -169,24 +89,21 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** - * - * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString getUrisBytes(int index) { + public com.google.protobuf.ByteString + getUrisBytes(int index) { return uris_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,11 +115,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < uris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uris_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -219,7 +137,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getUrisList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -227,16 +145,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.GcsOutputResult)) { return super.equals(obj); } - com.google.cloud.asset.v1.GcsOutputResult other = - (com.google.cloud.asset.v1.GcsOutputResult) obj; + com.google.cloud.asset.v1.GcsOutputResult other = (com.google.cloud.asset.v1.GcsOutputResult) obj; - if (!getUrisList().equals(other.getUrisList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUrisList() + .equals(other.getUrisList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -251,148 +169,135 @@ public int hashCode() { hash = (37 * hash) + URIS_FIELD_NUMBER; hash = (53 * hash) + getUrisList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.GcsOutputResult parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.GcsOutputResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.GcsOutputResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.GcsOutputResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.GcsOutputResult 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.asset.v1.GcsOutputResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.GcsOutputResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.GcsOutputResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.GcsOutputResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.GcsOutputResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.GcsOutputResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.GcsOutputResult parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.GcsOutputResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.GcsOutputResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.GcsOutputResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * A Cloud Storage output result.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.GcsOutputResult} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.GcsOutputResult) com.google.cloud.asset.v1.GcsOutputResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_GcsOutputResult_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GcsOutputResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.GcsOutputResult.class, - com.google.cloud.asset.v1.GcsOutputResult.Builder.class); + com.google.cloud.asset.v1.GcsOutputResult.class, com.google.cloud.asset.v1.GcsOutputResult.Builder.class); } // Construct using com.google.cloud.asset.v1.GcsOutputResult.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -402,9 +307,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor; } @java.lang.Override @@ -423,8 +328,7 @@ public com.google.cloud.asset.v1.GcsOutputResult build() { @java.lang.Override public com.google.cloud.asset.v1.GcsOutputResult buildPartial() { - com.google.cloud.asset.v1.GcsOutputResult result = - new com.google.cloud.asset.v1.GcsOutputResult(this); + com.google.cloud.asset.v1.GcsOutputResult result = new com.google.cloud.asset.v1.GcsOutputResult(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { uris_ = uris_.getUnmodifiableView(); @@ -439,39 +343,38 @@ public com.google.cloud.asset.v1.GcsOutputResult buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.GcsOutputResult) { - return mergeFrom((com.google.cloud.asset.v1.GcsOutputResult) other); + return mergeFrom((com.google.cloud.asset.v1.GcsOutputResult)other); } else { super.mergeFrom(other); return this; @@ -490,7 +393,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.GcsOutputResult other) { } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -505,71 +408,79 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.GcsOutputResult parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUrisIsMutable(); + uris_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.GcsOutputResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList uris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUrisIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { uris_ = new com.google.protobuf.LazyStringArrayList(uris_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; - * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList getUrisList() { + public com.google.protobuf.ProtocolStringList + getUrisList() { return uris_.getUnmodifiableView(); } /** - * - * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; - * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** - * - * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; - * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -577,95 +488,85 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** - * - * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString getUrisBytes(int index) { + public com.google.protobuf.ByteString + getUrisBytes(int index) { return uris_.getByteString(index); } /** - * - * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; - * * @param index The index to set the value at. * @param value The uris to set. * @return This builder for chaining. */ - public Builder setUris(int index, java.lang.String value) { + public Builder setUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUrisIsMutable(); + throw new NullPointerException(); + } + ensureUrisIsMutable(); uris_.set(index, value); onChanged(); return this; } /** - * - * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; - * * @param value The uris to add. * @return This builder for chaining. */ - public Builder addUris(java.lang.String value) { + public Builder addUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUrisIsMutable(); + throw new NullPointerException(); + } + ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } /** - * - * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; - * * @param values The uris to add. * @return This builder for chaining. */ - public Builder addAllUris(java.lang.Iterable values) { + public Builder addAllUris( + java.lang.Iterable values) { ensureUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, uris_); onChanged(); return this; } /** - * - * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; - * * @return This builder for chaining. */ public Builder clearUris() { @@ -675,31 +576,29 @@ public Builder clearUris() { return this; } /** - * - * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; - * * @param value The bytes of the uris to add. * @return This builder for chaining. */ - public Builder addUrisBytes(com.google.protobuf.ByteString value) { + public Builder addUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -709,12 +608,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.GcsOutputResult) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.GcsOutputResult) private static final com.google.cloud.asset.v1.GcsOutputResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.GcsOutputResult(); } @@ -723,16 +622,27 @@ public static com.google.cloud.asset.v1.GcsOutputResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsOutputResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsOutputResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsOutputResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -747,4 +657,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.GcsOutputResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResultOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResultOrBuilder.java similarity index 62% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResultOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResultOrBuilder.java index b5ed3e0d7460..bff599adbc7f 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResultOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResultOrBuilder.java @@ -1,80 +1,54 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface GcsOutputResultOrBuilder - extends +public interface GcsOutputResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.GcsOutputResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; - * * @return A list containing the uris. */ - java.util.List getUrisList(); + java.util.List + getUrisList(); /** - * - * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; - * * @return The count of uris. */ int getUrisCount(); /** - * - * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; - * * @param index The index of the element to return. * @return The uris at the given index. */ java.lang.String getUris(int index); /** - * - * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - com.google.protobuf.ByteString getUrisBytes(int index); + com.google.protobuf.ByteString + getUrisBytes(int index); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java similarity index 59% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java index c99beadb07af..cb4922575b11 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java @@ -1,123 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * Get asset feed request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.GetFeedRequest} */ -public final class GetFeedRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetFeedRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.GetFeedRequest) GetFeedRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetFeedRequest.newBuilder() to construct. private GetFeedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetFeedRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetFeedRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private GetFeedRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_GetFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GetFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.GetFeedRequest.class, - com.google.cloud.asset.v1.GetFeedRequest.Builder.class); + com.google.cloud.asset.v1.GetFeedRequest.class, com.google.cloud.asset.v1.GetFeedRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
        * Required. The name of the Feed and it must be in the format of:
        * projects/project_number/feeds/feed_id
    @@ -125,10 +58,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * organizations/organization_number/feeds/feed_id
        * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -137,15 +67,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
        * Required. The name of the Feed and it must be in the format of:
        * projects/project_number/feeds/feed_id
    @@ -153,18 +82,17 @@ public java.lang.String getName() {
        * organizations/organization_number/feeds/feed_id
        * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -173,7 +101,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,11 +112,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -201,7 +129,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -209,15 +137,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.GetFeedRequest)) { return super.equals(obj); } com.google.cloud.asset.v1.GetFeedRequest other = (com.google.cloud.asset.v1.GetFeedRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -230,148 +159,135 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.GetFeedRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.GetFeedRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.GetFeedRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.GetFeedRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.GetFeedRequest 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.asset.v1.GetFeedRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.GetFeedRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.GetFeedRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.GetFeedRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.GetFeedRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.GetFeedRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.GetFeedRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.GetFeedRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.GetFeedRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.GetFeedRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Get asset feed request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.GetFeedRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.GetFeedRequest) com.google.cloud.asset.v1.GetFeedRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_GetFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GetFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.GetFeedRequest.class, - com.google.cloud.asset.v1.GetFeedRequest.Builder.class); + com.google.cloud.asset.v1.GetFeedRequest.class, com.google.cloud.asset.v1.GetFeedRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.GetFeedRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -381,9 +297,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor; } @java.lang.Override @@ -402,8 +318,7 @@ public com.google.cloud.asset.v1.GetFeedRequest build() { @java.lang.Override public com.google.cloud.asset.v1.GetFeedRequest buildPartial() { - com.google.cloud.asset.v1.GetFeedRequest result = - new com.google.cloud.asset.v1.GetFeedRequest(this); + com.google.cloud.asset.v1.GetFeedRequest result = new com.google.cloud.asset.v1.GetFeedRequest(this); result.name_ = name_; onBuilt(); return result; @@ -413,39 +328,38 @@ public com.google.cloud.asset.v1.GetFeedRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.GetFeedRequest) { - return mergeFrom((com.google.cloud.asset.v1.GetFeedRequest) other); + return mergeFrom((com.google.cloud.asset.v1.GetFeedRequest)other); } else { super.mergeFrom(other); return this; @@ -458,7 +372,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.GetFeedRequest other) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -473,24 +387,40 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.GetFeedRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.GetFeedRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object name_ = ""; /** - * - * *
          * Required. The name of the Feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -498,16 +428,14 @@ public Builder mergeFrom(
          * organizations/organization_number/feeds/feed_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -516,8 +444,6 @@ public java.lang.String getName() { } } /** - * - * *
          * Required. The name of the Feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -525,17 +451,16 @@ public java.lang.String getName() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -543,8 +468,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
          * Required. The name of the Feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -552,25 +475,21 @@ public com.google.protobuf.ByteString getNameBytes() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
          * Required. The name of the Feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -578,21 +497,16 @@ public Builder setName(java.lang.String value) {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
          * Required. The name of the Feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -600,26 +514,24 @@ public Builder clearName() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -629,12 +541,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.GetFeedRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.GetFeedRequest) private static final com.google.cloud.asset.v1.GetFeedRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.GetFeedRequest(); } @@ -643,16 +555,27 @@ public static com.google.cloud.asset.v1.GetFeedRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFeedRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFeedRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFeedRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -667,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.GetFeedRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequestOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequestOrBuilder.java new file mode 100644 index 000000000000..fb82dab2672d --- /dev/null +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequestOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface GetFeedRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.GetFeedRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
    +   * Required. The name of the Feed and it must be in the format of:
    +   * projects/project_number/feeds/feed_id
    +   * folders/folder_number/feeds/feed_id
    +   * organizations/organization_number/feeds/feed_id
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
    +   * Required. The name of the Feed and it must be in the format of:
    +   * projects/project_number/feeds/feed_id
    +   * folders/folder_number/feeds/feed_id
    +   * organizations/organization_number/feeds/feed_id
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequest.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequest.java similarity index 60% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequest.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequest.java index 98ae2dbb9a04..7bbd32e628ff 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequest.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequest.java @@ -1,123 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * Request to get a saved query.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.GetSavedQueryRequest} */ -public final class GetSavedQueryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSavedQueryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.GetSavedQueryRequest) GetSavedQueryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSavedQueryRequest.newBuilder() to construct. private GetSavedQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSavedQueryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSavedQueryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private GetSavedQueryRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_GetSavedQueryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GetSavedQueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_GetSavedQueryRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GetSavedQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.GetSavedQueryRequest.class, - com.google.cloud.asset.v1.GetSavedQueryRequest.Builder.class); + com.google.cloud.asset.v1.GetSavedQueryRequest.class, com.google.cloud.asset.v1.GetSavedQueryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
        * Required. The name of the saved query and it must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -125,10 +58,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * * organizations/organization_number/savedQueries/saved_query_id
        * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -137,15 +67,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
        * Required. The name of the saved query and it must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -153,18 +82,17 @@ public java.lang.String getName() {
        * * organizations/organization_number/savedQueries/saved_query_id
        * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -173,7 +101,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,11 +112,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -201,7 +129,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -209,16 +137,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.GetSavedQueryRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.GetSavedQueryRequest other = - (com.google.cloud.asset.v1.GetSavedQueryRequest) obj; + com.google.cloud.asset.v1.GetSavedQueryRequest other = (com.google.cloud.asset.v1.GetSavedQueryRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -231,148 +159,135 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.GetSavedQueryRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.GetSavedQueryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.GetSavedQueryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.GetSavedQueryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.GetSavedQueryRequest 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.asset.v1.GetSavedQueryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.GetSavedQueryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.GetSavedQueryRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.GetSavedQueryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.GetSavedQueryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.GetSavedQueryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.GetSavedQueryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.GetSavedQueryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.GetSavedQueryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.GetSavedQueryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Request to get a saved query.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.GetSavedQueryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.GetSavedQueryRequest) com.google.cloud.asset.v1.GetSavedQueryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_GetSavedQueryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GetSavedQueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_GetSavedQueryRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GetSavedQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.GetSavedQueryRequest.class, - com.google.cloud.asset.v1.GetSavedQueryRequest.Builder.class); + com.google.cloud.asset.v1.GetSavedQueryRequest.class, com.google.cloud.asset.v1.GetSavedQueryRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.GetSavedQueryRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -382,9 +297,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_GetSavedQueryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GetSavedQueryRequest_descriptor; } @java.lang.Override @@ -403,8 +318,7 @@ public com.google.cloud.asset.v1.GetSavedQueryRequest build() { @java.lang.Override public com.google.cloud.asset.v1.GetSavedQueryRequest buildPartial() { - com.google.cloud.asset.v1.GetSavedQueryRequest result = - new com.google.cloud.asset.v1.GetSavedQueryRequest(this); + com.google.cloud.asset.v1.GetSavedQueryRequest result = new com.google.cloud.asset.v1.GetSavedQueryRequest(this); result.name_ = name_; onBuilt(); return result; @@ -414,39 +328,38 @@ public com.google.cloud.asset.v1.GetSavedQueryRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.GetSavedQueryRequest) { - return mergeFrom((com.google.cloud.asset.v1.GetSavedQueryRequest) other); + return mergeFrom((com.google.cloud.asset.v1.GetSavedQueryRequest)other); } else { super.mergeFrom(other); return this; @@ -459,7 +372,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.GetSavedQueryRequest other) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -474,24 +387,40 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.GetSavedQueryRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.GetSavedQueryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object name_ = ""; /** - * - * *
          * Required. The name of the saved query and it must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -499,16 +428,14 @@ public Builder mergeFrom(
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -517,8 +444,6 @@ public java.lang.String getName() { } } /** - * - * *
          * Required. The name of the saved query and it must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -526,17 +451,16 @@ public java.lang.String getName() {
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -544,8 +468,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
          * Required. The name of the saved query and it must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -553,25 +475,21 @@ public com.google.protobuf.ByteString getNameBytes() {
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
          * Required. The name of the saved query and it must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -579,21 +497,16 @@ public Builder setName(java.lang.String value) {
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
          * Required. The name of the saved query and it must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -601,26 +514,24 @@ public Builder clearName() {
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -630,12 +541,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.GetSavedQueryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.GetSavedQueryRequest) private static final com.google.cloud.asset.v1.GetSavedQueryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.GetSavedQueryRequest(); } @@ -644,16 +555,27 @@ public static com.google.cloud.asset.v1.GetSavedQueryRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSavedQueryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSavedQueryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSavedQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -668,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.GetSavedQueryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequestOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequestOrBuilder.java new file mode 100644 index 000000000000..66de7ef847e8 --- /dev/null +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequestOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface GetSavedQueryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.GetSavedQueryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
    +   * Required. The name of the saved query and it must be in the format of:
    +   * * projects/project_number/savedQueries/saved_query_id
    +   * * folders/folder_number/savedQueries/saved_query_id
    +   * * organizations/organization_number/savedQueries/saved_query_id
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
    +   * Required. The name of the saved query and it must be in the format of:
    +   * * projects/project_number/savedQueries/saved_query_id
    +   * * folders/folder_number/savedQueries/saved_query_id
    +   * * organizations/organization_number/savedQueries/saved_query_id
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfig.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfig.java similarity index 60% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfig.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfig.java index a222d55a920c..587801c59312 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfig.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfig.java @@ -1,168 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * Output configuration for export IAM policy analysis destination.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisOutputConfig} */ -public final class IamPolicyAnalysisOutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class IamPolicyAnalysisOutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig) IamPolicyAnalysisOutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use IamPolicyAnalysisOutputConfig.newBuilder() to construct. private IamPolicyAnalysisOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private IamPolicyAnalysisOutputConfig() {} + private IamPolicyAnalysisOutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IamPolicyAnalysisOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private IamPolicyAnalysisOutputConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder - subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = - ((com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) - destination_) - .toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) - destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 1; - break; - } - case 18: - { - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder - subBuilder = null; - if (destinationCase_ == 2) { - subBuilder = - ((com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) - destination_) - .toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) - destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 2; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.class, - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.class, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder.class); } - public interface GcsDestinationOrBuilder - extends + public interface GcsDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
    -     * Required. The uri of the Cloud Storage object. It's the same uri that is
    -     * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    +     * Required. The uri of the Cloud Storage object. It's the same uri that is used by
    +     * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
          * Editing Object
          * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
          * for more information.
    @@ -172,16 +64,13 @@ public interface GcsDestinationOrBuilder
          * 
    * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    -     * Required. The uri of the Cloud Storage object. It's the same uri that is
    -     * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    +     * Required. The uri of the Cloud Storage object. It's the same uri that is used by
    +     * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
          * Editing Object
          * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
          * for more information.
    @@ -191,114 +80,62 @@ public interface GcsDestinationOrBuilder
          * 
    * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); } /** - * - * *
        * A Cloud Storage location.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination} */ - public static final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GcsDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) GcsDestinationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsDestination() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private GcsDestination( - 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(); - - uri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.class, - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.class, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** - * - * *
    -     * Required. The uri of the Cloud Storage object. It's the same uri that is
    -     * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    +     * Required. The uri of the Cloud Storage object. It's the same uri that is used by
    +     * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
          * Editing Object
          * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
          * for more information.
    @@ -308,7 +145,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          * 
    * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ @java.lang.Override @@ -317,18 +153,17 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    -     * Required. The uri of the Cloud Storage object. It's the same uri that is
    -     * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    +     * Required. The uri of the Cloud Storage object. It's the same uri that is used by
    +     * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
          * Editing Object
          * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
          * for more information.
    @@ -338,15 +173,16 @@ public java.lang.String getUri() {
          * 
    * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -355,7 +191,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -367,11 +202,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -383,7 +219,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -391,17 +227,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination)) { + if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination other = - (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination other = (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) obj; - if (!getUri().equals(other.getUri())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUri() + .equals(other.getUri())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -414,101 +249,93 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination 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.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination - 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.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination 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.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -518,50 +345,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * A Cloud Storage location.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.class, - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder - .class); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.class, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder.class); } - // Construct using - // com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.newBuilder() + // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -571,22 +387,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination - getDefaultInstanceForType() { - return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination - .getDefaultInstance(); + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination getDefaultInstanceForType() { + return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.getDefaultInstance(); } @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination build() { - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination result = - buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -595,8 +408,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination bu @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination buildPartial() { - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination result = - new com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination(this); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination result = new com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination(this); result.uri_ = uri_; onBuilt(); return result; @@ -606,59 +418,51 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) { - return mergeFrom( - (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) other); + if (other instanceof com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) { + return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination other) { - if (other - == com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination other) { + if (other == com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -673,29 +477,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + uri_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object uri_ = ""; /** - * - * *
    -       * Required. The uri of the Cloud Storage object. It's the same uri that is
    -       * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    +       * Required. The uri of the Cloud Storage object. It's the same uri that is used by
    +       * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
            * Editing Object
            * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
            * for more information.
    @@ -705,13 +523,13 @@ public Builder mergeFrom(
            * 
    * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -720,11 +538,9 @@ public java.lang.String getUri() { } } /** - * - * *
    -       * Required. The uri of the Cloud Storage object. It's the same uri that is
    -       * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    +       * Required. The uri of the Cloud Storage object. It's the same uri that is used by
    +       * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
            * Editing Object
            * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
            * for more information.
    @@ -734,14 +550,15 @@ public java.lang.String getUri() {
            * 
    * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -749,11 +566,9 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
    -       * Required. The uri of the Cloud Storage object. It's the same uri that is
    -       * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    +       * Required. The uri of the Cloud Storage object. It's the same uri that is used by
    +       * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
            * Editing Object
            * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
            * for more information.
    @@ -763,25 +578,23 @@ public com.google.protobuf.ByteString getUriBytes() {
            * 
    * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
    -       * Required. The uri of the Cloud Storage object. It's the same uri that is
    -       * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    +       * Required. The uri of the Cloud Storage object. It's the same uri that is used by
    +       * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
            * Editing Object
            * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
            * for more information.
    @@ -791,21 +604,18 @@ public Builder setUri(java.lang.String value) {
            * 
    * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
    -       * Required. The uri of the Cloud Storage object. It's the same uri that is
    -       * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    +       * Required. The uri of the Cloud Storage object. It's the same uri that is used by
    +       * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
            * Editing Object
            * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
            * for more information.
    @@ -815,21 +625,20 @@ public Builder clearUri() {
            * 
    * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -842,33 +651,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) - private static final com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination - DEFAULT_INSTANCE; - + private static final com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination(); + DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination(); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination - getDefaultInstance() { + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -880,55 +697,44 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination - getDefaultInstanceForType() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface BigQueryDestinationOrBuilder - extends + public interface BigQueryDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
    -     * Required. The BigQuery dataset in format
    -     * "projects/projectId/datasets/datasetId", to which the analysis results
    -     * should be exported. If this dataset does not exist, the export call will
    -     * return an INVALID_ARGUMENT error.
    +     * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
    +     * to which the analysis results should be exported. If this dataset does
    +     * not exist, the export call will return an INVALID_ARGUMENT error.
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The dataset. */ java.lang.String getDataset(); /** - * - * *
    -     * Required. The BigQuery dataset in format
    -     * "projects/projectId/datasets/datasetId", to which the analysis results
    -     * should be exported. If this dataset does not exist, the export call will
    -     * return an INVALID_ARGUMENT error.
    +     * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
    +     * to which the analysis results should be exported. If this dataset does
    +     * not exist, the export call will return an INVALID_ARGUMENT error.
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for dataset. */ - com.google.protobuf.ByteString getDatasetBytes(); + com.google.protobuf.ByteString + getDatasetBytes(); /** - * - * *
    -     * Required. The prefix of the BigQuery tables to which the analysis results
    -     * will be written. Tables will be created based on this table_prefix if not
    -     * exist:
    +     * Required. The prefix of the BigQuery tables to which the analysis results will be
    +     * written. Tables will be created based on this table_prefix if not exist:
          * * <table_prefix>_analysis table will contain export operation's metadata.
          * * <table_prefix>_analysis_result will contain all the
          *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
    @@ -937,17 +743,13 @@ public interface BigQueryDestinationOrBuilder
          * 
    * * string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The tablePrefix. */ java.lang.String getTablePrefix(); /** - * - * *
    -     * Required. The prefix of the BigQuery tables to which the analysis results
    -     * will be written. Tables will be created based on this table_prefix if not
    -     * exist:
    +     * Required. The prefix of the BigQuery tables to which the analysis results will be
    +     * written. Tables will be created based on this table_prefix if not exist:
          * * <table_prefix>_analysis table will contain export operation's metadata.
          * * <table_prefix>_analysis_result will contain all the
          *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
    @@ -956,47 +758,34 @@ public interface BigQueryDestinationOrBuilder
          * 
    * * string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for tablePrefix. */ - com.google.protobuf.ByteString getTablePrefixBytes(); + com.google.protobuf.ByteString + getTablePrefixBytes(); /** - * - * *
          * The partition key for BigQuery partitioned table.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; * @return The enum numeric value on the wire for partitionKey. */ int getPartitionKeyValue(); /** - * - * *
          * The partition key for BigQuery partitioned table.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; * @return The partitionKey. */ - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey - getPartitionKey(); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey getPartitionKey(); /** - * - * *
    -     * Optional. Specifies the action that occurs if the destination table or
    -     * partition already exists. The following values are supported:
    +     * Optional. Specifies the action that occurs if the destination table or partition
    +     * already exists. The following values are supported:
          * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
          * overwrites the entire table or all the partitions data.
          * * WRITE_APPEND: If the table or partition already exists, BigQuery
    @@ -1009,16 +798,13 @@ public interface BigQueryDestinationOrBuilder
          * 
    * * string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The writeDisposition. */ java.lang.String getWriteDisposition(); /** - * - * *
    -     * Optional. Specifies the action that occurs if the destination table or
    -     * partition already exists. The following values are supported:
    +     * Optional. Specifies the action that occurs if the destination table or partition
    +     * already exists. The following values are supported:
          * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
          * overwrites the entire table or all the partitions data.
          * * WRITE_APPEND: If the table or partition already exists, BigQuery
    @@ -1031,30 +817,27 @@ public interface BigQueryDestinationOrBuilder
          * 
    * * string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for writeDisposition. */ - com.google.protobuf.ByteString getWriteDispositionBytes(); + com.google.protobuf.ByteString + getWriteDispositionBytes(); } /** - * - * *
        * A BigQuery destination.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination} */ - public static final class BigQueryDestination extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class BigQueryDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) BigQueryDestinationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BigQueryDestination.newBuilder() to construct. private BigQueryDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BigQueryDestination() { dataset_ = ""; tablePrefix_ = ""; @@ -1064,101 +847,30 @@ private BigQueryDestination() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BigQueryDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private BigQueryDestination( - 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(); - - dataset_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - tablePrefix_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); - - partitionKey_ = rawValue; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - writeDisposition_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.class, - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder - .class); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.class, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder.class); } /** - * - * *
          * This enum determines the partition key column for the bigquery tables.
          * Partitioning can improve query performance and reduce query cost by
    @@ -1166,13 +878,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          * https://cloud.google.com/bigquery/docs/partitioned-tables for details.
          * 
    * - * Protobuf enum {@code - * google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey} + * Protobuf enum {@code google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey} */ - public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum { + public enum PartitionKey + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
            * Unspecified partition key. Tables won't be partitioned using this
            * option.
    @@ -1182,8 +892,6 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum {
            */
           PARTITION_KEY_UNSPECIFIED(0),
           /**
    -       *
    -       *
            * 
            * The time when the request is received. If specified as partition key,
            * the result table(s) is partitoned by the RequestTime column, an
    @@ -1197,8 +905,6 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum {
           ;
     
           /**
    -       *
    -       *
            * 
            * Unspecified partition key. Tables won't be partitioned using this
            * option.
    @@ -1208,8 +914,6 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum {
            */
           public static final int PARTITION_KEY_UNSPECIFIED_VALUE = 0;
           /**
    -       *
    -       *
            * 
            * The time when the request is received. If specified as partition key,
            * the result table(s) is partitoned by the RequestTime column, an
    @@ -1220,6 +924,7 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum {
            */
           public static final int REQUEST_TIME_VALUE = 1;
     
    +
           public final int getNumber() {
             if (this == UNRECOGNIZED) {
               throw new java.lang.IllegalArgumentException(
    @@ -1244,50 +949,48 @@ public static PartitionKey valueOf(int value) {
            */
           public static PartitionKey forNumber(int value) {
             switch (value) {
    -          case 0:
    -            return PARTITION_KEY_UNSPECIFIED;
    -          case 1:
    -            return REQUEST_TIME;
    -          default:
    -            return null;
    +          case 0: return PARTITION_KEY_UNSPECIFIED;
    +          case 1: return REQUEST_TIME;
    +          default: return null;
             }
           }
     
    -      public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
    +      public static com.google.protobuf.Internal.EnumLiteMap
    +          internalGetValueMap() {
             return internalValueMap;
           }
    +      private static final com.google.protobuf.Internal.EnumLiteMap<
    +          PartitionKey> internalValueMap =
    +            new com.google.protobuf.Internal.EnumLiteMap() {
    +              public PartitionKey findValueByNumber(int number) {
    +                return PartitionKey.forNumber(number);
    +              }
    +            };
     
    -      private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
    -          new com.google.protobuf.Internal.EnumLiteMap() {
    -            public PartitionKey findValueByNumber(int number) {
    -              return PartitionKey.forNumber(number);
    -            }
    -          };
    -
    -      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
    +      public final com.google.protobuf.Descriptors.EnumValueDescriptor
    +          getValueDescriptor() {
             if (this == UNRECOGNIZED) {
               throw new java.lang.IllegalStateException(
                   "Can't get the descriptor of an unrecognized enum value.");
             }
             return getDescriptor().getValues().get(ordinal());
           }
    -
    -      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
    +      public final com.google.protobuf.Descriptors.EnumDescriptor
    +          getDescriptorForType() {
             return getDescriptor();
           }
    -
    -      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
    -        return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination
    -            .getDescriptor()
    -            .getEnumTypes()
    -            .get(0);
    +      public static final com.google.protobuf.Descriptors.EnumDescriptor
    +          getDescriptor() {
    +        return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.getDescriptor().getEnumTypes().get(0);
           }
     
           private static final PartitionKey[] VALUES = values();
     
    -      public static PartitionKey valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
    +      public static PartitionKey valueOf(
    +          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
             if (desc.getType() != getDescriptor()) {
    -          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
    +          throw new java.lang.IllegalArgumentException(
    +            "EnumValueDescriptor is not for this type.");
             }
             if (desc.getIndex() == -1) {
               return UNRECOGNIZED;
    @@ -1307,17 +1010,13 @@ private PartitionKey(int value) {
         public static final int DATASET_FIELD_NUMBER = 1;
         private volatile java.lang.Object dataset_;
         /**
    -     *
    -     *
          * 
    -     * Required. The BigQuery dataset in format
    -     * "projects/projectId/datasets/datasetId", to which the analysis results
    -     * should be exported. If this dataset does not exist, the export call will
    -     * return an INVALID_ARGUMENT error.
    +     * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
    +     * to which the analysis results should be exported. If this dataset does
    +     * not exist, the export call will return an INVALID_ARGUMENT error.
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The dataset. */ @java.lang.Override @@ -1326,32 +1025,31 @@ public java.lang.String getDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; } } /** - * - * *
    -     * Required. The BigQuery dataset in format
    -     * "projects/projectId/datasets/datasetId", to which the analysis results
    -     * should be exported. If this dataset does not exist, the export call will
    -     * return an INVALID_ARGUMENT error.
    +     * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
    +     * to which the analysis results should be exported. If this dataset does
    +     * not exist, the export call will return an INVALID_ARGUMENT error.
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for dataset. */ @java.lang.Override - public com.google.protobuf.ByteString getDatasetBytes() { + public com.google.protobuf.ByteString + getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataset_ = b; return b; } else { @@ -1362,12 +1060,9 @@ public com.google.protobuf.ByteString getDatasetBytes() { public static final int TABLE_PREFIX_FIELD_NUMBER = 2; private volatile java.lang.Object tablePrefix_; /** - * - * *
    -     * Required. The prefix of the BigQuery tables to which the analysis results
    -     * will be written. Tables will be created based on this table_prefix if not
    -     * exist:
    +     * Required. The prefix of the BigQuery tables to which the analysis results will be
    +     * written. Tables will be created based on this table_prefix if not exist:
          * * <table_prefix>_analysis table will contain export operation's metadata.
          * * <table_prefix>_analysis_result will contain all the
          *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
    @@ -1376,7 +1071,6 @@ public com.google.protobuf.ByteString getDatasetBytes() {
          * 
    * * string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The tablePrefix. */ @java.lang.Override @@ -1385,19 +1079,17 @@ public java.lang.String getTablePrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tablePrefix_ = s; return s; } } /** - * - * *
    -     * Required. The prefix of the BigQuery tables to which the analysis results
    -     * will be written. Tables will be created based on this table_prefix if not
    -     * exist:
    +     * Required. The prefix of the BigQuery tables to which the analysis results will be
    +     * written. Tables will be created based on this table_prefix if not exist:
          * * <table_prefix>_analysis table will contain export operation's metadata.
          * * <table_prefix>_analysis_result will contain all the
          *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
    @@ -1406,15 +1098,16 @@ public java.lang.String getTablePrefix() {
          * 
    * * string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for tablePrefix. */ @java.lang.Override - public com.google.protobuf.ByteString getTablePrefixBytes() { + public com.google.protobuf.ByteString + getTablePrefixBytes() { java.lang.Object ref = tablePrefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tablePrefix_ = b; return b; } else { @@ -1425,57 +1118,36 @@ public com.google.protobuf.ByteString getTablePrefixBytes() { public static final int PARTITION_KEY_FIELD_NUMBER = 3; private int partitionKey_; /** - * - * *
          * The partition key for BigQuery partitioned table.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; * @return The enum numeric value on the wire for partitionKey. */ - @java.lang.Override - public int getPartitionKeyValue() { + @java.lang.Override public int getPartitionKeyValue() { return partitionKey_; } /** - * - * *
          * The partition key for BigQuery partitioned table.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; * @return The partitionKey. */ - @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey - getPartitionKey() { + @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey getPartitionKey() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey - result = - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - .PartitionKey.valueOf(partitionKey_); - return result == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey - .UNRECOGNIZED - : result; + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey result = com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey.valueOf(partitionKey_); + return result == null ? com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey.UNRECOGNIZED : result; } public static final int WRITE_DISPOSITION_FIELD_NUMBER = 4; private volatile java.lang.Object writeDisposition_; /** - * - * *
    -     * Optional. Specifies the action that occurs if the destination table or
    -     * partition already exists. The following values are supported:
    +     * Optional. Specifies the action that occurs if the destination table or partition
    +     * already exists. The following values are supported:
          * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
          * overwrites the entire table or all the partitions data.
          * * WRITE_APPEND: If the table or partition already exists, BigQuery
    @@ -1488,7 +1160,6 @@ public int getPartitionKeyValue() {
          * 
    * * string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The writeDisposition. */ @java.lang.Override @@ -1497,18 +1168,17 @@ public java.lang.String getWriteDisposition() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeDisposition_ = s; return s; } } /** - * - * *
    -     * Optional. Specifies the action that occurs if the destination table or
    -     * partition already exists. The following values are supported:
    +     * Optional. Specifies the action that occurs if the destination table or partition
    +     * already exists. The following values are supported:
          * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
          * overwrites the entire table or all the partitions data.
          * * WRITE_APPEND: If the table or partition already exists, BigQuery
    @@ -1521,15 +1191,16 @@ public java.lang.String getWriteDisposition() {
          * 
    * * string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for writeDisposition. */ @java.lang.Override - public com.google.protobuf.ByteString getWriteDispositionBytes() { + public com.google.protobuf.ByteString + getWriteDispositionBytes() { java.lang.Object ref = writeDisposition_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); writeDisposition_ = b; return b; } else { @@ -1538,7 +1209,6 @@ public com.google.protobuf.ByteString getWriteDispositionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1550,23 +1220,21 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tablePrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tablePrefix_); } - if (partitionKey_ - != com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - .PartitionKey.PARTITION_KEY_UNSPECIFIED - .getNumber()) { + if (partitionKey_ != com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey.PARTITION_KEY_UNSPECIFIED.getNumber()) { output.writeEnum(3, partitionKey_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeDisposition_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, writeDisposition_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1581,16 +1249,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tablePrefix_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tablePrefix_); } - if (partitionKey_ - != com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - .PartitionKey.PARTITION_KEY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, partitionKey_); + if (partitionKey_ != com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey.PARTITION_KEY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, partitionKey_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeDisposition_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, writeDisposition_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1598,20 +1264,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination)) { + if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination other = - (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination other = (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) obj; - if (!getDataset().equals(other.getDataset())) return false; - if (!getTablePrefix().equals(other.getTablePrefix())) return false; + if (!getDataset() + .equals(other.getDataset())) return false; + if (!getTablePrefix() + .equals(other.getTablePrefix())) return false; if (partitionKey_ != other.partitionKey_) return false; - if (!getWriteDisposition().equals(other.getWriteDisposition())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getWriteDisposition() + .equals(other.getWriteDisposition())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1630,106 +1297,93 @@ public int hashCode() { hash = (53 * hash) + partitionKey_; hash = (37 * hash) + WRITE_DISPOSITION_FIELD_NUMBER; hash = (53 * hash) + getWriteDisposition().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination 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.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination 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.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - 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.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination 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.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - 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.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination 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.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1739,50 +1393,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * A BigQuery destination.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.class, - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder - .class); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.class, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder.class); } - // Construct using - // com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.newBuilder() + // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -1798,22 +1441,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - getDefaultInstanceForType() { - return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - .getDefaultInstance(); + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination getDefaultInstanceForType() { + return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.getDefaultInstance(); } @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination build() { - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination result = - buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1821,10 +1461,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinati } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - buildPartial() { - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination result = - new com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination(this); + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination buildPartial() { + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination result = new com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination(this); result.dataset_ = dataset_; result.tablePrefix_ = tablePrefix_; result.partitionKey_ = partitionKey_; @@ -1837,55 +1475,46 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinati public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) { - return mergeFrom( - (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) other); + if (other instanceof com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) { + return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination other) { - if (other - == com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination other) { + if (other == com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.getDefaultInstance()) return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; onChanged(); @@ -1901,7 +1530,7 @@ public Builder mergeFrom( writeDisposition_ = other.writeDisposition_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1916,42 +1545,69 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination parsedMessage = - null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + dataset_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + tablePrefix_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + partitionKey_ = input.readEnum(); + + break; + } // case 24 + case 34: { + writeDisposition_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object dataset_ = ""; /** - * - * *
    -       * Required. The BigQuery dataset in format
    -       * "projects/projectId/datasets/datasetId", to which the analysis results
    -       * should be exported. If this dataset does not exist, the export call will
    -       * return an INVALID_ARGUMENT error.
    +       * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
    +       * to which the analysis results should be exported. If this dataset does
    +       * not exist, the export call will return an INVALID_ARGUMENT error.
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The dataset. */ public java.lang.String getDataset() { java.lang.Object ref = dataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; @@ -1960,24 +1616,22 @@ public java.lang.String getDataset() { } } /** - * - * *
    -       * Required. The BigQuery dataset in format
    -       * "projects/projectId/datasets/datasetId", to which the analysis results
    -       * should be exported. If this dataset does not exist, the export call will
    -       * return an INVALID_ARGUMENT error.
    +       * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
    +       * to which the analysis results should be exported. If this dataset does
    +       * not exist, the export call will return an INVALID_ARGUMENT error.
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for dataset. */ - public com.google.protobuf.ByteString getDatasetBytes() { + public com.google.protobuf.ByteString + getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataset_ = b; return b; } else { @@ -1985,70 +1639,60 @@ public com.google.protobuf.ByteString getDatasetBytes() { } } /** - * - * *
    -       * Required. The BigQuery dataset in format
    -       * "projects/projectId/datasets/datasetId", to which the analysis results
    -       * should be exported. If this dataset does not exist, the export call will
    -       * return an INVALID_ARGUMENT error.
    +       * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
    +       * to which the analysis results should be exported. If this dataset does
    +       * not exist, the export call will return an INVALID_ARGUMENT error.
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The dataset to set. * @return This builder for chaining. */ - public Builder setDataset(java.lang.String value) { + public Builder setDataset( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataset_ = value; onChanged(); return this; } /** - * - * *
    -       * Required. The BigQuery dataset in format
    -       * "projects/projectId/datasets/datasetId", to which the analysis results
    -       * should be exported. If this dataset does not exist, the export call will
    -       * return an INVALID_ARGUMENT error.
    +       * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
    +       * to which the analysis results should be exported. If this dataset does
    +       * not exist, the export call will return an INVALID_ARGUMENT error.
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDataset() { - + dataset_ = getDefaultInstance().getDataset(); onChanged(); return this; } /** - * - * *
    -       * Required. The BigQuery dataset in format
    -       * "projects/projectId/datasets/datasetId", to which the analysis results
    -       * should be exported. If this dataset does not exist, the export call will
    -       * return an INVALID_ARGUMENT error.
    +       * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
    +       * to which the analysis results should be exported. If this dataset does
    +       * not exist, the export call will return an INVALID_ARGUMENT error.
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for dataset to set. * @return This builder for chaining. */ - public Builder setDatasetBytes(com.google.protobuf.ByteString value) { + public Builder setDatasetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; onChanged(); return this; @@ -2056,12 +1700,9 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { private java.lang.Object tablePrefix_ = ""; /** - * - * *
    -       * Required. The prefix of the BigQuery tables to which the analysis results
    -       * will be written. Tables will be created based on this table_prefix if not
    -       * exist:
    +       * Required. The prefix of the BigQuery tables to which the analysis results will be
    +       * written. Tables will be created based on this table_prefix if not exist:
            * * <table_prefix>_analysis table will contain export operation's metadata.
            * * <table_prefix>_analysis_result will contain all the
            *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
    @@ -2070,13 +1711,13 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) {
            * 
    * * string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The tablePrefix. */ public java.lang.String getTablePrefix() { java.lang.Object ref = tablePrefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tablePrefix_ = s; return s; @@ -2085,12 +1726,9 @@ public java.lang.String getTablePrefix() { } } /** - * - * *
    -       * Required. The prefix of the BigQuery tables to which the analysis results
    -       * will be written. Tables will be created based on this table_prefix if not
    -       * exist:
    +       * Required. The prefix of the BigQuery tables to which the analysis results will be
    +       * written. Tables will be created based on this table_prefix if not exist:
            * * <table_prefix>_analysis table will contain export operation's metadata.
            * * <table_prefix>_analysis_result will contain all the
            *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
    @@ -2099,14 +1737,15 @@ public java.lang.String getTablePrefix() {
            * 
    * * string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for tablePrefix. */ - public com.google.protobuf.ByteString getTablePrefixBytes() { + public com.google.protobuf.ByteString + getTablePrefixBytes() { java.lang.Object ref = tablePrefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tablePrefix_ = b; return b; } else { @@ -2114,12 +1753,9 @@ public com.google.protobuf.ByteString getTablePrefixBytes() { } } /** - * - * *
    -       * Required. The prefix of the BigQuery tables to which the analysis results
    -       * will be written. Tables will be created based on this table_prefix if not
    -       * exist:
    +       * Required. The prefix of the BigQuery tables to which the analysis results will be
    +       * written. Tables will be created based on this table_prefix if not exist:
            * * <table_prefix>_analysis table will contain export operation's metadata.
            * * <table_prefix>_analysis_result will contain all the
            *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
    @@ -2128,26 +1764,23 @@ public com.google.protobuf.ByteString getTablePrefixBytes() {
            * 
    * * string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The tablePrefix to set. * @return This builder for chaining. */ - public Builder setTablePrefix(java.lang.String value) { + public Builder setTablePrefix( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + tablePrefix_ = value; onChanged(); return this; } /** - * - * *
    -       * Required. The prefix of the BigQuery tables to which the analysis results
    -       * will be written. Tables will be created based on this table_prefix if not
    -       * exist:
    +       * Required. The prefix of the BigQuery tables to which the analysis results will be
    +       * written. Tables will be created based on this table_prefix if not exist:
            * * <table_prefix>_analysis table will contain export operation's metadata.
            * * <table_prefix>_analysis_result will contain all the
            *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
    @@ -2156,22 +1789,18 @@ public Builder setTablePrefix(java.lang.String value) {
            * 
    * * string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTablePrefix() { - + tablePrefix_ = getDefaultInstance().getTablePrefix(); onChanged(); return this; } /** - * - * *
    -       * Required. The prefix of the BigQuery tables to which the analysis results
    -       * will be written. Tables will be created based on this table_prefix if not
    -       * exist:
    +       * Required. The prefix of the BigQuery tables to which the analysis results will be
    +       * written. Tables will be created based on this table_prefix if not exist:
            * * <table_prefix>_analysis table will contain export operation's metadata.
            * * <table_prefix>_analysis_result will contain all the
            *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
    @@ -2180,16 +1809,16 @@ public Builder clearTablePrefix() {
            * 
    * * string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for tablePrefix to set. * @return This builder for chaining. */ - public Builder setTablePrefixBytes(com.google.protobuf.ByteString value) { + public Builder setTablePrefixBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tablePrefix_ = value; onChanged(); return this; @@ -2197,109 +1826,73 @@ public Builder setTablePrefixBytes(com.google.protobuf.ByteString value) { private int partitionKey_ = 0; /** - * - * *
            * The partition key for BigQuery partitioned table.
            * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; * @return The enum numeric value on the wire for partitionKey. */ - @java.lang.Override - public int getPartitionKeyValue() { + @java.lang.Override public int getPartitionKeyValue() { return partitionKey_; } /** - * - * *
            * The partition key for BigQuery partitioned table.
            * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; * @param value The enum numeric value on the wire for partitionKey to set. * @return This builder for chaining. */ public Builder setPartitionKeyValue(int value) { - + partitionKey_ = value; onChanged(); return this; } /** - * - * *
            * The partition key for BigQuery partitioned table.
            * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; * @return The partitionKey. */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - .PartitionKey - getPartitionKey() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey getPartitionKey() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey - result = - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - .PartitionKey.valueOf(partitionKey_); - return result == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - .PartitionKey.UNRECOGNIZED - : result; + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey result = com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey.valueOf(partitionKey_); + return result == null ? com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey.UNRECOGNIZED : result; } /** - * - * *
            * The partition key for BigQuery partitioned table.
            * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; * @param value The partitionKey to set. * @return This builder for chaining. */ - public Builder setPartitionKey( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey - value) { + public Builder setPartitionKey(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey value) { if (value == null) { throw new NullPointerException(); } - + partitionKey_ = value.getNumber(); onChanged(); return this; } /** - * - * *
            * The partition key for BigQuery partitioned table.
            * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; * @return This builder for chaining. */ public Builder clearPartitionKey() { - + partitionKey_ = 0; onChanged(); return this; @@ -2307,11 +1900,9 @@ public Builder clearPartitionKey() { private java.lang.Object writeDisposition_ = ""; /** - * - * *
    -       * Optional. Specifies the action that occurs if the destination table or
    -       * partition already exists. The following values are supported:
    +       * Optional. Specifies the action that occurs if the destination table or partition
    +       * already exists. The following values are supported:
            * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
            * overwrites the entire table or all the partitions data.
            * * WRITE_APPEND: If the table or partition already exists, BigQuery
    @@ -2324,13 +1915,13 @@ public Builder clearPartitionKey() {
            * 
    * * string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The writeDisposition. */ public java.lang.String getWriteDisposition() { java.lang.Object ref = writeDisposition_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeDisposition_ = s; return s; @@ -2339,11 +1930,9 @@ public java.lang.String getWriteDisposition() { } } /** - * - * *
    -       * Optional. Specifies the action that occurs if the destination table or
    -       * partition already exists. The following values are supported:
    +       * Optional. Specifies the action that occurs if the destination table or partition
    +       * already exists. The following values are supported:
            * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
            * overwrites the entire table or all the partitions data.
            * * WRITE_APPEND: If the table or partition already exists, BigQuery
    @@ -2356,14 +1945,15 @@ public java.lang.String getWriteDisposition() {
            * 
    * * string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for writeDisposition. */ - public com.google.protobuf.ByteString getWriteDispositionBytes() { + public com.google.protobuf.ByteString + getWriteDispositionBytes() { java.lang.Object ref = writeDisposition_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); writeDisposition_ = b; return b; } else { @@ -2371,11 +1961,9 @@ public com.google.protobuf.ByteString getWriteDispositionBytes() { } } /** - * - * *
    -       * Optional. Specifies the action that occurs if the destination table or
    -       * partition already exists. The following values are supported:
    +       * Optional. Specifies the action that occurs if the destination table or partition
    +       * already exists. The following values are supported:
            * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
            * overwrites the entire table or all the partitions data.
            * * WRITE_APPEND: If the table or partition already exists, BigQuery
    @@ -2388,25 +1976,23 @@ public com.google.protobuf.ByteString getWriteDispositionBytes() {
            * 
    * * string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The writeDisposition to set. * @return This builder for chaining. */ - public Builder setWriteDisposition(java.lang.String value) { + public Builder setWriteDisposition( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + writeDisposition_ = value; onChanged(); return this; } /** - * - * *
    -       * Optional. Specifies the action that occurs if the destination table or
    -       * partition already exists. The following values are supported:
    +       * Optional. Specifies the action that occurs if the destination table or partition
    +       * already exists. The following values are supported:
            * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
            * overwrites the entire table or all the partitions data.
            * * WRITE_APPEND: If the table or partition already exists, BigQuery
    @@ -2419,21 +2005,18 @@ public Builder setWriteDisposition(java.lang.String value) {
            * 
    * * string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearWriteDisposition() { - + writeDisposition_ = getDefaultInstance().getWriteDisposition(); onChanged(); return this; } /** - * - * *
    -       * Optional. Specifies the action that occurs if the destination table or
    -       * partition already exists. The following values are supported:
    +       * Optional. Specifies the action that occurs if the destination table or partition
    +       * already exists. The following values are supported:
            * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
            * overwrites the entire table or all the partitions data.
            * * WRITE_APPEND: If the table or partition already exists, BigQuery
    @@ -2446,21 +2029,20 @@ public Builder clearWriteDisposition() {
            * 
    * * string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for writeDisposition to set. * @return This builder for chaining. */ - public Builder setWriteDispositionBytes(com.google.protobuf.ByteString value) { + public Builder setWriteDispositionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + writeDisposition_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2473,33 +2055,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) - private static final com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - DEFAULT_INSTANCE; - + private static final com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination(); + DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination(); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - getDefaultInstance() { + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BigQueryDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2511,24 +2101,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - getDefaultInstanceForType() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), BIGQUERY_DESTINATION(2), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -2544,37 +2131,30 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 2: - return BIGQUERY_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 2: return BIGQUERY_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
        * Destination on Cloud Storage.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -2582,58 +2162,42 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
        * Destination on Cloud Storage.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; * @return The gcsDestination. */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination - getGcsDestination() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_; + return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_; } - return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination - .getDefaultInstance(); + return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.getDefaultInstance(); } /** - * - * *
        * Destination on Cloud Storage.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder - getGcsDestinationOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_; + return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_; } - return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination - .getDefaultInstance(); + return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.getDefaultInstance(); } public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 2; /** - * - * *
        * Destination on BigQuery.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -2641,52 +2205,36 @@ public boolean hasBigqueryDestination() { return destinationCase_ == 2; } /** - * - * *
        * Destination on BigQuery.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; * @return The bigqueryDestination. */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - getBigqueryDestination() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination getBigqueryDestination() { if (destinationCase_ == 2) { - return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) - destination_; + return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) destination_; } - return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - .getDefaultInstance(); + return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.getDefaultInstance(); } /** - * - * *
        * Destination on BigQuery.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder - getBigqueryDestinationOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() { if (destinationCase_ == 2) { - return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) - destination_; + return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) destination_; } - return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - .getDefaultInstance(); + return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2698,18 +2246,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (destinationCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_); + output.writeMessage(1, (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_); } if (destinationCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) - destination_); + output.writeMessage(2, (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) destination_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2719,20 +2264,14 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) - destination_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_); } if (destinationCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) - destination_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) destination_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -2740,26 +2279,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig other = - (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig other = (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig) obj; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination().equals(other.getGcsDestination())) return false; + if (!getGcsDestination() + .equals(other.getGcsDestination())) return false; break; case 2: - if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false; + if (!getBigqueryDestination() + .equals(other.getBigqueryDestination())) return false; break; case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2782,161 +2322,153 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig 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.asset.v1.IamPolicyAnalysisOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Output configuration for export IAM policy analysis destination.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisOutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig) com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.class, - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.class, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder.class); } // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @java.lang.Override public Builder clear() { super.clear(); + if (gcsDestinationBuilder_ != null) { + gcsDestinationBuilder_.clear(); + } + if (bigqueryDestinationBuilder_ != null) { + bigqueryDestinationBuilder_.clear(); + } destinationCase_ = 0; destination_ = null; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor; } @java.lang.Override @@ -2955,8 +2487,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig build() { @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig buildPartial() { - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig result = - new com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig(this); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig result = new com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -2980,39 +2511,38 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicyAnalysisOutputConfig) { - return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig) other); + return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig)other); } else { super.mergeFrom(other); return this; @@ -3020,25 +2550,21 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig other) { - if (other == com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case BIGQUERY_DESTINATION: - { - mergeBigqueryDestination(other.getBigqueryDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.unknownFields); + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case BIGQUERY_DESTINATION: { + mergeBigqueryDestination(other.getBigqueryDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -3053,26 +2579,52 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getGcsDestinationFieldBuilder().getBuilder(), + extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getBigqueryDestinationFieldBuilder().getBuilder(), + extensionRegistry); + destinationCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -3082,22 +2634,15 @@ public Builder clearDestination() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination, - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
          * Destination on Cloud Storage.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -3105,49 +2650,35 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
          * Destination on Cloud Storage.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; * @return The gcsDestination. */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination - getGcsDestination() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination getGcsDestination() { if (gcsDestinationBuilder_ == null) { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) - destination_; + return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_; } - return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination - .getDefaultInstance(); + return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.getDefaultInstance(); } else { if (destinationCase_ == 1) { return gcsDestinationBuilder_.getMessage(); } - return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination - .getDefaultInstance(); + return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.getDefaultInstance(); } } /** - * - * *
          * Destination on Cloud Storage.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; */ - public Builder setGcsDestination( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination value) { + public Builder setGcsDestination(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination value) { if (gcsDestinationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3161,19 +2692,14 @@ public Builder setGcsDestination( return this; } /** - * - * *
          * Destination on Cloud Storage.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; */ public Builder setGcsDestination( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder - builderForValue) { + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder builderForValue) { if (gcsDestinationBuilder_ == null) { destination_ = builderForValue.build(); onChanged(); @@ -3184,29 +2710,18 @@ public Builder setGcsDestination( return this; } /** - * - * *
          * Destination on Cloud Storage.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; */ - public Builder mergeGcsDestination( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination value) { + public Builder mergeGcsDestination(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 - && destination_ - != com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination - .getDefaultInstance()) { - destination_ = - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.newBuilder( - (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) - destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 1 && + destination_ != com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.getDefaultInstance()) { + destination_ = com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.newBuilder((com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -3222,15 +2737,11 @@ public Builder mergeGcsDestination( return this; } /** - * - * *
          * Destination on Cloud Storage.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; */ public Builder clearGcsDestination() { if (gcsDestinationBuilder_ == null) { @@ -3249,100 +2760,67 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
          * Destination on Cloud Storage.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder - getGcsDestinationBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder getGcsDestinationBuilder() { return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
          * Destination on Cloud Storage.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder - getGcsDestinationOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if ((destinationCase_ == 1) && (gcsDestinationBuilder_ != null)) { return gcsDestinationBuilder_.getMessageOrBuilder(); } else { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) - destination_; + return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_; } - return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination - .getDefaultInstance(); + return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.getDefaultInstance(); } } /** - * - * *
          * Destination on Cloud Storage.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination, - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { - destination_ = - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination - .getDefaultInstance(); + destination_ = com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination, - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder>( - (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) - destination_, + gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder>( + (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 1; - onChanged(); - ; + onChanged();; return gcsDestinationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination, - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder> - bigqueryDestinationBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder> bigqueryDestinationBuilder_; /** - * - * *
          * Destination on BigQuery.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -3350,49 +2828,35 @@ public boolean hasBigqueryDestination() { return destinationCase_ == 2; } /** - * - * *
          * Destination on BigQuery.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; * @return The bigqueryDestination. */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - getBigqueryDestination() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination getBigqueryDestination() { if (bigqueryDestinationBuilder_ == null) { if (destinationCase_ == 2) { - return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) - destination_; + return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) destination_; } - return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - .getDefaultInstance(); + return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.getDefaultInstance(); } else { if (destinationCase_ == 2) { return bigqueryDestinationBuilder_.getMessage(); } - return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - .getDefaultInstance(); + return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.getDefaultInstance(); } } /** - * - * *
          * Destination on BigQuery.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; */ - public Builder setBigqueryDestination( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination value) { + public Builder setBigqueryDestination(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination value) { if (bigqueryDestinationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3406,19 +2870,14 @@ public Builder setBigqueryDestination( return this; } /** - * - * *
          * Destination on BigQuery.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; */ public Builder setBigqueryDestination( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder - builderForValue) { + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder builderForValue) { if (bigqueryDestinationBuilder_ == null) { destination_ = builderForValue.build(); onChanged(); @@ -3429,30 +2888,18 @@ public Builder setBigqueryDestination( return this; } /** - * - * *
          * Destination on BigQuery.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; */ - public Builder mergeBigqueryDestination( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination value) { + public Builder mergeBigqueryDestination(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination value) { if (bigqueryDestinationBuilder_ == null) { - if (destinationCase_ == 2 - && destination_ - != com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - .getDefaultInstance()) { - destination_ = - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - .newBuilder( - (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) - destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 2 && + destination_ != com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.getDefaultInstance()) { + destination_ = com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.newBuilder((com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -3468,15 +2915,11 @@ public Builder mergeBigqueryDestination( return this; } /** - * - * *
          * Destination on BigQuery.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; */ public Builder clearBigqueryDestination() { if (bigqueryDestinationBuilder_ == null) { @@ -3495,87 +2938,61 @@ public Builder clearBigqueryDestination() { return this; } /** - * - * *
          * Destination on BigQuery.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder - getBigqueryDestinationBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder getBigqueryDestinationBuilder() { return getBigqueryDestinationFieldBuilder().getBuilder(); } /** - * - * *
          * Destination on BigQuery.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder - getBigqueryDestinationOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() { if ((destinationCase_ == 2) && (bigqueryDestinationBuilder_ != null)) { return bigqueryDestinationBuilder_.getMessageOrBuilder(); } else { if (destinationCase_ == 2) { - return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) - destination_; + return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) destination_; } - return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - .getDefaultInstance(); + return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.getDefaultInstance(); } } /** - * - * *
          * Destination on BigQuery.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination, - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder> getBigqueryDestinationFieldBuilder() { if (bigqueryDestinationBuilder_ == null) { if (!(destinationCase_ == 2)) { - destination_ = - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - .getDefaultInstance(); + destination_ = com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.getDefaultInstance(); } - bigqueryDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination, - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig - .BigQueryDestinationOrBuilder>( - (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) - destination_, + bigqueryDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder>( + (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 2; - onChanged(); - ; + onChanged();; return bigqueryDestinationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3585,12 +3002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig) private static final com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig(); } @@ -3599,16 +3016,27 @@ public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IamPolicyAnalysisOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IamPolicyAnalysisOutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IamPolicyAnalysisOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3623,4 +3051,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfigOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfigOrBuilder.java similarity index 50% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfigOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfigOrBuilder.java index 0e02268b9e46..044214c54096 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfigOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfigOrBuilder.java @@ -1,110 +1,65 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface IamPolicyAnalysisOutputConfigOrBuilder - extends +public interface IamPolicyAnalysisOutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Destination on Cloud Storage.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
        * Destination on Cloud Storage.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; * @return The gcsDestination. */ com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination getGcsDestination(); /** - * - * *
        * Destination on Cloud Storage.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; */ - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder - getGcsDestinationOrBuilder(); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** - * - * *
        * Destination on BigQuery.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; * @return Whether the bigqueryDestination field is set. */ boolean hasBigqueryDestination(); /** - * - * *
        * Destination on BigQuery.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; * @return The bigqueryDestination. */ - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - getBigqueryDestination(); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination getBigqueryDestination(); /** - * - * *
        * Destination on BigQuery.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; - * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; */ - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder - getBigqueryDestinationOrBuilder(); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder(); - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.DestinationCase - getDestinationCase(); + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.DestinationCase getDestinationCase(); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQuery.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQuery.java similarity index 64% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQuery.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQuery.java index 4e7987d6f478..2a4e801bd9fc 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQuery.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQuery.java @@ -1,215 +1,58 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * IAM policy analysis query message.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisQuery} */ -public final class IamPolicyAnalysisQuery extends com.google.protobuf.GeneratedMessageV3 - implements +public final class IamPolicyAnalysisQuery extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisQuery) IamPolicyAnalysisQueryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use IamPolicyAnalysisQuery.newBuilder() to construct. private IamPolicyAnalysisQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IamPolicyAnalysisQuery() { scope_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IamPolicyAnalysisQuery(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private IamPolicyAnalysisQuery( - 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(); - - scope_ = s; - break; - } - case 18: - { - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder subBuilder = - null; - if (resourceSelector_ != null) { - subBuilder = resourceSelector_.toBuilder(); - } - resourceSelector_ = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resourceSelector_); - resourceSelector_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder subBuilder = - null; - if (identitySelector_ != null) { - subBuilder = identitySelector_.toBuilder(); - } - identitySelector_ = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(identitySelector_); - identitySelector_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder subBuilder = - null; - if (accessSelector_ != null) { - subBuilder = accessSelector_.toBuilder(); - } - accessSelector_ = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(accessSelector_); - accessSelector_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder subBuilder = null; - if (options_ != null) { - subBuilder = options_.toBuilder(); - } - options_ = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(options_); - options_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder subBuilder = - null; - if (conditionContext_ != null) { - subBuilder = conditionContext_.toBuilder(); - } - conditionContext_ = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(conditionContext_); - conditionContext_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.class, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.class, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder.class); } - public interface ResourceSelectorOrBuilder - extends + public interface ResourceSelectorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Required. The [full resource name]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -218,13 +61,10 @@ public interface ResourceSelectorOrBuilder
          * 
    * * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The fullResourceName. */ java.lang.String getFullResourceName(); /** - * - * *
          * Required. The [full resource name]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -233,14 +73,12 @@ public interface ResourceSelectorOrBuilder
          * 
    * * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for fullResourceName. */ - com.google.protobuf.ByteString getFullResourceNameBytes(); + com.google.protobuf.ByteString + getFullResourceNameBytes(); } /** - * - * *
        * Specifies the resource to analyze for access policies, which may be set
        * directly on the resource, or on ancestors such as organizations, folders or
    @@ -249,97 +87,47 @@ public interface ResourceSelectorOrBuilder
        *
        * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector}
        */
    -  public static final class ResourceSelector extends com.google.protobuf.GeneratedMessageV3
    -      implements
    +  public static final class ResourceSelector extends
    +      com.google.protobuf.GeneratedMessageV3 implements
           // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector)
           ResourceSelectorOrBuilder {
    -    private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
         // Use ResourceSelector.newBuilder() to construct.
         private ResourceSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
    -
         private ResourceSelector() {
           fullResourceName_ = "";
         }
     
         @java.lang.Override
         @SuppressWarnings({"unused"})
    -    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +    protected java.lang.Object newInstance(
    +        UnusedPrivateParameter unused) {
           return new ResourceSelector();
         }
     
         @java.lang.Override
    -    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    +    public final com.google.protobuf.UnknownFieldSet
    +    getUnknownFields() {
           return this.unknownFields;
         }
    -
    -    private ResourceSelector(
    -        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();
    -
    -                fullResourceName_ = s;
    -                break;
    -              }
    -            default:
    -              {
    -                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                  done = true;
    -                }
    -                break;
    -              }
    -          }
    -        }
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(this);
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -      } finally {
    -        this.unknownFields = unknownFields.build();
    -        makeExtensionsImmutable();
    -      }
    -    }
    -
    -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetServiceProto
    -          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor
    +        getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetServiceProto
    -          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.class,
    -              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder.class);
    +              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.class, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder.class);
         }
     
         public static final int FULL_RESOURCE_NAME_FIELD_NUMBER = 1;
         private volatile java.lang.Object fullResourceName_;
         /**
    -     *
    -     *
          * 
          * Required. The [full resource name]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -348,7 +136,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          * 
    * * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The fullResourceName. */ @java.lang.Override @@ -357,15 +144,14 @@ public java.lang.String getFullResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fullResourceName_ = s; return s; } } /** - * - * *
          * Required. The [full resource name]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -374,15 +160,16 @@ public java.lang.String getFullResourceName() {
          * 
    * * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for fullResourceName. */ @java.lang.Override - public com.google.protobuf.ByteString getFullResourceNameBytes() { + public com.google.protobuf.ByteString + getFullResourceNameBytes() { java.lang.Object ref = fullResourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fullResourceName_ = b; return b; } else { @@ -391,7 +178,6 @@ public com.google.protobuf.ByteString getFullResourceNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -403,11 +189,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fullResourceName_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -419,7 +206,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fullResourceName_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -427,16 +214,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector other = - (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector other = (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector) obj; - if (!getFullResourceName().equals(other.getFullResourceName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getFullResourceName() + .equals(other.getFullResourceName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -449,101 +236,93 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FULL_RESOURCE_NAME_FIELD_NUMBER; hash = (53 * hash) + getFullResourceName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector 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.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector - 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.asset.v1.IamPolicyAnalysisQuery.ResourceSelector 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.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -553,8 +332,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * Specifies the resource to analyze for access policies, which may be set
          * directly on the resource, or on ancestors such as organizations, folders or
    @@ -563,41 +340,33 @@ protected Builder newBuilderForType(
          *
          * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector}
          */
    -    public static final class Builder
    -        extends com.google.protobuf.GeneratedMessageV3.Builder
    -        implements
    +    public static final class Builder extends
    +        com.google.protobuf.GeneratedMessageV3.Builder implements
             // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector)
             com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder {
    -      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -        return com.google.cloud.asset.v1.AssetServiceProto
    -            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_descriptor;
    +      public static final com.google.protobuf.Descriptors.Descriptor
    +          getDescriptor() {
    +        return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_descriptor;
           }
     
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
    -        return com.google.cloud.asset.v1.AssetServiceProto
    -            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_fieldAccessorTable
    +        return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
    -                com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.class,
    -                com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder.class);
    +                com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.class, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder.class);
           }
     
    -      // Construct using
    -      // com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.newBuilder()
    +      // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.newBuilder()
           private Builder() {
    -        maybeForceBuilderInitialization();
    +
           }
     
    -      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +      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();
    @@ -607,16 +376,14 @@ public Builder clear() {
           }
     
           @java.lang.Override
    -      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -        return com.google.cloud.asset.v1.AssetServiceProto
    -            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_descriptor;
    +      public com.google.protobuf.Descriptors.Descriptor
    +          getDescriptorForType() {
    +        return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_descriptor;
           }
     
           @java.lang.Override
    -      public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector
    -          getDefaultInstanceForType() {
    -        return com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector
    -            .getDefaultInstance();
    +      public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector getDefaultInstanceForType() {
    +        return com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.getDefaultInstance();
           }
     
           @java.lang.Override
    @@ -630,8 +397,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector build()
     
           @java.lang.Override
           public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector buildPartial() {
    -        com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector result =
    -            new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector(this);
    +        com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector result = new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector(this);
             result.fullResourceName_ = fullResourceName_;
             onBuilt();
             return result;
    @@ -641,58 +407,51 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector buildPa
           public Builder clone() {
             return super.clone();
           }
    -
           @java.lang.Override
           public Builder setField(
    -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
    +          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) {
    +      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) {
    +      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) {
    +          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) {
    +          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.asset.v1.IamPolicyAnalysisQuery.ResourceSelector) {
    -          return mergeFrom(
    -              (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector) other);
    +          return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector)other);
             } else {
               super.mergeFrom(other);
               return this;
             }
           }
     
    -      public Builder mergeFrom(
    -          com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector other) {
    -        if (other
    -            == com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector
    -                .getDefaultInstance()) return this;
    +      public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector other) {
    +        if (other == com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.getDefaultInstance()) return this;
             if (!other.getFullResourceName().isEmpty()) {
               fullResourceName_ = other.fullResourceName_;
               onChanged();
             }
    -        this.mergeUnknownFields(other.unknownFields);
    +        this.mergeUnknownFields(other.getUnknownFields());
             onChanged();
             return this;
           }
    @@ -707,26 +466,40 @@ public Builder mergeFrom(
               com.google.protobuf.CodedInputStream input,
               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
               throws java.io.IOException {
    -        com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parsedMessage = null;
    +        if (extensionRegistry == null) {
    +          throw new java.lang.NullPointerException();
    +        }
             try {
    -          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +          boolean done = false;
    +          while (!done) {
    +            int tag = input.readTag();
    +            switch (tag) {
    +              case 0:
    +                done = true;
    +                break;
    +              case 10: {
    +                fullResourceName_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +              default: {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +            } // switch (tag)
    +          } // while (!done)
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -          parsedMessage =
    -              (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector)
    -                  e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
    -          if (parsedMessage != null) {
    -            mergeFrom(parsedMessage);
    -          }
    -        }
    +          onChanged();
    +        } // finally
             return this;
           }
     
           private java.lang.Object fullResourceName_ = "";
           /**
    -       *
    -       *
            * 
            * Required. The [full resource name]
            * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -735,13 +508,13 @@ public Builder mergeFrom(
            * 
    * * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The fullResourceName. */ public java.lang.String getFullResourceName() { java.lang.Object ref = fullResourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fullResourceName_ = s; return s; @@ -750,8 +523,6 @@ public java.lang.String getFullResourceName() { } } /** - * - * *
            * Required. The [full resource name]
            * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -760,14 +531,15 @@ public java.lang.String getFullResourceName() {
            * 
    * * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for fullResourceName. */ - public com.google.protobuf.ByteString getFullResourceNameBytes() { + public com.google.protobuf.ByteString + getFullResourceNameBytes() { java.lang.Object ref = fullResourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fullResourceName_ = b; return b; } else { @@ -775,8 +547,6 @@ public com.google.protobuf.ByteString getFullResourceNameBytes() { } } /** - * - * *
            * Required. The [full resource name]
            * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -785,22 +555,20 @@ public com.google.protobuf.ByteString getFullResourceNameBytes() {
            * 
    * * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The fullResourceName to set. * @return This builder for chaining. */ - public Builder setFullResourceName(java.lang.String value) { + public Builder setFullResourceName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fullResourceName_ = value; onChanged(); return this; } /** - * - * *
            * Required. The [full resource name]
            * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -809,18 +577,15 @@ public Builder setFullResourceName(java.lang.String value) {
            * 
    * * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFullResourceName() { - + fullResourceName_ = getDefaultInstance().getFullResourceName(); onChanged(); return this; } /** - * - * *
            * Required. The [full resource name]
            * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -829,21 +594,20 @@ public Builder clearFullResourceName() {
            * 
    * * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for fullResourceName to set. * @return This builder for chaining. */ - public Builder setFullResourceNameBytes(com.google.protobuf.ByteString value) { + public Builder setFullResourceNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fullResourceName_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -856,32 +620,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector) - private static final com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector - DEFAULT_INSTANCE; - + private static final com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector(); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector - getDefaultInstance() { + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceSelector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceSelector(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceSelector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -893,20 +666,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector - getDefaultInstanceForType() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface IdentitySelectorOrBuilder - extends + public interface IdentitySelectorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Required. The identity appear in the form of principals in
          * [IAM policy
    @@ -921,13 +691,10 @@ public interface IdentitySelectorOrBuilder
          * 
    * * string identity = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The identity. */ java.lang.String getIdentity(); /** - * - * *
          * Required. The identity appear in the form of principals in
          * [IAM policy
    @@ -942,14 +709,12 @@ public interface IdentitySelectorOrBuilder
          * 
    * * string identity = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for identity. */ - com.google.protobuf.ByteString getIdentityBytes(); + com.google.protobuf.ByteString + getIdentityBytes(); } /** - * - * *
        * Specifies an identity for which to determine resource access, based on
        * roles assigned either directly to them or to the groups they belong to,
    @@ -958,97 +723,47 @@ public interface IdentitySelectorOrBuilder
        *
        * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector}
        */
    -  public static final class IdentitySelector extends com.google.protobuf.GeneratedMessageV3
    -      implements
    +  public static final class IdentitySelector extends
    +      com.google.protobuf.GeneratedMessageV3 implements
           // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector)
           IdentitySelectorOrBuilder {
    -    private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
         // Use IdentitySelector.newBuilder() to construct.
         private IdentitySelector(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
    -
         private IdentitySelector() {
           identity_ = "";
         }
     
         @java.lang.Override
         @SuppressWarnings({"unused"})
    -    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +    protected java.lang.Object newInstance(
    +        UnusedPrivateParameter unused) {
           return new IdentitySelector();
         }
     
         @java.lang.Override
    -    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    +    public final com.google.protobuf.UnknownFieldSet
    +    getUnknownFields() {
           return this.unknownFields;
         }
    -
    -    private IdentitySelector(
    -        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();
    -
    -                identity_ = s;
    -                break;
    -              }
    -            default:
    -              {
    -                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                  done = true;
    -                }
    -                break;
    -              }
    -          }
    -        }
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(this);
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -      } finally {
    -        this.unknownFields = unknownFields.build();
    -        makeExtensionsImmutable();
    -      }
    -    }
    -
    -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetServiceProto
    -          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor
    +        getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetServiceProto
    -          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.class,
    -              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder.class);
    +              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.class, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder.class);
         }
     
         public static final int IDENTITY_FIELD_NUMBER = 1;
         private volatile java.lang.Object identity_;
         /**
    -     *
    -     *
          * 
          * Required. The identity appear in the form of principals in
          * [IAM policy
    @@ -1063,7 +778,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          * 
    * * string identity = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The identity. */ @java.lang.Override @@ -1072,15 +786,14 @@ public java.lang.String getIdentity() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identity_ = s; return s; } } /** - * - * *
          * Required. The identity appear in the form of principals in
          * [IAM policy
    @@ -1095,15 +808,16 @@ public java.lang.String getIdentity() {
          * 
    * * string identity = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for identity. */ @java.lang.Override - public com.google.protobuf.ByteString getIdentityBytes() { + public com.google.protobuf.ByteString + getIdentityBytes() { java.lang.Object ref = identity_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); identity_ = b; return b; } else { @@ -1112,7 +826,6 @@ public com.google.protobuf.ByteString getIdentityBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1124,11 +837,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identity_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, identity_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1140,7 +854,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identity_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, identity_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1148,16 +862,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector other = - (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector other = (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector) obj; - if (!getIdentity().equals(other.getIdentity())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getIdentity() + .equals(other.getIdentity())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1170,101 +884,93 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + IDENTITY_FIELD_NUMBER; hash = (53 * hash) + getIdentity().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector 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.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector - 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.asset.v1.IamPolicyAnalysisQuery.IdentitySelector 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.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1274,8 +980,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * Specifies an identity for which to determine resource access, based on
          * roles assigned either directly to them or to the groups they belong to,
    @@ -1284,41 +988,33 @@ protected Builder newBuilderForType(
          *
          * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector}
          */
    -    public static final class Builder
    -        extends com.google.protobuf.GeneratedMessageV3.Builder
    -        implements
    +    public static final class Builder extends
    +        com.google.protobuf.GeneratedMessageV3.Builder implements
             // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector)
             com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder {
    -      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -        return com.google.cloud.asset.v1.AssetServiceProto
    -            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_descriptor;
    +      public static final com.google.protobuf.Descriptors.Descriptor
    +          getDescriptor() {
    +        return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_descriptor;
           }
     
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
    -        return com.google.cloud.asset.v1.AssetServiceProto
    -            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_fieldAccessorTable
    +        return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
    -                com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.class,
    -                com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder.class);
    +                com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.class, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder.class);
           }
     
    -      // Construct using
    -      // com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.newBuilder()
    +      // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.newBuilder()
           private Builder() {
    -        maybeForceBuilderInitialization();
    +
           }
     
    -      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +      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();
    @@ -1328,16 +1024,14 @@ public Builder clear() {
           }
     
           @java.lang.Override
    -      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -        return com.google.cloud.asset.v1.AssetServiceProto
    -            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_descriptor;
    +      public com.google.protobuf.Descriptors.Descriptor
    +          getDescriptorForType() {
    +        return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_descriptor;
           }
     
           @java.lang.Override
    -      public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector
    -          getDefaultInstanceForType() {
    -        return com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector
    -            .getDefaultInstance();
    +      public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector getDefaultInstanceForType() {
    +        return com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.getDefaultInstance();
           }
     
           @java.lang.Override
    @@ -1351,8 +1045,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector build()
     
           @java.lang.Override
           public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector buildPartial() {
    -        com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector result =
    -            new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector(this);
    +        com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector result = new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector(this);
             result.identity_ = identity_;
             onBuilt();
             return result;
    @@ -1362,58 +1055,51 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector buildPa
           public Builder clone() {
             return super.clone();
           }
    -
           @java.lang.Override
           public Builder setField(
    -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
    +          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) {
    +      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) {
    +      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) {
    +          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) {
    +          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.asset.v1.IamPolicyAnalysisQuery.IdentitySelector) {
    -          return mergeFrom(
    -              (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector) other);
    +          return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector)other);
             } else {
               super.mergeFrom(other);
               return this;
             }
           }
     
    -      public Builder mergeFrom(
    -          com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector other) {
    -        if (other
    -            == com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector
    -                .getDefaultInstance()) return this;
    +      public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector other) {
    +        if (other == com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.getDefaultInstance()) return this;
             if (!other.getIdentity().isEmpty()) {
               identity_ = other.identity_;
               onChanged();
             }
    -        this.mergeUnknownFields(other.unknownFields);
    +        this.mergeUnknownFields(other.getUnknownFields());
             onChanged();
             return this;
           }
    @@ -1428,26 +1114,40 @@ public Builder mergeFrom(
               com.google.protobuf.CodedInputStream input,
               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
               throws java.io.IOException {
    -        com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parsedMessage = null;
    +        if (extensionRegistry == null) {
    +          throw new java.lang.NullPointerException();
    +        }
             try {
    -          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +          boolean done = false;
    +          while (!done) {
    +            int tag = input.readTag();
    +            switch (tag) {
    +              case 0:
    +                done = true;
    +                break;
    +              case 10: {
    +                identity_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +              default: {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +            } // switch (tag)
    +          } // while (!done)
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -          parsedMessage =
    -              (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector)
    -                  e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
    -          if (parsedMessage != null) {
    -            mergeFrom(parsedMessage);
    -          }
    -        }
    +          onChanged();
    +        } // finally
             return this;
           }
     
           private java.lang.Object identity_ = "";
           /**
    -       *
    -       *
            * 
            * Required. The identity appear in the form of principals in
            * [IAM policy
    @@ -1462,13 +1162,13 @@ public Builder mergeFrom(
            * 
    * * string identity = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The identity. */ public java.lang.String getIdentity() { java.lang.Object ref = identity_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identity_ = s; return s; @@ -1477,8 +1177,6 @@ public java.lang.String getIdentity() { } } /** - * - * *
            * Required. The identity appear in the form of principals in
            * [IAM policy
    @@ -1493,14 +1191,15 @@ public java.lang.String getIdentity() {
            * 
    * * string identity = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for identity. */ - public com.google.protobuf.ByteString getIdentityBytes() { + public com.google.protobuf.ByteString + getIdentityBytes() { java.lang.Object ref = identity_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); identity_ = b; return b; } else { @@ -1508,8 +1207,6 @@ public com.google.protobuf.ByteString getIdentityBytes() { } } /** - * - * *
            * Required. The identity appear in the form of principals in
            * [IAM policy
    @@ -1524,22 +1221,20 @@ public com.google.protobuf.ByteString getIdentityBytes() {
            * 
    * * string identity = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The identity to set. * @return This builder for chaining. */ - public Builder setIdentity(java.lang.String value) { + public Builder setIdentity( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + identity_ = value; onChanged(); return this; } /** - * - * *
            * Required. The identity appear in the form of principals in
            * [IAM policy
    @@ -1554,18 +1249,15 @@ public Builder setIdentity(java.lang.String value) {
            * 
    * * string identity = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearIdentity() { - + identity_ = getDefaultInstance().getIdentity(); onChanged(); return this; } /** - * - * *
            * Required. The identity appear in the form of principals in
            * [IAM policy
    @@ -1580,21 +1272,20 @@ public Builder clearIdentity() {
            * 
    * * string identity = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for identity to set. * @return This builder for chaining. */ - public Builder setIdentityBytes(com.google.protobuf.ByteString value) { + public Builder setIdentityBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + identity_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1607,32 +1298,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector) - private static final com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector - DEFAULT_INSTANCE; - + private static final com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector(); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector - getDefaultInstance() { + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IdentitySelector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IdentitySelector(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IdentitySelector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1644,122 +1344,99 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector - getDefaultInstanceForType() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface AccessSelectorOrBuilder - extends + public interface AccessSelectorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Optional. The roles to appear in result.
          * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the roles. */ - java.util.List getRolesList(); + java.util.List + getRolesList(); /** - * - * *
          * Optional. The roles to appear in result.
          * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of roles. */ int getRolesCount(); /** - * - * *
          * Optional. The roles to appear in result.
          * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The roles at the given index. */ java.lang.String getRoles(int index); /** - * - * *
          * Optional. The roles to appear in result.
          * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the roles at the given index. */ - com.google.protobuf.ByteString getRolesBytes(int index); + com.google.protobuf.ByteString + getRolesBytes(int index); /** - * - * *
          * Optional. The permissions to appear in result.
          * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the permissions. */ - java.util.List getPermissionsList(); + java.util.List + getPermissionsList(); /** - * - * *
          * Optional. The permissions to appear in result.
          * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of permissions. */ int getPermissionsCount(); /** - * - * *
          * Optional. The permissions to appear in result.
          * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The permissions at the given index. */ java.lang.String getPermissions(int index); /** - * - * *
          * Optional. The permissions to appear in result.
          * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - com.google.protobuf.ByteString getPermissionsBytes(int index); + com.google.protobuf.ByteString + getPermissionsBytes(int index); } /** - * - * *
        * Specifies roles and/or permissions to analyze, to determine both the
        * identities possessing them and the resources they control. If multiple
    @@ -1770,16 +1447,15 @@ public interface AccessSelectorOrBuilder
        *
        * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector}
        */
    -  public static final class AccessSelector extends com.google.protobuf.GeneratedMessageV3
    -      implements
    +  public static final class AccessSelector extends
    +      com.google.protobuf.GeneratedMessageV3 implements
           // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector)
           AccessSelectorOrBuilder {
    -    private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
         // Use AccessSelector.newBuilder() to construct.
         private AccessSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
    -
         private AccessSelector() {
           roles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
           permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    @@ -1787,135 +1463,60 @@ private AccessSelector() {
     
         @java.lang.Override
         @SuppressWarnings({"unused"})
    -    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +    protected java.lang.Object newInstance(
    +        UnusedPrivateParameter unused) {
           return new AccessSelector();
         }
     
         @java.lang.Override
    -    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    +    public final com.google.protobuf.UnknownFieldSet
    +    getUnknownFields() {
           return this.unknownFields;
         }
    -
    -    private AccessSelector(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      this();
    -      if (extensionRegistry == null) {
    -        throw new java.lang.NullPointerException();
    -      }
    -      int mutable_bitField0_ = 0;
    -      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -          com.google.protobuf.UnknownFieldSet.newBuilder();
    -      try {
    -        boolean done = false;
    -        while (!done) {
    -          int tag = input.readTag();
    -          switch (tag) {
    -            case 0:
    -              done = true;
    -              break;
    -            case 10:
    -              {
    -                java.lang.String s = input.readStringRequireUtf8();
    -                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                  roles_ = new com.google.protobuf.LazyStringArrayList();
    -                  mutable_bitField0_ |= 0x00000001;
    -                }
    -                roles_.add(s);
    -                break;
    -              }
    -            case 18:
    -              {
    -                java.lang.String s = input.readStringRequireUtf8();
    -                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
    -                  permissions_ = new com.google.protobuf.LazyStringArrayList();
    -                  mutable_bitField0_ |= 0x00000002;
    -                }
    -                permissions_.add(s);
    -                break;
    -              }
    -            default:
    -              {
    -                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                  done = true;
    -                }
    -                break;
    -              }
    -          }
    -        }
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(this);
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -      } finally {
    -        if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -          roles_ = roles_.getUnmodifiableView();
    -        }
    -        if (((mutable_bitField0_ & 0x00000002) != 0)) {
    -          permissions_ = permissions_.getUnmodifiableView();
    -        }
    -        this.unknownFields = unknownFields.build();
    -        makeExtensionsImmutable();
    -      }
    -    }
    -
    -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetServiceProto
    -          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor
    +        getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetServiceProto
    -          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.class,
    -              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder.class);
    +              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.class, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder.class);
         }
     
         public static final int ROLES_FIELD_NUMBER = 1;
         private com.google.protobuf.LazyStringList roles_;
         /**
    -     *
    -     *
          * 
          * Optional. The roles to appear in result.
          * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the roles. */ - public com.google.protobuf.ProtocolStringList getRolesList() { + public com.google.protobuf.ProtocolStringList + getRolesList() { return roles_; } /** - * - * *
          * Optional. The roles to appear in result.
          * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of roles. */ public int getRolesCount() { return roles_.size(); } /** - * - * *
          * Optional. The roles to appear in result.
          * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The roles at the given index. */ @@ -1923,60 +1524,50 @@ public java.lang.String getRoles(int index) { return roles_.get(index); } /** - * - * *
          * Optional. The roles to appear in result.
          * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the roles at the given index. */ - public com.google.protobuf.ByteString getRolesBytes(int index) { + public com.google.protobuf.ByteString + getRolesBytes(int index) { return roles_.getByteString(index); } public static final int PERMISSIONS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList permissions_; /** - * - * *
          * Optional. The permissions to appear in result.
          * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList getPermissionsList() { + public com.google.protobuf.ProtocolStringList + getPermissionsList() { return permissions_; } /** - * - * *
          * Optional. The permissions to appear in result.
          * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** - * - * *
          * Optional. The permissions to appear in result.
          * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -1984,23 +1575,20 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** - * - * *
          * Optional. The permissions to appear in result.
          * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString getPermissionsBytes(int index) { + public com.google.protobuf.ByteString + getPermissionsBytes(int index) { return permissions_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2012,14 +1600,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < roles_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, roles_.getRaw(i)); } for (int i = 0; i < permissions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, permissions_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2044,7 +1633,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getPermissionsList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -2052,17 +1641,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector other = - (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector other = (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector) obj; - if (!getRolesList().equals(other.getRolesList())) return false; - if (!getPermissionsList().equals(other.getPermissionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getRolesList() + .equals(other.getRolesList())) return false; + if (!getPermissionsList() + .equals(other.getPermissionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2081,101 +1671,93 @@ public int hashCode() { hash = (37 * hash) + PERMISSIONS_FIELD_NUMBER; hash = (53 * hash) + getPermissionsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector 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.asset.v1.IamPolicyAnalysisQuery.AccessSelector parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector - 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.asset.v1.IamPolicyAnalysisQuery.AccessSelector 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.asset.v1.IamPolicyAnalysisQuery.AccessSelector parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2185,8 +1767,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * Specifies roles and/or permissions to analyze, to determine both the
          * identities possessing them and the resources they control. If multiple
    @@ -2197,41 +1777,33 @@ protected Builder newBuilderForType(
          *
          * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector}
          */
    -    public static final class Builder
    -        extends com.google.protobuf.GeneratedMessageV3.Builder
    -        implements
    +    public static final class Builder extends
    +        com.google.protobuf.GeneratedMessageV3.Builder implements
             // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector)
             com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder {
    -      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -        return com.google.cloud.asset.v1.AssetServiceProto
    -            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_descriptor;
    +      public static final com.google.protobuf.Descriptors.Descriptor
    +          getDescriptor() {
    +        return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_descriptor;
           }
     
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
    -        return com.google.cloud.asset.v1.AssetServiceProto
    -            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_fieldAccessorTable
    +        return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
    -                com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.class,
    -                com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder.class);
    +                com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.class, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder.class);
           }
     
    -      // Construct using
    -      // com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.newBuilder()
    +      // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.newBuilder()
           private Builder() {
    -        maybeForceBuilderInitialization();
    +
           }
     
    -      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +      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();
    @@ -2243,14 +1815,13 @@ public Builder clear() {
           }
     
           @java.lang.Override
    -      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -        return com.google.cloud.asset.v1.AssetServiceProto
    -            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_descriptor;
    +      public com.google.protobuf.Descriptors.Descriptor
    +          getDescriptorForType() {
    +        return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_descriptor;
           }
     
           @java.lang.Override
    -      public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector
    -          getDefaultInstanceForType() {
    +      public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector getDefaultInstanceForType() {
             return com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.getDefaultInstance();
           }
     
    @@ -2265,8 +1836,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector build() {
     
           @java.lang.Override
           public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector buildPartial() {
    -        com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector result =
    -            new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector(this);
    +        com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector result = new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector(this);
             int from_bitField0_ = bitField0_;
             if (((bitField0_ & 0x00000001) != 0)) {
               roles_ = roles_.getUnmodifiableView();
    @@ -2286,52 +1856,46 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector buildPart
           public Builder clone() {
             return super.clone();
           }
    -
           @java.lang.Override
           public Builder setField(
    -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
    +          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) {
    +      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) {
    +      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) {
    +          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) {
    +          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.asset.v1.IamPolicyAnalysisQuery.AccessSelector) {
    -          return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector) other);
    +          return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector)other);
             } else {
               super.mergeFrom(other);
               return this;
             }
           }
     
    -      public Builder mergeFrom(
    -          com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector other) {
    -        if (other
    -            == com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.getDefaultInstance())
    -          return this;
    +      public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector other) {
    +        if (other == com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.getDefaultInstance()) return this;
             if (!other.roles_.isEmpty()) {
               if (roles_.isEmpty()) {
                 roles_ = other.roles_;
    @@ -2352,7 +1916,7 @@ public Builder mergeFrom(
               }
               onChanged();
             }
    -        this.mergeUnknownFields(other.unknownFields);
    +        this.mergeUnknownFields(other.getUnknownFields());
             onChanged();
             return this;
           }
    @@ -2367,70 +1931,82 @@ public Builder mergeFrom(
               com.google.protobuf.CodedInputStream input,
               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
               throws java.io.IOException {
    -        com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector parsedMessage = null;
    +        if (extensionRegistry == null) {
    +          throw new java.lang.NullPointerException();
    +        }
             try {
    -          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +          boolean done = false;
    +          while (!done) {
    +            int tag = input.readTag();
    +            switch (tag) {
    +              case 0:
    +                done = true;
    +                break;
    +              case 10: {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureRolesIsMutable();
    +                roles_.add(s);
    +                break;
    +              } // case 10
    +              case 18: {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensurePermissionsIsMutable();
    +                permissions_.add(s);
    +                break;
    +              } // case 18
    +              default: {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +            } // switch (tag)
    +          } // while (!done)
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -          parsedMessage =
    -              (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector)
    -                  e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
    -          if (parsedMessage != null) {
    -            mergeFrom(parsedMessage);
    -          }
    -        }
    +          onChanged();
    +        } // finally
             return this;
           }
    -
           private int bitField0_;
     
    -      private com.google.protobuf.LazyStringList roles_ =
    -          com.google.protobuf.LazyStringArrayList.EMPTY;
    -
    +      private com.google.protobuf.LazyStringList roles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
           private void ensureRolesIsMutable() {
             if (!((bitField0_ & 0x00000001) != 0)) {
               roles_ = new com.google.protobuf.LazyStringArrayList(roles_);
               bitField0_ |= 0x00000001;
    -        }
    +         }
           }
           /**
    -       *
    -       *
            * 
            * Optional. The roles to appear in result.
            * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the roles. */ - public com.google.protobuf.ProtocolStringList getRolesList() { + public com.google.protobuf.ProtocolStringList + getRolesList() { return roles_.getUnmodifiableView(); } /** - * - * *
            * Optional. The roles to appear in result.
            * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of roles. */ public int getRolesCount() { return roles_.size(); } /** - * - * *
            * Optional. The roles to appear in result.
            * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The roles at the given index. */ @@ -2438,90 +2014,80 @@ public java.lang.String getRoles(int index) { return roles_.get(index); } /** - * - * *
            * Optional. The roles to appear in result.
            * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the roles at the given index. */ - public com.google.protobuf.ByteString getRolesBytes(int index) { + public com.google.protobuf.ByteString + getRolesBytes(int index) { return roles_.getByteString(index); } /** - * - * *
            * Optional. The roles to appear in result.
            * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The roles to set. * @return This builder for chaining. */ - public Builder setRoles(int index, java.lang.String value) { + public Builder setRoles( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRolesIsMutable(); + throw new NullPointerException(); + } + ensureRolesIsMutable(); roles_.set(index, value); onChanged(); return this; } /** - * - * *
            * Optional. The roles to appear in result.
            * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The roles to add. * @return This builder for chaining. */ - public Builder addRoles(java.lang.String value) { + public Builder addRoles( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRolesIsMutable(); + throw new NullPointerException(); + } + ensureRolesIsMutable(); roles_.add(value); onChanged(); return this; } /** - * - * *
            * Optional. The roles to appear in result.
            * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The roles to add. * @return This builder for chaining. */ - public Builder addAllRoles(java.lang.Iterable values) { + public Builder addAllRoles( + java.lang.Iterable values) { ensureRolesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, roles_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, roles_); onChanged(); return this; } /** - * - * *
            * Optional. The roles to appear in result.
            * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRoles() { @@ -2531,74 +2097,62 @@ public Builder clearRoles() { return this; } /** - * - * *
            * Optional. The roles to appear in result.
            * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the roles to add. * @return This builder for chaining. */ - public Builder addRolesBytes(com.google.protobuf.ByteString value) { + public Builder addRolesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureRolesIsMutable(); roles_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList permissions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePermissionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
            * Optional. The permissions to appear in result.
            * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList getPermissionsList() { + public com.google.protobuf.ProtocolStringList + getPermissionsList() { return permissions_.getUnmodifiableView(); } /** - * - * *
            * Optional. The permissions to appear in result.
            * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** - * - * *
            * Optional. The permissions to appear in result.
            * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -2606,90 +2160,80 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** - * - * *
            * Optional. The permissions to appear in result.
            * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString getPermissionsBytes(int index) { + public com.google.protobuf.ByteString + getPermissionsBytes(int index) { return permissions_.getByteString(index); } /** - * - * *
            * Optional. The permissions to appear in result.
            * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The permissions to set. * @return This builder for chaining. */ - public Builder setPermissions(int index, java.lang.String value) { + public Builder setPermissions( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); return this; } /** - * - * *
            * Optional. The permissions to appear in result.
            * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The permissions to add. * @return This builder for chaining. */ - public Builder addPermissions(java.lang.String value) { + public Builder addPermissions( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } /** - * - * *
            * Optional. The permissions to appear in result.
            * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The permissions to add. * @return This builder for chaining. */ - public Builder addAllPermissions(java.lang.Iterable values) { + public Builder addAllPermissions( + java.lang.Iterable values) { ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, permissions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, permissions_); onChanged(); return this; } /** - * - * *
            * Optional. The permissions to appear in result.
            * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPermissions() { @@ -2699,28 +2243,25 @@ public Builder clearPermissions() { return this; } /** - * - * *
            * Optional. The permissions to appear in result.
            * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the permissions to add. * @return This builder for chaining. */ - public Builder addPermissionsBytes(com.google.protobuf.ByteString value) { + public Builder addPermissionsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2733,32 +2274,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector) - private static final com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector - DEFAULT_INSTANCE; - + private static final com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector(); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector - getDefaultInstance() { + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessSelector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AccessSelector(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessSelector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2770,76 +2320,63 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector - getDefaultInstanceForType() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface OptionsOrBuilder - extends + public interface OptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisQuery.Options) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Optional. If true, the identities section of the result will expand any
          * Google groups appearing in an IAM policy binding.
    -     * If
    -     * [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector]
    -     * is specified, the identity in the result will be determined by the
    -     * selector, and this flag is not allowed to set.
    +     * If [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector] is specified, the
    +     * identity in the result will be determined by the selector, and this flag
    +     * is not allowed to set.
          * If true, the default max expansion per group is 1000 for
          * AssetService.AnalyzeIamPolicy][].
          * Default is false.
          * 
    * * bool expand_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The expandGroups. */ boolean getExpandGroups(); /** - * - * *
          * Optional. If true, the access section of result will expand any roles
          * appearing in IAM policy bindings to include their permissions.
    -     * If
    -     * [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector]
    -     * is specified, the access section of the result will be determined by the
    -     * selector, and this flag is not allowed to set.
    +     * If [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector] is specified, the access
    +     * section of the result will be determined by the selector, and this flag
    +     * is not allowed to set.
          * Default is false.
          * 
    * * bool expand_roles = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The expandRoles. */ boolean getExpandRoles(); /** - * - * *
    -     * Optional. If true and
    -     * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
    -     * is not specified, the resource section of the result will expand any
    -     * resource attached to an IAM policy to include resources lower in the
    -     * resource hierarchy.
    +     * Optional. If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is not
    +     * specified, the resource section of the result will expand any resource
    +     * attached to an IAM policy to include resources lower in the resource
    +     * hierarchy.
          * For example, if the request analyzes for which resources user A has
          * permission P, and the results include an IAM policy with P on a GCP
          * folder, the results will also include resources in that folder with
          * permission P.
    -     * If true and
    -     * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
    -     * is specified, the resource section of the result will expand the
    -     * specified resource to include resources lower in the resource hierarchy.
    -     * Only project or lower resources are supported. Folder and organization
    -     * resource cannot be used together with this option.
    +     * If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is specified,
    +     * the resource section of the result will expand the specified resource to
    +     * include resources lower in the resource hierarchy. Only project or
    +     * lower resources are supported. Folder and organization resource cannot be
    +     * used together with this option.
          * For example, if the request analyzes for which users have permission P on
          * a GCP project with this option enabled, the results will include all
          * users who have permission P on that project or any lower resource.
    @@ -2850,50 +2387,41 @@ public interface OptionsOrBuilder
          * 
    * * bool expand_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The expandResources. */ boolean getExpandResources(); /** - * - * *
    -     * Optional. If true, the result will output the relevant parent/child
    -     * relationships between resources. Default is false.
    +     * Optional. If true, the result will output the relevant parent/child relationships
    +     * between resources.
    +     * Default is false.
          * 
    * * bool output_resource_edges = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The outputResourceEdges. */ boolean getOutputResourceEdges(); /** - * - * *
    -     * Optional. If true, the result will output the relevant membership
    -     * relationships between groups and other groups, and between groups and
    -     * principals. Default is false.
    +     * Optional. If true, the result will output the relevant membership relationships
    +     * between groups and other groups, and between groups and principals.
    +     * Default is false.
          * 
    * * bool output_group_edges = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The outputGroupEdges. */ boolean getOutputGroupEdges(); /** - * - * *
    -     * Optional. If true, the response will include access analysis from
    -     * identities to resources via service account impersonation. This is a very
    -     * expensive operation, because many derived queries will be executed. We
    -     * highly recommend you use
    -     * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -     * rpc instead.
    +     * Optional. If true, the response will include access analysis from identities to
    +     * resources via service account impersonation. This is a very expensive
    +     * operation, because many derived queries will be executed. We highly
    +     * recommend you use [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc
    +     * instead.
          * For example, if the request analyzes for which resources user A has
          * permission P, and there's an IAM policy states user A has
          * iam.serviceAccounts.getAccessToken permission to a service account SA,
    @@ -2918,149 +2446,70 @@ public interface OptionsOrBuilder
          * Default is false.
          * 
    * - * - * bool analyze_service_account_impersonation = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool analyze_service_account_impersonation = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The analyzeServiceAccountImpersonation. */ boolean getAnalyzeServiceAccountImpersonation(); } /** - * - * *
        * Contains query options.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisQuery.Options} */ - public static final class Options extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Options extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisQuery.Options) OptionsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Options.newBuilder() to construct. private Options(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Options() {} + private Options() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Options(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private Options( - 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: - { - expandGroups_ = input.readBool(); - break; - } - case 16: - { - expandRoles_ = input.readBool(); - break; - } - case 24: - { - expandResources_ = input.readBool(); - break; - } - case 32: - { - outputResourceEdges_ = input.readBool(); - break; - } - case 40: - { - outputGroupEdges_ = input.readBool(); - break; - } - case 48: - { - analyzeServiceAccountImpersonation_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.class, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.class, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder.class); } public static final int EXPAND_GROUPS_FIELD_NUMBER = 1; private boolean expandGroups_; /** - * - * *
          * Optional. If true, the identities section of the result will expand any
          * Google groups appearing in an IAM policy binding.
    -     * If
    -     * [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector]
    -     * is specified, the identity in the result will be determined by the
    -     * selector, and this flag is not allowed to set.
    +     * If [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector] is specified, the
    +     * identity in the result will be determined by the selector, and this flag
    +     * is not allowed to set.
          * If true, the default max expansion per group is 1000 for
          * AssetService.AnalyzeIamPolicy][].
          * Default is false.
          * 
    * * bool expand_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The expandGroups. */ @java.lang.Override @@ -3071,20 +2520,16 @@ public boolean getExpandGroups() { public static final int EXPAND_ROLES_FIELD_NUMBER = 2; private boolean expandRoles_; /** - * - * *
          * Optional. If true, the access section of result will expand any roles
          * appearing in IAM policy bindings to include their permissions.
    -     * If
    -     * [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector]
    -     * is specified, the access section of the result will be determined by the
    -     * selector, and this flag is not allowed to set.
    +     * If [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector] is specified, the access
    +     * section of the result will be determined by the selector, and this flag
    +     * is not allowed to set.
          * Default is false.
          * 
    * * bool expand_roles = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The expandRoles. */ @java.lang.Override @@ -3095,24 +2540,20 @@ public boolean getExpandRoles() { public static final int EXPAND_RESOURCES_FIELD_NUMBER = 3; private boolean expandResources_; /** - * - * *
    -     * Optional. If true and
    -     * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
    -     * is not specified, the resource section of the result will expand any
    -     * resource attached to an IAM policy to include resources lower in the
    -     * resource hierarchy.
    +     * Optional. If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is not
    +     * specified, the resource section of the result will expand any resource
    +     * attached to an IAM policy to include resources lower in the resource
    +     * hierarchy.
          * For example, if the request analyzes for which resources user A has
          * permission P, and the results include an IAM policy with P on a GCP
          * folder, the results will also include resources in that folder with
          * permission P.
    -     * If true and
    -     * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
    -     * is specified, the resource section of the result will expand the
    -     * specified resource to include resources lower in the resource hierarchy.
    -     * Only project or lower resources are supported. Folder and organization
    -     * resource cannot be used together with this option.
    +     * If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is specified,
    +     * the resource section of the result will expand the specified resource to
    +     * include resources lower in the resource hierarchy. Only project or
    +     * lower resources are supported. Folder and organization resource cannot be
    +     * used together with this option.
          * For example, if the request analyzes for which users have permission P on
          * a GCP project with this option enabled, the results will include all
          * users who have permission P on that project or any lower resource.
    @@ -3123,7 +2564,6 @@ public boolean getExpandRoles() {
          * 
    * * bool expand_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The expandResources. */ @java.lang.Override @@ -3134,15 +2574,13 @@ public boolean getExpandResources() { public static final int OUTPUT_RESOURCE_EDGES_FIELD_NUMBER = 4; private boolean outputResourceEdges_; /** - * - * *
    -     * Optional. If true, the result will output the relevant parent/child
    -     * relationships between resources. Default is false.
    +     * Optional. If true, the result will output the relevant parent/child relationships
    +     * between resources.
    +     * Default is false.
          * 
    * * bool output_resource_edges = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The outputResourceEdges. */ @java.lang.Override @@ -3153,16 +2591,13 @@ public boolean getOutputResourceEdges() { public static final int OUTPUT_GROUP_EDGES_FIELD_NUMBER = 5; private boolean outputGroupEdges_; /** - * - * *
    -     * Optional. If true, the result will output the relevant membership
    -     * relationships between groups and other groups, and between groups and
    -     * principals. Default is false.
    +     * Optional. If true, the result will output the relevant membership relationships
    +     * between groups and other groups, and between groups and principals.
    +     * Default is false.
          * 
    * * bool output_group_edges = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The outputGroupEdges. */ @java.lang.Override @@ -3173,15 +2608,12 @@ public boolean getOutputGroupEdges() { public static final int ANALYZE_SERVICE_ACCOUNT_IMPERSONATION_FIELD_NUMBER = 6; private boolean analyzeServiceAccountImpersonation_; /** - * - * *
    -     * Optional. If true, the response will include access analysis from
    -     * identities to resources via service account impersonation. This is a very
    -     * expensive operation, because many derived queries will be executed. We
    -     * highly recommend you use
    -     * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -     * rpc instead.
    +     * Optional. If true, the response will include access analysis from identities to
    +     * resources via service account impersonation. This is a very expensive
    +     * operation, because many derived queries will be executed. We highly
    +     * recommend you use [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc
    +     * instead.
          * For example, if the request analyzes for which resources user A has
          * permission P, and there's an IAM policy states user A has
          * iam.serviceAccounts.getAccessToken permission to a service account SA,
    @@ -3206,10 +2638,7 @@ public boolean getOutputGroupEdges() {
          * Default is false.
          * 
    * - * - * bool analyze_service_account_impersonation = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool analyze_service_account_impersonation = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The analyzeServiceAccountImpersonation. */ @java.lang.Override @@ -3218,7 +2647,6 @@ public boolean getAnalyzeServiceAccountImpersonation() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3230,7 +2658,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (expandGroups_ != false) { output.writeBool(1, expandGroups_); } @@ -3249,7 +2678,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (analyzeServiceAccountImpersonation_ != false) { output.writeBool(6, analyzeServiceAccountImpersonation_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -3259,26 +2688,30 @@ public int getSerializedSize() { size = 0; if (expandGroups_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, expandGroups_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, expandGroups_); } if (expandRoles_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, expandRoles_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, expandRoles_); } if (expandResources_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, expandResources_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, expandResources_); } if (outputResourceEdges_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, outputResourceEdges_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, outputResourceEdges_); } if (outputGroupEdges_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, outputGroupEdges_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, outputGroupEdges_); } if (analyzeServiceAccountImpersonation_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 6, analyzeServiceAccountImpersonation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, analyzeServiceAccountImpersonation_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -3286,22 +2719,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options other = - (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options) obj; - - if (getExpandGroups() != other.getExpandGroups()) return false; - if (getExpandRoles() != other.getExpandRoles()) return false; - if (getExpandResources() != other.getExpandResources()) return false; - if (getOutputResourceEdges() != other.getOutputResourceEdges()) return false; - if (getOutputGroupEdges() != other.getOutputGroupEdges()) return false; - if (getAnalyzeServiceAccountImpersonation() != other.getAnalyzeServiceAccountImpersonation()) - return false; - if (!unknownFields.equals(other.unknownFields)) return false; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options other = (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options) obj; + + if (getExpandGroups() + != other.getExpandGroups()) return false; + if (getExpandRoles() + != other.getExpandRoles()) return false; + if (getExpandResources() + != other.getExpandResources()) return false; + if (getOutputResourceEdges() + != other.getOutputResourceEdges()) return false; + if (getOutputGroupEdges() + != other.getOutputGroupEdges()) return false; + if (getAnalyzeServiceAccountImpersonation() + != other.getAnalyzeServiceAccountImpersonation()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3313,113 +2750,110 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + EXPAND_GROUPS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExpandGroups()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getExpandGroups()); hash = (37 * hash) + EXPAND_ROLES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExpandRoles()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getExpandRoles()); hash = (37 * hash) + EXPAND_RESOURCES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExpandResources()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getExpandResources()); hash = (37 * hash) + OUTPUT_RESOURCE_EDGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOutputResourceEdges()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getOutputResourceEdges()); hash = (37 * hash) + OUTPUT_GROUP_EDGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOutputGroupEdges()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getOutputGroupEdges()); hash = (37 * hash) + ANALYZE_SERVICE_ACCOUNT_IMPERSONATION_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getAnalyzeServiceAccountImpersonation()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAnalyzeServiceAccountImpersonation()); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options 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.asset.v1.IamPolicyAnalysisQuery.Options parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3429,48 +2863,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * Contains query options.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisQuery.Options} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisQuery.Options) com.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.class, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.class, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder.class); } // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -3490,9 +2915,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_descriptor; } @java.lang.Override @@ -3511,8 +2936,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options build() { @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options buildPartial() { - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options result = - new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options(this); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options result = new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options(this); result.expandGroups_ = expandGroups_; result.expandRoles_ = expandRoles_; result.expandResources_ = expandResources_; @@ -3527,41 +2951,38 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicyAnalysisQuery.Options) { - return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options) other); + return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options)other); } else { super.mergeFrom(other); return this; @@ -3569,8 +2990,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options other) { - if (other == com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.getDefaultInstance()) return this; if (other.getExpandGroups() != false) { setExpandGroups(other.getExpandGroups()); } @@ -3589,7 +3009,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Option if (other.getAnalyzeServiceAccountImpersonation() != false) { setAnalyzeServiceAccountImpersonation(other.getAnalyzeServiceAccountImpersonation()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -3604,39 +3024,77 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + expandGroups_ = input.readBool(); + + break; + } // case 8 + case 16: { + expandRoles_ = input.readBool(); + + break; + } // case 16 + case 24: { + expandResources_ = input.readBool(); + + break; + } // case 24 + case 32: { + outputResourceEdges_ = input.readBool(); + + break; + } // case 32 + case 40: { + outputGroupEdges_ = input.readBool(); + + break; + } // case 40 + case 48: { + analyzeServiceAccountImpersonation_ = input.readBool(); + + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private boolean expandGroups_; + private boolean expandGroups_ ; /** - * - * *
            * Optional. If true, the identities section of the result will expand any
            * Google groups appearing in an IAM policy binding.
    -       * If
    -       * [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector]
    -       * is specified, the identity in the result will be determined by the
    -       * selector, and this flag is not allowed to set.
    +       * If [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector] is specified, the
    +       * identity in the result will be determined by the selector, and this flag
    +       * is not allowed to set.
            * If true, the default max expansion per group is 1000 for
            * AssetService.AnalyzeIamPolicy][].
            * Default is false.
            * 
    * * bool expand_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The expandGroups. */ @java.lang.Override @@ -3644,73 +3102,61 @@ public boolean getExpandGroups() { return expandGroups_; } /** - * - * *
            * Optional. If true, the identities section of the result will expand any
            * Google groups appearing in an IAM policy binding.
    -       * If
    -       * [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector]
    -       * is specified, the identity in the result will be determined by the
    -       * selector, and this flag is not allowed to set.
    +       * If [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector] is specified, the
    +       * identity in the result will be determined by the selector, and this flag
    +       * is not allowed to set.
            * If true, the default max expansion per group is 1000 for
            * AssetService.AnalyzeIamPolicy][].
            * Default is false.
            * 
    * * bool expand_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The expandGroups to set. * @return This builder for chaining. */ public Builder setExpandGroups(boolean value) { - + expandGroups_ = value; onChanged(); return this; } /** - * - * *
            * Optional. If true, the identities section of the result will expand any
            * Google groups appearing in an IAM policy binding.
    -       * If
    -       * [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector]
    -       * is specified, the identity in the result will be determined by the
    -       * selector, and this flag is not allowed to set.
    +       * If [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector] is specified, the
    +       * identity in the result will be determined by the selector, and this flag
    +       * is not allowed to set.
            * If true, the default max expansion per group is 1000 for
            * AssetService.AnalyzeIamPolicy][].
            * Default is false.
            * 
    * * bool expand_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearExpandGroups() { - + expandGroups_ = false; onChanged(); return this; } - private boolean expandRoles_; + private boolean expandRoles_ ; /** - * - * *
            * Optional. If true, the access section of result will expand any roles
            * appearing in IAM policy bindings to include their permissions.
    -       * If
    -       * [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector]
    -       * is specified, the access section of the result will be determined by the
    -       * selector, and this flag is not allowed to set.
    +       * If [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector] is specified, the access
    +       * section of the result will be determined by the selector, and this flag
    +       * is not allowed to set.
            * Default is false.
            * 
    * * bool expand_roles = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The expandRoles. */ @java.lang.Override @@ -3718,73 +3164,61 @@ public boolean getExpandRoles() { return expandRoles_; } /** - * - * *
            * Optional. If true, the access section of result will expand any roles
            * appearing in IAM policy bindings to include their permissions.
    -       * If
    -       * [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector]
    -       * is specified, the access section of the result will be determined by the
    -       * selector, and this flag is not allowed to set.
    +       * If [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector] is specified, the access
    +       * section of the result will be determined by the selector, and this flag
    +       * is not allowed to set.
            * Default is false.
            * 
    * * bool expand_roles = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The expandRoles to set. * @return This builder for chaining. */ public Builder setExpandRoles(boolean value) { - + expandRoles_ = value; onChanged(); return this; } /** - * - * *
            * Optional. If true, the access section of result will expand any roles
            * appearing in IAM policy bindings to include their permissions.
    -       * If
    -       * [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector]
    -       * is specified, the access section of the result will be determined by the
    -       * selector, and this flag is not allowed to set.
    +       * If [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector] is specified, the access
    +       * section of the result will be determined by the selector, and this flag
    +       * is not allowed to set.
            * Default is false.
            * 
    * * bool expand_roles = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearExpandRoles() { - + expandRoles_ = false; onChanged(); return this; } - private boolean expandResources_; + private boolean expandResources_ ; /** - * - * *
    -       * Optional. If true and
    -       * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
    -       * is not specified, the resource section of the result will expand any
    -       * resource attached to an IAM policy to include resources lower in the
    -       * resource hierarchy.
    +       * Optional. If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is not
    +       * specified, the resource section of the result will expand any resource
    +       * attached to an IAM policy to include resources lower in the resource
    +       * hierarchy.
            * For example, if the request analyzes for which resources user A has
            * permission P, and the results include an IAM policy with P on a GCP
            * folder, the results will also include resources in that folder with
            * permission P.
    -       * If true and
    -       * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
    -       * is specified, the resource section of the result will expand the
    -       * specified resource to include resources lower in the resource hierarchy.
    -       * Only project or lower resources are supported. Folder and organization
    -       * resource cannot be used together with this option.
    +       * If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is specified,
    +       * the resource section of the result will expand the specified resource to
    +       * include resources lower in the resource hierarchy. Only project or
    +       * lower resources are supported. Folder and organization resource cannot be
    +       * used together with this option.
            * For example, if the request analyzes for which users have permission P on
            * a GCP project with this option enabled, the results will include all
            * users who have permission P on that project or any lower resource.
    @@ -3795,7 +3229,6 @@ public Builder clearExpandRoles() {
            * 
    * * bool expand_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The expandResources. */ @java.lang.Override @@ -3803,24 +3236,20 @@ public boolean getExpandResources() { return expandResources_; } /** - * - * *
    -       * Optional. If true and
    -       * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
    -       * is not specified, the resource section of the result will expand any
    -       * resource attached to an IAM policy to include resources lower in the
    -       * resource hierarchy.
    +       * Optional. If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is not
    +       * specified, the resource section of the result will expand any resource
    +       * attached to an IAM policy to include resources lower in the resource
    +       * hierarchy.
            * For example, if the request analyzes for which resources user A has
            * permission P, and the results include an IAM policy with P on a GCP
            * folder, the results will also include resources in that folder with
            * permission P.
    -       * If true and
    -       * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
    -       * is specified, the resource section of the result will expand the
    -       * specified resource to include resources lower in the resource hierarchy.
    -       * Only project or lower resources are supported. Folder and organization
    -       * resource cannot be used together with this option.
    +       * If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is specified,
    +       * the resource section of the result will expand the specified resource to
    +       * include resources lower in the resource hierarchy. Only project or
    +       * lower resources are supported. Folder and organization resource cannot be
    +       * used together with this option.
            * For example, if the request analyzes for which users have permission P on
            * a GCP project with this option enabled, the results will include all
            * users who have permission P on that project or any lower resource.
    @@ -3831,35 +3260,30 @@ public boolean getExpandResources() {
            * 
    * * bool expand_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The expandResources to set. * @return This builder for chaining. */ public Builder setExpandResources(boolean value) { - + expandResources_ = value; onChanged(); return this; } /** - * - * *
    -       * Optional. If true and
    -       * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
    -       * is not specified, the resource section of the result will expand any
    -       * resource attached to an IAM policy to include resources lower in the
    -       * resource hierarchy.
    +       * Optional. If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is not
    +       * specified, the resource section of the result will expand any resource
    +       * attached to an IAM policy to include resources lower in the resource
    +       * hierarchy.
            * For example, if the request analyzes for which resources user A has
            * permission P, and the results include an IAM policy with P on a GCP
            * folder, the results will also include resources in that folder with
            * permission P.
    -       * If true and
    -       * [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
    -       * is specified, the resource section of the result will expand the
    -       * specified resource to include resources lower in the resource hierarchy.
    -       * Only project or lower resources are supported. Folder and organization
    -       * resource cannot be used together with this option.
    +       * If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is specified,
    +       * the resource section of the result will expand the specified resource to
    +       * include resources lower in the resource hierarchy. Only project or
    +       * lower resources are supported. Folder and organization resource cannot be
    +       * used together with this option.
            * For example, if the request analyzes for which users have permission P on
            * a GCP project with this option enabled, the results will include all
            * users who have permission P on that project or any lower resource.
    @@ -3870,27 +3294,24 @@ public Builder setExpandResources(boolean value) {
            * 
    * * bool expand_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearExpandResources() { - + expandResources_ = false; onChanged(); return this; } - private boolean outputResourceEdges_; + private boolean outputResourceEdges_ ; /** - * - * *
    -       * Optional. If true, the result will output the relevant parent/child
    -       * relationships between resources. Default is false.
    +       * Optional. If true, the result will output the relevant parent/child relationships
    +       * between resources.
    +       * Default is false.
            * 
    * * bool output_resource_edges = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The outputResourceEdges. */ @java.lang.Override @@ -3898,55 +3319,48 @@ public boolean getOutputResourceEdges() { return outputResourceEdges_; } /** - * - * *
    -       * Optional. If true, the result will output the relevant parent/child
    -       * relationships between resources. Default is false.
    +       * Optional. If true, the result will output the relevant parent/child relationships
    +       * between resources.
    +       * Default is false.
            * 
    * * bool output_resource_edges = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The outputResourceEdges to set. * @return This builder for chaining. */ public Builder setOutputResourceEdges(boolean value) { - + outputResourceEdges_ = value; onChanged(); return this; } /** - * - * *
    -       * Optional. If true, the result will output the relevant parent/child
    -       * relationships between resources. Default is false.
    +       * Optional. If true, the result will output the relevant parent/child relationships
    +       * between resources.
    +       * Default is false.
            * 
    * * bool output_resource_edges = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOutputResourceEdges() { - + outputResourceEdges_ = false; onChanged(); return this; } - private boolean outputGroupEdges_; + private boolean outputGroupEdges_ ; /** - * - * *
    -       * Optional. If true, the result will output the relevant membership
    -       * relationships between groups and other groups, and between groups and
    -       * principals. Default is false.
    +       * Optional. If true, the result will output the relevant membership relationships
    +       * between groups and other groups, and between groups and principals.
    +       * Default is false.
            * 
    * * bool output_group_edges = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The outputGroupEdges. */ @java.lang.Override @@ -3954,56 +3368,47 @@ public boolean getOutputGroupEdges() { return outputGroupEdges_; } /** - * - * *
    -       * Optional. If true, the result will output the relevant membership
    -       * relationships between groups and other groups, and between groups and
    -       * principals. Default is false.
    +       * Optional. If true, the result will output the relevant membership relationships
    +       * between groups and other groups, and between groups and principals.
    +       * Default is false.
            * 
    * * bool output_group_edges = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The outputGroupEdges to set. * @return This builder for chaining. */ public Builder setOutputGroupEdges(boolean value) { - + outputGroupEdges_ = value; onChanged(); return this; } /** - * - * *
    -       * Optional. If true, the result will output the relevant membership
    -       * relationships between groups and other groups, and between groups and
    -       * principals. Default is false.
    +       * Optional. If true, the result will output the relevant membership relationships
    +       * between groups and other groups, and between groups and principals.
    +       * Default is false.
            * 
    * * bool output_group_edges = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOutputGroupEdges() { - + outputGroupEdges_ = false; onChanged(); return this; } - private boolean analyzeServiceAccountImpersonation_; + private boolean analyzeServiceAccountImpersonation_ ; /** - * - * *
    -       * Optional. If true, the response will include access analysis from
    -       * identities to resources via service account impersonation. This is a very
    -       * expensive operation, because many derived queries will be executed. We
    -       * highly recommend you use
    -       * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -       * rpc instead.
    +       * Optional. If true, the response will include access analysis from identities to
    +       * resources via service account impersonation. This is a very expensive
    +       * operation, because many derived queries will be executed. We highly
    +       * recommend you use [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc
    +       * instead.
            * For example, if the request analyzes for which resources user A has
            * permission P, and there's an IAM policy states user A has
            * iam.serviceAccounts.getAccessToken permission to a service account SA,
    @@ -4028,10 +3433,7 @@ public Builder clearOutputGroupEdges() {
            * Default is false.
            * 
    * - * - * bool analyze_service_account_impersonation = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool analyze_service_account_impersonation = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The analyzeServiceAccountImpersonation. */ @java.lang.Override @@ -4039,15 +3441,12 @@ public boolean getAnalyzeServiceAccountImpersonation() { return analyzeServiceAccountImpersonation_; } /** - * - * *
    -       * Optional. If true, the response will include access analysis from
    -       * identities to resources via service account impersonation. This is a very
    -       * expensive operation, because many derived queries will be executed. We
    -       * highly recommend you use
    -       * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -       * rpc instead.
    +       * Optional. If true, the response will include access analysis from identities to
    +       * resources via service account impersonation. This is a very expensive
    +       * operation, because many derived queries will be executed. We highly
    +       * recommend you use [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc
    +       * instead.
            * For example, if the request analyzes for which resources user A has
            * permission P, and there's an IAM policy states user A has
            * iam.serviceAccounts.getAccessToken permission to a service account SA,
    @@ -4072,29 +3471,23 @@ public boolean getAnalyzeServiceAccountImpersonation() {
            * Default is false.
            * 
    * - * - * bool analyze_service_account_impersonation = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool analyze_service_account_impersonation = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param value The analyzeServiceAccountImpersonation to set. * @return This builder for chaining. */ public Builder setAnalyzeServiceAccountImpersonation(boolean value) { - + analyzeServiceAccountImpersonation_ = value; onChanged(); return this; } /** - * - * *
    -       * Optional. If true, the response will include access analysis from
    -       * identities to resources via service account impersonation. This is a very
    -       * expensive operation, because many derived queries will be executed. We
    -       * highly recommend you use
    -       * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -       * rpc instead.
    +       * Optional. If true, the response will include access analysis from identities to
    +       * resources via service account impersonation. This is a very expensive
    +       * operation, because many derived queries will be executed. We highly
    +       * recommend you use [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc
    +       * instead.
            * For example, if the request analyzes for which resources user A has
            * permission P, and there's an IAM policy states user A has
            * iam.serviceAccounts.getAccessToken permission to a service account SA,
    @@ -4119,19 +3512,15 @@ public Builder setAnalyzeServiceAccountImpersonation(boolean value) {
            * Default is false.
            * 
    * - * - * bool analyze_service_account_impersonation = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool analyze_service_account_impersonation = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearAnalyzeServiceAccountImpersonation() { - + analyzeServiceAccountImpersonation_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4144,12 +3533,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisQuery.Options) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisQuery.Options) private static final com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options(); } @@ -4158,16 +3547,27 @@ public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Options parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Options(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Options parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4182,16 +3582,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ConditionContextOrBuilder - extends + public interface ConditionContextOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * The hypothetical access timestamp to evaluate IAM conditions. Note that
          * this value must not be earlier than the current time; otherwise, an
    @@ -4199,13 +3597,10 @@ public interface ConditionContextOrBuilder
          * 
    * * .google.protobuf.Timestamp access_time = 1; - * * @return Whether the accessTime field is set. */ boolean hasAccessTime(); /** - * - * *
          * The hypothetical access timestamp to evaluate IAM conditions. Note that
          * this value must not be earlier than the current time; otherwise, an
    @@ -4213,13 +3608,10 @@ public interface ConditionContextOrBuilder
          * 
    * * .google.protobuf.Timestamp access_time = 1; - * * @return The accessTime. */ com.google.protobuf.Timestamp getAccessTime(); /** - * - * *
          * The hypothetical access timestamp to evaluate IAM conditions. Note that
          * this value must not be earlier than the current time; otherwise, an
    @@ -4230,121 +3622,60 @@ public interface ConditionContextOrBuilder
          */
         com.google.protobuf.TimestampOrBuilder getAccessTimeOrBuilder();
     
    -    public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.TimeContextCase
    -        getTimeContextCase();
    +    public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.TimeContextCase getTimeContextCase();
       }
       /**
    -   *
    -   *
        * 
        * The IAM conditions context.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext} */ - public static final class ConditionContext extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ConditionContext extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext) ConditionContextOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConditionContext.newBuilder() to construct. private ConditionContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ConditionContext() {} + private ConditionContext() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConditionContext(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private ConditionContext( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (timeContextCase_ == 1) { - subBuilder = ((com.google.protobuf.Timestamp) timeContext_).toBuilder(); - } - timeContext_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Timestamp) timeContext_); - timeContext_ = subBuilder.buildPartial(); - } - timeContextCase_ = 1; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.class, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.class, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder.class); } private int timeContextCase_ = 0; private java.lang.Object timeContext_; - public enum TimeContextCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ACCESS_TIME(1), TIMECONTEXT_NOT_SET(0); private final int value; - private TimeContextCase(int value) { this.value = value; } @@ -4360,28 +3691,24 @@ public static TimeContextCase valueOf(int value) { public static TimeContextCase forNumber(int value) { switch (value) { - case 1: - return ACCESS_TIME; - case 0: - return TIMECONTEXT_NOT_SET; - default: - return null; + case 1: return ACCESS_TIME; + case 0: return TIMECONTEXT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public TimeContextCase getTimeContextCase() { - return TimeContextCase.forNumber(timeContextCase_); + public TimeContextCase + getTimeContextCase() { + return TimeContextCase.forNumber( + timeContextCase_); } public static final int ACCESS_TIME_FIELD_NUMBER = 1; /** - * - * *
          * The hypothetical access timestamp to evaluate IAM conditions. Note that
          * this value must not be earlier than the current time; otherwise, an
    @@ -4389,7 +3716,6 @@ public TimeContextCase getTimeContextCase() {
          * 
    * * .google.protobuf.Timestamp access_time = 1; - * * @return Whether the accessTime field is set. */ @java.lang.Override @@ -4397,8 +3723,6 @@ public boolean hasAccessTime() { return timeContextCase_ == 1; } /** - * - * *
          * The hypothetical access timestamp to evaluate IAM conditions. Note that
          * this value must not be earlier than the current time; otherwise, an
    @@ -4406,19 +3730,16 @@ public boolean hasAccessTime() {
          * 
    * * .google.protobuf.Timestamp access_time = 1; - * * @return The accessTime. */ @java.lang.Override public com.google.protobuf.Timestamp getAccessTime() { if (timeContextCase_ == 1) { - return (com.google.protobuf.Timestamp) timeContext_; + return (com.google.protobuf.Timestamp) timeContext_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** - * - * *
          * The hypothetical access timestamp to evaluate IAM conditions. Note that
          * this value must not be earlier than the current time; otherwise, an
    @@ -4430,13 +3751,12 @@ public com.google.protobuf.Timestamp getAccessTime() {
         @java.lang.Override
         public com.google.protobuf.TimestampOrBuilder getAccessTimeOrBuilder() {
           if (timeContextCase_ == 1) {
    -        return (com.google.protobuf.Timestamp) timeContext_;
    +         return (com.google.protobuf.Timestamp) timeContext_;
           }
           return com.google.protobuf.Timestamp.getDefaultInstance();
         }
     
         private byte memoizedIsInitialized = -1;
    -
         @java.lang.Override
         public final boolean isInitialized() {
           byte isInitialized = memoizedIsInitialized;
    @@ -4448,11 +3768,12 @@ public final boolean isInitialized() {
         }
     
         @java.lang.Override
    -    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    +    public void writeTo(com.google.protobuf.CodedOutputStream output)
    +                        throws java.io.IOException {
           if (timeContextCase_ == 1) {
             output.writeMessage(1, (com.google.protobuf.Timestamp) timeContext_);
           }
    -      unknownFields.writeTo(output);
    +      getUnknownFields().writeTo(output);
         }
     
         @java.lang.Override
    @@ -4462,11 +3783,10 @@ public int getSerializedSize() {
     
           size = 0;
           if (timeContextCase_ == 1) {
    -        size +=
    -            com.google.protobuf.CodedOutputStream.computeMessageSize(
    -                1, (com.google.protobuf.Timestamp) timeContext_);
    +        size += com.google.protobuf.CodedOutputStream
    +          .computeMessageSize(1, (com.google.protobuf.Timestamp) timeContext_);
           }
    -      size += unknownFields.getSerializedSize();
    +      size += getUnknownFields().getSerializedSize();
           memoizedSize = size;
           return size;
         }
    @@ -4474,23 +3794,23 @@ public int getSerializedSize() {
         @java.lang.Override
         public boolean equals(final java.lang.Object obj) {
           if (obj == this) {
    -        return true;
    +       return true;
           }
           if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext)) {
             return super.equals(obj);
           }
    -      com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext other =
    -          (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext) obj;
    +      com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext other = (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext) obj;
     
           if (!getTimeContextCase().equals(other.getTimeContextCase())) return false;
           switch (timeContextCase_) {
             case 1:
    -          if (!getAccessTime().equals(other.getAccessTime())) return false;
    +          if (!getAccessTime()
    +              .equals(other.getAccessTime())) return false;
               break;
             case 0:
             default:
           }
    -      if (!unknownFields.equals(other.unknownFields)) return false;
    +      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
           return true;
         }
     
    @@ -4509,101 +3829,93 @@ public int hashCode() {
             case 0:
             default:
           }
    -      hash = (29 * hash) + unknownFields.hashCode();
    +      hash = (29 * hash) + getUnknownFields().hashCode();
           memoizedHashCode = hash;
           return hash;
         }
     
         public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext parseFrom(
    -        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    +        java.nio.ByteBuffer data)
    +        throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
    -
         public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext parseFrom(
    -        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        java.nio.ByteBuffer data,
    +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data, extensionRegistry);
         }
    -
         public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext parseFrom(
             com.google.protobuf.ByteString data)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
    -
         public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext 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.asset.v1.IamPolicyAnalysisQuery.ConditionContext parseFrom(
    -        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
    +    public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext parseFrom(byte[] data)
    +        throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
    -
         public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext parseFrom(
    -        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        byte[] data,
    +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data, extensionRegistry);
         }
    -
    -    public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext parseFrom(
    -        java.io.InputStream input) throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +    public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext parseFrom(java.io.InputStream input)
    +        throws java.io.IOException {
    +      return com.google.protobuf.GeneratedMessageV3
    +          .parseWithIOException(PARSER, input);
         }
    -
         public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext parseFrom(
    -        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        java.io.InputStream input,
    +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -          PARSER, input, extensionRegistry);
    +      return com.google.protobuf.GeneratedMessageV3
    +          .parseWithIOException(PARSER, input, extensionRegistry);
         }
    -
    -    public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext
    -        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    +    public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext parseDelimitedFrom(java.io.InputStream input)
    +        throws java.io.IOException {
    +      return com.google.protobuf.GeneratedMessageV3
    +          .parseDelimitedWithIOException(PARSER, input);
         }
    -
    -    public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext
    -        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.asset.v1.IamPolicyAnalysisQuery.ConditionContext 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.asset.v1.IamPolicyAnalysisQuery.ConditionContext parseFrom(
    -        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +        com.google.protobuf.CodedInputStream input)
    +        throws java.io.IOException {
    +      return com.google.protobuf.GeneratedMessageV3
    +          .parseWithIOException(PARSER, input);
         }
    -
         public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext parseFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -          PARSER, input, extensionRegistry);
    +      return com.google.protobuf.GeneratedMessageV3
    +          .parseWithIOException(PARSER, input, extensionRegistry);
         }
     
         @java.lang.Override
    -    public Builder newBuilderForType() {
    -      return newBuilder();
    -    }
    -
    +    public Builder newBuilderForType() { return newBuilder(); }
         public static Builder newBuilder() {
           return DEFAULT_INSTANCE.toBuilder();
         }
    -
    -    public static Builder newBuilder(
    -        com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext prototype) {
    +    public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext prototype) {
           return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
         }
    -
         @java.lang.Override
         public Builder toBuilder() {
    -      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    +      return this == DEFAULT_INSTANCE
    +          ? new Builder() : new Builder().mergeFrom(this);
         }
     
         @java.lang.Override
    @@ -4613,68 +3925,59 @@ protected Builder newBuilderForType(
           return builder;
         }
         /**
    -     *
    -     *
          * 
          * The IAM conditions context.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext) com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.class, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.class, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder.class); } - // Construct using - // com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.newBuilder() + // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @java.lang.Override public Builder clear() { super.clear(); + if (accessTimeBuilder_ != null) { + accessTimeBuilder_.clear(); + } timeContextCase_ = 0; timeContext_ = null; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext - getDefaultInstanceForType() { - return com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext - .getDefaultInstance(); + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext getDefaultInstanceForType() { + return com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.getDefaultInstance(); } @java.lang.Override @@ -4688,8 +3991,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext build() @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext buildPartial() { - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext result = - new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext(this); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext result = new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext(this); if (timeContextCase_ == 1) { if (accessTimeBuilder_ == null) { result.timeContext_ = timeContext_; @@ -4706,65 +4008,56 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicyAnalysisQuery.ConditionContext) { - return mergeFrom( - (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext) other); + return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext other) { - if (other - == com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext other) { + if (other == com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.getDefaultInstance()) return this; switch (other.getTimeContextCase()) { - case ACCESS_TIME: - { - mergeAccessTime(other.getAccessTime()); - break; - } - case TIMECONTEXT_NOT_SET: - { - break; - } + case ACCESS_TIME: { + mergeAccessTime(other.getAccessTime()); + break; + } + case TIMECONTEXT_NOT_SET: { + break; + } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -4779,27 +4072,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getAccessTimeFieldBuilder().getBuilder(), + extensionRegistry); + timeContextCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int timeContextCase_ = 0; private java.lang.Object timeContext_; - - public TimeContextCase getTimeContextCase() { - return TimeContextCase.forNumber(timeContextCase_); + public TimeContextCase + getTimeContextCase() { + return TimeContextCase.forNumber( + timeContextCase_); } public Builder clearTimeContext() { @@ -4809,14 +4120,10 @@ public Builder clearTimeContext() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - accessTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> accessTimeBuilder_; /** - * - * *
            * The hypothetical access timestamp to evaluate IAM conditions. Note that
            * this value must not be earlier than the current time; otherwise, an
    @@ -4824,7 +4131,6 @@ public Builder clearTimeContext() {
            * 
    * * .google.protobuf.Timestamp access_time = 1; - * * @return Whether the accessTime field is set. */ @java.lang.Override @@ -4832,8 +4138,6 @@ public boolean hasAccessTime() { return timeContextCase_ == 1; } /** - * - * *
            * The hypothetical access timestamp to evaluate IAM conditions. Note that
            * this value must not be earlier than the current time; otherwise, an
    @@ -4841,7 +4145,6 @@ public boolean hasAccessTime() {
            * 
    * * .google.protobuf.Timestamp access_time = 1; - * * @return The accessTime. */ @java.lang.Override @@ -4859,8 +4162,6 @@ public com.google.protobuf.Timestamp getAccessTime() { } } /** - * - * *
            * The hypothetical access timestamp to evaluate IAM conditions. Note that
            * this value must not be earlier than the current time; otherwise, an
    @@ -4883,8 +4184,6 @@ public Builder setAccessTime(com.google.protobuf.Timestamp value) {
             return this;
           }
           /**
    -       *
    -       *
            * 
            * The hypothetical access timestamp to evaluate IAM conditions. Note that
            * this value must not be earlier than the current time; otherwise, an
    @@ -4893,7 +4192,8 @@ public Builder setAccessTime(com.google.protobuf.Timestamp value) {
            *
            * .google.protobuf.Timestamp access_time = 1;
            */
    -      public Builder setAccessTime(com.google.protobuf.Timestamp.Builder builderForValue) {
    +      public Builder setAccessTime(
    +          com.google.protobuf.Timestamp.Builder builderForValue) {
             if (accessTimeBuilder_ == null) {
               timeContext_ = builderForValue.build();
               onChanged();
    @@ -4904,8 +4204,6 @@ public Builder setAccessTime(com.google.protobuf.Timestamp.Builder builderForVal
             return this;
           }
           /**
    -       *
    -       *
            * 
            * The hypothetical access timestamp to evaluate IAM conditions. Note that
            * this value must not be earlier than the current time; otherwise, an
    @@ -4916,13 +4214,10 @@ public Builder setAccessTime(com.google.protobuf.Timestamp.Builder builderForVal
            */
           public Builder mergeAccessTime(com.google.protobuf.Timestamp value) {
             if (accessTimeBuilder_ == null) {
    -          if (timeContextCase_ == 1
    -              && timeContext_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
    -            timeContext_ =
    -                com.google.protobuf.Timestamp.newBuilder(
    -                        (com.google.protobuf.Timestamp) timeContext_)
    -                    .mergeFrom(value)
    -                    .buildPartial();
    +          if (timeContextCase_ == 1 &&
    +              timeContext_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
    +            timeContext_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) timeContext_)
    +                .mergeFrom(value).buildPartial();
               } else {
                 timeContext_ = value;
               }
    @@ -4938,8 +4233,6 @@ public Builder mergeAccessTime(com.google.protobuf.Timestamp value) {
             return this;
           }
           /**
    -       *
    -       *
            * 
            * The hypothetical access timestamp to evaluate IAM conditions. Note that
            * this value must not be earlier than the current time; otherwise, an
    @@ -4965,8 +4258,6 @@ public Builder clearAccessTime() {
             return this;
           }
           /**
    -       *
    -       *
            * 
            * The hypothetical access timestamp to evaluate IAM conditions. Note that
            * this value must not be earlier than the current time; otherwise, an
    @@ -4979,8 +4270,6 @@ public com.google.protobuf.Timestamp.Builder getAccessTimeBuilder() {
             return getAccessTimeFieldBuilder().getBuilder();
           }
           /**
    -       *
    -       *
            * 
            * The hypothetical access timestamp to evaluate IAM conditions. Note that
            * this value must not be earlier than the current time; otherwise, an
    @@ -5001,8 +4290,6 @@ public com.google.protobuf.TimestampOrBuilder getAccessTimeOrBuilder() {
             }
           }
           /**
    -       *
    -       *
            * 
            * The hypothetical access timestamp to evaluate IAM conditions. Note that
            * this value must not be earlier than the current time; otherwise, an
    @@ -5012,28 +4299,23 @@ public com.google.protobuf.TimestampOrBuilder getAccessTimeOrBuilder() {
            * .google.protobuf.Timestamp access_time = 1;
            */
           private com.google.protobuf.SingleFieldBuilderV3<
    -              com.google.protobuf.Timestamp,
    -              com.google.protobuf.Timestamp.Builder,
    -              com.google.protobuf.TimestampOrBuilder>
    +          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
               getAccessTimeFieldBuilder() {
             if (accessTimeBuilder_ == null) {
               if (!(timeContextCase_ == 1)) {
                 timeContext_ = com.google.protobuf.Timestamp.getDefaultInstance();
               }
    -          accessTimeBuilder_ =
    -              new com.google.protobuf.SingleFieldBuilderV3<
    -                  com.google.protobuf.Timestamp,
    -                  com.google.protobuf.Timestamp.Builder,
    -                  com.google.protobuf.TimestampOrBuilder>(
    -                  (com.google.protobuf.Timestamp) timeContext_, getParentForChildren(), isClean());
    +          accessTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    +                  (com.google.protobuf.Timestamp) timeContext_,
    +                  getParentForChildren(),
    +                  isClean());
               timeContext_ = null;
             }
             timeContextCase_ = 1;
    -        onChanged();
    -        ;
    +        onChanged();;
             return accessTimeBuilder_;
           }
    -
           @java.lang.Override
           public final Builder setUnknownFields(
               final com.google.protobuf.UnknownFieldSet unknownFields) {
    @@ -5046,32 +4328,41 @@ public final Builder mergeUnknownFields(
             return super.mergeUnknownFields(unknownFields);
           }
     
    +
           // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext)
         }
     
         // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext)
    -    private static final com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext
    -        DEFAULT_INSTANCE;
    -
    +    private static final com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext DEFAULT_INSTANCE;
         static {
           DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext();
         }
     
    -    public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext
    -        getDefaultInstance() {
    +    public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext getDefaultInstance() {
           return DEFAULT_INSTANCE;
         }
     
    -    private static final com.google.protobuf.Parser PARSER =
    -        new com.google.protobuf.AbstractParser() {
    -          @java.lang.Override
    -          public ConditionContext parsePartialFrom(
    -              com.google.protobuf.CodedInputStream input,
    -              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -              throws com.google.protobuf.InvalidProtocolBufferException {
    -            return new ConditionContext(input, extensionRegistry);
    -          }
    -        };
    +    private static final com.google.protobuf.Parser
    +        PARSER = new com.google.protobuf.AbstractParser() {
    +      @java.lang.Override
    +      public ConditionContext parsePartialFrom(
    +          com.google.protobuf.CodedInputStream input,
    +          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +          throws com.google.protobuf.InvalidProtocolBufferException {
    +        Builder builder = newBuilder();
    +        try {
    +          builder.mergeFrom(input, extensionRegistry);
    +        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +          throw e.setUnfinishedMessage(builder.buildPartial());
    +        } catch (com.google.protobuf.UninitializedMessageException e) {
    +          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +        } catch (java.io.IOException e) {
    +          throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +              .setUnfinishedMessage(builder.buildPartial());
    +        }
    +        return builder.buildPartial();
    +      }
    +    };
     
         public static com.google.protobuf.Parser parser() {
           return PARSER;
    @@ -5083,20 +4374,18 @@ public com.google.protobuf.Parser getParserForType() {
         }
     
         @java.lang.Override
    -    public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext
    -        getDefaultInstanceForType() {
    +    public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext getDefaultInstanceForType() {
           return DEFAULT_INSTANCE;
         }
    +
       }
     
       public static final int SCOPE_FIELD_NUMBER = 1;
       private volatile java.lang.Object scope_;
       /**
    -   *
    -   *
        * 
    -   * Required. The relative name of the root asset. Only resources and IAM
    -   * policies within the scope will be analyzed.
    +   * Required. The relative name of the root asset. Only resources and IAM policies within
    +   * the scope will be analyzed.
        * This can only be an organization number (such as "organizations/123"), a
        * folder number (such as "folders/123"), a project ID (such as
        * "projects/my-project-id"), or a project number (such as "projects/12345").
    @@ -5107,7 +4396,6 @@ public com.google.protobuf.Parser getParserForType() {
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The scope. */ @java.lang.Override @@ -5116,18 +4404,17 @@ public java.lang.String getScope() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; } } /** - * - * *
    -   * Required. The relative name of the root asset. Only resources and IAM
    -   * policies within the scope will be analyzed.
    +   * Required. The relative name of the root asset. Only resources and IAM policies within
    +   * the scope will be analyzed.
        * This can only be an organization number (such as "organizations/123"), a
        * folder number (such as "folders/123"), a project ID (such as
        * "projects/my-project-id"), or a project number (such as "projects/12345").
    @@ -5138,15 +4425,16 @@ public java.lang.String getScope() {
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for scope. */ @java.lang.Override - public com.google.protobuf.ByteString getScopeBytes() { + public com.google.protobuf.ByteString + getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); scope_ = b; return b; } else { @@ -5157,16 +4445,11 @@ public com.google.protobuf.ByteString getScopeBytes() { public static final int RESOURCE_SELECTOR_FIELD_NUMBER = 2; private com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resourceSelector_; /** - * - * *
        * Optional. Specifies a resource for analysis.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the resourceSelector field is set. */ @java.lang.Override @@ -5174,54 +4457,37 @@ public boolean hasResourceSelector() { return resourceSelector_ != null; } /** - * - * *
        * Optional. Specifies a resource for analysis.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The resourceSelector. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector getResourceSelector() { - return resourceSelector_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.getDefaultInstance() - : resourceSelector_; + return resourceSelector_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.getDefaultInstance() : resourceSelector_; } /** - * - * *
        * Optional. Specifies a resource for analysis.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder - getResourceSelectorOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder getResourceSelectorOrBuilder() { return getResourceSelector(); } public static final int IDENTITY_SELECTOR_FIELD_NUMBER = 3; private com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identitySelector_; /** - * - * *
        * Optional. Specifies an identity for analysis.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the identitySelector field is set. */ @java.lang.Override @@ -5229,54 +4495,37 @@ public boolean hasIdentitySelector() { return identitySelector_ != null; } /** - * - * *
        * Optional. Specifies an identity for analysis.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The identitySelector. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector getIdentitySelector() { - return identitySelector_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.getDefaultInstance() - : identitySelector_; + return identitySelector_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.getDefaultInstance() : identitySelector_; } /** - * - * *
        * Optional. Specifies an identity for analysis.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder - getIdentitySelectorOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder getIdentitySelectorOrBuilder() { return getIdentitySelector(); } public static final int ACCESS_SELECTOR_FIELD_NUMBER = 4; private com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector accessSelector_; /** - * - * *
        * Optional. Specifies roles or permissions for analysis. This is optional.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the accessSelector field is set. */ @java.lang.Override @@ -5284,54 +4533,37 @@ public boolean hasAccessSelector() { return accessSelector_ != null; } /** - * - * *
        * Optional. Specifies roles or permissions for analysis. This is optional.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The accessSelector. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector getAccessSelector() { - return accessSelector_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.getDefaultInstance() - : accessSelector_; + return accessSelector_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.getDefaultInstance() : accessSelector_; } /** - * - * *
        * Optional. Specifies roles or permissions for analysis. This is optional.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder - getAccessSelectorOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder getAccessSelectorOrBuilder() { return getAccessSelector(); } public static final int OPTIONS_FIELD_NUMBER = 5; private com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options_; /** - * - * *
        * Optional. The query options.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the options field is set. */ @java.lang.Override @@ -5339,34 +4571,23 @@ public boolean hasOptions() { return options_ != null; } /** - * - * *
        * Optional. The query options.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The options. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options getOptions() { - return options_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.getDefaultInstance() - : options_; + return options_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.getDefaultInstance() : options_; } /** - * - * *
        * Optional. The query options.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsOrBuilder getOptionsOrBuilder() { @@ -5376,16 +4597,11 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsOrBuilder getOpti public static final int CONDITION_CONTEXT_FIELD_NUMBER = 6; private com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext conditionContext_; /** - * - * *
        * Optional. The hypothetical context for IAM conditions evaluation.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the conditionContext field is set. */ @java.lang.Override @@ -5393,43 +4609,30 @@ public boolean hasConditionContext() { return conditionContext_ != null; } /** - * - * *
        * Optional. The hypothetical context for IAM conditions evaluation.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The conditionContext. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext getConditionContext() { - return conditionContext_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.getDefaultInstance() - : conditionContext_; + return conditionContext_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.getDefaultInstance() : conditionContext_; } /** - * - * *
        * Optional. The hypothetical context for IAM conditions evaluation.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder - getConditionContextOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder getConditionContextOrBuilder() { return getConditionContext(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5441,7 +4644,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scope_); } @@ -5460,7 +4664,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (conditionContext_ != null) { output.writeMessage(6, getConditionContext()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -5473,21 +4677,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scope_); } if (resourceSelector_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResourceSelector()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getResourceSelector()); } if (identitySelector_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIdentitySelector()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getIdentitySelector()); } if (accessSelector_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAccessSelector()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getAccessSelector()); } if (options_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getOptions()); } if (conditionContext_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getConditionContext()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getConditionContext()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -5495,36 +4704,41 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisQuery)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisQuery other = - (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery other = (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) obj; - if (!getScope().equals(other.getScope())) return false; + if (!getScope() + .equals(other.getScope())) return false; if (hasResourceSelector() != other.hasResourceSelector()) return false; if (hasResourceSelector()) { - if (!getResourceSelector().equals(other.getResourceSelector())) return false; + if (!getResourceSelector() + .equals(other.getResourceSelector())) return false; } if (hasIdentitySelector() != other.hasIdentitySelector()) return false; if (hasIdentitySelector()) { - if (!getIdentitySelector().equals(other.getIdentitySelector())) return false; + if (!getIdentitySelector() + .equals(other.getIdentitySelector())) return false; } if (hasAccessSelector() != other.hasAccessSelector()) return false; if (hasAccessSelector()) { - if (!getAccessSelector().equals(other.getAccessSelector())) return false; + if (!getAccessSelector() + .equals(other.getAccessSelector())) return false; } if (hasOptions() != other.hasOptions()) return false; if (hasOptions()) { - if (!getOptions().equals(other.getOptions())) return false; + if (!getOptions() + .equals(other.getOptions())) return false; } if (hasConditionContext() != other.hasConditionContext()) return false; if (hasConditionContext()) { - if (!getConditionContext().equals(other.getConditionContext())) return false; + if (!getConditionContext() + .equals(other.getConditionContext())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5557,148 +4771,135 @@ public int hashCode() { hash = (37 * hash) + CONDITION_CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getConditionContext().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery 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.asset.v1.IamPolicyAnalysisQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisQuery prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * IAM policy analysis query message.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisQuery} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisQuery) com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.class, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.class, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder.class); } // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisQuery.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -5738,9 +4939,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor; } @java.lang.Override @@ -5759,8 +4960,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery build() { @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery buildPartial() { - com.google.cloud.asset.v1.IamPolicyAnalysisQuery result = - new com.google.cloud.asset.v1.IamPolicyAnalysisQuery(this); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery result = new com.google.cloud.asset.v1.IamPolicyAnalysisQuery(this); result.scope_ = scope_; if (resourceSelectorBuilder_ == null) { result.resourceSelector_ = resourceSelector_; @@ -5795,39 +4995,38 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicyAnalysisQuery) { - return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisQuery) other); + return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisQuery)other); } else { super.mergeFrom(other); return this; @@ -5835,8 +5034,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisQuery other) { - if (other == com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance()) return this; if (!other.getScope().isEmpty()) { scope_ = other.scope_; onChanged(); @@ -5856,7 +5054,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisQuery other) if (other.hasConditionContext()) { mergeConditionContext(other.getConditionContext()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -5871,27 +5069,78 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.IamPolicyAnalysisQuery parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + scope_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getResourceSelectorFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + input.readMessage( + getIdentitySelectorFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + input.readMessage( + getAccessSelectorFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + input.readMessage( + getOptionsFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + case 50: { + input.readMessage( + getConditionContextFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object scope_ = ""; /** - * - * *
    -     * Required. The relative name of the root asset. Only resources and IAM
    -     * policies within the scope will be analyzed.
    +     * Required. The relative name of the root asset. Only resources and IAM policies within
    +     * the scope will be analyzed.
          * This can only be an organization number (such as "organizations/123"), a
          * folder number (such as "folders/123"), a project ID (such as
          * "projects/my-project-id"), or a project number (such as "projects/12345").
    @@ -5902,13 +5151,13 @@ public Builder mergeFrom(
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The scope. */ public java.lang.String getScope() { java.lang.Object ref = scope_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; @@ -5917,11 +5166,9 @@ public java.lang.String getScope() { } } /** - * - * *
    -     * Required. The relative name of the root asset. Only resources and IAM
    -     * policies within the scope will be analyzed.
    +     * Required. The relative name of the root asset. Only resources and IAM policies within
    +     * the scope will be analyzed.
          * This can only be an organization number (such as "organizations/123"), a
          * folder number (such as "folders/123"), a project ID (such as
          * "projects/my-project-id"), or a project number (such as "projects/12345").
    @@ -5932,14 +5179,15 @@ public java.lang.String getScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for scope. */ - public com.google.protobuf.ByteString getScopeBytes() { + public com.google.protobuf.ByteString + getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); scope_ = b; return b; } else { @@ -5947,11 +5195,9 @@ public com.google.protobuf.ByteString getScopeBytes() { } } /** - * - * *
    -     * Required. The relative name of the root asset. Only resources and IAM
    -     * policies within the scope will be analyzed.
    +     * Required. The relative name of the root asset. Only resources and IAM policies within
    +     * the scope will be analyzed.
          * This can only be an organization number (such as "organizations/123"), a
          * folder number (such as "folders/123"), a project ID (such as
          * "projects/my-project-id"), or a project number (such as "projects/12345").
    @@ -5962,25 +5208,23 @@ public com.google.protobuf.ByteString getScopeBytes() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The scope to set. * @return This builder for chaining. */ - public Builder setScope(java.lang.String value) { + public Builder setScope( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + scope_ = value; onChanged(); return this; } /** - * - * *
    -     * Required. The relative name of the root asset. Only resources and IAM
    -     * policies within the scope will be analyzed.
    +     * Required. The relative name of the root asset. Only resources and IAM policies within
    +     * the scope will be analyzed.
          * This can only be an organization number (such as "organizations/123"), a
          * folder number (such as "folders/123"), a project ID (such as
          * "projects/my-project-id"), or a project number (such as "projects/12345").
    @@ -5991,21 +5235,18 @@ public Builder setScope(java.lang.String value) {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearScope() { - + scope_ = getDefaultInstance().getScope(); onChanged(); return this; } /** - * - * *
    -     * Required. The relative name of the root asset. Only resources and IAM
    -     * policies within the scope will be analyzed.
    +     * Required. The relative name of the root asset. Only resources and IAM policies within
    +     * the scope will be analyzed.
          * This can only be an organization number (such as "organizations/123"), a
          * folder number (such as "folders/123"), a project ID (such as
          * "projects/my-project-id"), or a project number (such as "projects/12345").
    @@ -6016,16 +5257,16 @@ public Builder clearScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for scope to set. * @return This builder for chaining. */ - public Builder setScopeBytes(com.google.protobuf.ByteString value) { + public Builder setScopeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scope_ = value; onChanged(); return this; @@ -6033,61 +5274,41 @@ public Builder setScopeBytes(com.google.protobuf.ByteString value) { private com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resourceSelector_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder> - resourceSelectorBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder> resourceSelectorBuilder_; /** - * - * *
          * Optional. Specifies a resource for analysis.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the resourceSelector field is set. */ public boolean hasResourceSelector() { return resourceSelectorBuilder_ != null || resourceSelector_ != null; } /** - * - * *
          * Optional. Specifies a resource for analysis.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The resourceSelector. */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector getResourceSelector() { if (resourceSelectorBuilder_ == null) { - return resourceSelector_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.getDefaultInstance() - : resourceSelector_; + return resourceSelector_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.getDefaultInstance() : resourceSelector_; } else { return resourceSelectorBuilder_.getMessage(); } } /** - * - * *
          * Optional. Specifies a resource for analysis.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setResourceSelector( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector value) { + public Builder setResourceSelector(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector value) { if (resourceSelectorBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6101,15 +5322,11 @@ public Builder setResourceSelector( return this; } /** - * - * *
          * Optional. Specifies a resource for analysis.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setResourceSelector( com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder builderForValue) { @@ -6123,25 +5340,17 @@ public Builder setResourceSelector( return this; } /** - * - * *
          * Optional. Specifies a resource for analysis.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeResourceSelector( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector value) { + public Builder mergeResourceSelector(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector value) { if (resourceSelectorBuilder_ == null) { if (resourceSelector_ != null) { resourceSelector_ = - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.newBuilder( - resourceSelector_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.newBuilder(resourceSelector_).mergeFrom(value).buildPartial(); } else { resourceSelector_ = value; } @@ -6153,15 +5362,11 @@ public Builder mergeResourceSelector( return this; } /** - * - * *
          * Optional. Specifies a resource for analysis.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearResourceSelector() { if (resourceSelectorBuilder_ == null) { @@ -6175,66 +5380,48 @@ public Builder clearResourceSelector() { return this; } /** - * - * *
          * Optional. Specifies a resource for analysis.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder - getResourceSelectorBuilder() { - + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder getResourceSelectorBuilder() { + onChanged(); return getResourceSelectorFieldBuilder().getBuilder(); } /** - * - * *
          * Optional. Specifies a resource for analysis.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder - getResourceSelectorOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder getResourceSelectorOrBuilder() { if (resourceSelectorBuilder_ != null) { return resourceSelectorBuilder_.getMessageOrBuilder(); } else { - return resourceSelector_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.getDefaultInstance() - : resourceSelector_; + return resourceSelector_ == null ? + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.getDefaultInstance() : resourceSelector_; } } /** - * - * *
          * Optional. Specifies a resource for analysis.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder> getResourceSelectorFieldBuilder() { if (resourceSelectorBuilder_ == null) { - resourceSelectorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder>( - getResourceSelector(), getParentForChildren(), isClean()); + resourceSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder>( + getResourceSelector(), + getParentForChildren(), + isClean()); resourceSelector_ = null; } return resourceSelectorBuilder_; @@ -6242,61 +5429,41 @@ public Builder clearResourceSelector() { private com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identitySelector_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder> - identitySelectorBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder> identitySelectorBuilder_; /** - * - * *
          * Optional. Specifies an identity for analysis.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the identitySelector field is set. */ public boolean hasIdentitySelector() { return identitySelectorBuilder_ != null || identitySelector_ != null; } /** - * - * *
          * Optional. Specifies an identity for analysis.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The identitySelector. */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector getIdentitySelector() { if (identitySelectorBuilder_ == null) { - return identitySelector_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.getDefaultInstance() - : identitySelector_; + return identitySelector_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.getDefaultInstance() : identitySelector_; } else { return identitySelectorBuilder_.getMessage(); } } /** - * - * *
          * Optional. Specifies an identity for analysis.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setIdentitySelector( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector value) { + public Builder setIdentitySelector(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector value) { if (identitySelectorBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6310,15 +5477,11 @@ public Builder setIdentitySelector( return this; } /** - * - * *
          * Optional. Specifies an identity for analysis.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setIdentitySelector( com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder builderForValue) { @@ -6332,25 +5495,17 @@ public Builder setIdentitySelector( return this; } /** - * - * *
          * Optional. Specifies an identity for analysis.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeIdentitySelector( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector value) { + public Builder mergeIdentitySelector(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector value) { if (identitySelectorBuilder_ == null) { if (identitySelector_ != null) { identitySelector_ = - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.newBuilder( - identitySelector_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.newBuilder(identitySelector_).mergeFrom(value).buildPartial(); } else { identitySelector_ = value; } @@ -6362,15 +5517,11 @@ public Builder mergeIdentitySelector( return this; } /** - * - * *
          * Optional. Specifies an identity for analysis.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearIdentitySelector() { if (identitySelectorBuilder_ == null) { @@ -6384,66 +5535,48 @@ public Builder clearIdentitySelector() { return this; } /** - * - * *
          * Optional. Specifies an identity for analysis.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder - getIdentitySelectorBuilder() { - + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder getIdentitySelectorBuilder() { + onChanged(); return getIdentitySelectorFieldBuilder().getBuilder(); } /** - * - * *
          * Optional. Specifies an identity for analysis.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder - getIdentitySelectorOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder getIdentitySelectorOrBuilder() { if (identitySelectorBuilder_ != null) { return identitySelectorBuilder_.getMessageOrBuilder(); } else { - return identitySelector_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.getDefaultInstance() - : identitySelector_; + return identitySelector_ == null ? + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.getDefaultInstance() : identitySelector_; } } /** - * - * *
          * Optional. Specifies an identity for analysis.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder> getIdentitySelectorFieldBuilder() { if (identitySelectorBuilder_ == null) { - identitySelectorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder>( - getIdentitySelector(), getParentForChildren(), isClean()); + identitySelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder>( + getIdentitySelector(), + getParentForChildren(), + isClean()); identitySelector_ = null; } return identitySelectorBuilder_; @@ -6451,61 +5584,41 @@ public Builder clearIdentitySelector() { private com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector accessSelector_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder> - accessSelectorBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder> accessSelectorBuilder_; /** - * - * *
          * Optional. Specifies roles or permissions for analysis. This is optional.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the accessSelector field is set. */ public boolean hasAccessSelector() { return accessSelectorBuilder_ != null || accessSelector_ != null; } /** - * - * *
          * Optional. Specifies roles or permissions for analysis. This is optional.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The accessSelector. */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector getAccessSelector() { if (accessSelectorBuilder_ == null) { - return accessSelector_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.getDefaultInstance() - : accessSelector_; + return accessSelector_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.getDefaultInstance() : accessSelector_; } else { return accessSelectorBuilder_.getMessage(); } } /** - * - * *
          * Optional. Specifies roles or permissions for analysis. This is optional.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setAccessSelector( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector value) { + public Builder setAccessSelector(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector value) { if (accessSelectorBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6519,15 +5632,11 @@ public Builder setAccessSelector( return this; } /** - * - * *
          * Optional. Specifies roles or permissions for analysis. This is optional.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAccessSelector( com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder builderForValue) { @@ -6541,25 +5650,17 @@ public Builder setAccessSelector( return this; } /** - * - * *
          * Optional. Specifies roles or permissions for analysis. This is optional.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeAccessSelector( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector value) { + public Builder mergeAccessSelector(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector value) { if (accessSelectorBuilder_ == null) { if (accessSelector_ != null) { accessSelector_ = - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.newBuilder( - accessSelector_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.newBuilder(accessSelector_).mergeFrom(value).buildPartial(); } else { accessSelector_ = value; } @@ -6571,15 +5672,11 @@ public Builder mergeAccessSelector( return this; } /** - * - * *
          * Optional. Specifies roles or permissions for analysis. This is optional.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAccessSelector() { if (accessSelectorBuilder_ == null) { @@ -6593,66 +5690,48 @@ public Builder clearAccessSelector() { return this; } /** - * - * *
          * Optional. Specifies roles or permissions for analysis. This is optional.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder - getAccessSelectorBuilder() { - + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder getAccessSelectorBuilder() { + onChanged(); return getAccessSelectorFieldBuilder().getBuilder(); } /** - * - * *
          * Optional. Specifies roles or permissions for analysis. This is optional.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder - getAccessSelectorOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder getAccessSelectorOrBuilder() { if (accessSelectorBuilder_ != null) { return accessSelectorBuilder_.getMessageOrBuilder(); } else { - return accessSelector_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.getDefaultInstance() - : accessSelector_; + return accessSelector_ == null ? + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.getDefaultInstance() : accessSelector_; } } /** - * - * *
          * Optional. Specifies roles or permissions for analysis. This is optional.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder> getAccessSelectorFieldBuilder() { if (accessSelectorBuilder_ == null) { - accessSelectorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder>( - getAccessSelector(), getParentForChildren(), isClean()); + accessSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder>( + getAccessSelector(), + getParentForChildren(), + isClean()); accessSelector_ = null; } return accessSelectorBuilder_; @@ -6660,58 +5739,39 @@ public Builder clearAccessSelector() { private com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsOrBuilder> - optionsBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsOrBuilder> optionsBuilder_; /** - * - * *
          * Optional. The query options.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the options field is set. */ public boolean hasOptions() { return optionsBuilder_ != null || options_ != null; } /** - * - * *
          * Optional. The query options.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The options. */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options getOptions() { if (optionsBuilder_ == null) { - return options_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.getDefaultInstance() - : options_; + return options_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.getDefaultInstance() : options_; } else { return optionsBuilder_.getMessage(); } } /** - * - * *
          * Optional. The query options.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setOptions(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options value) { if (optionsBuilder_ == null) { @@ -6727,15 +5787,11 @@ public Builder setOptions(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Optio return this; } /** - * - * *
          * Optional. The query options.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setOptions( com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder builderForValue) { @@ -6749,23 +5805,17 @@ public Builder setOptions( return this; } /** - * - * *
          * Optional. The query options.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeOptions(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options value) { if (optionsBuilder_ == null) { if (options_ != null) { options_ = - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.newBuilder(options_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.newBuilder(options_).mergeFrom(value).buildPartial(); } else { options_ = value; } @@ -6777,15 +5827,11 @@ public Builder mergeOptions(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Opt return this; } /** - * - * *
          * Optional. The query options.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearOptions() { if (optionsBuilder_ == null) { @@ -6799,64 +5845,48 @@ public Builder clearOptions() { return this; } /** - * - * *
          * Optional. The query options.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder getOptionsBuilder() { - + onChanged(); return getOptionsFieldBuilder().getBuilder(); } /** - * - * *
          * Optional. The query options.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsOrBuilder getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { - return options_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.getDefaultInstance() - : options_; + return options_ == null ? + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.getDefaultInstance() : options_; } } /** - * - * *
          * Optional. The query options.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { - optionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsOrBuilder>( - getOptions(), getParentForChildren(), isClean()); + optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsOrBuilder>( + getOptions(), + getParentForChildren(), + isClean()); options_ = null; } return optionsBuilder_; @@ -6864,61 +5894,41 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsOrBuilder getOpti private com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext conditionContext_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder> - conditionContextBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder> conditionContextBuilder_; /** - * - * *
          * Optional. The hypothetical context for IAM conditions evaluation.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the conditionContext field is set. */ public boolean hasConditionContext() { return conditionContextBuilder_ != null || conditionContext_ != null; } /** - * - * *
          * Optional. The hypothetical context for IAM conditions evaluation.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The conditionContext. */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext getConditionContext() { if (conditionContextBuilder_ == null) { - return conditionContext_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.getDefaultInstance() - : conditionContext_; + return conditionContext_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.getDefaultInstance() : conditionContext_; } else { return conditionContextBuilder_.getMessage(); } } /** - * - * *
          * Optional. The hypothetical context for IAM conditions evaluation.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setConditionContext( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext value) { + public Builder setConditionContext(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext value) { if (conditionContextBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6932,15 +5942,11 @@ public Builder setConditionContext( return this; } /** - * - * *
          * Optional. The hypothetical context for IAM conditions evaluation.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setConditionContext( com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder builderForValue) { @@ -6954,25 +5960,17 @@ public Builder setConditionContext( return this; } /** - * - * *
          * Optional. The hypothetical context for IAM conditions evaluation.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeConditionContext( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext value) { + public Builder mergeConditionContext(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext value) { if (conditionContextBuilder_ == null) { if (conditionContext_ != null) { conditionContext_ = - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.newBuilder( - conditionContext_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.newBuilder(conditionContext_).mergeFrom(value).buildPartial(); } else { conditionContext_ = value; } @@ -6984,15 +5982,11 @@ public Builder mergeConditionContext( return this; } /** - * - * *
          * Optional. The hypothetical context for IAM conditions evaluation.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearConditionContext() { if (conditionContextBuilder_ == null) { @@ -7006,73 +6000,55 @@ public Builder clearConditionContext() { return this; } /** - * - * *
          * Optional. The hypothetical context for IAM conditions evaluation.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder - getConditionContextBuilder() { - + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder getConditionContextBuilder() { + onChanged(); return getConditionContextFieldBuilder().getBuilder(); } /** - * - * *
          * Optional. The hypothetical context for IAM conditions evaluation.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder - getConditionContextOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder getConditionContextOrBuilder() { if (conditionContextBuilder_ != null) { return conditionContextBuilder_.getMessageOrBuilder(); } else { - return conditionContext_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.getDefaultInstance() - : conditionContext_; + return conditionContext_ == null ? + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.getDefaultInstance() : conditionContext_; } } /** - * - * *
          * Optional. The hypothetical context for IAM conditions evaluation.
          * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder> getConditionContextFieldBuilder() { if (conditionContextBuilder_ == null) { - conditionContextBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder>( - getConditionContext(), getParentForChildren(), isClean()); + conditionContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder>( + getConditionContext(), + getParentForChildren(), + isClean()); conditionContext_ = null; } return conditionContextBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -7082,12 +6058,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisQuery) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisQuery) private static final com.google.cloud.asset.v1.IamPolicyAnalysisQuery DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisQuery(); } @@ -7096,16 +6072,27 @@ public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IamPolicyAnalysisQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IamPolicyAnalysisQuery(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IamPolicyAnalysisQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7120,4 +6107,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQueryOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQueryOrBuilder.java similarity index 57% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQueryOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQueryOrBuilder.java index 9d5e56d5946d..62c147c24f8c 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQueryOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQueryOrBuilder.java @@ -1,34 +1,16 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface IamPolicyAnalysisQueryOrBuilder - extends +public interface IamPolicyAnalysisQueryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisQuery) com.google.protobuf.MessageOrBuilder { /** - * - * *
    -   * Required. The relative name of the root asset. Only resources and IAM
    -   * policies within the scope will be analyzed.
    +   * Required. The relative name of the root asset. Only resources and IAM policies within
    +   * the scope will be analyzed.
        * This can only be an organization number (such as "organizations/123"), a
        * folder number (such as "folders/123"), a project ID (such as
        * "projects/my-project-id"), or a project number (such as "projects/12345").
    @@ -39,16 +21,13 @@ public interface IamPolicyAnalysisQueryOrBuilder
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The scope. */ java.lang.String getScope(); /** - * - * *
    -   * Required. The relative name of the root asset. Only resources and IAM
    -   * policies within the scope will be analyzed.
    +   * Required. The relative name of the root asset. Only resources and IAM policies within
    +   * the scope will be analyzed.
        * This can only be an organization number (such as "organizations/123"), a
        * folder number (such as "folders/123"), a project ID (such as
        * "projects/my-project-id"), or a project number (such as "projects/12345").
    @@ -59,217 +38,143 @@ public interface IamPolicyAnalysisQueryOrBuilder
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for scope. */ - com.google.protobuf.ByteString getScopeBytes(); + com.google.protobuf.ByteString + getScopeBytes(); /** - * - * *
        * Optional. Specifies a resource for analysis.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the resourceSelector field is set. */ boolean hasResourceSelector(); /** - * - * *
        * Optional. Specifies a resource for analysis.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The resourceSelector. */ com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector getResourceSelector(); /** - * - * *
        * Optional. Specifies a resource for analysis.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder - getResourceSelectorOrBuilder(); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder getResourceSelectorOrBuilder(); /** - * - * *
        * Optional. Specifies an identity for analysis.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the identitySelector field is set. */ boolean hasIdentitySelector(); /** - * - * *
        * Optional. Specifies an identity for analysis.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The identitySelector. */ com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector getIdentitySelector(); /** - * - * *
        * Optional. Specifies an identity for analysis.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder - getIdentitySelectorOrBuilder(); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder getIdentitySelectorOrBuilder(); /** - * - * *
        * Optional. Specifies roles or permissions for analysis. This is optional.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the accessSelector field is set. */ boolean hasAccessSelector(); /** - * - * *
        * Optional. Specifies roles or permissions for analysis. This is optional.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The accessSelector. */ com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector getAccessSelector(); /** - * - * *
        * Optional. Specifies roles or permissions for analysis. This is optional.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder - getAccessSelectorOrBuilder(); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder getAccessSelectorOrBuilder(); /** - * - * *
        * Optional. The query options.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the options field is set. */ boolean hasOptions(); /** - * - * *
        * Optional. The query options.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The options. */ com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options getOptions(); /** - * - * *
        * Optional. The query options.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsOrBuilder getOptionsOrBuilder(); /** - * - * *
        * Optional. The hypothetical context for IAM conditions evaluation.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the conditionContext field is set. */ boolean hasConditionContext(); /** - * - * *
        * Optional. The hypothetical context for IAM conditions evaluation.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The conditionContext. */ com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext getConditionContext(); /** - * - * *
        * Optional. The hypothetical context for IAM conditions evaluation.
        * 
    * - * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder - getConditionContextOrBuilder(); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder getConditionContextOrBuilder(); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResult.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResult.java similarity index 66% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResult.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResult.java index 49581224e75a..3fd756ba0819 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResult.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResult.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** - * - * *
      * IAM Policy analysis result, consisting of one IAM policy binding and derived
      * access control lists.
    @@ -28,16 +11,15 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult}
      */
    -public final class IamPolicyAnalysisResult extends com.google.protobuf.GeneratedMessageV3
    -    implements
    +public final class IamPolicyAnalysisResult extends
    +    com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisResult)
         IamPolicyAnalysisResultOrBuilder {
    -  private static final long serialVersionUID = 0L;
    +private static final long serialVersionUID = 0L;
       // Use IamPolicyAnalysisResult.newBuilder() to construct.
       private IamPolicyAnalysisResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -
       private IamPolicyAnalysisResult() {
         attachedResourceFullName_ = "";
         accessControlLists_ = java.util.Collections.emptyList();
    @@ -45,191 +27,74 @@ private IamPolicyAnalysisResult() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(
    +      UnusedPrivateParameter unused) {
         return new IamPolicyAnalysisResult();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet
    +  getUnknownFields() {
         return this.unknownFields;
       }
    -
    -  private IamPolicyAnalysisResult(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              attachedResourceFullName_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.iam.v1.Binding.Builder subBuilder = null;
    -              if (iamBinding_ != null) {
    -                subBuilder = iamBinding_.toBuilder();
    -              }
    -              iamBinding_ =
    -                  input.readMessage(com.google.iam.v1.Binding.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(iamBinding_);
    -                iamBinding_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 26:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                accessControlLists_ =
    -                    new java.util.ArrayList<
    -                        com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList>();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              accessControlLists_.add(
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.parser(),
    -                      extensionRegistry));
    -              break;
    -            }
    -          case 34:
    -            {
    -              com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder subBuilder =
    -                  null;
    -              if (identityList_ != null) {
    -                subBuilder = identityList_.toBuilder();
    -              }
    -              identityList_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(identityList_);
    -                identityList_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 40:
    -            {
    -              fullyExplored_ = input.readBool();
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        accessControlLists_ = java.util.Collections.unmodifiableList(accessControlLists_);
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
    -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetProto
    -        .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor;
    +  public static final com.google.protobuf.Descriptors.Descriptor
    +      getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetProto
    -        .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1.IamPolicyAnalysisResult.class,
    -            com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder.class);
    +            com.google.cloud.asset.v1.IamPolicyAnalysisResult.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder.class);
       }
     
    -  public interface ResourceOrBuilder
    -      extends
    +  public interface ResourceOrBuilder extends
           // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisResult.Resource)
           com.google.protobuf.MessageOrBuilder {
     
         /**
    -     *
    -     *
          * 
          * The [full resource
          * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
          * 
    * * string full_resource_name = 1; - * * @return The fullResourceName. */ java.lang.String getFullResourceName(); /** - * - * *
          * The [full resource
          * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
          * 
    * * string full_resource_name = 1; - * * @return The bytes for fullResourceName. */ - com.google.protobuf.ByteString getFullResourceNameBytes(); + com.google.protobuf.ByteString + getFullResourceNameBytes(); /** - * - * *
          * The analysis state of this resource.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; - * * @return Whether the analysisState field is set. */ boolean hasAnalysisState(); /** - * - * *
          * The analysis state of this resource.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; - * * @return The analysisState. */ com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState(); /** - * - * *
          * The analysis state of this resource.
          * 
    @@ -239,129 +104,59 @@ public interface ResourceOrBuilder com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStateOrBuilder(); } /** - * - * *
        * A Google Cloud resource under analysis.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.Resource} */ - public static final class Resource extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Resource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.Resource) ResourceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Resource.newBuilder() to construct. private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Resource() { fullResourceName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Resource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + 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(); - - fullResourceName_ = s; - break; - } - case 18: - { - com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder subBuilder = null; - if (analysisState_ != null) { - subBuilder = analysisState_.toBuilder(); - } - analysisState_ = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisState.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(analysisState_); - analysisState_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.class, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder.class); } public static final int FULL_RESOURCE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object fullResourceName_; /** - * - * *
          * The [full resource
          * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
          * 
    * * string full_resource_name = 1; - * * @return The fullResourceName. */ @java.lang.Override @@ -370,30 +165,30 @@ public java.lang.String getFullResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fullResourceName_ = s; return s; } } /** - * - * *
          * The [full resource
          * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
          * 
    * * string full_resource_name = 1; - * * @return The bytes for fullResourceName. */ @java.lang.Override - public com.google.protobuf.ByteString getFullResourceNameBytes() { + public com.google.protobuf.ByteString + getFullResourceNameBytes() { java.lang.Object ref = fullResourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fullResourceName_ = b; return b; } else { @@ -404,14 +199,11 @@ public com.google.protobuf.ByteString getFullResourceNameBytes() { public static final int ANALYSIS_STATE_FIELD_NUMBER = 2; private com.google.cloud.asset.v1.IamPolicyAnalysisState analysisState_; /** - * - * *
          * The analysis state of this resource.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; - * * @return Whether the analysisState field is set. */ @java.lang.Override @@ -419,25 +211,18 @@ public boolean hasAnalysisState() { return analysisState_ != null; } /** - * - * *
          * The analysis state of this resource.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; - * * @return The analysisState. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState() { - return analysisState_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() - : analysisState_; + return analysisState_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() : analysisState_; } /** - * - * *
          * The analysis state of this resource.
          * 
    @@ -450,7 +235,6 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStat } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -462,14 +246,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fullResourceName_); } if (analysisState_ != null) { output.writeMessage(2, getAnalysisState()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -482,9 +267,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fullResourceName_); } if (analysisState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAnalysisState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAnalysisState()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -492,20 +278,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource other = - (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource other = (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource) obj; - if (!getFullResourceName().equals(other.getFullResourceName())) return false; + if (!getFullResourceName() + .equals(other.getFullResourceName())) return false; if (hasAnalysisState() != other.hasAnalysisState()) return false; if (hasAnalysisState()) { - if (!getAnalysisState().equals(other.getAnalysisState())) return false; + if (!getAnalysisState() + .equals(other.getAnalysisState())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -522,100 +309,93 @@ public int hashCode() { hash = (37 * hash) + ANALYSIS_STATE_FIELD_NUMBER; hash = (53 * hash) + getAnalysisState().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.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.asset.v1.IamPolicyAnalysisResult.Resource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -625,48 +405,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * A Google Cloud resource under analysis.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.Resource} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.Resource) com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.class, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder.class); } // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -682,14 +453,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource - getDefaultInstanceForType() { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource getDefaultInstanceForType() { return com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.getDefaultInstance(); } @@ -704,8 +474,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource build() { @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource buildPartial() { - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource result = - new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource(this); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource result = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource(this); result.fullResourceName_ = fullResourceName_; if (analysisStateBuilder_ == null) { result.analysisState_ = analysisState_; @@ -720,41 +489,38 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicyAnalysisResult.Resource) { - return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource) other); + return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource)other); } else { super.mergeFrom(other); return this; @@ -762,9 +528,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource other) { - if (other - == com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.getDefaultInstance()) return this; if (!other.getFullResourceName().isEmpty()) { fullResourceName_ = other.fullResourceName_; onChanged(); @@ -772,7 +536,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resou if (other.hasAnalysisState()) { mergeAnalysisState(other.getAnalysisState()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -787,38 +551,60 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + fullResourceName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getAnalysisStateFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object fullResourceName_ = ""; /** - * - * *
            * The [full resource
            * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
            * 
    * * string full_resource_name = 1; - * * @return The fullResourceName. */ public java.lang.String getFullResourceName() { java.lang.Object ref = fullResourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fullResourceName_ = s; return s; @@ -827,22 +613,21 @@ public java.lang.String getFullResourceName() { } } /** - * - * *
            * The [full resource
            * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
            * 
    * * string full_resource_name = 1; - * * @return The bytes for fullResourceName. */ - public com.google.protobuf.ByteString getFullResourceNameBytes() { + public com.google.protobuf.ByteString + getFullResourceNameBytes() { java.lang.Object ref = fullResourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fullResourceName_ = b; return b; } else { @@ -850,64 +635,57 @@ public com.google.protobuf.ByteString getFullResourceNameBytes() { } } /** - * - * *
            * The [full resource
            * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
            * 
    * * string full_resource_name = 1; - * * @param value The fullResourceName to set. * @return This builder for chaining. */ - public Builder setFullResourceName(java.lang.String value) { + public Builder setFullResourceName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fullResourceName_ = value; onChanged(); return this; } /** - * - * *
            * The [full resource
            * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
            * 
    * * string full_resource_name = 1; - * * @return This builder for chaining. */ public Builder clearFullResourceName() { - + fullResourceName_ = getDefaultInstance().getFullResourceName(); onChanged(); return this; } /** - * - * *
            * The [full resource
            * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
            * 
    * * string full_resource_name = 1; - * * @param value The bytes for fullResourceName to set. * @return This builder for chaining. */ - public Builder setFullResourceNameBytes(com.google.protobuf.ByteString value) { + public Builder setFullResourceNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fullResourceName_ = value; onChanged(); return this; @@ -915,47 +693,34 @@ public Builder setFullResourceNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.asset.v1.IamPolicyAnalysisState analysisState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisState, - com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> - analysisStateBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisState, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> analysisStateBuilder_; /** - * - * *
            * The analysis state of this resource.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; - * * @return Whether the analysisState field is set. */ public boolean hasAnalysisState() { return analysisStateBuilder_ != null || analysisState_ != null; } /** - * - * *
            * The analysis state of this resource.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; - * * @return The analysisState. */ public com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState() { if (analysisStateBuilder_ == null) { - return analysisState_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() - : analysisState_; + return analysisState_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() : analysisState_; } else { return analysisStateBuilder_.getMessage(); } } /** - * - * *
            * The analysis state of this resource.
            * 
    @@ -976,8 +741,6 @@ public Builder setAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisState return this; } /** - * - * *
            * The analysis state of this resource.
            * 
    @@ -996,8 +759,6 @@ public Builder setAnalysisState( return this; } /** - * - * *
            * The analysis state of this resource.
            * 
    @@ -1008,9 +769,7 @@ public Builder mergeAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisSta if (analysisStateBuilder_ == null) { if (analysisState_ != null) { analysisState_ = - com.google.cloud.asset.v1.IamPolicyAnalysisState.newBuilder(analysisState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisState.newBuilder(analysisState_).mergeFrom(value).buildPartial(); } else { analysisState_ = value; } @@ -1022,8 +781,6 @@ public Builder mergeAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisSta return this; } /** - * - * *
            * The analysis state of this resource.
            * 
    @@ -1042,8 +799,6 @@ public Builder clearAnalysisState() { return this; } /** - * - * *
            * The analysis state of this resource.
            * 
    @@ -1051,13 +806,11 @@ public Builder clearAnalysisState() { * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; */ public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder getAnalysisStateBuilder() { - + onChanged(); return getAnalysisStateFieldBuilder().getBuilder(); } /** - * - * *
            * The analysis state of this resource.
            * 
    @@ -1068,14 +821,11 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStat if (analysisStateBuilder_ != null) { return analysisStateBuilder_.getMessageOrBuilder(); } else { - return analysisState_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() - : analysisState_; + return analysisState_ == null ? + com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() : analysisState_; } } /** - * - * *
            * The analysis state of this resource.
            * 
    @@ -1083,22 +833,18 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStat * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisState, - com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisState, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> getAnalysisStateFieldBuilder() { if (analysisStateBuilder_ == null) { - analysisStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisState, - com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>( - getAnalysisState(), getParentForChildren(), isClean()); + analysisStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisState, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>( + getAnalysisState(), + getParentForChildren(), + isClean()); analysisState_ = null; } return analysisStateBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1111,13 +857,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.Resource) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.Resource) - private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource - DEFAULT_INSTANCE; - + private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource(); } @@ -1126,16 +871,27 @@ public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource getDefa return DEFAULT_INSTANCE; } - 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); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1150,114 +906,90 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface AccessOrBuilder - extends + public interface AccessOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisResult.Access) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * The role.
          * 
    * * string role = 1; - * * @return Whether the role field is set. */ boolean hasRole(); /** - * - * *
          * The role.
          * 
    * * string role = 1; - * * @return The role. */ java.lang.String getRole(); /** - * - * *
          * The role.
          * 
    * * string role = 1; - * * @return The bytes for role. */ - com.google.protobuf.ByteString getRoleBytes(); + com.google.protobuf.ByteString + getRoleBytes(); /** - * - * *
          * The permission.
          * 
    * * string permission = 2; - * * @return Whether the permission field is set. */ boolean hasPermission(); /** - * - * *
          * The permission.
          * 
    * * string permission = 2; - * * @return The permission. */ java.lang.String getPermission(); /** - * - * *
          * The permission.
          * 
    * * string permission = 2; - * * @return The bytes for permission. */ - com.google.protobuf.ByteString getPermissionBytes(); + com.google.protobuf.ByteString + getPermissionBytes(); /** - * - * *
          * The analysis state of this access.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3; - * * @return Whether the analysisState field is set. */ boolean hasAnalysisState(); /** - * - * *
          * The analysis state of this access.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3; - * * @return The analysisState. */ com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState(); /** - * - * *
          * The analysis state of this access.
          * 
    @@ -1266,138 +998,61 @@ public interface AccessOrBuilder */ com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStateOrBuilder(); - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.OneofAccessCase - getOneofAccessCase(); + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.OneofAccessCase getOneofAccessCase(); } /** - * - * *
        * An IAM role or permission under analysis.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.Access} */ - public static final class Access extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Access extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.Access) AccessOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Access.newBuilder() to construct. private Access(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Access() {} + private Access() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Access(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private Access( - 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(); - oneofAccessCase_ = 1; - oneofAccess_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - oneofAccessCase_ = 2; - oneofAccess_ = s; - break; - } - case 26: - { - com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder subBuilder = null; - if (analysisState_ != null) { - subBuilder = analysisState_.toBuilder(); - } - analysisState_ = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisState.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(analysisState_); - analysisState_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.class, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder.class); } private int oneofAccessCase_ = 0; private java.lang.Object oneofAccess_; - public enum OneofAccessCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ROLE(1), PERMISSION(2), ONEOFACCESS_NOT_SET(0); private final int value; - private OneofAccessCase(int value) { this.value = value; } @@ -1413,50 +1068,41 @@ public static OneofAccessCase valueOf(int value) { public static OneofAccessCase forNumber(int value) { switch (value) { - case 1: - return ROLE; - case 2: - return PERMISSION; - case 0: - return ONEOFACCESS_NOT_SET; - default: - return null; + case 1: return ROLE; + case 2: return PERMISSION; + case 0: return ONEOFACCESS_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public OneofAccessCase getOneofAccessCase() { - return OneofAccessCase.forNumber(oneofAccessCase_); + public OneofAccessCase + getOneofAccessCase() { + return OneofAccessCase.forNumber( + oneofAccessCase_); } public static final int ROLE_FIELD_NUMBER = 1; /** - * - * *
          * The role.
          * 
    * * string role = 1; - * * @return Whether the role field is set. */ public boolean hasRole() { return oneofAccessCase_ == 1; } /** - * - * *
          * The role.
          * 
    * * string role = 1; - * * @return The role. */ public java.lang.String getRole() { @@ -1467,7 +1113,8 @@ public java.lang.String getRole() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (oneofAccessCase_ == 1) { oneofAccess_ = s; @@ -1476,24 +1123,23 @@ public java.lang.String getRole() { } } /** - * - * *
          * The role.
          * 
    * * string role = 1; - * * @return The bytes for role. */ - public com.google.protobuf.ByteString getRoleBytes() { + public com.google.protobuf.ByteString + getRoleBytes() { java.lang.Object ref = ""; if (oneofAccessCase_ == 1) { ref = oneofAccess_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (oneofAccessCase_ == 1) { oneofAccess_ = b; } @@ -1505,28 +1151,22 @@ public com.google.protobuf.ByteString getRoleBytes() { public static final int PERMISSION_FIELD_NUMBER = 2; /** - * - * *
          * The permission.
          * 
    * * string permission = 2; - * * @return Whether the permission field is set. */ public boolean hasPermission() { return oneofAccessCase_ == 2; } /** - * - * *
          * The permission.
          * 
    * * string permission = 2; - * * @return The permission. */ public java.lang.String getPermission() { @@ -1537,7 +1177,8 @@ public java.lang.String getPermission() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (oneofAccessCase_ == 2) { oneofAccess_ = s; @@ -1546,24 +1187,23 @@ public java.lang.String getPermission() { } } /** - * - * *
          * The permission.
          * 
    * * string permission = 2; - * * @return The bytes for permission. */ - public com.google.protobuf.ByteString getPermissionBytes() { + public com.google.protobuf.ByteString + getPermissionBytes() { java.lang.Object ref = ""; if (oneofAccessCase_ == 2) { ref = oneofAccess_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (oneofAccessCase_ == 2) { oneofAccess_ = b; } @@ -1576,14 +1216,11 @@ public com.google.protobuf.ByteString getPermissionBytes() { public static final int ANALYSIS_STATE_FIELD_NUMBER = 3; private com.google.cloud.asset.v1.IamPolicyAnalysisState analysisState_; /** - * - * *
          * The analysis state of this access.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3; - * * @return Whether the analysisState field is set. */ @java.lang.Override @@ -1591,25 +1228,18 @@ public boolean hasAnalysisState() { return analysisState_ != null; } /** - * - * *
          * The analysis state of this access.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3; - * * @return The analysisState. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState() { - return analysisState_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() - : analysisState_; + return analysisState_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() : analysisState_; } /** - * - * *
          * The analysis state of this access.
          * 
    @@ -1622,7 +1252,6 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStat } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1634,7 +1263,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (oneofAccessCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oneofAccess_); } @@ -1644,7 +1274,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (analysisState_ != null) { output.writeMessage(3, getAnalysisState()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1660,9 +1290,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, oneofAccess_); } if (analysisState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAnalysisState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAnalysisState()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1670,30 +1301,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access other = - (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access other = (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access) obj; if (hasAnalysisState() != other.hasAnalysisState()) return false; if (hasAnalysisState()) { - if (!getAnalysisState().equals(other.getAnalysisState())) return false; + if (!getAnalysisState() + .equals(other.getAnalysisState())) return false; } if (!getOneofAccessCase().equals(other.getOneofAccessCase())) return false; switch (oneofAccessCase_) { case 1: - if (!getRole().equals(other.getRole())) return false; + if (!getRole() + .equals(other.getRole())) return false; break; case 2: - if (!getPermission().equals(other.getPermission())) return false; + if (!getPermission() + .equals(other.getPermission())) return false; break; case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1720,100 +1353,93 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access 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.asset.v1.IamPolicyAnalysisResult.Access parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1823,48 +1449,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * An IAM role or permission under analysis.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.Access} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.Access) com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.class, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder.class); } // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -1880,9 +1497,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor; } @java.lang.Override @@ -1901,8 +1518,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access build() { @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access buildPartial() { - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access result = - new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access(this); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access result = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access(this); if (oneofAccessCase_ == 1) { result.oneofAccess_ = oneofAccess_; } @@ -1923,41 +1539,38 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicyAnalysisResult.Access) { - return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access) other); + return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access)other); } else { super.mergeFrom(other); return this; @@ -1965,32 +1578,28 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access other) { - if (other == com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.getDefaultInstance()) return this; if (other.hasAnalysisState()) { mergeAnalysisState(other.getAnalysisState()); } switch (other.getOneofAccessCase()) { - case ROLE: - { - oneofAccessCase_ = 1; - oneofAccess_ = other.oneofAccess_; - onChanged(); - break; - } - case PERMISSION: - { - oneofAccessCase_ = 2; - oneofAccess_ = other.oneofAccess_; - onChanged(); - break; - } - case ONEOFACCESS_NOT_SET: - { - break; - } + case ROLE: { + oneofAccessCase_ = 1; + oneofAccess_ = other.oneofAccess_; + onChanged(); + break; + } + case PERMISSION: { + oneofAccessCase_ = 2; + oneofAccess_ = other.oneofAccess_; + onChanged(); + break; + } + case ONEOFACCESS_NOT_SET: { + break; + } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2005,26 +1614,57 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + oneofAccessCase_ = 1; + oneofAccess_ = s; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + oneofAccessCase_ = 2; + oneofAccess_ = s; + break; + } // case 18 + case 26: { + input.readMessage( + getAnalysisStateFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int oneofAccessCase_ = 0; private java.lang.Object oneofAccess_; - - public OneofAccessCase getOneofAccessCase() { - return OneofAccessCase.forNumber(oneofAccessCase_); + public OneofAccessCase + getOneofAccessCase() { + return OneofAccessCase.forNumber( + oneofAccessCase_); } public Builder clearOneofAccess() { @@ -2034,15 +1674,13 @@ public Builder clearOneofAccess() { return this; } + /** - * - * *
            * The role.
            * 
    * * string role = 1; - * * @return Whether the role field is set. */ @java.lang.Override @@ -2050,14 +1688,11 @@ public boolean hasRole() { return oneofAccessCase_ == 1; } /** - * - * *
            * The role.
            * 
    * * string role = 1; - * * @return The role. */ @java.lang.Override @@ -2067,7 +1702,8 @@ public java.lang.String getRole() { ref = oneofAccess_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (oneofAccessCase_ == 1) { oneofAccess_ = s; @@ -2078,25 +1714,24 @@ public java.lang.String getRole() { } } /** - * - * *
            * The role.
            * 
    * * string role = 1; - * * @return The bytes for role. */ @java.lang.Override - public com.google.protobuf.ByteString getRoleBytes() { + public com.google.protobuf.ByteString + getRoleBytes() { java.lang.Object ref = ""; if (oneofAccessCase_ == 1) { ref = oneofAccess_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (oneofAccessCase_ == 1) { oneofAccess_ = b; } @@ -2106,35 +1741,30 @@ public com.google.protobuf.ByteString getRoleBytes() { } } /** - * - * *
            * The role.
            * 
    * * string role = 1; - * * @param value The role to set. * @return This builder for chaining. */ - public Builder setRole(java.lang.String value) { + public Builder setRole( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - oneofAccessCase_ = 1; + throw new NullPointerException(); + } + oneofAccessCase_ = 1; oneofAccess_ = value; onChanged(); return this; } /** - * - * *
            * The role.
            * 
    * * string role = 1; - * * @return This builder for chaining. */ public Builder clearRole() { @@ -2146,22 +1776,20 @@ public Builder clearRole() { return this; } /** - * - * *
            * The role.
            * 
    * * string role = 1; - * * @param value The bytes for role to set. * @return This builder for chaining. */ - public Builder setRoleBytes(com.google.protobuf.ByteString value) { + public Builder setRoleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); oneofAccessCase_ = 1; oneofAccess_ = value; onChanged(); @@ -2169,14 +1797,11 @@ public Builder setRoleBytes(com.google.protobuf.ByteString value) { } /** - * - * *
            * The permission.
            * 
    * * string permission = 2; - * * @return Whether the permission field is set. */ @java.lang.Override @@ -2184,14 +1809,11 @@ public boolean hasPermission() { return oneofAccessCase_ == 2; } /** - * - * *
            * The permission.
            * 
    * * string permission = 2; - * * @return The permission. */ @java.lang.Override @@ -2201,7 +1823,8 @@ public java.lang.String getPermission() { ref = oneofAccess_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (oneofAccessCase_ == 2) { oneofAccess_ = s; @@ -2212,25 +1835,24 @@ public java.lang.String getPermission() { } } /** - * - * *
            * The permission.
            * 
    * * string permission = 2; - * * @return The bytes for permission. */ @java.lang.Override - public com.google.protobuf.ByteString getPermissionBytes() { + public com.google.protobuf.ByteString + getPermissionBytes() { java.lang.Object ref = ""; if (oneofAccessCase_ == 2) { ref = oneofAccess_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (oneofAccessCase_ == 2) { oneofAccess_ = b; } @@ -2240,35 +1862,30 @@ public com.google.protobuf.ByteString getPermissionBytes() { } } /** - * - * *
            * The permission.
            * 
    * * string permission = 2; - * * @param value The permission to set. * @return This builder for chaining. */ - public Builder setPermission(java.lang.String value) { + public Builder setPermission( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - oneofAccessCase_ = 2; + throw new NullPointerException(); + } + oneofAccessCase_ = 2; oneofAccess_ = value; onChanged(); return this; } /** - * - * *
            * The permission.
            * 
    * * string permission = 2; - * * @return This builder for chaining. */ public Builder clearPermission() { @@ -2280,22 +1897,20 @@ public Builder clearPermission() { return this; } /** - * - * *
            * The permission.
            * 
    * * string permission = 2; - * * @param value The bytes for permission to set. * @return This builder for chaining. */ - public Builder setPermissionBytes(com.google.protobuf.ByteString value) { + public Builder setPermissionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); oneofAccessCase_ = 2; oneofAccess_ = value; onChanged(); @@ -2304,47 +1919,34 @@ public Builder setPermissionBytes(com.google.protobuf.ByteString value) { private com.google.cloud.asset.v1.IamPolicyAnalysisState analysisState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisState, - com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> - analysisStateBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisState, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> analysisStateBuilder_; /** - * - * *
            * The analysis state of this access.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3; - * * @return Whether the analysisState field is set. */ public boolean hasAnalysisState() { return analysisStateBuilder_ != null || analysisState_ != null; } /** - * - * *
            * The analysis state of this access.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3; - * * @return The analysisState. */ public com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState() { if (analysisStateBuilder_ == null) { - return analysisState_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() - : analysisState_; + return analysisState_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() : analysisState_; } else { return analysisStateBuilder_.getMessage(); } } /** - * - * *
            * The analysis state of this access.
            * 
    @@ -2365,8 +1967,6 @@ public Builder setAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisState return this; } /** - * - * *
            * The analysis state of this access.
            * 
    @@ -2385,8 +1985,6 @@ public Builder setAnalysisState( return this; } /** - * - * *
            * The analysis state of this access.
            * 
    @@ -2397,9 +1995,7 @@ public Builder mergeAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisSta if (analysisStateBuilder_ == null) { if (analysisState_ != null) { analysisState_ = - com.google.cloud.asset.v1.IamPolicyAnalysisState.newBuilder(analysisState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisState.newBuilder(analysisState_).mergeFrom(value).buildPartial(); } else { analysisState_ = value; } @@ -2411,8 +2007,6 @@ public Builder mergeAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisSta return this; } /** - * - * *
            * The analysis state of this access.
            * 
    @@ -2431,8 +2025,6 @@ public Builder clearAnalysisState() { return this; } /** - * - * *
            * The analysis state of this access.
            * 
    @@ -2440,13 +2032,11 @@ public Builder clearAnalysisState() { * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3; */ public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder getAnalysisStateBuilder() { - + onChanged(); return getAnalysisStateFieldBuilder().getBuilder(); } /** - * - * *
            * The analysis state of this access.
            * 
    @@ -2457,14 +2047,11 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStat if (analysisStateBuilder_ != null) { return analysisStateBuilder_.getMessageOrBuilder(); } else { - return analysisState_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() - : analysisState_; + return analysisState_ == null ? + com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() : analysisState_; } } /** - * - * *
            * The analysis state of this access.
            * 
    @@ -2472,22 +2059,18 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStat * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisState, - com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisState, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> getAnalysisStateFieldBuilder() { if (analysisStateBuilder_ == null) { - analysisStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisState, - com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>( - getAnalysisState(), getParentForChildren(), isClean()); + analysisStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisState, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>( + getAnalysisState(), + getParentForChildren(), + isClean()); analysisState_ = null; } return analysisStateBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2500,12 +2083,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.Access) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.Access) private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access(); } @@ -2514,16 +2097,27 @@ public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Access parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Access(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Access parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2538,16 +2132,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface IdentityOrBuilder - extends + public interface IdentityOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisResult.Identity) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * The identity name in any form of members appear in
          * [IAM policy
    @@ -2563,13 +2155,10 @@ public interface IdentityOrBuilder
          * 
    * * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
          * The identity name in any form of members appear in
          * [IAM policy
    @@ -2585,38 +2174,30 @@ public interface IdentityOrBuilder
          * 
    * * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
          * The analysis state of this identity.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; - * * @return Whether the analysisState field is set. */ boolean hasAnalysisState(); /** - * - * *
          * The analysis state of this identity.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; - * * @return The analysisState. */ com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState(); /** - * - * *
          * The analysis state of this identity.
          * 
    @@ -2626,122 +2207,53 @@ public interface IdentityOrBuilder com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStateOrBuilder(); } /** - * - * *
        * An identity under analysis.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.Identity} */ - public static final class Identity extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Identity extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.Identity) IdentityOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Identity.newBuilder() to construct. private Identity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Identity() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Identity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private Identity( - 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: - { - com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder subBuilder = null; - if (analysisState_ != null) { - subBuilder = analysisState_.toBuilder(); - } - analysisState_ = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisState.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(analysisState_); - analysisState_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.class, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
          * The identity name in any form of members appear in
          * [IAM policy
    @@ -2757,7 +2269,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          * 
    * * string name = 1; - * * @return The name. */ @java.lang.Override @@ -2766,15 +2277,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
          * The identity name in any form of members appear in
          * [IAM policy
    @@ -2790,15 +2300,16 @@ public java.lang.String getName() {
          * 
    * * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2809,14 +2320,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ANALYSIS_STATE_FIELD_NUMBER = 2; private com.google.cloud.asset.v1.IamPolicyAnalysisState analysisState_; /** - * - * *
          * The analysis state of this identity.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; - * * @return Whether the analysisState field is set. */ @java.lang.Override @@ -2824,25 +2332,18 @@ public boolean hasAnalysisState() { return analysisState_ != null; } /** - * - * *
          * The analysis state of this identity.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; - * * @return The analysisState. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState() { - return analysisState_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() - : analysisState_; + return analysisState_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() : analysisState_; } /** - * - * *
          * The analysis state of this identity.
          * 
    @@ -2855,7 +2356,6 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStat } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2867,14 +2367,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (analysisState_ != null) { output.writeMessage(2, getAnalysisState()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2887,9 +2388,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (analysisState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAnalysisState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAnalysisState()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -2897,20 +2399,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity other = - (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity other = (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasAnalysisState() != other.hasAnalysisState()) return false; if (hasAnalysisState()) { - if (!getAnalysisState().equals(other.getAnalysisState())) return false; + if (!getAnalysisState() + .equals(other.getAnalysisState())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2927,100 +2430,93 @@ public int hashCode() { hash = (37 * hash) + ANALYSIS_STATE_FIELD_NUMBER; hash = (53 * hash) + getAnalysisState().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity 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.asset.v1.IamPolicyAnalysisResult.Identity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3030,48 +2526,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * An identity under analysis.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.Identity} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.Identity) com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.class, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder.class); } // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -3087,14 +2574,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity - getDefaultInstanceForType() { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getDefaultInstanceForType() { return com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.getDefaultInstance(); } @@ -3109,8 +2595,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity build() { @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity buildPartial() { - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity result = - new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity(this); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity result = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity(this); result.name_ = name_; if (analysisStateBuilder_ == null) { result.analysisState_ = analysisState_; @@ -3125,41 +2610,38 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicyAnalysisResult.Identity) { - return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity) other); + return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity)other); } else { super.mergeFrom(other); return this; @@ -3167,9 +2649,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity other) { - if (other - == com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -3177,7 +2657,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Ident if (other.hasAnalysisState()) { mergeAnalysisState(other.getAnalysisState()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -3192,25 +2672,47 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getAnalysisStateFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object name_ = ""; /** - * - * *
            * The identity name in any form of members appear in
            * [IAM policy
    @@ -3226,13 +2728,13 @@ public Builder mergeFrom(
            * 
    * * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -3241,8 +2743,6 @@ public java.lang.String getName() { } } /** - * - * *
            * The identity name in any form of members appear in
            * [IAM policy
    @@ -3258,14 +2758,15 @@ public java.lang.String getName() {
            * 
    * * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -3273,8 +2774,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
            * The identity name in any form of members appear in
            * [IAM policy
    @@ -3290,22 +2789,20 @@ public com.google.protobuf.ByteString getNameBytes() {
            * 
    * * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
            * The identity name in any form of members appear in
            * [IAM policy
    @@ -3321,18 +2818,15 @@ public Builder setName(java.lang.String value) {
            * 
    * * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
            * The identity name in any form of members appear in
            * [IAM policy
    @@ -3348,16 +2842,16 @@ public Builder clearName() {
            * 
    * * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -3365,47 +2859,34 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.asset.v1.IamPolicyAnalysisState analysisState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisState, - com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> - analysisStateBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisState, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> analysisStateBuilder_; /** - * - * *
            * The analysis state of this identity.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; - * * @return Whether the analysisState field is set. */ public boolean hasAnalysisState() { return analysisStateBuilder_ != null || analysisState_ != null; } /** - * - * *
            * The analysis state of this identity.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; - * * @return The analysisState. */ public com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState() { if (analysisStateBuilder_ == null) { - return analysisState_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() - : analysisState_; + return analysisState_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() : analysisState_; } else { return analysisStateBuilder_.getMessage(); } } /** - * - * *
            * The analysis state of this identity.
            * 
    @@ -3426,8 +2907,6 @@ public Builder setAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisState return this; } /** - * - * *
            * The analysis state of this identity.
            * 
    @@ -3446,8 +2925,6 @@ public Builder setAnalysisState( return this; } /** - * - * *
            * The analysis state of this identity.
            * 
    @@ -3458,9 +2935,7 @@ public Builder mergeAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisSta if (analysisStateBuilder_ == null) { if (analysisState_ != null) { analysisState_ = - com.google.cloud.asset.v1.IamPolicyAnalysisState.newBuilder(analysisState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisState.newBuilder(analysisState_).mergeFrom(value).buildPartial(); } else { analysisState_ = value; } @@ -3472,8 +2947,6 @@ public Builder mergeAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisSta return this; } /** - * - * *
            * The analysis state of this identity.
            * 
    @@ -3492,8 +2965,6 @@ public Builder clearAnalysisState() { return this; } /** - * - * *
            * The analysis state of this identity.
            * 
    @@ -3501,13 +2972,11 @@ public Builder clearAnalysisState() { * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; */ public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder getAnalysisStateBuilder() { - + onChanged(); return getAnalysisStateFieldBuilder().getBuilder(); } /** - * - * *
            * The analysis state of this identity.
            * 
    @@ -3518,14 +2987,11 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStat if (analysisStateBuilder_ != null) { return analysisStateBuilder_.getMessageOrBuilder(); } else { - return analysisState_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() - : analysisState_; + return analysisState_ == null ? + com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() : analysisState_; } } /** - * - * *
            * The analysis state of this identity.
            * 
    @@ -3533,22 +2999,18 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStat * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisState, - com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisState, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> getAnalysisStateFieldBuilder() { if (analysisStateBuilder_ == null) { - analysisStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisState, - com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>( - getAnalysisState(), getParentForChildren(), isClean()); + analysisStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisState, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>( + getAnalysisState(), + getParentForChildren(), + isClean()); analysisState_ = null; } return analysisStateBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3561,13 +3023,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.Identity) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.Identity) - private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity - DEFAULT_INSTANCE; - + private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity(); } @@ -3576,16 +3037,27 @@ public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Identity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Identity(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Identity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3600,86 +3072,73 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface EdgeOrBuilder - extends + public interface EdgeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisResult.Edge) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * The source node of the edge. For example, it could be a full resource
          * name for a resource node or an email of an identity.
          * 
    * * string source_node = 1; - * * @return The sourceNode. */ java.lang.String getSourceNode(); /** - * - * *
          * The source node of the edge. For example, it could be a full resource
          * name for a resource node or an email of an identity.
          * 
    * * string source_node = 1; - * * @return The bytes for sourceNode. */ - com.google.protobuf.ByteString getSourceNodeBytes(); + com.google.protobuf.ByteString + getSourceNodeBytes(); /** - * - * *
          * The target node of the edge. For example, it could be a full resource
          * name for a resource node or an email of an identity.
          * 
    * * string target_node = 2; - * * @return The targetNode. */ java.lang.String getTargetNode(); /** - * - * *
          * The target node of the edge. For example, it could be a full resource
          * name for a resource node or an email of an identity.
          * 
    * * string target_node = 2; - * * @return The bytes for targetNode. */ - com.google.protobuf.ByteString getTargetNodeBytes(); + com.google.protobuf.ByteString + getTargetNodeBytes(); } /** - * - * *
        * A directional edge.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.Edge} */ - public static final class Edge extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Edge extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.Edge) EdgeOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Edge.newBuilder() to construct. private Edge(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Edge() { sourceNode_ = ""; targetNode_ = ""; @@ -3687,95 +3146,38 @@ private Edge() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Edge(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private Edge( - 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(); - - sourceNode_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - targetNode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.class, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder.class); } public static final int SOURCE_NODE_FIELD_NUMBER = 1; private volatile java.lang.Object sourceNode_; /** - * - * *
          * The source node of the edge. For example, it could be a full resource
          * name for a resource node or an email of an identity.
          * 
    * * string source_node = 1; - * * @return The sourceNode. */ @java.lang.Override @@ -3784,30 +3186,30 @@ public java.lang.String getSourceNode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceNode_ = s; return s; } } /** - * - * *
          * The source node of the edge. For example, it could be a full resource
          * name for a resource node or an email of an identity.
          * 
    * * string source_node = 1; - * * @return The bytes for sourceNode. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceNodeBytes() { + public com.google.protobuf.ByteString + getSourceNodeBytes() { java.lang.Object ref = sourceNode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceNode_ = b; return b; } else { @@ -3818,15 +3220,12 @@ public com.google.protobuf.ByteString getSourceNodeBytes() { public static final int TARGET_NODE_FIELD_NUMBER = 2; private volatile java.lang.Object targetNode_; /** - * - * *
          * The target node of the edge. For example, it could be a full resource
          * name for a resource node or an email of an identity.
          * 
    * * string target_node = 2; - * * @return The targetNode. */ @java.lang.Override @@ -3835,30 +3234,30 @@ public java.lang.String getTargetNode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetNode_ = s; return s; } } /** - * - * *
          * The target node of the edge. For example, it could be a full resource
          * name for a resource node or an email of an identity.
          * 
    * * string target_node = 2; - * * @return The bytes for targetNode. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetNodeBytes() { + public com.google.protobuf.ByteString + getTargetNodeBytes() { java.lang.Object ref = targetNode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetNode_ = b; return b; } else { @@ -3867,7 +3266,6 @@ public com.google.protobuf.ByteString getTargetNodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3879,14 +3277,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceNode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceNode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetNode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetNode_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -3901,7 +3300,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetNode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetNode_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -3909,17 +3308,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge other = - (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge other = (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge) obj; - if (!getSourceNode().equals(other.getSourceNode())) return false; - if (!getTargetNode().equals(other.getTargetNode())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getSourceNode() + .equals(other.getSourceNode())) return false; + if (!getTargetNode() + .equals(other.getTargetNode())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3934,100 +3334,93 @@ public int hashCode() { hash = (53 * hash) + getSourceNode().hashCode(); hash = (37 * hash) + TARGET_NODE_FIELD_NUMBER; hash = (53 * hash) + getTargetNode().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge 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.asset.v1.IamPolicyAnalysisResult.Edge parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4037,48 +3430,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * A directional edge.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.Edge} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.Edge) com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.class, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder.class); } // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -4090,9 +3474,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor; } @java.lang.Override @@ -4111,8 +3495,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge build() { @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge buildPartial() { - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge result = - new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge(this); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge result = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge(this); result.sourceNode_ = sourceNode_; result.targetNode_ = targetNode_; onBuilt(); @@ -4123,41 +3506,38 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicyAnalysisResult.Edge) { - return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge) other); + return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge)other); } else { super.mergeFrom(other); return this; @@ -4165,8 +3545,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge other) { - if (other == com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance()) return this; if (!other.getSourceNode().isEmpty()) { sourceNode_ = other.sourceNode_; onChanged(); @@ -4175,7 +3554,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge targetNode_ = other.targetNode_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -4190,38 +3569,58 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + sourceNode_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + targetNode_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object sourceNode_ = ""; /** - * - * *
            * The source node of the edge. For example, it could be a full resource
            * name for a resource node or an email of an identity.
            * 
    * * string source_node = 1; - * * @return The sourceNode. */ public java.lang.String getSourceNode() { java.lang.Object ref = sourceNode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceNode_ = s; return s; @@ -4230,22 +3629,21 @@ public java.lang.String getSourceNode() { } } /** - * - * *
            * The source node of the edge. For example, it could be a full resource
            * name for a resource node or an email of an identity.
            * 
    * * string source_node = 1; - * * @return The bytes for sourceNode. */ - public com.google.protobuf.ByteString getSourceNodeBytes() { + public com.google.protobuf.ByteString + getSourceNodeBytes() { java.lang.Object ref = sourceNode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceNode_ = b; return b; } else { @@ -4253,64 +3651,57 @@ public com.google.protobuf.ByteString getSourceNodeBytes() { } } /** - * - * *
            * The source node of the edge. For example, it could be a full resource
            * name for a resource node or an email of an identity.
            * 
    * * string source_node = 1; - * * @param value The sourceNode to set. * @return This builder for chaining. */ - public Builder setSourceNode(java.lang.String value) { + public Builder setSourceNode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceNode_ = value; onChanged(); return this; } /** - * - * *
            * The source node of the edge. For example, it could be a full resource
            * name for a resource node or an email of an identity.
            * 
    * * string source_node = 1; - * * @return This builder for chaining. */ public Builder clearSourceNode() { - + sourceNode_ = getDefaultInstance().getSourceNode(); onChanged(); return this; } /** - * - * *
            * The source node of the edge. For example, it could be a full resource
            * name for a resource node or an email of an identity.
            * 
    * * string source_node = 1; - * * @param value The bytes for sourceNode to set. * @return This builder for chaining. */ - public Builder setSourceNodeBytes(com.google.protobuf.ByteString value) { + public Builder setSourceNodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceNode_ = value; onChanged(); return this; @@ -4318,21 +3709,19 @@ public Builder setSourceNodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object targetNode_ = ""; /** - * - * *
            * The target node of the edge. For example, it could be a full resource
            * name for a resource node or an email of an identity.
            * 
    * * string target_node = 2; - * * @return The targetNode. */ public java.lang.String getTargetNode() { java.lang.Object ref = targetNode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetNode_ = s; return s; @@ -4341,22 +3730,21 @@ public java.lang.String getTargetNode() { } } /** - * - * *
            * The target node of the edge. For example, it could be a full resource
            * name for a resource node or an email of an identity.
            * 
    * * string target_node = 2; - * * @return The bytes for targetNode. */ - public com.google.protobuf.ByteString getTargetNodeBytes() { + public com.google.protobuf.ByteString + getTargetNodeBytes() { java.lang.Object ref = targetNode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetNode_ = b; return b; } else { @@ -4364,69 +3752,61 @@ public com.google.protobuf.ByteString getTargetNodeBytes() { } } /** - * - * *
            * The target node of the edge. For example, it could be a full resource
            * name for a resource node or an email of an identity.
            * 
    * * string target_node = 2; - * * @param value The targetNode to set. * @return This builder for chaining. */ - public Builder setTargetNode(java.lang.String value) { + public Builder setTargetNode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetNode_ = value; onChanged(); return this; } /** - * - * *
            * The target node of the edge. For example, it could be a full resource
            * name for a resource node or an email of an identity.
            * 
    * * string target_node = 2; - * * @return This builder for chaining. */ public Builder clearTargetNode() { - + targetNode_ = getDefaultInstance().getTargetNode(); onChanged(); return this; } /** - * - * *
            * The target node of the edge. For example, it could be a full resource
            * name for a resource node or an email of an identity.
            * 
    * * string target_node = 2; - * * @param value The bytes for targetNode to set. * @return This builder for chaining. */ - public Builder setTargetNodeBytes(com.google.protobuf.ByteString value) { + public Builder setTargetNodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetNode_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4439,12 +3819,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.Edge) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.Edge) private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge(); } @@ -4453,16 +3833,27 @@ public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Edge parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Edge(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Edge parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4477,16 +3868,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface AccessControlListOrBuilder - extends + public interface AccessControlListOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * The resources that match one of the following conditions:
          * - The resource_selector, if it is specified in request;
    @@ -4495,10 +3884,9 @@ public interface AccessControlListOrBuilder
          *
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
          */
    -    java.util.List getResourcesList();
    +    java.util.List 
    +        getResourcesList();
         /**
    -     *
    -     *
          * 
          * The resources that match one of the following conditions:
          * - The resource_selector, if it is specified in request;
    @@ -4509,8 +3897,6 @@ public interface AccessControlListOrBuilder
          */
         com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource getResources(int index);
         /**
    -     *
    -     *
          * 
          * The resources that match one of the following conditions:
          * - The resource_selector, if it is specified in request;
    @@ -4521,8 +3907,6 @@ public interface AccessControlListOrBuilder
          */
         int getResourcesCount();
         /**
    -     *
    -     *
          * 
          * The resources that match one of the following conditions:
          * - The resource_selector, if it is specified in request;
    @@ -4531,11 +3915,9 @@ public interface AccessControlListOrBuilder
          *
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
          */
    -    java.util.List
    +    java.util.List 
             getResourcesOrBuilderList();
         /**
    -     *
    -     *
          * 
          * The resources that match one of the following conditions:
          * - The resource_selector, if it is specified in request;
    @@ -4548,8 +3930,6 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder getResources
             int index);
     
         /**
    -     *
    -     *
          * 
          * The accesses that match one of the following conditions:
          * - The access_selector, if it is specified in request;
    @@ -4558,10 +3938,9 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder getResources
          *
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;
          */
    -    java.util.List getAccessesList();
    +    java.util.List 
    +        getAccessesList();
         /**
    -     *
    -     *
          * 
          * The accesses that match one of the following conditions:
          * - The access_selector, if it is specified in request;
    @@ -4572,8 +3951,6 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder getResources
          */
         com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access getAccesses(int index);
         /**
    -     *
    -     *
          * 
          * The accesses that match one of the following conditions:
          * - The access_selector, if it is specified in request;
    @@ -4584,8 +3961,6 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder getResources
          */
         int getAccessesCount();
         /**
    -     *
    -     *
          * 
          * The accesses that match one of the following conditions:
          * - The access_selector, if it is specified in request;
    @@ -4594,11 +3969,9 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder getResources
          *
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;
          */
    -    java.util.List
    +    java.util.List 
             getAccessesOrBuilderList();
         /**
    -     *
    -     *
          * 
          * The accesses that match one of the following conditions:
          * - The access_selector, if it is specified in request;
    @@ -4611,30 +3984,23 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAccessesOrB
             int index);
     
         /**
    -     *
    -     *
          * 
          * Resource edges of the graph starting from the policy attached
    -     * resource to any descendant resources. The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -     * contains the full resource name of a parent resource and
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +     * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +     * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
          * contains the full resource name of a child resource. This field is
          * present only if the output_resource_edges option is enabled in request.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; */ - java.util.List getResourceEdgesList(); + java.util.List + getResourceEdgesList(); /** - * - * *
          * Resource edges of the graph starting from the policy attached
    -     * resource to any descendant resources. The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -     * contains the full resource name of a parent resource and
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +     * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +     * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
          * contains the full resource name of a child resource. This field is
          * present only if the output_resource_edges option is enabled in request.
          * 
    @@ -4643,14 +4009,10 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAccessesOrB */ com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getResourceEdges(int index); /** - * - * *
          * Resource edges of the graph starting from the policy attached
    -     * resource to any descendant resources. The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -     * contains the full resource name of a parent resource and
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +     * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +     * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
          * contains the full resource name of a child resource. This field is
          * present only if the output_resource_edges option is enabled in request.
          * 
    @@ -4659,31 +4021,23 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAccessesOrB */ int getResourceEdgesCount(); /** - * - * *
          * Resource edges of the graph starting from the policy attached
    -     * resource to any descendant resources. The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -     * contains the full resource name of a parent resource and
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +     * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +     * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
          * contains the full resource name of a child resource. This field is
          * present only if the output_resource_edges option is enabled in request.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; */ - java.util.List + java.util.List getResourceEdgesOrBuilderList(); /** - * - * *
          * Resource edges of the graph starting from the policy attached
    -     * resource to any descendant resources. The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -     * contains the full resource name of a parent resource and
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +     * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +     * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
          * contains the full resource name of a child resource. This field is
          * present only if the output_resource_edges option is enabled in request.
          * 
    @@ -4694,34 +4048,26 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getResourceEdges int index); /** - * - * *
          * Condition evaluation for this AccessControlList, if there is a condition
          * defined in the above IAM policy binding.
          * 
    * * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4; - * * @return Whether the conditionEvaluation field is set. */ boolean hasConditionEvaluation(); /** - * - * *
          * Condition evaluation for this AccessControlList, if there is a condition
          * defined in the above IAM policy binding.
          * 
    * * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4; - * * @return The conditionEvaluation. */ com.google.cloud.asset.v1.ConditionEvaluation getConditionEvaluation(); /** - * - * *
          * Condition evaluation for this AccessControlList, if there is a condition
          * defined in the above IAM policy binding.
    @@ -4732,8 +4078,6 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getResourceEdges
         com.google.cloud.asset.v1.ConditionEvaluationOrBuilder getConditionEvaluationOrBuilder();
       }
       /**
    -   *
    -   *
        * 
        * An access control list, derived from the above IAM policy binding, which
        * contains a set of resources and accesses. May include one
    @@ -4751,16 +4095,15 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getResourceEdges
        *
        * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList}
        */
    -  public static final class AccessControlList extends com.google.protobuf.GeneratedMessageV3
    -      implements
    +  public static final class AccessControlList extends
    +      com.google.protobuf.GeneratedMessageV3 implements
           // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList)
           AccessControlListOrBuilder {
    -    private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
         // Use AccessControlList.newBuilder() to construct.
         private AccessControlList(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
    -
         private AccessControlList() {
           resources_ = java.util.Collections.emptyList();
           accesses_ = java.util.Collections.emptyList();
    @@ -4769,142 +4112,32 @@ private AccessControlList() {
     
         @java.lang.Override
         @SuppressWarnings({"unused"})
    -    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +    protected java.lang.Object newInstance(
    +        UnusedPrivateParameter unused) {
           return new AccessControlList();
         }
     
         @java.lang.Override
    -    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    +    public final com.google.protobuf.UnknownFieldSet
    +    getUnknownFields() {
           return this.unknownFields;
         }
    -
    -    private AccessControlList(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      this();
    -      if (extensionRegistry == null) {
    -        throw new java.lang.NullPointerException();
    -      }
    -      int mutable_bitField0_ = 0;
    -      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -          com.google.protobuf.UnknownFieldSet.newBuilder();
    -      try {
    -        boolean done = false;
    -        while (!done) {
    -          int tag = input.readTag();
    -          switch (tag) {
    -            case 0:
    -              done = true;
    -              break;
    -            case 10:
    -              {
    -                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                  resources_ =
    -                      new java.util.ArrayList<
    -                          com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource>();
    -                  mutable_bitField0_ |= 0x00000001;
    -                }
    -                resources_.add(
    -                    input.readMessage(
    -                        com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.parser(),
    -                        extensionRegistry));
    -                break;
    -              }
    -            case 18:
    -              {
    -                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
    -                  accesses_ =
    -                      new java.util.ArrayList<
    -                          com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access>();
    -                  mutable_bitField0_ |= 0x00000002;
    -                }
    -                accesses_.add(
    -                    input.readMessage(
    -                        com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.parser(),
    -                        extensionRegistry));
    -                break;
    -              }
    -            case 26:
    -              {
    -                if (!((mutable_bitField0_ & 0x00000004) != 0)) {
    -                  resourceEdges_ =
    -                      new java.util.ArrayList<
    -                          com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge>();
    -                  mutable_bitField0_ |= 0x00000004;
    -                }
    -                resourceEdges_.add(
    -                    input.readMessage(
    -                        com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.parser(),
    -                        extensionRegistry));
    -                break;
    -              }
    -            case 34:
    -              {
    -                com.google.cloud.asset.v1.ConditionEvaluation.Builder subBuilder = null;
    -                if (conditionEvaluation_ != null) {
    -                  subBuilder = conditionEvaluation_.toBuilder();
    -                }
    -                conditionEvaluation_ =
    -                    input.readMessage(
    -                        com.google.cloud.asset.v1.ConditionEvaluation.parser(), extensionRegistry);
    -                if (subBuilder != null) {
    -                  subBuilder.mergeFrom(conditionEvaluation_);
    -                  conditionEvaluation_ = subBuilder.buildPartial();
    -                }
    -
    -                break;
    -              }
    -            default:
    -              {
    -                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                  done = true;
    -                }
    -                break;
    -              }
    -          }
    -        }
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(this);
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -      } finally {
    -        if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -          resources_ = java.util.Collections.unmodifiableList(resources_);
    -        }
    -        if (((mutable_bitField0_ & 0x00000002) != 0)) {
    -          accesses_ = java.util.Collections.unmodifiableList(accesses_);
    -        }
    -        if (((mutable_bitField0_ & 0x00000004) != 0)) {
    -          resourceEdges_ = java.util.Collections.unmodifiableList(resourceEdges_);
    -        }
    -        this.unknownFields = unknownFields.build();
    -        makeExtensionsImmutable();
    -      }
    -    }
    -
    -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor
    +        getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.class,
    -              com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder.class);
    +              com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder.class);
         }
     
         public static final int RESOURCES_FIELD_NUMBER = 1;
         private java.util.List resources_;
         /**
    -     *
    -     *
          * 
          * The resources that match one of the following conditions:
          * - The resource_selector, if it is specified in request;
    @@ -4914,13 +4147,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
          */
         @java.lang.Override
    -    public java.util.List
    -        getResourcesList() {
    +    public java.util.List getResourcesList() {
           return resources_;
         }
         /**
    -     *
    -     *
          * 
          * The resources that match one of the following conditions:
          * - The resource_selector, if it is specified in request;
    @@ -4930,14 +4160,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
          */
         @java.lang.Override
    -    public java.util.List<
    -            ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder>
    +    public java.util.List 
             getResourcesOrBuilderList() {
           return resources_;
         }
         /**
    -     *
    -     *
          * 
          * The resources that match one of the following conditions:
          * - The resource_selector, if it is specified in request;
    @@ -4951,8 +4178,6 @@ public int getResourcesCount() {
           return resources_.size();
         }
         /**
    -     *
    -     *
          * 
          * The resources that match one of the following conditions:
          * - The resource_selector, if it is specified in request;
    @@ -4966,8 +4191,6 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource getResources(i
           return resources_.get(index);
         }
         /**
    -     *
    -     *
          * 
          * The resources that match one of the following conditions:
          * - The resource_selector, if it is specified in request;
    @@ -4977,16 +4200,14 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource getResources(i
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
          */
         @java.lang.Override
    -    public com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder
    -        getResourcesOrBuilder(int index) {
    +    public com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder getResourcesOrBuilder(
    +        int index) {
           return resources_.get(index);
         }
     
         public static final int ACCESSES_FIELD_NUMBER = 2;
         private java.util.List accesses_;
         /**
    -     *
    -     *
          * 
          * The accesses that match one of the following conditions:
          * - The access_selector, if it is specified in request;
    @@ -4996,13 +4217,10 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource getResources(i
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;
          */
         @java.lang.Override
    -    public java.util.List
    -        getAccessesList() {
    +    public java.util.List getAccessesList() {
           return accesses_;
         }
         /**
    -     *
    -     *
          * 
          * The accesses that match one of the following conditions:
          * - The access_selector, if it is specified in request;
    @@ -5012,14 +4230,11 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource getResources(i
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;
          */
         @java.lang.Override
    -    public java.util.List<
    -            ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder>
    +    public java.util.List 
             getAccessesOrBuilderList() {
           return accesses_;
         }
         /**
    -     *
    -     *
          * 
          * The accesses that match one of the following conditions:
          * - The access_selector, if it is specified in request;
    @@ -5033,8 +4248,6 @@ public int getAccessesCount() {
           return accesses_.size();
         }
         /**
    -     *
    -     *
          * 
          * The accesses that match one of the following conditions:
          * - The access_selector, if it is specified in request;
    @@ -5048,8 +4261,6 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access getAccesses(int
           return accesses_.get(index);
         }
         /**
    -     *
    -     *
          * 
          * The accesses that match one of the following conditions:
          * - The access_selector, if it is specified in request;
    @@ -5067,14 +4278,10 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAcce
         public static final int RESOURCE_EDGES_FIELD_NUMBER = 3;
         private java.util.List resourceEdges_;
         /**
    -     *
    -     *
          * 
          * Resource edges of the graph starting from the policy attached
    -     * resource to any descendant resources. The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -     * contains the full resource name of a parent resource and
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +     * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +     * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
          * contains the full resource name of a child resource. This field is
          * present only if the output_resource_edges option is enabled in request.
          * 
    @@ -5082,19 +4289,14 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAcce * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; */ @java.lang.Override - public java.util.List - getResourceEdgesList() { + public java.util.List getResourceEdgesList() { return resourceEdges_; } /** - * - * *
          * Resource edges of the graph starting from the policy attached
    -     * resource to any descendant resources. The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -     * contains the full resource name of a parent resource and
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +     * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +     * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
          * contains the full resource name of a child resource. This field is
          * present only if the output_resource_edges option is enabled in request.
          * 
    @@ -5102,19 +4304,15 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAcce * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; */ @java.lang.Override - public java.util.List + public java.util.List getResourceEdgesOrBuilderList() { return resourceEdges_; } /** - * - * *
          * Resource edges of the graph starting from the policy attached
    -     * resource to any descendant resources. The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -     * contains the full resource name of a parent resource and
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +     * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +     * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
          * contains the full resource name of a child resource. This field is
          * present only if the output_resource_edges option is enabled in request.
          * 
    @@ -5126,14 +4324,10 @@ public int getResourceEdgesCount() { return resourceEdges_.size(); } /** - * - * *
          * Resource edges of the graph starting from the policy attached
    -     * resource to any descendant resources. The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -     * contains the full resource name of a parent resource and
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +     * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +     * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
          * contains the full resource name of a child resource. This field is
          * present only if the output_resource_edges option is enabled in request.
          * 
    @@ -5145,14 +4339,10 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getResourceEdges(i return resourceEdges_.get(index); } /** - * - * *
          * Resource edges of the graph starting from the policy attached
    -     * resource to any descendant resources. The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -     * contains the full resource name of a parent resource and
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +     * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +     * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
          * contains the full resource name of a child resource. This field is
          * present only if the output_resource_edges option is enabled in request.
          * 
    @@ -5160,23 +4350,20 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getResourceEdges(i * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder - getResourceEdgesOrBuilder(int index) { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getResourceEdgesOrBuilder( + int index) { return resourceEdges_.get(index); } public static final int CONDITION_EVALUATION_FIELD_NUMBER = 4; private com.google.cloud.asset.v1.ConditionEvaluation conditionEvaluation_; /** - * - * *
          * Condition evaluation for this AccessControlList, if there is a condition
          * defined in the above IAM policy binding.
          * 
    * * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4; - * * @return Whether the conditionEvaluation field is set. */ @java.lang.Override @@ -5184,26 +4371,19 @@ public boolean hasConditionEvaluation() { return conditionEvaluation_ != null; } /** - * - * *
          * Condition evaluation for this AccessControlList, if there is a condition
          * defined in the above IAM policy binding.
          * 
    * * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4; - * * @return The conditionEvaluation. */ @java.lang.Override public com.google.cloud.asset.v1.ConditionEvaluation getConditionEvaluation() { - return conditionEvaluation_ == null - ? com.google.cloud.asset.v1.ConditionEvaluation.getDefaultInstance() - : conditionEvaluation_; + return conditionEvaluation_ == null ? com.google.cloud.asset.v1.ConditionEvaluation.getDefaultInstance() : conditionEvaluation_; } /** - * - * *
          * Condition evaluation for this AccessControlList, if there is a condition
          * defined in the above IAM policy binding.
    @@ -5212,13 +4392,11 @@ public com.google.cloud.asset.v1.ConditionEvaluation getConditionEvaluation() {
          * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4;
          */
         @java.lang.Override
    -    public com.google.cloud.asset.v1.ConditionEvaluationOrBuilder
    -        getConditionEvaluationOrBuilder() {
    +    public com.google.cloud.asset.v1.ConditionEvaluationOrBuilder getConditionEvaluationOrBuilder() {
           return getConditionEvaluation();
         }
     
         private byte memoizedIsInitialized = -1;
    -
         @java.lang.Override
         public final boolean isInitialized() {
           byte isInitialized = memoizedIsInitialized;
    @@ -5230,7 +4408,8 @@ public final boolean isInitialized() {
         }
     
         @java.lang.Override
    -    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    +    public void writeTo(com.google.protobuf.CodedOutputStream output)
    +                        throws java.io.IOException {
           for (int i = 0; i < resources_.size(); i++) {
             output.writeMessage(1, resources_.get(i));
           }
    @@ -5243,7 +4422,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
           if (conditionEvaluation_ != null) {
             output.writeMessage(4, getConditionEvaluation());
           }
    -      unknownFields.writeTo(output);
    +      getUnknownFields().writeTo(output);
         }
     
         @java.lang.Override
    @@ -5253,19 +4432,22 @@ public int getSerializedSize() {
     
           size = 0;
           for (int i = 0; i < resources_.size(); i++) {
    -        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resources_.get(i));
    +        size += com.google.protobuf.CodedOutputStream
    +          .computeMessageSize(1, resources_.get(i));
           }
           for (int i = 0; i < accesses_.size(); i++) {
    -        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, accesses_.get(i));
    +        size += com.google.protobuf.CodedOutputStream
    +          .computeMessageSize(2, accesses_.get(i));
           }
           for (int i = 0; i < resourceEdges_.size(); i++) {
    -        size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, resourceEdges_.get(i));
    +        size += com.google.protobuf.CodedOutputStream
    +          .computeMessageSize(3, resourceEdges_.get(i));
           }
           if (conditionEvaluation_ != null) {
    -        size +=
    -            com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConditionEvaluation());
    +        size += com.google.protobuf.CodedOutputStream
    +          .computeMessageSize(4, getConditionEvaluation());
           }
    -      size += unknownFields.getSerializedSize();
    +      size += getUnknownFields().getSerializedSize();
           memoizedSize = size;
           return size;
         }
    @@ -5273,22 +4455,25 @@ public int getSerializedSize() {
         @java.lang.Override
         public boolean equals(final java.lang.Object obj) {
           if (obj == this) {
    -        return true;
    +       return true;
           }
           if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList)) {
             return super.equals(obj);
           }
    -      com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList other =
    -          (com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList) obj;
    +      com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList other = (com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList) obj;
     
    -      if (!getResourcesList().equals(other.getResourcesList())) return false;
    -      if (!getAccessesList().equals(other.getAccessesList())) return false;
    -      if (!getResourceEdgesList().equals(other.getResourceEdgesList())) return false;
    +      if (!getResourcesList()
    +          .equals(other.getResourcesList())) return false;
    +      if (!getAccessesList()
    +          .equals(other.getAccessesList())) return false;
    +      if (!getResourceEdgesList()
    +          .equals(other.getResourceEdgesList())) return false;
           if (hasConditionEvaluation() != other.hasConditionEvaluation()) return false;
           if (hasConditionEvaluation()) {
    -        if (!getConditionEvaluation().equals(other.getConditionEvaluation())) return false;
    +        if (!getConditionEvaluation()
    +            .equals(other.getConditionEvaluation())) return false;
           }
    -      if (!unknownFields.equals(other.unknownFields)) return false;
    +      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
           return true;
         }
     
    @@ -5315,101 +4500,93 @@ public int hashCode() {
             hash = (37 * hash) + CONDITION_EVALUATION_FIELD_NUMBER;
             hash = (53 * hash) + getConditionEvaluation().hashCode();
           }
    -      hash = (29 * hash) + unknownFields.hashCode();
    +      hash = (29 * hash) + getUnknownFields().hashCode();
           memoizedHashCode = hash;
           return hash;
         }
     
         public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
    -        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    +        java.nio.ByteBuffer data)
    +        throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
    -
         public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
    -        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        java.nio.ByteBuffer data,
    +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data, extensionRegistry);
         }
    -
         public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
             com.google.protobuf.ByteString data)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
    -
         public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList 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.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
    -        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
    +    public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(byte[] data)
    +        throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
    -
         public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
    -        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        byte[] data,
    +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data, extensionRegistry);
         }
    -
    -    public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
    -        java.io.InputStream input) throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +    public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(java.io.InputStream input)
    +        throws java.io.IOException {
    +      return com.google.protobuf.GeneratedMessageV3
    +          .parseWithIOException(PARSER, input);
         }
    -
         public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
    -        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        java.io.InputStream input,
    +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -          PARSER, input, extensionRegistry);
    +      return com.google.protobuf.GeneratedMessageV3
    +          .parseWithIOException(PARSER, input, extensionRegistry);
         }
    -
    -    public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
    -        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    +    public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseDelimitedFrom(java.io.InputStream input)
    +        throws java.io.IOException {
    +      return com.google.protobuf.GeneratedMessageV3
    +          .parseDelimitedWithIOException(PARSER, input);
         }
    -
    -    public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
    -        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.asset.v1.IamPolicyAnalysisResult.AccessControlList 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.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
    -        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +        com.google.protobuf.CodedInputStream input)
    +        throws java.io.IOException {
    +      return com.google.protobuf.GeneratedMessageV3
    +          .parseWithIOException(PARSER, input);
         }
    -
         public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -          PARSER, input, extensionRegistry);
    +      return com.google.protobuf.GeneratedMessageV3
    +          .parseWithIOException(PARSER, input, extensionRegistry);
         }
     
         @java.lang.Override
    -    public Builder newBuilderForType() {
    -      return newBuilder();
    -    }
    -
    +    public Builder newBuilderForType() { return newBuilder(); }
         public static Builder newBuilder() {
           return DEFAULT_INSTANCE.toBuilder();
         }
    -
    -    public static Builder newBuilder(
    -        com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList prototype) {
    +    public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList prototype) {
           return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
         }
    -
         @java.lang.Override
         public Builder toBuilder() {
    -      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    +      return this == DEFAULT_INSTANCE
    +          ? new Builder() : new Builder().mergeFrom(this);
         }
     
         @java.lang.Override
    @@ -5419,8 +4596,6 @@ protected Builder newBuilderForType(
           return builder;
         }
         /**
    -     *
    -     *
          * 
          * An access control list, derived from the above IAM policy binding, which
          * contains a set of resources and accesses. May include one
    @@ -5438,66 +4613,57 @@ protected Builder newBuilderForType(
          *
          * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList}
          */
    -    public static final class Builder
    -        extends com.google.protobuf.GeneratedMessageV3.Builder
    -        implements
    +    public static final class Builder extends
    +        com.google.protobuf.GeneratedMessageV3.Builder implements
             // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList)
             com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder {
    -      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -        return com.google.cloud.asset.v1.AssetProto
    -            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor;
    +      public static final com.google.protobuf.Descriptors.Descriptor
    +          getDescriptor() {
    +        return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor;
           }
     
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
    -        return com.google.cloud.asset.v1.AssetProto
    -            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_fieldAccessorTable
    +        return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
    -                com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.class,
    -                com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder.class);
    +                com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder.class);
           }
     
    -      // Construct using
    -      // com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.newBuilder()
    +      // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.newBuilder()
           private Builder() {
    -        maybeForceBuilderInitialization();
    +
           }
     
    -      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +      private Builder(
    +          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
    -        maybeForceBuilderInitialization();
    -      }
     
    -      private void maybeForceBuilderInitialization() {
    -        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -          getResourcesFieldBuilder();
    -          getAccessesFieldBuilder();
    -          getResourceEdgesFieldBuilder();
    -        }
           }
    -
           @java.lang.Override
           public Builder clear() {
             super.clear();
             if (resourcesBuilder_ == null) {
               resources_ = java.util.Collections.emptyList();
    -          bitField0_ = (bitField0_ & ~0x00000001);
             } else {
    +          resources_ = null;
               resourcesBuilder_.clear();
             }
    +        bitField0_ = (bitField0_ & ~0x00000001);
             if (accessesBuilder_ == null) {
               accesses_ = java.util.Collections.emptyList();
    -          bitField0_ = (bitField0_ & ~0x00000002);
             } else {
    +          accesses_ = null;
               accessesBuilder_.clear();
             }
    +        bitField0_ = (bitField0_ & ~0x00000002);
             if (resourceEdgesBuilder_ == null) {
               resourceEdges_ = java.util.Collections.emptyList();
    -          bitField0_ = (bitField0_ & ~0x00000004);
             } else {
    +          resourceEdges_ = null;
               resourceEdgesBuilder_.clear();
             }
    +        bitField0_ = (bitField0_ & ~0x00000004);
             if (conditionEvaluationBuilder_ == null) {
               conditionEvaluation_ = null;
             } else {
    @@ -5508,16 +4674,14 @@ public Builder clear() {
           }
     
           @java.lang.Override
    -      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -        return com.google.cloud.asset.v1.AssetProto
    -            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor;
    +      public com.google.protobuf.Descriptors.Descriptor
    +          getDescriptorForType() {
    +        return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor;
           }
     
           @java.lang.Override
    -      public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
    -          getDefaultInstanceForType() {
    -        return com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
    -            .getDefaultInstance();
    +      public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getDefaultInstanceForType() {
    +        return com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.getDefaultInstance();
           }
     
           @java.lang.Override
    @@ -5531,8 +4695,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList build
     
           @java.lang.Override
           public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList buildPartial() {
    -        com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList result =
    -            new com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList(this);
    +        com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList result = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList(this);
             int from_bitField0_ = bitField0_;
             if (resourcesBuilder_ == null) {
               if (((bitField0_ & 0x00000001) != 0)) {
    @@ -5574,53 +4737,46 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList build
           public Builder clone() {
             return super.clone();
           }
    -
           @java.lang.Override
           public Builder setField(
    -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
    +          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) {
    +      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) {
    +      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) {
    +          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) {
    +          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.asset.v1.IamPolicyAnalysisResult.AccessControlList) {
    -          return mergeFrom(
    -              (com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList) other);
    +          return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList)other);
             } else {
               super.mergeFrom(other);
               return this;
             }
           }
     
    -      public Builder mergeFrom(
    -          com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList other) {
    -        if (other
    -            == com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
    -                .getDefaultInstance()) return this;
    +      public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList other) {
    +        if (other == com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.getDefaultInstance()) return this;
             if (resourcesBuilder_ == null) {
               if (!other.resources_.isEmpty()) {
                 if (resources_.isEmpty()) {
    @@ -5639,10 +4795,9 @@ public Builder mergeFrom(
                   resourcesBuilder_ = null;
                   resources_ = other.resources_;
                   bitField0_ = (bitField0_ & ~0x00000001);
    -              resourcesBuilder_ =
    -                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
    -                      ? getResourcesFieldBuilder()
    -                      : null;
    +              resourcesBuilder_ = 
    +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
    +                   getResourcesFieldBuilder() : null;
                 } else {
                   resourcesBuilder_.addAllMessages(other.resources_);
                 }
    @@ -5666,10 +4821,9 @@ public Builder mergeFrom(
                   accessesBuilder_ = null;
                   accesses_ = other.accesses_;
                   bitField0_ = (bitField0_ & ~0x00000002);
    -              accessesBuilder_ =
    -                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
    -                      ? getAccessesFieldBuilder()
    -                      : null;
    +              accessesBuilder_ = 
    +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
    +                   getAccessesFieldBuilder() : null;
                 } else {
                   accessesBuilder_.addAllMessages(other.accesses_);
                 }
    @@ -5693,10 +4847,9 @@ public Builder mergeFrom(
                   resourceEdgesBuilder_ = null;
                   resourceEdges_ = other.resourceEdges_;
                   bitField0_ = (bitField0_ & ~0x00000004);
    -              resourceEdgesBuilder_ =
    -                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
    -                      ? getResourceEdgesFieldBuilder()
    -                      : null;
    +              resourceEdgesBuilder_ = 
    +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
    +                   getResourceEdgesFieldBuilder() : null;
                 } else {
                   resourceEdgesBuilder_.addAllMessages(other.resourceEdges_);
                 }
    @@ -5705,7 +4858,7 @@ public Builder mergeFrom(
             if (other.hasConditionEvaluation()) {
               mergeConditionEvaluation(other.getConditionEvaluation());
             }
    -        this.mergeUnknownFields(other.unknownFields);
    +        this.mergeUnknownFields(other.getUnknownFields());
             onChanged();
             return this;
           }
    @@ -5720,56 +4873,102 @@ public Builder mergeFrom(
               com.google.protobuf.CodedInputStream input,
               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
               throws java.io.IOException {
    -        com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parsedMessage = null;
    +        if (extensionRegistry == null) {
    +          throw new java.lang.NullPointerException();
    +        }
             try {
    -          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +          boolean done = false;
    +          while (!done) {
    +            int tag = input.readTag();
    +            switch (tag) {
    +              case 0:
    +                done = true;
    +                break;
    +              case 10: {
    +                com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource m =
    +                    input.readMessage(
    +                        com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.parser(),
    +                        extensionRegistry);
    +                if (resourcesBuilder_ == null) {
    +                  ensureResourcesIsMutable();
    +                  resources_.add(m);
    +                } else {
    +                  resourcesBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 10
    +              case 18: {
    +                com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access m =
    +                    input.readMessage(
    +                        com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.parser(),
    +                        extensionRegistry);
    +                if (accessesBuilder_ == null) {
    +                  ensureAccessesIsMutable();
    +                  accesses_.add(m);
    +                } else {
    +                  accessesBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 18
    +              case 26: {
    +                com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge m =
    +                    input.readMessage(
    +                        com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.parser(),
    +                        extensionRegistry);
    +                if (resourceEdgesBuilder_ == null) {
    +                  ensureResourceEdgesIsMutable();
    +                  resourceEdges_.add(m);
    +                } else {
    +                  resourceEdgesBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 26
    +              case 34: {
    +                input.readMessage(
    +                    getConditionEvaluationFieldBuilder().getBuilder(),
    +                    extensionRegistry);
    +
    +                break;
    +              } // case 34
    +              default: {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +            } // switch (tag)
    +          } // while (!done)
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -          parsedMessage =
    -              (com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList)
    -                  e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
    -          if (parsedMessage != null) {
    -            mergeFrom(parsedMessage);
    -          }
    -        }
    +          onChanged();
    +        } // finally
             return this;
           }
    -
           private int bitField0_;
     
    -      private java.util.List
    -          resources_ = java.util.Collections.emptyList();
    -
    +      private java.util.List resources_ =
    +        java.util.Collections.emptyList();
           private void ensureResourcesIsMutable() {
             if (!((bitField0_ & 0x00000001) != 0)) {
    -          resources_ =
    -              new java.util.ArrayList(
    -                  resources_);
    +          resources_ = new java.util.ArrayList(resources_);
               bitField0_ |= 0x00000001;
    -        }
    +         }
           }
     
           private com.google.protobuf.RepeatedFieldBuilderV3<
    -              com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource,
    -              com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder,
    -              com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder>
    -          resourcesBuilder_;
    +          com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder> resourcesBuilder_;
     
           /**
    -       *
    -       *
            * 
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; */ - public java.util.List - getResourcesList() { + public java.util.List getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { @@ -5777,16 +4976,13 @@ private void ensureResourcesIsMutable() { } } /** - * - * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; */ public int getResourcesCount() { if (resourcesBuilder_ == null) { @@ -5796,16 +4992,13 @@ public int getResourcesCount() { } } /** - * - * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; */ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource getResources(int index) { if (resourcesBuilder_ == null) { @@ -5815,16 +5008,13 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource getResources(i } } /** - * - * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; */ public Builder setResources( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource value) { @@ -5841,20 +5031,16 @@ public Builder setResources( return this; } /** - * - * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; */ public Builder setResources( - int index, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder builderForValue) { + int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); @@ -5865,19 +5051,15 @@ public Builder setResources( return this; } /** - * - * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; */ - public Builder addResources( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource value) { + public Builder addResources(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5891,16 +5073,13 @@ public Builder addResources( return this; } /** - * - * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; */ public Builder addResources( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource value) { @@ -5917,16 +5096,13 @@ public Builder addResources( return this; } /** - * - * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; */ public Builder addResources( com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder builderForValue) { @@ -5940,20 +5116,16 @@ public Builder addResources( return this; } /** - * - * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; */ public Builder addResources( - int index, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder builderForValue) { + int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); @@ -5964,23 +5136,20 @@ public Builder addResources( return this; } /** - * - * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; */ public Builder addAllResources( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); @@ -5988,16 +5157,13 @@ public Builder addAllResources( return this; } /** - * - * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; */ public Builder clearResources() { if (resourcesBuilder_ == null) { @@ -6010,16 +5176,13 @@ public Builder clearResources() { return this; } /** - * - * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { @@ -6032,56 +5195,45 @@ public Builder removeResources(int index) { return this; } /** - * - * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; */ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder getResourcesBuilder( int index) { return getResourcesFieldBuilder().getBuilder(index); } /** - * - * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder - getResourcesOrBuilder(int index) { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder getResourcesOrBuilder( + int index) { if (resourcesBuilder_ == null) { - return resources_.get(index); - } else { + return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; */ - public java.util.List< - ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder> - getResourcesOrBuilderList() { + public java.util.List + getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { @@ -6089,97 +5241,73 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder getRes } } /** - * - * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder - addResourcesBuilder() { - return getResourcesFieldBuilder() - .addBuilder( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.getDefaultInstance()); + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder addResourcesBuilder() { + return getResourcesFieldBuilder().addBuilder( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.getDefaultInstance()); } /** - * - * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; */ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder addResourcesBuilder( int index) { - return getResourcesFieldBuilder() - .addBuilder( - index, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.getDefaultInstance()); + return getResourcesFieldBuilder().addBuilder( + index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.getDefaultInstance()); } /** - * - * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; */ - public java.util.List - getResourcesBuilderList() { + public java.util.List + getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { - resourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder>( - resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder>( + resources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); resources_ = null; } return resourcesBuilder_; } private java.util.List accesses_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAccessesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - accesses_ = - new java.util.ArrayList( - accesses_); + accesses_ = new java.util.ArrayList(accesses_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder> - accessesBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder> accessesBuilder_; /** - * - * *
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -6188,8 +5316,7 @@ private void ensureAccessesIsMutable() {
            *
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;
            */
    -      public java.util.List
    -          getAccessesList() {
    +      public java.util.List getAccessesList() {
             if (accessesBuilder_ == null) {
               return java.util.Collections.unmodifiableList(accesses_);
             } else {
    @@ -6197,8 +5324,6 @@ private void ensureAccessesIsMutable() {
             }
           }
           /**
    -       *
    -       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -6215,8 +5340,6 @@ public int getAccessesCount() {
             }
           }
           /**
    -       *
    -       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -6233,8 +5356,6 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access getAccesses(int
             }
           }
           /**
    -       *
    -       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -6258,8 +5379,6 @@ public Builder setAccesses(
             return this;
           }
           /**
    -       *
    -       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -6269,8 +5388,7 @@ public Builder setAccesses(
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;
            */
           public Builder setAccesses(
    -          int index,
    -          com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder builderForValue) {
    +          int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder builderForValue) {
             if (accessesBuilder_ == null) {
               ensureAccessesIsMutable();
               accesses_.set(index, builderForValue.build());
    @@ -6281,8 +5399,6 @@ public Builder setAccesses(
             return this;
           }
           /**
    -       *
    -       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -6305,8 +5421,6 @@ public Builder addAccesses(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Acc
             return this;
           }
           /**
    -       *
    -       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -6330,8 +5444,6 @@ public Builder addAccesses(
             return this;
           }
           /**
    -       *
    -       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -6352,8 +5464,6 @@ public Builder addAccesses(
             return this;
           }
           /**
    -       *
    -       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -6363,8 +5473,7 @@ public Builder addAccesses(
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;
            */
           public Builder addAccesses(
    -          int index,
    -          com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder builderForValue) {
    +          int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder builderForValue) {
             if (accessesBuilder_ == null) {
               ensureAccessesIsMutable();
               accesses_.add(index, builderForValue.build());
    @@ -6375,8 +5484,6 @@ public Builder addAccesses(
             return this;
           }
           /**
    -       *
    -       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -6386,11 +5493,11 @@ public Builder addAccesses(
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;
            */
           public Builder addAllAccesses(
    -          java.lang.Iterable
    -              values) {
    +          java.lang.Iterable values) {
             if (accessesBuilder_ == null) {
               ensureAccessesIsMutable();
    -          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accesses_);
    +          com.google.protobuf.AbstractMessageLite.Builder.addAll(
    +              values, accesses_);
               onChanged();
             } else {
               accessesBuilder_.addAllMessages(values);
    @@ -6398,8 +5505,6 @@ public Builder addAllAccesses(
             return this;
           }
           /**
    -       *
    -       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -6419,8 +5524,6 @@ public Builder clearAccesses() {
             return this;
           }
           /**
    -       *
    -       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -6440,8 +5543,6 @@ public Builder removeAccesses(int index) {
             return this;
           }
           /**
    -       *
    -       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -6455,8 +5556,6 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder getAcces
             return getAccessesFieldBuilder().getBuilder(index);
           }
           /**
    -       *
    -       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -6468,14 +5567,11 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder getAcces
           public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAccessesOrBuilder(
               int index) {
             if (accessesBuilder_ == null) {
    -          return accesses_.get(index);
    -        } else {
    +          return accesses_.get(index);  } else {
               return accessesBuilder_.getMessageOrBuilder(index);
             }
           }
           /**
    -       *
    -       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -6484,9 +5580,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAcce
            *
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;
            */
    -      public java.util.List<
    -              ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder>
    -          getAccessesOrBuilderList() {
    +      public java.util.List 
    +           getAccessesOrBuilderList() {
             if (accessesBuilder_ != null) {
               return accessesBuilder_.getMessageOrBuilderList();
             } else {
    @@ -6494,8 +5589,6 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAcce
             }
           }
           /**
    -       *
    -       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -6505,13 +5598,10 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAcce
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;
            */
           public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder addAccessesBuilder() {
    -        return getAccessesFieldBuilder()
    -            .addBuilder(
    -                com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.getDefaultInstance());
    +        return getAccessesFieldBuilder().addBuilder(
    +            com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.getDefaultInstance());
           }
           /**
    -       *
    -       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -6522,14 +5612,10 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder addAcces
            */
           public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder addAccessesBuilder(
               int index) {
    -        return getAccessesFieldBuilder()
    -            .addBuilder(
    -                index,
    -                com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.getDefaultInstance());
    +        return getAccessesFieldBuilder().addBuilder(
    +            index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.getDefaultInstance());
           }
           /**
    -       *
    -       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -6538,64 +5624,49 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder addAcces
            *
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;
            */
    -      public java.util.List
    -          getAccessesBuilderList() {
    +      public java.util.List 
    +           getAccessesBuilderList() {
             return getAccessesFieldBuilder().getBuilderList();
           }
    -
           private com.google.protobuf.RepeatedFieldBuilderV3<
    -              com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access,
    -              com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder,
    -              com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder>
    +          com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder> 
               getAccessesFieldBuilder() {
             if (accessesBuilder_ == null) {
    -          accessesBuilder_ =
    -              new com.google.protobuf.RepeatedFieldBuilderV3<
    -                  com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access,
    -                  com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder,
    -                  com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder>(
    -                  accesses_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
    +          accessesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    +              com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder>(
    +                  accesses_,
    +                  ((bitField0_ & 0x00000002) != 0),
    +                  getParentForChildren(),
    +                  isClean());
               accesses_ = null;
             }
             return accessesBuilder_;
           }
     
    -      private java.util.List
    -          resourceEdges_ = java.util.Collections.emptyList();
    -
    +      private java.util.List resourceEdges_ =
    +        java.util.Collections.emptyList();
           private void ensureResourceEdgesIsMutable() {
             if (!((bitField0_ & 0x00000004) != 0)) {
    -          resourceEdges_ =
    -              new java.util.ArrayList(
    -                  resourceEdges_);
    +          resourceEdges_ = new java.util.ArrayList(resourceEdges_);
               bitField0_ |= 0x00000004;
    -        }
    +         }
           }
     
           private com.google.protobuf.RepeatedFieldBuilderV3<
    -              com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge,
    -              com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder,
    -              com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder>
    -          resourceEdgesBuilder_;
    +          com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder> resourceEdgesBuilder_;
     
           /**
    -       *
    -       *
            * 
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; */ - public java.util.List - getResourceEdgesList() { + public java.util.List getResourceEdgesList() { if (resourceEdgesBuilder_ == null) { return java.util.Collections.unmodifiableList(resourceEdges_); } else { @@ -6603,20 +5674,15 @@ private void ensureResourceEdgesIsMutable() { } } /** - * - * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; */ public int getResourceEdgesCount() { if (resourceEdgesBuilder_ == null) { @@ -6626,20 +5692,15 @@ public int getResourceEdgesCount() { } } /** - * - * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; */ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getResourceEdges(int index) { if (resourceEdgesBuilder_ == null) { @@ -6649,20 +5710,15 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getResourceEdges(i } } /** - * - * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; */ public Builder setResourceEdges( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge value) { @@ -6679,24 +5735,18 @@ public Builder setResourceEdges( return this; } /** - * - * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; */ public Builder setResourceEdges( - int index, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue) { + int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue) { if (resourceEdgesBuilder_ == null) { ensureResourceEdgesIsMutable(); resourceEdges_.set(index, builderForValue.build()); @@ -6707,23 +5757,17 @@ public Builder setResourceEdges( return this; } /** - * - * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; */ - public Builder addResourceEdges( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge value) { + public Builder addResourceEdges(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge value) { if (resourceEdgesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6737,20 +5781,15 @@ public Builder addResourceEdges( return this; } /** - * - * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; */ public Builder addResourceEdges( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge value) { @@ -6767,20 +5806,15 @@ public Builder addResourceEdges( return this; } /** - * - * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; */ public Builder addResourceEdges( com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue) { @@ -6794,24 +5828,18 @@ public Builder addResourceEdges( return this; } /** - * - * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; */ public Builder addResourceEdges( - int index, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue) { + int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue) { if (resourceEdgesBuilder_ == null) { ensureResourceEdgesIsMutable(); resourceEdges_.add(index, builderForValue.build()); @@ -6822,27 +5850,22 @@ public Builder addResourceEdges( return this; } /** - * - * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; */ public Builder addAllResourceEdges( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (resourceEdgesBuilder_ == null) { ensureResourceEdgesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceEdges_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceEdges_); onChanged(); } else { resourceEdgesBuilder_.addAllMessages(values); @@ -6850,20 +5873,15 @@ public Builder addAllResourceEdges( return this; } /** - * - * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; */ public Builder clearResourceEdges() { if (resourceEdgesBuilder_ == null) { @@ -6876,20 +5894,15 @@ public Builder clearResourceEdges() { return this; } /** - * - * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; */ public Builder removeResourceEdges(int index) { if (resourceEdgesBuilder_ == null) { @@ -6902,68 +5915,51 @@ public Builder removeResourceEdges(int index) { return this; } /** - * - * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; */ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder getResourceEdgesBuilder( int index) { return getResourceEdgesFieldBuilder().getBuilder(index); } /** - * - * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder - getResourceEdgesOrBuilder(int index) { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getResourceEdgesOrBuilder( + int index) { if (resourceEdgesBuilder_ == null) { - return resourceEdges_.get(index); - } else { + return resourceEdges_.get(index); } else { return resourceEdgesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; */ - public java.util.List< - ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder> - getResourceEdgesOrBuilderList() { + public java.util.List + getResourceEdgesOrBuilderList() { if (resourceEdgesBuilder_ != null) { return resourceEdgesBuilder_.getMessageOrBuilderList(); } else { @@ -6971,81 +5967,57 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder getResourc } } /** - * - * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder - addResourceEdgesBuilder() { - return getResourceEdgesFieldBuilder() - .addBuilder( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance()); + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder addResourceEdgesBuilder() { + return getResourceEdgesFieldBuilder().addBuilder( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance()); } /** - * - * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; */ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder addResourceEdgesBuilder( int index) { - return getResourceEdgesFieldBuilder() - .addBuilder( - index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance()); + return getResourceEdgesFieldBuilder().addBuilder( + index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance()); } /** - * - * *
            * Resource edges of the graph starting from the policy attached
    -       * resource to any descendant resources. The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -       * contains the full resource name of a parent resource and
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +       * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +       * the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
            * contains the full resource name of a child resource. This field is
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; */ - public java.util.List - getResourceEdgesBuilderList() { + public java.util.List + getResourceEdgesBuilderList() { return getResourceEdgesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder> getResourceEdgesFieldBuilder() { if (resourceEdgesBuilder_ == null) { - resourceEdgesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder>( + resourceEdgesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder>( resourceEdges_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -7057,49 +6029,36 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder addResourc private com.google.cloud.asset.v1.ConditionEvaluation conditionEvaluation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.ConditionEvaluation, - com.google.cloud.asset.v1.ConditionEvaluation.Builder, - com.google.cloud.asset.v1.ConditionEvaluationOrBuilder> - conditionEvaluationBuilder_; + com.google.cloud.asset.v1.ConditionEvaluation, com.google.cloud.asset.v1.ConditionEvaluation.Builder, com.google.cloud.asset.v1.ConditionEvaluationOrBuilder> conditionEvaluationBuilder_; /** - * - * *
            * Condition evaluation for this AccessControlList, if there is a condition
            * defined in the above IAM policy binding.
            * 
    * * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4; - * * @return Whether the conditionEvaluation field is set. */ public boolean hasConditionEvaluation() { return conditionEvaluationBuilder_ != null || conditionEvaluation_ != null; } /** - * - * *
            * Condition evaluation for this AccessControlList, if there is a condition
            * defined in the above IAM policy binding.
            * 
    * * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4; - * * @return The conditionEvaluation. */ public com.google.cloud.asset.v1.ConditionEvaluation getConditionEvaluation() { if (conditionEvaluationBuilder_ == null) { - return conditionEvaluation_ == null - ? com.google.cloud.asset.v1.ConditionEvaluation.getDefaultInstance() - : conditionEvaluation_; + return conditionEvaluation_ == null ? com.google.cloud.asset.v1.ConditionEvaluation.getDefaultInstance() : conditionEvaluation_; } else { return conditionEvaluationBuilder_.getMessage(); } } /** - * - * *
            * Condition evaluation for this AccessControlList, if there is a condition
            * defined in the above IAM policy binding.
    @@ -7121,8 +6080,6 @@ public Builder setConditionEvaluation(com.google.cloud.asset.v1.ConditionEvaluat
             return this;
           }
           /**
    -       *
    -       *
            * 
            * Condition evaluation for this AccessControlList, if there is a condition
            * defined in the above IAM policy binding.
    @@ -7142,8 +6099,6 @@ public Builder setConditionEvaluation(
             return this;
           }
           /**
    -       *
    -       *
            * 
            * Condition evaluation for this AccessControlList, if there is a condition
            * defined in the above IAM policy binding.
    @@ -7155,9 +6110,7 @@ public Builder mergeConditionEvaluation(com.google.cloud.asset.v1.ConditionEvalu
             if (conditionEvaluationBuilder_ == null) {
               if (conditionEvaluation_ != null) {
                 conditionEvaluation_ =
    -                com.google.cloud.asset.v1.ConditionEvaluation.newBuilder(conditionEvaluation_)
    -                    .mergeFrom(value)
    -                    .buildPartial();
    +              com.google.cloud.asset.v1.ConditionEvaluation.newBuilder(conditionEvaluation_).mergeFrom(value).buildPartial();
               } else {
                 conditionEvaluation_ = value;
               }
    @@ -7169,8 +6122,6 @@ public Builder mergeConditionEvaluation(com.google.cloud.asset.v1.ConditionEvalu
             return this;
           }
           /**
    -       *
    -       *
            * 
            * Condition evaluation for this AccessControlList, if there is a condition
            * defined in the above IAM policy binding.
    @@ -7190,8 +6141,6 @@ public Builder clearConditionEvaluation() {
             return this;
           }
           /**
    -       *
    -       *
            * 
            * Condition evaluation for this AccessControlList, if there is a condition
            * defined in the above IAM policy binding.
    @@ -7200,13 +6149,11 @@ public Builder clearConditionEvaluation() {
            * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4;
            */
           public com.google.cloud.asset.v1.ConditionEvaluation.Builder getConditionEvaluationBuilder() {
    -
    +        
             onChanged();
             return getConditionEvaluationFieldBuilder().getBuilder();
           }
           /**
    -       *
    -       *
            * 
            * Condition evaluation for this AccessControlList, if there is a condition
            * defined in the above IAM policy binding.
    @@ -7214,19 +6161,15 @@ public com.google.cloud.asset.v1.ConditionEvaluation.Builder getConditionEvaluat
            *
            * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4;
            */
    -      public com.google.cloud.asset.v1.ConditionEvaluationOrBuilder
    -          getConditionEvaluationOrBuilder() {
    +      public com.google.cloud.asset.v1.ConditionEvaluationOrBuilder getConditionEvaluationOrBuilder() {
             if (conditionEvaluationBuilder_ != null) {
               return conditionEvaluationBuilder_.getMessageOrBuilder();
             } else {
    -          return conditionEvaluation_ == null
    -              ? com.google.cloud.asset.v1.ConditionEvaluation.getDefaultInstance()
    -              : conditionEvaluation_;
    +          return conditionEvaluation_ == null ?
    +              com.google.cloud.asset.v1.ConditionEvaluation.getDefaultInstance() : conditionEvaluation_;
             }
           }
           /**
    -       *
    -       *
            * 
            * Condition evaluation for this AccessControlList, if there is a condition
            * defined in the above IAM policy binding.
    @@ -7235,22 +6178,18 @@ public com.google.cloud.asset.v1.ConditionEvaluation.Builder getConditionEvaluat
            * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4;
            */
           private com.google.protobuf.SingleFieldBuilderV3<
    -              com.google.cloud.asset.v1.ConditionEvaluation,
    -              com.google.cloud.asset.v1.ConditionEvaluation.Builder,
    -              com.google.cloud.asset.v1.ConditionEvaluationOrBuilder>
    +          com.google.cloud.asset.v1.ConditionEvaluation, com.google.cloud.asset.v1.ConditionEvaluation.Builder, com.google.cloud.asset.v1.ConditionEvaluationOrBuilder> 
               getConditionEvaluationFieldBuilder() {
             if (conditionEvaluationBuilder_ == null) {
    -          conditionEvaluationBuilder_ =
    -              new com.google.protobuf.SingleFieldBuilderV3<
    -                  com.google.cloud.asset.v1.ConditionEvaluation,
    -                  com.google.cloud.asset.v1.ConditionEvaluation.Builder,
    -                  com.google.cloud.asset.v1.ConditionEvaluationOrBuilder>(
    -                  getConditionEvaluation(), getParentForChildren(), isClean());
    +          conditionEvaluationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +              com.google.cloud.asset.v1.ConditionEvaluation, com.google.cloud.asset.v1.ConditionEvaluation.Builder, com.google.cloud.asset.v1.ConditionEvaluationOrBuilder>(
    +                  getConditionEvaluation(),
    +                  getParentForChildren(),
    +                  isClean());
               conditionEvaluation_ = null;
             }
             return conditionEvaluationBuilder_;
           }
    -
           @java.lang.Override
           public final Builder setUnknownFields(
               final com.google.protobuf.UnknownFieldSet unknownFields) {
    @@ -7263,32 +6202,41 @@ public final Builder mergeUnknownFields(
             return super.mergeUnknownFields(unknownFields);
           }
     
    +
           // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList)
         }
     
         // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList)
    -    private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
    -        DEFAULT_INSTANCE;
    -
    +    private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList DEFAULT_INSTANCE;
         static {
           DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList();
         }
     
    -    public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
    -        getDefaultInstance() {
    +    public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getDefaultInstance() {
           return DEFAULT_INSTANCE;
         }
     
    -    private static final com.google.protobuf.Parser PARSER =
    -        new com.google.protobuf.AbstractParser() {
    -          @java.lang.Override
    -          public AccessControlList parsePartialFrom(
    -              com.google.protobuf.CodedInputStream input,
    -              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -              throws com.google.protobuf.InvalidProtocolBufferException {
    -            return new AccessControlList(input, extensionRegistry);
    -          }
    -        };
    +    private static final com.google.protobuf.Parser
    +        PARSER = new com.google.protobuf.AbstractParser() {
    +      @java.lang.Override
    +      public AccessControlList parsePartialFrom(
    +          com.google.protobuf.CodedInputStream input,
    +          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +          throws com.google.protobuf.InvalidProtocolBufferException {
    +        Builder builder = newBuilder();
    +        try {
    +          builder.mergeFrom(input, extensionRegistry);
    +        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +          throw e.setUnfinishedMessage(builder.buildPartial());
    +        } catch (com.google.protobuf.UninitializedMessageException e) {
    +          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +        } catch (java.io.IOException e) {
    +          throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +              .setUnfinishedMessage(builder.buildPartial());
    +        }
    +        return builder.buildPartial();
    +      }
    +    };
     
         public static com.google.protobuf.Parser parser() {
           return PARSER;
    @@ -7300,20 +6248,17 @@ public com.google.protobuf.Parser getParserForType() {
         }
     
         @java.lang.Override
    -    public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
    -        getDefaultInstanceForType() {
    +    public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getDefaultInstanceForType() {
           return DEFAULT_INSTANCE;
         }
    +
       }
     
    -  public interface IdentityListOrBuilder
    -      extends
    +  public interface IdentityListOrBuilder extends
           // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList)
           com.google.protobuf.MessageOrBuilder {
     
         /**
    -     *
    -     *
          * 
          * Only the identities that match one of the following conditions will be
          * presented:
    @@ -7323,10 +6268,9 @@ public interface IdentityListOrBuilder
          *
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
          */
    -    java.util.List getIdentitiesList();
    +    java.util.List 
    +        getIdentitiesList();
         /**
    -     *
    -     *
          * 
          * Only the identities that match one of the following conditions will be
          * presented:
    @@ -7338,8 +6282,6 @@ public interface IdentityListOrBuilder
          */
         com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getIdentities(int index);
         /**
    -     *
    -     *
          * 
          * Only the identities that match one of the following conditions will be
          * presented:
    @@ -7351,8 +6293,6 @@ public interface IdentityListOrBuilder
          */
         int getIdentitiesCount();
         /**
    -     *
    -     *
          * 
          * Only the identities that match one of the following conditions will be
          * presented:
    @@ -7362,11 +6302,9 @@ public interface IdentityListOrBuilder
          *
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
          */
    -    java.util.List
    +    java.util.List 
             getIdentitiesOrBuilderList();
         /**
    -     *
    -     *
          * 
          * Only the identities that match one of the following conditions will be
          * presented:
    @@ -7380,96 +6318,72 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder getIdentitie
             int index);
     
         /**
    -     *
    -     *
          * 
          * Group identity edges of the graph starting from the binding's
    -     * group members to any node of the
    -     * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -     * The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +     * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
          * contains a group, such as `group:parent@google.com`. The
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -     * contains a member of the group, such as `group:child@google.com` or
    -     * `user:foo@google.com`. This field is present only if the
    -     * output_group_edges option is enabled in request.
    +     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +     * such as `group:child@google.com` or `user:foo@google.com`.
    +     * This field is present only if the output_group_edges option is enabled in
    +     * request.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; */ - java.util.List getGroupEdgesList(); + java.util.List + getGroupEdgesList(); /** - * - * *
          * Group identity edges of the graph starting from the binding's
    -     * group members to any node of the
    -     * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -     * The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +     * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
          * contains a group, such as `group:parent@google.com`. The
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -     * contains a member of the group, such as `group:child@google.com` or
    -     * `user:foo@google.com`. This field is present only if the
    -     * output_group_edges option is enabled in request.
    +     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +     * such as `group:child@google.com` or `user:foo@google.com`.
    +     * This field is present only if the output_group_edges option is enabled in
    +     * request.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; */ com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getGroupEdges(int index); /** - * - * *
          * Group identity edges of the graph starting from the binding's
    -     * group members to any node of the
    -     * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -     * The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +     * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
          * contains a group, such as `group:parent@google.com`. The
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -     * contains a member of the group, such as `group:child@google.com` or
    -     * `user:foo@google.com`. This field is present only if the
    -     * output_group_edges option is enabled in request.
    +     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +     * such as `group:child@google.com` or `user:foo@google.com`.
    +     * This field is present only if the output_group_edges option is enabled in
    +     * request.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; */ int getGroupEdgesCount(); /** - * - * *
          * Group identity edges of the graph starting from the binding's
    -     * group members to any node of the
    -     * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -     * The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +     * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
          * contains a group, such as `group:parent@google.com`. The
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -     * contains a member of the group, such as `group:child@google.com` or
    -     * `user:foo@google.com`. This field is present only if the
    -     * output_group_edges option is enabled in request.
    +     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +     * such as `group:child@google.com` or `user:foo@google.com`.
    +     * This field is present only if the output_group_edges option is enabled in
    +     * request.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; */ - java.util.List + java.util.List getGroupEdgesOrBuilderList(); /** - * - * *
          * Group identity edges of the graph starting from the binding's
    -     * group members to any node of the
    -     * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -     * The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +     * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
          * contains a group, such as `group:parent@google.com`. The
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -     * contains a member of the group, such as `group:child@google.com` or
    -     * `user:foo@google.com`. This field is present only if the
    -     * output_group_edges option is enabled in request.
    +     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +     * such as `group:child@google.com` or `user:foo@google.com`.
    +     * This field is present only if the output_group_edges option is enabled in
    +     * request.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -7478,24 +6392,21 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getGroupEdgesOrB int index); } /** - * - * *
        * The identities and group edges.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList} */ - public static final class IdentityList extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class IdentityList extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList) IdentityListOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IdentityList.newBuilder() to construct. private IdentityList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IdentityList() { identities_ = java.util.Collections.emptyList(); groupEdges_ = java.util.Collections.emptyList(); @@ -7503,109 +6414,32 @@ private IdentityList() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IdentityList(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private IdentityList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - identities_ = - new java.util.ArrayList< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity>(); - mutable_bitField0_ |= 0x00000001; - } - identities_.add( - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.parser(), - extensionRegistry)); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - groupEdges_ = - new java.util.ArrayList< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge>(); - mutable_bitField0_ |= 0x00000002; - } - groupEdges_.add( - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - identities_ = java.util.Collections.unmodifiableList(identities_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - groupEdges_ = java.util.Collections.unmodifiableList(groupEdges_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.class, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder.class); } public static final int IDENTITIES_FIELD_NUMBER = 1; private java.util.List identities_; /** - * - * *
          * Only the identities that match one of the following conditions will be
          * presented:
    @@ -7616,13 +6450,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
          */
         @java.lang.Override
    -    public java.util.List
    -        getIdentitiesList() {
    +    public java.util.List getIdentitiesList() {
           return identities_;
         }
         /**
    -     *
    -     *
          * 
          * Only the identities that match one of the following conditions will be
          * presented:
    @@ -7633,14 +6464,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
          */
         @java.lang.Override
    -    public java.util.List<
    -            ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder>
    +    public java.util.List 
             getIdentitiesOrBuilderList() {
           return identities_;
         }
         /**
    -     *
    -     *
          * 
          * Only the identities that match one of the following conditions will be
          * presented:
    @@ -7655,8 +6483,6 @@ public int getIdentitiesCount() {
           return identities_.size();
         }
         /**
    -     *
    -     *
          * 
          * Only the identities that match one of the following conditions will be
          * presented:
    @@ -7671,8 +6497,6 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getIdentities(
           return identities_.get(index);
         }
         /**
    -     *
    -     *
          * 
          * Only the identities that match one of the following conditions will be
          * presented:
    @@ -7683,73 +6507,57 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getIdentities(
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
          */
         @java.lang.Override
    -    public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder
    -        getIdentitiesOrBuilder(int index) {
    +    public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder getIdentitiesOrBuilder(
    +        int index) {
           return identities_.get(index);
         }
     
         public static final int GROUP_EDGES_FIELD_NUMBER = 2;
         private java.util.List groupEdges_;
         /**
    -     *
    -     *
          * 
          * Group identity edges of the graph starting from the binding's
    -     * group members to any node of the
    -     * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -     * The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +     * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
          * contains a group, such as `group:parent@google.com`. The
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -     * contains a member of the group, such as `group:child@google.com` or
    -     * `user:foo@google.com`. This field is present only if the
    -     * output_group_edges option is enabled in request.
    +     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +     * such as `group:child@google.com` or `user:foo@google.com`.
    +     * This field is present only if the output_group_edges option is enabled in
    +     * request.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; */ @java.lang.Override - public java.util.List - getGroupEdgesList() { + public java.util.List getGroupEdgesList() { return groupEdges_; } /** - * - * *
          * Group identity edges of the graph starting from the binding's
    -     * group members to any node of the
    -     * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -     * The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +     * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
          * contains a group, such as `group:parent@google.com`. The
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -     * contains a member of the group, such as `group:child@google.com` or
    -     * `user:foo@google.com`. This field is present only if the
    -     * output_group_edges option is enabled in request.
    +     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +     * such as `group:child@google.com` or `user:foo@google.com`.
    +     * This field is present only if the output_group_edges option is enabled in
    +     * request.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; */ @java.lang.Override - public java.util.List + public java.util.List getGroupEdgesOrBuilderList() { return groupEdges_; } /** - * - * *
          * Group identity edges of the graph starting from the binding's
    -     * group members to any node of the
    -     * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -     * The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +     * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
          * contains a group, such as `group:parent@google.com`. The
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -     * contains a member of the group, such as `group:child@google.com` or
    -     * `user:foo@google.com`. This field is present only if the
    -     * output_group_edges option is enabled in request.
    +     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +     * such as `group:child@google.com` or `user:foo@google.com`.
    +     * This field is present only if the output_group_edges option is enabled in
    +     * request.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -7759,19 +6567,14 @@ public int getGroupEdgesCount() { return groupEdges_.size(); } /** - * - * *
          * Group identity edges of the graph starting from the binding's
    -     * group members to any node of the
    -     * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -     * The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +     * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
          * contains a group, such as `group:parent@google.com`. The
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -     * contains a member of the group, such as `group:child@google.com` or
    -     * `user:foo@google.com`. This field is present only if the
    -     * output_group_edges option is enabled in request.
    +     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +     * such as `group:child@google.com` or `user:foo@google.com`.
    +     * This field is present only if the output_group_edges option is enabled in
    +     * request.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -7781,19 +6584,14 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getGroupEdges(int return groupEdges_.get(index); } /** - * - * *
          * Group identity edges of the graph starting from the binding's
    -     * group members to any node of the
    -     * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -     * The
    -     * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +     * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
          * contains a group, such as `group:parent@google.com`. The
    -     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -     * contains a member of the group, such as `group:child@google.com` or
    -     * `user:foo@google.com`. This field is present only if the
    -     * output_group_edges option is enabled in request.
    +     * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +     * such as `group:child@google.com` or `user:foo@google.com`.
    +     * This field is present only if the output_group_edges option is enabled in
    +     * request.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -7805,7 +6603,6 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getGroupE } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7817,14 +6614,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < identities_.size(); i++) { output.writeMessage(1, identities_.get(i)); } for (int i = 0; i < groupEdges_.size(); i++) { output.writeMessage(2, groupEdges_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -7834,12 +6632,14 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < identities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, identities_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, identities_.get(i)); } for (int i = 0; i < groupEdges_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, groupEdges_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, groupEdges_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -7847,17 +6647,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList other = - (com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList other = (com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList) obj; - if (!getIdentitiesList().equals(other.getIdentitiesList())) return false; - if (!getGroupEdgesList().equals(other.getGroupEdgesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getIdentitiesList() + .equals(other.getIdentitiesList())) return false; + if (!getGroupEdgesList() + .equals(other.getGroupEdgesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7876,100 +6677,93 @@ public int hashCode() { hash = (37 * hash) + GROUP_EDGES_FIELD_NUMBER; hash = (53 * hash) + getGroupEdgesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList 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.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -7979,78 +6773,67 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * The identities and group edges.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList) com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.class, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder.class); } // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getIdentitiesFieldBuilder(); - getGroupEdgesFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); if (identitiesBuilder_ == null) { identities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + identities_ = null; identitiesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (groupEdgesBuilder_ == null) { groupEdges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + groupEdges_ = null; groupEdgesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList - getDefaultInstanceForType() { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList getDefaultInstanceForType() { return com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.getDefaultInstance(); } @@ -8065,8 +6848,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList build() { @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList buildPartial() { - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList result = - new com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList(this); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList result = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList(this); int from_bitField0_ = bitField0_; if (identitiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -8094,52 +6876,46 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicyAnalysisResult.IdentityList) { - return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList) other); + return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList other) { - if (other - == com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList other) { + if (other == com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.getDefaultInstance()) return this; if (identitiesBuilder_ == null) { if (!other.identities_.isEmpty()) { if (identities_.isEmpty()) { @@ -8158,10 +6934,9 @@ public Builder mergeFrom( identitiesBuilder_ = null; identities_ = other.identities_; bitField0_ = (bitField0_ & ~0x00000001); - identitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getIdentitiesFieldBuilder() - : null; + identitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getIdentitiesFieldBuilder() : null; } else { identitiesBuilder_.addAllMessages(other.identities_); } @@ -8185,16 +6960,15 @@ public Builder mergeFrom( groupEdgesBuilder_ = null; groupEdges_ = other.groupEdges_; bitField0_ = (bitField0_ & ~0x00000002); - groupEdgesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGroupEdgesFieldBuilder() - : null; + groupEdgesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGroupEdgesFieldBuilder() : null; } else { groupEdgesBuilder_.addAllMessages(other.groupEdges_); } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -8209,45 +6983,73 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity m = + input.readMessage( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.parser(), + extensionRegistry); + if (identitiesBuilder_ == null) { + ensureIdentitiesIsMutable(); + identities_.add(m); + } else { + identitiesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge m = + input.readMessage( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.parser(), + extensionRegistry); + if (groupEdgesBuilder_ == null) { + ensureGroupEdgesIsMutable(); + groupEdges_.add(m); + } else { + groupEdgesBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; - private java.util.List - identities_ = java.util.Collections.emptyList(); - + private java.util.List identities_ = + java.util.Collections.emptyList(); private void ensureIdentitiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - identities_ = - new java.util.ArrayList( - identities_); + identities_ = new java.util.ArrayList(identities_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder> - identitiesBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder> identitiesBuilder_; /** - * - * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -8255,11 +7057,9 @@ private void ensureIdentitiesIsMutable() {
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; */ - public java.util.List - getIdentitiesList() { + public java.util.List getIdentitiesList() { if (identitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(identities_); } else { @@ -8267,8 +7067,6 @@ private void ensureIdentitiesIsMutable() { } } /** - * - * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -8276,8 +7074,7 @@ private void ensureIdentitiesIsMutable() {
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; */ public int getIdentitiesCount() { if (identitiesBuilder_ == null) { @@ -8287,8 +7084,6 @@ public int getIdentitiesCount() { } } /** - * - * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -8296,8 +7091,7 @@ public int getIdentitiesCount() {
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; */ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getIdentities(int index) { if (identitiesBuilder_ == null) { @@ -8307,8 +7101,6 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getIdentities( } } /** - * - * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -8316,8 +7108,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getIdentities(
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; */ public Builder setIdentities( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity value) { @@ -8334,8 +7125,6 @@ public Builder setIdentities( return this; } /** - * - * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -8343,12 +7132,10 @@ public Builder setIdentities(
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; */ public Builder setIdentities( - int index, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder builderForValue) { + int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder builderForValue) { if (identitiesBuilder_ == null) { ensureIdentitiesIsMutable(); identities_.set(index, builderForValue.build()); @@ -8359,8 +7146,6 @@ public Builder setIdentities( return this; } /** - * - * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -8368,11 +7153,9 @@ public Builder setIdentities(
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; */ - public Builder addIdentities( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity value) { + public Builder addIdentities(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity value) { if (identitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8386,8 +7169,6 @@ public Builder addIdentities( return this; } /** - * - * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -8395,8 +7176,7 @@ public Builder addIdentities(
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; */ public Builder addIdentities( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity value) { @@ -8413,8 +7193,6 @@ public Builder addIdentities( return this; } /** - * - * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -8422,8 +7200,7 @@ public Builder addIdentities(
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; */ public Builder addIdentities( com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder builderForValue) { @@ -8437,8 +7214,6 @@ public Builder addIdentities( return this; } /** - * - * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -8446,12 +7221,10 @@ public Builder addIdentities(
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; */ public Builder addIdentities( - int index, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder builderForValue) { + int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder builderForValue) { if (identitiesBuilder_ == null) { ensureIdentitiesIsMutable(); identities_.add(index, builderForValue.build()); @@ -8462,8 +7235,6 @@ public Builder addIdentities( return this; } /** - * - * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -8471,15 +7242,14 @@ public Builder addIdentities(
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; */ public Builder addAllIdentities( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (identitiesBuilder_ == null) { ensureIdentitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, identities_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, identities_); onChanged(); } else { identitiesBuilder_.addAllMessages(values); @@ -8487,8 +7257,6 @@ public Builder addAllIdentities( return this; } /** - * - * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -8496,8 +7264,7 @@ public Builder addAllIdentities(
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; */ public Builder clearIdentities() { if (identitiesBuilder_ == null) { @@ -8510,8 +7277,6 @@ public Builder clearIdentities() { return this; } /** - * - * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -8519,8 +7284,7 @@ public Builder clearIdentities() {
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; */ public Builder removeIdentities(int index) { if (identitiesBuilder_ == null) { @@ -8533,8 +7297,6 @@ public Builder removeIdentities(int index) { return this; } /** - * - * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -8542,16 +7304,13 @@ public Builder removeIdentities(int index) {
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder - getIdentitiesBuilder(int index) { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder getIdentitiesBuilder( + int index) { return getIdentitiesFieldBuilder().getBuilder(index); } /** - * - * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -8559,20 +7318,16 @@ public Builder removeIdentities(int index) {
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder - getIdentitiesOrBuilder(int index) { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder getIdentitiesOrBuilder( + int index) { if (identitiesBuilder_ == null) { - return identities_.get(index); - } else { + return identities_.get(index); } else { return identitiesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -8580,12 +7335,10 @@ public Builder removeIdentities(int index) {
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; */ - public java.util.List< - ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder> - getIdentitiesOrBuilderList() { + public java.util.List + getIdentitiesOrBuilderList() { if (identitiesBuilder_ != null) { return identitiesBuilder_.getMessageOrBuilderList(); } else { @@ -8593,8 +7346,6 @@ public Builder removeIdentities(int index) { } } /** - * - * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -8602,18 +7353,13 @@ public Builder removeIdentities(int index) {
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder - addIdentitiesBuilder() { - return getIdentitiesFieldBuilder() - .addBuilder( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.getDefaultInstance()); + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder addIdentitiesBuilder() { + return getIdentitiesFieldBuilder().addBuilder( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.getDefaultInstance()); } /** - * - * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -8621,19 +7367,14 @@ public Builder removeIdentities(int index) {
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder - addIdentitiesBuilder(int index) { - return getIdentitiesFieldBuilder() - .addBuilder( - index, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.getDefaultInstance()); + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder addIdentitiesBuilder( + int index) { + return getIdentitiesFieldBuilder().addBuilder( + index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.getDefaultInstance()); } /** - * - * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -8641,69 +7382,53 @@ public Builder removeIdentities(int index) {
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; */ - public java.util.List - getIdentitiesBuilderList() { + public java.util.List + getIdentitiesBuilderList() { return getIdentitiesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder> getIdentitiesFieldBuilder() { if (identitiesBuilder_ == null) { - identitiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder>( - identities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + identitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder>( + identities_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); identities_ = null; } return identitiesBuilder_; } private java.util.List groupEdges_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureGroupEdgesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - groupEdges_ = - new java.util.ArrayList( - groupEdges_); + groupEdges_ = new java.util.ArrayList(groupEdges_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder> - groupEdgesBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder> groupEdgesBuilder_; /** - * - * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; */ - public java.util.List - getGroupEdgesList() { + public java.util.List getGroupEdgesList() { if (groupEdgesBuilder_ == null) { return java.util.Collections.unmodifiableList(groupEdges_); } else { @@ -8711,19 +7436,14 @@ private void ensureGroupEdgesIsMutable() { } } /** - * - * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -8736,19 +7456,14 @@ public int getGroupEdgesCount() { } } /** - * - * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -8761,19 +7476,14 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getGroupEdges(int } } /** - * - * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -8793,26 +7503,20 @@ public Builder setGroupEdges( return this; } /** - * - * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; */ public Builder setGroupEdges( - int index, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue) { + int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue) { if (groupEdgesBuilder_ == null) { ensureGroupEdgesIsMutable(); groupEdges_.set(index, builderForValue.build()); @@ -8823,19 +7527,14 @@ public Builder setGroupEdges( return this; } /** - * - * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -8854,19 +7553,14 @@ public Builder addGroupEdges(com.google.cloud.asset.v1.IamPolicyAnalysisResult.E return this; } /** - * - * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -8886,19 +7580,14 @@ public Builder addGroupEdges( return this; } /** - * - * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -8915,26 +7604,20 @@ public Builder addGroupEdges( return this; } /** - * - * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; */ public Builder addGroupEdges( - int index, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue) { + int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue) { if (groupEdgesBuilder_ == null) { ensureGroupEdgesIsMutable(); groupEdges_.add(index, builderForValue.build()); @@ -8945,29 +7628,24 @@ public Builder addGroupEdges( return this; } /** - * - * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; */ public Builder addAllGroupEdges( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (groupEdgesBuilder_ == null) { ensureGroupEdgesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupEdges_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, groupEdges_); onChanged(); } else { groupEdgesBuilder_.addAllMessages(values); @@ -8975,19 +7653,14 @@ public Builder addAllGroupEdges( return this; } /** - * - * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -9003,19 +7676,14 @@ public Builder clearGroupEdges() { return this; } /** - * - * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -9031,19 +7699,14 @@ public Builder removeGroupEdges(int index) { return this; } /** - * - * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -9053,19 +7716,14 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder getGroupEd return getGroupEdgesFieldBuilder().getBuilder(index); } /** - * - * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; @@ -9073,32 +7731,25 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder getGroupEd public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getGroupEdgesOrBuilder( int index) { if (groupEdgesBuilder_ == null) { - return groupEdges_.get(index); - } else { + return groupEdges_.get(index); } else { return groupEdgesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; */ - public java.util.List< - ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder> - getGroupEdgesOrBuilderList() { + public java.util.List + getGroupEdgesOrBuilderList() { if (groupEdgesBuilder_ != null) { return groupEdgesBuilder_.getMessageOrBuilderList(); } else { @@ -9106,92 +7757,71 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getGroupE } } /** - * - * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; */ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder addGroupEdgesBuilder() { - return getGroupEdgesFieldBuilder() - .addBuilder( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance()); + return getGroupEdgesFieldBuilder().addBuilder( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance()); } /** - * - * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; */ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder addGroupEdgesBuilder( int index) { - return getGroupEdgesFieldBuilder() - .addBuilder( - index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance()); + return getGroupEdgesFieldBuilder().addBuilder( + index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance()); } /** - * - * *
            * Group identity edges of the graph starting from the binding's
    -       * group members to any node of the
    -       * [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -       * The
    -       * [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +       * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
            * contains a group, such as `group:parent@google.com`. The
    -       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -       * contains a member of the group, such as `group:child@google.com` or
    -       * `user:foo@google.com`. This field is present only if the
    -       * output_group_edges option is enabled in request.
    +       * [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +       * such as `group:child@google.com` or `user:foo@google.com`.
    +       * This field is present only if the output_group_edges option is enabled in
    +       * request.
            * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; */ - public java.util.List - getGroupEdgesBuilderList() { + public java.util.List + getGroupEdgesBuilderList() { return getGroupEdgesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder> getGroupEdgesFieldBuilder() { if (groupEdgesBuilder_ == null) { - groupEdgesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder>( - groupEdges_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + groupEdgesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder>( + groupEdges_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); groupEdges_ = null; } return groupEdgesBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9204,32 +7834,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList) - private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList - DEFAULT_INSTANCE; - + private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList(); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList - getDefaultInstance() { + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IdentityList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IdentityList(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IdentityList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9241,27 +7880,22 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList - getDefaultInstanceForType() { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int ATTACHED_RESOURCE_FULL_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object attachedResourceFullName_; /** - * - * *
        * The [full resource
        * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -   * of the resource to which the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * policy attaches.
    +   * of the resource to which the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] policy attaches.
        * 
    * * string attached_resource_full_name = 1; - * * @return The attachedResourceFullName. */ @java.lang.Override @@ -9270,33 +7904,31 @@ public java.lang.String getAttachedResourceFullName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attachedResourceFullName_ = s; return s; } } /** - * - * *
        * The [full resource
        * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -   * of the resource to which the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * policy attaches.
    +   * of the resource to which the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] policy attaches.
        * 
    * * string attached_resource_full_name = 1; - * * @return The bytes for attachedResourceFullName. */ @java.lang.Override - public com.google.protobuf.ByteString getAttachedResourceFullNameBytes() { + public com.google.protobuf.ByteString + getAttachedResourceFullNameBytes() { java.lang.Object ref = attachedResourceFullName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attachedResourceFullName_ = b; return b; } else { @@ -9307,14 +7939,11 @@ public com.google.protobuf.ByteString getAttachedResourceFullNameBytes() { public static final int IAM_BINDING_FIELD_NUMBER = 2; private com.google.iam.v1.Binding iamBinding_; /** - * - * *
        * The Cloud IAM policy binding under analysis.
        * 
    * * .google.iam.v1.Binding iam_binding = 2; - * * @return Whether the iamBinding field is set. */ @java.lang.Override @@ -9322,14 +7951,11 @@ public boolean hasIamBinding() { return iamBinding_ != null; } /** - * - * *
        * The Cloud IAM policy binding under analysis.
        * 
    * * .google.iam.v1.Binding iam_binding = 2; - * * @return The iamBinding. */ @java.lang.Override @@ -9337,8 +7963,6 @@ public com.google.iam.v1.Binding getIamBinding() { return iamBinding_ == null ? com.google.iam.v1.Binding.getDefaultInstance() : iamBinding_; } /** - * - * *
        * The Cloud IAM policy binding under analysis.
        * 
    @@ -9351,117 +7975,79 @@ public com.google.iam.v1.BindingOrBuilder getIamBindingOrBuilder() { } public static final int ACCESS_CONTROL_LISTS_FIELD_NUMBER = 3; - private java.util.List - accessControlLists_; + private java.util.List accessControlLists_; /** - * - * *
    -   * The access control lists derived from the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * that match or potentially match resource and access selectors specified in
    -   * the request.
    +   * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match resource and access selectors specified in the request.
        * 
    * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; */ @java.lang.Override - public java.util.List - getAccessControlListsList() { + public java.util.List getAccessControlListsList() { return accessControlLists_; } /** - * - * *
    -   * The access control lists derived from the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * that match or potentially match resource and access selectors specified in
    -   * the request.
    +   * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match resource and access selectors specified in the request.
        * 
    * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder> + public java.util.List getAccessControlListsOrBuilderList() { return accessControlLists_; } /** - * - * *
    -   * The access control lists derived from the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * that match or potentially match resource and access selectors specified in
    -   * the request.
    +   * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match resource and access selectors specified in the request.
        * 
    * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; */ @java.lang.Override public int getAccessControlListsCount() { return accessControlLists_.size(); } /** - * - * *
    -   * The access control lists derived from the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * that match or potentially match resource and access selectors specified in
    -   * the request.
    +   * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match resource and access selectors specified in the request.
        * 
    * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getAccessControlLists( - int index) { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getAccessControlLists(int index) { return accessControlLists_.get(index); } /** - * - * *
    -   * The access control lists derived from the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * that match or potentially match resource and access selectors specified in
    -   * the request.
    +   * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match resource and access selectors specified in the request.
        * 
    * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder - getAccessControlListsOrBuilder(int index) { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder getAccessControlListsOrBuilder( + int index) { return accessControlLists_.get(index); } public static final int IDENTITY_LIST_FIELD_NUMBER = 4; private com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identityList_; /** - * - * *
    -   * The identity list derived from members of the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * that match or potentially match identity selector specified in the request.
    +   * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match identity selector specified in the request.
        * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; - * * @return Whether the identityList field is set. */ @java.lang.Override @@ -9469,54 +8055,40 @@ public boolean hasIdentityList() { return identityList_ != null; } /** - * - * *
    -   * The identity list derived from members of the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * that match or potentially match identity selector specified in the request.
    +   * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match identity selector specified in the request.
        * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; - * * @return The identityList. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList getIdentityList() { - return identityList_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.getDefaultInstance() - : identityList_; + return identityList_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.getDefaultInstance() : identityList_; } /** - * - * *
    -   * The identity list derived from members of the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * that match or potentially match identity selector specified in the request.
    +   * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match identity selector specified in the request.
        * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder - getIdentityListOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder getIdentityListOrBuilder() { return getIdentityList(); } public static final int FULLY_EXPLORED_FIELD_NUMBER = 5; private boolean fullyExplored_; /** - * - * *
    -   * Represents whether all analyses on the
    -   * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -   * have successfully finished.
    +   * Represents whether all analyses on the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] have successfully
    +   * finished.
        * 
    * * bool fully_explored = 5; - * * @return The fullyExplored. */ @java.lang.Override @@ -9525,7 +8097,6 @@ public boolean getFullyExplored() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9537,7 +8108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attachedResourceFullName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attachedResourceFullName_); } @@ -9553,7 +8125,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (fullyExplored_ != false) { output.writeBool(5, fullyExplored_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -9563,23 +8135,25 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attachedResourceFullName_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(1, attachedResourceFullName_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, attachedResourceFullName_); } if (iamBinding_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIamBinding()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getIamBinding()); } for (int i = 0; i < accessControlLists_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, accessControlLists_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, accessControlLists_.get(i)); } if (identityList_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIdentityList()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getIdentityList()); } if (fullyExplored_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, fullyExplored_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, fullyExplored_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -9587,26 +8161,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisResult other = - (com.google.cloud.asset.v1.IamPolicyAnalysisResult) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisResult other = (com.google.cloud.asset.v1.IamPolicyAnalysisResult) obj; - if (!getAttachedResourceFullName().equals(other.getAttachedResourceFullName())) return false; + if (!getAttachedResourceFullName() + .equals(other.getAttachedResourceFullName())) return false; if (hasIamBinding() != other.hasIamBinding()) return false; if (hasIamBinding()) { - if (!getIamBinding().equals(other.getIamBinding())) return false; + if (!getIamBinding() + .equals(other.getIamBinding())) return false; } - if (!getAccessControlListsList().equals(other.getAccessControlListsList())) return false; + if (!getAccessControlListsList() + .equals(other.getAccessControlListsList())) return false; if (hasIdentityList() != other.hasIdentityList()) return false; if (hasIdentityList()) { - if (!getIdentityList().equals(other.getIdentityList())) return false; + if (!getIdentityList() + .equals(other.getIdentityList())) return false; } - if (getFullyExplored() != other.getFullyExplored()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (getFullyExplored() + != other.getFullyExplored()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -9632,110 +8210,104 @@ public int hashCode() { hash = (53 * hash) + getIdentityList().hashCode(); } hash = (37 * hash) + FULLY_EXPLORED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFullyExplored()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFullyExplored()); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult 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.asset.v1.IamPolicyAnalysisResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * IAM Policy analysis result, consisting of one IAM policy binding and derived
        * access control lists.
    @@ -9743,41 +8315,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult}
        */
    -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    -      implements
    +  public static final class Builder extends
    +      com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisResult)
           com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor
    +        getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.IamPolicyAnalysisResult.class,
    -              com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder.class);
    +              com.google.cloud.asset.v1.IamPolicyAnalysisResult.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.newBuilder()
         private Builder() {
    -      maybeForceBuilderInitialization();
    +
         }
     
    -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(
    +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
     
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getAccessControlListsFieldBuilder();
    -      }
         }
    -
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -9791,10 +8355,11 @@ public Builder clear() {
           }
           if (accessControlListsBuilder_ == null) {
             accessControlLists_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        accessControlLists_ = null;
             accessControlListsBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
           if (identityListBuilder_ == null) {
             identityList_ = null;
           } else {
    @@ -9807,9 +8372,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor
    +        getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor;
         }
     
         @java.lang.Override
    @@ -9828,8 +8393,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1.IamPolicyAnalysisResult buildPartial() {
    -      com.google.cloud.asset.v1.IamPolicyAnalysisResult result =
    -          new com.google.cloud.asset.v1.IamPolicyAnalysisResult(this);
    +      com.google.cloud.asset.v1.IamPolicyAnalysisResult result = new com.google.cloud.asset.v1.IamPolicyAnalysisResult(this);
           int from_bitField0_ = bitField0_;
           result.attachedResourceFullName_ = attachedResourceFullName_;
           if (iamBindingBuilder_ == null) {
    @@ -9860,39 +8424,38 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    -
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.IamPolicyAnalysisResult) {
    -        return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult) other);
    +        return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult)other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -9900,8 +8463,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
         }
     
         public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult other) {
    -      if (other == com.google.cloud.asset.v1.IamPolicyAnalysisResult.getDefaultInstance())
    -        return this;
    +      if (other == com.google.cloud.asset.v1.IamPolicyAnalysisResult.getDefaultInstance()) return this;
           if (!other.getAttachedResourceFullName().isEmpty()) {
             attachedResourceFullName_ = other.attachedResourceFullName_;
             onChanged();
    @@ -9927,10 +8489,9 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult other
                 accessControlListsBuilder_ = null;
                 accessControlLists_ = other.accessControlLists_;
                 bitField0_ = (bitField0_ & ~0x00000001);
    -            accessControlListsBuilder_ =
    -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
    -                    ? getAccessControlListsFieldBuilder()
    -                    : null;
    +            accessControlListsBuilder_ = 
    +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
    +                 getAccessControlListsFieldBuilder() : null;
               } else {
                 accessControlListsBuilder_.addAllMessages(other.accessControlLists_);
               }
    @@ -9942,7 +8503,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult other
           if (other.getFullyExplored() != false) {
             setFullyExplored(other.getFullyExplored());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -9957,43 +8518,87 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.IamPolicyAnalysisResult parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10: {
    +              attachedResourceFullName_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 10
    +            case 18: {
    +              input.readMessage(
    +                  getIamBindingFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 18
    +            case 26: {
    +              com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList m =
    +                  input.readMessage(
    +                      com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.parser(),
    +                      extensionRegistry);
    +              if (accessControlListsBuilder_ == null) {
    +                ensureAccessControlListsIsMutable();
    +                accessControlLists_.add(m);
    +              } else {
    +                accessControlListsBuilder_.addMessage(m);
    +              }
    +              break;
    +            } // case 26
    +            case 34: {
    +              input.readMessage(
    +                  getIdentityListFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 34
    +            case 40: {
    +              fullyExplored_ = input.readBool();
    +
    +              break;
    +            } // case 40
    +            default: {
    +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                done = true; // was an endgroup tag
    +              }
    +              break;
    +            } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1.IamPolicyAnalysisResult) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
    -
         private int bitField0_;
     
         private java.lang.Object attachedResourceFullName_ = "";
         /**
    -     *
    -     *
          * 
          * The [full resource
          * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -     * of the resource to which the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * policy attaches.
    +     * of the resource to which the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] policy attaches.
          * 
    * * string attached_resource_full_name = 1; - * * @return The attachedResourceFullName. */ public java.lang.String getAttachedResourceFullName() { java.lang.Object ref = attachedResourceFullName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attachedResourceFullName_ = s; return s; @@ -10002,25 +8607,22 @@ public java.lang.String getAttachedResourceFullName() { } } /** - * - * *
          * The [full resource
          * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -     * of the resource to which the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * policy attaches.
    +     * of the resource to which the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] policy attaches.
          * 
    * * string attached_resource_full_name = 1; - * * @return The bytes for attachedResourceFullName. */ - public com.google.protobuf.ByteString getAttachedResourceFullNameBytes() { + public com.google.protobuf.ByteString + getAttachedResourceFullNameBytes() { java.lang.Object ref = attachedResourceFullName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attachedResourceFullName_ = b; return b; } else { @@ -10028,73 +8630,60 @@ public com.google.protobuf.ByteString getAttachedResourceFullNameBytes() { } } /** - * - * *
          * The [full resource
          * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -     * of the resource to which the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * policy attaches.
    +     * of the resource to which the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] policy attaches.
          * 
    * * string attached_resource_full_name = 1; - * * @param value The attachedResourceFullName to set. * @return This builder for chaining. */ - public Builder setAttachedResourceFullName(java.lang.String value) { + public Builder setAttachedResourceFullName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + attachedResourceFullName_ = value; onChanged(); return this; } /** - * - * *
          * The [full resource
          * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -     * of the resource to which the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * policy attaches.
    +     * of the resource to which the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] policy attaches.
          * 
    * * string attached_resource_full_name = 1; - * * @return This builder for chaining. */ public Builder clearAttachedResourceFullName() { - + attachedResourceFullName_ = getDefaultInstance().getAttachedResourceFullName(); onChanged(); return this; } /** - * - * *
          * The [full resource
          * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -     * of the resource to which the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * policy attaches.
    +     * of the resource to which the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] policy attaches.
          * 
    * * string attached_resource_full_name = 1; - * * @param value The bytes for attachedResourceFullName to set. * @return This builder for chaining. */ - public Builder setAttachedResourceFullNameBytes(com.google.protobuf.ByteString value) { + public Builder setAttachedResourceFullNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attachedResourceFullName_ = value; onChanged(); return this; @@ -10102,33 +8691,24 @@ public Builder setAttachedResourceFullNameBytes(com.google.protobuf.ByteString v private com.google.iam.v1.Binding iamBinding_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Binding, - com.google.iam.v1.Binding.Builder, - com.google.iam.v1.BindingOrBuilder> - iamBindingBuilder_; + com.google.iam.v1.Binding, com.google.iam.v1.Binding.Builder, com.google.iam.v1.BindingOrBuilder> iamBindingBuilder_; /** - * - * *
          * The Cloud IAM policy binding under analysis.
          * 
    * * .google.iam.v1.Binding iam_binding = 2; - * * @return Whether the iamBinding field is set. */ public boolean hasIamBinding() { return iamBindingBuilder_ != null || iamBinding_ != null; } /** - * - * *
          * The Cloud IAM policy binding under analysis.
          * 
    * * .google.iam.v1.Binding iam_binding = 2; - * * @return The iamBinding. */ public com.google.iam.v1.Binding getIamBinding() { @@ -10139,8 +8719,6 @@ public com.google.iam.v1.Binding getIamBinding() { } } /** - * - * *
          * The Cloud IAM policy binding under analysis.
          * 
    @@ -10161,15 +8739,14 @@ public Builder setIamBinding(com.google.iam.v1.Binding value) { return this; } /** - * - * *
          * The Cloud IAM policy binding under analysis.
          * 
    * * .google.iam.v1.Binding iam_binding = 2; */ - public Builder setIamBinding(com.google.iam.v1.Binding.Builder builderForValue) { + public Builder setIamBinding( + com.google.iam.v1.Binding.Builder builderForValue) { if (iamBindingBuilder_ == null) { iamBinding_ = builderForValue.build(); onChanged(); @@ -10180,8 +8757,6 @@ public Builder setIamBinding(com.google.iam.v1.Binding.Builder builderForValue) return this; } /** - * - * *
          * The Cloud IAM policy binding under analysis.
          * 
    @@ -10192,7 +8767,7 @@ public Builder mergeIamBinding(com.google.iam.v1.Binding value) { if (iamBindingBuilder_ == null) { if (iamBinding_ != null) { iamBinding_ = - com.google.iam.v1.Binding.newBuilder(iamBinding_).mergeFrom(value).buildPartial(); + com.google.iam.v1.Binding.newBuilder(iamBinding_).mergeFrom(value).buildPartial(); } else { iamBinding_ = value; } @@ -10204,8 +8779,6 @@ public Builder mergeIamBinding(com.google.iam.v1.Binding value) { return this; } /** - * - * *
          * The Cloud IAM policy binding under analysis.
          * 
    @@ -10224,8 +8797,6 @@ public Builder clearIamBinding() { return this; } /** - * - * *
          * The Cloud IAM policy binding under analysis.
          * 
    @@ -10233,13 +8804,11 @@ public Builder clearIamBinding() { * .google.iam.v1.Binding iam_binding = 2; */ public com.google.iam.v1.Binding.Builder getIamBindingBuilder() { - + onChanged(); return getIamBindingFieldBuilder().getBuilder(); } /** - * - * *
          * The Cloud IAM policy binding under analysis.
          * 
    @@ -10250,12 +8819,11 @@ public com.google.iam.v1.BindingOrBuilder getIamBindingOrBuilder() { if (iamBindingBuilder_ != null) { return iamBindingBuilder_.getMessageOrBuilder(); } else { - return iamBinding_ == null ? com.google.iam.v1.Binding.getDefaultInstance() : iamBinding_; + return iamBinding_ == null ? + com.google.iam.v1.Binding.getDefaultInstance() : iamBinding_; } } /** - * - * *
          * The Cloud IAM policy binding under analysis.
          * 
    @@ -10263,57 +8831,40 @@ public com.google.iam.v1.BindingOrBuilder getIamBindingOrBuilder() { * .google.iam.v1.Binding iam_binding = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Binding, - com.google.iam.v1.Binding.Builder, - com.google.iam.v1.BindingOrBuilder> + com.google.iam.v1.Binding, com.google.iam.v1.Binding.Builder, com.google.iam.v1.BindingOrBuilder> getIamBindingFieldBuilder() { if (iamBindingBuilder_ == null) { - iamBindingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Binding, - com.google.iam.v1.Binding.Builder, - com.google.iam.v1.BindingOrBuilder>( - getIamBinding(), getParentForChildren(), isClean()); + iamBindingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.iam.v1.Binding, com.google.iam.v1.Binding.Builder, com.google.iam.v1.BindingOrBuilder>( + getIamBinding(), + getParentForChildren(), + isClean()); iamBinding_ = null; } return iamBindingBuilder_; } - private java.util.List - accessControlLists_ = java.util.Collections.emptyList(); - + private java.util.List accessControlLists_ = + java.util.Collections.emptyList(); private void ensureAccessControlListsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - accessControlLists_ = - new java.util.ArrayList< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList>( - accessControlLists_); + accessControlLists_ = new java.util.ArrayList(accessControlLists_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder> - accessControlListsBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder> accessControlListsBuilder_; /** - * - * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; */ - public java.util.List - getAccessControlListsList() { + public java.util.List getAccessControlListsList() { if (accessControlListsBuilder_ == null) { return java.util.Collections.unmodifiableList(accessControlLists_); } else { @@ -10321,18 +8872,12 @@ private void ensureAccessControlListsIsMutable() { } } /** - * - * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; */ public int getAccessControlListsCount() { if (accessControlListsBuilder_ == null) { @@ -10342,21 +8887,14 @@ public int getAccessControlListsCount() { } } /** - * - * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList - getAccessControlLists(int index) { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getAccessControlLists(int index) { if (accessControlListsBuilder_ == null) { return accessControlLists_.get(index); } else { @@ -10364,18 +8902,12 @@ public int getAccessControlListsCount() { } } /** - * - * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; */ public Builder setAccessControlLists( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList value) { @@ -10392,23 +8924,15 @@ public Builder setAccessControlLists( return this; } /** - * - * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; */ public Builder setAccessControlLists( - int index, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder - builderForValue) { + int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder builderForValue) { if (accessControlListsBuilder_ == null) { ensureAccessControlListsIsMutable(); accessControlLists_.set(index, builderForValue.build()); @@ -10419,21 +8943,14 @@ public Builder setAccessControlLists( return this; } /** - * - * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; */ - public Builder addAccessControlLists( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList value) { + public Builder addAccessControlLists(com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList value) { if (accessControlListsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -10447,18 +8964,12 @@ public Builder addAccessControlLists( return this; } /** - * - * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; */ public Builder addAccessControlLists( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList value) { @@ -10475,22 +8986,15 @@ public Builder addAccessControlLists( return this; } /** - * - * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; */ public Builder addAccessControlLists( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder - builderForValue) { + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder builderForValue) { if (accessControlListsBuilder_ == null) { ensureAccessControlListsIsMutable(); accessControlLists_.add(builderForValue.build()); @@ -10501,23 +9005,15 @@ public Builder addAccessControlLists( return this; } /** - * - * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; */ public Builder addAccessControlLists( - int index, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder - builderForValue) { + int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder builderForValue) { if (accessControlListsBuilder_ == null) { ensureAccessControlListsIsMutable(); accessControlLists_.add(index, builderForValue.build()); @@ -10528,26 +9024,19 @@ public Builder addAccessControlLists( return this; } /** - * - * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; */ public Builder addAllAccessControlLists( - java.lang.Iterable< - ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList> - values) { + java.lang.Iterable values) { if (accessControlListsBuilder_ == null) { ensureAccessControlListsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessControlLists_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, accessControlLists_); onChanged(); } else { accessControlListsBuilder_.addAllMessages(values); @@ -10555,18 +9044,12 @@ public Builder addAllAccessControlLists( return this; } /** - * - * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; */ public Builder clearAccessControlLists() { if (accessControlListsBuilder_ == null) { @@ -10579,18 +9062,12 @@ public Builder clearAccessControlLists() { return this; } /** - * - * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; */ public Builder removeAccessControlLists(int index) { if (accessControlListsBuilder_ == null) { @@ -10603,62 +9080,42 @@ public Builder removeAccessControlLists(int index) { return this; } /** - * - * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder - getAccessControlListsBuilder(int index) { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder getAccessControlListsBuilder( + int index) { return getAccessControlListsFieldBuilder().getBuilder(index); } /** - * - * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder - getAccessControlListsOrBuilder(int index) { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder getAccessControlListsOrBuilder( + int index) { if (accessControlListsBuilder_ == null) { - return accessControlLists_.get(index); - } else { + return accessControlLists_.get(index); } else { return accessControlListsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; */ - public java.util.List< - ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder> - getAccessControlListsOrBuilderList() { + public java.util.List + getAccessControlListsOrBuilderList() { if (accessControlListsBuilder_ != null) { return accessControlListsBuilder_.getMessageOrBuilderList(); } else { @@ -10666,79 +9123,48 @@ public Builder removeAccessControlLists(int index) { } } /** - * - * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder - addAccessControlListsBuilder() { - return getAccessControlListsFieldBuilder() - .addBuilder( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList - .getDefaultInstance()); + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder addAccessControlListsBuilder() { + return getAccessControlListsFieldBuilder().addBuilder( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.getDefaultInstance()); } /** - * - * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder - addAccessControlListsBuilder(int index) { - return getAccessControlListsFieldBuilder() - .addBuilder( - index, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList - .getDefaultInstance()); + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder addAccessControlListsBuilder( + int index) { + return getAccessControlListsFieldBuilder().addBuilder( + index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.getDefaultInstance()); } /** - * - * *
    -     * The access control lists derived from the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match resource and access selectors specified in
    -     * the request.
    +     * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match resource and access selectors specified in the request.
          * 
    * - * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; */ - public java.util.List< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder> - getAccessControlListsBuilderList() { + public java.util.List + getAccessControlListsBuilderList() { return getAccessControlListsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder> getAccessControlListsFieldBuilder() { if (accessControlListsBuilder_ == null) { - accessControlListsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder>( + accessControlListsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder>( accessControlLists_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -10750,61 +9176,44 @@ public Builder removeAccessControlLists(int index) { private com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identityList_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder> - identityListBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList, com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder> identityListBuilder_; /** - * - * *
    -     * The identity list derived from members of the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match identity selector specified in the request.
    +     * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match identity selector specified in the request.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; - * * @return Whether the identityList field is set. */ public boolean hasIdentityList() { return identityListBuilder_ != null || identityList_ != null; } /** - * - * *
    -     * The identity list derived from members of the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match identity selector specified in the request.
    +     * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match identity selector specified in the request.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; - * * @return The identityList. */ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList getIdentityList() { if (identityListBuilder_ == null) { - return identityList_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.getDefaultInstance() - : identityList_; + return identityList_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.getDefaultInstance() : identityList_; } else { return identityListBuilder_.getMessage(); } } /** - * - * *
    -     * The identity list derived from members of the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match identity selector specified in the request.
    +     * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match identity selector specified in the request.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; */ - public Builder setIdentityList( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList value) { + public Builder setIdentityList(com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList value) { if (identityListBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -10818,12 +9227,9 @@ public Builder setIdentityList( return this; } /** - * - * *
    -     * The identity list derived from members of the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match identity selector specified in the request.
    +     * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match identity selector specified in the request.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; @@ -10840,25 +9246,18 @@ public Builder setIdentityList( return this; } /** - * - * *
    -     * The identity list derived from members of the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match identity selector specified in the request.
    +     * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match identity selector specified in the request.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; */ - public Builder mergeIdentityList( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList value) { + public Builder mergeIdentityList(com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList value) { if (identityListBuilder_ == null) { if (identityList_ != null) { identityList_ = - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.newBuilder( - identityList_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.newBuilder(identityList_).mergeFrom(value).buildPartial(); } else { identityList_ = value; } @@ -10870,12 +9269,9 @@ public Builder mergeIdentityList( return this; } /** - * - * *
    -     * The identity list derived from members of the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match identity selector specified in the request.
    +     * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match identity selector specified in the request.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; @@ -10892,83 +9288,64 @@ public Builder clearIdentityList() { return this; } /** - * - * *
    -     * The identity list derived from members of the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match identity selector specified in the request.
    +     * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match identity selector specified in the request.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder - getIdentityListBuilder() { - + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder getIdentityListBuilder() { + onChanged(); return getIdentityListFieldBuilder().getBuilder(); } /** - * - * *
    -     * The identity list derived from members of the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match identity selector specified in the request.
    +     * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match identity selector specified in the request.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder - getIdentityListOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder getIdentityListOrBuilder() { if (identityListBuilder_ != null) { return identityListBuilder_.getMessageOrBuilder(); } else { - return identityList_ == null - ? com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.getDefaultInstance() - : identityList_; + return identityList_ == null ? + com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.getDefaultInstance() : identityList_; } } /** - * - * *
    -     * The identity list derived from members of the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * that match or potentially match identity selector specified in the request.
    +     * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +     * potentially match identity selector specified in the request.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList, com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder> getIdentityListFieldBuilder() { if (identityListBuilder_ == null) { - identityListBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder>( - getIdentityList(), getParentForChildren(), isClean()); + identityListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList, com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder>( + getIdentityList(), + getParentForChildren(), + isClean()); identityList_ = null; } return identityListBuilder_; } - private boolean fullyExplored_; + private boolean fullyExplored_ ; /** - * - * *
    -     * Represents whether all analyses on the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * have successfully finished.
    +     * Represents whether all analyses on the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] have successfully
    +     * finished.
          * 
    * * bool fully_explored = 5; - * * @return The fullyExplored. */ @java.lang.Override @@ -10976,47 +9353,39 @@ public boolean getFullyExplored() { return fullyExplored_; } /** - * - * *
    -     * Represents whether all analyses on the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * have successfully finished.
    +     * Represents whether all analyses on the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] have successfully
    +     * finished.
          * 
    * * bool fully_explored = 5; - * * @param value The fullyExplored to set. * @return This builder for chaining. */ public Builder setFullyExplored(boolean value) { - + fullyExplored_ = value; onChanged(); return this; } /** - * - * *
    -     * Represents whether all analyses on the
    -     * [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -     * have successfully finished.
    +     * Represents whether all analyses on the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] have successfully
    +     * finished.
          * 
    * * bool fully_explored = 5; - * * @return This builder for chaining. */ public Builder clearFullyExplored() { - + fullyExplored_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -11026,12 +9395,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisResult) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisResult) private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisResult(); } @@ -11040,16 +9409,27 @@ public static com.google.cloud.asset.v1.IamPolicyAnalysisResult getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IamPolicyAnalysisResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IamPolicyAnalysisResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IamPolicyAnalysisResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -11064,4 +9444,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.IamPolicyAnalysisResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResultOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResultOrBuilder.java new file mode 100644 index 000000000000..05436cafc437 --- /dev/null +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResultOrBuilder.java @@ -0,0 +1,150 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/assets.proto + +package com.google.cloud.asset.v1; + +public interface IamPolicyAnalysisResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisResult) + com.google.protobuf.MessageOrBuilder { + + /** + *
    +   * The [full resource
    +   * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    +   * of the resource to which the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] policy attaches.
    +   * 
    + * + * string attached_resource_full_name = 1; + * @return The attachedResourceFullName. + */ + java.lang.String getAttachedResourceFullName(); + /** + *
    +   * The [full resource
    +   * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    +   * of the resource to which the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] policy attaches.
    +   * 
    + * + * string attached_resource_full_name = 1; + * @return The bytes for attachedResourceFullName. + */ + com.google.protobuf.ByteString + getAttachedResourceFullNameBytes(); + + /** + *
    +   * The Cloud IAM policy binding under analysis.
    +   * 
    + * + * .google.iam.v1.Binding iam_binding = 2; + * @return Whether the iamBinding field is set. + */ + boolean hasIamBinding(); + /** + *
    +   * The Cloud IAM policy binding under analysis.
    +   * 
    + * + * .google.iam.v1.Binding iam_binding = 2; + * @return The iamBinding. + */ + com.google.iam.v1.Binding getIamBinding(); + /** + *
    +   * The Cloud IAM policy binding under analysis.
    +   * 
    + * + * .google.iam.v1.Binding iam_binding = 2; + */ + com.google.iam.v1.BindingOrBuilder getIamBindingOrBuilder(); + + /** + *
    +   * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match resource and access selectors specified in the request.
    +   * 
    + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + */ + java.util.List + getAccessControlListsList(); + /** + *
    +   * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match resource and access selectors specified in the request.
    +   * 
    + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + */ + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getAccessControlLists(int index); + /** + *
    +   * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match resource and access selectors specified in the request.
    +   * 
    + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + */ + int getAccessControlListsCount(); + /** + *
    +   * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match resource and access selectors specified in the request.
    +   * 
    + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + */ + java.util.List + getAccessControlListsOrBuilderList(); + /** + *
    +   * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match resource and access selectors specified in the request.
    +   * 
    + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + */ + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder getAccessControlListsOrBuilder( + int index); + + /** + *
    +   * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match identity selector specified in the request.
    +   * 
    + * + * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; + * @return Whether the identityList field is set. + */ + boolean hasIdentityList(); + /** + *
    +   * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match identity selector specified in the request.
    +   * 
    + * + * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; + * @return The identityList. + */ + com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList getIdentityList(); + /** + *
    +   * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +   * potentially match identity selector specified in the request.
    +   * 
    + * + * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; + */ + com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder getIdentityListOrBuilder(); + + /** + *
    +   * Represents whether all analyses on the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] have successfully
    +   * finished.
    +   * 
    + * + * bool fully_explored = 5; + * @return The fullyExplored. + */ + boolean getFullyExplored(); +} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisState.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisState.java similarity index 66% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisState.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisState.java index d76ed9749994..f35933776f5d 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisState.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisState.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** - * - * *
      * Represents the detailed state of an entity under analysis, such as a
      * resource, an identity or an access.
    @@ -28,16 +11,15 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisState}
      */
    -public final class IamPolicyAnalysisState extends com.google.protobuf.GeneratedMessageV3
    -    implements
    +public final class IamPolicyAnalysisState extends
    +    com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisState)
         IamPolicyAnalysisStateOrBuilder {
    -  private static final long serialVersionUID = 0L;
    +private static final long serialVersionUID = 0L;
       // Use IamPolicyAnalysisState.newBuilder() to construct.
       private IamPolicyAnalysisState(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -
       private IamPolicyAnalysisState() {
         code_ = 0;
         cause_ = "";
    @@ -45,88 +27,32 @@ private IamPolicyAnalysisState() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(
    +      UnusedPrivateParameter unused) {
         return new IamPolicyAnalysisState();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet
    +  getUnknownFields() {
         return this.unknownFields;
       }
    -
    -  private IamPolicyAnalysisState(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 8:
    -            {
    -              int rawValue = input.readEnum();
    -
    -              code_ = rawValue;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              cause_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
    -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetProto
    -        .internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor;
    +  public static final com.google.protobuf.Descriptors.Descriptor
    +      getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetProto
    -        .internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1.IamPolicyAnalysisState.class,
    -            com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder.class);
    +            com.google.cloud.asset.v1.IamPolicyAnalysisState.class, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder.class);
       }
     
       public static final int CODE_FIELD_NUMBER = 1;
       private int code_;
       /**
    -   *
    -   *
        * 
        * The Google standard error code that best describes the state.
        * For example:
    @@ -137,16 +63,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
    * * .google.rpc.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
        * The Google standard error code that best describes the state.
        * For example:
    @@ -157,11 +79,9 @@ public int getCodeValue() {
        * 
    * * .google.rpc.Code code = 1; - * * @return The code. */ - @java.lang.Override - public com.google.rpc.Code getCode() { + @java.lang.Override public com.google.rpc.Code getCode() { @SuppressWarnings("deprecation") com.google.rpc.Code result = com.google.rpc.Code.valueOf(code_); return result == null ? com.google.rpc.Code.UNRECOGNIZED : result; @@ -170,14 +90,11 @@ public com.google.rpc.Code getCode() { public static final int CAUSE_FIELD_NUMBER = 2; private volatile java.lang.Object cause_; /** - * - * *
        * The human-readable description of the cause of failure.
        * 
    * * string cause = 2; - * * @return The cause. */ @java.lang.Override @@ -186,29 +103,29 @@ public java.lang.String getCause() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cause_ = s; return s; } } /** - * - * *
        * The human-readable description of the cause of failure.
        * 
    * * string cause = 2; - * * @return The bytes for cause. */ @java.lang.Override - public com.google.protobuf.ByteString getCauseBytes() { + public com.google.protobuf.ByteString + getCauseBytes() { java.lang.Object ref = cause_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cause_ = b; return b; } else { @@ -217,7 +134,6 @@ public com.google.protobuf.ByteString getCauseBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,14 +145,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (code_ != com.google.rpc.Code.OK.getNumber()) { output.writeEnum(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cause_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cause_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -246,12 +163,13 @@ public int getSerializedSize() { size = 0; if (code_ != com.google.rpc.Code.OK.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cause_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cause_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -259,17 +177,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisState)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisState other = - (com.google.cloud.asset.v1.IamPolicyAnalysisState) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisState other = (com.google.cloud.asset.v1.IamPolicyAnalysisState) obj; if (code_ != other.code_) return false; - if (!getCause().equals(other.getCause())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getCause() + .equals(other.getCause())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -284,109 +202,102 @@ public int hashCode() { hash = (53 * hash) + code_; hash = (37 * hash) + CAUSE_FIELD_NUMBER; hash = (53 * hash) + getCause().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisState 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.asset.v1.IamPolicyAnalysisState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Represents the detailed state of an entity under analysis, such as a
        * resource, an identity or an access.
    @@ -394,39 +305,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisState}
        */
    -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    -      implements
    +  public static final class Builder extends
    +      com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisState)
           com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor
    +        getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.IamPolicyAnalysisState.class,
    -              com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder.class);
    +              com.google.cloud.asset.v1.IamPolicyAnalysisState.class, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisState.newBuilder()
         private Builder() {
    -      maybeForceBuilderInitialization();
    +
         }
     
    -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    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();
    @@ -438,9 +343,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor
    +        getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor;
         }
     
         @java.lang.Override
    @@ -459,8 +364,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisState build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1.IamPolicyAnalysisState buildPartial() {
    -      com.google.cloud.asset.v1.IamPolicyAnalysisState result =
    -          new com.google.cloud.asset.v1.IamPolicyAnalysisState(this);
    +      com.google.cloud.asset.v1.IamPolicyAnalysisState result = new com.google.cloud.asset.v1.IamPolicyAnalysisState(this);
           result.code_ = code_;
           result.cause_ = cause_;
           onBuilt();
    @@ -471,39 +375,38 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisState buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    -
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.IamPolicyAnalysisState) {
    -        return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisState) other);
    +        return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisState)other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -511,8 +414,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
         }
     
         public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisState other) {
    -      if (other == com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance())
    -        return this;
    +      if (other == com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()) return this;
           if (other.code_ != 0) {
             setCodeValue(other.getCodeValue());
           }
    @@ -520,7 +422,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisState other)
             cause_ = other.cause_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -535,24 +437,45 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.IamPolicyAnalysisState parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 8: {
    +              code_ = input.readEnum();
    +
    +              break;
    +            } // case 8
    +            case 18: {
    +              cause_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 18
    +            default: {
    +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                done = true; // was an endgroup tag
    +              }
    +              break;
    +            } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1.IamPolicyAnalysisState) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
         private int code_ = 0;
         /**
    -     *
    -     *
          * 
          * The Google standard error code that best describes the state.
          * For example:
    @@ -563,16 +486,12 @@ public Builder mergeFrom(
          * 
    * * .google.rpc.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
          * The Google standard error code that best describes the state.
          * For example:
    @@ -583,19 +502,16 @@ public int getCodeValue() {
          * 
    * * .google.rpc.Code code = 1; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** - * - * *
          * The Google standard error code that best describes the state.
          * For example:
    @@ -606,7 +522,6 @@ public Builder setCodeValue(int value) {
          * 
    * * .google.rpc.Code code = 1; - * * @return The code. */ @java.lang.Override @@ -616,8 +531,6 @@ public com.google.rpc.Code getCode() { return result == null ? com.google.rpc.Code.UNRECOGNIZED : result; } /** - * - * *
          * The Google standard error code that best describes the state.
          * For example:
    @@ -628,7 +541,6 @@ public com.google.rpc.Code getCode() {
          * 
    * * .google.rpc.Code code = 1; - * * @param value The code to set. * @return This builder for chaining. */ @@ -636,14 +548,12 @@ public Builder setCode(com.google.rpc.Code value) { if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** - * - * *
          * The Google standard error code that best describes the state.
          * For example:
    @@ -654,11 +564,10 @@ public Builder setCode(com.google.rpc.Code value) {
          * 
    * * .google.rpc.Code code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -666,20 +575,18 @@ public Builder clearCode() { private java.lang.Object cause_ = ""; /** - * - * *
          * The human-readable description of the cause of failure.
          * 
    * * string cause = 2; - * * @return The cause. */ public java.lang.String getCause() { java.lang.Object ref = cause_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cause_ = s; return s; @@ -688,21 +595,20 @@ public java.lang.String getCause() { } } /** - * - * *
          * The human-readable description of the cause of failure.
          * 
    * * string cause = 2; - * * @return The bytes for cause. */ - public com.google.protobuf.ByteString getCauseBytes() { + public com.google.protobuf.ByteString + getCauseBytes() { java.lang.Object ref = cause_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cause_ = b; return b; } else { @@ -710,68 +616,61 @@ public com.google.protobuf.ByteString getCauseBytes() { } } /** - * - * *
          * The human-readable description of the cause of failure.
          * 
    * * string cause = 2; - * * @param value The cause to set. * @return This builder for chaining. */ - public Builder setCause(java.lang.String value) { + public Builder setCause( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cause_ = value; onChanged(); return this; } /** - * - * *
          * The human-readable description of the cause of failure.
          * 
    * * string cause = 2; - * * @return This builder for chaining. */ public Builder clearCause() { - + cause_ = getDefaultInstance().getCause(); onChanged(); return this; } /** - * - * *
          * The human-readable description of the cause of failure.
          * 
    * * string cause = 2; - * * @param value The bytes for cause to set. * @return This builder for chaining. */ - public Builder setCauseBytes(com.google.protobuf.ByteString value) { + public Builder setCauseBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cause_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -781,12 +680,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisState) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisState) private static final com.google.cloud.asset.v1.IamPolicyAnalysisState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisState(); } @@ -795,16 +694,27 @@ public static com.google.cloud.asset.v1.IamPolicyAnalysisState getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IamPolicyAnalysisState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IamPolicyAnalysisState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IamPolicyAnalysisState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -819,4 +729,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.IamPolicyAnalysisState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisStateOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisStateOrBuilder.java similarity index 67% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisStateOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisStateOrBuilder.java index be06b9be5648..6208f59f108b 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisStateOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisStateOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; -public interface IamPolicyAnalysisStateOrBuilder - extends +public interface IamPolicyAnalysisStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisState) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The Google standard error code that best describes the state.
        * For example:
    @@ -36,13 +18,10 @@ public interface IamPolicyAnalysisStateOrBuilder
        * 
    * * .google.rpc.Code code = 1; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
        * The Google standard error code that best describes the state.
        * For example:
    @@ -53,33 +32,27 @@ public interface IamPolicyAnalysisStateOrBuilder
        * 
    * * .google.rpc.Code code = 1; - * * @return The code. */ com.google.rpc.Code getCode(); /** - * - * *
        * The human-readable description of the cause of failure.
        * 
    * * string cause = 2; - * * @return The cause. */ java.lang.String getCause(); /** - * - * *
        * The human-readable description of the cause of failure.
        * 
    * * string cause = 2; - * * @return The bytes for cause. */ - com.google.protobuf.ByteString getCauseBytes(); + com.google.protobuf.ByteString + getCauseBytes(); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java similarity index 70% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java index 00683a862262..eccf11b3db30 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** - * - * *
      * A result of IAM Policy search, containing information of an IAM policy.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicySearchResult} */ -public final class IamPolicySearchResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class IamPolicySearchResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicySearchResult) IamPolicySearchResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use IamPolicySearchResult.newBuilder() to construct. private IamPolicySearchResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IamPolicySearchResult() { resource_ = ""; assetType_ = ""; @@ -47,150 +29,34 @@ private IamPolicySearchResult() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IamPolicySearchResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private IamPolicySearchResult( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - resource_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 26: - { - com.google.iam.v1.Policy.Builder subBuilder = null; - if (policy_ != null) { - subBuilder = policy_.toBuilder(); - } - policy_ = input.readMessage(com.google.iam.v1.Policy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(policy_); - policy_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder subBuilder = null; - if (explanation_ != null) { - subBuilder = explanation_.toBuilder(); - } - explanation_ = - input.readMessage( - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(explanation_); - explanation_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - assetType_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - folders_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - folders_.add(s); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - organization_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - folders_ = folders_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicySearchResult_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicySearchResult.class, - com.google.cloud.asset.v1.IamPolicySearchResult.Builder.class); + com.google.cloud.asset.v1.IamPolicySearchResult.class, com.google.cloud.asset.v1.IamPolicySearchResult.Builder.class); } - public interface ExplanationOrBuilder - extends + public interface ExplanationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicySearchResult.Explanation) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * The map from roles to their included permissions that match the
          * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -201,14 +67,10 @@ public interface ExplanationOrBuilder
          * map is populated only for requests with permission queries.
          * 
    * - * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; */ int getMatchedPermissionsCount(); /** - * - * *
          * The map from roles to their included permissions that match the
          * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -219,20 +81,17 @@ public interface ExplanationOrBuilder
          * map is populated only for requests with permission queries.
          * 
    * - * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; + */ + boolean containsMatchedPermissions( + java.lang.String key); + /** + * Use {@link #getMatchedPermissionsMap()} instead. */ - boolean containsMatchedPermissions(java.lang.String key); - /** Use {@link #getMatchedPermissionsMap()} instead. */ @java.lang.Deprecated - java.util.Map< - java.lang.String, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> - getMatchedPermissions(); + java.util.Map + getMatchedPermissions(); /** - * - * *
          * The map from roles to their included permissions that match the
          * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -243,17 +102,11 @@ public interface ExplanationOrBuilder
          * map is populated only for requests with permission queries.
          * 
    * - * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; */ - java.util.Map< - java.lang.String, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> - getMatchedPermissionsMap(); + java.util.Map + getMatchedPermissionsMap(); /** - * - * *
          * The map from roles to their included permissions that match the
          * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -264,20 +117,15 @@ public interface ExplanationOrBuilder
          * map is populated only for requests with permission queries.
          * 
    * - * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; */ /* nullable */ - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions - getMatchedPermissionsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions defaultValue); +com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions getMatchedPermissionsOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions defaultValue); /** - * - * *
          * The map from roles to their included permissions that match the
          * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -288,330 +136,189 @@ public interface ExplanationOrBuilder
          * map is populated only for requests with permission queries.
          * 
    * - * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; */ - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions - getMatchedPermissionsOrThrow(java.lang.String key); + + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions getMatchedPermissionsOrThrow( + java.lang.String key); } /** - * - * *
        * Explanation about the IAM policy search result.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicySearchResult.Explanation} */ - public static final class Explanation extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Explanation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicySearchResult.Explanation) ExplanationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Explanation.newBuilder() to construct. private Explanation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Explanation() {} + private Explanation() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Explanation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private Explanation( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - matchedPermissions_ = - com.google.protobuf.MapField.newMapField( - MatchedPermissionsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry< - java.lang.String, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> - matchedPermissions__ = - input.readMessage( - MatchedPermissionsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - matchedPermissions_ - .getMutableMap() - .put(matchedPermissions__.getKey(), matchedPermissions__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetMatchedPermissions(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.class, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder.class); + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.class, com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder.class); } - public interface PermissionsOrBuilder - extends + public interface PermissionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions) com.google.protobuf.MessageOrBuilder { /** - * - * *
            * A list of permissions. A sample permission string: `compute.disk.get`.
            * 
    * * repeated string permissions = 1; - * * @return A list containing the permissions. */ - java.util.List getPermissionsList(); + java.util.List + getPermissionsList(); /** - * - * *
            * A list of permissions. A sample permission string: `compute.disk.get`.
            * 
    * * repeated string permissions = 1; - * * @return The count of permissions. */ int getPermissionsCount(); /** - * - * *
            * A list of permissions. A sample permission string: `compute.disk.get`.
            * 
    * * repeated string permissions = 1; - * * @param index The index of the element to return. * @return The permissions at the given index. */ java.lang.String getPermissions(int index); /** - * - * *
            * A list of permissions. A sample permission string: `compute.disk.get`.
            * 
    * * repeated string permissions = 1; - * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - com.google.protobuf.ByteString getPermissionsBytes(int index); + com.google.protobuf.ByteString + getPermissionsBytes(int index); } /** - * - * *
          * IAM permissions
          * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions} */ - public static final class Permissions extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Permissions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions) PermissionsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Permissions.newBuilder() to construct. private Permissions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Permissions() { permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Permissions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private Permissions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - permissions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - permissions_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - permissions_ = permissions_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.class, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.Builder - .class); + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.class, com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.Builder.class); } public static final int PERMISSIONS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList permissions_; /** - * - * *
            * A list of permissions. A sample permission string: `compute.disk.get`.
            * 
    * * repeated string permissions = 1; - * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList getPermissionsList() { + public com.google.protobuf.ProtocolStringList + getPermissionsList() { return permissions_; } /** - * - * *
            * A list of permissions. A sample permission string: `compute.disk.get`.
            * 
    * * repeated string permissions = 1; - * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** - * - * *
            * A list of permissions. A sample permission string: `compute.disk.get`.
            * 
    * * repeated string permissions = 1; - * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -619,23 +326,20 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** - * - * *
            * A list of permissions. A sample permission string: `compute.disk.get`.
            * 
    * * repeated string permissions = 1; - * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString getPermissionsBytes(int index) { + public com.google.protobuf.ByteString + getPermissionsBytes(int index) { return permissions_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -647,11 +351,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < permissions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, permissions_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -668,7 +373,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getPermissionsList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -676,17 +381,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions)) { + if (!(obj instanceof com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions other = - (com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions) obj; + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions other = (com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions) obj; - if (!getPermissionsList().equals(other.getPermissionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getPermissionsList() + .equals(other.getPermissionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -701,108 +405,93 @@ public int hashCode() { hash = (37 * hash) + PERMISSIONS_FIELD_NUMBER; hash = (53 * hash) + getPermissionsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions 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.asset.v1.IamPolicySearchResult.Explanation.Permissions - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions 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.asset.v1.IamPolicySearchResult.Explanation.Permissions - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions - 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.asset.v1.IamPolicySearchResult.Explanation.Permissions 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.asset.v1.IamPolicySearchResult.Explanation.Permissions - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions - 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.asset.v1.IamPolicySearchResult.Explanation.Permissions 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.asset.v1.IamPolicySearchResult.Explanation.Permissions - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions 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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -812,50 +501,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
            * IAM permissions
            * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions) com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.PermissionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.class, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.Builder - .class); + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.class, com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.Builder.class); } - // Construct using - // com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.newBuilder() + // Construct using com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -865,22 +543,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions - getDefaultInstanceForType() { - return com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions - .getDefaultInstance(); + public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions getDefaultInstanceForType() { + return com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.getDefaultInstance(); } @java.lang.Override public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions build() { - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions result = - buildPartial(); + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -888,10 +563,8 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions b } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions - buildPartial() { - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions result = - new com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions(this); + public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions buildPartial() { + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions result = new com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { permissions_ = permissions_.getUnmodifiableView(); @@ -906,54 +579,46 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions b public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicySearchResult.Explanation.Permissions) { - return mergeFrom( - (com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions) other); + if (other instanceof com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions) { + return mergeFrom((com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions other) { - if (other - == com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions other) { + if (other == com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.getDefaultInstance()) return this; if (!other.permissions_.isEmpty()) { if (permissions_.isEmpty()) { permissions_ = other.permissions_; @@ -964,7 +629,7 @@ public Builder mergeFrom( } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -979,71 +644,76 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions parsedMessage = - null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePermissionsIsMutable(); + permissions_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList permissions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePermissionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
              * A list of permissions. A sample permission string: `compute.disk.get`.
              * 
    * * repeated string permissions = 1; - * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList getPermissionsList() { + public com.google.protobuf.ProtocolStringList + getPermissionsList() { return permissions_.getUnmodifiableView(); } /** - * - * *
              * A list of permissions. A sample permission string: `compute.disk.get`.
              * 
    * * repeated string permissions = 1; - * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** - * - * *
              * A list of permissions. A sample permission string: `compute.disk.get`.
              * 
    * * repeated string permissions = 1; - * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -1051,90 +721,80 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** - * - * *
              * A list of permissions. A sample permission string: `compute.disk.get`.
              * 
    * * repeated string permissions = 1; - * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString getPermissionsBytes(int index) { + public com.google.protobuf.ByteString + getPermissionsBytes(int index) { return permissions_.getByteString(index); } /** - * - * *
              * A list of permissions. A sample permission string: `compute.disk.get`.
              * 
    * * repeated string permissions = 1; - * * @param index The index to set the value at. * @param value The permissions to set. * @return This builder for chaining. */ - public Builder setPermissions(int index, java.lang.String value) { + public Builder setPermissions( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); return this; } /** - * - * *
              * A list of permissions. A sample permission string: `compute.disk.get`.
              * 
    * * repeated string permissions = 1; - * * @param value The permissions to add. * @return This builder for chaining. */ - public Builder addPermissions(java.lang.String value) { + public Builder addPermissions( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } /** - * - * *
              * A list of permissions. A sample permission string: `compute.disk.get`.
              * 
    * * repeated string permissions = 1; - * * @param values The permissions to add. * @return This builder for chaining. */ - public Builder addAllPermissions(java.lang.Iterable values) { + public Builder addAllPermissions( + java.lang.Iterable values) { ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, permissions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, permissions_); onChanged(); return this; } /** - * - * *
              * A list of permissions. A sample permission string: `compute.disk.get`.
              * 
    * * repeated string permissions = 1; - * * @return This builder for chaining. */ public Builder clearPermissions() { @@ -1144,28 +804,25 @@ public Builder clearPermissions() { return this; } /** - * - * *
              * A list of permissions. A sample permission string: `compute.disk.get`.
              * 
    * * repeated string permissions = 1; - * * @param value The bytes of the permissions to add. * @return This builder for chaining. */ - public Builder addPermissionsBytes(com.google.protobuf.ByteString value) { + public Builder addPermissionsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1178,33 +835,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions) - private static final com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions - DEFAULT_INSTANCE; - + private static final com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions(); + DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions(); } - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions - getDefaultInstance() { + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Permissions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Permissions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Permissions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1216,41 +881,28 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions - getDefaultInstanceForType() { + public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int MATCHED_PERMISSIONS_FIELD_NUMBER = 1; - private static final class MatchedPermissionsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> - defaultEntry = + java.lang.String, com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions - .getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.getDefaultInstance()); } - private com.google.protobuf.MapField< - java.lang.String, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> - matchedPermissions_; - - private com.google.protobuf.MapField< - java.lang.String, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> - internalGetMatchedPermissions() { + java.lang.String, com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matchedPermissions_; + private com.google.protobuf.MapField + internalGetMatchedPermissions() { if (matchedPermissions_ == null) { return com.google.protobuf.MapField.emptyMapField( MatchedPermissionsDefaultEntryHolder.defaultEntry); @@ -1262,8 +914,6 @@ public int getMatchedPermissionsCount() { return internalGetMatchedPermissions().getMap().size(); } /** - * - * *
          * The map from roles to their included permissions that match the
          * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -1274,29 +924,24 @@ public int getMatchedPermissionsCount() {
          * map is populated only for requests with permission queries.
          * 
    * - * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; */ + @java.lang.Override - public boolean containsMatchedPermissions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsMatchedPermissions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetMatchedPermissions().getMap().containsKey(key); } - /** Use {@link #getMatchedPermissionsMap()} instead. */ + /** + * Use {@link #getMatchedPermissionsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> - getMatchedPermissions() { + public java.util.Map getMatchedPermissions() { return getMatchedPermissionsMap(); } /** - * - * *
          * The map from roles to their included permissions that match the
          * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -1307,20 +952,14 @@ public boolean containsMatchedPermissions(java.lang.String key) {
          * map is populated only for requests with permission queries.
          * 
    * - * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; */ @java.lang.Override - public java.util.Map< - java.lang.String, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> - getMatchedPermissionsMap() { + + public java.util.Map getMatchedPermissionsMap() { return internalGetMatchedPermissions().getMap(); } /** - * - * *
          * The map from roles to their included permissions that match the
          * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -1331,27 +970,19 @@ public boolean containsMatchedPermissions(java.lang.String key) {
          * map is populated only for requests with permission queries.
          * 
    * - * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions - getMatchedPermissionsOrDefault( - java.lang.String key, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> - map = internalGetMatchedPermissions().getMap(); + + public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions getMatchedPermissionsOrDefault( + java.lang.String key, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMatchedPermissions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
          * The map from roles to their included permissions that match the
          * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -1362,20 +993,15 @@ public boolean containsMatchedPermissions(java.lang.String key) {
          * map is populated only for requests with permission queries.
          * 
    * - * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions - getMatchedPermissionsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> - map = internalGetMatchedPermissions().getMap(); + + public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions getMatchedPermissionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMatchedPermissions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1383,7 +1009,6 @@ public boolean containsMatchedPermissions(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1395,13 +1020,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetMatchedPermissions(), MatchedPermissionsDefaultEntryHolder.defaultEntry, 1); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1410,22 +1037,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry< - java.lang.String, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> - entry : internalGetMatchedPermissions().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> - matchedPermissions__ = - MatchedPermissionsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, matchedPermissions__); - } - size += unknownFields.getSerializedSize(); + for (java.util.Map.Entry entry + : internalGetMatchedPermissions().getMap().entrySet()) { + com.google.protobuf.MapEntry + matchedPermissions__ = MatchedPermissionsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, matchedPermissions__); + } + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1433,17 +1055,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicySearchResult.Explanation)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation other = - (com.google.cloud.asset.v1.IamPolicySearchResult.Explanation) obj; + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation other = (com.google.cloud.asset.v1.IamPolicySearchResult.Explanation) obj; - if (!internalGetMatchedPermissions().equals(other.internalGetMatchedPermissions())) - return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!internalGetMatchedPermissions().equals( + other.internalGetMatchedPermissions())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1458,100 +1079,93 @@ public int hashCode() { hash = (37 * hash) + MATCHED_PERMISSIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetMatchedPermissions().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation 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.asset.v1.IamPolicySearchResult.Explanation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicySearchResult.Explanation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1561,68 +1175,61 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * Explanation about the IAM policy search result.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicySearchResult.Explanation} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicySearchResult.Explanation) com.google.cloud.asset.v1.IamPolicySearchResult.ExplanationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetMatchedPermissions(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 1: return internalGetMutableMatchedPermissions(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.class, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder.class); + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.class, com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder.class); } // Construct using com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -1631,14 +1238,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation - getDefaultInstanceForType() { + public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation getDefaultInstanceForType() { return com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.getDefaultInstance(); } @@ -1653,8 +1259,7 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation build() { @java.lang.Override public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation buildPartial() { - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation result = - new com.google.cloud.asset.v1.IamPolicySearchResult.Explanation(this); + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation result = new com.google.cloud.asset.v1.IamPolicySearchResult.Explanation(this); int from_bitField0_ = bitField0_; result.matchedPermissions_ = internalGetMatchedPermissions(); result.matchedPermissions_.makeImmutable(); @@ -1666,41 +1271,38 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicySearchResult.Explanation) { - return mergeFrom((com.google.cloud.asset.v1.IamPolicySearchResult.Explanation) other); + return mergeFrom((com.google.cloud.asset.v1.IamPolicySearchResult.Explanation)other); } else { super.mergeFrom(other); return this; @@ -1708,11 +1310,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicySearchResult.Explanation other) { - if (other - == com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.getDefaultInstance()) - return this; - internalGetMutableMatchedPermissions().mergeFrom(other.internalGetMatchedPermissions()); - this.mergeUnknownFields(other.unknownFields); + if (other == com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.getDefaultInstance()) return this; + internalGetMutableMatchedPermissions().mergeFrom( + other.internalGetMatchedPermissions()); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1727,50 +1328,58 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.MapEntry + matchedPermissions__ = input.readMessage( + MatchedPermissionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableMatchedPermissions().getMutableMap().put( + matchedPermissions__.getKey(), matchedPermissions__.getValue()); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.IamPolicySearchResult.Explanation) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private com.google.protobuf.MapField< - java.lang.String, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> - matchedPermissions_; - - private com.google.protobuf.MapField< - java.lang.String, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> - internalGetMatchedPermissions() { + java.lang.String, com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matchedPermissions_; + private com.google.protobuf.MapField + internalGetMatchedPermissions() { if (matchedPermissions_ == null) { return com.google.protobuf.MapField.emptyMapField( MatchedPermissionsDefaultEntryHolder.defaultEntry); } return matchedPermissions_; } - - private com.google.protobuf.MapField< - java.lang.String, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> - internalGetMutableMatchedPermissions() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableMatchedPermissions() { + onChanged();; if (matchedPermissions_ == null) { - matchedPermissions_ = - com.google.protobuf.MapField.newMapField( - MatchedPermissionsDefaultEntryHolder.defaultEntry); + matchedPermissions_ = com.google.protobuf.MapField.newMapField( + MatchedPermissionsDefaultEntryHolder.defaultEntry); } if (!matchedPermissions_.isMutable()) { matchedPermissions_ = matchedPermissions_.copy(); @@ -1782,8 +1391,6 @@ public int getMatchedPermissionsCount() { return internalGetMatchedPermissions().getMap().size(); } /** - * - * *
            * The map from roles to their included permissions that match the
            * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -1794,29 +1401,24 @@ public int getMatchedPermissionsCount() {
            * map is populated only for requests with permission queries.
            * 
    * - * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; */ + @java.lang.Override - public boolean containsMatchedPermissions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsMatchedPermissions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetMatchedPermissions().getMap().containsKey(key); } - /** Use {@link #getMatchedPermissionsMap()} instead. */ + /** + * Use {@link #getMatchedPermissionsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> - getMatchedPermissions() { + public java.util.Map getMatchedPermissions() { return getMatchedPermissionsMap(); } /** - * - * *
            * The map from roles to their included permissions that match the
            * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -1827,20 +1429,14 @@ public boolean containsMatchedPermissions(java.lang.String key) {
            * map is populated only for requests with permission queries.
            * 
    * - * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; */ @java.lang.Override - public java.util.Map< - java.lang.String, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> - getMatchedPermissionsMap() { + + public java.util.Map getMatchedPermissionsMap() { return internalGetMatchedPermissions().getMap(); } /** - * - * *
            * The map from roles to their included permissions that match the
            * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -1851,28 +1447,19 @@ public boolean containsMatchedPermissions(java.lang.String key) {
            * map is populated only for requests with permission queries.
            * 
    * - * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions - getMatchedPermissionsOrDefault( - java.lang.String key, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions - defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> - map = internalGetMatchedPermissions().getMap(); + + public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions getMatchedPermissionsOrDefault( + java.lang.String key, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMatchedPermissions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
            * The map from roles to their included permissions that match the
            * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -1883,20 +1470,15 @@ public boolean containsMatchedPermissions(java.lang.String key) {
            * map is populated only for requests with permission queries.
            * 
    * - * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions - getMatchedPermissionsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> - map = internalGetMatchedPermissions().getMap(); + + public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions getMatchedPermissionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMatchedPermissions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1904,12 +1486,11 @@ public boolean containsMatchedPermissions(java.lang.String key) { } public Builder clearMatchedPermissions() { - internalGetMutableMatchedPermissions().getMutableMap().clear(); + internalGetMutableMatchedPermissions().getMutableMap() + .clear(); return this; } /** - * - * *
            * The map from roles to their included permissions that match the
            * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -1920,28 +1501,25 @@ public Builder clearMatchedPermissions() {
            * map is populated only for requests with permission queries.
            * 
    * - * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; */ - public Builder removeMatchedPermissions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableMatchedPermissions().getMutableMap().remove(key); + + public Builder removeMatchedPermissions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableMatchedPermissions().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> - getMutableMatchedPermissions() { + public java.util.Map + getMutableMatchedPermissions() { return internalGetMutableMatchedPermissions().getMutableMap(); } /** - * - * *
            * The map from roles to their included permissions that match the
            * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -1952,26 +1530,21 @@ public Builder removeMatchedPermissions(java.lang.String key) {
            * map is populated only for requests with permission queries.
            * 
    * - * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; */ public Builder putMatchedPermissions( java.lang.String key, com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions value) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableMatchedPermissions().getMutableMap().put(key, value); + internalGetMutableMatchedPermissions().getMutableMap() + .put(key, value); return this; } /** - * - * *
            * The map from roles to their included permissions that match the
            * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -1982,19 +1555,15 @@ public Builder putMatchedPermissions(
            * map is populated only for requests with permission queries.
            * 
    * - * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; */ + public Builder putAllMatchedPermissions( - java.util.Map< - java.lang.String, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> - values) { - internalGetMutableMatchedPermissions().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableMatchedPermissions().getMutableMap() + .putAll(values); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2007,13 +1576,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicySearchResult.Explanation) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicySearchResult.Explanation) - private static final com.google.cloud.asset.v1.IamPolicySearchResult.Explanation - DEFAULT_INSTANCE; - + private static final com.google.cloud.asset.v1.IamPolicySearchResult.Explanation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicySearchResult.Explanation(); } @@ -2022,16 +1590,27 @@ public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Explanation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Explanation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Explanation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2046,13 +1625,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int RESOURCE_FIELD_NUMBER = 1; private volatile java.lang.Object resource_; /** - * - * *
        * The full resource name of the resource associated with this IAM policy.
        * Example:
    @@ -2065,7 +1643,6 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation getDefaultIns
        * 
    * * string resource = 1; - * * @return The resource. */ @java.lang.Override @@ -2074,15 +1651,14 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** - * - * *
        * The full resource name of the resource associated with this IAM policy.
        * Example:
    @@ -2095,15 +1671,16 @@ public java.lang.String getResource() {
        * 
    * * string resource = 1; - * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -2114,8 +1691,6 @@ public com.google.protobuf.ByteString getResourceBytes() { public static final int ASSET_TYPE_FIELD_NUMBER = 5; private volatile java.lang.Object assetType_; /** - * - * *
        * The type of the resource associated with this IAM policy. Example:
        * `compute.googleapis.com/Disk`.
    @@ -2124,7 +1699,6 @@ public com.google.protobuf.ByteString getResourceBytes() {
        * 
    * * string asset_type = 5; - * * @return The assetType. */ @java.lang.Override @@ -2133,15 +1707,14 @@ public java.lang.String getAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; } } /** - * - * *
        * The type of the resource associated with this IAM policy. Example:
        * `compute.googleapis.com/Disk`.
    @@ -2150,15 +1723,16 @@ public java.lang.String getAssetType() {
        * 
    * * string asset_type = 5; - * * @return The bytes for assetType. */ @java.lang.Override - public com.google.protobuf.ByteString getAssetTypeBytes() { + public com.google.protobuf.ByteString + getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetType_ = b; return b; } else { @@ -2169,8 +1743,6 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { public static final int PROJECT_FIELD_NUMBER = 2; private volatile java.lang.Object project_; /** - * - * *
        * The project that the associated GCP resource belongs to, in the form of
        * projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource (like VM
    @@ -2182,7 +1754,6 @@ public com.google.protobuf.ByteString getAssetTypeBytes() {
        * 
    * * string project = 2; - * * @return The project. */ @java.lang.Override @@ -2191,15 +1762,14 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** - * - * *
        * The project that the associated GCP resource belongs to, in the form of
        * projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource (like VM
    @@ -2211,15 +1781,16 @@ public java.lang.String getProject() {
        * 
    * * string project = 2; - * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -2230,8 +1801,6 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int FOLDERS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList folders_; /** - * - * *
        * The folder(s) that the IAM policy belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -2243,15 +1812,13 @@ public com.google.protobuf.ByteString getProjectBytes() {
        * 
    * * repeated string folders = 6; - * * @return A list containing the folders. */ - public com.google.protobuf.ProtocolStringList getFoldersList() { + public com.google.protobuf.ProtocolStringList + getFoldersList() { return folders_; } /** - * - * *
        * The folder(s) that the IAM policy belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -2263,15 +1830,12 @@ public com.google.protobuf.ProtocolStringList getFoldersList() {
        * 
    * * repeated string folders = 6; - * * @return The count of folders. */ public int getFoldersCount() { return folders_.size(); } /** - * - * *
        * The folder(s) that the IAM policy belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -2283,7 +1847,6 @@ public int getFoldersCount() {
        * 
    * * repeated string folders = 6; - * * @param index The index of the element to return. * @return The folders at the given index. */ @@ -2291,8 +1854,6 @@ public java.lang.String getFolders(int index) { return folders_.get(index); } /** - * - * *
        * The folder(s) that the IAM policy belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -2304,19 +1865,17 @@ public java.lang.String getFolders(int index) {
        * 
    * * repeated string folders = 6; - * * @param index The index of the value to return. * @return The bytes of the folders at the given index. */ - public com.google.protobuf.ByteString getFoldersBytes(int index) { + public com.google.protobuf.ByteString + getFoldersBytes(int index) { return folders_.getByteString(index); } public static final int ORGANIZATION_FIELD_NUMBER = 7; private volatile java.lang.Object organization_; /** - * - * *
        * The organization that the IAM policy belongs to, in the form
        * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -2328,7 +1887,6 @@ public com.google.protobuf.ByteString getFoldersBytes(int index) {
        * 
    * * string organization = 7; - * * @return The organization. */ @java.lang.Override @@ -2337,15 +1895,14 @@ public java.lang.String getOrganization() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organization_ = s; return s; } } /** - * - * *
        * The organization that the IAM policy belongs to, in the form
        * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -2357,15 +1914,16 @@ public java.lang.String getOrganization() {
        * 
    * * string organization = 7; - * * @return The bytes for organization. */ @java.lang.Override - public com.google.protobuf.ByteString getOrganizationBytes() { + public com.google.protobuf.ByteString + getOrganizationBytes() { java.lang.Object ref = organization_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); organization_ = b; return b; } else { @@ -2376,8 +1934,6 @@ public com.google.protobuf.ByteString getOrganizationBytes() { public static final int POLICY_FIELD_NUMBER = 3; private com.google.iam.v1.Policy policy_; /** - * - * *
        * The IAM policy directly set on the given resource. Note that the original
        * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -2394,7 +1950,6 @@ public com.google.protobuf.ByteString getOrganizationBytes() {
        * 
    * * .google.iam.v1.Policy policy = 3; - * * @return Whether the policy field is set. */ @java.lang.Override @@ -2402,8 +1957,6 @@ public boolean hasPolicy() { return policy_ != null; } /** - * - * *
        * The IAM policy directly set on the given resource. Note that the original
        * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -2420,7 +1973,6 @@ public boolean hasPolicy() {
        * 
    * * .google.iam.v1.Policy policy = 3; - * * @return The policy. */ @java.lang.Override @@ -2428,8 +1980,6 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** - * - * *
        * The IAM policy directly set on the given resource. Note that the original
        * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -2455,15 +2005,12 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
       public static final int EXPLANATION_FIELD_NUMBER = 4;
       private com.google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation_;
       /**
    -   *
    -   *
        * 
        * Explanation about the IAM policy search result. It contains additional
        * information to explain why the search result matches the query.
        * 
    * * .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4; - * * @return Whether the explanation field is set. */ @java.lang.Override @@ -2471,26 +2018,19 @@ public boolean hasExplanation() { return explanation_ != null; } /** - * - * *
        * Explanation about the IAM policy search result. It contains additional
        * information to explain why the search result matches the query.
        * 
    * * .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4; - * * @return The explanation. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation getExplanation() { - return explanation_ == null - ? com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.getDefaultInstance() - : explanation_; + return explanation_ == null ? com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.getDefaultInstance() : explanation_; } /** - * - * *
        * Explanation about the IAM policy search result. It contains additional
        * information to explain why the search result matches the query.
    @@ -2499,13 +2039,11 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation getExplanatio
        * .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4;
        */
       @java.lang.Override
    -  public com.google.cloud.asset.v1.IamPolicySearchResult.ExplanationOrBuilder
    -      getExplanationOrBuilder() {
    +  public com.google.cloud.asset.v1.IamPolicySearchResult.ExplanationOrBuilder getExplanationOrBuilder() {
         return getExplanation();
       }
     
       private byte memoizedIsInitialized = -1;
    -
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -2517,7 +2055,8 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output)
    +                      throws java.io.IOException {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_);
         }
    @@ -2539,7 +2078,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organization_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 7, organization_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -2555,10 +2094,12 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_);
         }
         if (policy_ != null) {
    -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPolicy());
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(3, getPolicy());
         }
         if (explanation_ != null) {
    -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getExplanation());
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(4, getExplanation());
         }
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetType_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, assetType_);
    @@ -2574,7 +2115,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organization_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, organization_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -2582,28 +2123,34 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -      return true;
    +     return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1.IamPolicySearchResult)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1.IamPolicySearchResult other =
    -        (com.google.cloud.asset.v1.IamPolicySearchResult) obj;
    -
    -    if (!getResource().equals(other.getResource())) return false;
    -    if (!getAssetType().equals(other.getAssetType())) return false;
    -    if (!getProject().equals(other.getProject())) return false;
    -    if (!getFoldersList().equals(other.getFoldersList())) return false;
    -    if (!getOrganization().equals(other.getOrganization())) return false;
    +    com.google.cloud.asset.v1.IamPolicySearchResult other = (com.google.cloud.asset.v1.IamPolicySearchResult) obj;
    +
    +    if (!getResource()
    +        .equals(other.getResource())) return false;
    +    if (!getAssetType()
    +        .equals(other.getAssetType())) return false;
    +    if (!getProject()
    +        .equals(other.getProject())) return false;
    +    if (!getFoldersList()
    +        .equals(other.getFoldersList())) return false;
    +    if (!getOrganization()
    +        .equals(other.getOrganization())) return false;
         if (hasPolicy() != other.hasPolicy()) return false;
         if (hasPolicy()) {
    -      if (!getPolicy().equals(other.getPolicy())) return false;
    +      if (!getPolicy()
    +          .equals(other.getPolicy())) return false;
         }
         if (hasExplanation() != other.hasExplanation()) return false;
         if (hasExplanation()) {
    -      if (!getExplanation().equals(other.getExplanation())) return false;
    +      if (!getExplanation()
    +          .equals(other.getExplanation())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -2634,148 +2181,135 @@ public int hashCode() {
           hash = (37 * hash) + EXPLANATION_FIELD_NUMBER;
           hash = (53 * hash) + getExplanation().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1.IamPolicySearchResult parseFrom(java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1.IamPolicySearchResult parseFrom(
    +      java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.IamPolicySearchResult parseFrom(
    -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.IamPolicySearchResult parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.IamPolicySearchResult 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.asset.v1.IamPolicySearchResult parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.IamPolicySearchResult parseFrom(
    -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.IamPolicySearchResult parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.IamPolicySearchResult parseFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
    -
    -  public static com.google.cloud.asset.v1.IamPolicySearchResult parseDelimitedFrom(
    -      java.io.InputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    +  public static com.google.cloud.asset.v1.IamPolicySearchResult parseDelimitedFrom(java.io.InputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.IamPolicySearchResult parseDelimitedFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.IamPolicySearchResult parseFrom(
    -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.IamPolicySearchResult parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() {
    -    return newBuilder();
    -  }
    -
    +  public Builder newBuilderForType() { return newBuilder(); }
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    -
       public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicySearchResult prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    -
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE
    +        ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(
    +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    -   *
    -   *
        * 
        * A result of IAM Policy search, containing information of an IAM policy.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicySearchResult} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicySearchResult) com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicySearchResult_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicySearchResult.class, - com.google.cloud.asset.v1.IamPolicySearchResult.Builder.class); + com.google.cloud.asset.v1.IamPolicySearchResult.class, com.google.cloud.asset.v1.IamPolicySearchResult.Builder.class); } // Construct using com.google.cloud.asset.v1.IamPolicySearchResult.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -2805,9 +2339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor; } @java.lang.Override @@ -2826,8 +2360,7 @@ public com.google.cloud.asset.v1.IamPolicySearchResult build() { @java.lang.Override public com.google.cloud.asset.v1.IamPolicySearchResult buildPartial() { - com.google.cloud.asset.v1.IamPolicySearchResult result = - new com.google.cloud.asset.v1.IamPolicySearchResult(this); + com.google.cloud.asset.v1.IamPolicySearchResult result = new com.google.cloud.asset.v1.IamPolicySearchResult(this); int from_bitField0_ = bitField0_; result.resource_ = resource_; result.assetType_ = assetType_; @@ -2856,39 +2389,38 @@ public com.google.cloud.asset.v1.IamPolicySearchResult buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicySearchResult) { - return mergeFrom((com.google.cloud.asset.v1.IamPolicySearchResult) other); + return mergeFrom((com.google.cloud.asset.v1.IamPolicySearchResult)other); } else { super.mergeFrom(other); return this; @@ -2896,8 +2428,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicySearchResult other) { - if (other == com.google.cloud.asset.v1.IamPolicySearchResult.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.IamPolicySearchResult.getDefaultInstance()) return this; if (!other.getResource().isEmpty()) { resource_ = other.resource_; onChanged(); @@ -2930,7 +2461,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicySearchResult other) if (other.hasExplanation()) { mergeExplanation(other.getExplanation()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2945,26 +2476,76 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.IamPolicySearchResult parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + resource_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + project_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + input.readMessage( + getPolicyFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + input.readMessage( + getExplanationFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + assetType_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + ensureFoldersIsMutable(); + folders_.add(s); + break; + } // case 50 + case 58: { + organization_ = input.readStringRequireUtf8(); + + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.IamPolicySearchResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.lang.Object resource_ = ""; /** - * - * *
          * The full resource name of the resource associated with this IAM policy.
          * Example:
    @@ -2977,13 +2558,13 @@ public Builder mergeFrom(
          * 
    * * string resource = 1; - * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -2992,8 +2573,6 @@ public java.lang.String getResource() { } } /** - * - * *
          * The full resource name of the resource associated with this IAM policy.
          * Example:
    @@ -3006,14 +2585,15 @@ public java.lang.String getResource() {
          * 
    * * string resource = 1; - * * @return The bytes for resource. */ - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -3021,8 +2601,6 @@ public com.google.protobuf.ByteString getResourceBytes() { } } /** - * - * *
          * The full resource name of the resource associated with this IAM policy.
          * Example:
    @@ -3035,22 +2613,20 @@ public com.google.protobuf.ByteString getResourceBytes() {
          * 
    * * string resource = 1; - * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource(java.lang.String value) { + public Builder setResource( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** - * - * *
          * The full resource name of the resource associated with this IAM policy.
          * Example:
    @@ -3063,18 +2639,15 @@ public Builder setResource(java.lang.String value) {
          * 
    * * string resource = 1; - * * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** - * - * *
          * The full resource name of the resource associated with this IAM policy.
          * Example:
    @@ -3087,16 +2660,16 @@ public Builder clearResource() {
          * 
    * * string resource = 1; - * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes(com.google.protobuf.ByteString value) { + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; @@ -3104,8 +2677,6 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { private java.lang.Object assetType_ = ""; /** - * - * *
          * The type of the resource associated with this IAM policy. Example:
          * `compute.googleapis.com/Disk`.
    @@ -3114,13 +2685,13 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) {
          * 
    * * string asset_type = 5; - * * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; @@ -3129,8 +2700,6 @@ public java.lang.String getAssetType() { } } /** - * - * *
          * The type of the resource associated with this IAM policy. Example:
          * `compute.googleapis.com/Disk`.
    @@ -3139,14 +2708,15 @@ public java.lang.String getAssetType() {
          * 
    * * string asset_type = 5; - * * @return The bytes for assetType. */ - public com.google.protobuf.ByteString getAssetTypeBytes() { + public com.google.protobuf.ByteString + getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetType_ = b; return b; } else { @@ -3154,8 +2724,6 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { } } /** - * - * *
          * The type of the resource associated with this IAM policy. Example:
          * `compute.googleapis.com/Disk`.
    @@ -3164,22 +2732,20 @@ public com.google.protobuf.ByteString getAssetTypeBytes() {
          * 
    * * string asset_type = 5; - * * @param value The assetType to set. * @return This builder for chaining. */ - public Builder setAssetType(java.lang.String value) { + public Builder setAssetType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + assetType_ = value; onChanged(); return this; } /** - * - * *
          * The type of the resource associated with this IAM policy. Example:
          * `compute.googleapis.com/Disk`.
    @@ -3188,18 +2754,15 @@ public Builder setAssetType(java.lang.String value) {
          * 
    * * string asset_type = 5; - * * @return This builder for chaining. */ public Builder clearAssetType() { - + assetType_ = getDefaultInstance().getAssetType(); onChanged(); return this; } /** - * - * *
          * The type of the resource associated with this IAM policy. Example:
          * `compute.googleapis.com/Disk`.
    @@ -3208,16 +2771,16 @@ public Builder clearAssetType() {
          * 
    * * string asset_type = 5; - * * @param value The bytes for assetType to set. * @return This builder for chaining. */ - public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { + public Builder setAssetTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; onChanged(); return this; @@ -3225,8 +2788,6 @@ public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object project_ = ""; /** - * - * *
          * The project that the associated GCP resource belongs to, in the form of
          * projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource (like VM
    @@ -3238,13 +2799,13 @@ public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) {
          * 
    * * string project = 2; - * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -3253,8 +2814,6 @@ public java.lang.String getProject() { } } /** - * - * *
          * The project that the associated GCP resource belongs to, in the form of
          * projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource (like VM
    @@ -3266,14 +2825,15 @@ public java.lang.String getProject() {
          * 
    * * string project = 2; - * * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -3281,8 +2841,6 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
          * The project that the associated GCP resource belongs to, in the form of
          * projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource (like VM
    @@ -3294,22 +2852,20 @@ public com.google.protobuf.ByteString getProjectBytes() {
          * 
    * * string project = 2; - * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { + public Builder setProject( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; onChanged(); return this; } /** - * - * *
          * The project that the associated GCP resource belongs to, in the form of
          * projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource (like VM
    @@ -3321,18 +2877,15 @@ public Builder setProject(java.lang.String value) {
          * 
    * * string project = 2; - * * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** - * - * *
          * The project that the associated GCP resource belongs to, in the form of
          * projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource (like VM
    @@ -3344,33 +2897,29 @@ public Builder clearProject() {
          * 
    * * string project = 2; - * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList folders_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList folders_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFoldersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { folders_ = new com.google.protobuf.LazyStringArrayList(folders_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
          * The folder(s) that the IAM policy belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -3382,15 +2931,13 @@ private void ensureFoldersIsMutable() {
          * 
    * * repeated string folders = 6; - * * @return A list containing the folders. */ - public com.google.protobuf.ProtocolStringList getFoldersList() { + public com.google.protobuf.ProtocolStringList + getFoldersList() { return folders_.getUnmodifiableView(); } /** - * - * *
          * The folder(s) that the IAM policy belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -3402,15 +2949,12 @@ public com.google.protobuf.ProtocolStringList getFoldersList() {
          * 
    * * repeated string folders = 6; - * * @return The count of folders. */ public int getFoldersCount() { return folders_.size(); } /** - * - * *
          * The folder(s) that the IAM policy belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -3422,7 +2966,6 @@ public int getFoldersCount() {
          * 
    * * repeated string folders = 6; - * * @param index The index of the element to return. * @return The folders at the given index. */ @@ -3430,8 +2973,6 @@ public java.lang.String getFolders(int index) { return folders_.get(index); } /** - * - * *
          * The folder(s) that the IAM policy belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -3443,16 +2984,14 @@ public java.lang.String getFolders(int index) {
          * 
    * * repeated string folders = 6; - * * @param index The index of the value to return. * @return The bytes of the folders at the given index. */ - public com.google.protobuf.ByteString getFoldersBytes(int index) { + public com.google.protobuf.ByteString + getFoldersBytes(int index) { return folders_.getByteString(index); } /** - * - * *
          * The folder(s) that the IAM policy belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -3464,23 +3003,21 @@ public com.google.protobuf.ByteString getFoldersBytes(int index) {
          * 
    * * repeated string folders = 6; - * * @param index The index to set the value at. * @param value The folders to set. * @return This builder for chaining. */ - public Builder setFolders(int index, java.lang.String value) { + public Builder setFolders( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFoldersIsMutable(); + throw new NullPointerException(); + } + ensureFoldersIsMutable(); folders_.set(index, value); onChanged(); return this; } /** - * - * *
          * The folder(s) that the IAM policy belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -3492,22 +3029,20 @@ public Builder setFolders(int index, java.lang.String value) {
          * 
    * * repeated string folders = 6; - * * @param value The folders to add. * @return This builder for chaining. */ - public Builder addFolders(java.lang.String value) { + public Builder addFolders( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFoldersIsMutable(); + throw new NullPointerException(); + } + ensureFoldersIsMutable(); folders_.add(value); onChanged(); return this; } /** - * - * *
          * The folder(s) that the IAM policy belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -3519,19 +3054,18 @@ public Builder addFolders(java.lang.String value) {
          * 
    * * repeated string folders = 6; - * * @param values The folders to add. * @return This builder for chaining. */ - public Builder addAllFolders(java.lang.Iterable values) { + public Builder addAllFolders( + java.lang.Iterable values) { ensureFoldersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, folders_); onChanged(); return this; } /** - * - * *
          * The folder(s) that the IAM policy belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -3543,7 +3077,6 @@ public Builder addAllFolders(java.lang.Iterable values) {
          * 
    * * repeated string folders = 6; - * * @return This builder for chaining. */ public Builder clearFolders() { @@ -3553,8 +3086,6 @@ public Builder clearFolders() { return this; } /** - * - * *
          * The folder(s) that the IAM policy belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -3566,15 +3097,15 @@ public Builder clearFolders() {
          * 
    * * repeated string folders = 6; - * * @param value The bytes of the folders to add. * @return This builder for chaining. */ - public Builder addFoldersBytes(com.google.protobuf.ByteString value) { + public Builder addFoldersBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFoldersIsMutable(); folders_.add(value); onChanged(); @@ -3583,8 +3114,6 @@ public Builder addFoldersBytes(com.google.protobuf.ByteString value) { private java.lang.Object organization_ = ""; /** - * - * *
          * The organization that the IAM policy belongs to, in the form
          * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -3596,13 +3125,13 @@ public Builder addFoldersBytes(com.google.protobuf.ByteString value) {
          * 
    * * string organization = 7; - * * @return The organization. */ public java.lang.String getOrganization() { java.lang.Object ref = organization_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organization_ = s; return s; @@ -3611,8 +3140,6 @@ public java.lang.String getOrganization() { } } /** - * - * *
          * The organization that the IAM policy belongs to, in the form
          * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -3624,14 +3151,15 @@ public java.lang.String getOrganization() {
          * 
    * * string organization = 7; - * * @return The bytes for organization. */ - public com.google.protobuf.ByteString getOrganizationBytes() { + public com.google.protobuf.ByteString + getOrganizationBytes() { java.lang.Object ref = organization_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); organization_ = b; return b; } else { @@ -3639,8 +3167,6 @@ public com.google.protobuf.ByteString getOrganizationBytes() { } } /** - * - * *
          * The organization that the IAM policy belongs to, in the form
          * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -3652,22 +3178,20 @@ public com.google.protobuf.ByteString getOrganizationBytes() {
          * 
    * * string organization = 7; - * * @param value The organization to set. * @return This builder for chaining. */ - public Builder setOrganization(java.lang.String value) { + public Builder setOrganization( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + organization_ = value; onChanged(); return this; } /** - * - * *
          * The organization that the IAM policy belongs to, in the form
          * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -3679,18 +3203,15 @@ public Builder setOrganization(java.lang.String value) {
          * 
    * * string organization = 7; - * * @return This builder for chaining. */ public Builder clearOrganization() { - + organization_ = getDefaultInstance().getOrganization(); onChanged(); return this; } /** - * - * *
          * The organization that the IAM policy belongs to, in the form
          * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -3702,16 +3223,16 @@ public Builder clearOrganization() {
          * 
    * * string organization = 7; - * * @param value The bytes for organization to set. * @return This builder for chaining. */ - public Builder setOrganizationBytes(com.google.protobuf.ByteString value) { + public Builder setOrganizationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + organization_ = value; onChanged(); return this; @@ -3719,13 +3240,8 @@ public Builder setOrganizationBytes(com.google.protobuf.ByteString value) { private com.google.iam.v1.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, - com.google.iam.v1.Policy.Builder, - com.google.iam.v1.PolicyOrBuilder> - policyBuilder_; + com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> policyBuilder_; /** - * - * *
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -3742,15 +3258,12 @@ public Builder setOrganizationBytes(com.google.protobuf.ByteString value) {
          * 
    * * .google.iam.v1.Policy policy = 3; - * * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || policy_ != null; } /** - * - * *
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -3767,7 +3280,6 @@ public boolean hasPolicy() {
          * 
    * * .google.iam.v1.Policy policy = 3; - * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -3778,8 +3290,6 @@ public com.google.iam.v1.Policy getPolicy() { } } /** - * - * *
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -3811,8 +3321,6 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -3830,7 +3338,8 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
          *
          * .google.iam.v1.Policy policy = 3;
          */
    -    public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
    +    public Builder setPolicy(
    +        com.google.iam.v1.Policy.Builder builderForValue) {
           if (policyBuilder_ == null) {
             policy_ = builderForValue.build();
             onChanged();
    @@ -3841,8 +3350,6 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -3863,7 +3370,8 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
         public Builder mergePolicy(com.google.iam.v1.Policy value) {
           if (policyBuilder_ == null) {
             if (policy_ != null) {
    -          policy_ = com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
    +          policy_ =
    +            com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
             } else {
               policy_ = value;
             }
    @@ -3875,8 +3383,6 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -3906,8 +3412,6 @@ public Builder clearPolicy() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -3926,13 +3430,11 @@ public Builder clearPolicy() {
          * .google.iam.v1.Policy policy = 3;
          */
         public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
    -
    +      
           onChanged();
           return getPolicyFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -3954,12 +3456,11 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
           if (policyBuilder_ != null) {
             return policyBuilder_.getMessageOrBuilder();
           } else {
    -        return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_;
    +        return policy_ == null ?
    +            com.google.iam.v1.Policy.getDefaultInstance() : policy_;
           }
         }
         /**
    -     *
    -     *
          * 
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -3978,16 +3479,14 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
          * .google.iam.v1.Policy policy = 3;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.iam.v1.Policy,
    -            com.google.iam.v1.Policy.Builder,
    -            com.google.iam.v1.PolicyOrBuilder>
    +        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> 
             getPolicyFieldBuilder() {
           if (policyBuilder_ == null) {
    -        policyBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.iam.v1.Policy,
    -                com.google.iam.v1.Policy.Builder,
    -                com.google.iam.v1.PolicyOrBuilder>(getPolicy(), getParentForChildren(), isClean());
    +        policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>(
    +                getPolicy(),
    +                getParentForChildren(),
    +                isClean());
             policy_ = null;
           }
           return policyBuilder_;
    @@ -3995,49 +3494,36 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
     
         private com.google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.IamPolicySearchResult.Explanation,
    -            com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder,
    -            com.google.cloud.asset.v1.IamPolicySearchResult.ExplanationOrBuilder>
    -        explanationBuilder_;
    +        com.google.cloud.asset.v1.IamPolicySearchResult.Explanation, com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder, com.google.cloud.asset.v1.IamPolicySearchResult.ExplanationOrBuilder> explanationBuilder_;
         /**
    -     *
    -     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
          * 
    * * .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4; - * * @return Whether the explanation field is set. */ public boolean hasExplanation() { return explanationBuilder_ != null || explanation_ != null; } /** - * - * *
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
          * 
    * * .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4; - * * @return The explanation. */ public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation getExplanation() { if (explanationBuilder_ == null) { - return explanation_ == null - ? com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.getDefaultInstance() - : explanation_; + return explanation_ == null ? com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.getDefaultInstance() : explanation_; } else { return explanationBuilder_.getMessage(); } } /** - * - * *
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -4045,8 +3531,7 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation getExplanatio
          *
          * .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4;
          */
    -    public Builder setExplanation(
    -        com.google.cloud.asset.v1.IamPolicySearchResult.Explanation value) {
    +    public Builder setExplanation(com.google.cloud.asset.v1.IamPolicySearchResult.Explanation value) {
           if (explanationBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -4060,8 +3545,6 @@ public Builder setExplanation(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -4081,8 +3564,6 @@ public Builder setExplanation(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -4090,14 +3571,11 @@ public Builder setExplanation(
          *
          * .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4;
          */
    -    public Builder mergeExplanation(
    -        com.google.cloud.asset.v1.IamPolicySearchResult.Explanation value) {
    +    public Builder mergeExplanation(com.google.cloud.asset.v1.IamPolicySearchResult.Explanation value) {
           if (explanationBuilder_ == null) {
             if (explanation_ != null) {
               explanation_ =
    -              com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.newBuilder(explanation_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +            com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.newBuilder(explanation_).mergeFrom(value).buildPartial();
             } else {
               explanation_ = value;
             }
    @@ -4109,8 +3587,6 @@ public Builder mergeExplanation(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -4130,8 +3606,6 @@ public Builder clearExplanation() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -4139,15 +3613,12 @@ public Builder clearExplanation() {
          *
          * .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4;
          */
    -    public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder
    -        getExplanationBuilder() {
    -
    +    public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder getExplanationBuilder() {
    +      
           onChanged();
           return getExplanationFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -4155,19 +3626,15 @@ public Builder clearExplanation() {
          *
          * .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4;
          */
    -    public com.google.cloud.asset.v1.IamPolicySearchResult.ExplanationOrBuilder
    -        getExplanationOrBuilder() {
    +    public com.google.cloud.asset.v1.IamPolicySearchResult.ExplanationOrBuilder getExplanationOrBuilder() {
           if (explanationBuilder_ != null) {
             return explanationBuilder_.getMessageOrBuilder();
           } else {
    -        return explanation_ == null
    -            ? com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.getDefaultInstance()
    -            : explanation_;
    +        return explanation_ == null ?
    +            com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.getDefaultInstance() : explanation_;
           }
         }
         /**
    -     *
    -     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -4176,24 +3643,21 @@ public Builder clearExplanation() {
          * .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.IamPolicySearchResult.Explanation,
    -            com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder,
    -            com.google.cloud.asset.v1.IamPolicySearchResult.ExplanationOrBuilder>
    +        com.google.cloud.asset.v1.IamPolicySearchResult.Explanation, com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder, com.google.cloud.asset.v1.IamPolicySearchResult.ExplanationOrBuilder> 
             getExplanationFieldBuilder() {
           if (explanationBuilder_ == null) {
    -        explanationBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.cloud.asset.v1.IamPolicySearchResult.Explanation,
    -                com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder,
    -                com.google.cloud.asset.v1.IamPolicySearchResult.ExplanationOrBuilder>(
    -                getExplanation(), getParentForChildren(), isClean());
    +        explanationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.cloud.asset.v1.IamPolicySearchResult.Explanation, com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder, com.google.cloud.asset.v1.IamPolicySearchResult.ExplanationOrBuilder>(
    +                getExplanation(),
    +                getParentForChildren(),
    +                isClean());
             explanation_ = null;
           }
           return explanationBuilder_;
         }
    -
         @java.lang.Override
    -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(
    +        final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -4203,12 +3667,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    +
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicySearchResult)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicySearchResult)
       private static final com.google.cloud.asset.v1.IamPolicySearchResult DEFAULT_INSTANCE;
    -
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicySearchResult();
       }
    @@ -4217,16 +3681,27 @@ public static com.google.cloud.asset.v1.IamPolicySearchResult getDefaultInstance
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser PARSER =
    -      new com.google.protobuf.AbstractParser() {
    -        @java.lang.Override
    -        public IamPolicySearchResult parsePartialFrom(
    -            com.google.protobuf.CodedInputStream input,
    -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -            throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new IamPolicySearchResult(input, extensionRegistry);
    -        }
    -      };
    +  private static final com.google.protobuf.Parser
    +      PARSER = new com.google.protobuf.AbstractParser() {
    +    @java.lang.Override
    +    public IamPolicySearchResult parsePartialFrom(
    +        com.google.protobuf.CodedInputStream input,
    +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        throws com.google.protobuf.InvalidProtocolBufferException {
    +      Builder builder = newBuilder();
    +      try {
    +        builder.mergeFrom(input, extensionRegistry);
    +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +        throw e.setUnfinishedMessage(builder.buildPartial());
    +      } catch (com.google.protobuf.UninitializedMessageException e) {
    +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +      } catch (java.io.IOException e) {
    +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +            .setUnfinishedMessage(builder.buildPartial());
    +      }
    +      return builder.buildPartial();
    +    }
    +  };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -4241,4 +3716,6 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1.IamPolicySearchResult getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    +
     }
    +
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResultOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResultOrBuilder.java
    similarity index 89%
    rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResultOrBuilder.java
    rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResultOrBuilder.java
    index a79c38011645..6958f7f88c6c 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResultOrBuilder.java
    +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResultOrBuilder.java
    @@ -1,31 +1,13 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/assets.proto
     
     package com.google.cloud.asset.v1;
     
    -public interface IamPolicySearchResultOrBuilder
    -    extends
    +public interface IamPolicySearchResultOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicySearchResult)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    -   *
    -   *
        * 
        * The full resource name of the resource associated with this IAM policy.
        * Example:
    @@ -38,13 +20,10 @@ public interface IamPolicySearchResultOrBuilder
        * 
    * * string resource = 1; - * * @return The resource. */ java.lang.String getResource(); /** - * - * *
        * The full resource name of the resource associated with this IAM policy.
        * Example:
    @@ -57,14 +36,12 @@ public interface IamPolicySearchResultOrBuilder
        * 
    * * string resource = 1; - * * @return The bytes for resource. */ - com.google.protobuf.ByteString getResourceBytes(); + com.google.protobuf.ByteString + getResourceBytes(); /** - * - * *
        * The type of the resource associated with this IAM policy. Example:
        * `compute.googleapis.com/Disk`.
    @@ -73,13 +50,10 @@ public interface IamPolicySearchResultOrBuilder
        * 
    * * string asset_type = 5; - * * @return The assetType. */ java.lang.String getAssetType(); /** - * - * *
        * The type of the resource associated with this IAM policy. Example:
        * `compute.googleapis.com/Disk`.
    @@ -88,14 +62,12 @@ public interface IamPolicySearchResultOrBuilder
        * 
    * * string asset_type = 5; - * * @return The bytes for assetType. */ - com.google.protobuf.ByteString getAssetTypeBytes(); + com.google.protobuf.ByteString + getAssetTypeBytes(); /** - * - * *
        * The project that the associated GCP resource belongs to, in the form of
        * projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource (like VM
    @@ -107,13 +79,10 @@ public interface IamPolicySearchResultOrBuilder
        * 
    * * string project = 2; - * * @return The project. */ java.lang.String getProject(); /** - * - * *
        * The project that the associated GCP resource belongs to, in the form of
        * projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource (like VM
    @@ -125,14 +94,12 @@ public interface IamPolicySearchResultOrBuilder
        * 
    * * string project = 2; - * * @return The bytes for project. */ - com.google.protobuf.ByteString getProjectBytes(); + com.google.protobuf.ByteString + getProjectBytes(); /** - * - * *
        * The folder(s) that the IAM policy belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -144,13 +111,11 @@ public interface IamPolicySearchResultOrBuilder
        * 
    * * repeated string folders = 6; - * * @return A list containing the folders. */ - java.util.List getFoldersList(); + java.util.List + getFoldersList(); /** - * - * *
        * The folder(s) that the IAM policy belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -162,13 +127,10 @@ public interface IamPolicySearchResultOrBuilder
        * 
    * * repeated string folders = 6; - * * @return The count of folders. */ int getFoldersCount(); /** - * - * *
        * The folder(s) that the IAM policy belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -180,14 +142,11 @@ public interface IamPolicySearchResultOrBuilder
        * 
    * * repeated string folders = 6; - * * @param index The index of the element to return. * @return The folders at the given index. */ java.lang.String getFolders(int index); /** - * - * *
        * The folder(s) that the IAM policy belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -199,15 +158,13 @@ public interface IamPolicySearchResultOrBuilder
        * 
    * * repeated string folders = 6; - * * @param index The index of the value to return. * @return The bytes of the folders at the given index. */ - com.google.protobuf.ByteString getFoldersBytes(int index); + com.google.protobuf.ByteString + getFoldersBytes(int index); /** - * - * *
        * The organization that the IAM policy belongs to, in the form
        * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -219,13 +176,10 @@ public interface IamPolicySearchResultOrBuilder
        * 
    * * string organization = 7; - * * @return The organization. */ java.lang.String getOrganization(); /** - * - * *
        * The organization that the IAM policy belongs to, in the form
        * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -237,14 +191,12 @@ public interface IamPolicySearchResultOrBuilder
        * 
    * * string organization = 7; - * * @return The bytes for organization. */ - com.google.protobuf.ByteString getOrganizationBytes(); + com.google.protobuf.ByteString + getOrganizationBytes(); /** - * - * *
        * The IAM policy directly set on the given resource. Note that the original
        * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -261,13 +213,10 @@ public interface IamPolicySearchResultOrBuilder
        * 
    * * .google.iam.v1.Policy policy = 3; - * * @return Whether the policy field is set. */ boolean hasPolicy(); /** - * - * *
        * The IAM policy directly set on the given resource. Note that the original
        * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -284,13 +233,10 @@ public interface IamPolicySearchResultOrBuilder
        * 
    * * .google.iam.v1.Policy policy = 3; - * * @return The policy. */ com.google.iam.v1.Policy getPolicy(); /** - * - * *
        * The IAM policy directly set on the given resource. Note that the original
        * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -311,34 +257,26 @@ public interface IamPolicySearchResultOrBuilder
       com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * Explanation about the IAM policy search result. It contains additional
        * information to explain why the search result matches the query.
        * 
    * * .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4; - * * @return Whether the explanation field is set. */ boolean hasExplanation(); /** - * - * *
        * Explanation about the IAM policy search result. It contains additional
        * information to explain why the search result matches the query.
        * 
    * * .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4; - * * @return The explanation. */ com.google.cloud.asset.v1.IamPolicySearchResult.Explanation getExplanation(); /** - * - * *
        * Explanation about the IAM policy search result. It contains additional
        * information to explain why the search result matches the query.
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequest.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequest.java
    similarity index 77%
    rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequest.java
    rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequest.java
    index 26658678dccc..a3381d8c299d 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequest.java
    +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequest.java
    @@ -1,42 +1,24 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
     /**
    - *
    - *
      * 
      * ListAssets request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.ListAssetsRequest} */ -public final class ListAssetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListAssetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.ListAssetsRequest) ListAssetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListAssetsRequest.newBuilder() to construct. private ListAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAssetsRequest() { parent_ = ""; assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -47,154 +29,41 @@ private ListAssetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAssetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private ListAssetsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - assetTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - assetTypes_.add(s); - break; - } - case 32: - { - int rawValue = input.readEnum(); - - contentType_ = rawValue; - break; - } - case 40: - { - pageSize_ = input.readInt32(); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - relationshipTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - relationshipTypes_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - assetTypes_ = assetTypes_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - relationshipTypes_ = relationshipTypes_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListAssetsRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ListAssetsRequest.class, - com.google.cloud.asset.v1.ListAssetsRequest.Builder.class); + com.google.cloud.asset.v1.ListAssetsRequest.class, com.google.cloud.asset.v1.ListAssetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    -   * Required. Name of the organization, folder, or project the assets belong
    -   * to. Format: "organizations/[organization-number]" (such as
    -   * "organizations/123"), "projects/[project-id]" (such as
    -   * "projects/my-project-id"), "projects/[project-number]" (such as
    -   * "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
    +   * Required. Name of the organization, folder, or project the assets belong to. Format:
    +   * "organizations/[organization-number]" (such as "organizations/123"),
    +   * "projects/[project-id]" (such as "projects/my-project-id"),
    +   * "projects/[project-number]" (such as "projects/12345"), or
    +   * "folders/[folder-number]" (such as "folders/12345").
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -203,35 +72,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    -   * Required. Name of the organization, folder, or project the assets belong
    -   * to. Format: "organizations/[organization-number]" (such as
    -   * "organizations/123"), "projects/[project-id]" (such as
    -   * "projects/my-project-id"), "projects/[project-number]" (such as
    -   * "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
    +   * Required. Name of the organization, folder, or project the assets belong to. Format:
    +   * "organizations/[organization-number]" (such as "organizations/123"),
    +   * "projects/[project-id]" (such as "projects/my-project-id"),
    +   * "projects/[project-number]" (such as "projects/12345"), or
    +   * "folders/[folder-number]" (such as "folders/12345").
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -242,8 +109,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int READ_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp readTime_; /** - * - * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -253,7 +118,6 @@ public com.google.protobuf.ByteString getParentBytes() {
        * 
    * * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -261,8 +125,6 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -272,7 +134,6 @@ public boolean hasReadTime() {
        * 
    * * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ @java.lang.Override @@ -280,8 +141,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -300,8 +159,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       public static final int ASSET_TYPES_FIELD_NUMBER = 3;
       private com.google.protobuf.LazyStringList assetTypes_;
       /**
    -   *
    -   *
        * 
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -320,15 +177,13 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
        * 
    * * repeated string asset_types = 3; - * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList getAssetTypesList() { + public com.google.protobuf.ProtocolStringList + getAssetTypesList() { return assetTypes_; } /** - * - * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -347,15 +202,12 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() {
        * 
    * * repeated string asset_types = 3; - * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** - * - * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -374,7 +226,6 @@ public int getAssetTypesCount() {
        * 
    * * repeated string asset_types = 3; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -382,8 +233,6 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** - * - * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -402,64 +251,52 @@ public java.lang.String getAssetTypes(int index) {
        * 
    * * repeated string asset_types = 3; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString + getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } public static final int CONTENT_TYPE_FIELD_NUMBER = 4; private int contentType_; /** - * - * *
        * Asset content type. If not specified, no content but the asset name will
        * be returned.
        * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override - public int getContentTypeValue() { + @java.lang.Override public int getContentTypeValue() { return contentType_; } /** - * - * *
        * Asset content type. If not specified, no content but the asset name will
        * be returned.
        * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @return The contentType. */ - @java.lang.Override - public com.google.cloud.asset.v1.ContentType getContentType() { + @java.lang.Override public com.google.cloud.asset.v1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.ContentType result = - com.google.cloud.asset.v1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1.ContentType result = com.google.cloud.asset.v1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1.ContentType.UNRECOGNIZED : result; } public static final int PAGE_SIZE_FIELD_NUMBER = 5; private int pageSize_; /** - * - * *
        * The maximum number of assets to be returned in a single response. Default
        * is 100, minimum is 1, and maximum is 1000.
        * 
    * * int32 page_size = 5; - * * @return The pageSize. */ @java.lang.Override @@ -470,8 +307,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 6; private volatile java.lang.Object pageToken_; /** - * - * *
        * The `next_page_token` returned from the previous `ListAssetsResponse`, or
        * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -479,7 +314,6 @@ public int getPageSize() {
        * 
    * * string page_token = 6; - * * @return The pageToken. */ @java.lang.Override @@ -488,15 +322,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
        * The `next_page_token` returned from the previous `ListAssetsResponse`, or
        * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -504,15 +337,16 @@ public java.lang.String getPageToken() {
        * 
    * * string page_token = 6; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -523,8 +357,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int RELATIONSHIP_TYPES_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList relationshipTypes_; /** - * - * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -544,15 +376,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
        * 
    * * repeated string relationship_types = 7; - * * @return A list containing the relationshipTypes. */ - public com.google.protobuf.ProtocolStringList getRelationshipTypesList() { + public com.google.protobuf.ProtocolStringList + getRelationshipTypesList() { return relationshipTypes_; } /** - * - * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -572,15 +402,12 @@ public com.google.protobuf.ProtocolStringList getRelationshipTypesList() {
        * 
    * * repeated string relationship_types = 7; - * * @return The count of relationshipTypes. */ public int getRelationshipTypesCount() { return relationshipTypes_.size(); } /** - * - * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -600,7 +427,6 @@ public int getRelationshipTypesCount() {
        * 
    * * repeated string relationship_types = 7; - * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -608,8 +434,6 @@ public java.lang.String getRelationshipTypes(int index) { return relationshipTypes_.get(index); } /** - * - * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -629,16 +453,15 @@ public java.lang.String getRelationshipTypes(int index) {
        * 
    * * repeated string relationship_types = 7; - * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) { + public com.google.protobuf.ByteString + getRelationshipTypesBytes(int index) { return relationshipTypes_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -650,7 +473,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -660,8 +484,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < assetTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, assetTypes_.getRaw(i)); } - if (contentType_ - != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + if (contentType_ != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, contentType_); } if (pageSize_ != 0) { @@ -673,7 +496,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < relationshipTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, relationshipTypes_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -686,7 +509,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReadTime()); } { int dataSize = 0; @@ -696,12 +520,13 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAssetTypesList().size(); } - if (contentType_ - != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, contentType_); + if (contentType_ != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, contentType_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); @@ -714,7 +539,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getRelationshipTypesList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -722,25 +547,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.ListAssetsRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.ListAssetsRequest other = - (com.google.cloud.asset.v1.ListAssetsRequest) obj; + com.google.cloud.asset.v1.ListAssetsRequest other = (com.google.cloud.asset.v1.ListAssetsRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } - if (!getAssetTypesList().equals(other.getAssetTypesList())) return false; + if (!getAssetTypesList() + .equals(other.getAssetTypesList())) return false; if (contentType_ != other.contentType_) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getRelationshipTypesList().equals(other.getRelationshipTypesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getRelationshipTypesList() + .equals(other.getRelationshipTypesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -771,148 +601,135 @@ public int hashCode() { hash = (37 * hash) + RELATIONSHIP_TYPES_FIELD_NUMBER; hash = (53 * hash) + getRelationshipTypesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.ListAssetsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.ListAssetsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ListAssetsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.ListAssetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ListAssetsRequest 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.asset.v1.ListAssetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ListAssetsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.ListAssetsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ListAssetsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.ListAssetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.ListAssetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ListAssetsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.ListAssetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ListAssetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.ListAssetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * ListAssets request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.ListAssetsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.ListAssetsRequest) com.google.cloud.asset.v1.ListAssetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListAssetsRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ListAssetsRequest.class, - com.google.cloud.asset.v1.ListAssetsRequest.Builder.class); + com.google.cloud.asset.v1.ListAssetsRequest.class, com.google.cloud.asset.v1.ListAssetsRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.ListAssetsRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -938,9 +755,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListAssetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListAssetsRequest_descriptor; } @java.lang.Override @@ -959,8 +776,7 @@ public com.google.cloud.asset.v1.ListAssetsRequest build() { @java.lang.Override public com.google.cloud.asset.v1.ListAssetsRequest buildPartial() { - com.google.cloud.asset.v1.ListAssetsRequest result = - new com.google.cloud.asset.v1.ListAssetsRequest(this); + com.google.cloud.asset.v1.ListAssetsRequest result = new com.google.cloud.asset.v1.ListAssetsRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (readTimeBuilder_ == null) { @@ -989,39 +805,38 @@ public com.google.cloud.asset.v1.ListAssetsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.ListAssetsRequest) { - return mergeFrom((com.google.cloud.asset.v1.ListAssetsRequest) other); + return mergeFrom((com.google.cloud.asset.v1.ListAssetsRequest)other); } else { super.mergeFrom(other); return this; @@ -1067,7 +882,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ListAssetsRequest other) { } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1082,44 +897,91 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.ListAssetsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getReadTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAssetTypesIsMutable(); + assetTypes_.add(s); + break; + } // case 26 + case 32: { + contentType_ = input.readEnum(); + + break; + } // case 32 + case 40: { + pageSize_ = input.readInt32(); + + break; + } // case 40 + case 50: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + ensureRelationshipTypesIsMutable(); + relationshipTypes_.add(s); + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.ListAssetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
    -     * Required. Name of the organization, folder, or project the assets belong
    -     * to. Format: "organizations/[organization-number]" (such as
    -     * "organizations/123"), "projects/[project-id]" (such as
    -     * "projects/my-project-id"), "projects/[project-number]" (such as
    -     * "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
    +     * Required. Name of the organization, folder, or project the assets belong to. Format:
    +     * "organizations/[organization-number]" (such as "organizations/123"),
    +     * "projects/[project-id]" (such as "projects/my-project-id"),
    +     * "projects/[project-number]" (such as "projects/12345"), or
    +     * "folders/[folder-number]" (such as "folders/12345").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1128,27 +990,24 @@ public java.lang.String getParent() { } } /** - * - * *
    -     * Required. Name of the organization, folder, or project the assets belong
    -     * to. Format: "organizations/[organization-number]" (such as
    -     * "organizations/123"), "projects/[project-id]" (such as
    -     * "projects/my-project-id"), "projects/[project-number]" (such as
    -     * "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
    +     * Required. Name of the organization, folder, or project the assets belong to. Format:
    +     * "organizations/[organization-number]" (such as "organizations/123"),
    +     * "projects/[project-id]" (such as "projects/my-project-id"),
    +     * "projects/[project-number]" (such as "projects/12345"), or
    +     * "folders/[folder-number]" (such as "folders/12345").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1156,79 +1015,66 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
    -     * Required. Name of the organization, folder, or project the assets belong
    -     * to. Format: "organizations/[organization-number]" (such as
    -     * "organizations/123"), "projects/[project-id]" (such as
    -     * "projects/my-project-id"), "projects/[project-number]" (such as
    -     * "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
    +     * Required. Name of the organization, folder, or project the assets belong to. Format:
    +     * "organizations/[organization-number]" (such as "organizations/123"),
    +     * "projects/[project-id]" (such as "projects/my-project-id"),
    +     * "projects/[project-number]" (such as "projects/12345"), or
    +     * "folders/[folder-number]" (such as "folders/12345").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
    -     * Required. Name of the organization, folder, or project the assets belong
    -     * to. Format: "organizations/[organization-number]" (such as
    -     * "organizations/123"), "projects/[project-id]" (such as
    -     * "projects/my-project-id"), "projects/[project-number]" (such as
    -     * "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
    +     * Required. Name of the organization, folder, or project the assets belong to. Format:
    +     * "organizations/[organization-number]" (such as "organizations/123"),
    +     * "projects/[project-id]" (such as "projects/my-project-id"),
    +     * "projects/[project-number]" (such as "projects/12345"), or
    +     * "folders/[folder-number]" (such as "folders/12345").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
    -     * Required. Name of the organization, folder, or project the assets belong
    -     * to. Format: "organizations/[organization-number]" (such as
    -     * "organizations/123"), "projects/[project-id]" (such as
    -     * "projects/my-project-id"), "projects/[project-number]" (such as
    -     * "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
    +     * Required. Name of the organization, folder, or project the assets belong to. Format:
    +     * "organizations/[organization-number]" (such as "organizations/123"),
    +     * "projects/[project-id]" (such as "projects/my-project-id"),
    +     * "projects/[project-number]" (such as "projects/12345"), or
    +     * "folders/[folder-number]" (such as "folders/12345").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1236,13 +1082,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1252,15 +1093,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
          * 
    * * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1270,7 +1108,6 @@ public boolean hasReadTime() {
          * 
    * * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1281,8 +1118,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1307,8 +1142,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1319,7 +1152,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
          *
          * .google.protobuf.Timestamp read_time = 2;
          */
    -    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
    +    public Builder setReadTime(
    +        com.google.protobuf.Timestamp.Builder builderForValue) {
           if (readTimeBuilder_ == null) {
             readTime_ = builderForValue.build();
             onChanged();
    @@ -1330,8 +1164,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1346,7 +1178,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
           if (readTimeBuilder_ == null) {
             if (readTime_ != null) {
               readTime_ =
    -              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
    +            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
             } else {
               readTime_ = value;
             }
    @@ -1358,8 +1190,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1382,8 +1212,6 @@ public Builder clearReadTime() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1395,13 +1223,11 @@ public Builder clearReadTime() {
          * .google.protobuf.Timestamp read_time = 2;
          */
         public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
    -
    +      
           onChanged();
           return getReadTimeFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1416,12 +1242,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
           if (readTimeBuilder_ != null) {
             return readTimeBuilder_.getMessageOrBuilder();
           } else {
    -        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
    +        return readTime_ == null ?
    +            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
           }
         }
         /**
    -     *
    -     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1433,34 +1258,27 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
          * .google.protobuf.Timestamp read_time = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp,
    -            com.google.protobuf.Timestamp.Builder,
    -            com.google.protobuf.TimestampOrBuilder>
    +        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
             getReadTimeFieldBuilder() {
           if (readTimeBuilder_ == null) {
    -        readTimeBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.protobuf.Timestamp,
    -                com.google.protobuf.Timestamp.Builder,
    -                com.google.protobuf.TimestampOrBuilder>(
    -                getReadTime(), getParentForChildren(), isClean());
    +        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    +                getReadTime(),
    +                getParentForChildren(),
    +                isClean());
             readTime_ = null;
           }
           return readTimeBuilder_;
         }
     
    -    private com.google.protobuf.LazyStringList assetTypes_ =
    -        com.google.protobuf.LazyStringArrayList.EMPTY;
    -
    +    private com.google.protobuf.LazyStringList assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
         private void ensureAssetTypesIsMutable() {
           if (!((bitField0_ & 0x00000001) != 0)) {
             assetTypes_ = new com.google.protobuf.LazyStringArrayList(assetTypes_);
             bitField0_ |= 0x00000001;
    -      }
    +       }
         }
         /**
    -     *
    -     *
          * 
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1479,15 +1297,13 @@ private void ensureAssetTypesIsMutable() {
          * 
    * * repeated string asset_types = 3; - * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList getAssetTypesList() { + public com.google.protobuf.ProtocolStringList + getAssetTypesList() { return assetTypes_.getUnmodifiableView(); } /** - * - * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1506,15 +1322,12 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() {
          * 
    * * repeated string asset_types = 3; - * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** - * - * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1533,7 +1346,6 @@ public int getAssetTypesCount() {
          * 
    * * repeated string asset_types = 3; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -1541,8 +1353,6 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** - * - * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1561,16 +1371,14 @@ public java.lang.String getAssetTypes(int index) {
          * 
    * * repeated string asset_types = 3; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString + getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } /** - * - * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1589,23 +1397,21 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) {
          * 
    * * repeated string asset_types = 3; - * * @param index The index to set the value at. * @param value The assetTypes to set. * @return This builder for chaining. */ - public Builder setAssetTypes(int index, java.lang.String value) { + public Builder setAssetTypes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.set(index, value); onChanged(); return this; } /** - * - * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1624,22 +1430,20 @@ public Builder setAssetTypes(int index, java.lang.String value) {
          * 
    * * repeated string asset_types = 3; - * * @param value The assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypes(java.lang.String value) { + public Builder addAssetTypes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); return this; } /** - * - * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1658,19 +1462,18 @@ public Builder addAssetTypes(java.lang.String value) {
          * 
    * * repeated string asset_types = 3; - * * @param values The assetTypes to add. * @return This builder for chaining. */ - public Builder addAllAssetTypes(java.lang.Iterable values) { + public Builder addAllAssetTypes( + java.lang.Iterable values) { ensureAssetTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, assetTypes_); onChanged(); return this; } /** - * - * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1689,7 +1492,6 @@ public Builder addAllAssetTypes(java.lang.Iterable values) {
          * 
    * * repeated string asset_types = 3; - * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1699,8 +1501,6 @@ public Builder clearAssetTypes() { return this; } /** - * - * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1719,15 +1519,15 @@ public Builder clearAssetTypes() {
          * 
    * * repeated string asset_types = 3; - * * @param value The bytes of the assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { + public Builder addAssetTypesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); @@ -1736,69 +1536,55 @@ public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { private int contentType_ = 0; /** - * - * *
          * Asset content type. If not specified, no content but the asset name will
          * be returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override - public int getContentTypeValue() { + @java.lang.Override public int getContentTypeValue() { return contentType_; } /** - * - * *
          * Asset content type. If not specified, no content but the asset name will
          * be returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @param value The enum numeric value on the wire for contentType to set. * @return This builder for chaining. */ public Builder setContentTypeValue(int value) { - + contentType_ = value; onChanged(); return this; } /** - * - * *
          * Asset content type. If not specified, no content but the asset name will
          * be returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @return The contentType. */ @java.lang.Override public com.google.cloud.asset.v1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.ContentType result = - com.google.cloud.asset.v1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1.ContentType result = com.google.cloud.asset.v1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1.ContentType.UNRECOGNIZED : result; } /** - * - * *
          * Asset content type. If not specified, no content but the asset name will
          * be returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @param value The contentType to set. * @return This builder for chaining. */ @@ -1806,41 +1592,35 @@ public Builder setContentType(com.google.cloud.asset.v1.ContentType value) { if (value == null) { throw new NullPointerException(); } - + contentType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
          * Asset content type. If not specified, no content but the asset name will
          * be returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @return This builder for chaining. */ public Builder clearContentType() { - + contentType_ = 0; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
          * The maximum number of assets to be returned in a single response. Default
          * is 100, minimum is 1, and maximum is 1000.
          * 
    * * int32 page_size = 5; - * * @return The pageSize. */ @java.lang.Override @@ -1848,38 +1628,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
          * The maximum number of assets to be returned in a single response. Default
          * is 100, minimum is 1, and maximum is 1000.
          * 
    * * int32 page_size = 5; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
          * The maximum number of assets to be returned in a single response. Default
          * is 100, minimum is 1, and maximum is 1000.
          * 
    * * int32 page_size = 5; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1887,8 +1661,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
          * The `next_page_token` returned from the previous `ListAssetsResponse`, or
          * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -1896,13 +1668,13 @@ public Builder clearPageSize() {
          * 
    * * string page_token = 6; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1911,8 +1683,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
          * The `next_page_token` returned from the previous `ListAssetsResponse`, or
          * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -1920,14 +1690,15 @@ public java.lang.String getPageToken() {
          * 
    * * string page_token = 6; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1935,8 +1706,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
          * The `next_page_token` returned from the previous `ListAssetsResponse`, or
          * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -1944,22 +1713,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
          * The `next_page_token` returned from the previous `ListAssetsResponse`, or
          * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -1967,18 +1734,15 @@ public Builder setPageToken(java.lang.String value) {
          * 
    * * string page_token = 6; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
          * The `next_page_token` returned from the previous `ListAssetsResponse`, or
          * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -1986,33 +1750,29 @@ 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList relationshipTypes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList relationshipTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRelationshipTypesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { relationshipTypes_ = new com.google.protobuf.LazyStringArrayList(relationshipTypes_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2032,15 +1792,13 @@ private void ensureRelationshipTypesIsMutable() {
          * 
    * * repeated string relationship_types = 7; - * * @return A list containing the relationshipTypes. */ - public com.google.protobuf.ProtocolStringList getRelationshipTypesList() { + public com.google.protobuf.ProtocolStringList + getRelationshipTypesList() { return relationshipTypes_.getUnmodifiableView(); } /** - * - * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2060,15 +1818,12 @@ public com.google.protobuf.ProtocolStringList getRelationshipTypesList() {
          * 
    * * repeated string relationship_types = 7; - * * @return The count of relationshipTypes. */ public int getRelationshipTypesCount() { return relationshipTypes_.size(); } /** - * - * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2088,7 +1843,6 @@ public int getRelationshipTypesCount() {
          * 
    * * repeated string relationship_types = 7; - * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -2096,8 +1850,6 @@ public java.lang.String getRelationshipTypes(int index) { return relationshipTypes_.get(index); } /** - * - * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2117,16 +1869,14 @@ public java.lang.String getRelationshipTypes(int index) {
          * 
    * * repeated string relationship_types = 7; - * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) { + public com.google.protobuf.ByteString + getRelationshipTypesBytes(int index) { return relationshipTypes_.getByteString(index); } /** - * - * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2146,23 +1896,21 @@ public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) {
          * 
    * * repeated string relationship_types = 7; - * * @param index The index to set the value at. * @param value The relationshipTypes to set. * @return This builder for chaining. */ - public Builder setRelationshipTypes(int index, java.lang.String value) { + public Builder setRelationshipTypes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRelationshipTypesIsMutable(); + throw new NullPointerException(); + } + ensureRelationshipTypesIsMutable(); relationshipTypes_.set(index, value); onChanged(); return this; } /** - * - * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2182,22 +1930,20 @@ public Builder setRelationshipTypes(int index, java.lang.String value) {
          * 
    * * repeated string relationship_types = 7; - * * @param value The relationshipTypes to add. * @return This builder for chaining. */ - public Builder addRelationshipTypes(java.lang.String value) { + public Builder addRelationshipTypes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRelationshipTypesIsMutable(); + throw new NullPointerException(); + } + ensureRelationshipTypesIsMutable(); relationshipTypes_.add(value); onChanged(); return this; } /** - * - * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2217,19 +1963,18 @@ public Builder addRelationshipTypes(java.lang.String value) {
          * 
    * * repeated string relationship_types = 7; - * * @param values The relationshipTypes to add. * @return This builder for chaining. */ - public Builder addAllRelationshipTypes(java.lang.Iterable values) { + public Builder addAllRelationshipTypes( + java.lang.Iterable values) { ensureRelationshipTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relationshipTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, relationshipTypes_); onChanged(); return this; } /** - * - * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2249,7 +1994,6 @@ public Builder addAllRelationshipTypes(java.lang.Iterable valu
          * 
    * * repeated string relationship_types = 7; - * * @return This builder for chaining. */ public Builder clearRelationshipTypes() { @@ -2259,8 +2003,6 @@ public Builder clearRelationshipTypes() { return this; } /** - * - * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2280,23 +2022,23 @@ public Builder clearRelationshipTypes() {
          * 
    * * repeated string relationship_types = 7; - * * @param value The bytes of the relationshipTypes to add. * @return This builder for chaining. */ - public Builder addRelationshipTypesBytes(com.google.protobuf.ByteString value) { + public Builder addRelationshipTypesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureRelationshipTypesIsMutable(); relationshipTypes_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2306,12 +2048,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.ListAssetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.ListAssetsRequest) private static final com.google.cloud.asset.v1.ListAssetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.ListAssetsRequest(); } @@ -2320,16 +2062,27 @@ public static com.google.cloud.asset.v1.ListAssetsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAssetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2344,4 +2097,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.ListAssetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequestOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequestOrBuilder.java similarity index 85% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequestOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequestOrBuilder.java index d54ad45a57c0..e9783d1d8016 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequestOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequestOrBuilder.java @@ -1,68 +1,41 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface ListAssetsRequestOrBuilder - extends +public interface ListAssetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.ListAssetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    -   * Required. Name of the organization, folder, or project the assets belong
    -   * to. Format: "organizations/[organization-number]" (such as
    -   * "organizations/123"), "projects/[project-id]" (such as
    -   * "projects/my-project-id"), "projects/[project-number]" (such as
    -   * "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
    +   * Required. Name of the organization, folder, or project the assets belong to. Format:
    +   * "organizations/[organization-number]" (such as "organizations/123"),
    +   * "projects/[project-id]" (such as "projects/my-project-id"),
    +   * "projects/[project-number]" (such as "projects/12345"), or
    +   * "folders/[folder-number]" (such as "folders/12345").
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    -   * Required. Name of the organization, folder, or project the assets belong
    -   * to. Format: "organizations/[organization-number]" (such as
    -   * "organizations/123"), "projects/[project-id]" (such as
    -   * "projects/my-project-id"), "projects/[project-number]" (such as
    -   * "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
    +   * Required. Name of the organization, folder, or project the assets belong to. Format:
    +   * "organizations/[organization-number]" (such as "organizations/123"),
    +   * "projects/[project-id]" (such as "projects/my-project-id"),
    +   * "projects/[project-number]" (such as "projects/12345"), or
    +   * "folders/[folder-number]" (such as "folders/12345").
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -72,13 +45,10 @@ public interface ListAssetsRequestOrBuilder
        * 
    * * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -88,13 +58,10 @@ public interface ListAssetsRequestOrBuilder
        * 
    * * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -108,8 +75,6 @@ public interface ListAssetsRequestOrBuilder
       com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -128,13 +93,11 @@ public interface ListAssetsRequestOrBuilder
        * 
    * * repeated string asset_types = 3; - * * @return A list containing the assetTypes. */ - java.util.List getAssetTypesList(); + java.util.List + getAssetTypesList(); /** - * - * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -153,13 +116,10 @@ public interface ListAssetsRequestOrBuilder
        * 
    * * repeated string asset_types = 3; - * * @return The count of assetTypes. */ int getAssetTypesCount(); /** - * - * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -178,14 +138,11 @@ public interface ListAssetsRequestOrBuilder
        * 
    * * repeated string asset_types = 3; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ java.lang.String getAssetTypes(int index); /** - * - * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -204,56 +161,45 @@ public interface ListAssetsRequestOrBuilder
        * 
    * * repeated string asset_types = 3; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - com.google.protobuf.ByteString getAssetTypesBytes(int index); + com.google.protobuf.ByteString + getAssetTypesBytes(int index); /** - * - * *
        * Asset content type. If not specified, no content but the asset name will
        * be returned.
        * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @return The enum numeric value on the wire for contentType. */ int getContentTypeValue(); /** - * - * *
        * Asset content type. If not specified, no content but the asset name will
        * be returned.
        * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; - * * @return The contentType. */ com.google.cloud.asset.v1.ContentType getContentType(); /** - * - * *
        * The maximum number of assets to be returned in a single response. Default
        * is 100, minimum is 1, and maximum is 1000.
        * 
    * * int32 page_size = 5; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
        * The `next_page_token` returned from the previous `ListAssetsResponse`, or
        * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -261,13 +207,10 @@ public interface ListAssetsRequestOrBuilder
        * 
    * * string page_token = 6; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
        * The `next_page_token` returned from the previous `ListAssetsResponse`, or
        * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -275,14 +218,12 @@ public interface ListAssetsRequestOrBuilder
        * 
    * * string page_token = 6; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -302,13 +243,11 @@ public interface ListAssetsRequestOrBuilder
        * 
    * * repeated string relationship_types = 7; - * * @return A list containing the relationshipTypes. */ - java.util.List getRelationshipTypesList(); + java.util.List + getRelationshipTypesList(); /** - * - * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -328,13 +267,10 @@ public interface ListAssetsRequestOrBuilder
        * 
    * * repeated string relationship_types = 7; - * * @return The count of relationshipTypes. */ int getRelationshipTypesCount(); /** - * - * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -354,14 +290,11 @@ public interface ListAssetsRequestOrBuilder
        * 
    * * repeated string relationship_types = 7; - * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ java.lang.String getRelationshipTypes(int index); /** - * - * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -381,9 +314,9 @@ public interface ListAssetsRequestOrBuilder
        * 
    * * repeated string relationship_types = 7; - * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - com.google.protobuf.ByteString getRelationshipTypesBytes(int index); + com.google.protobuf.ByteString + getRelationshipTypesBytes(int index); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponse.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponse.java similarity index 69% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponse.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponse.java index 9836d48991f5..c614f42714b3 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponse.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * ListAssets response.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.ListAssetsResponse} */ -public final class ListAssetsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListAssetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.ListAssetsResponse) ListAssetsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListAssetsResponse.newBuilder() to construct. private ListAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAssetsResponse() { assets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,116 +26,37 @@ private ListAssetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAssetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private ListAssetsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - assets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - assets_.add( - input.readMessage(com.google.cloud.asset.v1.Asset.parser(), extensionRegistry)); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - assets_ = java.util.Collections.unmodifiableList(assets_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListAssetsResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ListAssetsResponse.class, - com.google.cloud.asset.v1.ListAssetsResponse.Builder.class); + com.google.cloud.asset.v1.ListAssetsResponse.class, com.google.cloud.asset.v1.ListAssetsResponse.Builder.class); } public static final int READ_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp readTime_; /** - * - * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -161,14 +64,11 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; - * * @return The readTime. */ @java.lang.Override @@ -176,8 +76,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
        * Time the snapshot was taken.
        * 
    @@ -192,8 +90,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int ASSETS_FIELD_NUMBER = 2; private java.util.List assets_; /** - * - * *
        * Assets.
        * 
    @@ -205,8 +101,6 @@ public java.util.List getAssetsList() { return assets_; } /** - * - * *
        * Assets.
        * 
    @@ -214,13 +108,11 @@ public java.util.List getAssetsList() { * repeated .google.cloud.asset.v1.Asset assets = 2; */ @java.lang.Override - public java.util.List + public java.util.List getAssetsOrBuilderList() { return assets_; } /** - * - * *
        * Assets.
        * 
    @@ -232,8 +124,6 @@ public int getAssetsCount() { return assets_.size(); } /** - * - * *
        * Assets.
        * 
    @@ -245,8 +135,6 @@ public com.google.cloud.asset.v1.Asset getAssets(int index) { return assets_.get(index); } /** - * - * *
        * Assets.
        * 
    @@ -254,15 +142,14 @@ public com.google.cloud.asset.v1.Asset getAssets(int index) { * repeated .google.cloud.asset.v1.Asset assets = 2; */ @java.lang.Override - public com.google.cloud.asset.v1.AssetOrBuilder getAssetsOrBuilder(int index) { + public com.google.cloud.asset.v1.AssetOrBuilder getAssetsOrBuilder( + int index) { return assets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** - * - * *
        * Token to retrieve the next page of results. It expires 72 hours after the
        * page token for the first page is generated. Set to empty if there are no
    @@ -270,7 +157,6 @@ public com.google.cloud.asset.v1.AssetOrBuilder getAssetsOrBuilder(int index) {
        * 
    * * string next_page_token = 3; - * * @return The nextPageToken. */ @java.lang.Override @@ -279,15 +165,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
        * Token to retrieve the next page of results. It expires 72 hours after the
        * page token for the first page is generated. Set to empty if there are no
    @@ -295,15 +180,16 @@ public java.lang.String getNextPageToken() {
        * 
    * * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -312,7 +198,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,7 +209,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (readTime_ != null) { output.writeMessage(1, getReadTime()); } @@ -334,7 +220,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -344,15 +230,17 @@ public int getSerializedSize() { size = 0; if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getReadTime()); } for (int i = 0; i < assets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, assets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, assets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -360,21 +248,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.ListAssetsResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1.ListAssetsResponse other = - (com.google.cloud.asset.v1.ListAssetsResponse) obj; + com.google.cloud.asset.v1.ListAssetsResponse other = (com.google.cloud.asset.v1.ListAssetsResponse) obj; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; - } - if (!getAssetsList().equals(other.getAssetsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; + } + if (!getAssetsList() + .equals(other.getAssetsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -395,150 +285,135 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.ListAssetsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.ListAssetsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ListAssetsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.ListAssetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ListAssetsResponse 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.asset.v1.ListAssetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ListAssetsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.ListAssetsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ListAssetsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.ListAssetsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.ListAssetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ListAssetsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.ListAssetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ListAssetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.ListAssetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * ListAssets response.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.ListAssetsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.ListAssetsResponse) com.google.cloud.asset.v1.ListAssetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListAssetsResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ListAssetsResponse.class, - com.google.cloud.asset.v1.ListAssetsResponse.Builder.class); + com.google.cloud.asset.v1.ListAssetsResponse.class, com.google.cloud.asset.v1.ListAssetsResponse.Builder.class); } // Construct using com.google.cloud.asset.v1.ListAssetsResponse.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAssetsFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); @@ -550,19 +425,20 @@ public Builder clear() { } if (assetsBuilder_ == null) { assets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + assets_ = null; assetsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListAssetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListAssetsResponse_descriptor; } @java.lang.Override @@ -581,8 +457,7 @@ public com.google.cloud.asset.v1.ListAssetsResponse build() { @java.lang.Override public com.google.cloud.asset.v1.ListAssetsResponse buildPartial() { - com.google.cloud.asset.v1.ListAssetsResponse result = - new com.google.cloud.asset.v1.ListAssetsResponse(this); + com.google.cloud.asset.v1.ListAssetsResponse result = new com.google.cloud.asset.v1.ListAssetsResponse(this); int from_bitField0_ = bitField0_; if (readTimeBuilder_ == null) { result.readTime_ = readTime_; @@ -607,39 +482,38 @@ public com.google.cloud.asset.v1.ListAssetsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.ListAssetsResponse) { - return mergeFrom((com.google.cloud.asset.v1.ListAssetsResponse) other); + return mergeFrom((com.google.cloud.asset.v1.ListAssetsResponse)other); } else { super.mergeFrom(other); return this; @@ -669,10 +543,9 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ListAssetsResponse other) { assetsBuilder_ = null; assets_ = other.assets_; bitField0_ = (bitField0_ & ~0x00000001); - assetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAssetsFieldBuilder() - : null; + assetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAssetsFieldBuilder() : null; } else { assetsBuilder_.addAllMessages(other.assets_); } @@ -682,7 +555,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ListAssetsResponse other) { nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -697,51 +570,79 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.ListAssetsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getReadTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + com.google.cloud.asset.v1.Asset m = + input.readMessage( + com.google.cloud.asset.v1.Asset.parser(), + extensionRegistry); + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.add(m); + } else { + assetsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.ListAssetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
          * Time the snapshot was taken.
          * 
    * * .google.protobuf.Timestamp read_time = 1; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
          * Time the snapshot was taken.
          * 
    * * .google.protobuf.Timestamp read_time = 1; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -752,8 +653,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
          * Time the snapshot was taken.
          * 
    @@ -774,15 +673,14 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
          * Time the snapshot was taken.
          * 
    * * .google.protobuf.Timestamp read_time = 1; */ - public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -793,8 +691,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue return this; } /** - * - * *
          * Time the snapshot was taken.
          * 
    @@ -805,7 +701,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -817,8 +713,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
          * Time the snapshot was taken.
          * 
    @@ -837,8 +731,6 @@ public Builder clearReadTime() { return this; } /** - * - * *
          * Time the snapshot was taken.
          * 
    @@ -846,13 +738,11 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 1; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** - * - * *
          * Time the snapshot was taken.
          * 
    @@ -863,12 +753,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** - * - * *
          * Time the snapshot was taken.
          * 
    @@ -876,41 +765,32 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getReadTime(), getParentForChildren(), isClean()); + readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getReadTime(), + getParentForChildren(), + isClean()); readTime_ = null; } return readTimeBuilder_; } private java.util.List assets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAssetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assets_ = new java.util.ArrayList(assets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.Asset, - com.google.cloud.asset.v1.Asset.Builder, - com.google.cloud.asset.v1.AssetOrBuilder> - assetsBuilder_; + com.google.cloud.asset.v1.Asset, com.google.cloud.asset.v1.Asset.Builder, com.google.cloud.asset.v1.AssetOrBuilder> assetsBuilder_; /** - * - * *
          * Assets.
          * 
    @@ -925,8 +805,6 @@ public java.util.List getAssetsList() { } } /** - * - * *
          * Assets.
          * 
    @@ -941,8 +819,6 @@ public int getAssetsCount() { } } /** - * - * *
          * Assets.
          * 
    @@ -957,15 +833,14 @@ public com.google.cloud.asset.v1.Asset getAssets(int index) { } } /** - * - * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - public Builder setAssets(int index, com.google.cloud.asset.v1.Asset value) { + public Builder setAssets( + int index, com.google.cloud.asset.v1.Asset value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -979,15 +854,14 @@ public Builder setAssets(int index, com.google.cloud.asset.v1.Asset value) { return this; } /** - * - * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - public Builder setAssets(int index, com.google.cloud.asset.v1.Asset.Builder builderForValue) { + public Builder setAssets( + int index, com.google.cloud.asset.v1.Asset.Builder builderForValue) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.set(index, builderForValue.build()); @@ -998,8 +872,6 @@ public Builder setAssets(int index, com.google.cloud.asset.v1.Asset.Builder buil return this; } /** - * - * *
          * Assets.
          * 
    @@ -1020,15 +892,14 @@ public Builder addAssets(com.google.cloud.asset.v1.Asset value) { return this; } /** - * - * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - public Builder addAssets(int index, com.google.cloud.asset.v1.Asset value) { + public Builder addAssets( + int index, com.google.cloud.asset.v1.Asset value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1042,15 +913,14 @@ public Builder addAssets(int index, com.google.cloud.asset.v1.Asset value) { return this; } /** - * - * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - public Builder addAssets(com.google.cloud.asset.v1.Asset.Builder builderForValue) { + public Builder addAssets( + com.google.cloud.asset.v1.Asset.Builder builderForValue) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.add(builderForValue.build()); @@ -1061,15 +931,14 @@ public Builder addAssets(com.google.cloud.asset.v1.Asset.Builder builderForValue return this; } /** - * - * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - public Builder addAssets(int index, com.google.cloud.asset.v1.Asset.Builder builderForValue) { + public Builder addAssets( + int index, com.google.cloud.asset.v1.Asset.Builder builderForValue) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.add(index, builderForValue.build()); @@ -1080,8 +949,6 @@ public Builder addAssets(int index, com.google.cloud.asset.v1.Asset.Builder buil return this; } /** - * - * *
          * Assets.
          * 
    @@ -1092,7 +959,8 @@ public Builder addAllAssets( java.lang.Iterable values) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, assets_); onChanged(); } else { assetsBuilder_.addAllMessages(values); @@ -1100,8 +968,6 @@ public Builder addAllAssets( return this; } /** - * - * *
          * Assets.
          * 
    @@ -1119,8 +985,6 @@ public Builder clearAssets() { return this; } /** - * - * *
          * Assets.
          * 
    @@ -1138,44 +1002,39 @@ public Builder removeAssets(int index) { return this; } /** - * - * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - public com.google.cloud.asset.v1.Asset.Builder getAssetsBuilder(int index) { + public com.google.cloud.asset.v1.Asset.Builder getAssetsBuilder( + int index) { return getAssetsFieldBuilder().getBuilder(index); } /** - * - * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - public com.google.cloud.asset.v1.AssetOrBuilder getAssetsOrBuilder(int index) { + public com.google.cloud.asset.v1.AssetOrBuilder getAssetsOrBuilder( + int index) { if (assetsBuilder_ == null) { - return assets_.get(index); - } else { + return assets_.get(index); } else { return assetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - public java.util.List - getAssetsOrBuilderList() { + public java.util.List + getAssetsOrBuilderList() { if (assetsBuilder_ != null) { return assetsBuilder_.getMessageOrBuilderList(); } else { @@ -1183,8 +1042,6 @@ public com.google.cloud.asset.v1.AssetOrBuilder getAssetsOrBuilder(int index) { } } /** - * - * *
          * Assets.
          * 
    @@ -1192,47 +1049,42 @@ public com.google.cloud.asset.v1.AssetOrBuilder getAssetsOrBuilder(int index) { * repeated .google.cloud.asset.v1.Asset assets = 2; */ public com.google.cloud.asset.v1.Asset.Builder addAssetsBuilder() { - return getAssetsFieldBuilder() - .addBuilder(com.google.cloud.asset.v1.Asset.getDefaultInstance()); + return getAssetsFieldBuilder().addBuilder( + com.google.cloud.asset.v1.Asset.getDefaultInstance()); } /** - * - * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - public com.google.cloud.asset.v1.Asset.Builder addAssetsBuilder(int index) { - return getAssetsFieldBuilder() - .addBuilder(index, com.google.cloud.asset.v1.Asset.getDefaultInstance()); + public com.google.cloud.asset.v1.Asset.Builder addAssetsBuilder( + int index) { + return getAssetsFieldBuilder().addBuilder( + index, com.google.cloud.asset.v1.Asset.getDefaultInstance()); } /** - * - * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - public java.util.List getAssetsBuilderList() { + public java.util.List + getAssetsBuilderList() { return getAssetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.Asset, - com.google.cloud.asset.v1.Asset.Builder, - com.google.cloud.asset.v1.AssetOrBuilder> + com.google.cloud.asset.v1.Asset, com.google.cloud.asset.v1.Asset.Builder, com.google.cloud.asset.v1.AssetOrBuilder> getAssetsFieldBuilder() { if (assetsBuilder_ == null) { - assetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.Asset, - com.google.cloud.asset.v1.Asset.Builder, - com.google.cloud.asset.v1.AssetOrBuilder>( - assets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + assetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.Asset, com.google.cloud.asset.v1.Asset.Builder, com.google.cloud.asset.v1.AssetOrBuilder>( + assets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); assets_ = null; } return assetsBuilder_; @@ -1240,8 +1092,6 @@ public java.util.List getAssetsBuilderL private java.lang.Object nextPageToken_ = ""; /** - * - * *
          * Token to retrieve the next page of results. It expires 72 hours after the
          * page token for the first page is generated. Set to empty if there are no
    @@ -1249,13 +1099,13 @@ public java.util.List getAssetsBuilderL
          * 
    * * string next_page_token = 3; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1264,8 +1114,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
          * Token to retrieve the next page of results. It expires 72 hours after the
          * page token for the first page is generated. Set to empty if there are no
    @@ -1273,14 +1121,15 @@ public java.lang.String getNextPageToken() {
          * 
    * * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1288,8 +1137,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
          * Token to retrieve the next page of results. It expires 72 hours after the
          * page token for the first page is generated. Set to empty if there are no
    @@ -1297,22 +1144,20 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
          * Token to retrieve the next page of results. It expires 72 hours after the
          * page token for the first page is generated. Set to empty if there are no
    @@ -1320,18 +1165,15 @@ public Builder setNextPageToken(java.lang.String value) {
          * 
    * * string next_page_token = 3; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
          * Token to retrieve the next page of results. It expires 72 hours after the
          * page token for the first page is generated. Set to empty if there are no
    @@ -1339,23 +1181,23 @@ 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1365,12 +1207,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.ListAssetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.ListAssetsResponse) private static final com.google.cloud.asset.v1.ListAssetsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.ListAssetsResponse(); } @@ -1379,16 +1221,27 @@ public static com.google.cloud.asset.v1.ListAssetsResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAssetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1403,4 +1256,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.ListAssetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponseOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponseOrBuilder.java similarity index 69% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponseOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponseOrBuilder.java index f44c37ceea77..788d4a5158c7 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponseOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface ListAssetsResponseOrBuilder - extends +public interface ListAssetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.ListAssetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
        * Time the snapshot was taken.
        * 
    @@ -59,18 +35,15 @@ public interface ListAssetsResponseOrBuilder com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** - * - * *
        * Assets.
        * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - java.util.List getAssetsList(); + java.util.List + getAssetsList(); /** - * - * *
        * Assets.
        * 
    @@ -79,8 +52,6 @@ public interface ListAssetsResponseOrBuilder */ com.google.cloud.asset.v1.Asset getAssets(int index); /** - * - * *
        * Assets.
        * 
    @@ -89,29 +60,25 @@ public interface ListAssetsResponseOrBuilder */ int getAssetsCount(); /** - * - * *
        * Assets.
        * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - java.util.List getAssetsOrBuilderList(); + java.util.List + getAssetsOrBuilderList(); /** - * - * *
        * Assets.
        * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - com.google.cloud.asset.v1.AssetOrBuilder getAssetsOrBuilder(int index); + com.google.cloud.asset.v1.AssetOrBuilder getAssetsOrBuilder( + int index); /** - * - * *
        * Token to retrieve the next page of results. It expires 72 hours after the
        * page token for the first page is generated. Set to empty if there are no
    @@ -119,13 +86,10 @@ public interface ListAssetsResponseOrBuilder
        * 
    * * string next_page_token = 3; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
        * Token to retrieve the next page of results. It expires 72 hours after the
        * page token for the first page is generated. Set to empty if there are no
    @@ -133,8 +97,8 @@ public interface ListAssetsResponseOrBuilder
        * 
    * * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequest.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequest.java similarity index 63% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequest.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequest.java index 737d7605fd5e..08dd5e15935b 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequest.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequest.java @@ -1,123 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * List asset feeds request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.ListFeedsRequest} */ -public final class ListFeedsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFeedsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.ListFeedsRequest) ListFeedsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFeedsRequest.newBuilder() to construct. private ListFeedsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFeedsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFeedsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private ListFeedsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListFeedsRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListFeedsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ListFeedsRequest.class, - com.google.cloud.asset.v1.ListFeedsRequest.Builder.class); + com.google.cloud.asset.v1.ListFeedsRequest.class, com.google.cloud.asset.v1.ListFeedsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
        * Required. The parent project/folder/organization whose feeds are to be
        * listed. It can only be using project/folder/organization number (such as
    @@ -125,7 +58,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -134,15 +66,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
        * Required. The parent project/folder/organization whose feeds are to be
        * listed. It can only be using project/folder/organization number (such as
    @@ -150,15 +81,16 @@ public java.lang.String getParent() {
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -167,7 +99,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,11 +110,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -195,7 +127,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -203,16 +135,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.ListFeedsRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.ListFeedsRequest other = - (com.google.cloud.asset.v1.ListFeedsRequest) obj; + com.google.cloud.asset.v1.ListFeedsRequest other = (com.google.cloud.asset.v1.ListFeedsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -225,148 +157,135 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ListFeedsRequest 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.asset.v1.ListFeedsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.ListFeedsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.ListFeedsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ListFeedsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.ListFeedsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * List asset feeds request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.ListFeedsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.ListFeedsRequest) com.google.cloud.asset.v1.ListFeedsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListFeedsRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListFeedsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ListFeedsRequest.class, - com.google.cloud.asset.v1.ListFeedsRequest.Builder.class); + com.google.cloud.asset.v1.ListFeedsRequest.class, com.google.cloud.asset.v1.ListFeedsRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.ListFeedsRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -376,9 +295,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor; } @java.lang.Override @@ -397,8 +316,7 @@ public com.google.cloud.asset.v1.ListFeedsRequest build() { @java.lang.Override public com.google.cloud.asset.v1.ListFeedsRequest buildPartial() { - com.google.cloud.asset.v1.ListFeedsRequest result = - new com.google.cloud.asset.v1.ListFeedsRequest(this); + com.google.cloud.asset.v1.ListFeedsRequest result = new com.google.cloud.asset.v1.ListFeedsRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -408,39 +326,38 @@ public com.google.cloud.asset.v1.ListFeedsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.ListFeedsRequest) { - return mergeFrom((com.google.cloud.asset.v1.ListFeedsRequest) other); + return mergeFrom((com.google.cloud.asset.v1.ListFeedsRequest)other); } else { super.mergeFrom(other); return this; @@ -453,7 +370,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ListFeedsRequest other) { parent_ = other.parent_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -468,24 +385,40 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.ListFeedsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.ListFeedsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object parent_ = ""; /** - * - * *
          * Required. The parent project/folder/organization whose feeds are to be
          * listed. It can only be using project/folder/organization number (such as
    @@ -493,13 +426,13 @@ public Builder mergeFrom(
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -508,8 +441,6 @@ public java.lang.String getParent() { } } /** - * - * *
          * Required. The parent project/folder/organization whose feeds are to be
          * listed. It can only be using project/folder/organization number (such as
    @@ -517,14 +448,15 @@ public java.lang.String getParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -532,8 +464,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
          * Required. The parent project/folder/organization whose feeds are to be
          * listed. It can only be using project/folder/organization number (such as
    @@ -541,22 +471,20 @@ public com.google.protobuf.ByteString getParentBytes() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
          * Required. The parent project/folder/organization whose feeds are to be
          * listed. It can only be using project/folder/organization number (such as
    @@ -564,18 +492,15 @@ public Builder setParent(java.lang.String value) {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
          * Required. The parent project/folder/organization whose feeds are to be
          * listed. It can only be using project/folder/organization number (such as
    @@ -583,23 +508,23 @@ public Builder clearParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -609,12 +534,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.ListFeedsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.ListFeedsRequest) private static final com.google.cloud.asset.v1.ListFeedsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.ListFeedsRequest(); } @@ -623,16 +548,27 @@ public static com.google.cloud.asset.v1.ListFeedsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFeedsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFeedsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeedsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +583,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.ListFeedsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequestOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequestOrBuilder.java similarity index 59% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequestOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequestOrBuilder.java index 7c4e5f3cb8b3..be5ab6097189 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequestOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface ListFeedsRequestOrBuilder - extends +public interface ListFeedsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.ListFeedsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The parent project/folder/organization whose feeds are to be
        * listed. It can only be using project/folder/organization number (such as
    @@ -33,13 +15,10 @@ public interface ListFeedsRequestOrBuilder
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
        * Required. The parent project/folder/organization whose feeds are to be
        * listed. It can only be using project/folder/organization number (such as
    @@ -47,8 +26,8 @@ public interface ListFeedsRequestOrBuilder
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponse.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponse.java similarity index 65% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponse.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponse.java index b0b58308cddc..4ea1d13b5dc2 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponse.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponse.java @@ -1,122 +1,52 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -/** Protobuf type {@code google.cloud.asset.v1.ListFeedsResponse} */ -public final class ListFeedsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.asset.v1.ListFeedsResponse} + */ +public final class ListFeedsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.ListFeedsResponse) ListFeedsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFeedsResponse.newBuilder() to construct. private ListFeedsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFeedsResponse() { feeds_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFeedsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private ListFeedsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - feeds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - feeds_.add( - input.readMessage(com.google.cloud.asset.v1.Feed.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - feeds_ = java.util.Collections.unmodifiableList(feeds_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListFeedsResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListFeedsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ListFeedsResponse.class, - com.google.cloud.asset.v1.ListFeedsResponse.Builder.class); + com.google.cloud.asset.v1.ListFeedsResponse.class, com.google.cloud.asset.v1.ListFeedsResponse.Builder.class); } public static final int FEEDS_FIELD_NUMBER = 1; private java.util.List feeds_; /** - * - * *
        * A list of feeds.
        * 
    @@ -128,8 +58,6 @@ public java.util.List getFeedsList() { return feeds_; } /** - * - * *
        * A list of feeds.
        * 
    @@ -137,12 +65,11 @@ public java.util.List getFeedsList() { * repeated .google.cloud.asset.v1.Feed feeds = 1; */ @java.lang.Override - public java.util.List getFeedsOrBuilderList() { + public java.util.List + getFeedsOrBuilderList() { return feeds_; } /** - * - * *
        * A list of feeds.
        * 
    @@ -154,8 +81,6 @@ public int getFeedsCount() { return feeds_.size(); } /** - * - * *
        * A list of feeds.
        * 
    @@ -167,8 +92,6 @@ public com.google.cloud.asset.v1.Feed getFeeds(int index) { return feeds_.get(index); } /** - * - * *
        * A list of feeds.
        * 
    @@ -176,12 +99,12 @@ public com.google.cloud.asset.v1.Feed getFeeds(int index) { * repeated .google.cloud.asset.v1.Feed feeds = 1; */ @java.lang.Override - public com.google.cloud.asset.v1.FeedOrBuilder getFeedsOrBuilder(int index) { + public com.google.cloud.asset.v1.FeedOrBuilder getFeedsOrBuilder( + int index) { return feeds_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,11 +116,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < feeds_.size(); i++) { output.writeMessage(1, feeds_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -207,9 +131,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < feeds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, feeds_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, feeds_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -217,16 +142,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.ListFeedsResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1.ListFeedsResponse other = - (com.google.cloud.asset.v1.ListFeedsResponse) obj; + com.google.cloud.asset.v1.ListFeedsResponse other = (com.google.cloud.asset.v1.ListFeedsResponse) obj; - if (!getFeedsList().equals(other.getFeedsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getFeedsList() + .equals(other.getFeedsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,158 +166,148 @@ public int hashCode() { hash = (37 * hash) + FEEDS_FIELD_NUMBER; hash = (53 * hash) + getFeedsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ListFeedsResponse 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.asset.v1.ListFeedsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.ListFeedsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.ListFeedsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ListFeedsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.ListFeedsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.asset.v1.ListFeedsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.asset.v1.ListFeedsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.ListFeedsResponse) com.google.cloud.asset.v1.ListFeedsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListFeedsResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListFeedsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ListFeedsResponse.class, - com.google.cloud.asset.v1.ListFeedsResponse.Builder.class); + com.google.cloud.asset.v1.ListFeedsResponse.class, com.google.cloud.asset.v1.ListFeedsResponse.Builder.class); } // Construct using com.google.cloud.asset.v1.ListFeedsResponse.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getFeedsFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); if (feedsBuilder_ == null) { feeds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + feeds_ = null; feedsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor; } @java.lang.Override @@ -411,8 +326,7 @@ public com.google.cloud.asset.v1.ListFeedsResponse build() { @java.lang.Override public com.google.cloud.asset.v1.ListFeedsResponse buildPartial() { - com.google.cloud.asset.v1.ListFeedsResponse result = - new com.google.cloud.asset.v1.ListFeedsResponse(this); + com.google.cloud.asset.v1.ListFeedsResponse result = new com.google.cloud.asset.v1.ListFeedsResponse(this); int from_bitField0_ = bitField0_; if (feedsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -431,39 +345,38 @@ public com.google.cloud.asset.v1.ListFeedsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.ListFeedsResponse) { - return mergeFrom((com.google.cloud.asset.v1.ListFeedsResponse) other); + return mergeFrom((com.google.cloud.asset.v1.ListFeedsResponse)other); } else { super.mergeFrom(other); return this; @@ -490,16 +403,15 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ListFeedsResponse other) { feedsBuilder_ = null; feeds_ = other.feeds_; bitField0_ = (bitField0_ & ~0x00000001); - feedsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFeedsFieldBuilder() - : null; + feedsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFeedsFieldBuilder() : null; } else { feedsBuilder_.addAllMessages(other.feeds_); } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -514,41 +426,60 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.ListFeedsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.asset.v1.Feed m = + input.readMessage( + com.google.cloud.asset.v1.Feed.parser(), + extensionRegistry); + if (feedsBuilder_ == null) { + ensureFeedsIsMutable(); + feeds_.add(m); + } else { + feedsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.ListFeedsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.util.List feeds_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFeedsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { feeds_ = new java.util.ArrayList(feeds_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.Feed, - com.google.cloud.asset.v1.Feed.Builder, - com.google.cloud.asset.v1.FeedOrBuilder> - feedsBuilder_; + com.google.cloud.asset.v1.Feed, com.google.cloud.asset.v1.Feed.Builder, com.google.cloud.asset.v1.FeedOrBuilder> feedsBuilder_; /** - * - * *
          * A list of feeds.
          * 
    @@ -563,8 +494,6 @@ public java.util.List getFeedsList() { } } /** - * - * *
          * A list of feeds.
          * 
    @@ -579,8 +508,6 @@ public int getFeedsCount() { } } /** - * - * *
          * A list of feeds.
          * 
    @@ -595,15 +522,14 @@ public com.google.cloud.asset.v1.Feed getFeeds(int index) { } } /** - * - * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - public Builder setFeeds(int index, com.google.cloud.asset.v1.Feed value) { + public Builder setFeeds( + int index, com.google.cloud.asset.v1.Feed value) { if (feedsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -617,15 +543,14 @@ public Builder setFeeds(int index, com.google.cloud.asset.v1.Feed value) { return this; } /** - * - * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - public Builder setFeeds(int index, com.google.cloud.asset.v1.Feed.Builder builderForValue) { + public Builder setFeeds( + int index, com.google.cloud.asset.v1.Feed.Builder builderForValue) { if (feedsBuilder_ == null) { ensureFeedsIsMutable(); feeds_.set(index, builderForValue.build()); @@ -636,8 +561,6 @@ public Builder setFeeds(int index, com.google.cloud.asset.v1.Feed.Builder builde return this; } /** - * - * *
          * A list of feeds.
          * 
    @@ -658,15 +581,14 @@ public Builder addFeeds(com.google.cloud.asset.v1.Feed value) { return this; } /** - * - * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - public Builder addFeeds(int index, com.google.cloud.asset.v1.Feed value) { + public Builder addFeeds( + int index, com.google.cloud.asset.v1.Feed value) { if (feedsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -680,15 +602,14 @@ public Builder addFeeds(int index, com.google.cloud.asset.v1.Feed value) { return this; } /** - * - * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - public Builder addFeeds(com.google.cloud.asset.v1.Feed.Builder builderForValue) { + public Builder addFeeds( + com.google.cloud.asset.v1.Feed.Builder builderForValue) { if (feedsBuilder_ == null) { ensureFeedsIsMutable(); feeds_.add(builderForValue.build()); @@ -699,15 +620,14 @@ public Builder addFeeds(com.google.cloud.asset.v1.Feed.Builder builderForValue) return this; } /** - * - * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - public Builder addFeeds(int index, com.google.cloud.asset.v1.Feed.Builder builderForValue) { + public Builder addFeeds( + int index, com.google.cloud.asset.v1.Feed.Builder builderForValue) { if (feedsBuilder_ == null) { ensureFeedsIsMutable(); feeds_.add(index, builderForValue.build()); @@ -718,8 +638,6 @@ public Builder addFeeds(int index, com.google.cloud.asset.v1.Feed.Builder builde return this; } /** - * - * *
          * A list of feeds.
          * 
    @@ -730,7 +648,8 @@ public Builder addAllFeeds( java.lang.Iterable values) { if (feedsBuilder_ == null) { ensureFeedsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, feeds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, feeds_); onChanged(); } else { feedsBuilder_.addAllMessages(values); @@ -738,8 +657,6 @@ public Builder addAllFeeds( return this; } /** - * - * *
          * A list of feeds.
          * 
    @@ -757,8 +674,6 @@ public Builder clearFeeds() { return this; } /** - * - * *
          * A list of feeds.
          * 
    @@ -776,44 +691,39 @@ public Builder removeFeeds(int index) { return this; } /** - * - * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - public com.google.cloud.asset.v1.Feed.Builder getFeedsBuilder(int index) { + public com.google.cloud.asset.v1.Feed.Builder getFeedsBuilder( + int index) { return getFeedsFieldBuilder().getBuilder(index); } /** - * - * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - public com.google.cloud.asset.v1.FeedOrBuilder getFeedsOrBuilder(int index) { + public com.google.cloud.asset.v1.FeedOrBuilder getFeedsOrBuilder( + int index) { if (feedsBuilder_ == null) { - return feeds_.get(index); - } else { + return feeds_.get(index); } else { return feedsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - public java.util.List - getFeedsOrBuilderList() { + public java.util.List + getFeedsOrBuilderList() { if (feedsBuilder_ != null) { return feedsBuilder_.getMessageOrBuilderList(); } else { @@ -821,8 +731,6 @@ public com.google.cloud.asset.v1.FeedOrBuilder getFeedsOrBuilder(int index) { } } /** - * - * *
          * A list of feeds.
          * 
    @@ -830,53 +738,49 @@ public com.google.cloud.asset.v1.FeedOrBuilder getFeedsOrBuilder(int index) { * repeated .google.cloud.asset.v1.Feed feeds = 1; */ public com.google.cloud.asset.v1.Feed.Builder addFeedsBuilder() { - return getFeedsFieldBuilder().addBuilder(com.google.cloud.asset.v1.Feed.getDefaultInstance()); + return getFeedsFieldBuilder().addBuilder( + com.google.cloud.asset.v1.Feed.getDefaultInstance()); } /** - * - * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - public com.google.cloud.asset.v1.Feed.Builder addFeedsBuilder(int index) { - return getFeedsFieldBuilder() - .addBuilder(index, com.google.cloud.asset.v1.Feed.getDefaultInstance()); + public com.google.cloud.asset.v1.Feed.Builder addFeedsBuilder( + int index) { + return getFeedsFieldBuilder().addBuilder( + index, com.google.cloud.asset.v1.Feed.getDefaultInstance()); } /** - * - * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - public java.util.List getFeedsBuilderList() { + public java.util.List + getFeedsBuilderList() { return getFeedsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.Feed, - com.google.cloud.asset.v1.Feed.Builder, - com.google.cloud.asset.v1.FeedOrBuilder> + com.google.cloud.asset.v1.Feed, com.google.cloud.asset.v1.Feed.Builder, com.google.cloud.asset.v1.FeedOrBuilder> getFeedsFieldBuilder() { if (feedsBuilder_ == null) { - feedsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.Feed, - com.google.cloud.asset.v1.Feed.Builder, - com.google.cloud.asset.v1.FeedOrBuilder>( - feeds_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + feedsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.Feed, com.google.cloud.asset.v1.Feed.Builder, com.google.cloud.asset.v1.FeedOrBuilder>( + feeds_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); feeds_ = null; } return feedsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -886,12 +790,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.ListFeedsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.ListFeedsResponse) private static final com.google.cloud.asset.v1.ListFeedsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.ListFeedsResponse(); } @@ -900,16 +804,27 @@ public static com.google.cloud.asset.v1.ListFeedsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFeedsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFeedsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeedsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -924,4 +839,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.ListFeedsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponseOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponseOrBuilder.java similarity index 55% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponseOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponseOrBuilder.java index 6cbe869863db..d5bb75ca2b75 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponseOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface ListFeedsResponseOrBuilder - extends +public interface ListFeedsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.ListFeedsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * A list of feeds.
        * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - java.util.List getFeedsList(); + java.util.List + getFeedsList(); /** - * - * *
        * A list of feeds.
        * 
    @@ -44,8 +25,6 @@ public interface ListFeedsResponseOrBuilder */ com.google.cloud.asset.v1.Feed getFeeds(int index); /** - * - * *
        * A list of feeds.
        * 
    @@ -54,23 +33,21 @@ public interface ListFeedsResponseOrBuilder */ int getFeedsCount(); /** - * - * *
        * A list of feeds.
        * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - java.util.List getFeedsOrBuilderList(); + java.util.List + getFeedsOrBuilderList(); /** - * - * *
        * A list of feeds.
        * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - com.google.cloud.asset.v1.FeedOrBuilder getFeedsOrBuilder(int index); + com.google.cloud.asset.v1.FeedOrBuilder getFeedsOrBuilder( + int index); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequest.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequest.java similarity index 67% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequest.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequest.java index 2a293c9cdb1f..b51be4312241 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequest.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * Request to list saved queries.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.ListSavedQueriesRequest} */ -public final class ListSavedQueriesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSavedQueriesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.ListSavedQueriesRequest) ListSavedQueriesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSavedQueriesRequest.newBuilder() to construct. private ListSavedQueriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSavedQueriesRequest() { parent_ = ""; filter_ = ""; @@ -45,110 +27,39 @@ private ListSavedQueriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSavedQueriesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private ListSavedQueriesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ListSavedQueriesRequest.class, - com.google.cloud.asset.v1.ListSavedQueriesRequest.Builder.class); + com.google.cloud.asset.v1.ListSavedQueriesRequest.class, com.google.cloud.asset.v1.ListSavedQueriesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    -   * Required. The parent project/folder/organization whose savedQueries are to
    -   * be listed. It can only be using project/folder/organization number (such as
    +   * Required. The parent project/folder/organization whose savedQueries are to be
    +   * listed. It can only be using project/folder/organization number (such as
        * "folders/12345")", or a project ID (such as "projects/my-project-id").
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -157,33 +68,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    -   * Required. The parent project/folder/organization whose savedQueries are to
    -   * be listed. It can only be using project/folder/organization number (such as
    +   * Required. The parent project/folder/organization whose savedQueries are to be
    +   * listed. It can only be using project/folder/organization number (such as
        * "folders/12345")", or a project ID (such as "projects/my-project-id").
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -194,8 +103,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
        * Optional. The expression to filter resources.
        * The expression is a list of zero or more restrictions combined via logical
    @@ -206,7 +113,6 @@ public com.google.protobuf.ByteString getParentBytes() {
        * 
    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -215,15 +121,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
        * Optional. The expression to filter resources.
        * The expression is a list of zero or more restrictions combined via logical
    @@ -234,15 +139,16 @@ public java.lang.String getFilter() {
        * 
    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -253,17 +159,13 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    -   * Optional. The maximum number of saved queries to return per page. The
    -   * service may return fewer than this value. If unspecified, at most 50 will
    -   * be returned.
    +   * Optional. The maximum number of saved queries to return per page. The service may
    +   * return fewer than this value. If unspecified, at most 50 will be returned.
        *  The maximum value is 1000; values above 1000 will be coerced to 1000.
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -274,8 +176,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
        * Optional. A page token, received from a previous `ListSavedQueries` call.
        * Provide this to retrieve the subsequent page.
    @@ -284,7 +184,6 @@ public int getPageSize() {
        * 
    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -293,15 +192,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
        * Optional. A page token, received from a previous `ListSavedQueries` call.
        * Provide this to retrieve the subsequent page.
    @@ -310,15 +208,16 @@ public java.lang.String getPageToken() {
        * 
    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -327,7 +226,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -339,7 +237,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -352,7 +251,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -365,7 +264,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -373,7 +273,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -381,19 +281,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.ListSavedQueriesRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.ListSavedQueriesRequest other = - (com.google.cloud.asset.v1.ListSavedQueriesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + com.google.cloud.asset.v1.ListSavedQueriesRequest other = (com.google.cloud.asset.v1.ListSavedQueriesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -412,148 +315,135 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.ListSavedQueriesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ListSavedQueriesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.ListSavedQueriesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ListSavedQueriesRequest 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.asset.v1.ListSavedQueriesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ListSavedQueriesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.ListSavedQueriesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.ListSavedQueriesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ListSavedQueriesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.ListSavedQueriesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.ListSavedQueriesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ListSavedQueriesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.ListSavedQueriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ListSavedQueriesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.ListSavedQueriesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Request to list saved queries.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.ListSavedQueriesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.ListSavedQueriesRequest) com.google.cloud.asset.v1.ListSavedQueriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ListSavedQueriesRequest.class, - com.google.cloud.asset.v1.ListSavedQueriesRequest.Builder.class); + com.google.cloud.asset.v1.ListSavedQueriesRequest.class, com.google.cloud.asset.v1.ListSavedQueriesRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.ListSavedQueriesRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -569,9 +459,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_descriptor; } @java.lang.Override @@ -590,8 +480,7 @@ public com.google.cloud.asset.v1.ListSavedQueriesRequest build() { @java.lang.Override public com.google.cloud.asset.v1.ListSavedQueriesRequest buildPartial() { - com.google.cloud.asset.v1.ListSavedQueriesRequest result = - new com.google.cloud.asset.v1.ListSavedQueriesRequest(this); + com.google.cloud.asset.v1.ListSavedQueriesRequest result = new com.google.cloud.asset.v1.ListSavedQueriesRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -604,39 +493,38 @@ public com.google.cloud.asset.v1.ListSavedQueriesRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.ListSavedQueriesRequest) { - return mergeFrom((com.google.cloud.asset.v1.ListSavedQueriesRequest) other); + return mergeFrom((com.google.cloud.asset.v1.ListSavedQueriesRequest)other); } else { super.mergeFrom(other); return this; @@ -644,8 +532,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.ListSavedQueriesRequest other) { - if (other == com.google.cloud.asset.v1.ListSavedQueriesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.ListSavedQueriesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -661,7 +548,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ListSavedQueriesRequest other pageToken_ = other.pageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -676,41 +563,69 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.ListSavedQueriesRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.ListSavedQueriesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object parent_ = ""; /** - * - * *
    -     * Required. The parent project/folder/organization whose savedQueries are to
    -     * be listed. It can only be using project/folder/organization number (such as
    +     * Required. The parent project/folder/organization whose savedQueries are to be
    +     * listed. It can only be using project/folder/organization number (such as
          * "folders/12345")", or a project ID (such as "projects/my-project-id").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -719,25 +634,22 @@ public java.lang.String getParent() { } } /** - * - * *
    -     * Required. The parent project/folder/organization whose savedQueries are to
    -     * be listed. It can only be using project/folder/organization number (such as
    +     * Required. The parent project/folder/organization whose savedQueries are to be
    +     * listed. It can only be using project/folder/organization number (such as
          * "folders/12345")", or a project ID (such as "projects/my-project-id").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -745,73 +657,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
    -     * Required. The parent project/folder/organization whose savedQueries are to
    -     * be listed. It can only be using project/folder/organization number (such as
    +     * Required. The parent project/folder/organization whose savedQueries are to be
    +     * listed. It can only be using project/folder/organization number (such as
          * "folders/12345")", or a project ID (such as "projects/my-project-id").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
    -     * Required. The parent project/folder/organization whose savedQueries are to
    -     * be listed. It can only be using project/folder/organization number (such as
    +     * Required. The parent project/folder/organization whose savedQueries are to be
    +     * listed. It can only be using project/folder/organization number (such as
          * "folders/12345")", or a project ID (such as "projects/my-project-id").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
    -     * Required. The parent project/folder/organization whose savedQueries are to
    -     * be listed. It can only be using project/folder/organization number (such as
    +     * Required. The parent project/folder/organization whose savedQueries are to be
    +     * listed. It can only be using project/folder/organization number (such as
          * "folders/12345")", or a project ID (such as "projects/my-project-id").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -819,8 +718,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
          * Optional. The expression to filter resources.
          * The expression is a list of zero or more restrictions combined via logical
    @@ -831,13 +728,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
          * 
    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -846,8 +743,6 @@ public java.lang.String getFilter() { } } /** - * - * *
          * Optional. The expression to filter resources.
          * The expression is a list of zero or more restrictions combined via logical
    @@ -858,14 +753,15 @@ public java.lang.String getFilter() {
          * 
    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -873,8 +769,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
          * Optional. The expression to filter resources.
          * The expression is a list of zero or more restrictions combined via logical
    @@ -885,22 +779,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
          * 
    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
          * Optional. The expression to filter resources.
          * The expression is a list of zero or more restrictions combined via logical
    @@ -911,18 +803,15 @@ public Builder setFilter(java.lang.String value) {
          * 
    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
          * Optional. The expression to filter resources.
          * The expression is a list of zero or more restrictions combined via logical
    @@ -933,34 +822,30 @@ public Builder clearFilter() {
          * 
    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
    -     * Optional. The maximum number of saved queries to return per page. The
    -     * service may return fewer than this value. If unspecified, at most 50 will
    -     * be returned.
    +     * Optional. The maximum number of saved queries to return per page. The service may
    +     * return fewer than this value. If unspecified, at most 50 will be returned.
          *  The maximum value is 1000; values above 1000 will be coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -968,42 +853,34 @@ public int getPageSize() { return pageSize_; } /** - * - * *
    -     * Optional. The maximum number of saved queries to return per page. The
    -     * service may return fewer than this value. If unspecified, at most 50 will
    -     * be returned.
    +     * Optional. The maximum number of saved queries to return per page. The service may
    +     * return fewer than this value. If unspecified, at most 50 will be returned.
          *  The maximum value is 1000; values above 1000 will be coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
    -     * Optional. The maximum number of saved queries to return per page. The
    -     * service may return fewer than this value. If unspecified, at most 50 will
    -     * be returned.
    +     * Optional. The maximum number of saved queries to return per page. The service may
    +     * return fewer than this value. If unspecified, at most 50 will be returned.
          *  The maximum value is 1000; values above 1000 will be coerced to 1000.
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1011,8 +888,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
          * Optional. A page token, received from a previous `ListSavedQueries` call.
          * Provide this to retrieve the subsequent page.
    @@ -1021,13 +896,13 @@ public Builder clearPageSize() {
          * 
    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1036,8 +911,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
          * Optional. A page token, received from a previous `ListSavedQueries` call.
          * Provide this to retrieve the subsequent page.
    @@ -1046,14 +919,15 @@ public java.lang.String getPageToken() {
          * 
    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1061,8 +935,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
          * Optional. A page token, received from a previous `ListSavedQueries` call.
          * Provide this to retrieve the subsequent page.
    @@ -1071,22 +943,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
          * 
    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
          * Optional. A page token, received from a previous `ListSavedQueries` call.
          * Provide this to retrieve the subsequent page.
    @@ -1095,18 +965,15 @@ public Builder setPageToken(java.lang.String value) {
          * 
    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
          * Optional. A page token, received from a previous `ListSavedQueries` call.
          * Provide this to retrieve the subsequent page.
    @@ -1115,23 +982,23 @@ public Builder clearPageToken() {
          * 
    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1141,12 +1008,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.ListSavedQueriesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.ListSavedQueriesRequest) private static final com.google.cloud.asset.v1.ListSavedQueriesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.ListSavedQueriesRequest(); } @@ -1155,16 +1022,27 @@ public static com.google.cloud.asset.v1.ListSavedQueriesRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSavedQueriesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSavedQueriesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSavedQueriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1179,4 +1057,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.ListSavedQueriesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequestOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequestOrBuilder.java similarity index 67% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequestOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequestOrBuilder.java index 39f29e97937f..1d6918158cfc 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequestOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface ListSavedQueriesRequestOrBuilder - extends +public interface ListSavedQueriesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.ListSavedQueriesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    -   * Required. The parent project/folder/organization whose savedQueries are to
    -   * be listed. It can only be using project/folder/organization number (such as
    +   * Required. The parent project/folder/organization whose savedQueries are to be
    +   * listed. It can only be using project/folder/organization number (such as
        * "folders/12345")", or a project ID (such as "projects/my-project-id").
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    -   * Required. The parent project/folder/organization whose savedQueries are to
    -   * be listed. It can only be using project/folder/organization number (such as
    +   * Required. The parent project/folder/organization whose savedQueries are to be
    +   * listed. It can only be using project/folder/organization number (such as
        * "folders/12345")", or a project ID (such as "projects/my-project-id").
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
        * Optional. The expression to filter resources.
        * The expression is a list of zero or more restrictions combined via logical
    @@ -69,13 +42,10 @@ public interface ListSavedQueriesRequestOrBuilder
        * 
    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
        * Optional. The expression to filter resources.
        * The expression is a list of zero or more restrictions combined via logical
    @@ -86,30 +56,24 @@ public interface ListSavedQueriesRequestOrBuilder
        * 
    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    -   * Optional. The maximum number of saved queries to return per page. The
    -   * service may return fewer than this value. If unspecified, at most 50 will
    -   * be returned.
    +   * Optional. The maximum number of saved queries to return per page. The service may
    +   * return fewer than this value. If unspecified, at most 50 will be returned.
        *  The maximum value is 1000; values above 1000 will be coerced to 1000.
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
        * Optional. A page token, received from a previous `ListSavedQueries` call.
        * Provide this to retrieve the subsequent page.
    @@ -118,13 +82,10 @@ public interface ListSavedQueriesRequestOrBuilder
        * 
    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
        * Optional. A page token, received from a previous `ListSavedQueries` call.
        * Provide this to retrieve the subsequent page.
    @@ -133,8 +94,8 @@ public interface ListSavedQueriesRequestOrBuilder
        * 
    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponse.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponse.java similarity index 68% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponse.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponse.java index cb51c0b8080a..ded1578943f2 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponse.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * Response of listing saved queries.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.ListSavedQueriesResponse} */ -public final class ListSavedQueriesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSavedQueriesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.ListSavedQueriesResponse) ListSavedQueriesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSavedQueriesResponse.newBuilder() to construct. private ListSavedQueriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSavedQueriesResponse() { savedQueries_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,96 +26,32 @@ private ListSavedQueriesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSavedQueriesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private ListSavedQueriesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - savedQueries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - savedQueries_.add( - input.readMessage( - com.google.cloud.asset.v1.SavedQuery.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - savedQueries_ = java.util.Collections.unmodifiableList(savedQueries_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ListSavedQueriesResponse.class, - com.google.cloud.asset.v1.ListSavedQueriesResponse.Builder.class); + com.google.cloud.asset.v1.ListSavedQueriesResponse.class, com.google.cloud.asset.v1.ListSavedQueriesResponse.Builder.class); } public static final int SAVED_QUERIES_FIELD_NUMBER = 1; private java.util.List savedQueries_; /** - * - * *
        * A list of savedQueries.
        * 
    @@ -145,8 +63,6 @@ public java.util.List getSavedQueriesList( return savedQueries_; } /** - * - * *
        * A list of savedQueries.
        * 
    @@ -154,13 +70,11 @@ public java.util.List getSavedQueriesList( * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSavedQueriesOrBuilderList() { return savedQueries_; } /** - * - * *
        * A list of savedQueries.
        * 
    @@ -172,8 +86,6 @@ public int getSavedQueriesCount() { return savedQueries_.size(); } /** - * - * *
        * A list of savedQueries.
        * 
    @@ -185,8 +97,6 @@ public com.google.cloud.asset.v1.SavedQuery getSavedQueries(int index) { return savedQueries_.get(index); } /** - * - * *
        * A list of savedQueries.
        * 
    @@ -194,22 +104,20 @@ public com.google.cloud.asset.v1.SavedQuery getSavedQueries(int index) { * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ @java.lang.Override - public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueriesOrBuilder(int index) { + public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueriesOrBuilder( + int index) { return savedQueries_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
        * A token, which can be sent as `page_token` to retrieve the next page.
        * If this field is omitted, there are no subsequent pages.
        * 
    * * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -218,30 +126,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
        * A token, which can be sent as `page_token` to retrieve the next page.
        * If this field is omitted, there are no subsequent pages.
        * 
    * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -250,7 +158,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,14 +169,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < savedQueries_.size(); i++) { output.writeMessage(1, savedQueries_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -279,12 +187,13 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < savedQueries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, savedQueries_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, savedQueries_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -292,17 +201,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.ListSavedQueriesResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1.ListSavedQueriesResponse other = - (com.google.cloud.asset.v1.ListSavedQueriesResponse) obj; + com.google.cloud.asset.v1.ListSavedQueriesResponse other = (com.google.cloud.asset.v1.ListSavedQueriesResponse) obj; - if (!getSavedQueriesList().equals(other.getSavedQueriesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getSavedQueriesList() + .equals(other.getSavedQueriesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -319,168 +229,154 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.ListSavedQueriesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ListSavedQueriesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.ListSavedQueriesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ListSavedQueriesResponse 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.asset.v1.ListSavedQueriesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ListSavedQueriesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.ListSavedQueriesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.ListSavedQueriesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ListSavedQueriesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.ListSavedQueriesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.ListSavedQueriesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ListSavedQueriesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.ListSavedQueriesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ListSavedQueriesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.ListSavedQueriesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Response of listing saved queries.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.ListSavedQueriesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.ListSavedQueriesResponse) com.google.cloud.asset.v1.ListSavedQueriesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ListSavedQueriesResponse.class, - com.google.cloud.asset.v1.ListSavedQueriesResponse.Builder.class); + com.google.cloud.asset.v1.ListSavedQueriesResponse.class, com.google.cloud.asset.v1.ListSavedQueriesResponse.Builder.class); } // Construct using com.google.cloud.asset.v1.ListSavedQueriesResponse.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSavedQueriesFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); if (savedQueriesBuilder_ == null) { savedQueries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + savedQueries_ = null; savedQueriesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_descriptor; } @java.lang.Override @@ -499,8 +395,7 @@ public com.google.cloud.asset.v1.ListSavedQueriesResponse build() { @java.lang.Override public com.google.cloud.asset.v1.ListSavedQueriesResponse buildPartial() { - com.google.cloud.asset.v1.ListSavedQueriesResponse result = - new com.google.cloud.asset.v1.ListSavedQueriesResponse(this); + com.google.cloud.asset.v1.ListSavedQueriesResponse result = new com.google.cloud.asset.v1.ListSavedQueriesResponse(this); int from_bitField0_ = bitField0_; if (savedQueriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -520,39 +415,38 @@ public com.google.cloud.asset.v1.ListSavedQueriesResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.ListSavedQueriesResponse) { - return mergeFrom((com.google.cloud.asset.v1.ListSavedQueriesResponse) other); + return mergeFrom((com.google.cloud.asset.v1.ListSavedQueriesResponse)other); } else { super.mergeFrom(other); return this; @@ -560,8 +454,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.ListSavedQueriesResponse other) { - if (other == com.google.cloud.asset.v1.ListSavedQueriesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.ListSavedQueriesResponse.getDefaultInstance()) return this; if (savedQueriesBuilder_ == null) { if (!other.savedQueries_.isEmpty()) { if (savedQueries_.isEmpty()) { @@ -580,10 +473,9 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ListSavedQueriesResponse othe savedQueriesBuilder_ = null; savedQueries_ = other.savedQueries_; bitField0_ = (bitField0_ & ~0x00000001); - savedQueriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSavedQueriesFieldBuilder() - : null; + savedQueriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSavedQueriesFieldBuilder() : null; } else { savedQueriesBuilder_.addAllMessages(other.savedQueries_); } @@ -593,7 +485,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ListSavedQueriesResponse othe nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -608,43 +500,65 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.ListSavedQueriesResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.asset.v1.SavedQuery m = + input.readMessage( + com.google.cloud.asset.v1.SavedQuery.parser(), + extensionRegistry); + if (savedQueriesBuilder_ == null) { + ensureSavedQueriesIsMutable(); + savedQueries_.add(m); + } else { + savedQueriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.ListSavedQueriesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.util.List savedQueries_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSavedQueriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - savedQueries_ = - new java.util.ArrayList(savedQueries_); + savedQueries_ = new java.util.ArrayList(savedQueries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.SavedQuery, - com.google.cloud.asset.v1.SavedQuery.Builder, - com.google.cloud.asset.v1.SavedQueryOrBuilder> - savedQueriesBuilder_; + com.google.cloud.asset.v1.SavedQuery, com.google.cloud.asset.v1.SavedQuery.Builder, com.google.cloud.asset.v1.SavedQueryOrBuilder> savedQueriesBuilder_; /** - * - * *
          * A list of savedQueries.
          * 
    @@ -659,8 +573,6 @@ public java.util.List getSavedQueriesList( } } /** - * - * *
          * A list of savedQueries.
          * 
    @@ -675,8 +587,6 @@ public int getSavedQueriesCount() { } } /** - * - * *
          * A list of savedQueries.
          * 
    @@ -691,15 +601,14 @@ public com.google.cloud.asset.v1.SavedQuery getSavedQueries(int index) { } } /** - * - * *
          * A list of savedQueries.
          * 
    * * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ - public Builder setSavedQueries(int index, com.google.cloud.asset.v1.SavedQuery value) { + public Builder setSavedQueries( + int index, com.google.cloud.asset.v1.SavedQuery value) { if (savedQueriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,8 +622,6 @@ public Builder setSavedQueries(int index, com.google.cloud.asset.v1.SavedQuery v return this; } /** - * - * *
          * A list of savedQueries.
          * 
    @@ -733,8 +640,6 @@ public Builder setSavedQueries( return this; } /** - * - * *
          * A list of savedQueries.
          * 
    @@ -755,15 +660,14 @@ public Builder addSavedQueries(com.google.cloud.asset.v1.SavedQuery value) { return this; } /** - * - * *
          * A list of savedQueries.
          * 
    * * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ - public Builder addSavedQueries(int index, com.google.cloud.asset.v1.SavedQuery value) { + public Builder addSavedQueries( + int index, com.google.cloud.asset.v1.SavedQuery value) { if (savedQueriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -777,15 +681,14 @@ public Builder addSavedQueries(int index, com.google.cloud.asset.v1.SavedQuery v return this; } /** - * - * *
          * A list of savedQueries.
          * 
    * * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ - public Builder addSavedQueries(com.google.cloud.asset.v1.SavedQuery.Builder builderForValue) { + public Builder addSavedQueries( + com.google.cloud.asset.v1.SavedQuery.Builder builderForValue) { if (savedQueriesBuilder_ == null) { ensureSavedQueriesIsMutable(); savedQueries_.add(builderForValue.build()); @@ -796,8 +699,6 @@ public Builder addSavedQueries(com.google.cloud.asset.v1.SavedQuery.Builder buil return this; } /** - * - * *
          * A list of savedQueries.
          * 
    @@ -816,8 +717,6 @@ public Builder addSavedQueries( return this; } /** - * - * *
          * A list of savedQueries.
          * 
    @@ -828,7 +727,8 @@ public Builder addAllSavedQueries( java.lang.Iterable values) { if (savedQueriesBuilder_ == null) { ensureSavedQueriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, savedQueries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, savedQueries_); onChanged(); } else { savedQueriesBuilder_.addAllMessages(values); @@ -836,8 +736,6 @@ public Builder addAllSavedQueries( return this; } /** - * - * *
          * A list of savedQueries.
          * 
    @@ -855,8 +753,6 @@ public Builder clearSavedQueries() { return this; } /** - * - * *
          * A list of savedQueries.
          * 
    @@ -874,44 +770,39 @@ public Builder removeSavedQueries(int index) { return this; } /** - * - * *
          * A list of savedQueries.
          * 
    * * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ - public com.google.cloud.asset.v1.SavedQuery.Builder getSavedQueriesBuilder(int index) { + public com.google.cloud.asset.v1.SavedQuery.Builder getSavedQueriesBuilder( + int index) { return getSavedQueriesFieldBuilder().getBuilder(index); } /** - * - * *
          * A list of savedQueries.
          * 
    * * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ - public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueriesOrBuilder(int index) { + public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueriesOrBuilder( + int index) { if (savedQueriesBuilder_ == null) { - return savedQueries_.get(index); - } else { + return savedQueries_.get(index); } else { return savedQueriesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
          * A list of savedQueries.
          * 
    * * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ - public java.util.List - getSavedQueriesOrBuilderList() { + public java.util.List + getSavedQueriesOrBuilderList() { if (savedQueriesBuilder_ != null) { return savedQueriesBuilder_.getMessageOrBuilderList(); } else { @@ -919,8 +810,6 @@ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueriesOrBuilder(in } } /** - * - * *
          * A list of savedQueries.
          * 
    @@ -928,48 +817,42 @@ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueriesOrBuilder(in * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ public com.google.cloud.asset.v1.SavedQuery.Builder addSavedQueriesBuilder() { - return getSavedQueriesFieldBuilder() - .addBuilder(com.google.cloud.asset.v1.SavedQuery.getDefaultInstance()); + return getSavedQueriesFieldBuilder().addBuilder( + com.google.cloud.asset.v1.SavedQuery.getDefaultInstance()); } /** - * - * *
          * A list of savedQueries.
          * 
    * * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ - public com.google.cloud.asset.v1.SavedQuery.Builder addSavedQueriesBuilder(int index) { - return getSavedQueriesFieldBuilder() - .addBuilder(index, com.google.cloud.asset.v1.SavedQuery.getDefaultInstance()); + public com.google.cloud.asset.v1.SavedQuery.Builder addSavedQueriesBuilder( + int index) { + return getSavedQueriesFieldBuilder().addBuilder( + index, com.google.cloud.asset.v1.SavedQuery.getDefaultInstance()); } /** - * - * *
          * A list of savedQueries.
          * 
    * * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ - public java.util.List - getSavedQueriesBuilderList() { + public java.util.List + getSavedQueriesBuilderList() { return getSavedQueriesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.SavedQuery, - com.google.cloud.asset.v1.SavedQuery.Builder, - com.google.cloud.asset.v1.SavedQueryOrBuilder> + com.google.cloud.asset.v1.SavedQuery, com.google.cloud.asset.v1.SavedQuery.Builder, com.google.cloud.asset.v1.SavedQueryOrBuilder> getSavedQueriesFieldBuilder() { if (savedQueriesBuilder_ == null) { - savedQueriesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.SavedQuery, - com.google.cloud.asset.v1.SavedQuery.Builder, - com.google.cloud.asset.v1.SavedQueryOrBuilder>( - savedQueries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + savedQueriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.SavedQuery, com.google.cloud.asset.v1.SavedQuery.Builder, com.google.cloud.asset.v1.SavedQueryOrBuilder>( + savedQueries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); savedQueries_ = null; } return savedQueriesBuilder_; @@ -977,21 +860,19 @@ public com.google.cloud.asset.v1.SavedQuery.Builder addSavedQueriesBuilder(int i private java.lang.Object nextPageToken_ = ""; /** - * - * *
          * A token, which can be sent as `page_token` to retrieve the next page.
          * If this field is omitted, there are no subsequent pages.
          * 
    * * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1000,22 +881,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
          * A token, which can be sent as `page_token` to retrieve the next page.
          * If this field is omitted, there are no subsequent pages.
          * 
    * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1023,71 +903,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
          * A token, which can be sent as `page_token` to retrieve the next page.
          * If this field is omitted, there are no subsequent pages.
          * 
    * * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
          * A token, which can be sent as `page_token` to retrieve the next page.
          * If this field is omitted, there are no subsequent pages.
          * 
    * * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
          * A token, which can be sent as `page_token` to retrieve the next page.
          * If this field is omitted, there are no subsequent pages.
          * 
    * * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1097,12 +970,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.ListSavedQueriesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.ListSavedQueriesResponse) private static final com.google.cloud.asset.v1.ListSavedQueriesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.ListSavedQueriesResponse(); } @@ -1111,16 +984,27 @@ public static com.google.cloud.asset.v1.ListSavedQueriesResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSavedQueriesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSavedQueriesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSavedQueriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1135,4 +1019,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.ListSavedQueriesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponseOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponseOrBuilder.java similarity index 67% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponseOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponseOrBuilder.java index 4bd03e463e93..9c5fbc9067d6 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponseOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface ListSavedQueriesResponseOrBuilder - extends +public interface ListSavedQueriesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.ListSavedQueriesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * A list of savedQueries.
        * 
    * * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ - java.util.List getSavedQueriesList(); + java.util.List + getSavedQueriesList(); /** - * - * *
        * A list of savedQueries.
        * 
    @@ -44,8 +25,6 @@ public interface ListSavedQueriesResponseOrBuilder */ com.google.cloud.asset.v1.SavedQuery getSavedQueries(int index); /** - * - * *
        * A list of savedQueries.
        * 
    @@ -54,51 +33,43 @@ public interface ListSavedQueriesResponseOrBuilder */ int getSavedQueriesCount(); /** - * - * *
        * A list of savedQueries.
        * 
    * * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ - java.util.List + java.util.List getSavedQueriesOrBuilderList(); /** - * - * *
        * A list of savedQueries.
        * 
    * * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ - com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueriesOrBuilder(int index); + com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueriesOrBuilder( + int index); /** - * - * *
        * A token, which can be sent as `page_token` to retrieve the next page.
        * If this field is omitted, there are no subsequent pages.
        * 
    * * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
        * A token, which can be sent as `page_token` to retrieve the next page.
        * If this field is omitted, there are no subsequent pages.
        * 
    * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysis.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysis.java similarity index 67% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysis.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysis.java index 4fe6f64f8ed6..2e5294fd6954 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysis.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysis.java @@ -1,160 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * A message to group the analysis information.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.MoveAnalysis} */ -public final class MoveAnalysis extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MoveAnalysis extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.MoveAnalysis) MoveAnalysisOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MoveAnalysis.newBuilder() to construct. private MoveAnalysis(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MoveAnalysis() { displayName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MoveAnalysis(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private MoveAnalysis( - 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(); - - displayName_ = s; - break; - } - case 18: - { - com.google.cloud.asset.v1.MoveAnalysisResult.Builder subBuilder = null; - if (resultCase_ == 2) { - subBuilder = ((com.google.cloud.asset.v1.MoveAnalysisResult) result_).toBuilder(); - } - result_ = - input.readMessage( - com.google.cloud.asset.v1.MoveAnalysisResult.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.asset.v1.MoveAnalysisResult) result_); - result_ = subBuilder.buildPartial(); - } - resultCase_ = 2; - break; - } - case 26: - { - com.google.rpc.Status.Builder subBuilder = null; - if (resultCase_ == 3) { - subBuilder = ((com.google.rpc.Status) result_).toBuilder(); - } - result_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.rpc.Status) result_); - result_ = subBuilder.buildPartial(); - } - resultCase_ = 3; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_MoveAnalysis_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveAnalysis_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_MoveAnalysis_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveAnalysis_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.MoveAnalysis.class, - com.google.cloud.asset.v1.MoveAnalysis.Builder.class); + com.google.cloud.asset.v1.MoveAnalysis.class, com.google.cloud.asset.v1.MoveAnalysis.Builder.class); } private int resultCase_ = 0; private java.lang.Object result_; - public enum ResultCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ANALYSIS(2), ERROR(3), RESULT_NOT_SET(0); private final int value; - private ResultCase(int value) { this.value = value; } @@ -170,38 +72,32 @@ public static ResultCase valueOf(int value) { public static ResultCase forNumber(int value) { switch (value) { - case 2: - return ANALYSIS; - case 3: - return ERROR; - case 0: - return RESULT_NOT_SET; - default: - return null; + case 2: return ANALYSIS; + case 3: return ERROR; + case 0: return RESULT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ResultCase getResultCase() { - return ResultCase.forNumber(resultCase_); + public ResultCase + getResultCase() { + return ResultCase.forNumber( + resultCase_); } public static final int DISPLAY_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object displayName_; /** - * - * *
        * The user friendly display name of the analysis. E.g. IAM, Organization
        * Policy etc.
        * 
    * * string display_name = 1; - * * @return The displayName. */ @java.lang.Override @@ -210,30 +106,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
        * The user friendly display name of the analysis. E.g. IAM, Organization
        * Policy etc.
        * 
    * * string display_name = 1; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -243,14 +139,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int ANALYSIS_FIELD_NUMBER = 2; /** - * - * *
        * Analysis result of moving the target resource.
        * 
    * * .google.cloud.asset.v1.MoveAnalysisResult analysis = 2; - * * @return Whether the analysis field is set. */ @java.lang.Override @@ -258,26 +151,21 @@ public boolean hasAnalysis() { return resultCase_ == 2; } /** - * - * *
        * Analysis result of moving the target resource.
        * 
    * * .google.cloud.asset.v1.MoveAnalysisResult analysis = 2; - * * @return The analysis. */ @java.lang.Override public com.google.cloud.asset.v1.MoveAnalysisResult getAnalysis() { if (resultCase_ == 2) { - return (com.google.cloud.asset.v1.MoveAnalysisResult) result_; + return (com.google.cloud.asset.v1.MoveAnalysisResult) result_; } return com.google.cloud.asset.v1.MoveAnalysisResult.getDefaultInstance(); } /** - * - * *
        * Analysis result of moving the target resource.
        * 
    @@ -287,21 +175,18 @@ public com.google.cloud.asset.v1.MoveAnalysisResult getAnalysis() { @java.lang.Override public com.google.cloud.asset.v1.MoveAnalysisResultOrBuilder getAnalysisOrBuilder() { if (resultCase_ == 2) { - return (com.google.cloud.asset.v1.MoveAnalysisResult) result_; + return (com.google.cloud.asset.v1.MoveAnalysisResult) result_; } return com.google.cloud.asset.v1.MoveAnalysisResult.getDefaultInstance(); } public static final int ERROR_FIELD_NUMBER = 3; /** - * - * *
        * Description of error encountered when performing the analysis.
        * 
    * * .google.rpc.Status error = 3; - * * @return Whether the error field is set. */ @java.lang.Override @@ -309,26 +194,21 @@ public boolean hasError() { return resultCase_ == 3; } /** - * - * *
        * Description of error encountered when performing the analysis.
        * 
    * * .google.rpc.Status error = 3; - * * @return The error. */ @java.lang.Override public com.google.rpc.Status getError() { if (resultCase_ == 3) { - return (com.google.rpc.Status) result_; + return (com.google.rpc.Status) result_; } return com.google.rpc.Status.getDefaultInstance(); } /** - * - * *
        * Description of error encountered when performing the analysis.
        * 
    @@ -338,13 +218,12 @@ public com.google.rpc.Status getError() { @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { if (resultCase_ == 3) { - return (com.google.rpc.Status) result_; + return (com.google.rpc.Status) result_; } return com.google.rpc.Status.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -356,7 +235,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); } @@ -366,7 +246,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (resultCase_ == 3) { output.writeMessage(3, (com.google.rpc.Status) result_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -379,16 +259,14 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); } if (resultCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.asset.v1.MoveAnalysisResult) result_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.asset.v1.MoveAnalysisResult) result_); } if (resultCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.rpc.Status) result_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.rpc.Status) result_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -396,26 +274,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.MoveAnalysis)) { return super.equals(obj); } com.google.cloud.asset.v1.MoveAnalysis other = (com.google.cloud.asset.v1.MoveAnalysis) obj; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (!getResultCase().equals(other.getResultCase())) return false; switch (resultCase_) { case 2: - if (!getAnalysis().equals(other.getAnalysis())) return false; + if (!getAnalysis() + .equals(other.getAnalysis())) return false; break; case 3: - if (!getError().equals(other.getError())) return false; + if (!getError() + .equals(other.getError())) return false; break; case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -440,162 +321,155 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.MoveAnalysis parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.MoveAnalysis parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.MoveAnalysis parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.MoveAnalysis parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.MoveAnalysis 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.asset.v1.MoveAnalysis parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.MoveAnalysis parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.MoveAnalysis parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.MoveAnalysis parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.MoveAnalysis parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.MoveAnalysis parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.MoveAnalysis parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.MoveAnalysis parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.MoveAnalysis prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * A message to group the analysis information.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.MoveAnalysis} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.MoveAnalysis) com.google.cloud.asset.v1.MoveAnalysisOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_MoveAnalysis_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveAnalysis_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_MoveAnalysis_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveAnalysis_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.MoveAnalysis.class, - com.google.cloud.asset.v1.MoveAnalysis.Builder.class); + com.google.cloud.asset.v1.MoveAnalysis.class, com.google.cloud.asset.v1.MoveAnalysis.Builder.class); } // Construct using com.google.cloud.asset.v1.MoveAnalysis.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); displayName_ = ""; + if (analysisBuilder_ != null) { + analysisBuilder_.clear(); + } + if (errorBuilder_ != null) { + errorBuilder_.clear(); + } resultCase_ = 0; result_ = null; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_MoveAnalysis_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveAnalysis_descriptor; } @java.lang.Override @@ -614,8 +488,7 @@ public com.google.cloud.asset.v1.MoveAnalysis build() { @java.lang.Override public com.google.cloud.asset.v1.MoveAnalysis buildPartial() { - com.google.cloud.asset.v1.MoveAnalysis result = - new com.google.cloud.asset.v1.MoveAnalysis(this); + com.google.cloud.asset.v1.MoveAnalysis result = new com.google.cloud.asset.v1.MoveAnalysis(this); result.displayName_ = displayName_; if (resultCase_ == 2) { if (analysisBuilder_ == null) { @@ -640,39 +513,38 @@ public com.google.cloud.asset.v1.MoveAnalysis buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.MoveAnalysis) { - return mergeFrom((com.google.cloud.asset.v1.MoveAnalysis) other); + return mergeFrom((com.google.cloud.asset.v1.MoveAnalysis)other); } else { super.mergeFrom(other); return this; @@ -686,22 +558,19 @@ public Builder mergeFrom(com.google.cloud.asset.v1.MoveAnalysis other) { onChanged(); } switch (other.getResultCase()) { - case ANALYSIS: - { - mergeAnalysis(other.getAnalysis()); - break; - } - case ERROR: - { - mergeError(other.getError()); - break; - } - case RESULT_NOT_SET: - { - break; - } + case ANALYSIS: { + mergeAnalysis(other.getAnalysis()); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case RESULT_NOT_SET: { + break; + } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -716,25 +585,57 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.MoveAnalysis parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getAnalysisFieldBuilder().getBuilder(), + extensionRegistry); + resultCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getErrorFieldBuilder().getBuilder(), + extensionRegistry); + resultCase_ = 3; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.MoveAnalysis) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int resultCase_ = 0; private java.lang.Object result_; - - public ResultCase getResultCase() { - return ResultCase.forNumber(resultCase_); + public ResultCase + getResultCase() { + return ResultCase.forNumber( + resultCase_); } public Builder clearResult() { @@ -744,23 +645,22 @@ public Builder clearResult() { return this; } + private java.lang.Object displayName_ = ""; /** - * - * *
          * The user friendly display name of the analysis. E.g. IAM, Organization
          * Policy etc.
          * 
    * * string display_name = 1; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -769,22 +669,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
          * The user friendly display name of the analysis. E.g. IAM, Organization
          * Policy etc.
          * 
    * * string display_name = 1; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -792,83 +691,70 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
          * The user friendly display name of the analysis. E.g. IAM, Organization
          * Policy etc.
          * 
    * * string display_name = 1; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
          * The user friendly display name of the analysis. E.g. IAM, Organization
          * Policy etc.
          * 
    * * string display_name = 1; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
          * The user friendly display name of the analysis. E.g. IAM, Organization
          * Policy etc.
          * 
    * * string display_name = 1; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.MoveAnalysisResult, - com.google.cloud.asset.v1.MoveAnalysisResult.Builder, - com.google.cloud.asset.v1.MoveAnalysisResultOrBuilder> - analysisBuilder_; + com.google.cloud.asset.v1.MoveAnalysisResult, com.google.cloud.asset.v1.MoveAnalysisResult.Builder, com.google.cloud.asset.v1.MoveAnalysisResultOrBuilder> analysisBuilder_; /** - * - * *
          * Analysis result of moving the target resource.
          * 
    * * .google.cloud.asset.v1.MoveAnalysisResult analysis = 2; - * * @return Whether the analysis field is set. */ @java.lang.Override @@ -876,14 +762,11 @@ public boolean hasAnalysis() { return resultCase_ == 2; } /** - * - * *
          * Analysis result of moving the target resource.
          * 
    * * .google.cloud.asset.v1.MoveAnalysisResult analysis = 2; - * * @return The analysis. */ @java.lang.Override @@ -901,8 +784,6 @@ public com.google.cloud.asset.v1.MoveAnalysisResult getAnalysis() { } } /** - * - * *
          * Analysis result of moving the target resource.
          * 
    @@ -923,8 +804,6 @@ public Builder setAnalysis(com.google.cloud.asset.v1.MoveAnalysisResult value) { return this; } /** - * - * *
          * Analysis result of moving the target resource.
          * 
    @@ -943,8 +822,6 @@ public Builder setAnalysis( return this; } /** - * - * *
          * Analysis result of moving the target resource.
          * 
    @@ -953,13 +830,10 @@ public Builder setAnalysis( */ public Builder mergeAnalysis(com.google.cloud.asset.v1.MoveAnalysisResult value) { if (analysisBuilder_ == null) { - if (resultCase_ == 2 - && result_ != com.google.cloud.asset.v1.MoveAnalysisResult.getDefaultInstance()) { - result_ = - com.google.cloud.asset.v1.MoveAnalysisResult.newBuilder( - (com.google.cloud.asset.v1.MoveAnalysisResult) result_) - .mergeFrom(value) - .buildPartial(); + if (resultCase_ == 2 && + result_ != com.google.cloud.asset.v1.MoveAnalysisResult.getDefaultInstance()) { + result_ = com.google.cloud.asset.v1.MoveAnalysisResult.newBuilder((com.google.cloud.asset.v1.MoveAnalysisResult) result_) + .mergeFrom(value).buildPartial(); } else { result_ = value; } @@ -975,8 +849,6 @@ public Builder mergeAnalysis(com.google.cloud.asset.v1.MoveAnalysisResult value) return this; } /** - * - * *
          * Analysis result of moving the target resource.
          * 
    @@ -1000,8 +872,6 @@ public Builder clearAnalysis() { return this; } /** - * - * *
          * Analysis result of moving the target resource.
          * 
    @@ -1012,8 +882,6 @@ public com.google.cloud.asset.v1.MoveAnalysisResult.Builder getAnalysisBuilder() return getAnalysisFieldBuilder().getBuilder(); } /** - * - * *
          * Analysis result of moving the target resource.
          * 
    @@ -1032,8 +900,6 @@ public com.google.cloud.asset.v1.MoveAnalysisResultOrBuilder getAnalysisOrBuilde } } /** - * - * *
          * Analysis result of moving the target resource.
          * 
    @@ -1041,42 +907,32 @@ public com.google.cloud.asset.v1.MoveAnalysisResultOrBuilder getAnalysisOrBuilde * .google.cloud.asset.v1.MoveAnalysisResult analysis = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.MoveAnalysisResult, - com.google.cloud.asset.v1.MoveAnalysisResult.Builder, - com.google.cloud.asset.v1.MoveAnalysisResultOrBuilder> + com.google.cloud.asset.v1.MoveAnalysisResult, com.google.cloud.asset.v1.MoveAnalysisResult.Builder, com.google.cloud.asset.v1.MoveAnalysisResultOrBuilder> getAnalysisFieldBuilder() { if (analysisBuilder_ == null) { if (!(resultCase_ == 2)) { result_ = com.google.cloud.asset.v1.MoveAnalysisResult.getDefaultInstance(); } - analysisBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.MoveAnalysisResult, - com.google.cloud.asset.v1.MoveAnalysisResult.Builder, - com.google.cloud.asset.v1.MoveAnalysisResultOrBuilder>( + analysisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.MoveAnalysisResult, com.google.cloud.asset.v1.MoveAnalysisResult.Builder, com.google.cloud.asset.v1.MoveAnalysisResultOrBuilder>( (com.google.cloud.asset.v1.MoveAnalysisResult) result_, getParentForChildren(), isClean()); result_ = null; } resultCase_ = 2; - onChanged(); - ; + onChanged();; return analysisBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; /** - * - * *
          * Description of error encountered when performing the analysis.
          * 
    * * .google.rpc.Status error = 3; - * * @return Whether the error field is set. */ @java.lang.Override @@ -1084,14 +940,11 @@ public boolean hasError() { return resultCase_ == 3; } /** - * - * *
          * Description of error encountered when performing the analysis.
          * 
    * * .google.rpc.Status error = 3; - * * @return The error. */ @java.lang.Override @@ -1109,8 +962,6 @@ public com.google.rpc.Status getError() { } } /** - * - * *
          * Description of error encountered when performing the analysis.
          * 
    @@ -1131,15 +982,14 @@ public Builder setError(com.google.rpc.Status value) { return this; } /** - * - * *
          * Description of error encountered when performing the analysis.
          * 
    * * .google.rpc.Status error = 3; */ - public Builder setError(com.google.rpc.Status.Builder builderForValue) { + public Builder setError( + com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { result_ = builderForValue.build(); onChanged(); @@ -1150,8 +1000,6 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
          * Description of error encountered when performing the analysis.
          * 
    @@ -1160,11 +1008,10 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (resultCase_ == 3 && result_ != com.google.rpc.Status.getDefaultInstance()) { - result_ = - com.google.rpc.Status.newBuilder((com.google.rpc.Status) result_) - .mergeFrom(value) - .buildPartial(); + if (resultCase_ == 3 && + result_ != com.google.rpc.Status.getDefaultInstance()) { + result_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) result_) + .mergeFrom(value).buildPartial(); } else { result_ = value; } @@ -1180,8 +1027,6 @@ public Builder mergeError(com.google.rpc.Status value) { return this; } /** - * - * *
          * Description of error encountered when performing the analysis.
          * 
    @@ -1205,8 +1050,6 @@ public Builder clearError() { return this; } /** - * - * *
          * Description of error encountered when performing the analysis.
          * 
    @@ -1217,8 +1060,6 @@ public com.google.rpc.Status.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** - * - * *
          * Description of error encountered when performing the analysis.
          * 
    @@ -1237,8 +1078,6 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { } } /** - * - * *
          * Description of error encountered when performing the analysis.
          * 
    @@ -1246,28 +1085,26 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * .google.rpc.Status error = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { if (!(resultCase_ == 3)) { result_ = com.google.rpc.Status.getDefaultInstance(); } - errorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>( - (com.google.rpc.Status) result_, getParentForChildren(), isClean()); + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + (com.google.rpc.Status) result_, + getParentForChildren(), + isClean()); result_ = null; } resultCase_ = 3; - onChanged(); - ; + onChanged();; return errorBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1277,12 +1114,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.MoveAnalysis) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.MoveAnalysis) private static final com.google.cloud.asset.v1.MoveAnalysis DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.MoveAnalysis(); } @@ -1291,16 +1128,27 @@ public static com.google.cloud.asset.v1.MoveAnalysis getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MoveAnalysis parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MoveAnalysis(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MoveAnalysis parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1315,4 +1163,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.MoveAnalysis getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisOrBuilder.java similarity index 73% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisOrBuilder.java index 82ca7d41b016..463a887902a6 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisOrBuilder.java @@ -1,82 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface MoveAnalysisOrBuilder - extends +public interface MoveAnalysisOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.MoveAnalysis) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The user friendly display name of the analysis. E.g. IAM, Organization
        * Policy etc.
        * 
    * * string display_name = 1; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
        * The user friendly display name of the analysis. E.g. IAM, Organization
        * Policy etc.
        * 
    * * string display_name = 1; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
        * Analysis result of moving the target resource.
        * 
    * * .google.cloud.asset.v1.MoveAnalysisResult analysis = 2; - * * @return Whether the analysis field is set. */ boolean hasAnalysis(); /** - * - * *
        * Analysis result of moving the target resource.
        * 
    * * .google.cloud.asset.v1.MoveAnalysisResult analysis = 2; - * * @return The analysis. */ com.google.cloud.asset.v1.MoveAnalysisResult getAnalysis(); /** - * - * *
        * Analysis result of moving the target resource.
        * 
    @@ -86,32 +57,24 @@ public interface MoveAnalysisOrBuilder com.google.cloud.asset.v1.MoveAnalysisResultOrBuilder getAnalysisOrBuilder(); /** - * - * *
        * Description of error encountered when performing the analysis.
        * 
    * * .google.rpc.Status error = 3; - * * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
        * Description of error encountered when performing the analysis.
        * 
    * * .google.rpc.Status error = 3; - * * @return The error. */ com.google.rpc.Status getError(); /** - * - * *
        * Description of error encountered when performing the analysis.
        * 
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResult.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResult.java similarity index 75% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResult.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResult.java index 06690b41e0bf..1d79eebbe9c4 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResult.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResult.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * An analysis result including blockers and warnings.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.MoveAnalysisResult} */ -public final class MoveAnalysisResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MoveAnalysisResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.MoveAnalysisResult) MoveAnalysisResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MoveAnalysisResult.newBuilder() to construct. private MoveAnalysisResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MoveAnalysisResult() { blockers_ = java.util.Collections.emptyList(); warnings_ = java.util.Collections.emptyList(); @@ -44,103 +26,32 @@ private MoveAnalysisResult() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MoveAnalysisResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private MoveAnalysisResult( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - blockers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - blockers_.add( - input.readMessage( - com.google.cloud.asset.v1.MoveImpact.parser(), extensionRegistry)); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - warnings_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - warnings_.add( - input.readMessage( - com.google.cloud.asset.v1.MoveImpact.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - blockers_ = java.util.Collections.unmodifiableList(blockers_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - warnings_ = java.util.Collections.unmodifiableList(warnings_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_MoveAnalysisResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveAnalysisResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_MoveAnalysisResult_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveAnalysisResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.MoveAnalysisResult.class, - com.google.cloud.asset.v1.MoveAnalysisResult.Builder.class); + com.google.cloud.asset.v1.MoveAnalysisResult.class, com.google.cloud.asset.v1.MoveAnalysisResult.Builder.class); } public static final int BLOCKERS_FIELD_NUMBER = 1; private java.util.List blockers_; /** - * - * *
        * Blocking information that would prevent the target resource from moving
        * to the specified destination at runtime.
    @@ -153,8 +64,6 @@ public java.util.List getBlockersList() {
         return blockers_;
       }
       /**
    -   *
    -   *
        * 
        * Blocking information that would prevent the target resource from moving
        * to the specified destination at runtime.
    @@ -163,13 +72,11 @@ public java.util.List getBlockersList() {
        * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
        */
       @java.lang.Override
    -  public java.util.List
    +  public java.util.List 
           getBlockersOrBuilderList() {
         return blockers_;
       }
       /**
    -   *
    -   *
        * 
        * Blocking information that would prevent the target resource from moving
        * to the specified destination at runtime.
    @@ -182,8 +89,6 @@ public int getBlockersCount() {
         return blockers_.size();
       }
       /**
    -   *
    -   *
        * 
        * Blocking information that would prevent the target resource from moving
        * to the specified destination at runtime.
    @@ -196,8 +101,6 @@ public com.google.cloud.asset.v1.MoveImpact getBlockers(int index) {
         return blockers_.get(index);
       }
       /**
    -   *
    -   *
        * 
        * Blocking information that would prevent the target resource from moving
        * to the specified destination at runtime.
    @@ -206,15 +109,14 @@ public com.google.cloud.asset.v1.MoveImpact getBlockers(int index) {
        * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
        */
       @java.lang.Override
    -  public com.google.cloud.asset.v1.MoveImpactOrBuilder getBlockersOrBuilder(int index) {
    +  public com.google.cloud.asset.v1.MoveImpactOrBuilder getBlockersOrBuilder(
    +      int index) {
         return blockers_.get(index);
       }
     
       public static final int WARNINGS_FIELD_NUMBER = 2;
       private java.util.List warnings_;
       /**
    -   *
    -   *
        * 
        * Warning information indicating that moving the target resource to the
        * specified destination might be unsafe. This can include important policy
    @@ -228,8 +130,6 @@ public java.util.List getWarningsList() {
         return warnings_;
       }
       /**
    -   *
    -   *
        * 
        * Warning information indicating that moving the target resource to the
        * specified destination might be unsafe. This can include important policy
    @@ -239,13 +139,11 @@ public java.util.List getWarningsList() {
        * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
        */
       @java.lang.Override
    -  public java.util.List
    +  public java.util.List 
           getWarningsOrBuilderList() {
         return warnings_;
       }
       /**
    -   *
    -   *
        * 
        * Warning information indicating that moving the target resource to the
        * specified destination might be unsafe. This can include important policy
    @@ -259,8 +157,6 @@ public int getWarningsCount() {
         return warnings_.size();
       }
       /**
    -   *
    -   *
        * 
        * Warning information indicating that moving the target resource to the
        * specified destination might be unsafe. This can include important policy
    @@ -274,8 +170,6 @@ public com.google.cloud.asset.v1.MoveImpact getWarnings(int index) {
         return warnings_.get(index);
       }
       /**
    -   *
    -   *
        * 
        * Warning information indicating that moving the target resource to the
        * specified destination might be unsafe. This can include important policy
    @@ -285,12 +179,12 @@ public com.google.cloud.asset.v1.MoveImpact getWarnings(int index) {
        * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
        */
       @java.lang.Override
    -  public com.google.cloud.asset.v1.MoveImpactOrBuilder getWarningsOrBuilder(int index) {
    +  public com.google.cloud.asset.v1.MoveImpactOrBuilder getWarningsOrBuilder(
    +      int index) {
         return warnings_.get(index);
       }
     
       private byte memoizedIsInitialized = -1;
    -
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -302,14 +196,15 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output)
    +                      throws java.io.IOException {
         for (int i = 0; i < blockers_.size(); i++) {
           output.writeMessage(1, blockers_.get(i));
         }
         for (int i = 0; i < warnings_.size(); i++) {
           output.writeMessage(2, warnings_.get(i));
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -319,12 +214,14 @@ public int getSerializedSize() {
     
         size = 0;
         for (int i = 0; i < blockers_.size(); i++) {
    -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, blockers_.get(i));
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(1, blockers_.get(i));
         }
         for (int i = 0; i < warnings_.size(); i++) {
    -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, warnings_.get(i));
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(2, warnings_.get(i));
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -332,17 +229,18 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -      return true;
    +     return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1.MoveAnalysisResult)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1.MoveAnalysisResult other =
    -        (com.google.cloud.asset.v1.MoveAnalysisResult) obj;
    +    com.google.cloud.asset.v1.MoveAnalysisResult other = (com.google.cloud.asset.v1.MoveAnalysisResult) obj;
     
    -    if (!getBlockersList().equals(other.getBlockersList())) return false;
    -    if (!getWarningsList().equals(other.getWarningsList())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getBlockersList()
    +        .equals(other.getBlockersList())) return false;
    +    if (!getWarningsList()
    +        .equals(other.getWarningsList())) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -361,173 +259,159 @@ public int hashCode() {
           hash = (37 * hash) + WARNINGS_FIELD_NUMBER;
           hash = (53 * hash) + getWarningsList().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1.MoveAnalysisResult parseFrom(java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1.MoveAnalysisResult parseFrom(
    +      java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.MoveAnalysisResult parseFrom(
    -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.MoveAnalysisResult parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.MoveAnalysisResult 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.asset.v1.MoveAnalysisResult parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.MoveAnalysisResult parseFrom(
    -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.MoveAnalysisResult parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.MoveAnalysisResult parseFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
    -
    -  public static com.google.cloud.asset.v1.MoveAnalysisResult parseDelimitedFrom(
    -      java.io.InputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    +  public static com.google.cloud.asset.v1.MoveAnalysisResult parseDelimitedFrom(java.io.InputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.MoveAnalysisResult parseDelimitedFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.MoveAnalysisResult parseFrom(
    -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.MoveAnalysisResult parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() {
    -    return newBuilder();
    -  }
    -
    +  public Builder newBuilderForType() { return newBuilder(); }
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    -
       public static Builder newBuilder(com.google.cloud.asset.v1.MoveAnalysisResult prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    -
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE
    +        ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(
    +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    -   *
    -   *
        * 
        * An analysis result including blockers and warnings.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.MoveAnalysisResult} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.MoveAnalysisResult) com.google.cloud.asset.v1.MoveAnalysisResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_MoveAnalysisResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveAnalysisResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_MoveAnalysisResult_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveAnalysisResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.MoveAnalysisResult.class, - com.google.cloud.asset.v1.MoveAnalysisResult.Builder.class); + com.google.cloud.asset.v1.MoveAnalysisResult.class, com.google.cloud.asset.v1.MoveAnalysisResult.Builder.class); } // Construct using com.google.cloud.asset.v1.MoveAnalysisResult.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getBlockersFieldBuilder(); - getWarningsFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); if (blockersBuilder_ == null) { blockers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + blockers_ = null; blockersBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (warningsBuilder_ == null) { warnings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + warnings_ = null; warningsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_MoveAnalysisResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveAnalysisResult_descriptor; } @java.lang.Override @@ -546,8 +430,7 @@ public com.google.cloud.asset.v1.MoveAnalysisResult build() { @java.lang.Override public com.google.cloud.asset.v1.MoveAnalysisResult buildPartial() { - com.google.cloud.asset.v1.MoveAnalysisResult result = - new com.google.cloud.asset.v1.MoveAnalysisResult(this); + com.google.cloud.asset.v1.MoveAnalysisResult result = new com.google.cloud.asset.v1.MoveAnalysisResult(this); int from_bitField0_ = bitField0_; if (blockersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -575,39 +458,38 @@ public com.google.cloud.asset.v1.MoveAnalysisResult buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.MoveAnalysisResult) { - return mergeFrom((com.google.cloud.asset.v1.MoveAnalysisResult) other); + return mergeFrom((com.google.cloud.asset.v1.MoveAnalysisResult)other); } else { super.mergeFrom(other); return this; @@ -634,10 +516,9 @@ public Builder mergeFrom(com.google.cloud.asset.v1.MoveAnalysisResult other) { blockersBuilder_ = null; blockers_ = other.blockers_; bitField0_ = (bitField0_ & ~0x00000001); - blockersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBlockersFieldBuilder() - : null; + blockersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBlockersFieldBuilder() : null; } else { blockersBuilder_.addAllMessages(other.blockers_); } @@ -661,16 +542,15 @@ public Builder mergeFrom(com.google.cloud.asset.v1.MoveAnalysisResult other) { warningsBuilder_ = null; warnings_ = other.warnings_; bitField0_ = (bitField0_ & ~0x00000002); - warningsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWarningsFieldBuilder() - : null; + warningsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWarningsFieldBuilder() : null; } else { warningsBuilder_.addAllMessages(other.warnings_); } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -685,41 +565,73 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.MoveAnalysisResult parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.asset.v1.MoveImpact m = + input.readMessage( + com.google.cloud.asset.v1.MoveImpact.parser(), + extensionRegistry); + if (blockersBuilder_ == null) { + ensureBlockersIsMutable(); + blockers_.add(m); + } else { + blockersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + com.google.cloud.asset.v1.MoveImpact m = + input.readMessage( + com.google.cloud.asset.v1.MoveImpact.parser(), + extensionRegistry); + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.add(m); + } else { + warningsBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.MoveAnalysisResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.util.List blockers_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBlockersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { blockers_ = new java.util.ArrayList(blockers_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.MoveImpact, - com.google.cloud.asset.v1.MoveImpact.Builder, - com.google.cloud.asset.v1.MoveImpactOrBuilder> - blockersBuilder_; + com.google.cloud.asset.v1.MoveImpact, com.google.cloud.asset.v1.MoveImpact.Builder, com.google.cloud.asset.v1.MoveImpactOrBuilder> blockersBuilder_; /** - * - * *
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -735,8 +647,6 @@ public java.util.List getBlockersList() {
           }
         }
         /**
    -     *
    -     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -752,8 +662,6 @@ public int getBlockersCount() {
           }
         }
         /**
    -     *
    -     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -769,8 +677,6 @@ public com.google.cloud.asset.v1.MoveImpact getBlockers(int index) {
           }
         }
         /**
    -     *
    -     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -778,7 +684,8 @@ public com.google.cloud.asset.v1.MoveImpact getBlockers(int index) {
          *
          * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
          */
    -    public Builder setBlockers(int index, com.google.cloud.asset.v1.MoveImpact value) {
    +    public Builder setBlockers(
    +        int index, com.google.cloud.asset.v1.MoveImpact value) {
           if (blockersBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -792,8 +699,6 @@ public Builder setBlockers(int index, com.google.cloud.asset.v1.MoveImpact value
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -813,8 +718,6 @@ public Builder setBlockers(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -836,8 +739,6 @@ public Builder addBlockers(com.google.cloud.asset.v1.MoveImpact value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -845,7 +746,8 @@ public Builder addBlockers(com.google.cloud.asset.v1.MoveImpact value) {
          *
          * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
          */
    -    public Builder addBlockers(int index, com.google.cloud.asset.v1.MoveImpact value) {
    +    public Builder addBlockers(
    +        int index, com.google.cloud.asset.v1.MoveImpact value) {
           if (blockersBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -859,8 +761,6 @@ public Builder addBlockers(int index, com.google.cloud.asset.v1.MoveImpact value
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -868,7 +768,8 @@ public Builder addBlockers(int index, com.google.cloud.asset.v1.MoveImpact value
          *
          * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
          */
    -    public Builder addBlockers(com.google.cloud.asset.v1.MoveImpact.Builder builderForValue) {
    +    public Builder addBlockers(
    +        com.google.cloud.asset.v1.MoveImpact.Builder builderForValue) {
           if (blockersBuilder_ == null) {
             ensureBlockersIsMutable();
             blockers_.add(builderForValue.build());
    @@ -879,8 +780,6 @@ public Builder addBlockers(com.google.cloud.asset.v1.MoveImpact.Builder builderF
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -900,8 +799,6 @@ public Builder addBlockers(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -913,7 +810,8 @@ public Builder addAllBlockers(
             java.lang.Iterable values) {
           if (blockersBuilder_ == null) {
             ensureBlockersIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blockers_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    +            values, blockers_);
             onChanged();
           } else {
             blockersBuilder_.addAllMessages(values);
    @@ -921,8 +819,6 @@ public Builder addAllBlockers(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -941,8 +837,6 @@ public Builder clearBlockers() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -961,8 +855,6 @@ public Builder removeBlockers(int index) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -970,12 +862,11 @@ public Builder removeBlockers(int index) {
          *
          * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
          */
    -    public com.google.cloud.asset.v1.MoveImpact.Builder getBlockersBuilder(int index) {
    +    public com.google.cloud.asset.v1.MoveImpact.Builder getBlockersBuilder(
    +        int index) {
           return getBlockersFieldBuilder().getBuilder(index);
         }
         /**
    -     *
    -     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -983,16 +874,14 @@ public com.google.cloud.asset.v1.MoveImpact.Builder getBlockersBuilder(int index
          *
          * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
          */
    -    public com.google.cloud.asset.v1.MoveImpactOrBuilder getBlockersOrBuilder(int index) {
    +    public com.google.cloud.asset.v1.MoveImpactOrBuilder getBlockersOrBuilder(
    +        int index) {
           if (blockersBuilder_ == null) {
    -        return blockers_.get(index);
    -      } else {
    +        return blockers_.get(index);  } else {
             return blockersBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    -     *
    -     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -1000,8 +889,8 @@ public com.google.cloud.asset.v1.MoveImpactOrBuilder getBlockersOrBuilder(int in
          *
          * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
          */
    -    public java.util.List
    -        getBlockersOrBuilderList() {
    +    public java.util.List 
    +         getBlockersOrBuilderList() {
           if (blockersBuilder_ != null) {
             return blockersBuilder_.getMessageOrBuilderList();
           } else {
    @@ -1009,8 +898,6 @@ public com.google.cloud.asset.v1.MoveImpactOrBuilder getBlockersOrBuilder(int in
           }
         }
         /**
    -     *
    -     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -1019,12 +906,10 @@ public com.google.cloud.asset.v1.MoveImpactOrBuilder getBlockersOrBuilder(int in
          * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
          */
         public com.google.cloud.asset.v1.MoveImpact.Builder addBlockersBuilder() {
    -      return getBlockersFieldBuilder()
    -          .addBuilder(com.google.cloud.asset.v1.MoveImpact.getDefaultInstance());
    +      return getBlockersFieldBuilder().addBuilder(
    +          com.google.cloud.asset.v1.MoveImpact.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -1032,13 +917,12 @@ public com.google.cloud.asset.v1.MoveImpact.Builder addBlockersBuilder() {
          *
          * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
          */
    -    public com.google.cloud.asset.v1.MoveImpact.Builder addBlockersBuilder(int index) {
    -      return getBlockersFieldBuilder()
    -          .addBuilder(index, com.google.cloud.asset.v1.MoveImpact.getDefaultInstance());
    +    public com.google.cloud.asset.v1.MoveImpact.Builder addBlockersBuilder(
    +        int index) {
    +      return getBlockersFieldBuilder().addBuilder(
    +          index, com.google.cloud.asset.v1.MoveImpact.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -1046,46 +930,38 @@ public com.google.cloud.asset.v1.MoveImpact.Builder addBlockersBuilder(int index
          *
          * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
          */
    -    public java.util.List getBlockersBuilderList() {
    +    public java.util.List 
    +         getBlockersBuilderList() {
           return getBlockersFieldBuilder().getBuilderList();
         }
    -
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.asset.v1.MoveImpact,
    -            com.google.cloud.asset.v1.MoveImpact.Builder,
    -            com.google.cloud.asset.v1.MoveImpactOrBuilder>
    +        com.google.cloud.asset.v1.MoveImpact, com.google.cloud.asset.v1.MoveImpact.Builder, com.google.cloud.asset.v1.MoveImpactOrBuilder> 
             getBlockersFieldBuilder() {
           if (blockersBuilder_ == null) {
    -        blockersBuilder_ =
    -            new com.google.protobuf.RepeatedFieldBuilderV3<
    -                com.google.cloud.asset.v1.MoveImpact,
    -                com.google.cloud.asset.v1.MoveImpact.Builder,
    -                com.google.cloud.asset.v1.MoveImpactOrBuilder>(
    -                blockers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
    +        blockersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    +            com.google.cloud.asset.v1.MoveImpact, com.google.cloud.asset.v1.MoveImpact.Builder, com.google.cloud.asset.v1.MoveImpactOrBuilder>(
    +                blockers_,
    +                ((bitField0_ & 0x00000001) != 0),
    +                getParentForChildren(),
    +                isClean());
             blockers_ = null;
           }
           return blockersBuilder_;
         }
     
         private java.util.List warnings_ =
    -        java.util.Collections.emptyList();
    -
    +      java.util.Collections.emptyList();
         private void ensureWarningsIsMutable() {
           if (!((bitField0_ & 0x00000002) != 0)) {
             warnings_ = new java.util.ArrayList(warnings_);
             bitField0_ |= 0x00000002;
    -      }
    +       }
         }
     
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.asset.v1.MoveImpact,
    -            com.google.cloud.asset.v1.MoveImpact.Builder,
    -            com.google.cloud.asset.v1.MoveImpactOrBuilder>
    -        warningsBuilder_;
    +        com.google.cloud.asset.v1.MoveImpact, com.google.cloud.asset.v1.MoveImpact.Builder, com.google.cloud.asset.v1.MoveImpactOrBuilder> warningsBuilder_;
     
         /**
    -     *
    -     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1102,8 +978,6 @@ public java.util.List getWarningsList() {
           }
         }
         /**
    -     *
    -     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1120,8 +994,6 @@ public int getWarningsCount() {
           }
         }
         /**
    -     *
    -     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1138,8 +1010,6 @@ public com.google.cloud.asset.v1.MoveImpact getWarnings(int index) {
           }
         }
         /**
    -     *
    -     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1148,7 +1018,8 @@ public com.google.cloud.asset.v1.MoveImpact getWarnings(int index) {
          *
          * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
          */
    -    public Builder setWarnings(int index, com.google.cloud.asset.v1.MoveImpact value) {
    +    public Builder setWarnings(
    +        int index, com.google.cloud.asset.v1.MoveImpact value) {
           if (warningsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -1162,8 +1033,6 @@ public Builder setWarnings(int index, com.google.cloud.asset.v1.MoveImpact value
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1184,8 +1053,6 @@ public Builder setWarnings(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1208,8 +1075,6 @@ public Builder addWarnings(com.google.cloud.asset.v1.MoveImpact value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1218,7 +1083,8 @@ public Builder addWarnings(com.google.cloud.asset.v1.MoveImpact value) {
          *
          * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
          */
    -    public Builder addWarnings(int index, com.google.cloud.asset.v1.MoveImpact value) {
    +    public Builder addWarnings(
    +        int index, com.google.cloud.asset.v1.MoveImpact value) {
           if (warningsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -1232,8 +1098,6 @@ public Builder addWarnings(int index, com.google.cloud.asset.v1.MoveImpact value
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1242,7 +1106,8 @@ public Builder addWarnings(int index, com.google.cloud.asset.v1.MoveImpact value
          *
          * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
          */
    -    public Builder addWarnings(com.google.cloud.asset.v1.MoveImpact.Builder builderForValue) {
    +    public Builder addWarnings(
    +        com.google.cloud.asset.v1.MoveImpact.Builder builderForValue) {
           if (warningsBuilder_ == null) {
             ensureWarningsIsMutable();
             warnings_.add(builderForValue.build());
    @@ -1253,8 +1118,6 @@ public Builder addWarnings(com.google.cloud.asset.v1.MoveImpact.Builder builderF
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1275,8 +1138,6 @@ public Builder addWarnings(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1289,7 +1150,8 @@ public Builder addAllWarnings(
             java.lang.Iterable values) {
           if (warningsBuilder_ == null) {
             ensureWarningsIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    +            values, warnings_);
             onChanged();
           } else {
             warningsBuilder_.addAllMessages(values);
    @@ -1297,8 +1159,6 @@ public Builder addAllWarnings(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1318,8 +1178,6 @@ public Builder clearWarnings() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1339,8 +1197,6 @@ public Builder removeWarnings(int index) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1349,12 +1205,11 @@ public Builder removeWarnings(int index) {
          *
          * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
          */
    -    public com.google.cloud.asset.v1.MoveImpact.Builder getWarningsBuilder(int index) {
    +    public com.google.cloud.asset.v1.MoveImpact.Builder getWarningsBuilder(
    +        int index) {
           return getWarningsFieldBuilder().getBuilder(index);
         }
         /**
    -     *
    -     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1363,16 +1218,14 @@ public com.google.cloud.asset.v1.MoveImpact.Builder getWarningsBuilder(int index
          *
          * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
          */
    -    public com.google.cloud.asset.v1.MoveImpactOrBuilder getWarningsOrBuilder(int index) {
    +    public com.google.cloud.asset.v1.MoveImpactOrBuilder getWarningsOrBuilder(
    +        int index) {
           if (warningsBuilder_ == null) {
    -        return warnings_.get(index);
    -      } else {
    +        return warnings_.get(index);  } else {
             return warningsBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    -     *
    -     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1381,8 +1234,8 @@ public com.google.cloud.asset.v1.MoveImpactOrBuilder getWarningsOrBuilder(int in
          *
          * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
          */
    -    public java.util.List
    -        getWarningsOrBuilderList() {
    +    public java.util.List 
    +         getWarningsOrBuilderList() {
           if (warningsBuilder_ != null) {
             return warningsBuilder_.getMessageOrBuilderList();
           } else {
    @@ -1390,8 +1243,6 @@ public com.google.cloud.asset.v1.MoveImpactOrBuilder getWarningsOrBuilder(int in
           }
         }
         /**
    -     *
    -     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1401,12 +1252,10 @@ public com.google.cloud.asset.v1.MoveImpactOrBuilder getWarningsOrBuilder(int in
          * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
          */
         public com.google.cloud.asset.v1.MoveImpact.Builder addWarningsBuilder() {
    -      return getWarningsFieldBuilder()
    -          .addBuilder(com.google.cloud.asset.v1.MoveImpact.getDefaultInstance());
    +      return getWarningsFieldBuilder().addBuilder(
    +          com.google.cloud.asset.v1.MoveImpact.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1415,13 +1264,12 @@ public com.google.cloud.asset.v1.MoveImpact.Builder addWarningsBuilder() {
          *
          * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
          */
    -    public com.google.cloud.asset.v1.MoveImpact.Builder addWarningsBuilder(int index) {
    -      return getWarningsFieldBuilder()
    -          .addBuilder(index, com.google.cloud.asset.v1.MoveImpact.getDefaultInstance());
    +    public com.google.cloud.asset.v1.MoveImpact.Builder addWarningsBuilder(
    +        int index) {
    +      return getWarningsFieldBuilder().addBuilder(
    +          index, com.google.cloud.asset.v1.MoveImpact.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1430,29 +1278,27 @@ public com.google.cloud.asset.v1.MoveImpact.Builder addWarningsBuilder(int index
          *
          * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
          */
    -    public java.util.List getWarningsBuilderList() {
    +    public java.util.List 
    +         getWarningsBuilderList() {
           return getWarningsFieldBuilder().getBuilderList();
         }
    -
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.asset.v1.MoveImpact,
    -            com.google.cloud.asset.v1.MoveImpact.Builder,
    -            com.google.cloud.asset.v1.MoveImpactOrBuilder>
    +        com.google.cloud.asset.v1.MoveImpact, com.google.cloud.asset.v1.MoveImpact.Builder, com.google.cloud.asset.v1.MoveImpactOrBuilder> 
             getWarningsFieldBuilder() {
           if (warningsBuilder_ == null) {
    -        warningsBuilder_ =
    -            new com.google.protobuf.RepeatedFieldBuilderV3<
    -                com.google.cloud.asset.v1.MoveImpact,
    -                com.google.cloud.asset.v1.MoveImpact.Builder,
    -                com.google.cloud.asset.v1.MoveImpactOrBuilder>(
    -                warnings_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
    +        warningsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    +            com.google.cloud.asset.v1.MoveImpact, com.google.cloud.asset.v1.MoveImpact.Builder, com.google.cloud.asset.v1.MoveImpactOrBuilder>(
    +                warnings_,
    +                ((bitField0_ & 0x00000002) != 0),
    +                getParentForChildren(),
    +                isClean());
             warnings_ = null;
           }
           return warningsBuilder_;
         }
    -
         @java.lang.Override
    -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(
    +        final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -1462,12 +1308,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    +
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.MoveAnalysisResult)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.MoveAnalysisResult)
       private static final com.google.cloud.asset.v1.MoveAnalysisResult DEFAULT_INSTANCE;
    -
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1.MoveAnalysisResult();
       }
    @@ -1476,16 +1322,27 @@ public static com.google.cloud.asset.v1.MoveAnalysisResult getDefaultInstance()
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser PARSER =
    -      new com.google.protobuf.AbstractParser() {
    -        @java.lang.Override
    -        public MoveAnalysisResult parsePartialFrom(
    -            com.google.protobuf.CodedInputStream input,
    -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -            throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new MoveAnalysisResult(input, extensionRegistry);
    -        }
    -      };
    +  private static final com.google.protobuf.Parser
    +      PARSER = new com.google.protobuf.AbstractParser() {
    +    @java.lang.Override
    +    public MoveAnalysisResult parsePartialFrom(
    +        com.google.protobuf.CodedInputStream input,
    +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        throws com.google.protobuf.InvalidProtocolBufferException {
    +      Builder builder = newBuilder();
    +      try {
    +        builder.mergeFrom(input, extensionRegistry);
    +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +        throw e.setUnfinishedMessage(builder.buildPartial());
    +      } catch (com.google.protobuf.UninitializedMessageException e) {
    +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +      } catch (java.io.IOException e) {
    +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +            .setUnfinishedMessage(builder.buildPartial());
    +      }
    +      return builder.buildPartial();
    +    }
    +  };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1500,4 +1357,6 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1.MoveAnalysisResult getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    +
     }
    +
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResultOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResultOrBuilder.java
    similarity index 79%
    rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResultOrBuilder.java
    rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResultOrBuilder.java
    index d8b667ad2f22..2d63ef150fcd 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResultOrBuilder.java
    +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResultOrBuilder.java
    @@ -1,31 +1,13 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
    -public interface MoveAnalysisResultOrBuilder
    -    extends
    +public interface MoveAnalysisResultOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.MoveAnalysisResult)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    -   *
    -   *
        * 
        * Blocking information that would prevent the target resource from moving
        * to the specified destination at runtime.
    @@ -33,10 +15,9 @@ public interface MoveAnalysisResultOrBuilder
        *
        * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
        */
    -  java.util.List getBlockersList();
    +  java.util.List 
    +      getBlockersList();
       /**
    -   *
    -   *
        * 
        * Blocking information that would prevent the target resource from moving
        * to the specified destination at runtime.
    @@ -46,8 +27,6 @@ public interface MoveAnalysisResultOrBuilder
        */
       com.google.cloud.asset.v1.MoveImpact getBlockers(int index);
       /**
    -   *
    -   *
        * 
        * Blocking information that would prevent the target resource from moving
        * to the specified destination at runtime.
    @@ -57,8 +36,6 @@ public interface MoveAnalysisResultOrBuilder
        */
       int getBlockersCount();
       /**
    -   *
    -   *
        * 
        * Blocking information that would prevent the target resource from moving
        * to the specified destination at runtime.
    @@ -66,11 +43,9 @@ public interface MoveAnalysisResultOrBuilder
        *
        * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
        */
    -  java.util.List
    +  java.util.List 
           getBlockersOrBuilderList();
       /**
    -   *
    -   *
        * 
        * Blocking information that would prevent the target resource from moving
        * to the specified destination at runtime.
    @@ -78,11 +53,10 @@ public interface MoveAnalysisResultOrBuilder
        *
        * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
        */
    -  com.google.cloud.asset.v1.MoveImpactOrBuilder getBlockersOrBuilder(int index);
    +  com.google.cloud.asset.v1.MoveImpactOrBuilder getBlockersOrBuilder(
    +      int index);
     
       /**
    -   *
    -   *
        * 
        * Warning information indicating that moving the target resource to the
        * specified destination might be unsafe. This can include important policy
    @@ -91,10 +65,9 @@ public interface MoveAnalysisResultOrBuilder
        *
        * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
        */
    -  java.util.List getWarningsList();
    +  java.util.List 
    +      getWarningsList();
       /**
    -   *
    -   *
        * 
        * Warning information indicating that moving the target resource to the
        * specified destination might be unsafe. This can include important policy
    @@ -105,8 +78,6 @@ public interface MoveAnalysisResultOrBuilder
        */
       com.google.cloud.asset.v1.MoveImpact getWarnings(int index);
       /**
    -   *
    -   *
        * 
        * Warning information indicating that moving the target resource to the
        * specified destination might be unsafe. This can include important policy
    @@ -117,8 +88,6 @@ public interface MoveAnalysisResultOrBuilder
        */
       int getWarningsCount();
       /**
    -   *
    -   *
        * 
        * Warning information indicating that moving the target resource to the
        * specified destination might be unsafe. This can include important policy
    @@ -127,11 +96,9 @@ public interface MoveAnalysisResultOrBuilder
        *
        * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
        */
    -  java.util.List
    +  java.util.List 
           getWarningsOrBuilderList();
       /**
    -   *
    -   *
        * 
        * Warning information indicating that moving the target resource to the
        * specified destination might be unsafe. This can include important policy
    @@ -140,5 +107,6 @@ public interface MoveAnalysisResultOrBuilder
        *
        * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
        */
    -  com.google.cloud.asset.v1.MoveImpactOrBuilder getWarningsOrBuilder(int index);
    +  com.google.cloud.asset.v1.MoveImpactOrBuilder getWarningsOrBuilder(
    +      int index);
     }
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpact.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpact.java
    similarity index 60%
    rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpact.java
    rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpact.java
    index 5a2303a10bdf..625253bbddb9 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpact.java
    +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpact.java
    @@ -1,129 +1,61 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
     /**
    - *
    - *
      * 
      * A message to group impacts of moving the target resource.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.MoveImpact} */ -public final class MoveImpact extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MoveImpact extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.MoveImpact) MoveImpactOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MoveImpact.newBuilder() to construct. private MoveImpact(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MoveImpact() { detail_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MoveImpact(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private MoveImpact( - 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(); - - detail_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_MoveImpact_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveImpact_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_MoveImpact_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveImpact_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.MoveImpact.class, - com.google.cloud.asset.v1.MoveImpact.Builder.class); + com.google.cloud.asset.v1.MoveImpact.class, com.google.cloud.asset.v1.MoveImpact.Builder.class); } public static final int DETAIL_FIELD_NUMBER = 1; private volatile java.lang.Object detail_; /** - * - * *
        * User friendly impact detail in a free form message.
        * 
    * * string detail = 1; - * * @return The detail. */ @java.lang.Override @@ -132,29 +64,29 @@ public java.lang.String getDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detail_ = s; return s; } } /** - * - * *
        * User friendly impact detail in a free form message.
        * 
    * * string detail = 1; - * * @return The bytes for detail. */ @java.lang.Override - public com.google.protobuf.ByteString getDetailBytes() { + public com.google.protobuf.ByteString + getDetailBytes() { java.lang.Object ref = detail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); detail_ = b; return b; } else { @@ -163,7 +95,6 @@ public com.google.protobuf.ByteString getDetailBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,11 +106,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, detail_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -191,7 +123,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, detail_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -199,15 +131,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.MoveImpact)) { return super.equals(obj); } com.google.cloud.asset.v1.MoveImpact other = (com.google.cloud.asset.v1.MoveImpact) obj; - if (!getDetail().equals(other.getDetail())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getDetail() + .equals(other.getDetail())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -220,147 +153,135 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DETAIL_FIELD_NUMBER; hash = (53 * hash) + getDetail().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.MoveImpact parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.MoveImpact parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.MoveImpact parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.MoveImpact parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.asset.v1.MoveImpact parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.MoveImpact 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.asset.v1.MoveImpact parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.MoveImpact parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.MoveImpact parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.MoveImpact parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.MoveImpact parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.MoveImpact parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.MoveImpact parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.MoveImpact parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.MoveImpact prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * A message to group impacts of moving the target resource.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.MoveImpact} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.MoveImpact) com.google.cloud.asset.v1.MoveImpactOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_MoveImpact_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveImpact_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_MoveImpact_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveImpact_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.MoveImpact.class, - com.google.cloud.asset.v1.MoveImpact.Builder.class); + com.google.cloud.asset.v1.MoveImpact.class, com.google.cloud.asset.v1.MoveImpact.Builder.class); } // Construct using com.google.cloud.asset.v1.MoveImpact.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -370,9 +291,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_MoveImpact_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveImpact_descriptor; } @java.lang.Override @@ -401,39 +322,38 @@ public com.google.cloud.asset.v1.MoveImpact buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.MoveImpact) { - return mergeFrom((com.google.cloud.asset.v1.MoveImpact) other); + return mergeFrom((com.google.cloud.asset.v1.MoveImpact)other); } else { super.mergeFrom(other); return this; @@ -446,7 +366,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.MoveImpact other) { detail_ = other.detail_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -461,36 +381,52 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.MoveImpact parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + detail_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.MoveImpact) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object detail_ = ""; /** - * - * *
          * User friendly impact detail in a free form message.
          * 
    * * string detail = 1; - * * @return The detail. */ public java.lang.String getDetail() { java.lang.Object ref = detail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detail_ = s; return s; @@ -499,21 +435,20 @@ public java.lang.String getDetail() { } } /** - * - * *
          * User friendly impact detail in a free form message.
          * 
    * * string detail = 1; - * * @return The bytes for detail. */ - public com.google.protobuf.ByteString getDetailBytes() { + public com.google.protobuf.ByteString + getDetailBytes() { java.lang.Object ref = detail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); detail_ = b; return b; } else { @@ -521,68 +456,61 @@ public com.google.protobuf.ByteString getDetailBytes() { } } /** - * - * *
          * User friendly impact detail in a free form message.
          * 
    * * string detail = 1; - * * @param value The detail to set. * @return This builder for chaining. */ - public Builder setDetail(java.lang.String value) { + public Builder setDetail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + detail_ = value; onChanged(); return this; } /** - * - * *
          * User friendly impact detail in a free form message.
          * 
    * * string detail = 1; - * * @return This builder for chaining. */ public Builder clearDetail() { - + detail_ = getDefaultInstance().getDetail(); onChanged(); return this; } /** - * - * *
          * User friendly impact detail in a free form message.
          * 
    * * string detail = 1; - * * @param value The bytes for detail to set. * @return This builder for chaining. */ - public Builder setDetailBytes(com.google.protobuf.ByteString value) { + public Builder setDetailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + detail_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +520,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.MoveImpact) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.MoveImpact) private static final com.google.cloud.asset.v1.MoveImpact DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.MoveImpact(); } @@ -606,16 +534,27 @@ public static com.google.cloud.asset.v1.MoveImpact getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MoveImpact parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MoveImpact(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MoveImpact parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -630,4 +569,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.MoveImpact getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpactOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpactOrBuilder.java new file mode 100644 index 000000000000..d6416c9411ab --- /dev/null +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpactOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface MoveImpactOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.MoveImpact) + com.google.protobuf.MessageOrBuilder { + + /** + *
    +   * User friendly impact detail in a free form message.
    +   * 
    + * + * string detail = 1; + * @return The detail. + */ + java.lang.String getDetail(); + /** + *
    +   * User friendly impact detail in a free form message.
    +   * 
    + * + * string detail = 1; + * @return The bytes for detail. + */ + com.google.protobuf.ByteString + getDetailBytes(); +} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OrganizationName.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OrganizationName.java similarity index 100% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OrganizationName.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OrganizationName.java diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfig.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfig.java similarity index 67% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfig.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfig.java index 6e02e0f21a00..748c82f6c438 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfig.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfig.java @@ -1,154 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * Output configuration for export assets destination.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.OutputConfig} */ -public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.OutputConfig) OutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private OutputConfig() {} + private OutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private OutputConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.asset.v1.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = ((com.google.cloud.asset.v1.GcsDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.asset.v1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.asset.v1.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 1; - break; - } - case 18: - { - com.google.cloud.asset.v1.BigQueryDestination.Builder subBuilder = null; - if (destinationCase_ == 2) { - subBuilder = - ((com.google.cloud.asset.v1.BigQueryDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.asset.v1.BigQueryDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.asset.v1.BigQueryDestination) destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 2; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_OutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.OutputConfig.class, - com.google.cloud.asset.v1.OutputConfig.Builder.class); + com.google.cloud.asset.v1.OutputConfig.class, com.google.cloud.asset.v1.OutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), BIGQUERY_DESTINATION(2), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -164,36 +71,30 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 2: - return BIGQUERY_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 2: return BIGQUERY_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
        * Destination on Cloud Storage.
        * 
    * * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -201,26 +102,21 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
        * Destination on Cloud Storage.
        * 
    * * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.asset.v1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1.GcsDestination) destination_; + return (com.google.cloud.asset.v1.GcsDestination) destination_; } return com.google.cloud.asset.v1.GcsDestination.getDefaultInstance(); } /** - * - * *
        * Destination on Cloud Storage.
        * 
    @@ -230,22 +126,19 @@ public com.google.cloud.asset.v1.GcsDestination getGcsDestination() { @java.lang.Override public com.google.cloud.asset.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1.GcsDestination) destination_; + return (com.google.cloud.asset.v1.GcsDestination) destination_; } return com.google.cloud.asset.v1.GcsDestination.getDefaultInstance(); } public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 2; /** - * - * *
        * Destination on BigQuery. The output table stores the fields in asset
        * Protobuf as columns in BigQuery.
        * 
    * * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; - * * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -253,27 +146,22 @@ public boolean hasBigqueryDestination() { return destinationCase_ == 2; } /** - * - * *
        * Destination on BigQuery. The output table stores the fields in asset
        * Protobuf as columns in BigQuery.
        * 
    * * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; - * * @return The bigqueryDestination. */ @java.lang.Override public com.google.cloud.asset.v1.BigQueryDestination getBigqueryDestination() { if (destinationCase_ == 2) { - return (com.google.cloud.asset.v1.BigQueryDestination) destination_; + return (com.google.cloud.asset.v1.BigQueryDestination) destination_; } return com.google.cloud.asset.v1.BigQueryDestination.getDefaultInstance(); } /** - * - * *
        * Destination on BigQuery. The output table stores the fields in asset
        * Protobuf as columns in BigQuery.
    @@ -284,13 +172,12 @@ public com.google.cloud.asset.v1.BigQueryDestination getBigqueryDestination() {
       @java.lang.Override
       public com.google.cloud.asset.v1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() {
         if (destinationCase_ == 2) {
    -      return (com.google.cloud.asset.v1.BigQueryDestination) destination_;
    +       return (com.google.cloud.asset.v1.BigQueryDestination) destination_;
         }
         return com.google.cloud.asset.v1.BigQueryDestination.getDefaultInstance();
       }
     
       private byte memoizedIsInitialized = -1;
    -
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -302,14 +189,15 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output)
    +                      throws java.io.IOException {
         if (destinationCase_ == 1) {
           output.writeMessage(1, (com.google.cloud.asset.v1.GcsDestination) destination_);
         }
         if (destinationCase_ == 2) {
           output.writeMessage(2, (com.google.cloud.asset.v1.BigQueryDestination) destination_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -319,16 +207,14 @@ public int getSerializedSize() {
     
         size = 0;
         if (destinationCase_ == 1) {
    -      size +=
    -          com.google.protobuf.CodedOutputStream.computeMessageSize(
    -              1, (com.google.cloud.asset.v1.GcsDestination) destination_);
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(1, (com.google.cloud.asset.v1.GcsDestination) destination_);
         }
         if (destinationCase_ == 2) {
    -      size +=
    -          com.google.protobuf.CodedOutputStream.computeMessageSize(
    -              2, (com.google.cloud.asset.v1.BigQueryDestination) destination_);
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(2, (com.google.cloud.asset.v1.BigQueryDestination) destination_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -336,7 +222,7 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -      return true;
    +     return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1.OutputConfig)) {
           return super.equals(obj);
    @@ -346,15 +232,17 @@ public boolean equals(final java.lang.Object obj) {
         if (!getDestinationCase().equals(other.getDestinationCase())) return false;
         switch (destinationCase_) {
           case 1:
    -        if (!getGcsDestination().equals(other.getGcsDestination())) return false;
    +        if (!getGcsDestination()
    +            .equals(other.getGcsDestination())) return false;
             break;
           case 2:
    -        if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false;
    +        if (!getBigqueryDestination()
    +            .equals(other.getBigqueryDestination())) return false;
             break;
           case 0:
           default:
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -377,160 +265,153 @@ public int hashCode() {
           case 0:
           default:
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1.OutputConfig parseFrom(java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1.OutputConfig parseFrom(
    +      java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.OutputConfig parseFrom(
    -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.OutputConfig parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.OutputConfig 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.asset.v1.OutputConfig parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.OutputConfig parseFrom(
    -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.OutputConfig parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.OutputConfig parseFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.OutputConfig parseDelimitedFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.OutputConfig parseDelimitedFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.OutputConfig parseFrom(
    -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.OutputConfig parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() {
    -    return newBuilder();
    -  }
    -
    +  public Builder newBuilderForType() { return newBuilder(); }
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    -
       public static Builder newBuilder(com.google.cloud.asset.v1.OutputConfig prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    -
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE
    +        ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(
    +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    -   *
    -   *
        * 
        * Output configuration for export assets destination.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.OutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.OutputConfig) com.google.cloud.asset.v1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_OutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.OutputConfig.class, - com.google.cloud.asset.v1.OutputConfig.Builder.class); + com.google.cloud.asset.v1.OutputConfig.class, com.google.cloud.asset.v1.OutputConfig.Builder.class); } // Construct using com.google.cloud.asset.v1.OutputConfig.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @java.lang.Override public Builder clear() { super.clear(); + if (gcsDestinationBuilder_ != null) { + gcsDestinationBuilder_.clear(); + } + if (bigqueryDestinationBuilder_ != null) { + bigqueryDestinationBuilder_.clear(); + } destinationCase_ = 0; destination_ = null; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_OutputConfig_descriptor; } @java.lang.Override @@ -549,8 +430,7 @@ public com.google.cloud.asset.v1.OutputConfig build() { @java.lang.Override public com.google.cloud.asset.v1.OutputConfig buildPartial() { - com.google.cloud.asset.v1.OutputConfig result = - new com.google.cloud.asset.v1.OutputConfig(this); + com.google.cloud.asset.v1.OutputConfig result = new com.google.cloud.asset.v1.OutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -574,39 +454,38 @@ public com.google.cloud.asset.v1.OutputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.OutputConfig) { - return mergeFrom((com.google.cloud.asset.v1.OutputConfig) other); + return mergeFrom((com.google.cloud.asset.v1.OutputConfig)other); } else { super.mergeFrom(other); return this; @@ -616,22 +495,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.asset.v1.OutputConfig other) { if (other == com.google.cloud.asset.v1.OutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case BIGQUERY_DESTINATION: - { - mergeBigqueryDestination(other.getBigqueryDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case BIGQUERY_DESTINATION: { + mergeBigqueryDestination(other.getBigqueryDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -646,25 +522,52 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.OutputConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getGcsDestinationFieldBuilder().getBuilder(), + extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getBigqueryDestinationFieldBuilder().getBuilder(), + extensionRegistry); + destinationCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.OutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -674,20 +577,15 @@ public Builder clearDestination() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.GcsDestination, - com.google.cloud.asset.v1.GcsDestination.Builder, - com.google.cloud.asset.v1.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.asset.v1.GcsDestination, com.google.cloud.asset.v1.GcsDestination.Builder, com.google.cloud.asset.v1.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
          * Destination on Cloud Storage.
          * 
    * * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -695,14 +593,11 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
          * Destination on Cloud Storage.
          * 
    * * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override @@ -720,8 +615,6 @@ public com.google.cloud.asset.v1.GcsDestination getGcsDestination() { } } /** - * - * *
          * Destination on Cloud Storage.
          * 
    @@ -742,8 +635,6 @@ public Builder setGcsDestination(com.google.cloud.asset.v1.GcsDestination value) return this; } /** - * - * *
          * Destination on Cloud Storage.
          * 
    @@ -762,8 +653,6 @@ public Builder setGcsDestination( return this; } /** - * - * *
          * Destination on Cloud Storage.
          * 
    @@ -772,13 +661,10 @@ public Builder setGcsDestination( */ public Builder mergeGcsDestination(com.google.cloud.asset.v1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 - && destination_ != com.google.cloud.asset.v1.GcsDestination.getDefaultInstance()) { - destination_ = - com.google.cloud.asset.v1.GcsDestination.newBuilder( - (com.google.cloud.asset.v1.GcsDestination) destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 1 && + destination_ != com.google.cloud.asset.v1.GcsDestination.getDefaultInstance()) { + destination_ = com.google.cloud.asset.v1.GcsDestination.newBuilder((com.google.cloud.asset.v1.GcsDestination) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -794,8 +680,6 @@ public Builder mergeGcsDestination(com.google.cloud.asset.v1.GcsDestination valu return this; } /** - * - * *
          * Destination on Cloud Storage.
          * 
    @@ -819,8 +703,6 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
          * Destination on Cloud Storage.
          * 
    @@ -831,8 +713,6 @@ public com.google.cloud.asset.v1.GcsDestination.Builder getGcsDestinationBuilder return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
          * Destination on Cloud Storage.
          * 
    @@ -851,8 +731,6 @@ public com.google.cloud.asset.v1.GcsDestinationOrBuilder getGcsDestinationOrBuil } } /** - * - * *
          * Destination on Cloud Storage.
          * 
    @@ -860,45 +738,33 @@ public com.google.cloud.asset.v1.GcsDestinationOrBuilder getGcsDestinationOrBuil * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.GcsDestination, - com.google.cloud.asset.v1.GcsDestination.Builder, - com.google.cloud.asset.v1.GcsDestinationOrBuilder> + com.google.cloud.asset.v1.GcsDestination, com.google.cloud.asset.v1.GcsDestination.Builder, com.google.cloud.asset.v1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.asset.v1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.GcsDestination, - com.google.cloud.asset.v1.GcsDestination.Builder, - com.google.cloud.asset.v1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.GcsDestination, com.google.cloud.asset.v1.GcsDestination.Builder, com.google.cloud.asset.v1.GcsDestinationOrBuilder>( (com.google.cloud.asset.v1.GcsDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 1; - onChanged(); - ; + onChanged();; return gcsDestinationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.BigQueryDestination, - com.google.cloud.asset.v1.BigQueryDestination.Builder, - com.google.cloud.asset.v1.BigQueryDestinationOrBuilder> - bigqueryDestinationBuilder_; + com.google.cloud.asset.v1.BigQueryDestination, com.google.cloud.asset.v1.BigQueryDestination.Builder, com.google.cloud.asset.v1.BigQueryDestinationOrBuilder> bigqueryDestinationBuilder_; /** - * - * *
          * Destination on BigQuery. The output table stores the fields in asset
          * Protobuf as columns in BigQuery.
          * 
    * * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; - * * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -906,15 +772,12 @@ public boolean hasBigqueryDestination() { return destinationCase_ == 2; } /** - * - * *
          * Destination on BigQuery. The output table stores the fields in asset
          * Protobuf as columns in BigQuery.
          * 
    * * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; - * * @return The bigqueryDestination. */ @java.lang.Override @@ -932,8 +795,6 @@ public com.google.cloud.asset.v1.BigQueryDestination getBigqueryDestination() { } } /** - * - * *
          * Destination on BigQuery. The output table stores the fields in asset
          * Protobuf as columns in BigQuery.
    @@ -955,8 +816,6 @@ public Builder setBigqueryDestination(com.google.cloud.asset.v1.BigQueryDestinat
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Destination on BigQuery. The output table stores the fields in asset
          * Protobuf as columns in BigQuery.
    @@ -976,8 +835,6 @@ public Builder setBigqueryDestination(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Destination on BigQuery. The output table stores the fields in asset
          * Protobuf as columns in BigQuery.
    @@ -987,13 +844,10 @@ public Builder setBigqueryDestination(
          */
         public Builder mergeBigqueryDestination(com.google.cloud.asset.v1.BigQueryDestination value) {
           if (bigqueryDestinationBuilder_ == null) {
    -        if (destinationCase_ == 2
    -            && destination_ != com.google.cloud.asset.v1.BigQueryDestination.getDefaultInstance()) {
    -          destination_ =
    -              com.google.cloud.asset.v1.BigQueryDestination.newBuilder(
    -                      (com.google.cloud.asset.v1.BigQueryDestination) destination_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +        if (destinationCase_ == 2 &&
    +            destination_ != com.google.cloud.asset.v1.BigQueryDestination.getDefaultInstance()) {
    +          destination_ = com.google.cloud.asset.v1.BigQueryDestination.newBuilder((com.google.cloud.asset.v1.BigQueryDestination) destination_)
    +              .mergeFrom(value).buildPartial();
             } else {
               destination_ = value;
             }
    @@ -1009,8 +863,6 @@ public Builder mergeBigqueryDestination(com.google.cloud.asset.v1.BigQueryDestin
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Destination on BigQuery. The output table stores the fields in asset
          * Protobuf as columns in BigQuery.
    @@ -1035,8 +887,6 @@ public Builder clearBigqueryDestination() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Destination on BigQuery. The output table stores the fields in asset
          * Protobuf as columns in BigQuery.
    @@ -1048,8 +898,6 @@ public com.google.cloud.asset.v1.BigQueryDestination.Builder getBigqueryDestinat
           return getBigqueryDestinationFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * Destination on BigQuery. The output table stores the fields in asset
          * Protobuf as columns in BigQuery.
    @@ -1058,8 +906,7 @@ public com.google.cloud.asset.v1.BigQueryDestination.Builder getBigqueryDestinat
          * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2;
          */
         @java.lang.Override
    -    public com.google.cloud.asset.v1.BigQueryDestinationOrBuilder
    -        getBigqueryDestinationOrBuilder() {
    +    public com.google.cloud.asset.v1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() {
           if ((destinationCase_ == 2) && (bigqueryDestinationBuilder_ != null)) {
             return bigqueryDestinationBuilder_.getMessageOrBuilder();
           } else {
    @@ -1070,8 +917,6 @@ public com.google.cloud.asset.v1.BigQueryDestination.Builder getBigqueryDestinat
           }
         }
         /**
    -     *
    -     *
          * 
          * Destination on BigQuery. The output table stores the fields in asset
          * Protobuf as columns in BigQuery.
    @@ -1080,32 +925,26 @@ public com.google.cloud.asset.v1.BigQueryDestination.Builder getBigqueryDestinat
          * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.BigQueryDestination,
    -            com.google.cloud.asset.v1.BigQueryDestination.Builder,
    -            com.google.cloud.asset.v1.BigQueryDestinationOrBuilder>
    +        com.google.cloud.asset.v1.BigQueryDestination, com.google.cloud.asset.v1.BigQueryDestination.Builder, com.google.cloud.asset.v1.BigQueryDestinationOrBuilder> 
             getBigqueryDestinationFieldBuilder() {
           if (bigqueryDestinationBuilder_ == null) {
             if (!(destinationCase_ == 2)) {
               destination_ = com.google.cloud.asset.v1.BigQueryDestination.getDefaultInstance();
             }
    -        bigqueryDestinationBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.cloud.asset.v1.BigQueryDestination,
    -                com.google.cloud.asset.v1.BigQueryDestination.Builder,
    -                com.google.cloud.asset.v1.BigQueryDestinationOrBuilder>(
    +        bigqueryDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.cloud.asset.v1.BigQueryDestination, com.google.cloud.asset.v1.BigQueryDestination.Builder, com.google.cloud.asset.v1.BigQueryDestinationOrBuilder>(
                     (com.google.cloud.asset.v1.BigQueryDestination) destination_,
                     getParentForChildren(),
                     isClean());
             destination_ = null;
           }
           destinationCase_ = 2;
    -      onChanged();
    -      ;
    +      onChanged();;
           return bigqueryDestinationBuilder_;
         }
    -
         @java.lang.Override
    -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(
    +        final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -1115,12 +954,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    +
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.OutputConfig)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.OutputConfig)
       private static final com.google.cloud.asset.v1.OutputConfig DEFAULT_INSTANCE;
    -
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1.OutputConfig();
       }
    @@ -1129,16 +968,27 @@ public static com.google.cloud.asset.v1.OutputConfig getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser PARSER =
    -      new com.google.protobuf.AbstractParser() {
    -        @java.lang.Override
    -        public OutputConfig parsePartialFrom(
    -            com.google.protobuf.CodedInputStream input,
    -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -            throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new OutputConfig(input, extensionRegistry);
    -        }
    -      };
    +  private static final com.google.protobuf.Parser
    +      PARSER = new com.google.protobuf.AbstractParser() {
    +    @java.lang.Override
    +    public OutputConfig parsePartialFrom(
    +        com.google.protobuf.CodedInputStream input,
    +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        throws com.google.protobuf.InvalidProtocolBufferException {
    +      Builder builder = newBuilder();
    +      try {
    +        builder.mergeFrom(input, extensionRegistry);
    +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +        throw e.setUnfinishedMessage(builder.buildPartial());
    +      } catch (com.google.protobuf.UninitializedMessageException e) {
    +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +      } catch (java.io.IOException e) {
    +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +            .setUnfinishedMessage(builder.buildPartial());
    +      }
    +      return builder.buildPartial();
    +    }
    +  };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1153,4 +1003,6 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1.OutputConfig getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    +
     }
    +
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfigOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfigOrBuilder.java
    similarity index 74%
    rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfigOrBuilder.java
    rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfigOrBuilder.java
    index ce0fc0dedae4..de717d5a0d5d 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfigOrBuilder.java
    +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfigOrBuilder.java
    @@ -1,55 +1,31 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
    -public interface OutputConfigOrBuilder
    -    extends
    +public interface OutputConfigOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.OutputConfig)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    -   *
    -   *
        * 
        * Destination on Cloud Storage.
        * 
    * * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
        * Destination on Cloud Storage.
        * 
    * * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.asset.v1.GcsDestination getGcsDestination(); /** - * - * *
        * Destination on Cloud Storage.
        * 
    @@ -59,34 +35,26 @@ public interface OutputConfigOrBuilder com.google.cloud.asset.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** - * - * *
        * Destination on BigQuery. The output table stores the fields in asset
        * Protobuf as columns in BigQuery.
        * 
    * * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; - * * @return Whether the bigqueryDestination field is set. */ boolean hasBigqueryDestination(); /** - * - * *
        * Destination on BigQuery. The output table stores the fields in asset
        * Protobuf as columns in BigQuery.
        * 
    * * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; - * * @return The bigqueryDestination. */ com.google.cloud.asset.v1.BigQueryDestination getBigqueryDestination(); /** - * - * *
        * Destination on BigQuery. The output table stores the fields in asset
        * Protobuf as columns in BigQuery.
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResult.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResult.java
    similarity index 63%
    rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResult.java
    rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResult.java
    index 7922ccf43f4d..443b755b645e 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResult.java
    +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResult.java
    @@ -1,136 +1,60 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
     /**
    - *
    - *
      * 
      * Output result of export assets.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.OutputResult} */ -public final class OutputResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutputResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.OutputResult) OutputResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutputResult.newBuilder() to construct. private OutputResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private OutputResult() {} + private OutputResult() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutputResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private OutputResult( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.asset.v1.GcsOutputResult.Builder subBuilder = null; - if (resultCase_ == 1) { - subBuilder = ((com.google.cloud.asset.v1.GcsOutputResult) result_).toBuilder(); - } - result_ = - input.readMessage( - com.google.cloud.asset.v1.GcsOutputResult.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.asset.v1.GcsOutputResult) result_); - result_ = subBuilder.buildPartial(); - } - resultCase_ = 1; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_OutputResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_OutputResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_OutputResult_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_OutputResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.OutputResult.class, - com.google.cloud.asset.v1.OutputResult.Builder.class); + com.google.cloud.asset.v1.OutputResult.class, com.google.cloud.asset.v1.OutputResult.Builder.class); } private int resultCase_ = 0; private java.lang.Object result_; - public enum ResultCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_RESULT(1), RESULT_NOT_SET(0); private final int value; - private ResultCase(int value) { this.value = value; } @@ -146,34 +70,29 @@ public static ResultCase valueOf(int value) { public static ResultCase forNumber(int value) { switch (value) { - case 1: - return GCS_RESULT; - case 0: - return RESULT_NOT_SET; - default: - return null; + case 1: return GCS_RESULT; + case 0: return RESULT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ResultCase getResultCase() { - return ResultCase.forNumber(resultCase_); + public ResultCase + getResultCase() { + return ResultCase.forNumber( + resultCase_); } public static final int GCS_RESULT_FIELD_NUMBER = 1; /** - * - * *
        * Export result on Cloud Storage.
        * 
    * * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; - * * @return Whether the gcsResult field is set. */ @java.lang.Override @@ -181,26 +100,21 @@ public boolean hasGcsResult() { return resultCase_ == 1; } /** - * - * *
        * Export result on Cloud Storage.
        * 
    * * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; - * * @return The gcsResult. */ @java.lang.Override public com.google.cloud.asset.v1.GcsOutputResult getGcsResult() { if (resultCase_ == 1) { - return (com.google.cloud.asset.v1.GcsOutputResult) result_; + return (com.google.cloud.asset.v1.GcsOutputResult) result_; } return com.google.cloud.asset.v1.GcsOutputResult.getDefaultInstance(); } /** - * - * *
        * Export result on Cloud Storage.
        * 
    @@ -210,13 +124,12 @@ public com.google.cloud.asset.v1.GcsOutputResult getGcsResult() { @java.lang.Override public com.google.cloud.asset.v1.GcsOutputResultOrBuilder getGcsResultOrBuilder() { if (resultCase_ == 1) { - return (com.google.cloud.asset.v1.GcsOutputResult) result_; + return (com.google.cloud.asset.v1.GcsOutputResult) result_; } return com.google.cloud.asset.v1.GcsOutputResult.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,11 +141,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (resultCase_ == 1) { output.writeMessage(1, (com.google.cloud.asset.v1.GcsOutputResult) result_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -242,11 +156,10 @@ public int getSerializedSize() { size = 0; if (resultCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.asset.v1.GcsOutputResult) result_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.asset.v1.GcsOutputResult) result_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -254,7 +167,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.OutputResult)) { return super.equals(obj); @@ -264,12 +177,13 @@ public boolean equals(final java.lang.Object obj) { if (!getResultCase().equals(other.getResultCase())) return false; switch (resultCase_) { case 1: - if (!getGcsResult().equals(other.getGcsResult())) return false; + if (!getGcsResult() + .equals(other.getGcsResult())) return false; break; case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -288,160 +202,150 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.OutputResult parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.OutputResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.OutputResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.OutputResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.OutputResult 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.asset.v1.OutputResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.OutputResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.OutputResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.OutputResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.OutputResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.OutputResult parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.OutputResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.OutputResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.OutputResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Output result of export assets.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.OutputResult} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.OutputResult) com.google.cloud.asset.v1.OutputResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_OutputResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_OutputResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_OutputResult_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_OutputResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.OutputResult.class, - com.google.cloud.asset.v1.OutputResult.Builder.class); + com.google.cloud.asset.v1.OutputResult.class, com.google.cloud.asset.v1.OutputResult.Builder.class); } // Construct using com.google.cloud.asset.v1.OutputResult.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @java.lang.Override public Builder clear() { super.clear(); + if (gcsResultBuilder_ != null) { + gcsResultBuilder_.clear(); + } resultCase_ = 0; result_ = null; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_OutputResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_OutputResult_descriptor; } @java.lang.Override @@ -460,8 +364,7 @@ public com.google.cloud.asset.v1.OutputResult build() { @java.lang.Override public com.google.cloud.asset.v1.OutputResult buildPartial() { - com.google.cloud.asset.v1.OutputResult result = - new com.google.cloud.asset.v1.OutputResult(this); + com.google.cloud.asset.v1.OutputResult result = new com.google.cloud.asset.v1.OutputResult(this); if (resultCase_ == 1) { if (gcsResultBuilder_ == null) { result.result_ = result_; @@ -478,39 +381,38 @@ public com.google.cloud.asset.v1.OutputResult buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.OutputResult) { - return mergeFrom((com.google.cloud.asset.v1.OutputResult) other); + return mergeFrom((com.google.cloud.asset.v1.OutputResult)other); } else { super.mergeFrom(other); return this; @@ -520,17 +422,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.asset.v1.OutputResult other) { if (other == com.google.cloud.asset.v1.OutputResult.getDefaultInstance()) return this; switch (other.getResultCase()) { - case GCS_RESULT: - { - mergeGcsResult(other.getGcsResult()); - break; - } - case RESULT_NOT_SET: - { - break; - } + case GCS_RESULT: { + mergeGcsResult(other.getGcsResult()); + break; + } + case RESULT_NOT_SET: { + break; + } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -545,25 +445,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.OutputResult parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getGcsResultFieldBuilder().getBuilder(), + extensionRegistry); + resultCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.OutputResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int resultCase_ = 0; private java.lang.Object result_; - - public ResultCase getResultCase() { - return ResultCase.forNumber(resultCase_); + public ResultCase + getResultCase() { + return ResultCase.forNumber( + resultCase_); } public Builder clearResult() { @@ -573,20 +493,15 @@ public Builder clearResult() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.GcsOutputResult, - com.google.cloud.asset.v1.GcsOutputResult.Builder, - com.google.cloud.asset.v1.GcsOutputResultOrBuilder> - gcsResultBuilder_; + com.google.cloud.asset.v1.GcsOutputResult, com.google.cloud.asset.v1.GcsOutputResult.Builder, com.google.cloud.asset.v1.GcsOutputResultOrBuilder> gcsResultBuilder_; /** - * - * *
          * Export result on Cloud Storage.
          * 
    * * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; - * * @return Whether the gcsResult field is set. */ @java.lang.Override @@ -594,14 +509,11 @@ public boolean hasGcsResult() { return resultCase_ == 1; } /** - * - * *
          * Export result on Cloud Storage.
          * 
    * * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; - * * @return The gcsResult. */ @java.lang.Override @@ -619,8 +531,6 @@ public com.google.cloud.asset.v1.GcsOutputResult getGcsResult() { } } /** - * - * *
          * Export result on Cloud Storage.
          * 
    @@ -641,15 +551,14 @@ public Builder setGcsResult(com.google.cloud.asset.v1.GcsOutputResult value) { return this; } /** - * - * *
          * Export result on Cloud Storage.
          * 
    * * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; */ - public Builder setGcsResult(com.google.cloud.asset.v1.GcsOutputResult.Builder builderForValue) { + public Builder setGcsResult( + com.google.cloud.asset.v1.GcsOutputResult.Builder builderForValue) { if (gcsResultBuilder_ == null) { result_ = builderForValue.build(); onChanged(); @@ -660,8 +569,6 @@ public Builder setGcsResult(com.google.cloud.asset.v1.GcsOutputResult.Builder bu return this; } /** - * - * *
          * Export result on Cloud Storage.
          * 
    @@ -670,13 +577,10 @@ public Builder setGcsResult(com.google.cloud.asset.v1.GcsOutputResult.Builder bu */ public Builder mergeGcsResult(com.google.cloud.asset.v1.GcsOutputResult value) { if (gcsResultBuilder_ == null) { - if (resultCase_ == 1 - && result_ != com.google.cloud.asset.v1.GcsOutputResult.getDefaultInstance()) { - result_ = - com.google.cloud.asset.v1.GcsOutputResult.newBuilder( - (com.google.cloud.asset.v1.GcsOutputResult) result_) - .mergeFrom(value) - .buildPartial(); + if (resultCase_ == 1 && + result_ != com.google.cloud.asset.v1.GcsOutputResult.getDefaultInstance()) { + result_ = com.google.cloud.asset.v1.GcsOutputResult.newBuilder((com.google.cloud.asset.v1.GcsOutputResult) result_) + .mergeFrom(value).buildPartial(); } else { result_ = value; } @@ -692,8 +596,6 @@ public Builder mergeGcsResult(com.google.cloud.asset.v1.GcsOutputResult value) { return this; } /** - * - * *
          * Export result on Cloud Storage.
          * 
    @@ -717,8 +619,6 @@ public Builder clearGcsResult() { return this; } /** - * - * *
          * Export result on Cloud Storage.
          * 
    @@ -729,8 +629,6 @@ public com.google.cloud.asset.v1.GcsOutputResult.Builder getGcsResultBuilder() { return getGcsResultFieldBuilder().getBuilder(); } /** - * - * *
          * Export result on Cloud Storage.
          * 
    @@ -749,8 +647,6 @@ public com.google.cloud.asset.v1.GcsOutputResultOrBuilder getGcsResultOrBuilder( } } /** - * - * *
          * Export result on Cloud Storage.
          * 
    @@ -758,32 +654,26 @@ public com.google.cloud.asset.v1.GcsOutputResultOrBuilder getGcsResultOrBuilder( * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.GcsOutputResult, - com.google.cloud.asset.v1.GcsOutputResult.Builder, - com.google.cloud.asset.v1.GcsOutputResultOrBuilder> + com.google.cloud.asset.v1.GcsOutputResult, com.google.cloud.asset.v1.GcsOutputResult.Builder, com.google.cloud.asset.v1.GcsOutputResultOrBuilder> getGcsResultFieldBuilder() { if (gcsResultBuilder_ == null) { if (!(resultCase_ == 1)) { result_ = com.google.cloud.asset.v1.GcsOutputResult.getDefaultInstance(); } - gcsResultBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.GcsOutputResult, - com.google.cloud.asset.v1.GcsOutputResult.Builder, - com.google.cloud.asset.v1.GcsOutputResultOrBuilder>( + gcsResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.GcsOutputResult, com.google.cloud.asset.v1.GcsOutputResult.Builder, com.google.cloud.asset.v1.GcsOutputResultOrBuilder>( (com.google.cloud.asset.v1.GcsOutputResult) result_, getParentForChildren(), isClean()); result_ = null; } resultCase_ = 1; - onChanged(); - ; + onChanged();; return gcsResultBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -793,12 +683,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.OutputResult) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.OutputResult) private static final com.google.cloud.asset.v1.OutputResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.OutputResult(); } @@ -807,16 +697,27 @@ public static com.google.cloud.asset.v1.OutputResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -831,4 +732,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.OutputResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResultOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResultOrBuilder.java similarity index 60% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResultOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResultOrBuilder.java index 454ff49af346..68dc7c1ed1ae 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResultOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResultOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface OutputResultOrBuilder - extends +public interface OutputResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.OutputResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Export result on Cloud Storage.
        * 
    * * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; - * * @return Whether the gcsResult field is set. */ boolean hasGcsResult(); /** - * - * *
        * Export result on Cloud Storage.
        * 
    * * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; - * * @return The gcsResult. */ com.google.cloud.asset.v1.GcsOutputResult getGcsResult(); /** - * - * *
        * Export result on Cloud Storage.
        * 
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpec.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpec.java similarity index 65% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpec.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpec.java index 29caf7155018..aafc6af3fafe 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpec.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpec.java @@ -1,121 +1,54 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * Specifications of BigQuery partitioned table as export destination.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.PartitionSpec} */ -public final class PartitionSpec extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PartitionSpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.PartitionSpec) PartitionSpecOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PartitionSpec.newBuilder() to construct. private PartitionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PartitionSpec() { partitionKey_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PartitionSpec(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private PartitionSpec( - 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(); - - partitionKey_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_PartitionSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_PartitionSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_PartitionSpec_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_PartitionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.PartitionSpec.class, - com.google.cloud.asset.v1.PartitionSpec.Builder.class); + com.google.cloud.asset.v1.PartitionSpec.class, com.google.cloud.asset.v1.PartitionSpec.Builder.class); } /** - * - * *
        * This enum is used to determine the partition key column when exporting
        * assets to BigQuery partitioned table(s). Note that, if the partition key is
    @@ -126,10 +59,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        *
        * Protobuf enum {@code google.cloud.asset.v1.PartitionSpec.PartitionKey}
        */
    -  public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum {
    +  public enum PartitionKey
    +      implements com.google.protobuf.ProtocolMessageEnum {
         /**
    -     *
    -     *
          * 
          * Unspecified partition key. If used, it means using non-partitioned table.
          * 
    @@ -138,8 +70,6 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum { */ PARTITION_KEY_UNSPECIFIED(0), /** - * - * *
          * The time when the snapshot is taken. If specified as partition key, the
          * result table(s) is partitoned by the additional timestamp column,
    @@ -152,8 +82,6 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum {
          */
         READ_TIME(1),
         /**
    -     *
    -     *
          * 
          * The time when the request is received and started to be processed. If
          * specified as partition key, the result table(s) is partitoned by the
    @@ -168,8 +96,6 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum {
         ;
     
         /**
    -     *
    -     *
          * 
          * Unspecified partition key. If used, it means using non-partitioned table.
          * 
    @@ -178,8 +104,6 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PARTITION_KEY_UNSPECIFIED_VALUE = 0; /** - * - * *
          * The time when the snapshot is taken. If specified as partition key, the
          * result table(s) is partitoned by the additional timestamp column,
    @@ -192,8 +116,6 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum {
          */
         public static final int READ_TIME_VALUE = 1;
         /**
    -     *
    -     *
          * 
          * The time when the request is received and started to be processed. If
          * specified as partition key, the result table(s) is partitoned by the
    @@ -205,6 +127,7 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum {
          */
         public static final int REQUEST_TIME_VALUE = 2;
     
    +
         public final int getNumber() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalArgumentException(
    @@ -229,49 +152,49 @@ public static PartitionKey valueOf(int value) {
          */
         public static PartitionKey forNumber(int value) {
           switch (value) {
    -        case 0:
    -          return PARTITION_KEY_UNSPECIFIED;
    -        case 1:
    -          return READ_TIME;
    -        case 2:
    -          return REQUEST_TIME;
    -        default:
    -          return null;
    +        case 0: return PARTITION_KEY_UNSPECIFIED;
    +        case 1: return READ_TIME;
    +        case 2: return REQUEST_TIME;
    +        default: return null;
           }
         }
     
    -    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
    +    public static com.google.protobuf.Internal.EnumLiteMap
    +        internalGetValueMap() {
           return internalValueMap;
         }
    +    private static final com.google.protobuf.Internal.EnumLiteMap<
    +        PartitionKey> internalValueMap =
    +          new com.google.protobuf.Internal.EnumLiteMap() {
    +            public PartitionKey findValueByNumber(int number) {
    +              return PartitionKey.forNumber(number);
    +            }
    +          };
     
    -    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
    -        new com.google.protobuf.Internal.EnumLiteMap() {
    -          public PartitionKey findValueByNumber(int number) {
    -            return PartitionKey.forNumber(number);
    -          }
    -        };
    -
    -    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
    +    public final com.google.protobuf.Descriptors.EnumValueDescriptor
    +        getValueDescriptor() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalStateException(
                 "Can't get the descriptor of an unrecognized enum value.");
           }
           return getDescriptor().getValues().get(ordinal());
         }
    -
    -    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
    +    public final com.google.protobuf.Descriptors.EnumDescriptor
    +        getDescriptorForType() {
           return getDescriptor();
         }
    -
    -    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
    +    public static final com.google.protobuf.Descriptors.EnumDescriptor
    +        getDescriptor() {
           return com.google.cloud.asset.v1.PartitionSpec.getDescriptor().getEnumTypes().get(0);
         }
     
         private static final PartitionKey[] VALUES = values();
     
    -    public static PartitionKey valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
    +    public static PartitionKey valueOf(
    +        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
           if (desc.getType() != getDescriptor()) {
    -        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
    +        throw new java.lang.IllegalArgumentException(
    +          "EnumValueDescriptor is not for this type.");
           }
           if (desc.getIndex() == -1) {
             return UNRECOGNIZED;
    @@ -291,43 +214,31 @@ private PartitionKey(int value) {
       public static final int PARTITION_KEY_FIELD_NUMBER = 1;
       private int partitionKey_;
       /**
    -   *
    -   *
        * 
        * The partition key for BigQuery partitioned table.
        * 
    * * .google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1; - * * @return The enum numeric value on the wire for partitionKey. */ - @java.lang.Override - public int getPartitionKeyValue() { + @java.lang.Override public int getPartitionKeyValue() { return partitionKey_; } /** - * - * *
        * The partition key for BigQuery partitioned table.
        * 
    * * .google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1; - * * @return The partitionKey. */ - @java.lang.Override - public com.google.cloud.asset.v1.PartitionSpec.PartitionKey getPartitionKey() { + @java.lang.Override public com.google.cloud.asset.v1.PartitionSpec.PartitionKey getPartitionKey() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.PartitionSpec.PartitionKey result = - com.google.cloud.asset.v1.PartitionSpec.PartitionKey.valueOf(partitionKey_); - return result == null - ? com.google.cloud.asset.v1.PartitionSpec.PartitionKey.UNRECOGNIZED - : result; + com.google.cloud.asset.v1.PartitionSpec.PartitionKey result = com.google.cloud.asset.v1.PartitionSpec.PartitionKey.valueOf(partitionKey_); + return result == null ? com.google.cloud.asset.v1.PartitionSpec.PartitionKey.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -339,13 +250,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (partitionKey_ - != com.google.cloud.asset.v1.PartitionSpec.PartitionKey.PARTITION_KEY_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (partitionKey_ != com.google.cloud.asset.v1.PartitionSpec.PartitionKey.PARTITION_KEY_UNSPECIFIED.getNumber()) { output.writeEnum(1, partitionKey_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -354,12 +264,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (partitionKey_ - != com.google.cloud.asset.v1.PartitionSpec.PartitionKey.PARTITION_KEY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, partitionKey_); + if (partitionKey_ != com.google.cloud.asset.v1.PartitionSpec.PartitionKey.PARTITION_KEY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, partitionKey_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -367,7 +276,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.PartitionSpec)) { return super.equals(obj); @@ -375,7 +284,7 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.asset.v1.PartitionSpec other = (com.google.cloud.asset.v1.PartitionSpec) obj; if (partitionKey_ != other.partitionKey_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -388,148 +297,135 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_KEY_FIELD_NUMBER; hash = (53 * hash) + partitionKey_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.PartitionSpec parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.PartitionSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.PartitionSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.PartitionSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.PartitionSpec 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.asset.v1.PartitionSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.PartitionSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.PartitionSpec parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.PartitionSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.PartitionSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.PartitionSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.PartitionSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.PartitionSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.PartitionSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.PartitionSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Specifications of BigQuery partitioned table as export destination.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.PartitionSpec} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.PartitionSpec) com.google.cloud.asset.v1.PartitionSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_PartitionSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_PartitionSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_PartitionSpec_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_PartitionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.PartitionSpec.class, - com.google.cloud.asset.v1.PartitionSpec.Builder.class); + com.google.cloud.asset.v1.PartitionSpec.class, com.google.cloud.asset.v1.PartitionSpec.Builder.class); } // Construct using com.google.cloud.asset.v1.PartitionSpec.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -539,9 +435,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_PartitionSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_PartitionSpec_descriptor; } @java.lang.Override @@ -560,8 +456,7 @@ public com.google.cloud.asset.v1.PartitionSpec build() { @java.lang.Override public com.google.cloud.asset.v1.PartitionSpec buildPartial() { - com.google.cloud.asset.v1.PartitionSpec result = - new com.google.cloud.asset.v1.PartitionSpec(this); + com.google.cloud.asset.v1.PartitionSpec result = new com.google.cloud.asset.v1.PartitionSpec(this); result.partitionKey_ = partitionKey_; onBuilt(); return result; @@ -571,39 +466,38 @@ public com.google.cloud.asset.v1.PartitionSpec buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.PartitionSpec) { - return mergeFrom((com.google.cloud.asset.v1.PartitionSpec) other); + return mergeFrom((com.google.cloud.asset.v1.PartitionSpec)other); } else { super.mergeFrom(other); return this; @@ -615,7 +509,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.PartitionSpec other) { if (other.partitionKey_ != 0) { setPartitionKeyValue(other.getPartitionKeyValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -630,83 +524,85 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.PartitionSpec parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + partitionKey_ = input.readEnum(); + + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.PartitionSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int partitionKey_ = 0; /** - * - * *
          * The partition key for BigQuery partitioned table.
          * 
    * * .google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1; - * * @return The enum numeric value on the wire for partitionKey. */ - @java.lang.Override - public int getPartitionKeyValue() { + @java.lang.Override public int getPartitionKeyValue() { return partitionKey_; } /** - * - * *
          * The partition key for BigQuery partitioned table.
          * 
    * * .google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1; - * * @param value The enum numeric value on the wire for partitionKey to set. * @return This builder for chaining. */ public Builder setPartitionKeyValue(int value) { - + partitionKey_ = value; onChanged(); return this; } /** - * - * *
          * The partition key for BigQuery partitioned table.
          * 
    * * .google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1; - * * @return The partitionKey. */ @java.lang.Override public com.google.cloud.asset.v1.PartitionSpec.PartitionKey getPartitionKey() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.PartitionSpec.PartitionKey result = - com.google.cloud.asset.v1.PartitionSpec.PartitionKey.valueOf(partitionKey_); - return result == null - ? com.google.cloud.asset.v1.PartitionSpec.PartitionKey.UNRECOGNIZED - : result; + com.google.cloud.asset.v1.PartitionSpec.PartitionKey result = com.google.cloud.asset.v1.PartitionSpec.PartitionKey.valueOf(partitionKey_); + return result == null ? com.google.cloud.asset.v1.PartitionSpec.PartitionKey.UNRECOGNIZED : result; } /** - * - * *
          * The partition key for BigQuery partitioned table.
          * 
    * * .google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1; - * * @param value The partitionKey to set. * @return This builder for chaining. */ @@ -714,31 +610,28 @@ public Builder setPartitionKey(com.google.cloud.asset.v1.PartitionSpec.Partition if (value == null) { throw new NullPointerException(); } - + partitionKey_ = value.getNumber(); onChanged(); return this; } /** - * - * *
          * The partition key for BigQuery partitioned table.
          * 
    * * .google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1; - * * @return This builder for chaining. */ public Builder clearPartitionKey() { - + partitionKey_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -748,12 +641,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.PartitionSpec) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.PartitionSpec) private static final com.google.cloud.asset.v1.PartitionSpec DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.PartitionSpec(); } @@ -762,16 +655,27 @@ public static com.google.cloud.asset.v1.PartitionSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartitionSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PartitionSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartitionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -786,4 +690,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.PartitionSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpecOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpecOrBuilder.java similarity index 55% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpecOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpecOrBuilder.java index 78bec335e2aa..0dd5bf8780fd 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpecOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpecOrBuilder.java @@ -1,49 +1,27 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface PartitionSpecOrBuilder - extends +public interface PartitionSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.PartitionSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The partition key for BigQuery partitioned table.
        * 
    * * .google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1; - * * @return The enum numeric value on the wire for partitionKey. */ int getPartitionKeyValue(); /** - * - * *
        * The partition key for BigQuery partitioned table.
        * 
    * * .google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1; - * * @return The partitionKey. */ com.google.cloud.asset.v1.PartitionSpec.PartitionKey getPartitionKey(); diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ProjectName.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ProjectName.java new file mode 100644 index 000000000000..032e6dc27a07 --- /dev/null +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ProjectName.java @@ -0,0 +1,168 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.asset.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ProjectName implements ResourceName { + private static final PathTemplate PROJECT = + PathTemplate.createWithoutUrlEncoding("projects/{project}"); + private volatile Map fieldValuesMap; + private final String project; + + @Deprecated + protected ProjectName() { + project = null; + } + + private ProjectName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ProjectName of(String project) { + return newBuilder().setProject(project).build(); + } + + public static String format(String project) { + return newBuilder().setProject(project).build().toString(); + } + + public static ProjectName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT.validatedMatch( + formattedString, "ProjectName.parse: formattedString not in valid format"); + return of(matchMap.get("project")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ProjectName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT.instantiate("project", project); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + ProjectName that = ((ProjectName) o); + return Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** Builder for projects/{project}. */ + public static class Builder { + private String project; + + protected Builder() {} + + public String getProject() { + return project; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + private Builder(ProjectName projectName) { + this.project = projectName.project; + } + + public ProjectName build() { + return new ProjectName(this); + } + } +} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java similarity index 61% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java index c0989ae4e932..5d6ae1b2b918 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java @@ -1,130 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * A Pub/Sub destination.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.PubsubDestination} */ -public final class PubsubDestination extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PubsubDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.PubsubDestination) PubsubDestinationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PubsubDestination.newBuilder() to construct. private PubsubDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PubsubDestination() { topic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PubsubDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private PubsubDestination( - 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(); - - topic_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_PubsubDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_PubsubDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_PubsubDestination_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_PubsubDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.PubsubDestination.class, - com.google.cloud.asset.v1.PubsubDestination.Builder.class); + com.google.cloud.asset.v1.PubsubDestination.class, com.google.cloud.asset.v1.PubsubDestination.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; private volatile java.lang.Object topic_; /** - * - * *
        * The name of the Pub/Sub topic to publish to.
        * Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
        * 
    * * string topic = 1; - * * @return The topic. */ @java.lang.Override @@ -133,30 +65,30 @@ public java.lang.String getTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } } /** - * - * *
        * The name of the Pub/Sub topic to publish to.
        * Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
        * 
    * * string topic = 1; - * * @return The bytes for topic. */ @java.lang.Override - public com.google.protobuf.ByteString getTopicBytes() { + public com.google.protobuf.ByteString + getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); topic_ = b; return b; } else { @@ -165,7 +97,6 @@ public com.google.protobuf.ByteString getTopicBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,11 +108,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -193,7 +125,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -201,16 +133,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.PubsubDestination)) { return super.equals(obj); } - com.google.cloud.asset.v1.PubsubDestination other = - (com.google.cloud.asset.v1.PubsubDestination) obj; + com.google.cloud.asset.v1.PubsubDestination other = (com.google.cloud.asset.v1.PubsubDestination) obj; - if (!getTopic().equals(other.getTopic())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getTopic() + .equals(other.getTopic())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,148 +155,135 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TOPIC_FIELD_NUMBER; hash = (53 * hash) + getTopic().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.PubsubDestination parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.PubsubDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.PubsubDestination parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.PubsubDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.PubsubDestination 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.asset.v1.PubsubDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.PubsubDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.PubsubDestination parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.PubsubDestination parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.PubsubDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.PubsubDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.PubsubDestination parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.PubsubDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.PubsubDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.PubsubDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * A Pub/Sub destination.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.PubsubDestination} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.PubsubDestination) com.google.cloud.asset.v1.PubsubDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_PubsubDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_PubsubDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_PubsubDestination_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_PubsubDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.PubsubDestination.class, - com.google.cloud.asset.v1.PubsubDestination.Builder.class); + com.google.cloud.asset.v1.PubsubDestination.class, com.google.cloud.asset.v1.PubsubDestination.Builder.class); } // Construct using com.google.cloud.asset.v1.PubsubDestination.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -374,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_PubsubDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_PubsubDestination_descriptor; } @java.lang.Override @@ -395,8 +314,7 @@ public com.google.cloud.asset.v1.PubsubDestination build() { @java.lang.Override public com.google.cloud.asset.v1.PubsubDestination buildPartial() { - com.google.cloud.asset.v1.PubsubDestination result = - new com.google.cloud.asset.v1.PubsubDestination(this); + com.google.cloud.asset.v1.PubsubDestination result = new com.google.cloud.asset.v1.PubsubDestination(this); result.topic_ = topic_; onBuilt(); return result; @@ -406,39 +324,38 @@ public com.google.cloud.asset.v1.PubsubDestination buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.PubsubDestination) { - return mergeFrom((com.google.cloud.asset.v1.PubsubDestination) other); + return mergeFrom((com.google.cloud.asset.v1.PubsubDestination)other); } else { super.mergeFrom(other); return this; @@ -451,7 +368,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.PubsubDestination other) { topic_ = other.topic_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -466,37 +383,53 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.PubsubDestination parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + topic_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.PubsubDestination) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object topic_ = ""; /** - * - * *
          * The name of the Pub/Sub topic to publish to.
          * Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
          * 
    * * string topic = 1; - * * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; @@ -505,22 +438,21 @@ public java.lang.String getTopic() { } } /** - * - * *
          * The name of the Pub/Sub topic to publish to.
          * Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
          * 
    * * string topic = 1; - * * @return The bytes for topic. */ - public com.google.protobuf.ByteString getTopicBytes() { + public com.google.protobuf.ByteString + getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); topic_ = b; return b; } else { @@ -528,71 +460,64 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
          * The name of the Pub/Sub topic to publish to.
          * Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
          * 
    * * string topic = 1; - * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic(java.lang.String value) { + public Builder setTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; onChanged(); return this; } /** - * - * *
          * The name of the Pub/Sub topic to publish to.
          * Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
          * 
    * * string topic = 1; - * * @return This builder for chaining. */ public Builder clearTopic() { - + topic_ = getDefaultInstance().getTopic(); onChanged(); return this; } /** - * - * *
          * The name of the Pub/Sub topic to publish to.
          * Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
          * 
    * * string topic = 1; - * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes(com.google.protobuf.ByteString value) { + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -602,12 +527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.PubsubDestination) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.PubsubDestination) private static final com.google.cloud.asset.v1.PubsubDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.PubsubDestination(); } @@ -616,16 +541,27 @@ public static com.google.cloud.asset.v1.PubsubDestination getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PubsubDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PubsubDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PubsubDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,4 +576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.PubsubDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestinationOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestinationOrBuilder.java similarity index 50% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestinationOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestinationOrBuilder.java index ba1e2e54c2b7..05bb241e5e96 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestinationOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestinationOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface PubsubDestinationOrBuilder - extends +public interface PubsubDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.PubsubDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The name of the Pub/Sub topic to publish to.
        * Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
        * 
    * * string topic = 1; - * * @return The topic. */ java.lang.String getTopic(); /** - * - * *
        * The name of the Pub/Sub topic to publish to.
        * Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
        * 
    * * string topic = 1; - * * @return The bytes for topic. */ - com.google.protobuf.ByteString getTopicBytes(); + com.google.protobuf.ByteString + getTopicBytes(); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfig.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfig.java similarity index 62% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfig.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfig.java index 2599ed2694b0..ba172c9e95a9 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfig.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfig.java @@ -1,192 +1,101 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * Output configuration query assets.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.QueryAssetsOutputConfig} */ -public final class QueryAssetsOutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class QueryAssetsOutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.QueryAssetsOutputConfig) QueryAssetsOutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use QueryAssetsOutputConfig.newBuilder() to construct. private QueryAssetsOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private QueryAssetsOutputConfig() {} + private QueryAssetsOutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new QueryAssetsOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private QueryAssetsOutputConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder - subBuilder = null; - if (bigqueryDestination_ != null) { - subBuilder = bigqueryDestination_.toBuilder(); - } - bigqueryDestination_ = - input.readMessage( - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(bigqueryDestination_); - bigqueryDestination_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.QueryAssetsOutputConfig.class, - com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder.class); + com.google.cloud.asset.v1.QueryAssetsOutputConfig.class, com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder.class); } - public interface BigQueryDestinationOrBuilder - extends + public interface BigQueryDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
    -     * Required. The BigQuery dataset where the query results will be saved. It
    -     * has the format of "projects/{projectId}/datasets/{datasetId}".
    +     * Required. The BigQuery dataset where the query results will be saved. It has the
    +     * format of "projects/{projectId}/datasets/{datasetId}".
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The dataset. */ java.lang.String getDataset(); /** - * - * *
    -     * Required. The BigQuery dataset where the query results will be saved. It
    -     * has the format of "projects/{projectId}/datasets/{datasetId}".
    +     * Required. The BigQuery dataset where the query results will be saved. It has the
    +     * format of "projects/{projectId}/datasets/{datasetId}".
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for dataset. */ - com.google.protobuf.ByteString getDatasetBytes(); + com.google.protobuf.ByteString + getDatasetBytes(); /** - * - * *
    -     * Required. The BigQuery table where the query results will be saved. If
    -     * this table does not exist, a new table with the given name will be
    -     * created.
    +     * Required. The BigQuery table where the query results will be saved. If this table
    +     * does not exist, a new table with the given name will be created.
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The table. */ java.lang.String getTable(); /** - * - * *
    -     * Required. The BigQuery table where the query results will be saved. If
    -     * this table does not exist, a new table with the given name will be
    -     * created.
    +     * Required. The BigQuery table where the query results will be saved. If this table
    +     * does not exist, a new table with the given name will be created.
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for table. */ - com.google.protobuf.ByteString getTableBytes(); + com.google.protobuf.ByteString + getTableBytes(); /** - * - * *
          * Specifies the action that occurs if the destination table or partition
          * already exists. The following values are supported:
    @@ -194,18 +103,16 @@ public interface BigQueryDestinationOrBuilder
          * overwrites the entire table or all the partitions data.
          * * WRITE_APPEND: If the table or partition already exists, BigQuery
          * appends the data to the table or the latest partition.
    -     * * WRITE_EMPTY: If the table already exists and contains data, an error is
    -     * returned.
    +     * * WRITE_EMPTY: If the table already exists and contains data, a
    +     * 'duplicate' error is returned in the job result.
    +     * The default value is WRITE_EMPTY.
          * 
    * * string write_disposition = 3; - * * @return The writeDisposition. */ java.lang.String getWriteDisposition(); /** - * - * *
          * Specifies the action that occurs if the destination table or partition
          * already exists. The following values are supported:
    @@ -213,35 +120,33 @@ public interface BigQueryDestinationOrBuilder
          * overwrites the entire table or all the partitions data.
          * * WRITE_APPEND: If the table or partition already exists, BigQuery
          * appends the data to the table or the latest partition.
    -     * * WRITE_EMPTY: If the table already exists and contains data, an error is
    -     * returned.
    +     * * WRITE_EMPTY: If the table already exists and contains data, a
    +     * 'duplicate' error is returned in the job result.
    +     * The default value is WRITE_EMPTY.
          * 
    * * string write_disposition = 3; - * * @return The bytes for writeDisposition. */ - com.google.protobuf.ByteString getWriteDispositionBytes(); + com.google.protobuf.ByteString + getWriteDispositionBytes(); } /** - * - * *
        * BigQuery destination.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination} */ - public static final class BigQueryDestination extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class BigQueryDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination) BigQueryDestinationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BigQueryDestination.newBuilder() to construct. private BigQueryDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BigQueryDestination() { dataset_ = ""; table_ = ""; @@ -250,102 +155,38 @@ private BigQueryDestination() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BigQueryDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private BigQueryDestination( - 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(); - - dataset_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - table_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - writeDisposition_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.class, - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder.class); + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.class, com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder.class); } public static final int DATASET_FIELD_NUMBER = 1; private volatile java.lang.Object dataset_; /** - * - * *
    -     * Required. The BigQuery dataset where the query results will be saved. It
    -     * has the format of "projects/{projectId}/datasets/{datasetId}".
    +     * Required. The BigQuery dataset where the query results will be saved. It has the
    +     * format of "projects/{projectId}/datasets/{datasetId}".
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The dataset. */ @java.lang.Override @@ -354,30 +195,30 @@ public java.lang.String getDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; } } /** - * - * *
    -     * Required. The BigQuery dataset where the query results will be saved. It
    -     * has the format of "projects/{projectId}/datasets/{datasetId}".
    +     * Required. The BigQuery dataset where the query results will be saved. It has the
    +     * format of "projects/{projectId}/datasets/{datasetId}".
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for dataset. */ @java.lang.Override - public com.google.protobuf.ByteString getDatasetBytes() { + public com.google.protobuf.ByteString + getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataset_ = b; return b; } else { @@ -388,16 +229,12 @@ public com.google.protobuf.ByteString getDatasetBytes() { public static final int TABLE_FIELD_NUMBER = 2; private volatile java.lang.Object table_; /** - * - * *
    -     * Required. The BigQuery table where the query results will be saved. If
    -     * this table does not exist, a new table with the given name will be
    -     * created.
    +     * Required. The BigQuery table where the query results will be saved. If this table
    +     * does not exist, a new table with the given name will be created.
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The table. */ @java.lang.Override @@ -406,31 +243,30 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** - * - * *
    -     * Required. The BigQuery table where the query results will be saved. If
    -     * this table does not exist, a new table with the given name will be
    -     * created.
    +     * Required. The BigQuery table where the query results will be saved. If this table
    +     * does not exist, a new table with the given name will be created.
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString getTableBytes() { + public com.google.protobuf.ByteString + getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -441,8 +277,6 @@ public com.google.protobuf.ByteString getTableBytes() { public static final int WRITE_DISPOSITION_FIELD_NUMBER = 3; private volatile java.lang.Object writeDisposition_; /** - * - * *
          * Specifies the action that occurs if the destination table or partition
          * already exists. The following values are supported:
    @@ -450,12 +284,12 @@ public com.google.protobuf.ByteString getTableBytes() {
          * overwrites the entire table or all the partitions data.
          * * WRITE_APPEND: If the table or partition already exists, BigQuery
          * appends the data to the table or the latest partition.
    -     * * WRITE_EMPTY: If the table already exists and contains data, an error is
    -     * returned.
    +     * * WRITE_EMPTY: If the table already exists and contains data, a
    +     * 'duplicate' error is returned in the job result.
    +     * The default value is WRITE_EMPTY.
          * 
    * * string write_disposition = 3; - * * @return The writeDisposition. */ @java.lang.Override @@ -464,15 +298,14 @@ public java.lang.String getWriteDisposition() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeDisposition_ = s; return s; } } /** - * - * *
          * Specifies the action that occurs if the destination table or partition
          * already exists. The following values are supported:
    @@ -480,20 +313,22 @@ public java.lang.String getWriteDisposition() {
          * overwrites the entire table or all the partitions data.
          * * WRITE_APPEND: If the table or partition already exists, BigQuery
          * appends the data to the table or the latest partition.
    -     * * WRITE_EMPTY: If the table already exists and contains data, an error is
    -     * returned.
    +     * * WRITE_EMPTY: If the table already exists and contains data, a
    +     * 'duplicate' error is returned in the job result.
    +     * The default value is WRITE_EMPTY.
          * 
    * * string write_disposition = 3; - * * @return The bytes for writeDisposition. */ @java.lang.Override - public com.google.protobuf.ByteString getWriteDispositionBytes() { + public com.google.protobuf.ByteString + getWriteDispositionBytes() { java.lang.Object ref = writeDisposition_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); writeDisposition_ = b; return b; } else { @@ -502,7 +337,6 @@ public com.google.protobuf.ByteString getWriteDispositionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -514,7 +348,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); } @@ -524,7 +359,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeDisposition_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, writeDisposition_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -542,7 +377,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeDisposition_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, writeDisposition_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -550,18 +385,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination)) { return super.equals(obj); } - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination other = - (com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination) obj; + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination other = (com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination) obj; - if (!getDataset().equals(other.getDataset())) return false; - if (!getTable().equals(other.getTable())) return false; - if (!getWriteDisposition().equals(other.getWriteDisposition())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getDataset() + .equals(other.getDataset())) return false; + if (!getTable() + .equals(other.getTable())) return false; + if (!getWriteDisposition() + .equals(other.getWriteDisposition())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -578,101 +415,93 @@ public int hashCode() { hash = (53 * hash) + getTable().hashCode(); hash = (37 * hash) + WRITE_DISPOSITION_FIELD_NUMBER; hash = (53 * hash) + getWriteDisposition().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination 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.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination - 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.asset.v1.QueryAssetsOutputConfig.BigQueryDestination 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.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -682,50 +511,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * BigQuery destination.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination) com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.class, - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder - .class); + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.class, com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder.class); } - // Construct using - // com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.newBuilder() + // Construct using com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -739,22 +557,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination - getDefaultInstanceForType() { - return com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination - .getDefaultInstance(); + public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination getDefaultInstanceForType() { + return com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.getDefaultInstance(); } @java.lang.Override public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination build() { - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination result = - buildPartial(); + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -763,8 +578,7 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bui @java.lang.Override public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination buildPartial() { - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination result = - new com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination(this); + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination result = new com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination(this); result.dataset_ = dataset_; result.table_ = table_; result.writeDisposition_ = writeDisposition_; @@ -776,54 +590,46 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.QueryAssetsOutputConfig.BigQueryDestination) { - return mergeFrom( - (com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination) other); + if (other instanceof com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination) { + return mergeFrom((com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination other) { - if (other - == com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination other) { + if (other == com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.getDefaultInstance()) return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; onChanged(); @@ -836,7 +642,7 @@ public Builder mergeFrom( writeDisposition_ = other.writeDisposition_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -851,39 +657,63 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + dataset_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + table_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + writeDisposition_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object dataset_ = ""; /** - * - * *
    -       * Required. The BigQuery dataset where the query results will be saved. It
    -       * has the format of "projects/{projectId}/datasets/{datasetId}".
    +       * Required. The BigQuery dataset where the query results will be saved. It has the
    +       * format of "projects/{projectId}/datasets/{datasetId}".
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The dataset. */ public java.lang.String getDataset() { java.lang.Object ref = dataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; @@ -892,22 +722,21 @@ public java.lang.String getDataset() { } } /** - * - * *
    -       * Required. The BigQuery dataset where the query results will be saved. It
    -       * has the format of "projects/{projectId}/datasets/{datasetId}".
    +       * Required. The BigQuery dataset where the query results will be saved. It has the
    +       * format of "projects/{projectId}/datasets/{datasetId}".
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for dataset. */ - public com.google.protobuf.ByteString getDatasetBytes() { + public com.google.protobuf.ByteString + getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataset_ = b; return b; } else { @@ -915,64 +744,57 @@ public com.google.protobuf.ByteString getDatasetBytes() { } } /** - * - * *
    -       * Required. The BigQuery dataset where the query results will be saved. It
    -       * has the format of "projects/{projectId}/datasets/{datasetId}".
    +       * Required. The BigQuery dataset where the query results will be saved. It has the
    +       * format of "projects/{projectId}/datasets/{datasetId}".
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The dataset to set. * @return This builder for chaining. */ - public Builder setDataset(java.lang.String value) { + public Builder setDataset( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataset_ = value; onChanged(); return this; } /** - * - * *
    -       * Required. The BigQuery dataset where the query results will be saved. It
    -       * has the format of "projects/{projectId}/datasets/{datasetId}".
    +       * Required. The BigQuery dataset where the query results will be saved. It has the
    +       * format of "projects/{projectId}/datasets/{datasetId}".
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDataset() { - + dataset_ = getDefaultInstance().getDataset(); onChanged(); return this; } /** - * - * *
    -       * Required. The BigQuery dataset where the query results will be saved. It
    -       * has the format of "projects/{projectId}/datasets/{datasetId}".
    +       * Required. The BigQuery dataset where the query results will be saved. It has the
    +       * format of "projects/{projectId}/datasets/{datasetId}".
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for dataset to set. * @return This builder for chaining. */ - public Builder setDatasetBytes(com.google.protobuf.ByteString value) { + public Builder setDatasetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; onChanged(); return this; @@ -980,22 +802,19 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { private java.lang.Object table_ = ""; /** - * - * *
    -       * Required. The BigQuery table where the query results will be saved. If
    -       * this table does not exist, a new table with the given name will be
    -       * created.
    +       * Required. The BigQuery table where the query results will be saved. If this table
    +       * does not exist, a new table with the given name will be created.
            * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -1004,23 +823,21 @@ public java.lang.String getTable() { } } /** - * - * *
    -       * Required. The BigQuery table where the query results will be saved. If
    -       * this table does not exist, a new table with the given name will be
    -       * created.
    +       * Required. The BigQuery table where the query results will be saved. If this table
    +       * does not exist, a new table with the given name will be created.
            * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for table. */ - public com.google.protobuf.ByteString getTableBytes() { + public com.google.protobuf.ByteString + getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -1028,67 +845,57 @@ public com.google.protobuf.ByteString getTableBytes() { } } /** - * - * *
    -       * Required. The BigQuery table where the query results will be saved. If
    -       * this table does not exist, a new table with the given name will be
    -       * created.
    +       * Required. The BigQuery table where the query results will be saved. If this table
    +       * does not exist, a new table with the given name will be created.
            * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable(java.lang.String value) { + public Builder setTable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + table_ = value; onChanged(); return this; } /** - * - * *
    -       * Required. The BigQuery table where the query results will be saved. If
    -       * this table does not exist, a new table with the given name will be
    -       * created.
    +       * Required. The BigQuery table where the query results will be saved. If this table
    +       * does not exist, a new table with the given name will be created.
            * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTable() { - + table_ = getDefaultInstance().getTable(); onChanged(); return this; } /** - * - * *
    -       * Required. The BigQuery table where the query results will be saved. If
    -       * this table does not exist, a new table with the given name will be
    -       * created.
    +       * Required. The BigQuery table where the query results will be saved. If this table
    +       * does not exist, a new table with the given name will be created.
            * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for table to set. * @return This builder for chaining. */ - public Builder setTableBytes(com.google.protobuf.ByteString value) { + public Builder setTableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + table_ = value; onChanged(); return this; @@ -1096,8 +903,6 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) { private java.lang.Object writeDisposition_ = ""; /** - * - * *
            * Specifies the action that occurs if the destination table or partition
            * already exists. The following values are supported:
    @@ -1105,18 +910,19 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) {
            * overwrites the entire table or all the partitions data.
            * * WRITE_APPEND: If the table or partition already exists, BigQuery
            * appends the data to the table or the latest partition.
    -       * * WRITE_EMPTY: If the table already exists and contains data, an error is
    -       * returned.
    +       * * WRITE_EMPTY: If the table already exists and contains data, a
    +       * 'duplicate' error is returned in the job result.
    +       * The default value is WRITE_EMPTY.
            * 
    * * string write_disposition = 3; - * * @return The writeDisposition. */ public java.lang.String getWriteDisposition() { java.lang.Object ref = writeDisposition_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeDisposition_ = s; return s; @@ -1125,8 +931,6 @@ public java.lang.String getWriteDisposition() { } } /** - * - * *
            * Specifies the action that occurs if the destination table or partition
            * already exists. The following values are supported:
    @@ -1134,19 +938,21 @@ public java.lang.String getWriteDisposition() {
            * overwrites the entire table or all the partitions data.
            * * WRITE_APPEND: If the table or partition already exists, BigQuery
            * appends the data to the table or the latest partition.
    -       * * WRITE_EMPTY: If the table already exists and contains data, an error is
    -       * returned.
    +       * * WRITE_EMPTY: If the table already exists and contains data, a
    +       * 'duplicate' error is returned in the job result.
    +       * The default value is WRITE_EMPTY.
            * 
    * * string write_disposition = 3; - * * @return The bytes for writeDisposition. */ - public com.google.protobuf.ByteString getWriteDispositionBytes() { + public com.google.protobuf.ByteString + getWriteDispositionBytes() { java.lang.Object ref = writeDisposition_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); writeDisposition_ = b; return b; } else { @@ -1154,8 +960,6 @@ public com.google.protobuf.ByteString getWriteDispositionBytes() { } } /** - * - * *
            * Specifies the action that occurs if the destination table or partition
            * already exists. The following values are supported:
    @@ -1163,27 +967,26 @@ public com.google.protobuf.ByteString getWriteDispositionBytes() {
            * overwrites the entire table or all the partitions data.
            * * WRITE_APPEND: If the table or partition already exists, BigQuery
            * appends the data to the table or the latest partition.
    -       * * WRITE_EMPTY: If the table already exists and contains data, an error is
    -       * returned.
    +       * * WRITE_EMPTY: If the table already exists and contains data, a
    +       * 'duplicate' error is returned in the job result.
    +       * The default value is WRITE_EMPTY.
            * 
    * * string write_disposition = 3; - * * @param value The writeDisposition to set. * @return This builder for chaining. */ - public Builder setWriteDisposition(java.lang.String value) { + public Builder setWriteDisposition( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + writeDisposition_ = value; onChanged(); return this; } /** - * - * *
            * Specifies the action that occurs if the destination table or partition
            * already exists. The following values are supported:
    @@ -1191,23 +994,21 @@ public Builder setWriteDisposition(java.lang.String value) {
            * overwrites the entire table or all the partitions data.
            * * WRITE_APPEND: If the table or partition already exists, BigQuery
            * appends the data to the table or the latest partition.
    -       * * WRITE_EMPTY: If the table already exists and contains data, an error is
    -       * returned.
    +       * * WRITE_EMPTY: If the table already exists and contains data, a
    +       * 'duplicate' error is returned in the job result.
    +       * The default value is WRITE_EMPTY.
            * 
    * * string write_disposition = 3; - * * @return This builder for chaining. */ public Builder clearWriteDisposition() { - + writeDisposition_ = getDefaultInstance().getWriteDisposition(); onChanged(); return this; } /** - * - * *
            * Specifies the action that occurs if the destination table or partition
            * already exists. The following values are supported:
    @@ -1215,26 +1016,26 @@ public Builder clearWriteDisposition() {
            * overwrites the entire table or all the partitions data.
            * * WRITE_APPEND: If the table or partition already exists, BigQuery
            * appends the data to the table or the latest partition.
    -       * * WRITE_EMPTY: If the table already exists and contains data, an error is
    -       * returned.
    +       * * WRITE_EMPTY: If the table already exists and contains data, a
    +       * 'duplicate' error is returned in the job result.
    +       * The default value is WRITE_EMPTY.
            * 
    * * string write_disposition = 3; - * * @param value The bytes for writeDisposition to set. * @return This builder for chaining. */ - public Builder setWriteDispositionBytes(com.google.protobuf.ByteString value) { + public Builder setWriteDispositionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + writeDisposition_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1247,33 +1048,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination) - private static final com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination - DEFAULT_INSTANCE; - + private static final com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination(); + DEFAULT_INSTANCE = new com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination(); } - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination - getDefaultInstance() { + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BigQueryDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1285,26 +1094,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination - getDefaultInstanceForType() { + public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 1; - private com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination - bigqueryDestination_; + private com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigqueryDestination_; /** - * - * *
        * BigQuery destination where the query results will be saved.
        * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; - * - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -1312,44 +1115,30 @@ public boolean hasBigqueryDestination() { return bigqueryDestination_ != null; } /** - * - * *
        * BigQuery destination where the query results will be saved.
        * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; - * - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; * @return The bigqueryDestination. */ @java.lang.Override - public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination - getBigqueryDestination() { - return bigqueryDestination_ == null - ? com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.getDefaultInstance() - : bigqueryDestination_; + public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination getBigqueryDestination() { + return bigqueryDestination_ == null ? com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.getDefaultInstance() : bigqueryDestination_; } /** - * - * *
        * BigQuery destination where the query results will be saved.
        * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; */ @java.lang.Override - public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder - getBigqueryDestinationOrBuilder() { + public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() { return getBigqueryDestination(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1361,11 +1150,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (bigqueryDestination_ != null) { output.writeMessage(1, getBigqueryDestination()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1375,9 +1165,10 @@ public int getSerializedSize() { size = 0; if (bigqueryDestination_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBigqueryDestination()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBigqueryDestination()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1385,19 +1176,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.QueryAssetsOutputConfig)) { return super.equals(obj); } - com.google.cloud.asset.v1.QueryAssetsOutputConfig other = - (com.google.cloud.asset.v1.QueryAssetsOutputConfig) obj; + com.google.cloud.asset.v1.QueryAssetsOutputConfig other = (com.google.cloud.asset.v1.QueryAssetsOutputConfig) obj; if (hasBigqueryDestination() != other.hasBigqueryDestination()) return false; if (hasBigqueryDestination()) { - if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false; + if (!getBigqueryDestination() + .equals(other.getBigqueryDestination())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1412,148 +1203,135 @@ public int hashCode() { hash = (37 * hash) + BIGQUERY_DESTINATION_FIELD_NUMBER; hash = (53 * hash) + getBigqueryDestination().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.QueryAssetsOutputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig 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.asset.v1.QueryAssetsOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.QueryAssetsOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Output configuration query assets.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.QueryAssetsOutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.QueryAssetsOutputConfig) com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.QueryAssetsOutputConfig.class, - com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder.class); + com.google.cloud.asset.v1.QueryAssetsOutputConfig.class, com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder.class); } // Construct using com.google.cloud.asset.v1.QueryAssetsOutputConfig.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -1567,9 +1345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor; } @java.lang.Override @@ -1588,8 +1366,7 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfig build() { @java.lang.Override public com.google.cloud.asset.v1.QueryAssetsOutputConfig buildPartial() { - com.google.cloud.asset.v1.QueryAssetsOutputConfig result = - new com.google.cloud.asset.v1.QueryAssetsOutputConfig(this); + com.google.cloud.asset.v1.QueryAssetsOutputConfig result = new com.google.cloud.asset.v1.QueryAssetsOutputConfig(this); if (bigqueryDestinationBuilder_ == null) { result.bigqueryDestination_ = bigqueryDestination_; } else { @@ -1603,39 +1380,38 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.QueryAssetsOutputConfig) { - return mergeFrom((com.google.cloud.asset.v1.QueryAssetsOutputConfig) other); + return mergeFrom((com.google.cloud.asset.v1.QueryAssetsOutputConfig)other); } else { super.mergeFrom(other); return this; @@ -1643,12 +1419,11 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.QueryAssetsOutputConfig other) { - if (other == com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance()) return this; if (other.hasBigqueryDestination()) { mergeBigqueryDestination(other.getBigqueryDestination()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1663,81 +1438,77 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.QueryAssetsOutputConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getBigqueryDestinationFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.QueryAssetsOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination - bigqueryDestination_; + private com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigqueryDestination_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination, - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder, - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder> - bigqueryDestinationBuilder_; + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination, com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder, com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder> bigqueryDestinationBuilder_; /** - * - * *
          * BigQuery destination where the query results will be saved.
          * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; - * - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; * @return Whether the bigqueryDestination field is set. */ public boolean hasBigqueryDestination() { return bigqueryDestinationBuilder_ != null || bigqueryDestination_ != null; } /** - * - * *
          * BigQuery destination where the query results will be saved.
          * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; - * - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; * @return The bigqueryDestination. */ - public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination - getBigqueryDestination() { + public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination getBigqueryDestination() { if (bigqueryDestinationBuilder_ == null) { - return bigqueryDestination_ == null - ? com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination - .getDefaultInstance() - : bigqueryDestination_; + return bigqueryDestination_ == null ? com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.getDefaultInstance() : bigqueryDestination_; } else { return bigqueryDestinationBuilder_.getMessage(); } } /** - * - * *
          * BigQuery destination where the query results will be saved.
          * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; */ - public Builder setBigqueryDestination( - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination value) { + public Builder setBigqueryDestination(com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination value) { if (bigqueryDestinationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1751,19 +1522,14 @@ public Builder setBigqueryDestination( return this; } /** - * - * *
          * BigQuery destination where the query results will be saved.
          * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; */ public Builder setBigqueryDestination( - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder - builderForValue) { + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder builderForValue) { if (bigqueryDestinationBuilder_ == null) { bigqueryDestination_ = builderForValue.build(); onChanged(); @@ -1774,25 +1540,17 @@ public Builder setBigqueryDestination( return this; } /** - * - * *
          * BigQuery destination where the query results will be saved.
          * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; */ - public Builder mergeBigqueryDestination( - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination value) { + public Builder mergeBigqueryDestination(com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination value) { if (bigqueryDestinationBuilder_ == null) { if (bigqueryDestination_ != null) { bigqueryDestination_ = - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.newBuilder( - bigqueryDestination_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.newBuilder(bigqueryDestination_).mergeFrom(value).buildPartial(); } else { bigqueryDestination_ = value; } @@ -1804,15 +1562,11 @@ public Builder mergeBigqueryDestination( return this; } /** - * - * *
          * BigQuery destination where the query results will be saved.
          * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; */ public Builder clearBigqueryDestination() { if (bigqueryDestinationBuilder_ == null) { @@ -1826,74 +1580,55 @@ public Builder clearBigqueryDestination() { return this; } /** - * - * *
          * BigQuery destination where the query results will be saved.
          * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; */ - public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder - getBigqueryDestinationBuilder() { - + public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder getBigqueryDestinationBuilder() { + onChanged(); return getBigqueryDestinationFieldBuilder().getBuilder(); } /** - * - * *
          * BigQuery destination where the query results will be saved.
          * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; */ - public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder - getBigqueryDestinationOrBuilder() { + public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() { if (bigqueryDestinationBuilder_ != null) { return bigqueryDestinationBuilder_.getMessageOrBuilder(); } else { - return bigqueryDestination_ == null - ? com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination - .getDefaultInstance() - : bigqueryDestination_; + return bigqueryDestination_ == null ? + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.getDefaultInstance() : bigqueryDestination_; } } /** - * - * *
          * BigQuery destination where the query results will be saved.
          * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination, - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder, - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder> + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination, com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder, com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder> getBigqueryDestinationFieldBuilder() { if (bigqueryDestinationBuilder_ == null) { - bigqueryDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination, - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder, - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder>( - getBigqueryDestination(), getParentForChildren(), isClean()); + bigqueryDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination, com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder, com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder>( + getBigqueryDestination(), + getParentForChildren(), + isClean()); bigqueryDestination_ = null; } return bigqueryDestinationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1903,12 +1638,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.QueryAssetsOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.QueryAssetsOutputConfig) private static final com.google.cloud.asset.v1.QueryAssetsOutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.QueryAssetsOutputConfig(); } @@ -1917,16 +1652,27 @@ public static com.google.cloud.asset.v1.QueryAssetsOutputConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryAssetsOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryAssetsOutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryAssetsOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1941,4 +1687,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.QueryAssetsOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfigOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfigOrBuilder.java new file mode 100644 index 000000000000..55a6b3b6bd65 --- /dev/null +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfigOrBuilder.java @@ -0,0 +1,36 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface QueryAssetsOutputConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.QueryAssetsOutputConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
    +   * BigQuery destination where the query results will be saved.
    +   * 
    + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * @return Whether the bigqueryDestination field is set. + */ + boolean hasBigqueryDestination(); + /** + *
    +   * BigQuery destination where the query results will be saved.
    +   * 
    + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * @return The bigqueryDestination. + */ + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination getBigqueryDestination(); + /** + *
    +   * BigQuery destination where the query results will be saved.
    +   * 
    + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + */ + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder(); +} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequest.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequest.java similarity index 66% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequest.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequest.java index 51b47b0145f8..692b5b25671c 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequest.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * QueryAssets request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.QueryAssetsRequest} */ -public final class QueryAssetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class QueryAssetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.QueryAssetsRequest) QueryAssetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use QueryAssetsRequest.newBuilder() to construct. private QueryAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private QueryAssetsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,176 +26,38 @@ private QueryAssetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new QueryAssetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private QueryAssetsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - queryCase_ = 2; - query_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - queryCase_ = 3; - query_ = s; - break; - } - case 32: - { - pageSize_ = input.readInt32(); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 50: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (timeout_ != null) { - subBuilder = timeout_.toBuilder(); - } - timeout_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeout_); - timeout_ = subBuilder.buildPartial(); - } - - break; - } - case 58: - { - com.google.cloud.asset.v1.TimeWindow.Builder subBuilder = null; - if (timeCase_ == 7) { - subBuilder = ((com.google.cloud.asset.v1.TimeWindow) time_).toBuilder(); - } - time_ = - input.readMessage( - com.google.cloud.asset.v1.TimeWindow.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.asset.v1.TimeWindow) time_); - time_ = subBuilder.buildPartial(); - } - timeCase_ = 7; - break; - } - case 66: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (timeCase_ == 8) { - subBuilder = ((com.google.protobuf.Timestamp) time_).toBuilder(); - } - time_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Timestamp) time_); - time_ = subBuilder.buildPartial(); - } - timeCase_ = 8; - break; - } - case 74: - { - com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.asset.v1.QueryAssetsOutputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_QueryAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_QueryAssetsRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.QueryAssetsRequest.class, - com.google.cloud.asset.v1.QueryAssetsRequest.Builder.class); + com.google.cloud.asset.v1.QueryAssetsRequest.class, com.google.cloud.asset.v1.QueryAssetsRequest.Builder.class); } private int queryCase_ = 0; private java.lang.Object query_; - public enum QueryCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STATEMENT(2), JOB_REFERENCE(3), QUERY_NOT_SET(0); private final int value; - private QueryCase(int value) { this.value = value; } @@ -229,38 +73,32 @@ public static QueryCase valueOf(int value) { public static QueryCase forNumber(int value) { switch (value) { - case 2: - return STATEMENT; - case 3: - return JOB_REFERENCE; - case 0: - return QUERY_NOT_SET; - default: - return null; + case 2: return STATEMENT; + case 3: return JOB_REFERENCE; + case 0: return QUERY_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public QueryCase getQueryCase() { - return QueryCase.forNumber(queryCase_); + public QueryCase + getQueryCase() { + return QueryCase.forNumber( + queryCase_); } private int timeCase_ = 0; private java.lang.Object time_; - public enum TimeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { READ_TIME_WINDOW(7), READ_TIME(8), TIME_NOT_SET(0); private final int value; - private TimeCase(int value) { this.value = value; } @@ -276,31 +114,26 @@ public static TimeCase valueOf(int value) { public static TimeCase forNumber(int value) { switch (value) { - case 7: - return READ_TIME_WINDOW; - case 8: - return READ_TIME; - case 0: - return TIME_NOT_SET; - default: - return null; + case 7: return READ_TIME_WINDOW; + case 8: return READ_TIME; + case 0: return TIME_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public TimeCase getTimeCase() { - return TimeCase.forNumber(timeCase_); + public TimeCase + getTimeCase() { + return TimeCase.forNumber( + timeCase_); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
        * Required. The relative name of the root asset. This can only be an
        * organization number (such as "organizations/123"), a project ID (such as
    @@ -309,10 +142,7 @@ public TimeCase getTimeCase() {
        * Only assets belonging to the `parent` will be returned.
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -321,15 +151,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
        * Required. The relative name of the root asset. This can only be an
        * organization number (such as "organizations/123"), a project ID (such as
    @@ -338,18 +167,17 @@ public java.lang.String getParent() {
        * Only assets belonging to the `parent` will be returned.
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -359,30 +187,24 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int STATEMENT_FIELD_NUMBER = 2; /** - * - * *
        * Optional. A SQL statement that's compatible with [BigQuery Standard
        * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
        * 
    * * string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the statement field is set. */ public boolean hasStatement() { return queryCase_ == 2; } /** - * - * *
        * Optional. A SQL statement that's compatible with [BigQuery Standard
        * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
        * 
    * * string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The statement. */ public java.lang.String getStatement() { @@ -393,7 +215,8 @@ public java.lang.String getStatement() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (queryCase_ == 2) { query_ = s; @@ -402,25 +225,24 @@ public java.lang.String getStatement() { } } /** - * - * *
        * Optional. A SQL statement that's compatible with [BigQuery Standard
        * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
        * 
    * * string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for statement. */ - public com.google.protobuf.ByteString getStatementBytes() { + public com.google.protobuf.ByteString + getStatementBytes() { java.lang.Object ref = ""; if (queryCase_ == 2) { ref = query_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (queryCase_ == 2) { query_ = b; } @@ -432,30 +254,24 @@ public com.google.protobuf.ByteString getStatementBytes() { public static final int JOB_REFERENCE_FIELD_NUMBER = 3; /** - * - * *
    -   * Optional. Reference to the query job, which is from the
    -   * `QueryAssetsResponse` of previous `QueryAssets` call.
    +   * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +   * previous `QueryAssets` call.
        * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the jobReference field is set. */ public boolean hasJobReference() { return queryCase_ == 3; } /** - * - * *
    -   * Optional. Reference to the query job, which is from the
    -   * `QueryAssetsResponse` of previous `QueryAssets` call.
    +   * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +   * previous `QueryAssets` call.
        * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The jobReference. */ public java.lang.String getJobReference() { @@ -466,7 +282,8 @@ public java.lang.String getJobReference() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (queryCase_ == 3) { query_ = s; @@ -475,25 +292,24 @@ public java.lang.String getJobReference() { } } /** - * - * *
    -   * Optional. Reference to the query job, which is from the
    -   * `QueryAssetsResponse` of previous `QueryAssets` call.
    +   * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +   * previous `QueryAssets` call.
        * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for jobReference. */ - public com.google.protobuf.ByteString getJobReferenceBytes() { + public com.google.protobuf.ByteString + getJobReferenceBytes() { java.lang.Object ref = ""; if (queryCase_ == 3) { ref = query_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (queryCase_ == 3) { query_ = b; } @@ -506,18 +322,15 @@ public com.google.protobuf.ByteString getJobReferenceBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** - * - * *
    -   * Optional. The maximum number of rows to return in the results. Responses
    -   * are limited to 10 MB and 1000 rows.
    +   * Optional. The maximum number of rows to return in the results. Responses are limited
    +   * to 10 MB and 1000 rows.
        * By default, the maximum row count is 1000. When the byte or row count limit
        * is reached, the rest of the query results will be paginated.
        * The field will be ignored when [output_config] is specified.
        * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -528,15 +341,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 5; private volatile java.lang.Object pageToken_; /** - * - * *
        * Optional. A page token received from previous `QueryAssets`.
        * The field will be ignored when [output_config] is specified.
        * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -545,30 +355,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
        * Optional. A page token received from previous `QueryAssets`.
        * The field will be ignored when [output_config] is specified.
        * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -579,14 +389,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int TIMEOUT_FIELD_NUMBER = 6; private com.google.protobuf.Duration timeout_; /** - * - * *
    -   * Optional. Specifies the maximum amount of time that the client is willing
    -   * to wait for the query to complete. By default, this limit is 5 min for the
    -   * first query, and 1 minute for the following queries. If the query is
    -   * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -   * false.
    +   * Optional. Specifies the maximum amount of time that the client is willing to wait
    +   * for the query to complete. By default, this limit is 5 min for the first
    +   * query, and 1 minute for the following queries. If the query is complete,
    +   * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
        * Like BigQuery [jobs.query
        * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
        * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -596,7 +403,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
        * 
    * * .google.protobuf.Duration timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the timeout field is set. */ @java.lang.Override @@ -604,14 +410,11 @@ public boolean hasTimeout() { return timeout_ != null; } /** - * - * *
    -   * Optional. Specifies the maximum amount of time that the client is willing
    -   * to wait for the query to complete. By default, this limit is 5 min for the
    -   * first query, and 1 minute for the following queries. If the query is
    -   * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -   * false.
    +   * Optional. Specifies the maximum amount of time that the client is willing to wait
    +   * for the query to complete. By default, this limit is 5 min for the first
    +   * query, and 1 minute for the following queries. If the query is complete,
    +   * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
        * Like BigQuery [jobs.query
        * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
        * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -621,7 +424,6 @@ public boolean hasTimeout() {
        * 
    * * .google.protobuf.Duration timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The timeout. */ @java.lang.Override @@ -629,14 +431,11 @@ public com.google.protobuf.Duration getTimeout() { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } /** - * - * *
    -   * Optional. Specifies the maximum amount of time that the client is willing
    -   * to wait for the query to complete. By default, this limit is 5 min for the
    -   * first query, and 1 minute for the following queries. If the query is
    -   * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -   * false.
    +   * Optional. Specifies the maximum amount of time that the client is willing to wait
    +   * for the query to complete. By default, this limit is 5 min for the first
    +   * query, and 1 minute for the following queries. If the query is complete,
    +   * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
        * Like BigQuery [jobs.query
        * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
        * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -654,18 +453,13 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
     
       public static final int READ_TIME_WINDOW_FIELD_NUMBER = 7;
       /**
    -   *
    -   *
        * 
    -   * Optional. [start_time] is required. [start_time] must be less than
    -   * [end_time] Defaults [end_time] to now if [start_time] is set and
    -   * [end_time] isn't. Maximum permitted time range is 7 days.
    +   * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +   * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +   * Maximum permitted time range is 7 days.
        * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the readTimeWindow field is set. */ @java.lang.Override @@ -673,60 +467,46 @@ public boolean hasReadTimeWindow() { return timeCase_ == 7; } /** - * - * *
    -   * Optional. [start_time] is required. [start_time] must be less than
    -   * [end_time] Defaults [end_time] to now if [start_time] is set and
    -   * [end_time] isn't. Maximum permitted time range is 7 days.
    +   * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +   * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +   * Maximum permitted time range is 7 days.
        * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The readTimeWindow. */ @java.lang.Override public com.google.cloud.asset.v1.TimeWindow getReadTimeWindow() { if (timeCase_ == 7) { - return (com.google.cloud.asset.v1.TimeWindow) time_; + return (com.google.cloud.asset.v1.TimeWindow) time_; } return com.google.cloud.asset.v1.TimeWindow.getDefaultInstance(); } /** - * - * *
    -   * Optional. [start_time] is required. [start_time] must be less than
    -   * [end_time] Defaults [end_time] to now if [start_time] is set and
    -   * [end_time] isn't. Maximum permitted time range is 7 days.
    +   * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +   * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +   * Maximum permitted time range is 7 days.
        * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder() { if (timeCase_ == 7) { - return (com.google.cloud.asset.v1.TimeWindow) time_; + return (com.google.cloud.asset.v1.TimeWindow) time_; } return com.google.cloud.asset.v1.TimeWindow.getDefaultInstance(); } public static final int READ_TIME_FIELD_NUMBER = 8; /** - * - * *
    -   * Optional. Queries cloud assets as they appeared at the specified point in
    -   * time.
    +   * Optional. Queries cloud assets as they appeared at the specified point in time.
        * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the readTime field is set. */ @java.lang.Override @@ -734,40 +514,31 @@ public boolean hasReadTime() { return timeCase_ == 8; } /** - * - * *
    -   * Optional. Queries cloud assets as they appeared at the specified point in
    -   * time.
    +   * Optional. Queries cloud assets as they appeared at the specified point in time.
        * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The readTime. */ @java.lang.Override public com.google.protobuf.Timestamp getReadTime() { if (timeCase_ == 8) { - return (com.google.protobuf.Timestamp) time_; + return (com.google.protobuf.Timestamp) time_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** - * - * *
    -   * Optional. Queries cloud assets as they appeared at the specified point in
    -   * time.
    +   * Optional. Queries cloud assets as they appeared at the specified point in time.
        * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (timeCase_ == 8) { - return (com.google.protobuf.Timestamp) time_; + return (com.google.protobuf.Timestamp) time_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } @@ -775,8 +546,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 9; private com.google.cloud.asset.v1.QueryAssetsOutputConfig outputConfig_; /** - * - * *
        * Optional. Destination where the query results will be saved.
        * When this field is specified, the query results won't be saved in the
    @@ -787,10 +556,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
        * [QueryAssets] API call.
        * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -798,8 +564,6 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
        * Optional. Destination where the query results will be saved.
        * When this field is specified, the query results won't be saved in the
    @@ -810,21 +574,14 @@ public boolean hasOutputConfig() {
        * [QueryAssets] API call.
        * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.asset.v1.QueryAssetsOutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
        * Optional. Destination where the query results will be saved.
        * When this field is specified, the query results won't be saved in the
    @@ -835,9 +592,7 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfig getOutputConfig() {
        * [QueryAssets] API call.
        * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -845,7 +600,6 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder getOutputConfi } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -857,7 +611,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -885,7 +640,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (outputConfig_ != null) { output.writeMessage(9, getOutputConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -904,28 +659,29 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, query_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); } if (timeout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getTimeout()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getTimeout()); } if (timeCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.cloud.asset.v1.TimeWindow) time_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.cloud.asset.v1.TimeWindow) time_); } if (timeCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, (com.google.protobuf.Timestamp) time_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.protobuf.Timestamp) time_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getOutputConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -933,32 +689,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.QueryAssetsRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.QueryAssetsRequest other = - (com.google.cloud.asset.v1.QueryAssetsRequest) obj; + com.google.cloud.asset.v1.QueryAssetsRequest other = (com.google.cloud.asset.v1.QueryAssetsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (hasTimeout() != other.hasTimeout()) return false; if (hasTimeout()) { - if (!getTimeout().equals(other.getTimeout())) return false; + if (!getTimeout() + .equals(other.getTimeout())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!getQueryCase().equals(other.getQueryCase())) return false; switch (queryCase_) { case 2: - if (!getStatement().equals(other.getStatement())) return false; + if (!getStatement() + .equals(other.getStatement())) return false; break; case 3: - if (!getJobReference().equals(other.getJobReference())) return false; + if (!getJobReference() + .equals(other.getJobReference())) return false; break; case 0: default: @@ -966,15 +728,17 @@ public boolean equals(final java.lang.Object obj) { if (!getTimeCase().equals(other.getTimeCase())) return false; switch (timeCase_) { case 7: - if (!getReadTimeWindow().equals(other.getReadTimeWindow())) return false; + if (!getReadTimeWindow() + .equals(other.getReadTimeWindow())) return false; break; case 8: - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; break; case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1023,148 +787,135 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.QueryAssetsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.QueryAssetsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.QueryAssetsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.QueryAssetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.QueryAssetsRequest 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.asset.v1.QueryAssetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.QueryAssetsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.QueryAssetsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.QueryAssetsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.QueryAssetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.QueryAssetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.QueryAssetsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.QueryAssetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.QueryAssetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.QueryAssetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * QueryAssets request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.QueryAssetsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.QueryAssetsRequest) com.google.cloud.asset.v1.QueryAssetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_QueryAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_QueryAssetsRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.QueryAssetsRequest.class, - com.google.cloud.asset.v1.QueryAssetsRequest.Builder.class); + com.google.cloud.asset.v1.QueryAssetsRequest.class, com.google.cloud.asset.v1.QueryAssetsRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.QueryAssetsRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -1180,6 +931,12 @@ public Builder clear() { timeout_ = null; timeoutBuilder_ = null; } + if (readTimeWindowBuilder_ != null) { + readTimeWindowBuilder_.clear(); + } + if (readTimeBuilder_ != null) { + readTimeBuilder_.clear(); + } if (outputConfigBuilder_ == null) { outputConfig_ = null; } else { @@ -1194,9 +951,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_QueryAssetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsRequest_descriptor; } @java.lang.Override @@ -1215,8 +972,7 @@ public com.google.cloud.asset.v1.QueryAssetsRequest build() { @java.lang.Override public com.google.cloud.asset.v1.QueryAssetsRequest buildPartial() { - com.google.cloud.asset.v1.QueryAssetsRequest result = - new com.google.cloud.asset.v1.QueryAssetsRequest(this); + com.google.cloud.asset.v1.QueryAssetsRequest result = new com.google.cloud.asset.v1.QueryAssetsRequest(this); result.parent_ = parent_; if (queryCase_ == 2) { result.query_ = query_; @@ -1260,39 +1016,38 @@ public com.google.cloud.asset.v1.QueryAssetsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.QueryAssetsRequest) { - return mergeFrom((com.google.cloud.asset.v1.QueryAssetsRequest) other); + return mergeFrom((com.google.cloud.asset.v1.QueryAssetsRequest)other); } else { super.mergeFrom(other); return this; @@ -1319,42 +1074,36 @@ public Builder mergeFrom(com.google.cloud.asset.v1.QueryAssetsRequest other) { mergeOutputConfig(other.getOutputConfig()); } switch (other.getQueryCase()) { - case STATEMENT: - { - queryCase_ = 2; - query_ = other.query_; - onChanged(); - break; - } - case JOB_REFERENCE: - { - queryCase_ = 3; - query_ = other.query_; - onChanged(); - break; - } - case QUERY_NOT_SET: - { - break; - } + case STATEMENT: { + queryCase_ = 2; + query_ = other.query_; + onChanged(); + break; + } + case JOB_REFERENCE: { + queryCase_ = 3; + query_ = other.query_; + onChanged(); + break; + } + case QUERY_NOT_SET: { + break; + } } switch (other.getTimeCase()) { - case READ_TIME_WINDOW: - { - mergeReadTimeWindow(other.getReadTimeWindow()); - break; - } - case READ_TIME: - { - mergeReadTime(other.getReadTime()); - break; - } - case TIME_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.unknownFields); + case READ_TIME_WINDOW: { + mergeReadTimeWindow(other.getReadTimeWindow()); + break; + } + case READ_TIME: { + mergeReadTime(other.getReadTime()); + break; + } + case TIME_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1369,25 +1118,93 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.QueryAssetsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + queryCase_ = 2; + query_ = s; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + queryCase_ = 3; + query_ = s; + break; + } // case 26 + case 32: { + pageSize_ = input.readInt32(); + + break; + } // case 32 + case 42: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + input.readMessage( + getTimeoutFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 50 + case 58: { + input.readMessage( + getReadTimeWindowFieldBuilder().getBuilder(), + extensionRegistry); + timeCase_ = 7; + break; + } // case 58 + case 66: { + input.readMessage( + getReadTimeFieldBuilder().getBuilder(), + extensionRegistry); + timeCase_ = 8; + break; + } // case 66 + case 74: { + input.readMessage( + getOutputConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.QueryAssetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int queryCase_ = 0; private java.lang.Object query_; - - public QueryCase getQueryCase() { - return QueryCase.forNumber(queryCase_); + public QueryCase + getQueryCase() { + return QueryCase.forNumber( + queryCase_); } public Builder clearQuery() { @@ -1399,9 +1216,10 @@ public Builder clearQuery() { private int timeCase_ = 0; private java.lang.Object time_; - - public TimeCase getTimeCase() { - return TimeCase.forNumber(timeCase_); + public TimeCase + getTimeCase() { + return TimeCase.forNumber( + timeCase_); } public Builder clearTime() { @@ -1411,10 +1229,9 @@ public Builder clearTime() { return this; } + private java.lang.Object parent_ = ""; /** - * - * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -1423,16 +1240,14 @@ public Builder clearTime() {
          * Only assets belonging to the `parent` will be returned.
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1441,8 +1256,6 @@ public java.lang.String getParent() { } } /** - * - * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -1451,17 +1264,16 @@ public java.lang.String getParent() {
          * Only assets belonging to the `parent` will be returned.
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1469,8 +1281,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -1479,25 +1289,21 @@ public com.google.protobuf.ByteString getParentBytes() {
          * Only assets belonging to the `parent` will be returned.
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -1506,21 +1312,16 @@ public Builder setParent(java.lang.String value) {
          * Only assets belonging to the `parent` will be returned.
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -1529,34 +1330,29 @@ public Builder clearParent() {
          * Only assets belonging to the `parent` will be returned.
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } /** - * - * *
          * Optional. A SQL statement that's compatible with [BigQuery Standard
          * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
          * 
    * * string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the statement field is set. */ @java.lang.Override @@ -1564,15 +1360,12 @@ public boolean hasStatement() { return queryCase_ == 2; } /** - * - * *
          * Optional. A SQL statement that's compatible with [BigQuery Standard
          * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
          * 
    * * string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The statement. */ @java.lang.Override @@ -1582,7 +1375,8 @@ public java.lang.String getStatement() { ref = query_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (queryCase_ == 2) { query_ = s; @@ -1593,26 +1387,25 @@ public java.lang.String getStatement() { } } /** - * - * *
          * Optional. A SQL statement that's compatible with [BigQuery Standard
          * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
          * 
    * * string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for statement. */ @java.lang.Override - public com.google.protobuf.ByteString getStatementBytes() { + public com.google.protobuf.ByteString + getStatementBytes() { java.lang.Object ref = ""; if (queryCase_ == 2) { ref = query_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (queryCase_ == 2) { query_ = b; } @@ -1622,37 +1415,32 @@ public com.google.protobuf.ByteString getStatementBytes() { } } /** - * - * *
          * Optional. A SQL statement that's compatible with [BigQuery Standard
          * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
          * 
    * * string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The statement to set. * @return This builder for chaining. */ - public Builder setStatement(java.lang.String value) { + public Builder setStatement( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - queryCase_ = 2; + throw new NullPointerException(); + } + queryCase_ = 2; query_ = value; onChanged(); return this; } /** - * - * *
          * Optional. A SQL statement that's compatible with [BigQuery Standard
          * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
          * 
    * * string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearStatement() { @@ -1664,23 +1452,21 @@ public Builder clearStatement() { return this; } /** - * - * *
          * Optional. A SQL statement that's compatible with [BigQuery Standard
          * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
          * 
    * * string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for statement to set. * @return This builder for chaining. */ - public Builder setStatementBytes(com.google.protobuf.ByteString value) { + public Builder setStatementBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); queryCase_ = 2; query_ = value; onChanged(); @@ -1688,15 +1474,12 @@ public Builder setStatementBytes(com.google.protobuf.ByteString value) { } /** - * - * *
    -     * Optional. Reference to the query job, which is from the
    -     * `QueryAssetsResponse` of previous `QueryAssets` call.
    +     * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +     * previous `QueryAssets` call.
          * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the jobReference field is set. */ @java.lang.Override @@ -1704,15 +1487,12 @@ public boolean hasJobReference() { return queryCase_ == 3; } /** - * - * *
    -     * Optional. Reference to the query job, which is from the
    -     * `QueryAssetsResponse` of previous `QueryAssets` call.
    +     * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +     * previous `QueryAssets` call.
          * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The jobReference. */ @java.lang.Override @@ -1722,7 +1502,8 @@ public java.lang.String getJobReference() { ref = query_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (queryCase_ == 3) { query_ = s; @@ -1733,26 +1514,25 @@ public java.lang.String getJobReference() { } } /** - * - * *
    -     * Optional. Reference to the query job, which is from the
    -     * `QueryAssetsResponse` of previous `QueryAssets` call.
    +     * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +     * previous `QueryAssets` call.
          * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for jobReference. */ @java.lang.Override - public com.google.protobuf.ByteString getJobReferenceBytes() { + public com.google.protobuf.ByteString + getJobReferenceBytes() { java.lang.Object ref = ""; if (queryCase_ == 3) { ref = query_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (queryCase_ == 3) { query_ = b; } @@ -1762,37 +1542,32 @@ public com.google.protobuf.ByteString getJobReferenceBytes() { } } /** - * - * *
    -     * Optional. Reference to the query job, which is from the
    -     * `QueryAssetsResponse` of previous `QueryAssets` call.
    +     * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +     * previous `QueryAssets` call.
          * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The jobReference to set. * @return This builder for chaining. */ - public Builder setJobReference(java.lang.String value) { + public Builder setJobReference( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - queryCase_ = 3; + throw new NullPointerException(); + } + queryCase_ = 3; query_ = value; onChanged(); return this; } /** - * - * *
    -     * Optional. Reference to the query job, which is from the
    -     * `QueryAssetsResponse` of previous `QueryAssets` call.
    +     * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +     * previous `QueryAssets` call.
          * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearJobReference() { @@ -1804,43 +1579,38 @@ public Builder clearJobReference() { return this; } /** - * - * *
    -     * Optional. Reference to the query job, which is from the
    -     * `QueryAssetsResponse` of previous `QueryAssets` call.
    +     * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +     * previous `QueryAssets` call.
          * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for jobReference to set. * @return This builder for chaining. */ - public Builder setJobReferenceBytes(com.google.protobuf.ByteString value) { + public Builder setJobReferenceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); queryCase_ = 3; query_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
    -     * Optional. The maximum number of rows to return in the results. Responses
    -     * are limited to 10 MB and 1000 rows.
    +     * Optional. The maximum number of rows to return in the results. Responses are limited
    +     * to 10 MB and 1000 rows.
          * By default, the maximum row count is 1000. When the byte or row count limit
          * is reached, the rest of the query results will be paginated.
          * The field will be ignored when [output_config] is specified.
          * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -1848,44 +1618,38 @@ public int getPageSize() { return pageSize_; } /** - * - * *
    -     * Optional. The maximum number of rows to return in the results. Responses
    -     * are limited to 10 MB and 1000 rows.
    +     * Optional. The maximum number of rows to return in the results. Responses are limited
    +     * to 10 MB and 1000 rows.
          * By default, the maximum row count is 1000. When the byte or row count limit
          * is reached, the rest of the query results will be paginated.
          * The field will be ignored when [output_config] is specified.
          * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
    -     * Optional. The maximum number of rows to return in the results. Responses
    -     * are limited to 10 MB and 1000 rows.
    +     * Optional. The maximum number of rows to return in the results. Responses are limited
    +     * to 10 MB and 1000 rows.
          * By default, the maximum row count is 1000. When the byte or row count limit
          * is reached, the rest of the query results will be paginated.
          * The field will be ignored when [output_config] is specified.
          * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1893,21 +1657,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
          * Optional. A page token received from previous `QueryAssets`.
          * The field will be ignored when [output_config] is specified.
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1916,22 +1678,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
          * Optional. A page token received from previous `QueryAssets`.
          * The field will be ignored when [output_config] is specified.
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1939,64 +1700,57 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
          * Optional. A page token received from previous `QueryAssets`.
          * The field will be ignored when [output_config] is specified.
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
          * Optional. A page token received from previous `QueryAssets`.
          * The field will be ignored when [output_config] is specified.
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
          * Optional. A page token received from previous `QueryAssets`.
          * The field will be ignored when [output_config] is specified.
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -2004,19 +1758,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Duration timeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - timeoutBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; /** - * - * *
    -     * Optional. Specifies the maximum amount of time that the client is willing
    -     * to wait for the query to complete. By default, this limit is 5 min for the
    -     * first query, and 1 minute for the following queries. If the query is
    -     * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -     * false.
    +     * Optional. Specifies the maximum amount of time that the client is willing to wait
    +     * for the query to complete. By default, this limit is 5 min for the first
    +     * query, and 1 minute for the following queries. If the query is complete,
    +     * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
          * Like BigQuery [jobs.query
          * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
          * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -2026,21 +1774,17 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
          * 
    * * .google.protobuf.Duration timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the timeout field is set. */ public boolean hasTimeout() { return timeoutBuilder_ != null || timeout_ != null; } /** - * - * *
    -     * Optional. Specifies the maximum amount of time that the client is willing
    -     * to wait for the query to complete. By default, this limit is 5 min for the
    -     * first query, and 1 minute for the following queries. If the query is
    -     * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -     * false.
    +     * Optional. Specifies the maximum amount of time that the client is willing to wait
    +     * for the query to complete. By default, this limit is 5 min for the first
    +     * query, and 1 minute for the following queries. If the query is complete,
    +     * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
          * Like BigQuery [jobs.query
          * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
          * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -2050,7 +1794,6 @@ public boolean hasTimeout() {
          * 
    * * .google.protobuf.Duration timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { @@ -2061,14 +1804,11 @@ public com.google.protobuf.Duration getTimeout() { } } /** - * - * *
    -     * Optional. Specifies the maximum amount of time that the client is willing
    -     * to wait for the query to complete. By default, this limit is 5 min for the
    -     * first query, and 1 minute for the following queries. If the query is
    -     * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -     * false.
    +     * Optional. Specifies the maximum amount of time that the client is willing to wait
    +     * for the query to complete. By default, this limit is 5 min for the first
    +     * query, and 1 minute for the following queries. If the query is complete,
    +     * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
          * Like BigQuery [jobs.query
          * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
          * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -2093,14 +1833,11 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
    -     * Optional. Specifies the maximum amount of time that the client is willing
    -     * to wait for the query to complete. By default, this limit is 5 min for the
    -     * first query, and 1 minute for the following queries. If the query is
    -     * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -     * false.
    +     * Optional. Specifies the maximum amount of time that the client is willing to wait
    +     * for the query to complete. By default, this limit is 5 min for the first
    +     * query, and 1 minute for the following queries. If the query is complete,
    +     * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
          * Like BigQuery [jobs.query
          * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
          * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -2111,7 +1848,8 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
          *
          * .google.protobuf.Duration timeout = 6 [(.google.api.field_behavior) = OPTIONAL];
          */
    -    public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) {
    +    public Builder setTimeout(
    +        com.google.protobuf.Duration.Builder builderForValue) {
           if (timeoutBuilder_ == null) {
             timeout_ = builderForValue.build();
             onChanged();
    @@ -2122,14 +1860,11 @@ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue)
           return this;
         }
         /**
    -     *
    -     *
          * 
    -     * Optional. Specifies the maximum amount of time that the client is willing
    -     * to wait for the query to complete. By default, this limit is 5 min for the
    -     * first query, and 1 minute for the following queries. If the query is
    -     * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -     * false.
    +     * Optional. Specifies the maximum amount of time that the client is willing to wait
    +     * for the query to complete. By default, this limit is 5 min for the first
    +     * query, and 1 minute for the following queries. If the query is complete,
    +     * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
          * Like BigQuery [jobs.query
          * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
          * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -2144,7 +1879,7 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) {
           if (timeoutBuilder_ == null) {
             if (timeout_ != null) {
               timeout_ =
    -              com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial();
    +            com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial();
             } else {
               timeout_ = value;
             }
    @@ -2156,14 +1891,11 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
    -     * Optional. Specifies the maximum amount of time that the client is willing
    -     * to wait for the query to complete. By default, this limit is 5 min for the
    -     * first query, and 1 minute for the following queries. If the query is
    -     * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -     * false.
    +     * Optional. Specifies the maximum amount of time that the client is willing to wait
    +     * for the query to complete. By default, this limit is 5 min for the first
    +     * query, and 1 minute for the following queries. If the query is complete,
    +     * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
          * Like BigQuery [jobs.query
          * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
          * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -2186,14 +1918,11 @@ public Builder clearTimeout() {
           return this;
         }
         /**
    -     *
    -     *
          * 
    -     * Optional. Specifies the maximum amount of time that the client is willing
    -     * to wait for the query to complete. By default, this limit is 5 min for the
    -     * first query, and 1 minute for the following queries. If the query is
    -     * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -     * false.
    +     * Optional. Specifies the maximum amount of time that the client is willing to wait
    +     * for the query to complete. By default, this limit is 5 min for the first
    +     * query, and 1 minute for the following queries. If the query is complete,
    +     * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
          * Like BigQuery [jobs.query
          * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
          * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -2205,19 +1934,16 @@ public Builder clearTimeout() {
          * .google.protobuf.Duration timeout = 6 [(.google.api.field_behavior) = OPTIONAL];
          */
         public com.google.protobuf.Duration.Builder getTimeoutBuilder() {
    -
    +      
           onChanged();
           return getTimeoutFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
    -     * Optional. Specifies the maximum amount of time that the client is willing
    -     * to wait for the query to complete. By default, this limit is 5 min for the
    -     * first query, and 1 minute for the following queries. If the query is
    -     * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -     * false.
    +     * Optional. Specifies the maximum amount of time that the client is willing to wait
    +     * for the query to complete. By default, this limit is 5 min for the first
    +     * query, and 1 minute for the following queries. If the query is complete,
    +     * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
          * Like BigQuery [jobs.query
          * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
          * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -2232,18 +1958,16 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
           if (timeoutBuilder_ != null) {
             return timeoutBuilder_.getMessageOrBuilder();
           } else {
    -        return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_;
    +        return timeout_ == null ?
    +            com.google.protobuf.Duration.getDefaultInstance() : timeout_;
           }
         }
         /**
    -     *
    -     *
          * 
    -     * Optional. Specifies the maximum amount of time that the client is willing
    -     * to wait for the query to complete. By default, this limit is 5 min for the
    -     * first query, and 1 minute for the following queries. If the query is
    -     * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -     * false.
    +     * Optional. Specifies the maximum amount of time that the client is willing to wait
    +     * for the query to complete. By default, this limit is 5 min for the first
    +     * query, and 1 minute for the following queries. If the query is complete,
    +     * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
          * Like BigQuery [jobs.query
          * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
          * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -2255,40 +1979,29 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
          * .google.protobuf.Duration timeout = 6 [(.google.api.field_behavior) = OPTIONAL];
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Duration,
    -            com.google.protobuf.Duration.Builder,
    -            com.google.protobuf.DurationOrBuilder>
    +        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
             getTimeoutFieldBuilder() {
           if (timeoutBuilder_ == null) {
    -        timeoutBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.protobuf.Duration,
    -                com.google.protobuf.Duration.Builder,
    -                com.google.protobuf.DurationOrBuilder>(
    -                getTimeout(), getParentForChildren(), isClean());
    +        timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
    +                getTimeout(),
    +                getParentForChildren(),
    +                isClean());
             timeout_ = null;
           }
           return timeoutBuilder_;
         }
     
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.TimeWindow,
    -            com.google.cloud.asset.v1.TimeWindow.Builder,
    -            com.google.cloud.asset.v1.TimeWindowOrBuilder>
    -        readTimeWindowBuilder_;
    +        com.google.cloud.asset.v1.TimeWindow, com.google.cloud.asset.v1.TimeWindow.Builder, com.google.cloud.asset.v1.TimeWindowOrBuilder> readTimeWindowBuilder_;
         /**
    -     *
    -     *
          * 
    -     * Optional. [start_time] is required. [start_time] must be less than
    -     * [end_time] Defaults [end_time] to now if [start_time] is set and
    -     * [end_time] isn't. Maximum permitted time range is 7 days.
    +     * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +     * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +     * Maximum permitted time range is 7 days.
          * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the readTimeWindow field is set. */ @java.lang.Override @@ -2296,18 +2009,13 @@ public boolean hasReadTimeWindow() { return timeCase_ == 7; } /** - * - * *
    -     * Optional. [start_time] is required. [start_time] must be less than
    -     * [end_time] Defaults [end_time] to now if [start_time] is set and
    -     * [end_time] isn't. Maximum permitted time range is 7 days.
    +     * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +     * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +     * Maximum permitted time range is 7 days.
          * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The readTimeWindow. */ @java.lang.Override @@ -2325,17 +2033,13 @@ public com.google.cloud.asset.v1.TimeWindow getReadTimeWindow() { } } /** - * - * *
    -     * Optional. [start_time] is required. [start_time] must be less than
    -     * [end_time] Defaults [end_time] to now if [start_time] is set and
    -     * [end_time] isn't. Maximum permitted time range is 7 days.
    +     * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +     * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +     * Maximum permitted time range is 7 days.
          * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setReadTimeWindow(com.google.cloud.asset.v1.TimeWindow value) { if (readTimeWindowBuilder_ == null) { @@ -2351,19 +2055,16 @@ public Builder setReadTimeWindow(com.google.cloud.asset.v1.TimeWindow value) { return this; } /** - * - * *
    -     * Optional. [start_time] is required. [start_time] must be less than
    -     * [end_time] Defaults [end_time] to now if [start_time] is set and
    -     * [end_time] isn't. Maximum permitted time range is 7 days.
    +     * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +     * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +     * Maximum permitted time range is 7 days.
          * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setReadTimeWindow(com.google.cloud.asset.v1.TimeWindow.Builder builderForValue) { + public Builder setReadTimeWindow( + com.google.cloud.asset.v1.TimeWindow.Builder builderForValue) { if (readTimeWindowBuilder_ == null) { time_ = builderForValue.build(); onChanged(); @@ -2374,26 +2075,20 @@ public Builder setReadTimeWindow(com.google.cloud.asset.v1.TimeWindow.Builder bu return this; } /** - * - * *
    -     * Optional. [start_time] is required. [start_time] must be less than
    -     * [end_time] Defaults [end_time] to now if [start_time] is set and
    -     * [end_time] isn't. Maximum permitted time range is 7 days.
    +     * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +     * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +     * Maximum permitted time range is 7 days.
          * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeReadTimeWindow(com.google.cloud.asset.v1.TimeWindow value) { if (readTimeWindowBuilder_ == null) { - if (timeCase_ == 7 && time_ != com.google.cloud.asset.v1.TimeWindow.getDefaultInstance()) { - time_ = - com.google.cloud.asset.v1.TimeWindow.newBuilder( - (com.google.cloud.asset.v1.TimeWindow) time_) - .mergeFrom(value) - .buildPartial(); + if (timeCase_ == 7 && + time_ != com.google.cloud.asset.v1.TimeWindow.getDefaultInstance()) { + time_ = com.google.cloud.asset.v1.TimeWindow.newBuilder((com.google.cloud.asset.v1.TimeWindow) time_) + .mergeFrom(value).buildPartial(); } else { time_ = value; } @@ -2409,17 +2104,13 @@ public Builder mergeReadTimeWindow(com.google.cloud.asset.v1.TimeWindow value) { return this; } /** - * - * *
    -     * Optional. [start_time] is required. [start_time] must be less than
    -     * [end_time] Defaults [end_time] to now if [start_time] is set and
    -     * [end_time] isn't. Maximum permitted time range is 7 days.
    +     * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +     * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +     * Maximum permitted time range is 7 days.
          * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearReadTimeWindow() { if (readTimeWindowBuilder_ == null) { @@ -2438,33 +2129,25 @@ public Builder clearReadTimeWindow() { return this; } /** - * - * *
    -     * Optional. [start_time] is required. [start_time] must be less than
    -     * [end_time] Defaults [end_time] to now if [start_time] is set and
    -     * [end_time] isn't. Maximum permitted time range is 7 days.
    +     * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +     * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +     * Maximum permitted time range is 7 days.
          * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.asset.v1.TimeWindow.Builder getReadTimeWindowBuilder() { return getReadTimeWindowFieldBuilder().getBuilder(); } /** - * - * *
    -     * Optional. [start_time] is required. [start_time] must be less than
    -     * [end_time] Defaults [end_time] to now if [start_time] is set and
    -     * [end_time] isn't. Maximum permitted time range is 7 days.
    +     * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +     * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +     * Maximum permitted time range is 7 days.
          * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder() { @@ -2478,57 +2161,41 @@ public com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder( } } /** - * - * *
    -     * Optional. [start_time] is required. [start_time] must be less than
    -     * [end_time] Defaults [end_time] to now if [start_time] is set and
    -     * [end_time] isn't. Maximum permitted time range is 7 days.
    +     * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +     * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +     * Maximum permitted time range is 7 days.
          * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.TimeWindow, - com.google.cloud.asset.v1.TimeWindow.Builder, - com.google.cloud.asset.v1.TimeWindowOrBuilder> + com.google.cloud.asset.v1.TimeWindow, com.google.cloud.asset.v1.TimeWindow.Builder, com.google.cloud.asset.v1.TimeWindowOrBuilder> getReadTimeWindowFieldBuilder() { if (readTimeWindowBuilder_ == null) { if (!(timeCase_ == 7)) { time_ = com.google.cloud.asset.v1.TimeWindow.getDefaultInstance(); } - readTimeWindowBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.TimeWindow, - com.google.cloud.asset.v1.TimeWindow.Builder, - com.google.cloud.asset.v1.TimeWindowOrBuilder>( - (com.google.cloud.asset.v1.TimeWindow) time_, getParentForChildren(), isClean()); + readTimeWindowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.TimeWindow, com.google.cloud.asset.v1.TimeWindow.Builder, com.google.cloud.asset.v1.TimeWindowOrBuilder>( + (com.google.cloud.asset.v1.TimeWindow) time_, + getParentForChildren(), + isClean()); time_ = null; } timeCase_ = 7; - onChanged(); - ; + onChanged();; return readTimeWindowBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
    -     * Optional. Queries cloud assets as they appeared at the specified point in
    -     * time.
    +     * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the readTime field is set. */ @java.lang.Override @@ -2536,16 +2203,11 @@ public boolean hasReadTime() { return timeCase_ == 8; } /** - * - * *
    -     * Optional. Queries cloud assets as they appeared at the specified point in
    -     * time.
    +     * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The readTime. */ @java.lang.Override @@ -2563,15 +2225,11 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
    -     * Optional. Queries cloud assets as they appeared at the specified point in
    -     * time.
    +     * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { @@ -2587,17 +2245,14 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
    -     * Optional. Queries cloud assets as they appeared at the specified point in
    -     * time.
    +     * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { time_ = builderForValue.build(); onChanged(); @@ -2608,23 +2263,18 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue return this; } /** - * - * *
    -     * Optional. Queries cloud assets as they appeared at the specified point in
    -     * time.
    +     * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { - if (timeCase_ == 8 && time_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - time_ = - com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) time_) - .mergeFrom(value) - .buildPartial(); + if (timeCase_ == 8 && + time_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + time_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) time_) + .mergeFrom(value).buildPartial(); } else { time_ = value; } @@ -2640,15 +2290,11 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
    -     * Optional. Queries cloud assets as they appeared at the specified point in
    -     * time.
    +     * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearReadTime() { if (readTimeBuilder_ == null) { @@ -2667,29 +2313,21 @@ public Builder clearReadTime() { return this; } /** - * - * *
    -     * Optional. Queries cloud assets as they appeared at the specified point in
    -     * time.
    +     * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { return getReadTimeFieldBuilder().getBuilder(); } /** - * - * *
    -     * Optional. Queries cloud assets as they appeared at the specified point in
    -     * time.
    +     * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { @@ -2703,48 +2341,35 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { } } /** - * - * *
    -     * Optional. Queries cloud assets as they appeared at the specified point in
    -     * time.
    +     * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { if (!(timeCase_ == 8)) { time_ = com.google.protobuf.Timestamp.getDefaultInstance(); } - readTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - (com.google.protobuf.Timestamp) time_, getParentForChildren(), isClean()); + readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) time_, + getParentForChildren(), + isClean()); time_ = null; } timeCase_ = 8; - onChanged(); - ; + onChanged();; return readTimeBuilder_; } private com.google.cloud.asset.v1.QueryAssetsOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.QueryAssetsOutputConfig, - com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder, - com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.asset.v1.QueryAssetsOutputConfig, com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder, com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
          * Optional. Destination where the query results will be saved.
          * When this field is specified, the query results won't be saved in the
    @@ -2755,18 +2380,13 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
          * [QueryAssets] API call.
          * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
          * Optional. Destination where the query results will be saved.
          * When this field is specified, the query results won't be saved in the
    @@ -2777,24 +2397,17 @@ public boolean hasOutputConfig() {
          * [QueryAssets] API call.
          * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The outputConfig. */ public com.google.cloud.asset.v1.QueryAssetsOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
          * Optional. Destination where the query results will be saved.
          * When this field is specified, the query results won't be saved in the
    @@ -2805,9 +2418,7 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfig getOutputConfig() {
          * [QueryAssets] API call.
          * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setOutputConfig(com.google.cloud.asset.v1.QueryAssetsOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -2823,8 +2434,6 @@ public Builder setOutputConfig(com.google.cloud.asset.v1.QueryAssetsOutputConfig return this; } /** - * - * *
          * Optional. Destination where the query results will be saved.
          * When this field is specified, the query results won't be saved in the
    @@ -2835,9 +2444,7 @@ public Builder setOutputConfig(com.google.cloud.asset.v1.QueryAssetsOutputConfig
          * [QueryAssets] API call.
          * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setOutputConfig( com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder builderForValue) { @@ -2851,8 +2458,6 @@ public Builder setOutputConfig( return this; } /** - * - * *
          * Optional. Destination where the query results will be saved.
          * When this field is specified, the query results won't be saved in the
    @@ -2863,17 +2468,13 @@ public Builder setOutputConfig(
          * [QueryAssets] API call.
          * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeOutputConfig(com.google.cloud.asset.v1.QueryAssetsOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.asset.v1.QueryAssetsOutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.QueryAssetsOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -2885,8 +2486,6 @@ public Builder mergeOutputConfig(com.google.cloud.asset.v1.QueryAssetsOutputConf return this; } /** - * - * *
          * Optional. Destination where the query results will be saved.
          * When this field is specified, the query results won't be saved in the
    @@ -2897,9 +2496,7 @@ public Builder mergeOutputConfig(com.google.cloud.asset.v1.QueryAssetsOutputConf
          * [QueryAssets] API call.
          * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -2913,8 +2510,6 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
          * Optional. Destination where the query results will be saved.
          * When this field is specified, the query results won't be saved in the
    @@ -2925,18 +2520,14 @@ public Builder clearOutputConfig() {
          * [QueryAssets] API call.
          * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
          * Optional. Destination where the query results will be saved.
          * When this field is specified, the query results won't be saved in the
    @@ -2947,22 +2538,17 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder getOutputConfig
          * [QueryAssets] API call.
          * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
          * Optional. Destination where the query results will be saved.
          * When this field is specified, the query results won't be saved in the
    @@ -2973,29 +2559,24 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder getOutputConfi
          * [QueryAssets] API call.
          * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.QueryAssetsOutputConfig, - com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder, - com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder> + com.google.cloud.asset.v1.QueryAssetsOutputConfig, com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder, com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.QueryAssetsOutputConfig, - com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder, - com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.QueryAssetsOutputConfig, com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder, com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3005,12 +2586,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.QueryAssetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.QueryAssetsRequest) private static final com.google.cloud.asset.v1.QueryAssetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.QueryAssetsRequest(); } @@ -3019,16 +2600,27 @@ public static com.google.cloud.asset.v1.QueryAssetsRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryAssetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryAssetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3043,4 +2635,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.QueryAssetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequestOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequestOrBuilder.java similarity index 68% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequestOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequestOrBuilder.java index 492eae53ad0e..355136bdae80 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequestOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface QueryAssetsRequestOrBuilder - extends +public interface QueryAssetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.QueryAssetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The relative name of the root asset. This can only be an
        * organization number (such as "organizations/123"), a project ID (such as
    @@ -34,16 +16,11 @@ public interface QueryAssetsRequestOrBuilder
        * Only assets belonging to the `parent` will be returned.
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
        * Required. The relative name of the root asset. This can only be an
        * organization number (such as "organizations/123"), a project ID (such as
    @@ -52,147 +29,118 @@ public interface QueryAssetsRequestOrBuilder
        * Only assets belonging to the `parent` will be returned.
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
        * Optional. A SQL statement that's compatible with [BigQuery Standard
        * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
        * 
    * * string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the statement field is set. */ boolean hasStatement(); /** - * - * *
        * Optional. A SQL statement that's compatible with [BigQuery Standard
        * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
        * 
    * * string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The statement. */ java.lang.String getStatement(); /** - * - * *
        * Optional. A SQL statement that's compatible with [BigQuery Standard
        * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
        * 
    * * string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for statement. */ - com.google.protobuf.ByteString getStatementBytes(); + com.google.protobuf.ByteString + getStatementBytes(); /** - * - * *
    -   * Optional. Reference to the query job, which is from the
    -   * `QueryAssetsResponse` of previous `QueryAssets` call.
    +   * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +   * previous `QueryAssets` call.
        * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the jobReference field is set. */ boolean hasJobReference(); /** - * - * *
    -   * Optional. Reference to the query job, which is from the
    -   * `QueryAssetsResponse` of previous `QueryAssets` call.
    +   * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +   * previous `QueryAssets` call.
        * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The jobReference. */ java.lang.String getJobReference(); /** - * - * *
    -   * Optional. Reference to the query job, which is from the
    -   * `QueryAssetsResponse` of previous `QueryAssets` call.
    +   * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +   * previous `QueryAssets` call.
        * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for jobReference. */ - com.google.protobuf.ByteString getJobReferenceBytes(); + com.google.protobuf.ByteString + getJobReferenceBytes(); /** - * - * *
    -   * Optional. The maximum number of rows to return in the results. Responses
    -   * are limited to 10 MB and 1000 rows.
    +   * Optional. The maximum number of rows to return in the results. Responses are limited
    +   * to 10 MB and 1000 rows.
        * By default, the maximum row count is 1000. When the byte or row count limit
        * is reached, the rest of the query results will be paginated.
        * The field will be ignored when [output_config] is specified.
        * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
        * Optional. A page token received from previous `QueryAssets`.
        * The field will be ignored when [output_config] is specified.
        * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
        * Optional. A page token received from previous `QueryAssets`.
        * The field will be ignored when [output_config] is specified.
        * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    -   * Optional. Specifies the maximum amount of time that the client is willing
    -   * to wait for the query to complete. By default, this limit is 5 min for the
    -   * first query, and 1 minute for the following queries. If the query is
    -   * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -   * false.
    +   * Optional. Specifies the maximum amount of time that the client is willing to wait
    +   * for the query to complete. By default, this limit is 5 min for the first
    +   * query, and 1 minute for the following queries. If the query is complete,
    +   * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
        * Like BigQuery [jobs.query
        * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
        * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -202,19 +150,15 @@ public interface QueryAssetsRequestOrBuilder
        * 
    * * .google.protobuf.Duration timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return Whether the timeout field is set. */ boolean hasTimeout(); /** - * - * *
    -   * Optional. Specifies the maximum amount of time that the client is willing
    -   * to wait for the query to complete. By default, this limit is 5 min for the
    -   * first query, and 1 minute for the following queries. If the query is
    -   * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -   * false.
    +   * Optional. Specifies the maximum amount of time that the client is willing to wait
    +   * for the query to complete. By default, this limit is 5 min for the first
    +   * query, and 1 minute for the following queries. If the query is complete,
    +   * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
        * Like BigQuery [jobs.query
        * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
        * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -224,19 +168,15 @@ public interface QueryAssetsRequestOrBuilder
        * 
    * * .google.protobuf.Duration timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The timeout. */ com.google.protobuf.Duration getTimeout(); /** - * - * *
    -   * Optional. Specifies the maximum amount of time that the client is willing
    -   * to wait for the query to complete. By default, this limit is 5 min for the
    -   * first query, and 1 minute for the following queries. If the query is
    -   * complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -   * false.
    +   * Optional. Specifies the maximum amount of time that the client is willing to wait
    +   * for the query to complete. By default, this limit is 5 min for the first
    +   * query, and 1 minute for the following queries. If the query is complete,
    +   * the `done` field in the `QueryAssetsResponse` is true, otherwise false.
        * Like BigQuery [jobs.query
        * API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
        * The call is not guaranteed to wait for the specified timeout; it typically
    @@ -250,96 +190,66 @@ public interface QueryAssetsRequestOrBuilder
       com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder();
     
       /**
    -   *
    -   *
        * 
    -   * Optional. [start_time] is required. [start_time] must be less than
    -   * [end_time] Defaults [end_time] to now if [start_time] is set and
    -   * [end_time] isn't. Maximum permitted time range is 7 days.
    +   * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +   * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +   * Maximum permitted time range is 7 days.
        * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the readTimeWindow field is set. */ boolean hasReadTimeWindow(); /** - * - * *
    -   * Optional. [start_time] is required. [start_time] must be less than
    -   * [end_time] Defaults [end_time] to now if [start_time] is set and
    -   * [end_time] isn't. Maximum permitted time range is 7 days.
    +   * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +   * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +   * Maximum permitted time range is 7 days.
        * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The readTimeWindow. */ com.google.cloud.asset.v1.TimeWindow getReadTimeWindow(); /** - * - * *
    -   * Optional. [start_time] is required. [start_time] must be less than
    -   * [end_time] Defaults [end_time] to now if [start_time] is set and
    -   * [end_time] isn't. Maximum permitted time range is 7 days.
    +   * Optional. [start_time] is required. [start_time] must be less than [end_time]
    +   * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +   * Maximum permitted time range is 7 days.
        * 
    * - * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder(); /** - * - * *
    -   * Optional. Queries cloud assets as they appeared at the specified point in
    -   * time.
    +   * Optional. Queries cloud assets as they appeared at the specified point in time.
        * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    -   * Optional. Queries cloud assets as they appeared at the specified point in
    -   * time.
    +   * Optional. Queries cloud assets as they appeared at the specified point in time.
        * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    -   * Optional. Queries cloud assets as they appeared at the specified point in
    -   * time.
    +   * Optional. Queries cloud assets as they appeared at the specified point in time.
        * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** - * - * *
        * Optional. Destination where the query results will be saved.
        * When this field is specified, the query results won't be saved in the
    @@ -350,16 +260,11 @@ public interface QueryAssetsRequestOrBuilder
        * [QueryAssets] API call.
        * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
        * Optional. Destination where the query results will be saved.
        * When this field is specified, the query results won't be saved in the
    @@ -370,16 +275,11 @@ public interface QueryAssetsRequestOrBuilder
        * [QueryAssets] API call.
        * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The outputConfig. */ com.google.cloud.asset.v1.QueryAssetsOutputConfig getOutputConfig(); /** - * - * *
        * Optional. Destination where the query results will be saved.
        * When this field is specified, the query results won't be saved in the
    @@ -390,9 +290,7 @@ public interface QueryAssetsRequestOrBuilder
        * [QueryAssets] API call.
        * 
    * - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder getOutputConfigOrBuilder(); diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponse.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponse.java similarity index 69% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponse.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponse.java index 8fdcc9f9e765..2246639494dc 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponse.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponse.java @@ -1,184 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * QueryAssets response.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.QueryAssetsResponse} */ -public final class QueryAssetsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class QueryAssetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.QueryAssetsResponse) QueryAssetsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use QueryAssetsResponse.newBuilder() to construct. private QueryAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private QueryAssetsResponse() { jobReference_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new QueryAssetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private QueryAssetsResponse( - 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(); - - jobReference_ = s; - break; - } - case 16: - { - done_ = input.readBool(); - break; - } - case 26: - { - com.google.rpc.Status.Builder subBuilder = null; - if (responseCase_ == 3) { - subBuilder = ((com.google.rpc.Status) response_).toBuilder(); - } - response_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.rpc.Status) response_); - response_ = subBuilder.buildPartial(); - } - responseCase_ = 3; - break; - } - case 34: - { - com.google.cloud.asset.v1.QueryResult.Builder subBuilder = null; - if (responseCase_ == 4) { - subBuilder = ((com.google.cloud.asset.v1.QueryResult) response_).toBuilder(); - } - response_ = - input.readMessage( - com.google.cloud.asset.v1.QueryResult.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.asset.v1.QueryResult) response_); - response_ = subBuilder.buildPartial(); - } - responseCase_ = 4; - break; - } - case 42: - { - com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder subBuilder = null; - if (responseCase_ == 5) { - subBuilder = - ((com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_).toBuilder(); - } - response_ = - input.readMessage( - com.google.cloud.asset.v1.QueryAssetsOutputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_); - response_ = subBuilder.buildPartial(); - } - responseCase_ = 5; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_QueryAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_QueryAssetsResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.QueryAssetsResponse.class, - com.google.cloud.asset.v1.QueryAssetsResponse.Builder.class); + com.google.cloud.asset.v1.QueryAssetsResponse.class, com.google.cloud.asset.v1.QueryAssetsResponse.Builder.class); } private int responseCase_ = 0; private java.lang.Object response_; - public enum ResponseCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ERROR(3), QUERY_RESULT(4), OUTPUT_CONFIG(5), RESPONSE_NOT_SET(0); private final int value; - private ResponseCase(int value) { this.value = value; } @@ -194,39 +73,32 @@ public static ResponseCase valueOf(int value) { public static ResponseCase forNumber(int value) { switch (value) { - case 3: - return ERROR; - case 4: - return QUERY_RESULT; - case 5: - return OUTPUT_CONFIG; - case 0: - return RESPONSE_NOT_SET; - default: - return null; + case 3: return ERROR; + case 4: return QUERY_RESULT; + case 5: return OUTPUT_CONFIG; + case 0: return RESPONSE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ResponseCase getResponseCase() { - return ResponseCase.forNumber(responseCase_); + public ResponseCase + getResponseCase() { + return ResponseCase.forNumber( + responseCase_); } public static final int JOB_REFERENCE_FIELD_NUMBER = 1; private volatile java.lang.Object jobReference_; /** - * - * *
        * Reference to a query job.
        * 
    * * string job_reference = 1; - * * @return The jobReference. */ @java.lang.Override @@ -235,29 +107,29 @@ public java.lang.String getJobReference() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobReference_ = s; return s; } } /** - * - * *
        * Reference to a query job.
        * 
    * * string job_reference = 1; - * * @return The bytes for jobReference. */ @java.lang.Override - public com.google.protobuf.ByteString getJobReferenceBytes() { + public com.google.protobuf.ByteString + getJobReferenceBytes() { java.lang.Object ref = jobReference_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); jobReference_ = b; return b; } else { @@ -268,8 +140,6 @@ public com.google.protobuf.ByteString getJobReferenceBytes() { public static final int DONE_FIELD_NUMBER = 2; private boolean done_; /** - * - * *
        * The query response, which can be either an `error` or a valid `response`.
        * If `done` == `false` and the query result is being saved in a output, the
    @@ -279,7 +149,6 @@ public com.google.protobuf.ByteString getJobReferenceBytes() {
        * 
    * * bool done = 2; - * * @return The done. */ @java.lang.Override @@ -289,14 +158,11 @@ public boolean getDone() { public static final int ERROR_FIELD_NUMBER = 3; /** - * - * *
        * Error status.
        * 
    * * .google.rpc.Status error = 3; - * * @return Whether the error field is set. */ @java.lang.Override @@ -304,26 +170,21 @@ public boolean hasError() { return responseCase_ == 3; } /** - * - * *
        * Error status.
        * 
    * * .google.rpc.Status error = 3; - * * @return The error. */ @java.lang.Override public com.google.rpc.Status getError() { if (responseCase_ == 3) { - return (com.google.rpc.Status) response_; + return (com.google.rpc.Status) response_; } return com.google.rpc.Status.getDefaultInstance(); } /** - * - * *
        * Error status.
        * 
    @@ -333,21 +194,18 @@ public com.google.rpc.Status getError() { @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { if (responseCase_ == 3) { - return (com.google.rpc.Status) response_; + return (com.google.rpc.Status) response_; } return com.google.rpc.Status.getDefaultInstance(); } public static final int QUERY_RESULT_FIELD_NUMBER = 4; /** - * - * *
        * Result of the query.
        * 
    * * .google.cloud.asset.v1.QueryResult query_result = 4; - * * @return Whether the queryResult field is set. */ @java.lang.Override @@ -355,26 +213,21 @@ public boolean hasQueryResult() { return responseCase_ == 4; } /** - * - * *
        * Result of the query.
        * 
    * * .google.cloud.asset.v1.QueryResult query_result = 4; - * * @return The queryResult. */ @java.lang.Override public com.google.cloud.asset.v1.QueryResult getQueryResult() { if (responseCase_ == 4) { - return (com.google.cloud.asset.v1.QueryResult) response_; + return (com.google.cloud.asset.v1.QueryResult) response_; } return com.google.cloud.asset.v1.QueryResult.getDefaultInstance(); } /** - * - * *
        * Result of the query.
        * 
    @@ -384,22 +237,19 @@ public com.google.cloud.asset.v1.QueryResult getQueryResult() { @java.lang.Override public com.google.cloud.asset.v1.QueryResultOrBuilder getQueryResultOrBuilder() { if (responseCase_ == 4) { - return (com.google.cloud.asset.v1.QueryResult) response_; + return (com.google.cloud.asset.v1.QueryResult) response_; } return com.google.cloud.asset.v1.QueryResult.getDefaultInstance(); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 5; /** - * - * *
        * Output configuration which indicates instead of being returned in API
        * response on the fly, the query result will be saved in a specific output.
        * 
    * * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5; - * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -407,27 +257,22 @@ public boolean hasOutputConfig() { return responseCase_ == 5; } /** - * - * *
        * Output configuration which indicates instead of being returned in API
        * response on the fly, the query result will be saved in a specific output.
        * 
    * * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5; - * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.asset.v1.QueryAssetsOutputConfig getOutputConfig() { if (responseCase_ == 5) { - return (com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_; + return (com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_; } return com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance(); } /** - * - * *
        * Output configuration which indicates instead of being returned in API
        * response on the fly, the query result will be saved in a specific output.
    @@ -438,13 +283,12 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfig getOutputConfig() {
       @java.lang.Override
       public com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder getOutputConfigOrBuilder() {
         if (responseCase_ == 5) {
    -      return (com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_;
    +       return (com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_;
         }
         return com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance();
       }
     
       private byte memoizedIsInitialized = -1;
    -
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -456,7 +300,8 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output)
    +                      throws java.io.IOException {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobReference_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, jobReference_);
         }
    @@ -472,7 +317,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (responseCase_ == 5) {
           output.writeMessage(5, (com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -485,24 +330,22 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, jobReference_);
         }
         if (done_ != false) {
    -      size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, done_);
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeBoolSize(2, done_);
         }
         if (responseCase_ == 3) {
    -      size +=
    -          com.google.protobuf.CodedOutputStream.computeMessageSize(
    -              3, (com.google.rpc.Status) response_);
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(3, (com.google.rpc.Status) response_);
         }
         if (responseCase_ == 4) {
    -      size +=
    -          com.google.protobuf.CodedOutputStream.computeMessageSize(
    -              4, (com.google.cloud.asset.v1.QueryResult) response_);
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(4, (com.google.cloud.asset.v1.QueryResult) response_);
         }
         if (responseCase_ == 5) {
    -      size +=
    -          com.google.protobuf.CodedOutputStream.computeMessageSize(
    -              5, (com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_);
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(5, (com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -510,31 +353,35 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -      return true;
    +     return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1.QueryAssetsResponse)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1.QueryAssetsResponse other =
    -        (com.google.cloud.asset.v1.QueryAssetsResponse) obj;
    +    com.google.cloud.asset.v1.QueryAssetsResponse other = (com.google.cloud.asset.v1.QueryAssetsResponse) obj;
     
    -    if (!getJobReference().equals(other.getJobReference())) return false;
    -    if (getDone() != other.getDone()) return false;
    +    if (!getJobReference()
    +        .equals(other.getJobReference())) return false;
    +    if (getDone()
    +        != other.getDone()) return false;
         if (!getResponseCase().equals(other.getResponseCase())) return false;
         switch (responseCase_) {
           case 3:
    -        if (!getError().equals(other.getError())) return false;
    +        if (!getError()
    +            .equals(other.getError())) return false;
             break;
           case 4:
    -        if (!getQueryResult().equals(other.getQueryResult())) return false;
    +        if (!getQueryResult()
    +            .equals(other.getQueryResult())) return false;
             break;
           case 5:
    -        if (!getOutputConfig().equals(other.getOutputConfig())) return false;
    +        if (!getOutputConfig()
    +            .equals(other.getOutputConfig())) return false;
             break;
           case 0:
           default:
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -548,7 +395,8 @@ public int hashCode() {
         hash = (37 * hash) + JOB_REFERENCE_FIELD_NUMBER;
         hash = (53 * hash) + getJobReference().hashCode();
         hash = (37 * hash) + DONE_FIELD_NUMBER;
    -    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDone());
    +    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
    +        getDone());
         switch (responseCase_) {
           case 3:
             hash = (37 * hash) + ERROR_FIELD_NUMBER;
    @@ -565,148 +413,135 @@ public int hashCode() {
           case 0:
           default:
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1.QueryAssetsResponse parseFrom(java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1.QueryAssetsResponse parseFrom(
    +      java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.QueryAssetsResponse parseFrom(
    -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.QueryAssetsResponse parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.QueryAssetsResponse 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.asset.v1.QueryAssetsResponse parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.QueryAssetsResponse parseFrom(
    -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.QueryAssetsResponse parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.QueryAssetsResponse parseFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
    -
    -  public static com.google.cloud.asset.v1.QueryAssetsResponse parseDelimitedFrom(
    -      java.io.InputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    +  public static com.google.cloud.asset.v1.QueryAssetsResponse parseDelimitedFrom(java.io.InputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.QueryAssetsResponse parseDelimitedFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.QueryAssetsResponse parseFrom(
    -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.QueryAssetsResponse parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() {
    -    return newBuilder();
    -  }
    -
    +  public Builder newBuilderForType() { return newBuilder(); }
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    -
       public static Builder newBuilder(com.google.cloud.asset.v1.QueryAssetsResponse prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    -
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE
    +        ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(
    +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    -   *
    -   *
        * 
        * QueryAssets response.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.QueryAssetsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.QueryAssetsResponse) com.google.cloud.asset.v1.QueryAssetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_QueryAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_QueryAssetsResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.QueryAssetsResponse.class, - com.google.cloud.asset.v1.QueryAssetsResponse.Builder.class); + com.google.cloud.asset.v1.QueryAssetsResponse.class, com.google.cloud.asset.v1.QueryAssetsResponse.Builder.class); } // Construct using com.google.cloud.asset.v1.QueryAssetsResponse.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -714,15 +549,24 @@ public Builder clear() { done_ = false; + if (errorBuilder_ != null) { + errorBuilder_.clear(); + } + if (queryResultBuilder_ != null) { + queryResultBuilder_.clear(); + } + if (outputConfigBuilder_ != null) { + outputConfigBuilder_.clear(); + } responseCase_ = 0; response_ = null; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_QueryAssetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsResponse_descriptor; } @java.lang.Override @@ -741,8 +585,7 @@ public com.google.cloud.asset.v1.QueryAssetsResponse build() { @java.lang.Override public com.google.cloud.asset.v1.QueryAssetsResponse buildPartial() { - com.google.cloud.asset.v1.QueryAssetsResponse result = - new com.google.cloud.asset.v1.QueryAssetsResponse(this); + com.google.cloud.asset.v1.QueryAssetsResponse result = new com.google.cloud.asset.v1.QueryAssetsResponse(this); result.jobReference_ = jobReference_; result.done_ = done_; if (responseCase_ == 3) { @@ -775,39 +618,38 @@ public com.google.cloud.asset.v1.QueryAssetsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.QueryAssetsResponse) { - return mergeFrom((com.google.cloud.asset.v1.QueryAssetsResponse) other); + return mergeFrom((com.google.cloud.asset.v1.QueryAssetsResponse)other); } else { super.mergeFrom(other); return this; @@ -824,27 +666,23 @@ public Builder mergeFrom(com.google.cloud.asset.v1.QueryAssetsResponse other) { setDone(other.getDone()); } switch (other.getResponseCase()) { - case ERROR: - { - mergeError(other.getError()); - break; - } - case QUERY_RESULT: - { - mergeQueryResult(other.getQueryResult()); - break; - } - case OUTPUT_CONFIG: - { - mergeOutputConfig(other.getOutputConfig()); - break; - } - case RESPONSE_NOT_SET: - { - break; - } + case ERROR: { + mergeError(other.getError()); + break; + } + case QUERY_RESULT: { + mergeQueryResult(other.getQueryResult()); + break; + } + case OUTPUT_CONFIG: { + mergeOutputConfig(other.getOutputConfig()); + break; + } + case RESPONSE_NOT_SET: { + break; + } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -859,25 +697,69 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.QueryAssetsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + jobReference_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + done_ = input.readBool(); + + break; + } // case 16 + case 26: { + input.readMessage( + getErrorFieldBuilder().getBuilder(), + extensionRegistry); + responseCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getQueryResultFieldBuilder().getBuilder(), + extensionRegistry); + responseCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getOutputConfigFieldBuilder().getBuilder(), + extensionRegistry); + responseCase_ = 5; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.QueryAssetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int responseCase_ = 0; private java.lang.Object response_; - - public ResponseCase getResponseCase() { - return ResponseCase.forNumber(responseCase_); + public ResponseCase + getResponseCase() { + return ResponseCase.forNumber( + responseCase_); } public Builder clearResponse() { @@ -887,22 +769,21 @@ public Builder clearResponse() { return this; } + private java.lang.Object jobReference_ = ""; /** - * - * *
          * Reference to a query job.
          * 
    * * string job_reference = 1; - * * @return The jobReference. */ public java.lang.String getJobReference() { java.lang.Object ref = jobReference_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobReference_ = s; return s; @@ -911,21 +792,20 @@ public java.lang.String getJobReference() { } } /** - * - * *
          * Reference to a query job.
          * 
    * * string job_reference = 1; - * * @return The bytes for jobReference. */ - public com.google.protobuf.ByteString getJobReferenceBytes() { + public com.google.protobuf.ByteString + getJobReferenceBytes() { java.lang.Object ref = jobReference_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); jobReference_ = b; return b; } else { @@ -933,70 +813,61 @@ public com.google.protobuf.ByteString getJobReferenceBytes() { } } /** - * - * *
          * Reference to a query job.
          * 
    * * string job_reference = 1; - * * @param value The jobReference to set. * @return This builder for chaining. */ - public Builder setJobReference(java.lang.String value) { + public Builder setJobReference( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + jobReference_ = value; onChanged(); return this; } /** - * - * *
          * Reference to a query job.
          * 
    * * string job_reference = 1; - * * @return This builder for chaining. */ public Builder clearJobReference() { - + jobReference_ = getDefaultInstance().getJobReference(); onChanged(); return this; } /** - * - * *
          * Reference to a query job.
          * 
    * * string job_reference = 1; - * * @param value The bytes for jobReference to set. * @return This builder for chaining. */ - public Builder setJobReferenceBytes(com.google.protobuf.ByteString value) { + public Builder setJobReferenceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jobReference_ = value; onChanged(); return this; } - private boolean done_; + private boolean done_ ; /** - * - * *
          * The query response, which can be either an `error` or a valid `response`.
          * If `done` == `false` and the query result is being saved in a output, the
    @@ -1006,7 +877,6 @@ public Builder setJobReferenceBytes(com.google.protobuf.ByteString value) {
          * 
    * * bool done = 2; - * * @return The done. */ @java.lang.Override @@ -1014,8 +884,6 @@ public boolean getDone() { return done_; } /** - * - * *
          * The query response, which can be either an `error` or a valid `response`.
          * If `done` == `false` and the query result is being saved in a output, the
    @@ -1025,19 +893,16 @@ public boolean getDone() {
          * 
    * * bool done = 2; - * * @param value The done to set. * @return This builder for chaining. */ public Builder setDone(boolean value) { - + done_ = value; onChanged(); return this; } /** - * - * *
          * The query response, which can be either an `error` or a valid `response`.
          * If `done` == `false` and the query result is being saved in a output, the
    @@ -1047,28 +912,23 @@ public Builder setDone(boolean value) {
          * 
    * * bool done = 2; - * * @return This builder for chaining. */ public Builder clearDone() { - + done_ = false; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; /** - * - * *
          * Error status.
          * 
    * * .google.rpc.Status error = 3; - * * @return Whether the error field is set. */ @java.lang.Override @@ -1076,14 +936,11 @@ public boolean hasError() { return responseCase_ == 3; } /** - * - * *
          * Error status.
          * 
    * * .google.rpc.Status error = 3; - * * @return The error. */ @java.lang.Override @@ -1101,8 +958,6 @@ public com.google.rpc.Status getError() { } } /** - * - * *
          * Error status.
          * 
    @@ -1123,15 +978,14 @@ public Builder setError(com.google.rpc.Status value) { return this; } /** - * - * *
          * Error status.
          * 
    * * .google.rpc.Status error = 3; */ - public Builder setError(com.google.rpc.Status.Builder builderForValue) { + public Builder setError( + com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { response_ = builderForValue.build(); onChanged(); @@ -1142,8 +996,6 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
          * Error status.
          * 
    @@ -1152,11 +1004,10 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (responseCase_ == 3 && response_ != com.google.rpc.Status.getDefaultInstance()) { - response_ = - com.google.rpc.Status.newBuilder((com.google.rpc.Status) response_) - .mergeFrom(value) - .buildPartial(); + if (responseCase_ == 3 && + response_ != com.google.rpc.Status.getDefaultInstance()) { + response_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) response_) + .mergeFrom(value).buildPartial(); } else { response_ = value; } @@ -1172,8 +1023,6 @@ public Builder mergeError(com.google.rpc.Status value) { return this; } /** - * - * *
          * Error status.
          * 
    @@ -1197,8 +1046,6 @@ public Builder clearError() { return this; } /** - * - * *
          * Error status.
          * 
    @@ -1209,8 +1056,6 @@ public com.google.rpc.Status.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** - * - * *
          * Error status.
          * 
    @@ -1229,8 +1074,6 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { } } /** - * - * *
          * Error status.
          * 
    @@ -1238,40 +1081,32 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * .google.rpc.Status error = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { if (!(responseCase_ == 3)) { response_ = com.google.rpc.Status.getDefaultInstance(); } - errorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>( - (com.google.rpc.Status) response_, getParentForChildren(), isClean()); + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + (com.google.rpc.Status) response_, + getParentForChildren(), + isClean()); response_ = null; } responseCase_ = 3; - onChanged(); - ; + onChanged();; return errorBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.QueryResult, - com.google.cloud.asset.v1.QueryResult.Builder, - com.google.cloud.asset.v1.QueryResultOrBuilder> - queryResultBuilder_; + com.google.cloud.asset.v1.QueryResult, com.google.cloud.asset.v1.QueryResult.Builder, com.google.cloud.asset.v1.QueryResultOrBuilder> queryResultBuilder_; /** - * - * *
          * Result of the query.
          * 
    * * .google.cloud.asset.v1.QueryResult query_result = 4; - * * @return Whether the queryResult field is set. */ @java.lang.Override @@ -1279,14 +1114,11 @@ public boolean hasQueryResult() { return responseCase_ == 4; } /** - * - * *
          * Result of the query.
          * 
    * * .google.cloud.asset.v1.QueryResult query_result = 4; - * * @return The queryResult. */ @java.lang.Override @@ -1304,8 +1136,6 @@ public com.google.cloud.asset.v1.QueryResult getQueryResult() { } } /** - * - * *
          * Result of the query.
          * 
    @@ -1326,15 +1156,14 @@ public Builder setQueryResult(com.google.cloud.asset.v1.QueryResult value) { return this; } /** - * - * *
          * Result of the query.
          * 
    * * .google.cloud.asset.v1.QueryResult query_result = 4; */ - public Builder setQueryResult(com.google.cloud.asset.v1.QueryResult.Builder builderForValue) { + public Builder setQueryResult( + com.google.cloud.asset.v1.QueryResult.Builder builderForValue) { if (queryResultBuilder_ == null) { response_ = builderForValue.build(); onChanged(); @@ -1345,8 +1174,6 @@ public Builder setQueryResult(com.google.cloud.asset.v1.QueryResult.Builder buil return this; } /** - * - * *
          * Result of the query.
          * 
    @@ -1355,13 +1182,10 @@ public Builder setQueryResult(com.google.cloud.asset.v1.QueryResult.Builder buil */ public Builder mergeQueryResult(com.google.cloud.asset.v1.QueryResult value) { if (queryResultBuilder_ == null) { - if (responseCase_ == 4 - && response_ != com.google.cloud.asset.v1.QueryResult.getDefaultInstance()) { - response_ = - com.google.cloud.asset.v1.QueryResult.newBuilder( - (com.google.cloud.asset.v1.QueryResult) response_) - .mergeFrom(value) - .buildPartial(); + if (responseCase_ == 4 && + response_ != com.google.cloud.asset.v1.QueryResult.getDefaultInstance()) { + response_ = com.google.cloud.asset.v1.QueryResult.newBuilder((com.google.cloud.asset.v1.QueryResult) response_) + .mergeFrom(value).buildPartial(); } else { response_ = value; } @@ -1377,8 +1201,6 @@ public Builder mergeQueryResult(com.google.cloud.asset.v1.QueryResult value) { return this; } /** - * - * *
          * Result of the query.
          * 
    @@ -1402,8 +1224,6 @@ public Builder clearQueryResult() { return this; } /** - * - * *
          * Result of the query.
          * 
    @@ -1414,8 +1234,6 @@ public com.google.cloud.asset.v1.QueryResult.Builder getQueryResultBuilder() { return getQueryResultFieldBuilder().getBuilder(); } /** - * - * *
          * Result of the query.
          * 
    @@ -1434,8 +1252,6 @@ public com.google.cloud.asset.v1.QueryResultOrBuilder getQueryResultOrBuilder() } } /** - * - * *
          * Result of the query.
          * 
    @@ -1443,45 +1259,33 @@ public com.google.cloud.asset.v1.QueryResultOrBuilder getQueryResultOrBuilder() * .google.cloud.asset.v1.QueryResult query_result = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.QueryResult, - com.google.cloud.asset.v1.QueryResult.Builder, - com.google.cloud.asset.v1.QueryResultOrBuilder> + com.google.cloud.asset.v1.QueryResult, com.google.cloud.asset.v1.QueryResult.Builder, com.google.cloud.asset.v1.QueryResultOrBuilder> getQueryResultFieldBuilder() { if (queryResultBuilder_ == null) { if (!(responseCase_ == 4)) { response_ = com.google.cloud.asset.v1.QueryResult.getDefaultInstance(); } - queryResultBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.QueryResult, - com.google.cloud.asset.v1.QueryResult.Builder, - com.google.cloud.asset.v1.QueryResultOrBuilder>( + queryResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.QueryResult, com.google.cloud.asset.v1.QueryResult.Builder, com.google.cloud.asset.v1.QueryResultOrBuilder>( (com.google.cloud.asset.v1.QueryResult) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 4; - onChanged(); - ; + onChanged();; return queryResultBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.QueryAssetsOutputConfig, - com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder, - com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.asset.v1.QueryAssetsOutputConfig, com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder, com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
          * Output configuration which indicates instead of being returned in API
          * response on the fly, the query result will be saved in a specific output.
          * 
    * * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5; - * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -1489,15 +1293,12 @@ public boolean hasOutputConfig() { return responseCase_ == 5; } /** - * - * *
          * Output configuration which indicates instead of being returned in API
          * response on the fly, the query result will be saved in a specific output.
          * 
    * * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5; - * * @return The outputConfig. */ @java.lang.Override @@ -1515,8 +1316,6 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfig getOutputConfig() { } } /** - * - * *
          * Output configuration which indicates instead of being returned in API
          * response on the fly, the query result will be saved in a specific output.
    @@ -1538,8 +1337,6 @@ public Builder setOutputConfig(com.google.cloud.asset.v1.QueryAssetsOutputConfig
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Output configuration which indicates instead of being returned in API
          * response on the fly, the query result will be saved in a specific output.
    @@ -1559,8 +1356,6 @@ public Builder setOutputConfig(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Output configuration which indicates instead of being returned in API
          * response on the fly, the query result will be saved in a specific output.
    @@ -1570,14 +1365,10 @@ public Builder setOutputConfig(
          */
         public Builder mergeOutputConfig(com.google.cloud.asset.v1.QueryAssetsOutputConfig value) {
           if (outputConfigBuilder_ == null) {
    -        if (responseCase_ == 5
    -            && response_
    -                != com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance()) {
    -          response_ =
    -              com.google.cloud.asset.v1.QueryAssetsOutputConfig.newBuilder(
    -                      (com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +        if (responseCase_ == 5 &&
    +            response_ != com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance()) {
    +          response_ = com.google.cloud.asset.v1.QueryAssetsOutputConfig.newBuilder((com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_)
    +              .mergeFrom(value).buildPartial();
             } else {
               response_ = value;
             }
    @@ -1593,8 +1384,6 @@ public Builder mergeOutputConfig(com.google.cloud.asset.v1.QueryAssetsOutputConf
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Output configuration which indicates instead of being returned in API
          * response on the fly, the query result will be saved in a specific output.
    @@ -1619,8 +1408,6 @@ public Builder clearOutputConfig() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Output configuration which indicates instead of being returned in API
          * response on the fly, the query result will be saved in a specific output.
    @@ -1632,8 +1419,6 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder getOutputConfig
           return getOutputConfigFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * Output configuration which indicates instead of being returned in API
          * response on the fly, the query result will be saved in a specific output.
    @@ -1653,8 +1438,6 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder getOutputConfi
           }
         }
         /**
    -     *
    -     *
          * 
          * Output configuration which indicates instead of being returned in API
          * response on the fly, the query result will be saved in a specific output.
    @@ -1663,32 +1446,26 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder getOutputConfi
          * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.QueryAssetsOutputConfig,
    -            com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder,
    -            com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder>
    +        com.google.cloud.asset.v1.QueryAssetsOutputConfig, com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder, com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder> 
             getOutputConfigFieldBuilder() {
           if (outputConfigBuilder_ == null) {
             if (!(responseCase_ == 5)) {
               response_ = com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance();
             }
    -        outputConfigBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.cloud.asset.v1.QueryAssetsOutputConfig,
    -                com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder,
    -                com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder>(
    +        outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.cloud.asset.v1.QueryAssetsOutputConfig, com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder, com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder>(
                     (com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_,
                     getParentForChildren(),
                     isClean());
             response_ = null;
           }
           responseCase_ = 5;
    -      onChanged();
    -      ;
    +      onChanged();;
           return outputConfigBuilder_;
         }
    -
         @java.lang.Override
    -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(
    +        final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -1698,12 +1475,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    +
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.QueryAssetsResponse)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.QueryAssetsResponse)
       private static final com.google.cloud.asset.v1.QueryAssetsResponse DEFAULT_INSTANCE;
    -
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1.QueryAssetsResponse();
       }
    @@ -1712,16 +1489,27 @@ public static com.google.cloud.asset.v1.QueryAssetsResponse getDefaultInstance()
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser PARSER =
    -      new com.google.protobuf.AbstractParser() {
    -        @java.lang.Override
    -        public QueryAssetsResponse parsePartialFrom(
    -            com.google.protobuf.CodedInputStream input,
    -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -            throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new QueryAssetsResponse(input, extensionRegistry);
    -        }
    -      };
    +  private static final com.google.protobuf.Parser
    +      PARSER = new com.google.protobuf.AbstractParser() {
    +    @java.lang.Override
    +    public QueryAssetsResponse parsePartialFrom(
    +        com.google.protobuf.CodedInputStream input,
    +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        throws com.google.protobuf.InvalidProtocolBufferException {
    +      Builder builder = newBuilder();
    +      try {
    +        builder.mergeFrom(input, extensionRegistry);
    +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +        throw e.setUnfinishedMessage(builder.buildPartial());
    +      } catch (com.google.protobuf.UninitializedMessageException e) {
    +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +      } catch (java.io.IOException e) {
    +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +            .setUnfinishedMessage(builder.buildPartial());
    +      }
    +      return builder.buildPartial();
    +    }
    +  };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1736,4 +1524,6 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1.QueryAssetsResponse getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    +
     }
    +
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponseOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponseOrBuilder.java
    similarity index 79%
    rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponseOrBuilder.java
    rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponseOrBuilder.java
    index ea17915a345d..e13d2857eeca 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponseOrBuilder.java
    +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponseOrBuilder.java
    @@ -1,56 +1,33 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
    -public interface QueryAssetsResponseOrBuilder
    -    extends
    +public interface QueryAssetsResponseOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.QueryAssetsResponse)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    -   *
    -   *
        * 
        * Reference to a query job.
        * 
    * * string job_reference = 1; - * * @return The jobReference. */ java.lang.String getJobReference(); /** - * - * *
        * Reference to a query job.
        * 
    * * string job_reference = 1; - * * @return The bytes for jobReference. */ - com.google.protobuf.ByteString getJobReferenceBytes(); + com.google.protobuf.ByteString + getJobReferenceBytes(); /** - * - * *
        * The query response, which can be either an `error` or a valid `response`.
        * If `done` == `false` and the query result is being saved in a output, the
    @@ -60,38 +37,29 @@ public interface QueryAssetsResponseOrBuilder
        * 
    * * bool done = 2; - * * @return The done. */ boolean getDone(); /** - * - * *
        * Error status.
        * 
    * * .google.rpc.Status error = 3; - * * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
        * Error status.
        * 
    * * .google.rpc.Status error = 3; - * * @return The error. */ com.google.rpc.Status getError(); /** - * - * *
        * Error status.
        * 
    @@ -101,32 +69,24 @@ public interface QueryAssetsResponseOrBuilder com.google.rpc.StatusOrBuilder getErrorOrBuilder(); /** - * - * *
        * Result of the query.
        * 
    * * .google.cloud.asset.v1.QueryResult query_result = 4; - * * @return Whether the queryResult field is set. */ boolean hasQueryResult(); /** - * - * *
        * Result of the query.
        * 
    * * .google.cloud.asset.v1.QueryResult query_result = 4; - * * @return The queryResult. */ com.google.cloud.asset.v1.QueryResult getQueryResult(); /** - * - * *
        * Result of the query.
        * 
    @@ -136,34 +96,26 @@ public interface QueryAssetsResponseOrBuilder com.google.cloud.asset.v1.QueryResultOrBuilder getQueryResultOrBuilder(); /** - * - * *
        * Output configuration which indicates instead of being returned in API
        * response on the fly, the query result will be saved in a specific output.
        * 
    * * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5; - * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
        * Output configuration which indicates instead of being returned in API
        * response on the fly, the query result will be saved in a specific output.
        * 
    * * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5; - * * @return The outputConfig. */ com.google.cloud.asset.v1.QueryAssetsOutputConfig getOutputConfig(); /** - * - * *
        * Output configuration which indicates instead of being returned in API
        * response on the fly, the query result will be saved in a specific output.
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResult.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResult.java
    similarity index 68%
    rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResult.java
    rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResult.java
    index c8e98ebadfbd..882ea5f07c44 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResult.java
    +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResult.java
    @@ -1,26 +1,9 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
     /**
    - *
    - *
      * 
      * Execution results of the query.
      * The result is formatted as rows represented by BigQuery compatible [schema].
    @@ -30,16 +13,15 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.QueryResult}
      */
    -public final class QueryResult extends com.google.protobuf.GeneratedMessageV3
    -    implements
    +public final class QueryResult extends
    +    com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.QueryResult)
         QueryResultOrBuilder {
    -  private static final long serialVersionUID = 0L;
    +private static final long serialVersionUID = 0L;
       // Use QueryResult.newBuilder() to construct.
       private QueryResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -
       private QueryResult() {
         rows_ = java.util.Collections.emptyList();
         nextPageToken_ = "";
    @@ -47,115 +29,32 @@ private QueryResult() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(
    +      UnusedPrivateParameter unused) {
         return new QueryResult();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet
    +  getUnknownFields() {
         return this.unknownFields;
       }
    -
    -  private QueryResult(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                rows_ = new java.util.ArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              rows_.add(input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry));
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.cloud.asset.v1.TableSchema.Builder subBuilder = null;
    -              if (schema_ != null) {
    -                subBuilder = schema_.toBuilder();
    -              }
    -              schema_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.TableSchema.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(schema_);
    -                schema_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              nextPageToken_ = s;
    -              break;
    -            }
    -          case 32:
    -            {
    -              totalRows_ = input.readInt64();
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        rows_ = java.util.Collections.unmodifiableList(rows_);
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
    -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetServiceProto
    -        .internal_static_google_cloud_asset_v1_QueryResult_descriptor;
    +  public static final com.google.protobuf.Descriptors.Descriptor
    +      getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryResult_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetServiceProto
    -        .internal_static_google_cloud_asset_v1_QueryResult_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryResult_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1.QueryResult.class,
    -            com.google.cloud.asset.v1.QueryResult.Builder.class);
    +            com.google.cloud.asset.v1.QueryResult.class, com.google.cloud.asset.v1.QueryResult.Builder.class);
       }
     
       public static final int ROWS_FIELD_NUMBER = 1;
       private java.util.List rows_;
       /**
    -   *
    -   *
        * 
        * Each row hold a query result in the format of `Struct`.
        * 
    @@ -167,8 +66,6 @@ public java.util.List getRowsList() { return rows_; } /** - * - * *
        * Each row hold a query result in the format of `Struct`.
        * 
    @@ -176,12 +73,11 @@ public java.util.List getRowsList() { * repeated .google.protobuf.Struct rows = 1; */ @java.lang.Override - public java.util.List getRowsOrBuilderList() { + public java.util.List + getRowsOrBuilderList() { return rows_; } /** - * - * *
        * Each row hold a query result in the format of `Struct`.
        * 
    @@ -193,8 +89,6 @@ public int getRowsCount() { return rows_.size(); } /** - * - * *
        * Each row hold a query result in the format of `Struct`.
        * 
    @@ -206,8 +100,6 @@ public com.google.protobuf.Struct getRows(int index) { return rows_.get(index); } /** - * - * *
        * Each row hold a query result in the format of `Struct`.
        * 
    @@ -215,21 +107,19 @@ public com.google.protobuf.Struct getRows(int index) { * repeated .google.protobuf.Struct rows = 1; */ @java.lang.Override - public com.google.protobuf.StructOrBuilder getRowsOrBuilder(int index) { + public com.google.protobuf.StructOrBuilder getRowsOrBuilder( + int index) { return rows_.get(index); } public static final int SCHEMA_FIELD_NUMBER = 2; private com.google.cloud.asset.v1.TableSchema schema_; /** - * - * *
        * Describes the format of the [rows].
        * 
    * * .google.cloud.asset.v1.TableSchema schema = 2; - * * @return Whether the schema field is set. */ @java.lang.Override @@ -237,14 +127,11 @@ public boolean hasSchema() { return schema_ != null; } /** - * - * *
        * Describes the format of the [rows].
        * 
    * * .google.cloud.asset.v1.TableSchema schema = 2; - * * @return The schema. */ @java.lang.Override @@ -252,8 +139,6 @@ public com.google.cloud.asset.v1.TableSchema getSchema() { return schema_ == null ? com.google.cloud.asset.v1.TableSchema.getDefaultInstance() : schema_; } /** - * - * *
        * Describes the format of the [rows].
        * 
    @@ -268,14 +153,11 @@ public com.google.cloud.asset.v1.TableSchemaOrBuilder getSchemaOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** - * - * *
        * Token to retrieve the next page of the results.
        * 
    * * string next_page_token = 3; - * * @return The nextPageToken. */ @java.lang.Override @@ -284,29 +166,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
        * Token to retrieve the next page of the results.
        * 
    * * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -317,14 +199,11 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_ROWS_FIELD_NUMBER = 4; private long totalRows_; /** - * - * *
        * Total rows of the whole query results.
        * 
    * * int64 total_rows = 4; - * * @return The totalRows. */ @java.lang.Override @@ -333,7 +212,6 @@ public long getTotalRows() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -345,7 +223,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < rows_.size(); i++) { output.writeMessage(1, rows_.get(i)); } @@ -358,7 +237,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (totalRows_ != 0L) { output.writeInt64(4, totalRows_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -368,18 +247,21 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < rows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rows_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, rows_.get(i)); } if (schema_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSchema()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } if (totalRows_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, totalRows_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, totalRows_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -387,21 +269,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.QueryResult)) { return super.equals(obj); } com.google.cloud.asset.v1.QueryResult other = (com.google.cloud.asset.v1.QueryResult) obj; - if (!getRowsList().equals(other.getRowsList())) return false; + if (!getRowsList() + .equals(other.getRowsList())) return false; if (hasSchema() != other.hasSchema()) return false; if (hasSchema()) { - if (!getSchema().equals(other.getSchema())) return false; - } - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (getTotalRows() != other.getTotalRows()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getSchema() + .equals(other.getSchema())) return false; + } + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalRows() + != other.getTotalRows()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -423,109 +309,104 @@ public int hashCode() { hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (37 * hash) + TOTAL_ROWS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalRows()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalRows()); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.QueryResult parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.QueryResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.QueryResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.QueryResult parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.asset.v1.QueryResult parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.QueryResult 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.asset.v1.QueryResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.QueryResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.QueryResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.QueryResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.QueryResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.QueryResult parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.QueryResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.QueryResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.QueryResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Execution results of the query.
        * The result is formatted as rows represented by BigQuery compatible [schema].
    @@ -535,50 +416,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        * Protobuf type {@code google.cloud.asset.v1.QueryResult}
        */
    -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    -      implements
    +  public static final class Builder extends
    +      com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.QueryResult)
           com.google.cloud.asset.v1.QueryResultOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetServiceProto
    -          .internal_static_google_cloud_asset_v1_QueryResult_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor
    +        getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryResult_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetServiceProto
    -          .internal_static_google_cloud_asset_v1_QueryResult_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryResult_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.QueryResult.class,
    -              com.google.cloud.asset.v1.QueryResult.Builder.class);
    +              com.google.cloud.asset.v1.QueryResult.class, com.google.cloud.asset.v1.QueryResult.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.QueryResult.newBuilder()
         private Builder() {
    -      maybeForceBuilderInitialization();
    +
         }
     
    -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(
    +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
     
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getRowsFieldBuilder();
    -      }
         }
    -
         @java.lang.Override
         public Builder clear() {
           super.clear();
           if (rowsBuilder_ == null) {
             rows_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        rows_ = null;
             rowsBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
           if (schemaBuilder_ == null) {
             schema_ = null;
           } else {
    @@ -593,9 +467,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetServiceProto
    -          .internal_static_google_cloud_asset_v1_QueryResult_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor
    +        getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryResult_descriptor;
         }
     
         @java.lang.Override
    @@ -614,8 +488,7 @@ public com.google.cloud.asset.v1.QueryResult build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1.QueryResult buildPartial() {
    -      com.google.cloud.asset.v1.QueryResult result =
    -          new com.google.cloud.asset.v1.QueryResult(this);
    +      com.google.cloud.asset.v1.QueryResult result = new com.google.cloud.asset.v1.QueryResult(this);
           int from_bitField0_ = bitField0_;
           if (rowsBuilder_ == null) {
             if (((bitField0_ & 0x00000001) != 0)) {
    @@ -641,39 +514,38 @@ public com.google.cloud.asset.v1.QueryResult buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    -
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.QueryResult) {
    -        return mergeFrom((com.google.cloud.asset.v1.QueryResult) other);
    +        return mergeFrom((com.google.cloud.asset.v1.QueryResult)other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -700,10 +572,9 @@ public Builder mergeFrom(com.google.cloud.asset.v1.QueryResult other) {
                 rowsBuilder_ = null;
                 rows_ = other.rows_;
                 bitField0_ = (bitField0_ & ~0x00000001);
    -            rowsBuilder_ =
    -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
    -                    ? getRowsFieldBuilder()
    -                    : null;
    +            rowsBuilder_ = 
    +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
    +                 getRowsFieldBuilder() : null;
               } else {
                 rowsBuilder_.addAllMessages(other.rows_);
               }
    @@ -719,7 +590,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.QueryResult other) {
           if (other.getTotalRows() != 0L) {
             setTotalRows(other.getTotalRows());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -734,40 +605,77 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.QueryResult parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10: {
    +              com.google.protobuf.Struct m =
    +                  input.readMessage(
    +                      com.google.protobuf.Struct.parser(),
    +                      extensionRegistry);
    +              if (rowsBuilder_ == null) {
    +                ensureRowsIsMutable();
    +                rows_.add(m);
    +              } else {
    +                rowsBuilder_.addMessage(m);
    +              }
    +              break;
    +            } // case 10
    +            case 18: {
    +              input.readMessage(
    +                  getSchemaFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 18
    +            case 26: {
    +              nextPageToken_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 26
    +            case 32: {
    +              totalRows_ = input.readInt64();
    +
    +              break;
    +            } // case 32
    +            default: {
    +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                done = true; // was an endgroup tag
    +              }
    +              break;
    +            } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1.QueryResult) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
    -
         private int bitField0_;
     
    -    private java.util.List rows_ = java.util.Collections.emptyList();
    -
    +    private java.util.List rows_ =
    +      java.util.Collections.emptyList();
         private void ensureRowsIsMutable() {
           if (!((bitField0_ & 0x00000001) != 0)) {
             rows_ = new java.util.ArrayList(rows_);
             bitField0_ |= 0x00000001;
    -      }
    +       }
         }
     
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.protobuf.Struct,
    -            com.google.protobuf.Struct.Builder,
    -            com.google.protobuf.StructOrBuilder>
    -        rowsBuilder_;
    +        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> rowsBuilder_;
     
         /**
    -     *
    -     *
          * 
          * Each row hold a query result in the format of `Struct`.
          * 
    @@ -782,8 +690,6 @@ public java.util.List getRowsList() { } } /** - * - * *
          * Each row hold a query result in the format of `Struct`.
          * 
    @@ -798,8 +704,6 @@ public int getRowsCount() { } } /** - * - * *
          * Each row hold a query result in the format of `Struct`.
          * 
    @@ -814,15 +718,14 @@ public com.google.protobuf.Struct getRows(int index) { } } /** - * - * *
          * Each row hold a query result in the format of `Struct`.
          * 
    * * repeated .google.protobuf.Struct rows = 1; */ - public Builder setRows(int index, com.google.protobuf.Struct value) { + public Builder setRows( + int index, com.google.protobuf.Struct value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -836,15 +739,14 @@ public Builder setRows(int index, com.google.protobuf.Struct value) { return this; } /** - * - * *
          * Each row hold a query result in the format of `Struct`.
          * 
    * * repeated .google.protobuf.Struct rows = 1; */ - public Builder setRows(int index, com.google.protobuf.Struct.Builder builderForValue) { + public Builder setRows( + int index, com.google.protobuf.Struct.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.set(index, builderForValue.build()); @@ -855,8 +757,6 @@ public Builder setRows(int index, com.google.protobuf.Struct.Builder builderForV return this; } /** - * - * *
          * Each row hold a query result in the format of `Struct`.
          * 
    @@ -877,15 +777,14 @@ public Builder addRows(com.google.protobuf.Struct value) { return this; } /** - * - * *
          * Each row hold a query result in the format of `Struct`.
          * 
    * * repeated .google.protobuf.Struct rows = 1; */ - public Builder addRows(int index, com.google.protobuf.Struct value) { + public Builder addRows( + int index, com.google.protobuf.Struct value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -899,15 +798,14 @@ public Builder addRows(int index, com.google.protobuf.Struct value) { return this; } /** - * - * *
          * Each row hold a query result in the format of `Struct`.
          * 
    * * repeated .google.protobuf.Struct rows = 1; */ - public Builder addRows(com.google.protobuf.Struct.Builder builderForValue) { + public Builder addRows( + com.google.protobuf.Struct.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.add(builderForValue.build()); @@ -918,15 +816,14 @@ public Builder addRows(com.google.protobuf.Struct.Builder builderForValue) { return this; } /** - * - * *
          * Each row hold a query result in the format of `Struct`.
          * 
    * * repeated .google.protobuf.Struct rows = 1; */ - public Builder addRows(int index, com.google.protobuf.Struct.Builder builderForValue) { + public Builder addRows( + int index, com.google.protobuf.Struct.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.add(index, builderForValue.build()); @@ -937,18 +834,18 @@ public Builder addRows(int index, com.google.protobuf.Struct.Builder builderForV return this; } /** - * - * *
          * Each row hold a query result in the format of `Struct`.
          * 
    * * repeated .google.protobuf.Struct rows = 1; */ - public Builder addAllRows(java.lang.Iterable values) { + public Builder addAllRows( + java.lang.Iterable values) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rows_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, rows_); onChanged(); } else { rowsBuilder_.addAllMessages(values); @@ -956,8 +853,6 @@ public Builder addAllRows(java.lang.Iterable * Each row hold a query result in the format of `Struct`. *
    @@ -975,8 +870,6 @@ public Builder clearRows() { return this; } /** - * - * *
          * Each row hold a query result in the format of `Struct`.
          * 
    @@ -994,43 +887,39 @@ public Builder removeRows(int index) { return this; } /** - * - * *
          * Each row hold a query result in the format of `Struct`.
          * 
    * * repeated .google.protobuf.Struct rows = 1; */ - public com.google.protobuf.Struct.Builder getRowsBuilder(int index) { + public com.google.protobuf.Struct.Builder getRowsBuilder( + int index) { return getRowsFieldBuilder().getBuilder(index); } /** - * - * *
          * Each row hold a query result in the format of `Struct`.
          * 
    * * repeated .google.protobuf.Struct rows = 1; */ - public com.google.protobuf.StructOrBuilder getRowsOrBuilder(int index) { + public com.google.protobuf.StructOrBuilder getRowsOrBuilder( + int index) { if (rowsBuilder_ == null) { - return rows_.get(index); - } else { + return rows_.get(index); } else { return rowsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
          * Each row hold a query result in the format of `Struct`.
          * 
    * * repeated .google.protobuf.Struct rows = 1; */ - public java.util.List getRowsOrBuilderList() { + public java.util.List + getRowsOrBuilderList() { if (rowsBuilder_ != null) { return rowsBuilder_.getMessageOrBuilderList(); } else { @@ -1038,8 +927,6 @@ public java.util.List getRowsOrBu } } /** - * - * *
          * Each row hold a query result in the format of `Struct`.
          * 
    @@ -1047,46 +934,42 @@ public java.util.List getRowsOrBu * repeated .google.protobuf.Struct rows = 1; */ public com.google.protobuf.Struct.Builder addRowsBuilder() { - return getRowsFieldBuilder().addBuilder(com.google.protobuf.Struct.getDefaultInstance()); + return getRowsFieldBuilder().addBuilder( + com.google.protobuf.Struct.getDefaultInstance()); } /** - * - * *
          * Each row hold a query result in the format of `Struct`.
          * 
    * * repeated .google.protobuf.Struct rows = 1; */ - public com.google.protobuf.Struct.Builder addRowsBuilder(int index) { - return getRowsFieldBuilder() - .addBuilder(index, com.google.protobuf.Struct.getDefaultInstance()); + public com.google.protobuf.Struct.Builder addRowsBuilder( + int index) { + return getRowsFieldBuilder().addBuilder( + index, com.google.protobuf.Struct.getDefaultInstance()); } /** - * - * *
          * Each row hold a query result in the format of `Struct`.
          * 
    * * repeated .google.protobuf.Struct rows = 1; */ - public java.util.List getRowsBuilderList() { + public java.util.List + getRowsBuilderList() { return getRowsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getRowsFieldBuilder() { if (rowsBuilder_ == null) { - rowsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - rows_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + rows_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); rows_ = null; } return rowsBuilder_; @@ -1094,47 +977,34 @@ public java.util.List getRowsBuilderList() { private com.google.cloud.asset.v1.TableSchema schema_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.TableSchema, - com.google.cloud.asset.v1.TableSchema.Builder, - com.google.cloud.asset.v1.TableSchemaOrBuilder> - schemaBuilder_; + com.google.cloud.asset.v1.TableSchema, com.google.cloud.asset.v1.TableSchema.Builder, com.google.cloud.asset.v1.TableSchemaOrBuilder> schemaBuilder_; /** - * - * *
          * Describes the format of the [rows].
          * 
    * * .google.cloud.asset.v1.TableSchema schema = 2; - * * @return Whether the schema field is set. */ public boolean hasSchema() { return schemaBuilder_ != null || schema_ != null; } /** - * - * *
          * Describes the format of the [rows].
          * 
    * * .google.cloud.asset.v1.TableSchema schema = 2; - * * @return The schema. */ public com.google.cloud.asset.v1.TableSchema getSchema() { if (schemaBuilder_ == null) { - return schema_ == null - ? com.google.cloud.asset.v1.TableSchema.getDefaultInstance() - : schema_; + return schema_ == null ? com.google.cloud.asset.v1.TableSchema.getDefaultInstance() : schema_; } else { return schemaBuilder_.getMessage(); } } /** - * - * *
          * Describes the format of the [rows].
          * 
    @@ -1155,15 +1025,14 @@ public Builder setSchema(com.google.cloud.asset.v1.TableSchema value) { return this; } /** - * - * *
          * Describes the format of the [rows].
          * 
    * * .google.cloud.asset.v1.TableSchema schema = 2; */ - public Builder setSchema(com.google.cloud.asset.v1.TableSchema.Builder builderForValue) { + public Builder setSchema( + com.google.cloud.asset.v1.TableSchema.Builder builderForValue) { if (schemaBuilder_ == null) { schema_ = builderForValue.build(); onChanged(); @@ -1174,8 +1043,6 @@ public Builder setSchema(com.google.cloud.asset.v1.TableSchema.Builder builderFo return this; } /** - * - * *
          * Describes the format of the [rows].
          * 
    @@ -1186,9 +1053,7 @@ public Builder mergeSchema(com.google.cloud.asset.v1.TableSchema value) { if (schemaBuilder_ == null) { if (schema_ != null) { schema_ = - com.google.cloud.asset.v1.TableSchema.newBuilder(schema_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.TableSchema.newBuilder(schema_).mergeFrom(value).buildPartial(); } else { schema_ = value; } @@ -1200,8 +1065,6 @@ public Builder mergeSchema(com.google.cloud.asset.v1.TableSchema value) { return this; } /** - * - * *
          * Describes the format of the [rows].
          * 
    @@ -1220,8 +1083,6 @@ public Builder clearSchema() { return this; } /** - * - * *
          * Describes the format of the [rows].
          * 
    @@ -1229,13 +1090,11 @@ public Builder clearSchema() { * .google.cloud.asset.v1.TableSchema schema = 2; */ public com.google.cloud.asset.v1.TableSchema.Builder getSchemaBuilder() { - + onChanged(); return getSchemaFieldBuilder().getBuilder(); } /** - * - * *
          * Describes the format of the [rows].
          * 
    @@ -1246,14 +1105,11 @@ public com.google.cloud.asset.v1.TableSchemaOrBuilder getSchemaOrBuilder() { if (schemaBuilder_ != null) { return schemaBuilder_.getMessageOrBuilder(); } else { - return schema_ == null - ? com.google.cloud.asset.v1.TableSchema.getDefaultInstance() - : schema_; + return schema_ == null ? + com.google.cloud.asset.v1.TableSchema.getDefaultInstance() : schema_; } } /** - * - * *
          * Describes the format of the [rows].
          * 
    @@ -1261,17 +1117,14 @@ public com.google.cloud.asset.v1.TableSchemaOrBuilder getSchemaOrBuilder() { * .google.cloud.asset.v1.TableSchema schema = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.TableSchema, - com.google.cloud.asset.v1.TableSchema.Builder, - com.google.cloud.asset.v1.TableSchemaOrBuilder> + com.google.cloud.asset.v1.TableSchema, com.google.cloud.asset.v1.TableSchema.Builder, com.google.cloud.asset.v1.TableSchemaOrBuilder> getSchemaFieldBuilder() { if (schemaBuilder_ == null) { - schemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.TableSchema, - com.google.cloud.asset.v1.TableSchema.Builder, - com.google.cloud.asset.v1.TableSchemaOrBuilder>( - getSchema(), getParentForChildren(), isClean()); + schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.TableSchema, com.google.cloud.asset.v1.TableSchema.Builder, com.google.cloud.asset.v1.TableSchemaOrBuilder>( + getSchema(), + getParentForChildren(), + isClean()); schema_ = null; } return schemaBuilder_; @@ -1279,20 +1132,18 @@ public com.google.cloud.asset.v1.TableSchemaOrBuilder getSchemaOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** - * - * *
          * Token to retrieve the next page of the results.
          * 
    * * string next_page_token = 3; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1301,21 +1152,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
          * Token to retrieve the next page of the results.
          * 
    * * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1323,76 +1173,66 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
          * Token to retrieve the next page of the results.
          * 
    * * string next_page_token = 3; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
          * Token to retrieve the next page of the results.
          * 
    * * string next_page_token = 3; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
          * Token to retrieve the next page of the results.
          * 
    * * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private long totalRows_; + private long totalRows_ ; /** - * - * *
          * Total rows of the whole query results.
          * 
    * * int64 total_rows = 4; - * * @return The totalRows. */ @java.lang.Override @@ -1400,43 +1240,37 @@ public long getTotalRows() { return totalRows_; } /** - * - * *
          * Total rows of the whole query results.
          * 
    * * int64 total_rows = 4; - * * @param value The totalRows to set. * @return This builder for chaining. */ public Builder setTotalRows(long value) { - + totalRows_ = value; onChanged(); return this; } /** - * - * *
          * Total rows of the whole query results.
          * 
    * * int64 total_rows = 4; - * * @return This builder for chaining. */ public Builder clearTotalRows() { - + totalRows_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1446,12 +1280,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.QueryResult) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.QueryResult) private static final com.google.cloud.asset.v1.QueryResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.QueryResult(); } @@ -1460,16 +1294,27 @@ public static com.google.cloud.asset.v1.QueryResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1484,4 +1329,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.QueryResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResultOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResultOrBuilder.java similarity index 71% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResultOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResultOrBuilder.java index dd583f8df19f..a811e4bcb818 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResultOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResultOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface QueryResultOrBuilder - extends +public interface QueryResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.QueryResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Each row hold a query result in the format of `Struct`.
        * 
    * * repeated .google.protobuf.Struct rows = 1; */ - java.util.List getRowsList(); + java.util.List + getRowsList(); /** - * - * *
        * Each row hold a query result in the format of `Struct`.
        * 
    @@ -44,8 +25,6 @@ public interface QueryResultOrBuilder */ com.google.protobuf.Struct getRows(int index); /** - * - * *
        * Each row hold a query result in the format of `Struct`.
        * 
    @@ -54,53 +33,43 @@ public interface QueryResultOrBuilder */ int getRowsCount(); /** - * - * *
        * Each row hold a query result in the format of `Struct`.
        * 
    * * repeated .google.protobuf.Struct rows = 1; */ - java.util.List getRowsOrBuilderList(); + java.util.List + getRowsOrBuilderList(); /** - * - * *
        * Each row hold a query result in the format of `Struct`.
        * 
    * * repeated .google.protobuf.Struct rows = 1; */ - com.google.protobuf.StructOrBuilder getRowsOrBuilder(int index); + com.google.protobuf.StructOrBuilder getRowsOrBuilder( + int index); /** - * - * *
        * Describes the format of the [rows].
        * 
    * * .google.cloud.asset.v1.TableSchema schema = 2; - * * @return Whether the schema field is set. */ boolean hasSchema(); /** - * - * *
        * Describes the format of the [rows].
        * 
    * * .google.cloud.asset.v1.TableSchema schema = 2; - * * @return The schema. */ com.google.cloud.asset.v1.TableSchema getSchema(); /** - * - * *
        * Describes the format of the [rows].
        * 
    @@ -110,39 +79,31 @@ public interface QueryResultOrBuilder com.google.cloud.asset.v1.TableSchemaOrBuilder getSchemaOrBuilder(); /** - * - * *
        * Token to retrieve the next page of the results.
        * 
    * * string next_page_token = 3; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
        * Token to retrieve the next page of the results.
        * 
    * * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
        * Total rows of the whole query results.
        * 
    * * int64 total_rows = 4; - * * @return The totalRows. */ long getTotalRows(); diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAsset.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAsset.java similarity index 73% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAsset.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAsset.java index 845b44c83ba4..1286059df5bb 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAsset.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAsset.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** - * - * *
      * An asset identifier in Google Cloud which contains its name, type and
      * ancestors. An asset can be any resource in the Google Cloud [resource
    @@ -34,16 +17,15 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.RelatedAsset}
      */
    -public final class RelatedAsset extends com.google.protobuf.GeneratedMessageV3
    -    implements
    +public final class RelatedAsset extends
    +    com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.RelatedAsset)
         RelatedAssetOrBuilder {
    -  private static final long serialVersionUID = 0L;
    +private static final long serialVersionUID = 0L;
       // Use RelatedAsset.newBuilder() to construct.
       private RelatedAsset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -
       private RelatedAsset() {
         asset_ = "";
         assetType_ = "";
    @@ -53,109 +35,32 @@ private RelatedAsset() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(
    +      UnusedPrivateParameter unused) {
         return new RelatedAsset();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet
    +  getUnknownFields() {
         return this.unknownFields;
       }
    -
    -  private RelatedAsset(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              asset_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              assetType_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                ancestors_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              ancestors_.add(s);
    -              break;
    -            }
    -          case 34:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              relationshipType_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        ancestors_ = ancestors_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
    -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetProto
    -        .internal_static_google_cloud_asset_v1_RelatedAsset_descriptor;
    +  public static final com.google.protobuf.Descriptors.Descriptor
    +      getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedAsset_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetProto
    -        .internal_static_google_cloud_asset_v1_RelatedAsset_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedAsset_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1.RelatedAsset.class,
    -            com.google.cloud.asset.v1.RelatedAsset.Builder.class);
    +            com.google.cloud.asset.v1.RelatedAsset.class, com.google.cloud.asset.v1.RelatedAsset.Builder.class);
       }
     
       public static final int ASSET_FIELD_NUMBER = 1;
       private volatile java.lang.Object asset_;
       /**
    -   *
    -   *
        * 
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -165,7 +70,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } - * * @return The asset. */ @java.lang.Override @@ -174,15 +78,14 @@ public java.lang.String getAsset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); asset_ = s; return s; } } /** - * - * *
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -192,15 +95,16 @@ public java.lang.String getAsset() {
        * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for asset. */ @java.lang.Override - public com.google.protobuf.ByteString getAssetBytes() { + public com.google.protobuf.ByteString + getAssetBytes() { java.lang.Object ref = asset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); asset_ = b; return b; } else { @@ -211,8 +115,6 @@ public com.google.protobuf.ByteString getAssetBytes() { public static final int ASSET_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object assetType_; /** - * - * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -221,7 +123,6 @@ public com.google.protobuf.ByteString getAssetBytes() {
        * 
    * * string asset_type = 2; - * * @return The assetType. */ @java.lang.Override @@ -230,15 +131,14 @@ public java.lang.String getAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; } } /** - * - * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -247,15 +147,16 @@ public java.lang.String getAssetType() {
        * 
    * * string asset_type = 2; - * * @return The bytes for assetType. */ @java.lang.Override - public com.google.protobuf.ByteString getAssetTypeBytes() { + public com.google.protobuf.ByteString + getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetType_ = b; return b; } else { @@ -266,8 +167,6 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { public static final int ANCESTORS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList ancestors_; /** - * - * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -277,15 +176,13 @@ public com.google.protobuf.ByteString getAssetTypeBytes() {
        * 
    * * repeated string ancestors = 3; - * * @return A list containing the ancestors. */ - public com.google.protobuf.ProtocolStringList getAncestorsList() { + public com.google.protobuf.ProtocolStringList + getAncestorsList() { return ancestors_; } /** - * - * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -295,15 +192,12 @@ public com.google.protobuf.ProtocolStringList getAncestorsList() {
        * 
    * * repeated string ancestors = 3; - * * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); } /** - * - * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -313,7 +207,6 @@ public int getAncestorsCount() {
        * 
    * * repeated string ancestors = 3; - * * @param index The index of the element to return. * @return The ancestors at the given index. */ @@ -321,8 +214,6 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** - * - * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -332,26 +223,23 @@ public java.lang.String getAncestors(int index) {
        * 
    * * repeated string ancestors = 3; - * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - public com.google.protobuf.ByteString getAncestorsBytes(int index) { + public com.google.protobuf.ByteString + getAncestorsBytes(int index) { return ancestors_.getByteString(index); } public static final int RELATIONSHIP_TYPE_FIELD_NUMBER = 4; private volatile java.lang.Object relationshipType_; /** - * - * *
        * The unique identifier of the relationship type. Example:
        * `INSTANCE_TO_INSTANCEGROUP`
        * 
    * * string relationship_type = 4; - * * @return The relationshipType. */ @java.lang.Override @@ -360,30 +248,30 @@ public java.lang.String getRelationshipType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); relationshipType_ = s; return s; } } /** - * - * *
        * The unique identifier of the relationship type. Example:
        * `INSTANCE_TO_INSTANCEGROUP`
        * 
    * * string relationship_type = 4; - * * @return The bytes for relationshipType. */ @java.lang.Override - public com.google.protobuf.ByteString getRelationshipTypeBytes() { + public com.google.protobuf.ByteString + getRelationshipTypeBytes() { java.lang.Object ref = relationshipType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); relationshipType_ = b; return b; } else { @@ -392,7 +280,6 @@ public com.google.protobuf.ByteString getRelationshipTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -404,7 +291,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(asset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, asset_); } @@ -417,7 +305,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relationshipType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, relationshipType_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -443,7 +331,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relationshipType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, relationshipType_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -451,18 +339,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.RelatedAsset)) { return super.equals(obj); } com.google.cloud.asset.v1.RelatedAsset other = (com.google.cloud.asset.v1.RelatedAsset) obj; - if (!getAsset().equals(other.getAsset())) return false; - if (!getAssetType().equals(other.getAssetType())) return false; - if (!getAncestorsList().equals(other.getAncestorsList())) return false; - if (!getRelationshipType().equals(other.getRelationshipType())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getAsset() + .equals(other.getAsset())) return false; + if (!getAssetType() + .equals(other.getAssetType())) return false; + if (!getAncestorsList() + .equals(other.getAncestorsList())) return false; + if (!getRelationshipType() + .equals(other.getRelationshipType())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -483,109 +375,102 @@ public int hashCode() { } hash = (37 * hash) + RELATIONSHIP_TYPE_FIELD_NUMBER; hash = (53 * hash) + getRelationshipType().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.RelatedAsset parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.RelatedAsset parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.RelatedAsset parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.RelatedAsset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.RelatedAsset 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.asset.v1.RelatedAsset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.RelatedAsset parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.RelatedAsset parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.RelatedAsset parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.RelatedAsset parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.RelatedAsset parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.RelatedAsset parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.RelatedAsset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.RelatedAsset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * An asset identifier in Google Cloud which contains its name, type and
        * ancestors. An asset can be any resource in the Google Cloud [resource
    @@ -599,39 +484,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        * Protobuf type {@code google.cloud.asset.v1.RelatedAsset}
        */
    -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    -      implements
    +  public static final class Builder extends
    +      com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.RelatedAsset)
           com.google.cloud.asset.v1.RelatedAssetOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_RelatedAsset_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor
    +        getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedAsset_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_RelatedAsset_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedAsset_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.RelatedAsset.class,
    -              com.google.cloud.asset.v1.RelatedAsset.Builder.class);
    +              com.google.cloud.asset.v1.RelatedAsset.class, com.google.cloud.asset.v1.RelatedAsset.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.RelatedAsset.newBuilder()
         private Builder() {
    -      maybeForceBuilderInitialization();
    +
         }
     
    -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    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();
    @@ -647,9 +526,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_RelatedAsset_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor
    +        getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedAsset_descriptor;
         }
     
         @java.lang.Override
    @@ -668,8 +547,7 @@ public com.google.cloud.asset.v1.RelatedAsset build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1.RelatedAsset buildPartial() {
    -      com.google.cloud.asset.v1.RelatedAsset result =
    -          new com.google.cloud.asset.v1.RelatedAsset(this);
    +      com.google.cloud.asset.v1.RelatedAsset result = new com.google.cloud.asset.v1.RelatedAsset(this);
           int from_bitField0_ = bitField0_;
           result.asset_ = asset_;
           result.assetType_ = assetType_;
    @@ -687,39 +565,38 @@ public com.google.cloud.asset.v1.RelatedAsset buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    -
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.RelatedAsset) {
    -        return mergeFrom((com.google.cloud.asset.v1.RelatedAsset) other);
    +        return mergeFrom((com.google.cloud.asset.v1.RelatedAsset)other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -750,7 +627,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.RelatedAsset other) {
             relationshipType_ = other.relationshipType_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -765,26 +642,57 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.RelatedAsset parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10: {
    +              asset_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 10
    +            case 18: {
    +              assetType_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 18
    +            case 26: {
    +              java.lang.String s = input.readStringRequireUtf8();
    +              ensureAncestorsIsMutable();
    +              ancestors_.add(s);
    +              break;
    +            } // case 26
    +            case 34: {
    +              relationshipType_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 34
    +            default: {
    +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                done = true; // was an endgroup tag
    +              }
    +              break;
    +            } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1.RelatedAsset) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
    -
         private int bitField0_;
     
         private java.lang.Object asset_ = "";
         /**
    -     *
    -     *
          * 
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -794,13 +702,13 @@ public Builder mergeFrom(
          * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } - * * @return The asset. */ public java.lang.String getAsset() { java.lang.Object ref = asset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); asset_ = s; return s; @@ -809,8 +717,6 @@ public java.lang.String getAsset() { } } /** - * - * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -820,14 +726,15 @@ public java.lang.String getAsset() {
          * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for asset. */ - public com.google.protobuf.ByteString getAssetBytes() { + public com.google.protobuf.ByteString + getAssetBytes() { java.lang.Object ref = asset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); asset_ = b; return b; } else { @@ -835,8 +742,6 @@ public com.google.protobuf.ByteString getAssetBytes() { } } /** - * - * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -846,22 +751,20 @@ public com.google.protobuf.ByteString getAssetBytes() {
          * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } - * * @param value The asset to set. * @return This builder for chaining. */ - public Builder setAsset(java.lang.String value) { + public Builder setAsset( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + asset_ = value; onChanged(); return this; } /** - * - * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -871,18 +774,15 @@ public Builder setAsset(java.lang.String value) {
          * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearAsset() { - + asset_ = getDefaultInstance().getAsset(); onChanged(); return this; } /** - * - * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -892,16 +792,16 @@ public Builder clearAsset() {
          * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for asset to set. * @return This builder for chaining. */ - public Builder setAssetBytes(com.google.protobuf.ByteString value) { + public Builder setAssetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + asset_ = value; onChanged(); return this; @@ -909,8 +809,6 @@ public Builder setAssetBytes(com.google.protobuf.ByteString value) { private java.lang.Object assetType_ = ""; /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -919,13 +817,13 @@ public Builder setAssetBytes(com.google.protobuf.ByteString value) {
          * 
    * * string asset_type = 2; - * * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; @@ -934,8 +832,6 @@ public java.lang.String getAssetType() { } } /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -944,14 +840,15 @@ public java.lang.String getAssetType() {
          * 
    * * string asset_type = 2; - * * @return The bytes for assetType. */ - public com.google.protobuf.ByteString getAssetTypeBytes() { + public com.google.protobuf.ByteString + getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetType_ = b; return b; } else { @@ -959,8 +856,6 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { } } /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -969,22 +864,20 @@ public com.google.protobuf.ByteString getAssetTypeBytes() {
          * 
    * * string asset_type = 2; - * * @param value The assetType to set. * @return This builder for chaining. */ - public Builder setAssetType(java.lang.String value) { + public Builder setAssetType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + assetType_ = value; onChanged(); return this; } /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -993,18 +886,15 @@ public Builder setAssetType(java.lang.String value) {
          * 
    * * string asset_type = 2; - * * @return This builder for chaining. */ public Builder clearAssetType() { - + assetType_ = getDefaultInstance().getAssetType(); onChanged(); return this; } /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -1013,33 +903,29 @@ public Builder clearAssetType() {
          * 
    * * string asset_type = 2; - * * @param value The bytes for assetType to set. * @return This builder for chaining. */ - public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { + public Builder setAssetTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList ancestors_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAncestorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ancestors_ = new com.google.protobuf.LazyStringArrayList(ancestors_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1049,15 +935,13 @@ private void ensureAncestorsIsMutable() {
          * 
    * * repeated string ancestors = 3; - * * @return A list containing the ancestors. */ - public com.google.protobuf.ProtocolStringList getAncestorsList() { + public com.google.protobuf.ProtocolStringList + getAncestorsList() { return ancestors_.getUnmodifiableView(); } /** - * - * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1067,15 +951,12 @@ public com.google.protobuf.ProtocolStringList getAncestorsList() {
          * 
    * * repeated string ancestors = 3; - * * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); } /** - * - * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1085,7 +966,6 @@ public int getAncestorsCount() {
          * 
    * * repeated string ancestors = 3; - * * @param index The index of the element to return. * @return The ancestors at the given index. */ @@ -1093,8 +973,6 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** - * - * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1104,16 +982,14 @@ public java.lang.String getAncestors(int index) {
          * 
    * * repeated string ancestors = 3; - * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - public com.google.protobuf.ByteString getAncestorsBytes(int index) { + public com.google.protobuf.ByteString + getAncestorsBytes(int index) { return ancestors_.getByteString(index); } /** - * - * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1123,23 +999,21 @@ public com.google.protobuf.ByteString getAncestorsBytes(int index) {
          * 
    * * repeated string ancestors = 3; - * * @param index The index to set the value at. * @param value The ancestors to set. * @return This builder for chaining. */ - public Builder setAncestors(int index, java.lang.String value) { + public Builder setAncestors( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAncestorsIsMutable(); + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); ancestors_.set(index, value); onChanged(); return this; } /** - * - * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1149,22 +1023,20 @@ public Builder setAncestors(int index, java.lang.String value) {
          * 
    * * repeated string ancestors = 3; - * * @param value The ancestors to add. * @return This builder for chaining. */ - public Builder addAncestors(java.lang.String value) { + public Builder addAncestors( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAncestorsIsMutable(); + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); return this; } /** - * - * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1174,19 +1046,18 @@ public Builder addAncestors(java.lang.String value) {
          * 
    * * repeated string ancestors = 3; - * * @param values The ancestors to add. * @return This builder for chaining. */ - public Builder addAllAncestors(java.lang.Iterable values) { + public Builder addAllAncestors( + java.lang.Iterable values) { ensureAncestorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ancestors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ancestors_); onChanged(); return this; } /** - * - * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1196,7 +1067,6 @@ public Builder addAllAncestors(java.lang.Iterable values) {
          * 
    * * repeated string ancestors = 3; - * * @return This builder for chaining. */ public Builder clearAncestors() { @@ -1206,8 +1076,6 @@ public Builder clearAncestors() { return this; } /** - * - * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1217,15 +1085,15 @@ public Builder clearAncestors() {
          * 
    * * repeated string ancestors = 3; - * * @param value The bytes of the ancestors to add. * @return This builder for chaining. */ - public Builder addAncestorsBytes(com.google.protobuf.ByteString value) { + public Builder addAncestorsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); @@ -1234,21 +1102,19 @@ public Builder addAncestorsBytes(com.google.protobuf.ByteString value) { private java.lang.Object relationshipType_ = ""; /** - * - * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string relationship_type = 4; - * * @return The relationshipType. */ public java.lang.String getRelationshipType() { java.lang.Object ref = relationshipType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); relationshipType_ = s; return s; @@ -1257,22 +1123,21 @@ public java.lang.String getRelationshipType() { } } /** - * - * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string relationship_type = 4; - * * @return The bytes for relationshipType. */ - public com.google.protobuf.ByteString getRelationshipTypeBytes() { + public com.google.protobuf.ByteString + getRelationshipTypeBytes() { java.lang.Object ref = relationshipType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); relationshipType_ = b; return b; } else { @@ -1280,71 +1145,64 @@ public com.google.protobuf.ByteString getRelationshipTypeBytes() { } } /** - * - * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string relationship_type = 4; - * * @param value The relationshipType to set. * @return This builder for chaining. */ - public Builder setRelationshipType(java.lang.String value) { + public Builder setRelationshipType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + relationshipType_ = value; onChanged(); return this; } /** - * - * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string relationship_type = 4; - * * @return This builder for chaining. */ public Builder clearRelationshipType() { - + relationshipType_ = getDefaultInstance().getRelationshipType(); onChanged(); return this; } /** - * - * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string relationship_type = 4; - * * @param value The bytes for relationshipType to set. * @return This builder for chaining. */ - public Builder setRelationshipTypeBytes(com.google.protobuf.ByteString value) { + public Builder setRelationshipTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + relationshipType_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1354,12 +1212,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.RelatedAsset) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.RelatedAsset) private static final com.google.cloud.asset.v1.RelatedAsset DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.RelatedAsset(); } @@ -1368,16 +1226,27 @@ public static com.google.cloud.asset.v1.RelatedAsset getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RelatedAsset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RelatedAsset(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelatedAsset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1392,4 +1261,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.RelatedAsset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetOrBuilder.java similarity index 80% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetOrBuilder.java index dc568a1f8408..da36685963fd 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; -public interface RelatedAssetOrBuilder - extends +public interface RelatedAssetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.RelatedAsset) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -35,13 +17,10 @@ public interface RelatedAssetOrBuilder
        * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } - * * @return The asset. */ java.lang.String getAsset(); /** - * - * *
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -51,14 +30,12 @@ public interface RelatedAssetOrBuilder
        * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for asset. */ - com.google.protobuf.ByteString getAssetBytes(); + com.google.protobuf.ByteString + getAssetBytes(); /** - * - * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -67,13 +44,10 @@ public interface RelatedAssetOrBuilder
        * 
    * * string asset_type = 2; - * * @return The assetType. */ java.lang.String getAssetType(); /** - * - * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -82,14 +56,12 @@ public interface RelatedAssetOrBuilder
        * 
    * * string asset_type = 2; - * * @return The bytes for assetType. */ - com.google.protobuf.ByteString getAssetTypeBytes(); + com.google.protobuf.ByteString + getAssetTypeBytes(); /** - * - * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -99,13 +71,11 @@ public interface RelatedAssetOrBuilder
        * 
    * * repeated string ancestors = 3; - * * @return A list containing the ancestors. */ - java.util.List getAncestorsList(); + java.util.List + getAncestorsList(); /** - * - * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -115,13 +85,10 @@ public interface RelatedAssetOrBuilder
        * 
    * * repeated string ancestors = 3; - * * @return The count of ancestors. */ int getAncestorsCount(); /** - * - * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -131,14 +98,11 @@ public interface RelatedAssetOrBuilder
        * 
    * * repeated string ancestors = 3; - * * @param index The index of the element to return. * @return The ancestors at the given index. */ java.lang.String getAncestors(int index); /** - * - * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -148,36 +112,31 @@ public interface RelatedAssetOrBuilder
        * 
    * * repeated string ancestors = 3; - * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - com.google.protobuf.ByteString getAncestorsBytes(int index); + com.google.protobuf.ByteString + getAncestorsBytes(int index); /** - * - * *
        * The unique identifier of the relationship type. Example:
        * `INSTANCE_TO_INSTANCEGROUP`
        * 
    * * string relationship_type = 4; - * * @return The relationshipType. */ java.lang.String getRelationshipType(); /** - * - * *
        * The unique identifier of the relationship type. Example:
        * `INSTANCE_TO_INSTANCEGROUP`
        * 
    * * string relationship_type = 4; - * * @return The bytes for relationshipType. */ - com.google.protobuf.ByteString getRelationshipTypeBytes(); + com.google.protobuf.ByteString + getRelationshipTypeBytes(); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssets.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssets.java similarity index 68% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssets.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssets.java index ed2646fbd2e8..543a27588570 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssets.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssets.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** - * - * *
      * DEPRECATED. This message only presents for the purpose of
      * backward-compatibility. The server will never populate this message in
    @@ -30,128 +13,52 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.RelatedAssets}
      */
    -@java.lang.Deprecated
    -public final class RelatedAssets extends com.google.protobuf.GeneratedMessageV3
    -    implements
    +@java.lang.Deprecated public final class RelatedAssets extends
    +    com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.RelatedAssets)
         RelatedAssetsOrBuilder {
    -  private static final long serialVersionUID = 0L;
    +private static final long serialVersionUID = 0L;
       // Use RelatedAssets.newBuilder() to construct.
       private RelatedAssets(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -
       private RelatedAssets() {
         assets_ = java.util.Collections.emptyList();
       }
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(
    +      UnusedPrivateParameter unused) {
         return new RelatedAssets();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet
    +  getUnknownFields() {
         return this.unknownFields;
       }
    -
    -  private RelatedAssets(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              com.google.cloud.asset.v1.RelationshipAttributes.Builder subBuilder = null;
    -              if (relationshipAttributes_ != null) {
    -                subBuilder = relationshipAttributes_.toBuilder();
    -              }
    -              relationshipAttributes_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.RelationshipAttributes.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(relationshipAttributes_);
    -                relationshipAttributes_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 18:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                assets_ = new java.util.ArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              assets_.add(
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.RelatedAsset.parser(), extensionRegistry));
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        assets_ = java.util.Collections.unmodifiableList(assets_);
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
    -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetProto
    -        .internal_static_google_cloud_asset_v1_RelatedAssets_descriptor;
    +  public static final com.google.protobuf.Descriptors.Descriptor
    +      getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedAssets_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetProto
    -        .internal_static_google_cloud_asset_v1_RelatedAssets_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedAssets_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1.RelatedAssets.class,
    -            com.google.cloud.asset.v1.RelatedAssets.Builder.class);
    +            com.google.cloud.asset.v1.RelatedAssets.class, com.google.cloud.asset.v1.RelatedAssets.Builder.class);
       }
     
       public static final int RELATIONSHIP_ATTRIBUTES_FIELD_NUMBER = 1;
       private com.google.cloud.asset.v1.RelationshipAttributes relationshipAttributes_;
       /**
    -   *
    -   *
        * 
        * The detailed relationship attributes.
        * 
    * * .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; - * * @return Whether the relationshipAttributes field is set. */ @java.lang.Override @@ -159,25 +66,18 @@ public boolean hasRelationshipAttributes() { return relationshipAttributes_ != null; } /** - * - * *
        * The detailed relationship attributes.
        * 
    * * .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; - * * @return The relationshipAttributes. */ @java.lang.Override public com.google.cloud.asset.v1.RelationshipAttributes getRelationshipAttributes() { - return relationshipAttributes_ == null - ? com.google.cloud.asset.v1.RelationshipAttributes.getDefaultInstance() - : relationshipAttributes_; + return relationshipAttributes_ == null ? com.google.cloud.asset.v1.RelationshipAttributes.getDefaultInstance() : relationshipAttributes_; } /** - * - * *
        * The detailed relationship attributes.
        * 
    @@ -185,16 +85,13 @@ public com.google.cloud.asset.v1.RelationshipAttributes getRelationshipAttribute * .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; */ @java.lang.Override - public com.google.cloud.asset.v1.RelationshipAttributesOrBuilder - getRelationshipAttributesOrBuilder() { + public com.google.cloud.asset.v1.RelationshipAttributesOrBuilder getRelationshipAttributesOrBuilder() { return getRelationshipAttributes(); } public static final int ASSETS_FIELD_NUMBER = 2; private java.util.List assets_; /** - * - * *
        * The peer resources of the relationship.
        * 
    @@ -206,8 +103,6 @@ public java.util.List getAssetsList() { return assets_; } /** - * - * *
        * The peer resources of the relationship.
        * 
    @@ -215,13 +110,11 @@ public java.util.List getAssetsList() { * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ @java.lang.Override - public java.util.List + public java.util.List getAssetsOrBuilderList() { return assets_; } /** - * - * *
        * The peer resources of the relationship.
        * 
    @@ -233,8 +126,6 @@ public int getAssetsCount() { return assets_.size(); } /** - * - * *
        * The peer resources of the relationship.
        * 
    @@ -246,8 +137,6 @@ public com.google.cloud.asset.v1.RelatedAsset getAssets(int index) { return assets_.get(index); } /** - * - * *
        * The peer resources of the relationship.
        * 
    @@ -255,12 +144,12 @@ public com.google.cloud.asset.v1.RelatedAsset getAssets(int index) { * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ @java.lang.Override - public com.google.cloud.asset.v1.RelatedAssetOrBuilder getAssetsOrBuilder(int index) { + public com.google.cloud.asset.v1.RelatedAssetOrBuilder getAssetsOrBuilder( + int index) { return assets_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,14 +161,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (relationshipAttributes_ != null) { output.writeMessage(1, getRelationshipAttributes()); } for (int i = 0; i < assets_.size(); i++) { output.writeMessage(2, assets_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -289,13 +179,14 @@ public int getSerializedSize() { size = 0; if (relationshipAttributes_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRelationshipAttributes()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRelationshipAttributes()); } for (int i = 0; i < assets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, assets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, assets_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -303,7 +194,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.RelatedAssets)) { return super.equals(obj); @@ -312,10 +203,12 @@ public boolean equals(final java.lang.Object obj) { if (hasRelationshipAttributes() != other.hasRelationshipAttributes()) return false; if (hasRelationshipAttributes()) { - if (!getRelationshipAttributes().equals(other.getRelationshipAttributes())) return false; + if (!getRelationshipAttributes() + .equals(other.getRelationshipAttributes())) return false; } - if (!getAssetsList().equals(other.getAssetsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getAssetsList() + .equals(other.getAssetsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -334,109 +227,102 @@ public int hashCode() { hash = (37 * hash) + ASSETS_FIELD_NUMBER; hash = (53 * hash) + getAssetsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.RelatedAssets parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.RelatedAssets parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.RelatedAssets parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.RelatedAssets parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.RelatedAssets 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.asset.v1.RelatedAssets parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.RelatedAssets parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.RelatedAssets parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.RelatedAssets parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.RelatedAssets parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.RelatedAssets parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.RelatedAssets parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.RelatedAssets parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.RelatedAssets parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.RelatedAssets prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * DEPRECATED. This message only presents for the purpose of
        * backward-compatibility. The server will never populate this message in
    @@ -446,41 +332,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        * Protobuf type {@code google.cloud.asset.v1.RelatedAssets}
        */
    -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    -      implements
    +  public static final class Builder extends
    +      com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.RelatedAssets)
           com.google.cloud.asset.v1.RelatedAssetsOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_RelatedAssets_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor
    +        getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedAssets_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_RelatedAssets_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedAssets_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.RelatedAssets.class,
    -              com.google.cloud.asset.v1.RelatedAssets.Builder.class);
    +              com.google.cloud.asset.v1.RelatedAssets.class, com.google.cloud.asset.v1.RelatedAssets.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.RelatedAssets.newBuilder()
         private Builder() {
    -      maybeForceBuilderInitialization();
    +
         }
     
    -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(
    +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
     
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getAssetsFieldBuilder();
    -      }
         }
    -
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -492,17 +370,18 @@ public Builder clear() {
           }
           if (assetsBuilder_ == null) {
             assets_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        assets_ = null;
             assetsBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
           return this;
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_RelatedAssets_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor
    +        getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedAssets_descriptor;
         }
     
         @java.lang.Override
    @@ -521,8 +400,7 @@ public com.google.cloud.asset.v1.RelatedAssets build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1.RelatedAssets buildPartial() {
    -      com.google.cloud.asset.v1.RelatedAssets result =
    -          new com.google.cloud.asset.v1.RelatedAssets(this);
    +      com.google.cloud.asset.v1.RelatedAssets result = new com.google.cloud.asset.v1.RelatedAssets(this);
           int from_bitField0_ = bitField0_;
           if (relationshipAttributesBuilder_ == null) {
             result.relationshipAttributes_ = relationshipAttributes_;
    @@ -546,39 +424,38 @@ public com.google.cloud.asset.v1.RelatedAssets buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    -
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.RelatedAssets) {
    -        return mergeFrom((com.google.cloud.asset.v1.RelatedAssets) other);
    +        return mergeFrom((com.google.cloud.asset.v1.RelatedAssets)other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -608,16 +485,15 @@ public Builder mergeFrom(com.google.cloud.asset.v1.RelatedAssets other) {
                 assetsBuilder_ = null;
                 assets_ = other.assets_;
                 bitField0_ = (bitField0_ & ~0x00000001);
    -            assetsBuilder_ =
    -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
    -                    ? getAssetsFieldBuilder()
    -                    : null;
    +            assetsBuilder_ = 
    +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
    +                 getAssetsFieldBuilder() : null;
               } else {
                 assetsBuilder_.addAllMessages(other.assets_);
               }
             }
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -632,73 +508,91 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.RelatedAssets parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10: {
    +              input.readMessage(
    +                  getRelationshipAttributesFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 10
    +            case 18: {
    +              com.google.cloud.asset.v1.RelatedAsset m =
    +                  input.readMessage(
    +                      com.google.cloud.asset.v1.RelatedAsset.parser(),
    +                      extensionRegistry);
    +              if (assetsBuilder_ == null) {
    +                ensureAssetsIsMutable();
    +                assets_.add(m);
    +              } else {
    +                assetsBuilder_.addMessage(m);
    +              }
    +              break;
    +            } // case 18
    +            default: {
    +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                done = true; // was an endgroup tag
    +              }
    +              break;
    +            } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1.RelatedAssets) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
    -
         private int bitField0_;
     
         private com.google.cloud.asset.v1.RelationshipAttributes relationshipAttributes_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.RelationshipAttributes,
    -            com.google.cloud.asset.v1.RelationshipAttributes.Builder,
    -            com.google.cloud.asset.v1.RelationshipAttributesOrBuilder>
    -        relationshipAttributesBuilder_;
    +        com.google.cloud.asset.v1.RelationshipAttributes, com.google.cloud.asset.v1.RelationshipAttributes.Builder, com.google.cloud.asset.v1.RelationshipAttributesOrBuilder> relationshipAttributesBuilder_;
         /**
    -     *
    -     *
          * 
          * The detailed relationship attributes.
          * 
    * * .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; - * * @return Whether the relationshipAttributes field is set. */ public boolean hasRelationshipAttributes() { return relationshipAttributesBuilder_ != null || relationshipAttributes_ != null; } /** - * - * *
          * The detailed relationship attributes.
          * 
    * * .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; - * * @return The relationshipAttributes. */ public com.google.cloud.asset.v1.RelationshipAttributes getRelationshipAttributes() { if (relationshipAttributesBuilder_ == null) { - return relationshipAttributes_ == null - ? com.google.cloud.asset.v1.RelationshipAttributes.getDefaultInstance() - : relationshipAttributes_; + return relationshipAttributes_ == null ? com.google.cloud.asset.v1.RelationshipAttributes.getDefaultInstance() : relationshipAttributes_; } else { return relationshipAttributesBuilder_.getMessage(); } } /** - * - * *
          * The detailed relationship attributes.
          * 
    * * .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; */ - public Builder setRelationshipAttributes( - com.google.cloud.asset.v1.RelationshipAttributes value) { + public Builder setRelationshipAttributes(com.google.cloud.asset.v1.RelationshipAttributes value) { if (relationshipAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -712,8 +606,6 @@ public Builder setRelationshipAttributes( return this; } /** - * - * *
          * The detailed relationship attributes.
          * 
    @@ -732,22 +624,17 @@ public Builder setRelationshipAttributes( return this; } /** - * - * *
          * The detailed relationship attributes.
          * 
    * * .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; */ - public Builder mergeRelationshipAttributes( - com.google.cloud.asset.v1.RelationshipAttributes value) { + public Builder mergeRelationshipAttributes(com.google.cloud.asset.v1.RelationshipAttributes value) { if (relationshipAttributesBuilder_ == null) { if (relationshipAttributes_ != null) { relationshipAttributes_ = - com.google.cloud.asset.v1.RelationshipAttributes.newBuilder(relationshipAttributes_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.RelationshipAttributes.newBuilder(relationshipAttributes_).mergeFrom(value).buildPartial(); } else { relationshipAttributes_ = value; } @@ -759,8 +646,6 @@ public Builder mergeRelationshipAttributes( return this; } /** - * - * *
          * The detailed relationship attributes.
          * 
    @@ -779,42 +664,33 @@ public Builder clearRelationshipAttributes() { return this; } /** - * - * *
          * The detailed relationship attributes.
          * 
    * * .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; */ - public com.google.cloud.asset.v1.RelationshipAttributes.Builder - getRelationshipAttributesBuilder() { - + public com.google.cloud.asset.v1.RelationshipAttributes.Builder getRelationshipAttributesBuilder() { + onChanged(); return getRelationshipAttributesFieldBuilder().getBuilder(); } /** - * - * *
          * The detailed relationship attributes.
          * 
    * * .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; */ - public com.google.cloud.asset.v1.RelationshipAttributesOrBuilder - getRelationshipAttributesOrBuilder() { + public com.google.cloud.asset.v1.RelationshipAttributesOrBuilder getRelationshipAttributesOrBuilder() { if (relationshipAttributesBuilder_ != null) { return relationshipAttributesBuilder_.getMessageOrBuilder(); } else { - return relationshipAttributes_ == null - ? com.google.cloud.asset.v1.RelationshipAttributes.getDefaultInstance() - : relationshipAttributes_; + return relationshipAttributes_ == null ? + com.google.cloud.asset.v1.RelationshipAttributes.getDefaultInstance() : relationshipAttributes_; } } /** - * - * *
          * The detailed relationship attributes.
          * 
    @@ -822,41 +698,32 @@ public Builder clearRelationshipAttributes() { * .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.RelationshipAttributes, - com.google.cloud.asset.v1.RelationshipAttributes.Builder, - com.google.cloud.asset.v1.RelationshipAttributesOrBuilder> + com.google.cloud.asset.v1.RelationshipAttributes, com.google.cloud.asset.v1.RelationshipAttributes.Builder, com.google.cloud.asset.v1.RelationshipAttributesOrBuilder> getRelationshipAttributesFieldBuilder() { if (relationshipAttributesBuilder_ == null) { - relationshipAttributesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.RelationshipAttributes, - com.google.cloud.asset.v1.RelationshipAttributes.Builder, - com.google.cloud.asset.v1.RelationshipAttributesOrBuilder>( - getRelationshipAttributes(), getParentForChildren(), isClean()); + relationshipAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.RelationshipAttributes, com.google.cloud.asset.v1.RelationshipAttributes.Builder, com.google.cloud.asset.v1.RelationshipAttributesOrBuilder>( + getRelationshipAttributes(), + getParentForChildren(), + isClean()); relationshipAttributes_ = null; } return relationshipAttributesBuilder_; } private java.util.List assets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAssetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assets_ = new java.util.ArrayList(assets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.RelatedAsset, - com.google.cloud.asset.v1.RelatedAsset.Builder, - com.google.cloud.asset.v1.RelatedAssetOrBuilder> - assetsBuilder_; + com.google.cloud.asset.v1.RelatedAsset, com.google.cloud.asset.v1.RelatedAsset.Builder, com.google.cloud.asset.v1.RelatedAssetOrBuilder> assetsBuilder_; /** - * - * *
          * The peer resources of the relationship.
          * 
    @@ -871,8 +738,6 @@ public java.util.List getAssetsList() { } } /** - * - * *
          * The peer resources of the relationship.
          * 
    @@ -887,8 +752,6 @@ public int getAssetsCount() { } } /** - * - * *
          * The peer resources of the relationship.
          * 
    @@ -903,15 +766,14 @@ public com.google.cloud.asset.v1.RelatedAsset getAssets(int index) { } } /** - * - * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ - public Builder setAssets(int index, com.google.cloud.asset.v1.RelatedAsset value) { + public Builder setAssets( + int index, com.google.cloud.asset.v1.RelatedAsset value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -925,8 +787,6 @@ public Builder setAssets(int index, com.google.cloud.asset.v1.RelatedAsset value return this; } /** - * - * *
          * The peer resources of the relationship.
          * 
    @@ -945,8 +805,6 @@ public Builder setAssets( return this; } /** - * - * *
          * The peer resources of the relationship.
          * 
    @@ -967,15 +825,14 @@ public Builder addAssets(com.google.cloud.asset.v1.RelatedAsset value) { return this; } /** - * - * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ - public Builder addAssets(int index, com.google.cloud.asset.v1.RelatedAsset value) { + public Builder addAssets( + int index, com.google.cloud.asset.v1.RelatedAsset value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -989,15 +846,14 @@ public Builder addAssets(int index, com.google.cloud.asset.v1.RelatedAsset value return this; } /** - * - * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ - public Builder addAssets(com.google.cloud.asset.v1.RelatedAsset.Builder builderForValue) { + public Builder addAssets( + com.google.cloud.asset.v1.RelatedAsset.Builder builderForValue) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.add(builderForValue.build()); @@ -1008,8 +864,6 @@ public Builder addAssets(com.google.cloud.asset.v1.RelatedAsset.Builder builderF return this; } /** - * - * *
          * The peer resources of the relationship.
          * 
    @@ -1028,8 +882,6 @@ public Builder addAssets( return this; } /** - * - * *
          * The peer resources of the relationship.
          * 
    @@ -1040,7 +892,8 @@ public Builder addAllAssets( java.lang.Iterable values) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, assets_); onChanged(); } else { assetsBuilder_.addAllMessages(values); @@ -1048,8 +901,6 @@ public Builder addAllAssets( return this; } /** - * - * *
          * The peer resources of the relationship.
          * 
    @@ -1067,8 +918,6 @@ public Builder clearAssets() { return this; } /** - * - * *
          * The peer resources of the relationship.
          * 
    @@ -1086,44 +935,39 @@ public Builder removeAssets(int index) { return this; } /** - * - * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ - public com.google.cloud.asset.v1.RelatedAsset.Builder getAssetsBuilder(int index) { + public com.google.cloud.asset.v1.RelatedAsset.Builder getAssetsBuilder( + int index) { return getAssetsFieldBuilder().getBuilder(index); } /** - * - * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ - public com.google.cloud.asset.v1.RelatedAssetOrBuilder getAssetsOrBuilder(int index) { + public com.google.cloud.asset.v1.RelatedAssetOrBuilder getAssetsOrBuilder( + int index) { if (assetsBuilder_ == null) { - return assets_.get(index); - } else { + return assets_.get(index); } else { return assetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ - public java.util.List - getAssetsOrBuilderList() { + public java.util.List + getAssetsOrBuilderList() { if (assetsBuilder_ != null) { return assetsBuilder_.getMessageOrBuilderList(); } else { @@ -1131,8 +975,6 @@ public com.google.cloud.asset.v1.RelatedAssetOrBuilder getAssetsOrBuilder(int in } } /** - * - * *
          * The peer resources of the relationship.
          * 
    @@ -1140,54 +982,49 @@ public com.google.cloud.asset.v1.RelatedAssetOrBuilder getAssetsOrBuilder(int in * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ public com.google.cloud.asset.v1.RelatedAsset.Builder addAssetsBuilder() { - return getAssetsFieldBuilder() - .addBuilder(com.google.cloud.asset.v1.RelatedAsset.getDefaultInstance()); + return getAssetsFieldBuilder().addBuilder( + com.google.cloud.asset.v1.RelatedAsset.getDefaultInstance()); } /** - * - * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ - public com.google.cloud.asset.v1.RelatedAsset.Builder addAssetsBuilder(int index) { - return getAssetsFieldBuilder() - .addBuilder(index, com.google.cloud.asset.v1.RelatedAsset.getDefaultInstance()); + public com.google.cloud.asset.v1.RelatedAsset.Builder addAssetsBuilder( + int index) { + return getAssetsFieldBuilder().addBuilder( + index, com.google.cloud.asset.v1.RelatedAsset.getDefaultInstance()); } /** - * - * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ - public java.util.List getAssetsBuilderList() { + public java.util.List + getAssetsBuilderList() { return getAssetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.RelatedAsset, - com.google.cloud.asset.v1.RelatedAsset.Builder, - com.google.cloud.asset.v1.RelatedAssetOrBuilder> + com.google.cloud.asset.v1.RelatedAsset, com.google.cloud.asset.v1.RelatedAsset.Builder, com.google.cloud.asset.v1.RelatedAssetOrBuilder> getAssetsFieldBuilder() { if (assetsBuilder_ == null) { - assetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.RelatedAsset, - com.google.cloud.asset.v1.RelatedAsset.Builder, - com.google.cloud.asset.v1.RelatedAssetOrBuilder>( - assets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + assetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.RelatedAsset, com.google.cloud.asset.v1.RelatedAsset.Builder, com.google.cloud.asset.v1.RelatedAssetOrBuilder>( + assets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); assets_ = null; } return assetsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1197,12 +1034,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.RelatedAssets) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.RelatedAssets) private static final com.google.cloud.asset.v1.RelatedAssets DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.RelatedAssets(); } @@ -1211,16 +1048,27 @@ public static com.google.cloud.asset.v1.RelatedAssets getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RelatedAssets parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RelatedAssets(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelatedAssets parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1235,4 +1083,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.RelatedAssets getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetsOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetsOrBuilder.java similarity index 71% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetsOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetsOrBuilder.java index 00b60868d088..befe6f913733 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetsOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetsOrBuilder.java @@ -1,56 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; -@java.lang.Deprecated -public interface RelatedAssetsOrBuilder - extends +@java.lang.Deprecated public interface RelatedAssetsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.RelatedAssets) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The detailed relationship attributes.
        * 
    * * .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; - * * @return Whether the relationshipAttributes field is set. */ boolean hasRelationshipAttributes(); /** - * - * *
        * The detailed relationship attributes.
        * 
    * * .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; - * * @return The relationshipAttributes. */ com.google.cloud.asset.v1.RelationshipAttributes getRelationshipAttributes(); /** - * - * *
        * The detailed relationship attributes.
        * 
    @@ -60,18 +35,15 @@ public interface RelatedAssetsOrBuilder com.google.cloud.asset.v1.RelationshipAttributesOrBuilder getRelationshipAttributesOrBuilder(); /** - * - * *
        * The peer resources of the relationship.
        * 
    * * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ - java.util.List getAssetsList(); + java.util.List + getAssetsList(); /** - * - * *
        * The peer resources of the relationship.
        * 
    @@ -80,8 +52,6 @@ public interface RelatedAssetsOrBuilder */ com.google.cloud.asset.v1.RelatedAsset getAssets(int index); /** - * - * *
        * The peer resources of the relationship.
        * 
    @@ -90,24 +60,21 @@ public interface RelatedAssetsOrBuilder */ int getAssetsCount(); /** - * - * *
        * The peer resources of the relationship.
        * 
    * * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ - java.util.List + java.util.List getAssetsOrBuilderList(); /** - * - * *
        * The peer resources of the relationship.
        * 
    * * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ - com.google.cloud.asset.v1.RelatedAssetOrBuilder getAssetsOrBuilder(int index); + com.google.cloud.asset.v1.RelatedAssetOrBuilder getAssetsOrBuilder( + int index); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResource.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResource.java similarity index 64% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResource.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResource.java index cbd0b21576ba..0381859cc626 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResource.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResource.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** - * - * *
      * The detailed related resource.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.RelatedResource} */ -public final class RelatedResource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RelatedResource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.RelatedResource) RelatedResourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RelatedResource.newBuilder() to construct. private RelatedResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RelatedResource() { assetType_ = ""; fullResourceName_ = ""; @@ -44,94 +26,37 @@ private RelatedResource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RelatedResource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private RelatedResource( - 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(); - - assetType_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - fullResourceName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_RelatedResource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_RelatedResource_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.RelatedResource.class, - com.google.cloud.asset.v1.RelatedResource.Builder.class); + com.google.cloud.asset.v1.RelatedResource.class, com.google.cloud.asset.v1.RelatedResource.Builder.class); } public static final int ASSET_TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object assetType_; /** - * - * *
        * The type of the asset. Example: `compute.googleapis.com/Instance`
        * 
    * * string asset_type = 1; - * * @return The assetType. */ @java.lang.Override @@ -140,29 +65,29 @@ public java.lang.String getAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; } } /** - * - * *
        * The type of the asset. Example: `compute.googleapis.com/Instance`
        * 
    * * string asset_type = 1; - * * @return The bytes for assetType. */ @java.lang.Override - public com.google.protobuf.ByteString getAssetTypeBytes() { + public com.google.protobuf.ByteString + getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetType_ = b; return b; } else { @@ -173,15 +98,12 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { public static final int FULL_RESOURCE_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object fullResourceName_; /** - * - * *
        * The full resource name of the related resource. Example:
        * `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`
        * 
    * * string full_resource_name = 2; - * * @return The fullResourceName. */ @java.lang.Override @@ -190,30 +112,30 @@ public java.lang.String getFullResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fullResourceName_ = s; return s; } } /** - * - * *
        * The full resource name of the related resource. Example:
        * `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`
        * 
    * * string full_resource_name = 2; - * * @return The bytes for fullResourceName. */ @java.lang.Override - public com.google.protobuf.ByteString getFullResourceNameBytes() { + public com.google.protobuf.ByteString + getFullResourceNameBytes() { java.lang.Object ref = fullResourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fullResourceName_ = b; return b; } else { @@ -222,7 +144,6 @@ public com.google.protobuf.ByteString getFullResourceNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,14 +155,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, assetType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fullResourceName_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -256,7 +178,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fullResourceName_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -264,17 +186,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.RelatedResource)) { return super.equals(obj); } - com.google.cloud.asset.v1.RelatedResource other = - (com.google.cloud.asset.v1.RelatedResource) obj; + com.google.cloud.asset.v1.RelatedResource other = (com.google.cloud.asset.v1.RelatedResource) obj; - if (!getAssetType().equals(other.getAssetType())) return false; - if (!getFullResourceName().equals(other.getFullResourceName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getAssetType() + .equals(other.getAssetType())) return false; + if (!getFullResourceName() + .equals(other.getFullResourceName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -289,148 +212,135 @@ public int hashCode() { hash = (53 * hash) + getAssetType().hashCode(); hash = (37 * hash) + FULL_RESOURCE_NAME_FIELD_NUMBER; hash = (53 * hash) + getFullResourceName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.RelatedResource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.RelatedResource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.RelatedResource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.RelatedResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.RelatedResource 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.asset.v1.RelatedResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.RelatedResource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.RelatedResource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.RelatedResource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.RelatedResource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.RelatedResource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.RelatedResource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.RelatedResource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.RelatedResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.RelatedResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * The detailed related resource.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.RelatedResource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.RelatedResource) com.google.cloud.asset.v1.RelatedResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_RelatedResource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_RelatedResource_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.RelatedResource.class, - com.google.cloud.asset.v1.RelatedResource.Builder.class); + com.google.cloud.asset.v1.RelatedResource.class, com.google.cloud.asset.v1.RelatedResource.Builder.class); } // Construct using com.google.cloud.asset.v1.RelatedResource.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -442,9 +352,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_RelatedResource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedResource_descriptor; } @java.lang.Override @@ -463,8 +373,7 @@ public com.google.cloud.asset.v1.RelatedResource build() { @java.lang.Override public com.google.cloud.asset.v1.RelatedResource buildPartial() { - com.google.cloud.asset.v1.RelatedResource result = - new com.google.cloud.asset.v1.RelatedResource(this); + com.google.cloud.asset.v1.RelatedResource result = new com.google.cloud.asset.v1.RelatedResource(this); result.assetType_ = assetType_; result.fullResourceName_ = fullResourceName_; onBuilt(); @@ -475,39 +384,38 @@ public com.google.cloud.asset.v1.RelatedResource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.RelatedResource) { - return mergeFrom((com.google.cloud.asset.v1.RelatedResource) other); + return mergeFrom((com.google.cloud.asset.v1.RelatedResource)other); } else { super.mergeFrom(other); return this; @@ -524,7 +432,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.RelatedResource other) { fullResourceName_ = other.fullResourceName_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -539,36 +447,57 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.RelatedResource parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + assetType_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + fullResourceName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.RelatedResource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object assetType_ = ""; /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Instance`
          * 
    * * string asset_type = 1; - * * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; @@ -577,21 +506,20 @@ public java.lang.String getAssetType() { } } /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Instance`
          * 
    * * string asset_type = 1; - * * @return The bytes for assetType. */ - public com.google.protobuf.ByteString getAssetTypeBytes() { + public com.google.protobuf.ByteString + getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetType_ = b; return b; } else { @@ -599,61 +527,54 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { } } /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Instance`
          * 
    * * string asset_type = 1; - * * @param value The assetType to set. * @return This builder for chaining. */ - public Builder setAssetType(java.lang.String value) { + public Builder setAssetType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + assetType_ = value; onChanged(); return this; } /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Instance`
          * 
    * * string asset_type = 1; - * * @return This builder for chaining. */ public Builder clearAssetType() { - + assetType_ = getDefaultInstance().getAssetType(); onChanged(); return this; } /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Instance`
          * 
    * * string asset_type = 1; - * * @param value The bytes for assetType to set. * @return This builder for chaining. */ - public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { + public Builder setAssetTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; onChanged(); return this; @@ -661,21 +582,19 @@ public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object fullResourceName_ = ""; /** - * - * *
          * The full resource name of the related resource. Example:
          * `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`
          * 
    * * string full_resource_name = 2; - * * @return The fullResourceName. */ public java.lang.String getFullResourceName() { java.lang.Object ref = fullResourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fullResourceName_ = s; return s; @@ -684,22 +603,21 @@ public java.lang.String getFullResourceName() { } } /** - * - * *
          * The full resource name of the related resource. Example:
          * `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`
          * 
    * * string full_resource_name = 2; - * * @return The bytes for fullResourceName. */ - public com.google.protobuf.ByteString getFullResourceNameBytes() { + public com.google.protobuf.ByteString + getFullResourceNameBytes() { java.lang.Object ref = fullResourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fullResourceName_ = b; return b; } else { @@ -707,71 +625,64 @@ public com.google.protobuf.ByteString getFullResourceNameBytes() { } } /** - * - * *
          * The full resource name of the related resource. Example:
          * `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`
          * 
    * * string full_resource_name = 2; - * * @param value The fullResourceName to set. * @return This builder for chaining. */ - public Builder setFullResourceName(java.lang.String value) { + public Builder setFullResourceName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fullResourceName_ = value; onChanged(); return this; } /** - * - * *
          * The full resource name of the related resource. Example:
          * `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`
          * 
    * * string full_resource_name = 2; - * * @return This builder for chaining. */ public Builder clearFullResourceName() { - + fullResourceName_ = getDefaultInstance().getFullResourceName(); onChanged(); return this; } /** - * - * *
          * The full resource name of the related resource. Example:
          * `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`
          * 
    * * string full_resource_name = 2; - * * @param value The bytes for fullResourceName to set. * @return This builder for chaining. */ - public Builder setFullResourceNameBytes(com.google.protobuf.ByteString value) { + public Builder setFullResourceNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fullResourceName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -781,12 +692,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.RelatedResource) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.RelatedResource) private static final com.google.cloud.asset.v1.RelatedResource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.RelatedResource(); } @@ -795,16 +706,27 @@ public static com.google.cloud.asset.v1.RelatedResource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RelatedResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RelatedResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelatedResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -819,4 +741,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.RelatedResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourceOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourceOrBuilder.java similarity index 60% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourceOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourceOrBuilder.java index e23e9a341a6b..4a184b2490d1 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourceOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourceOrBuilder.java @@ -1,77 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; -public interface RelatedResourceOrBuilder - extends +public interface RelatedResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.RelatedResource) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The type of the asset. Example: `compute.googleapis.com/Instance`
        * 
    * * string asset_type = 1; - * * @return The assetType. */ java.lang.String getAssetType(); /** - * - * *
        * The type of the asset. Example: `compute.googleapis.com/Instance`
        * 
    * * string asset_type = 1; - * * @return The bytes for assetType. */ - com.google.protobuf.ByteString getAssetTypeBytes(); + com.google.protobuf.ByteString + getAssetTypeBytes(); /** - * - * *
        * The full resource name of the related resource. Example:
        * `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`
        * 
    * * string full_resource_name = 2; - * * @return The fullResourceName. */ java.lang.String getFullResourceName(); /** - * - * *
        * The full resource name of the related resource. Example:
        * `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`
        * 
    * * string full_resource_name = 2; - * * @return The bytes for fullResourceName. */ - com.google.protobuf.ByteString getFullResourceNameBytes(); + com.google.protobuf.ByteString + getFullResourceNameBytes(); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResources.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResources.java similarity index 68% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResources.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResources.java index 350d3a2e0fbd..be77ef9cd992 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResources.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResources.java @@ -1,132 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** - * - * *
      * The related resources of the primary resource.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.RelatedResources} */ -public final class RelatedResources extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RelatedResources extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.RelatedResources) RelatedResourcesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RelatedResources.newBuilder() to construct. private RelatedResources(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RelatedResources() { relatedResources_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RelatedResources(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private RelatedResources( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - relatedResources_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - relatedResources_.add( - input.readMessage( - com.google.cloud.asset.v1.RelatedResource.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - relatedResources_ = java.util.Collections.unmodifiableList(relatedResources_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_RelatedResources_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedResources_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_RelatedResources_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedResources_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.RelatedResources.class, - com.google.cloud.asset.v1.RelatedResources.Builder.class); + com.google.cloud.asset.v1.RelatedResources.class, com.google.cloud.asset.v1.RelatedResources.Builder.class); } public static final int RELATED_RESOURCES_FIELD_NUMBER = 1; private java.util.List relatedResources_; /** - * - * *
        * The detailed related resources of the primary resource.
        * 
    @@ -138,8 +62,6 @@ public java.util.List getRelatedResou return relatedResources_; } /** - * - * *
        * The detailed related resources of the primary resource.
        * 
    @@ -147,13 +69,11 @@ public java.util.List getRelatedResou * repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRelatedResourcesOrBuilderList() { return relatedResources_; } /** - * - * *
        * The detailed related resources of the primary resource.
        * 
    @@ -165,8 +85,6 @@ public int getRelatedResourcesCount() { return relatedResources_.size(); } /** - * - * *
        * The detailed related resources of the primary resource.
        * 
    @@ -178,8 +96,6 @@ public com.google.cloud.asset.v1.RelatedResource getRelatedResources(int index) return relatedResources_.get(index); } /** - * - * *
        * The detailed related resources of the primary resource.
        * 
    @@ -193,7 +109,6 @@ public com.google.cloud.asset.v1.RelatedResourceOrBuilder getRelatedResourcesOrB } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,11 +120,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < relatedResources_.size(); i++) { output.writeMessage(1, relatedResources_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -219,9 +135,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < relatedResources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, relatedResources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, relatedResources_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -229,16 +146,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.RelatedResources)) { return super.equals(obj); } - com.google.cloud.asset.v1.RelatedResources other = - (com.google.cloud.asset.v1.RelatedResources) obj; + com.google.cloud.asset.v1.RelatedResources other = (com.google.cloud.asset.v1.RelatedResources) obj; - if (!getRelatedResourcesList().equals(other.getRelatedResourcesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getRelatedResourcesList() + .equals(other.getRelatedResourcesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -253,166 +170,152 @@ public int hashCode() { hash = (37 * hash) + RELATED_RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getRelatedResourcesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.RelatedResources parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.RelatedResources parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.RelatedResources parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.RelatedResources parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.RelatedResources 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.asset.v1.RelatedResources parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.RelatedResources parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.RelatedResources parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.RelatedResources parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.RelatedResources parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.RelatedResources parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.RelatedResources parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.RelatedResources parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.RelatedResources parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.RelatedResources prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * The related resources of the primary resource.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.RelatedResources} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.RelatedResources) com.google.cloud.asset.v1.RelatedResourcesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_RelatedResources_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedResources_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_RelatedResources_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedResources_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.RelatedResources.class, - com.google.cloud.asset.v1.RelatedResources.Builder.class); + com.google.cloud.asset.v1.RelatedResources.class, com.google.cloud.asset.v1.RelatedResources.Builder.class); } // Construct using com.google.cloud.asset.v1.RelatedResources.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getRelatedResourcesFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); if (relatedResourcesBuilder_ == null) { relatedResources_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + relatedResources_ = null; relatedResourcesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_RelatedResources_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedResources_descriptor; } @java.lang.Override @@ -431,8 +334,7 @@ public com.google.cloud.asset.v1.RelatedResources build() { @java.lang.Override public com.google.cloud.asset.v1.RelatedResources buildPartial() { - com.google.cloud.asset.v1.RelatedResources result = - new com.google.cloud.asset.v1.RelatedResources(this); + com.google.cloud.asset.v1.RelatedResources result = new com.google.cloud.asset.v1.RelatedResources(this); int from_bitField0_ = bitField0_; if (relatedResourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -451,39 +353,38 @@ public com.google.cloud.asset.v1.RelatedResources buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.RelatedResources) { - return mergeFrom((com.google.cloud.asset.v1.RelatedResources) other); + return mergeFrom((com.google.cloud.asset.v1.RelatedResources)other); } else { super.mergeFrom(other); return this; @@ -510,16 +411,15 @@ public Builder mergeFrom(com.google.cloud.asset.v1.RelatedResources other) { relatedResourcesBuilder_ = null; relatedResources_ = other.relatedResources_; bitField0_ = (bitField0_ & ~0x00000001); - relatedResourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRelatedResourcesFieldBuilder() - : null; + relatedResourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRelatedResourcesFieldBuilder() : null; } else { relatedResourcesBuilder_.addAllMessages(other.relatedResources_); } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -534,42 +434,60 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.RelatedResources parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.asset.v1.RelatedResource m = + input.readMessage( + com.google.cloud.asset.v1.RelatedResource.parser(), + extensionRegistry); + if (relatedResourcesBuilder_ == null) { + ensureRelatedResourcesIsMutable(); + relatedResources_.add(m); + } else { + relatedResourcesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.RelatedResources) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.util.List relatedResources_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRelatedResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - relatedResources_ = - new java.util.ArrayList(relatedResources_); + relatedResources_ = new java.util.ArrayList(relatedResources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.RelatedResource, - com.google.cloud.asset.v1.RelatedResource.Builder, - com.google.cloud.asset.v1.RelatedResourceOrBuilder> - relatedResourcesBuilder_; + com.google.cloud.asset.v1.RelatedResource, com.google.cloud.asset.v1.RelatedResource.Builder, com.google.cloud.asset.v1.RelatedResourceOrBuilder> relatedResourcesBuilder_; /** - * - * *
          * The detailed related resources of the primary resource.
          * 
    @@ -584,8 +502,6 @@ public java.util.List getRelatedResou } } /** - * - * *
          * The detailed related resources of the primary resource.
          * 
    @@ -600,8 +516,6 @@ public int getRelatedResourcesCount() { } } /** - * - * *
          * The detailed related resources of the primary resource.
          * 
    @@ -616,15 +530,14 @@ public com.google.cloud.asset.v1.RelatedResource getRelatedResources(int index) } } /** - * - * *
          * The detailed related resources of the primary resource.
          * 
    * * repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; */ - public Builder setRelatedResources(int index, com.google.cloud.asset.v1.RelatedResource value) { + public Builder setRelatedResources( + int index, com.google.cloud.asset.v1.RelatedResource value) { if (relatedResourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -638,8 +551,6 @@ public Builder setRelatedResources(int index, com.google.cloud.asset.v1.RelatedR return this; } /** - * - * *
          * The detailed related resources of the primary resource.
          * 
    @@ -658,8 +569,6 @@ public Builder setRelatedResources( return this; } /** - * - * *
          * The detailed related resources of the primary resource.
          * 
    @@ -680,15 +589,14 @@ public Builder addRelatedResources(com.google.cloud.asset.v1.RelatedResource val return this; } /** - * - * *
          * The detailed related resources of the primary resource.
          * 
    * * repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; */ - public Builder addRelatedResources(int index, com.google.cloud.asset.v1.RelatedResource value) { + public Builder addRelatedResources( + int index, com.google.cloud.asset.v1.RelatedResource value) { if (relatedResourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -702,8 +610,6 @@ public Builder addRelatedResources(int index, com.google.cloud.asset.v1.RelatedR return this; } /** - * - * *
          * The detailed related resources of the primary resource.
          * 
    @@ -722,8 +628,6 @@ public Builder addRelatedResources( return this; } /** - * - * *
          * The detailed related resources of the primary resource.
          * 
    @@ -742,8 +646,6 @@ public Builder addRelatedResources( return this; } /** - * - * *
          * The detailed related resources of the primary resource.
          * 
    @@ -754,7 +656,8 @@ public Builder addAllRelatedResources( java.lang.Iterable values) { if (relatedResourcesBuilder_ == null) { ensureRelatedResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relatedResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, relatedResources_); onChanged(); } else { relatedResourcesBuilder_.addAllMessages(values); @@ -762,8 +665,6 @@ public Builder addAllRelatedResources( return this; } /** - * - * *
          * The detailed related resources of the primary resource.
          * 
    @@ -781,8 +682,6 @@ public Builder clearRelatedResources() { return this; } /** - * - * *
          * The detailed related resources of the primary resource.
          * 
    @@ -800,20 +699,17 @@ public Builder removeRelatedResources(int index) { return this; } /** - * - * *
          * The detailed related resources of the primary resource.
          * 
    * * repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; */ - public com.google.cloud.asset.v1.RelatedResource.Builder getRelatedResourcesBuilder(int index) { + public com.google.cloud.asset.v1.RelatedResource.Builder getRelatedResourcesBuilder( + int index) { return getRelatedResourcesFieldBuilder().getBuilder(index); } /** - * - * *
          * The detailed related resources of the primary resource.
          * 
    @@ -823,22 +719,19 @@ public com.google.cloud.asset.v1.RelatedResource.Builder getRelatedResourcesBuil public com.google.cloud.asset.v1.RelatedResourceOrBuilder getRelatedResourcesOrBuilder( int index) { if (relatedResourcesBuilder_ == null) { - return relatedResources_.get(index); - } else { + return relatedResources_.get(index); } else { return relatedResourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
          * The detailed related resources of the primary resource.
          * 
    * * repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; */ - public java.util.List - getRelatedResourcesOrBuilderList() { + public java.util.List + getRelatedResourcesOrBuilderList() { if (relatedResourcesBuilder_ != null) { return relatedResourcesBuilder_.getMessageOrBuilderList(); } else { @@ -846,8 +739,6 @@ public com.google.cloud.asset.v1.RelatedResourceOrBuilder getRelatedResourcesOrB } } /** - * - * *
          * The detailed related resources of the primary resource.
          * 
    @@ -855,47 +746,38 @@ public com.google.cloud.asset.v1.RelatedResourceOrBuilder getRelatedResourcesOrB * repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; */ public com.google.cloud.asset.v1.RelatedResource.Builder addRelatedResourcesBuilder() { - return getRelatedResourcesFieldBuilder() - .addBuilder(com.google.cloud.asset.v1.RelatedResource.getDefaultInstance()); + return getRelatedResourcesFieldBuilder().addBuilder( + com.google.cloud.asset.v1.RelatedResource.getDefaultInstance()); } /** - * - * *
          * The detailed related resources of the primary resource.
          * 
    * * repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; */ - public com.google.cloud.asset.v1.RelatedResource.Builder addRelatedResourcesBuilder(int index) { - return getRelatedResourcesFieldBuilder() - .addBuilder(index, com.google.cloud.asset.v1.RelatedResource.getDefaultInstance()); + public com.google.cloud.asset.v1.RelatedResource.Builder addRelatedResourcesBuilder( + int index) { + return getRelatedResourcesFieldBuilder().addBuilder( + index, com.google.cloud.asset.v1.RelatedResource.getDefaultInstance()); } /** - * - * *
          * The detailed related resources of the primary resource.
          * 
    * * repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; */ - public java.util.List - getRelatedResourcesBuilderList() { + public java.util.List + getRelatedResourcesBuilderList() { return getRelatedResourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.RelatedResource, - com.google.cloud.asset.v1.RelatedResource.Builder, - com.google.cloud.asset.v1.RelatedResourceOrBuilder> + com.google.cloud.asset.v1.RelatedResource, com.google.cloud.asset.v1.RelatedResource.Builder, com.google.cloud.asset.v1.RelatedResourceOrBuilder> getRelatedResourcesFieldBuilder() { if (relatedResourcesBuilder_ == null) { - relatedResourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.RelatedResource, - com.google.cloud.asset.v1.RelatedResource.Builder, - com.google.cloud.asset.v1.RelatedResourceOrBuilder>( + relatedResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.RelatedResource, com.google.cloud.asset.v1.RelatedResource.Builder, com.google.cloud.asset.v1.RelatedResourceOrBuilder>( relatedResources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -904,9 +786,9 @@ public com.google.cloud.asset.v1.RelatedResource.Builder addRelatedResourcesBuil } return relatedResourcesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -916,12 +798,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.RelatedResources) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.RelatedResources) private static final com.google.cloud.asset.v1.RelatedResources DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.RelatedResources(); } @@ -930,16 +812,27 @@ public static com.google.cloud.asset.v1.RelatedResources getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RelatedResources parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RelatedResources(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelatedResources parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -954,4 +847,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.RelatedResources getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourcesOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourcesOrBuilder.java similarity index 64% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourcesOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourcesOrBuilder.java index 7e13b3b81889..10384ab80468 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourcesOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourcesOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; -public interface RelatedResourcesOrBuilder - extends +public interface RelatedResourcesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.RelatedResources) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The detailed related resources of the primary resource.
        * 
    * * repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; */ - java.util.List getRelatedResourcesList(); + java.util.List + getRelatedResourcesList(); /** - * - * *
        * The detailed related resources of the primary resource.
        * 
    @@ -44,8 +25,6 @@ public interface RelatedResourcesOrBuilder */ com.google.cloud.asset.v1.RelatedResource getRelatedResources(int index); /** - * - * *
        * The detailed related resources of the primary resource.
        * 
    @@ -54,24 +33,21 @@ public interface RelatedResourcesOrBuilder */ int getRelatedResourcesCount(); /** - * - * *
        * The detailed related resources of the primary resource.
        * 
    * * repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; */ - java.util.List + java.util.List getRelatedResourcesOrBuilderList(); /** - * - * *
        * The detailed related resources of the primary resource.
        * 
    * * repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; */ - com.google.cloud.asset.v1.RelatedResourceOrBuilder getRelatedResourcesOrBuilder(int index); + com.google.cloud.asset.v1.RelatedResourceOrBuilder getRelatedResourcesOrBuilder( + int index); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributes.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributes.java similarity index 67% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributes.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributes.java index cb95c5f3a9c0..6002159cbb01 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributes.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributes.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** - * - * *
      * DEPRECATED. This message only presents for the purpose of
      * backward-compatibility. The server will never populate this message in
    @@ -31,17 +14,15 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.RelationshipAttributes}
      */
    -@java.lang.Deprecated
    -public final class RelationshipAttributes extends com.google.protobuf.GeneratedMessageV3
    -    implements
    +@java.lang.Deprecated public final class RelationshipAttributes extends
    +    com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.RelationshipAttributes)
         RelationshipAttributesOrBuilder {
    -  private static final long serialVersionUID = 0L;
    +private static final long serialVersionUID = 0L;
       // Use RelationshipAttributes.newBuilder() to construct.
       private RelationshipAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -
       private RelationshipAttributes() {
         type_ = "";
         sourceResourceType_ = "";
    @@ -51,109 +32,38 @@ private RelationshipAttributes() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(
    +      UnusedPrivateParameter unused) {
         return new RelationshipAttributes();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet
    +  getUnknownFields() {
         return this.unknownFields;
       }
    -
    -  private RelationshipAttributes(
    -      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();
    -
    -              sourceResourceType_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              targetResourceType_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              action_ = s;
    -              break;
    -            }
    -          case 34:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              type_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
    -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetProto
    -        .internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor;
    +  public static final com.google.protobuf.Descriptors.Descriptor
    +      getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetProto
    -        .internal_static_google_cloud_asset_v1_RelationshipAttributes_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelationshipAttributes_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1.RelationshipAttributes.class,
    -            com.google.cloud.asset.v1.RelationshipAttributes.Builder.class);
    +            com.google.cloud.asset.v1.RelationshipAttributes.class, com.google.cloud.asset.v1.RelationshipAttributes.Builder.class);
       }
     
       public static final int TYPE_FIELD_NUMBER = 4;
       private volatile java.lang.Object type_;
       /**
    -   *
    -   *
        * 
        * The unique identifier of the relationship type. Example:
        * `INSTANCE_TO_INSTANCEGROUP`
        * 
    * * string type = 4; - * * @return The type. */ @java.lang.Override @@ -162,30 +72,30 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** - * - * *
        * The unique identifier of the relationship type. Example:
        * `INSTANCE_TO_INSTANCEGROUP`
        * 
    * * string type = 4; - * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -196,14 +106,11 @@ public com.google.protobuf.ByteString getTypeBytes() { public static final int SOURCE_RESOURCE_TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object sourceResourceType_; /** - * - * *
        * The source asset type. Example: `compute.googleapis.com/Instance`
        * 
    * * string source_resource_type = 1; - * * @return The sourceResourceType. */ @java.lang.Override @@ -212,29 +119,29 @@ public java.lang.String getSourceResourceType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceResourceType_ = s; return s; } } /** - * - * *
        * The source asset type. Example: `compute.googleapis.com/Instance`
        * 
    * * string source_resource_type = 1; - * * @return The bytes for sourceResourceType. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceResourceTypeBytes() { + public com.google.protobuf.ByteString + getSourceResourceTypeBytes() { java.lang.Object ref = sourceResourceType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceResourceType_ = b; return b; } else { @@ -245,14 +152,11 @@ public com.google.protobuf.ByteString getSourceResourceTypeBytes() { public static final int TARGET_RESOURCE_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object targetResourceType_; /** - * - * *
        * The target asset type. Example: `compute.googleapis.com/Disk`
        * 
    * * string target_resource_type = 2; - * * @return The targetResourceType. */ @java.lang.Override @@ -261,29 +165,29 @@ public java.lang.String getTargetResourceType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetResourceType_ = s; return s; } } /** - * - * *
        * The target asset type. Example: `compute.googleapis.com/Disk`
        * 
    * * string target_resource_type = 2; - * * @return The bytes for targetResourceType. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetResourceTypeBytes() { + public com.google.protobuf.ByteString + getTargetResourceTypeBytes() { java.lang.Object ref = targetResourceType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetResourceType_ = b; return b; } else { @@ -294,14 +198,11 @@ public com.google.protobuf.ByteString getTargetResourceTypeBytes() { public static final int ACTION_FIELD_NUMBER = 3; private volatile java.lang.Object action_; /** - * - * *
        * The detail of the relationship, e.g. `contains`, `attaches`
        * 
    * * string action = 3; - * * @return The action. */ @java.lang.Override @@ -310,29 +211,29 @@ public java.lang.String getAction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); action_ = s; return s; } } /** - * - * *
        * The detail of the relationship, e.g. `contains`, `attaches`
        * 
    * * string action = 3; - * * @return The bytes for action. */ @java.lang.Override - public com.google.protobuf.ByteString getActionBytes() { + public com.google.protobuf.ByteString + getActionBytes() { java.lang.Object ref = action_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); action_ = b; return b; } else { @@ -341,7 +242,6 @@ public com.google.protobuf.ByteString getActionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -353,7 +253,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceResourceType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceResourceType_); } @@ -366,7 +267,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, type_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -387,7 +288,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -395,19 +296,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.RelationshipAttributes)) { return super.equals(obj); } - com.google.cloud.asset.v1.RelationshipAttributes other = - (com.google.cloud.asset.v1.RelationshipAttributes) obj; - - if (!getType().equals(other.getType())) return false; - if (!getSourceResourceType().equals(other.getSourceResourceType())) return false; - if (!getTargetResourceType().equals(other.getTargetResourceType())) return false; - if (!getAction().equals(other.getAction())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + com.google.cloud.asset.v1.RelationshipAttributes other = (com.google.cloud.asset.v1.RelationshipAttributes) obj; + + if (!getType() + .equals(other.getType())) return false; + if (!getSourceResourceType() + .equals(other.getSourceResourceType())) return false; + if (!getTargetResourceType() + .equals(other.getTargetResourceType())) return false; + if (!getAction() + .equals(other.getAction())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -426,109 +330,102 @@ public int hashCode() { hash = (53 * hash) + getTargetResourceType().hashCode(); hash = (37 * hash) + ACTION_FIELD_NUMBER; hash = (53 * hash) + getAction().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.RelationshipAttributes parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.RelationshipAttributes parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.RelationshipAttributes parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.RelationshipAttributes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.RelationshipAttributes 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.asset.v1.RelationshipAttributes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.RelationshipAttributes parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.RelationshipAttributes parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.RelationshipAttributes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.RelationshipAttributes parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.RelationshipAttributes parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.RelationshipAttributes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.RelationshipAttributes parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.RelationshipAttributes parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.RelationshipAttributes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.RelationshipAttributes prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * DEPRECATED. This message only presents for the purpose of
        * backward-compatibility. The server will never populate this message in
    @@ -539,39 +436,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        * Protobuf type {@code google.cloud.asset.v1.RelationshipAttributes}
        */
    -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    -      implements
    +  public static final class Builder extends
    +      com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.RelationshipAttributes)
           com.google.cloud.asset.v1.RelationshipAttributesOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor
    +        getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_RelationshipAttributes_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelationshipAttributes_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.RelationshipAttributes.class,
    -              com.google.cloud.asset.v1.RelationshipAttributes.Builder.class);
    +              com.google.cloud.asset.v1.RelationshipAttributes.class, com.google.cloud.asset.v1.RelationshipAttributes.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.RelationshipAttributes.newBuilder()
         private Builder() {
    -      maybeForceBuilderInitialization();
    +
         }
     
    -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    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();
    @@ -587,9 +478,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor
    +        getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor;
         }
     
         @java.lang.Override
    @@ -608,8 +499,7 @@ public com.google.cloud.asset.v1.RelationshipAttributes build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1.RelationshipAttributes buildPartial() {
    -      com.google.cloud.asset.v1.RelationshipAttributes result =
    -          new com.google.cloud.asset.v1.RelationshipAttributes(this);
    +      com.google.cloud.asset.v1.RelationshipAttributes result = new com.google.cloud.asset.v1.RelationshipAttributes(this);
           result.type_ = type_;
           result.sourceResourceType_ = sourceResourceType_;
           result.targetResourceType_ = targetResourceType_;
    @@ -622,39 +512,38 @@ public com.google.cloud.asset.v1.RelationshipAttributes buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    -
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.RelationshipAttributes) {
    -        return mergeFrom((com.google.cloud.asset.v1.RelationshipAttributes) other);
    +        return mergeFrom((com.google.cloud.asset.v1.RelationshipAttributes)other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -662,8 +551,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
         }
     
         public Builder mergeFrom(com.google.cloud.asset.v1.RelationshipAttributes other) {
    -      if (other == com.google.cloud.asset.v1.RelationshipAttributes.getDefaultInstance())
    -        return this;
    +      if (other == com.google.cloud.asset.v1.RelationshipAttributes.getDefaultInstance()) return this;
           if (!other.getType().isEmpty()) {
             type_ = other.type_;
             onChanged();
    @@ -680,7 +568,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.RelationshipAttributes other)
             action_ = other.action_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -695,37 +583,68 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.RelationshipAttributes parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10: {
    +              sourceResourceType_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 10
    +            case 18: {
    +              targetResourceType_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 18
    +            case 26: {
    +              action_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 26
    +            case 34: {
    +              type_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 34
    +            default: {
    +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                done = true; // was an endgroup tag
    +              }
    +              break;
    +            } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1.RelationshipAttributes) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
         private java.lang.Object type_ = "";
         /**
    -     *
    -     *
          * 
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string type = 4; - * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -734,22 +653,21 @@ public java.lang.String getType() { } } /** - * - * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string type = 4; - * * @return The bytes for type. */ - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -757,64 +675,57 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string type = 4; - * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(java.lang.String value) { + public Builder setType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** - * - * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string type = 4; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** - * - * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string type = 4; - * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes(com.google.protobuf.ByteString value) { + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; @@ -822,20 +733,18 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceResourceType_ = ""; /** - * - * *
          * The source asset type. Example: `compute.googleapis.com/Instance`
          * 
    * * string source_resource_type = 1; - * * @return The sourceResourceType. */ public java.lang.String getSourceResourceType() { java.lang.Object ref = sourceResourceType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceResourceType_ = s; return s; @@ -844,21 +753,20 @@ public java.lang.String getSourceResourceType() { } } /** - * - * *
          * The source asset type. Example: `compute.googleapis.com/Instance`
          * 
    * * string source_resource_type = 1; - * * @return The bytes for sourceResourceType. */ - public com.google.protobuf.ByteString getSourceResourceTypeBytes() { + public com.google.protobuf.ByteString + getSourceResourceTypeBytes() { java.lang.Object ref = sourceResourceType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceResourceType_ = b; return b; } else { @@ -866,61 +774,54 @@ public com.google.protobuf.ByteString getSourceResourceTypeBytes() { } } /** - * - * *
          * The source asset type. Example: `compute.googleapis.com/Instance`
          * 
    * * string source_resource_type = 1; - * * @param value The sourceResourceType to set. * @return This builder for chaining. */ - public Builder setSourceResourceType(java.lang.String value) { + public Builder setSourceResourceType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceResourceType_ = value; onChanged(); return this; } /** - * - * *
          * The source asset type. Example: `compute.googleapis.com/Instance`
          * 
    * * string source_resource_type = 1; - * * @return This builder for chaining. */ public Builder clearSourceResourceType() { - + sourceResourceType_ = getDefaultInstance().getSourceResourceType(); onChanged(); return this; } /** - * - * *
          * The source asset type. Example: `compute.googleapis.com/Instance`
          * 
    * * string source_resource_type = 1; - * * @param value The bytes for sourceResourceType to set. * @return This builder for chaining. */ - public Builder setSourceResourceTypeBytes(com.google.protobuf.ByteString value) { + public Builder setSourceResourceTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceResourceType_ = value; onChanged(); return this; @@ -928,20 +829,18 @@ public Builder setSourceResourceTypeBytes(com.google.protobuf.ByteString value) private java.lang.Object targetResourceType_ = ""; /** - * - * *
          * The target asset type. Example: `compute.googleapis.com/Disk`
          * 
    * * string target_resource_type = 2; - * * @return The targetResourceType. */ public java.lang.String getTargetResourceType() { java.lang.Object ref = targetResourceType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetResourceType_ = s; return s; @@ -950,21 +849,20 @@ public java.lang.String getTargetResourceType() { } } /** - * - * *
          * The target asset type. Example: `compute.googleapis.com/Disk`
          * 
    * * string target_resource_type = 2; - * * @return The bytes for targetResourceType. */ - public com.google.protobuf.ByteString getTargetResourceTypeBytes() { + public com.google.protobuf.ByteString + getTargetResourceTypeBytes() { java.lang.Object ref = targetResourceType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetResourceType_ = b; return b; } else { @@ -972,61 +870,54 @@ public com.google.protobuf.ByteString getTargetResourceTypeBytes() { } } /** - * - * *
          * The target asset type. Example: `compute.googleapis.com/Disk`
          * 
    * * string target_resource_type = 2; - * * @param value The targetResourceType to set. * @return This builder for chaining. */ - public Builder setTargetResourceType(java.lang.String value) { + public Builder setTargetResourceType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetResourceType_ = value; onChanged(); return this; } /** - * - * *
          * The target asset type. Example: `compute.googleapis.com/Disk`
          * 
    * * string target_resource_type = 2; - * * @return This builder for chaining. */ public Builder clearTargetResourceType() { - + targetResourceType_ = getDefaultInstance().getTargetResourceType(); onChanged(); return this; } /** - * - * *
          * The target asset type. Example: `compute.googleapis.com/Disk`
          * 
    * * string target_resource_type = 2; - * * @param value The bytes for targetResourceType to set. * @return This builder for chaining. */ - public Builder setTargetResourceTypeBytes(com.google.protobuf.ByteString value) { + public Builder setTargetResourceTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetResourceType_ = value; onChanged(); return this; @@ -1034,20 +925,18 @@ public Builder setTargetResourceTypeBytes(com.google.protobuf.ByteString value) private java.lang.Object action_ = ""; /** - * - * *
          * The detail of the relationship, e.g. `contains`, `attaches`
          * 
    * * string action = 3; - * * @return The action. */ public java.lang.String getAction() { java.lang.Object ref = action_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); action_ = s; return s; @@ -1056,21 +945,20 @@ public java.lang.String getAction() { } } /** - * - * *
          * The detail of the relationship, e.g. `contains`, `attaches`
          * 
    * * string action = 3; - * * @return The bytes for action. */ - public com.google.protobuf.ByteString getActionBytes() { + public com.google.protobuf.ByteString + getActionBytes() { java.lang.Object ref = action_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); action_ = b; return b; } else { @@ -1078,68 +966,61 @@ public com.google.protobuf.ByteString getActionBytes() { } } /** - * - * *
          * The detail of the relationship, e.g. `contains`, `attaches`
          * 
    * * string action = 3; - * * @param value The action to set. * @return This builder for chaining. */ - public Builder setAction(java.lang.String value) { + public Builder setAction( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + action_ = value; onChanged(); return this; } /** - * - * *
          * The detail of the relationship, e.g. `contains`, `attaches`
          * 
    * * string action = 3; - * * @return This builder for chaining. */ public Builder clearAction() { - + action_ = getDefaultInstance().getAction(); onChanged(); return this; } /** - * - * *
          * The detail of the relationship, e.g. `contains`, `attaches`
          * 
    * * string action = 3; - * * @param value The bytes for action to set. * @return This builder for chaining. */ - public Builder setActionBytes(com.google.protobuf.ByteString value) { + public Builder setActionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + action_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1149,12 +1030,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.RelationshipAttributes) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.RelationshipAttributes) private static final com.google.cloud.asset.v1.RelationshipAttributes DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.RelationshipAttributes(); } @@ -1163,16 +1044,27 @@ public static com.google.cloud.asset.v1.RelationshipAttributes getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RelationshipAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RelationshipAttributes(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelationshipAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1187,4 +1079,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.RelationshipAttributes getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributesOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributesOrBuilder.java similarity index 65% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributesOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributesOrBuilder.java index 254c4fbbba60..5030889b1b69 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributesOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributesOrBuilder.java @@ -1,128 +1,91 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; -@java.lang.Deprecated -public interface RelationshipAttributesOrBuilder - extends +@java.lang.Deprecated public interface RelationshipAttributesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.RelationshipAttributes) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The unique identifier of the relationship type. Example:
        * `INSTANCE_TO_INSTANCEGROUP`
        * 
    * * string type = 4; - * * @return The type. */ java.lang.String getType(); /** - * - * *
        * The unique identifier of the relationship type. Example:
        * `INSTANCE_TO_INSTANCEGROUP`
        * 
    * * string type = 4; - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); /** - * - * *
        * The source asset type. Example: `compute.googleapis.com/Instance`
        * 
    * * string source_resource_type = 1; - * * @return The sourceResourceType. */ java.lang.String getSourceResourceType(); /** - * - * *
        * The source asset type. Example: `compute.googleapis.com/Instance`
        * 
    * * string source_resource_type = 1; - * * @return The bytes for sourceResourceType. */ - com.google.protobuf.ByteString getSourceResourceTypeBytes(); + com.google.protobuf.ByteString + getSourceResourceTypeBytes(); /** - * - * *
        * The target asset type. Example: `compute.googleapis.com/Disk`
        * 
    * * string target_resource_type = 2; - * * @return The targetResourceType. */ java.lang.String getTargetResourceType(); /** - * - * *
        * The target asset type. Example: `compute.googleapis.com/Disk`
        * 
    * * string target_resource_type = 2; - * * @return The bytes for targetResourceType. */ - com.google.protobuf.ByteString getTargetResourceTypeBytes(); + com.google.protobuf.ByteString + getTargetResourceTypeBytes(); /** - * - * *
        * The detail of the relationship, e.g. `contains`, `attaches`
        * 
    * * string action = 3; - * * @return The action. */ java.lang.String getAction(); /** - * - * *
        * The detail of the relationship, e.g. `contains`, `attaches`
        * 
    * * string action = 3; - * * @return The bytes for action. */ - com.google.protobuf.ByteString getActionBytes(); + com.google.protobuf.ByteString + getActionBytes(); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java similarity index 74% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java index 792696ab6fa7..0859118b1219 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** - * - * *
      * A representation of a Google Cloud resource.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.Resource} */ -public final class Resource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Resource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.Resource) ResourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Resource.newBuilder() to construct. private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Resource() { version_ = ""; discoveryDocumentUri_ = ""; @@ -48,136 +30,37 @@ private Resource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Resource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + 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(); - - version_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - discoveryDocumentUri_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - discoveryName_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - resourceUrl_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 50: - { - com.google.protobuf.Struct.Builder subBuilder = null; - if (data_ != null) { - subBuilder = data_.toBuilder(); - } - data_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(data_); - data_ = subBuilder.buildPartial(); - } - - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - location_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_Resource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_Resource_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.Resource.class, - com.google.cloud.asset.v1.Resource.Builder.class); + com.google.cloud.asset.v1.Resource.class, com.google.cloud.asset.v1.Resource.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** - * - * *
        * The API version. Example: `v1`
        * 
    * * string version = 1; - * * @return The version. */ @java.lang.Override @@ -186,29 +69,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
        * The API version. Example: `v1`
        * 
    * * string version = 1; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -219,8 +102,6 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int DISCOVERY_DOCUMENT_URI_FIELD_NUMBER = 2; private volatile java.lang.Object discoveryDocumentUri_; /** - * - * *
        * The URL of the discovery document containing the resource's JSON schema.
        * Example:
    @@ -230,7 +111,6 @@ public com.google.protobuf.ByteString getVersionBytes() {
        * 
    * * string discovery_document_uri = 2; - * * @return The discoveryDocumentUri. */ @java.lang.Override @@ -239,15 +119,14 @@ public java.lang.String getDiscoveryDocumentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryDocumentUri_ = s; return s; } } /** - * - * *
        * The URL of the discovery document containing the resource's JSON schema.
        * Example:
    @@ -257,15 +136,16 @@ public java.lang.String getDiscoveryDocumentUri() {
        * 
    * * string discovery_document_uri = 2; - * * @return The bytes for discoveryDocumentUri. */ @java.lang.Override - public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { + public com.google.protobuf.ByteString + getDiscoveryDocumentUriBytes() { java.lang.Object ref = discoveryDocumentUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); discoveryDocumentUri_ = b; return b; } else { @@ -276,8 +156,6 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { public static final int DISCOVERY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object discoveryName_; /** - * - * *
        * The JSON schema name listed in the discovery document. Example:
        * `Project`
    @@ -286,7 +164,6 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() {
        * 
    * * string discovery_name = 3; - * * @return The discoveryName. */ @java.lang.Override @@ -295,15 +172,14 @@ public java.lang.String getDiscoveryName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryName_ = s; return s; } } /** - * - * *
        * The JSON schema name listed in the discovery document. Example:
        * `Project`
    @@ -312,15 +188,16 @@ public java.lang.String getDiscoveryName() {
        * 
    * * string discovery_name = 3; - * * @return The bytes for discoveryName. */ @java.lang.Override - public com.google.protobuf.ByteString getDiscoveryNameBytes() { + public com.google.protobuf.ByteString + getDiscoveryNameBytes() { java.lang.Object ref = discoveryName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); discoveryName_ = b; return b; } else { @@ -331,8 +208,6 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() { public static final int RESOURCE_URL_FIELD_NUMBER = 4; private volatile java.lang.Object resourceUrl_; /** - * - * *
        * The REST URL for accessing the resource. An HTTP `GET` request using this
        * URL returns the resource itself. Example:
    @@ -341,7 +216,6 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() {
        * 
    * * string resource_url = 4; - * * @return The resourceUrl. */ @java.lang.Override @@ -350,15 +224,14 @@ public java.lang.String getResourceUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; } } /** - * - * *
        * The REST URL for accessing the resource. An HTTP `GET` request using this
        * URL returns the resource itself. Example:
    @@ -367,15 +240,16 @@ public java.lang.String getResourceUrl() {
        * 
    * * string resource_url = 4; - * * @return The bytes for resourceUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceUrlBytes() { + public com.google.protobuf.ByteString + getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -386,8 +260,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { public static final int PARENT_FIELD_NUMBER = 5; private volatile java.lang.Object parent_; /** - * - * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -402,7 +274,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() {
        * 
    * * string parent = 5; - * * @return The parent. */ @java.lang.Override @@ -411,15 +282,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -434,15 +304,16 @@ public java.lang.String getParent() {
        * 
    * * string parent = 5; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -453,15 +324,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int DATA_FIELD_NUMBER = 6; private com.google.protobuf.Struct data_; /** - * - * *
        * The content of the resource, in which some sensitive fields are removed
        * and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; - * * @return Whether the data field is set. */ @java.lang.Override @@ -469,15 +337,12 @@ public boolean hasData() { return data_ != null; } /** - * - * *
        * The content of the resource, in which some sensitive fields are removed
        * and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; - * * @return The data. */ @java.lang.Override @@ -485,8 +350,6 @@ public com.google.protobuf.Struct getData() { return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_; } /** - * - * *
        * The content of the resource, in which some sensitive fields are removed
        * and may not be present.
    @@ -502,15 +365,12 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
       public static final int LOCATION_FIELD_NUMBER = 8;
       private volatile java.lang.Object location_;
       /**
    -   *
    -   *
        * 
        * The location of the resource in Google Cloud, such as its zone and region.
        * For more information, see https://cloud.google.com/about/locations/.
        * 
    * * string location = 8; - * * @return The location. */ @java.lang.Override @@ -519,30 +379,30 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** - * - * *
        * The location of the resource in Google Cloud, such as its zone and region.
        * For more information, see https://cloud.google.com/about/locations/.
        * 
    * * string location = 8; - * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -551,7 +411,6 @@ public com.google.protobuf.ByteString getLocationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -563,7 +422,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } @@ -585,7 +445,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, location_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -610,12 +470,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_); } if (data_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getData()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getData()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, location_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -623,24 +484,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.Resource)) { return super.equals(obj); } com.google.cloud.asset.v1.Resource other = (com.google.cloud.asset.v1.Resource) obj; - if (!getVersion().equals(other.getVersion())) return false; - if (!getDiscoveryDocumentUri().equals(other.getDiscoveryDocumentUri())) return false; - if (!getDiscoveryName().equals(other.getDiscoveryName())) return false; - if (!getResourceUrl().equals(other.getResourceUrl())) return false; - if (!getParent().equals(other.getParent())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getDiscoveryDocumentUri() + .equals(other.getDiscoveryDocumentUri())) return false; + if (!getDiscoveryName() + .equals(other.getDiscoveryName())) return false; + if (!getResourceUrl() + .equals(other.getResourceUrl())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasData() != other.hasData()) return false; if (hasData()) { - if (!getData().equals(other.getData())) return false; + if (!getData() + .equals(other.getData())) return false; } - if (!getLocation().equals(other.getLocation())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getLocation() + .equals(other.getLocation())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -667,147 +535,135 @@ public int hashCode() { } hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.Resource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.Resource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.Resource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.Resource parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.asset.v1.Resource parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.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.asset.v1.Resource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.Resource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.Resource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.Resource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.Resource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.Resource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.Resource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.Resource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * A representation of a Google Cloud resource.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.Resource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.Resource) com.google.cloud.asset.v1.ResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_Resource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_Resource_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.Resource.class, - com.google.cloud.asset.v1.Resource.Builder.class); + com.google.cloud.asset.v1.Resource.class, com.google.cloud.asset.v1.Resource.Builder.class); } // Construct using com.google.cloud.asset.v1.Resource.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -833,9 +689,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_Resource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_Resource_descriptor; } @java.lang.Override @@ -874,39 +730,38 @@ public com.google.cloud.asset.v1.Resource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.Resource) { - return mergeFrom((com.google.cloud.asset.v1.Resource) other); + return mergeFrom((com.google.cloud.asset.v1.Resource)other); } else { super.mergeFrom(other); return this; @@ -942,7 +797,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.Resource other) { location_ = other.location_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -957,36 +812,84 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.Resource parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + version_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + discoveryDocumentUri_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + discoveryName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + resourceUrl_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + input.readMessage( + getDataFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 50 + case 66: { + location_ = input.readStringRequireUtf8(); + + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.Resource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object version_ = ""; /** - * - * *
          * The API version. Example: `v1`
          * 
    * * string version = 1; - * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -995,21 +898,20 @@ public java.lang.String getVersion() { } } /** - * - * *
          * The API version. Example: `v1`
          * 
    * * string version = 1; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -1017,61 +919,54 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
          * The API version. Example: `v1`
          * 
    * * string version = 1; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
          * The API version. Example: `v1`
          * 
    * * string version = 1; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
          * The API version. Example: `v1`
          * 
    * * string version = 1; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -1079,8 +974,6 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { private java.lang.Object discoveryDocumentUri_ = ""; /** - * - * *
          * The URL of the discovery document containing the resource's JSON schema.
          * Example:
    @@ -1090,13 +983,13 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) {
          * 
    * * string discovery_document_uri = 2; - * * @return The discoveryDocumentUri. */ public java.lang.String getDiscoveryDocumentUri() { java.lang.Object ref = discoveryDocumentUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryDocumentUri_ = s; return s; @@ -1105,8 +998,6 @@ public java.lang.String getDiscoveryDocumentUri() { } } /** - * - * *
          * The URL of the discovery document containing the resource's JSON schema.
          * Example:
    @@ -1116,14 +1007,15 @@ public java.lang.String getDiscoveryDocumentUri() {
          * 
    * * string discovery_document_uri = 2; - * * @return The bytes for discoveryDocumentUri. */ - public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { + public com.google.protobuf.ByteString + getDiscoveryDocumentUriBytes() { java.lang.Object ref = discoveryDocumentUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); discoveryDocumentUri_ = b; return b; } else { @@ -1131,8 +1023,6 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { } } /** - * - * *
          * The URL of the discovery document containing the resource's JSON schema.
          * Example:
    @@ -1142,22 +1032,20 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() {
          * 
    * * string discovery_document_uri = 2; - * * @param value The discoveryDocumentUri to set. * @return This builder for chaining. */ - public Builder setDiscoveryDocumentUri(java.lang.String value) { + public Builder setDiscoveryDocumentUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + discoveryDocumentUri_ = value; onChanged(); return this; } /** - * - * *
          * The URL of the discovery document containing the resource's JSON schema.
          * Example:
    @@ -1167,18 +1055,15 @@ public Builder setDiscoveryDocumentUri(java.lang.String value) {
          * 
    * * string discovery_document_uri = 2; - * * @return This builder for chaining. */ public Builder clearDiscoveryDocumentUri() { - + discoveryDocumentUri_ = getDefaultInstance().getDiscoveryDocumentUri(); onChanged(); return this; } /** - * - * *
          * The URL of the discovery document containing the resource's JSON schema.
          * Example:
    @@ -1188,16 +1073,16 @@ public Builder clearDiscoveryDocumentUri() {
          * 
    * * string discovery_document_uri = 2; - * * @param value The bytes for discoveryDocumentUri to set. * @return This builder for chaining. */ - public Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value) { + public Builder setDiscoveryDocumentUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + discoveryDocumentUri_ = value; onChanged(); return this; @@ -1205,8 +1090,6 @@ public Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value private java.lang.Object discoveryName_ = ""; /** - * - * *
          * The JSON schema name listed in the discovery document. Example:
          * `Project`
    @@ -1215,13 +1098,13 @@ public Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value
          * 
    * * string discovery_name = 3; - * * @return The discoveryName. */ public java.lang.String getDiscoveryName() { java.lang.Object ref = discoveryName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryName_ = s; return s; @@ -1230,8 +1113,6 @@ public java.lang.String getDiscoveryName() { } } /** - * - * *
          * The JSON schema name listed in the discovery document. Example:
          * `Project`
    @@ -1240,14 +1121,15 @@ public java.lang.String getDiscoveryName() {
          * 
    * * string discovery_name = 3; - * * @return The bytes for discoveryName. */ - public com.google.protobuf.ByteString getDiscoveryNameBytes() { + public com.google.protobuf.ByteString + getDiscoveryNameBytes() { java.lang.Object ref = discoveryName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); discoveryName_ = b; return b; } else { @@ -1255,8 +1137,6 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() { } } /** - * - * *
          * The JSON schema name listed in the discovery document. Example:
          * `Project`
    @@ -1265,22 +1145,20 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() {
          * 
    * * string discovery_name = 3; - * * @param value The discoveryName to set. * @return This builder for chaining. */ - public Builder setDiscoveryName(java.lang.String value) { + public Builder setDiscoveryName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + discoveryName_ = value; onChanged(); return this; } /** - * - * *
          * The JSON schema name listed in the discovery document. Example:
          * `Project`
    @@ -1289,18 +1167,15 @@ public Builder setDiscoveryName(java.lang.String value) {
          * 
    * * string discovery_name = 3; - * * @return This builder for chaining. */ public Builder clearDiscoveryName() { - + discoveryName_ = getDefaultInstance().getDiscoveryName(); onChanged(); return this; } /** - * - * *
          * The JSON schema name listed in the discovery document. Example:
          * `Project`
    @@ -1309,16 +1184,16 @@ public Builder clearDiscoveryName() {
          * 
    * * string discovery_name = 3; - * * @param value The bytes for discoveryName to set. * @return This builder for chaining. */ - public Builder setDiscoveryNameBytes(com.google.protobuf.ByteString value) { + public Builder setDiscoveryNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + discoveryName_ = value; onChanged(); return this; @@ -1326,8 +1201,6 @@ public Builder setDiscoveryNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceUrl_ = ""; /** - * - * *
          * The REST URL for accessing the resource. An HTTP `GET` request using this
          * URL returns the resource itself. Example:
    @@ -1336,13 +1209,13 @@ public Builder setDiscoveryNameBytes(com.google.protobuf.ByteString value) {
          * 
    * * string resource_url = 4; - * * @return The resourceUrl. */ public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; @@ -1351,8 +1224,6 @@ public java.lang.String getResourceUrl() { } } /** - * - * *
          * The REST URL for accessing the resource. An HTTP `GET` request using this
          * URL returns the resource itself. Example:
    @@ -1361,14 +1232,15 @@ public java.lang.String getResourceUrl() {
          * 
    * * string resource_url = 4; - * * @return The bytes for resourceUrl. */ - public com.google.protobuf.ByteString getResourceUrlBytes() { + public com.google.protobuf.ByteString + getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -1376,8 +1248,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { } } /** - * - * *
          * The REST URL for accessing the resource. An HTTP `GET` request using this
          * URL returns the resource itself. Example:
    @@ -1386,22 +1256,20 @@ public com.google.protobuf.ByteString getResourceUrlBytes() {
          * 
    * * string resource_url = 4; - * * @param value The resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrl(java.lang.String value) { + public Builder setResourceUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceUrl_ = value; onChanged(); return this; } /** - * - * *
          * The REST URL for accessing the resource. An HTTP `GET` request using this
          * URL returns the resource itself. Example:
    @@ -1410,18 +1278,15 @@ public Builder setResourceUrl(java.lang.String value) {
          * 
    * * string resource_url = 4; - * * @return This builder for chaining. */ public Builder clearResourceUrl() { - + resourceUrl_ = getDefaultInstance().getResourceUrl(); onChanged(); return this; } /** - * - * *
          * The REST URL for accessing the resource. An HTTP `GET` request using this
          * URL returns the resource itself. Example:
    @@ -1430,16 +1295,16 @@ public Builder clearResourceUrl() {
          * 
    * * string resource_url = 4; - * * @param value The bytes for resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { + public Builder setResourceUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceUrl_ = value; onChanged(); return this; @@ -1447,8 +1312,6 @@ public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object parent_ = ""; /** - * - * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1463,13 +1326,13 @@ public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) {
          * 
    * * string parent = 5; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1478,8 +1341,6 @@ public java.lang.String getParent() { } } /** - * - * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1494,14 +1355,15 @@ public java.lang.String getParent() {
          * 
    * * string parent = 5; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1509,8 +1371,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1525,22 +1385,20 @@ public com.google.protobuf.ByteString getParentBytes() {
          * 
    * * string parent = 5; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1555,18 +1413,15 @@ public Builder setParent(java.lang.String value) {
          * 
    * * string parent = 5; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1581,16 +1436,16 @@ public Builder clearParent() {
          * 
    * * string parent = 5; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1598,35 +1453,26 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Struct data_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - dataBuilder_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> dataBuilder_; /** - * - * *
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
          * 
    * * .google.protobuf.Struct data = 6; - * * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** - * - * *
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
          * 
    * * .google.protobuf.Struct data = 6; - * * @return The data. */ public com.google.protobuf.Struct getData() { @@ -1637,8 +1483,6 @@ public com.google.protobuf.Struct getData() { } } /** - * - * *
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1660,8 +1504,6 @@ public Builder setData(com.google.protobuf.Struct value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1669,7 +1511,8 @@ public Builder setData(com.google.protobuf.Struct value) {
          *
          * .google.protobuf.Struct data = 6;
          */
    -    public Builder setData(com.google.protobuf.Struct.Builder builderForValue) {
    +    public Builder setData(
    +        com.google.protobuf.Struct.Builder builderForValue) {
           if (dataBuilder_ == null) {
             data_ = builderForValue.build();
             onChanged();
    @@ -1680,8 +1523,6 @@ public Builder setData(com.google.protobuf.Struct.Builder builderForValue) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1692,7 +1533,8 @@ public Builder setData(com.google.protobuf.Struct.Builder builderForValue) {
         public Builder mergeData(com.google.protobuf.Struct value) {
           if (dataBuilder_ == null) {
             if (data_ != null) {
    -          data_ = com.google.protobuf.Struct.newBuilder(data_).mergeFrom(value).buildPartial();
    +          data_ =
    +            com.google.protobuf.Struct.newBuilder(data_).mergeFrom(value).buildPartial();
             } else {
               data_ = value;
             }
    @@ -1704,8 +1546,6 @@ public Builder mergeData(com.google.protobuf.Struct value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1725,8 +1565,6 @@ public Builder clearData() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1735,13 +1573,11 @@ public Builder clearData() {
          * .google.protobuf.Struct data = 6;
          */
         public com.google.protobuf.Struct.Builder getDataBuilder() {
    -
    +      
           onChanged();
           return getDataFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1753,12 +1589,11 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
           if (dataBuilder_ != null) {
             return dataBuilder_.getMessageOrBuilder();
           } else {
    -        return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_;
    +        return data_ == null ?
    +            com.google.protobuf.Struct.getDefaultInstance() : data_;
           }
         }
         /**
    -     *
    -     *
          * 
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1767,16 +1602,14 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
          * .google.protobuf.Struct data = 6;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Struct,
    -            com.google.protobuf.Struct.Builder,
    -            com.google.protobuf.StructOrBuilder>
    +        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
             getDataFieldBuilder() {
           if (dataBuilder_ == null) {
    -        dataBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.protobuf.Struct,
    -                com.google.protobuf.Struct.Builder,
    -                com.google.protobuf.StructOrBuilder>(getData(), getParentForChildren(), isClean());
    +        dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
    +                getData(),
    +                getParentForChildren(),
    +                isClean());
             data_ = null;
           }
           return dataBuilder_;
    @@ -1784,21 +1617,19 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
     
         private java.lang.Object location_ = "";
         /**
    -     *
    -     *
          * 
          * The location of the resource in Google Cloud, such as its zone and region.
          * For more information, see https://cloud.google.com/about/locations/.
          * 
    * * string location = 8; - * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -1807,22 +1638,21 @@ public java.lang.String getLocation() { } } /** - * - * *
          * The location of the resource in Google Cloud, such as its zone and region.
          * For more information, see https://cloud.google.com/about/locations/.
          * 
    * * string location = 8; - * * @return The bytes for location. */ - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -1830,71 +1660,64 @@ public com.google.protobuf.ByteString getLocationBytes() { } } /** - * - * *
          * The location of the resource in Google Cloud, such as its zone and region.
          * For more information, see https://cloud.google.com/about/locations/.
          * 
    * * string location = 8; - * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation(java.lang.String value) { + public Builder setLocation( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** - * - * *
          * The location of the resource in Google Cloud, such as its zone and region.
          * For more information, see https://cloud.google.com/about/locations/.
          * 
    * * string location = 8; - * * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** - * - * *
          * The location of the resource in Google Cloud, such as its zone and region.
          * For more information, see https://cloud.google.com/about/locations/.
          * 
    * * string location = 8; - * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1904,12 +1727,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.Resource) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.Resource) private static final com.google.cloud.asset.v1.Resource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.Resource(); } @@ -1918,16 +1741,27 @@ public static com.google.cloud.asset.v1.Resource getDefaultInstance() { return DEFAULT_INSTANCE; } - 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); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1942,4 +1776,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.Resource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java similarity index 82% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java index 72cf57aa5294..ba179d56e8d2 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java @@ -1,56 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; -public interface ResourceOrBuilder - extends +public interface ResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.Resource) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The API version. Example: `v1`
        * 
    * * string version = 1; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
        * The API version. Example: `v1`
        * 
    * * string version = 1; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
        * The URL of the discovery document containing the resource's JSON schema.
        * Example:
    @@ -60,13 +37,10 @@ public interface ResourceOrBuilder
        * 
    * * string discovery_document_uri = 2; - * * @return The discoveryDocumentUri. */ java.lang.String getDiscoveryDocumentUri(); /** - * - * *
        * The URL of the discovery document containing the resource's JSON schema.
        * Example:
    @@ -76,14 +50,12 @@ public interface ResourceOrBuilder
        * 
    * * string discovery_document_uri = 2; - * * @return The bytes for discoveryDocumentUri. */ - com.google.protobuf.ByteString getDiscoveryDocumentUriBytes(); + com.google.protobuf.ByteString + getDiscoveryDocumentUriBytes(); /** - * - * *
        * The JSON schema name listed in the discovery document. Example:
        * `Project`
    @@ -92,13 +64,10 @@ public interface ResourceOrBuilder
        * 
    * * string discovery_name = 3; - * * @return The discoveryName. */ java.lang.String getDiscoveryName(); /** - * - * *
        * The JSON schema name listed in the discovery document. Example:
        * `Project`
    @@ -107,14 +76,12 @@ public interface ResourceOrBuilder
        * 
    * * string discovery_name = 3; - * * @return The bytes for discoveryName. */ - com.google.protobuf.ByteString getDiscoveryNameBytes(); + com.google.protobuf.ByteString + getDiscoveryNameBytes(); /** - * - * *
        * The REST URL for accessing the resource. An HTTP `GET` request using this
        * URL returns the resource itself. Example:
    @@ -123,13 +90,10 @@ public interface ResourceOrBuilder
        * 
    * * string resource_url = 4; - * * @return The resourceUrl. */ java.lang.String getResourceUrl(); /** - * - * *
        * The REST URL for accessing the resource. An HTTP `GET` request using this
        * URL returns the resource itself. Example:
    @@ -138,14 +102,12 @@ public interface ResourceOrBuilder
        * 
    * * string resource_url = 4; - * * @return The bytes for resourceUrl. */ - com.google.protobuf.ByteString getResourceUrlBytes(); + com.google.protobuf.ByteString + getResourceUrlBytes(); /** - * - * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -160,13 +122,10 @@ public interface ResourceOrBuilder
        * 
    * * string parent = 5; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -181,40 +140,32 @@ public interface ResourceOrBuilder
        * 
    * * string parent = 5; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
        * The content of the resource, in which some sensitive fields are removed
        * and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; - * * @return Whether the data field is set. */ boolean hasData(); /** - * - * *
        * The content of the resource, in which some sensitive fields are removed
        * and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; - * * @return The data. */ com.google.protobuf.Struct getData(); /** - * - * *
        * The content of the resource, in which some sensitive fields are removed
        * and may not be present.
    @@ -225,29 +176,24 @@ public interface ResourceOrBuilder
       com.google.protobuf.StructOrBuilder getDataOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * The location of the resource in Google Cloud, such as its zone and region.
        * For more information, see https://cloud.google.com/about/locations/.
        * 
    * * string location = 8; - * * @return The location. */ java.lang.String getLocation(); /** - * - * *
        * The location of the resource in Google Cloud, such as its zone and region.
        * For more information, see https://cloud.google.com/about/locations/.
        * 
    * * string location = 8; - * * @return The bytes for location. */ - com.google.protobuf.ByteString getLocationBytes(); + com.google.protobuf.ByteString + getLocationBytes(); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResult.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResult.java similarity index 73% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResult.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResult.java index afce56305eaf..ab32175f294f 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResult.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResult.java @@ -1,43 +1,25 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** - * - * *
      * A result of Resource Search, containing information of a cloud resource.
    - * Next ID: 29
    + * Next ID: 31
      * 
    * * Protobuf type {@code google.cloud.asset.v1.ResourceSearchResult} */ -public final class ResourceSearchResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ResourceSearchResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.ResourceSearchResult) ResourceSearchResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ResourceSearchResult.newBuilder() to construct. private ResourceSearchResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ResourceSearchResult() { name_ = ""; assetType_ = ""; @@ -49,6 +31,7 @@ private ResourceSearchResult() { location_ = ""; networkTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; kmsKey_ = ""; + kmsKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; state_ = ""; parentFullResourceName_ = ""; versionedResources_ = java.util.Collections.emptyList(); @@ -61,337 +44,46 @@ private ResourceSearchResult() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ResourceSearchResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private ResourceSearchResult( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - assetType_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - location_ = s; - break; - } - case 58: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - networkTags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - networkTags_.add(s); - break; - } - case 74: - { - com.google.protobuf.Struct.Builder subBuilder = null; - if (additionalAttributes_ != null) { - subBuilder = additionalAttributes_.toBuilder(); - } - additionalAttributes_ = - input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(additionalAttributes_); - additionalAttributes_ = subBuilder.buildPartial(); - } - - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - - kmsKey_ = s; - break; - } - case 90: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 98: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 106: - { - java.lang.String s = input.readStringRequireUtf8(); - - state_ = s; - break; - } - case 130: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - versionedResources_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - versionedResources_.add( - input.readMessage( - com.google.cloud.asset.v1.VersionedResource.parser(), extensionRegistry)); - break; - } - case 138: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - folders_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - folders_.add(s); - break; - } - case 146: - { - java.lang.String s = input.readStringRequireUtf8(); - - organization_ = s; - break; - } - case 154: - { - java.lang.String s = input.readStringRequireUtf8(); - - parentFullResourceName_ = s; - break; - } - case 162: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - attachedResources_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - attachedResources_.add( - input.readMessage( - com.google.cloud.asset.v1.AttachedResource.parser(), extensionRegistry)); - break; - } - case 170: - { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - relationships_ = - com.google.protobuf.MapField.newMapField( - RelationshipsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000020; - } - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.asset.v1.RelatedResources> - relationships__ = - input.readMessage( - RelationshipsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - relationships_ - .getMutableMap() - .put(relationships__.getKey(), relationships__.getValue()); - break; - } - case 186: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - tagKeys_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000040; - } - tagKeys_.add(s); - break; - } - case 202: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000080) != 0)) { - tagValues_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000080; - } - tagValues_.add(s); - break; - } - case 210: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000100) != 0)) { - tagValueIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000100; - } - tagValueIds_.add(s); - break; - } - case 826: - { - java.lang.String s = input.readStringRequireUtf8(); - - parentAssetType_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - networkTags_ = networkTags_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - versionedResources_ = java.util.Collections.unmodifiableList(versionedResources_); - } - if (((mutable_bitField0_ & 0x00000001) != 0)) { - folders_ = folders_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - attachedResources_ = java.util.Collections.unmodifiableList(attachedResources_); - } - if (((mutable_bitField0_ & 0x00000040) != 0)) { - tagKeys_ = tagKeys_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000080) != 0)) { - tagValues_ = tagValues_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000100) != 0)) { - tagValueIds_ = tagValueIds_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 7: return internalGetLabels(); case 21: return internalGetRelationships(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_ResourceSearchResult_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_ResourceSearchResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ResourceSearchResult.class, - com.google.cloud.asset.v1.ResourceSearchResult.Builder.class); + com.google.cloud.asset.v1.ResourceSearchResult.class, com.google.cloud.asset.v1.ResourceSearchResult.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
        * The full resource name of this resource. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -399,12 +91,11 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
        * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
        * for more information.
        * To search against the `name`:
    -   * * use a field query. Example: `name:instance1`
    -   * * use a free text query. Example: `instance1`
    +   * * Use a field query. Example: `name:instance1`
    +   * * Use a free text query. Example: `instance1`
        * 
    * * string name = 1; - * * @return The name. */ @java.lang.Override @@ -413,15 +104,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + 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 this resource. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -429,20 +119,21 @@ public java.lang.String getName() {
        * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
        * for more information.
        * To search against the `name`:
    -   * * use a field query. Example: `name:instance1`
    -   * * use a free text query. Example: `instance1`
    +   * * Use a field query. Example: `name:instance1`
    +   * * Use a free text query. Example: `instance1`
        * 
    * * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -453,16 +144,13 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ASSET_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object assetType_; /** - * - * *
        * The type of this resource. Example: `compute.googleapis.com/Disk`.
        * To search against the `asset_type`:
    -   * * specify the `asset_type` field in your search request.
    +   * * Specify the `asset_type` field in your search request.
        * 
    * * string asset_type = 2; - * * @return The assetType. */ @java.lang.Override @@ -471,31 +159,31 @@ public java.lang.String getAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; } } /** - * - * *
        * The type of this resource. Example: `compute.googleapis.com/Disk`.
        * To search against the `asset_type`:
    -   * * specify the `asset_type` field in your search request.
    +   * * Specify the `asset_type` field in your search request.
        * 
    * * string asset_type = 2; - * * @return The bytes for assetType. */ @java.lang.Override - public com.google.protobuf.ByteString getAssetTypeBytes() { + public com.google.protobuf.ByteString + getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetType_ = b; return b; } else { @@ -506,20 +194,17 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { public static final int PROJECT_FIELD_NUMBER = 3; private volatile java.lang.Object project_; /** - * - * *
        * The project that this resource belongs to, in the form of
        * projects/{PROJECT_NUMBER}. This field is available when the resource
        * belongs to a project.
        * To search against `project`:
    -   * * use a field query. Example: `project:12345`
    -   * * use a free text query. Example: `12345`
    -   * * specify the `scope` field as this project in your search request.
    +   * * Use a field query. Example: `project:12345`
    +   * * Use a free text query. Example: `12345`
    +   * * Specify the `scope` field as this project in your search request.
        * 
    * * string project = 3; - * * @return The project. */ @java.lang.Override @@ -528,35 +213,35 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** - * - * *
        * The project that this resource belongs to, in the form of
        * projects/{PROJECT_NUMBER}. This field is available when the resource
        * belongs to a project.
        * To search against `project`:
    -   * * use a field query. Example: `project:12345`
    -   * * use a free text query. Example: `12345`
    -   * * specify the `scope` field as this project in your search request.
    +   * * Use a field query. Example: `project:12345`
    +   * * Use a free text query. Example: `12345`
    +   * * Specify the `scope` field as this project in your search request.
        * 
    * * string project = 3; - * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -567,60 +252,52 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int FOLDERS_FIELD_NUMBER = 17; private com.google.protobuf.LazyStringList folders_; /** - * - * *
        * The folder(s) that this resource belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the resource
        * belongs to one or more folders.
        * To search against `folders`:
    -   * * use a field query. Example: `folders:(123 OR 456)`
    -   * * use a free text query. Example: `123`
    -   * * specify the `scope` field as this folder in your search request.
    +   * * Use a field query. Example: `folders:(123 OR 456)`
    +   * * Use a free text query. Example: `123`
    +   * * Specify the `scope` field as this folder in your search request.
        * 
    * * repeated string folders = 17; - * * @return A list containing the folders. */ - public com.google.protobuf.ProtocolStringList getFoldersList() { + public com.google.protobuf.ProtocolStringList + getFoldersList() { return folders_; } /** - * - * *
        * The folder(s) that this resource belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the resource
        * belongs to one or more folders.
        * To search against `folders`:
    -   * * use a field query. Example: `folders:(123 OR 456)`
    -   * * use a free text query. Example: `123`
    -   * * specify the `scope` field as this folder in your search request.
    +   * * Use a field query. Example: `folders:(123 OR 456)`
    +   * * Use a free text query. Example: `123`
    +   * * Specify the `scope` field as this folder in your search request.
        * 
    * * repeated string folders = 17; - * * @return The count of folders. */ public int getFoldersCount() { return folders_.size(); } /** - * - * *
        * The folder(s) that this resource belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the resource
        * belongs to one or more folders.
        * To search against `folders`:
    -   * * use a field query. Example: `folders:(123 OR 456)`
    -   * * use a free text query. Example: `123`
    -   * * specify the `scope` field as this folder in your search request.
    +   * * Use a field query. Example: `folders:(123 OR 456)`
    +   * * Use a free text query. Example: `123`
    +   * * Specify the `scope` field as this folder in your search request.
        * 
    * * repeated string folders = 17; - * * @param index The index of the element to return. * @return The folders at the given index. */ @@ -628,44 +305,39 @@ public java.lang.String getFolders(int index) { return folders_.get(index); } /** - * - * *
        * The folder(s) that this resource belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the resource
        * belongs to one or more folders.
        * To search against `folders`:
    -   * * use a field query. Example: `folders:(123 OR 456)`
    -   * * use a free text query. Example: `123`
    -   * * specify the `scope` field as this folder in your search request.
    +   * * Use a field query. Example: `folders:(123 OR 456)`
    +   * * Use a free text query. Example: `123`
    +   * * Specify the `scope` field as this folder in your search request.
        * 
    * * repeated string folders = 17; - * * @param index The index of the value to return. * @return The bytes of the folders at the given index. */ - public com.google.protobuf.ByteString getFoldersBytes(int index) { + public com.google.protobuf.ByteString + getFoldersBytes(int index) { return folders_.getByteString(index); } public static final int ORGANIZATION_FIELD_NUMBER = 18; private volatile java.lang.Object organization_; /** - * - * *
        * The organization that this resource belongs to, in the form of
        * organizations/{ORGANIZATION_NUMBER}. This field is available when the
        * resource belongs to an organization.
        * To search against `organization`:
    -   * * use a field query. Example: `organization:123`
    -   * * use a free text query. Example: `123`
    -   * * specify the `scope` field as this organization in your search request.
    +   * * Use a field query. Example: `organization:123`
    +   * * Use a free text query. Example: `123`
    +   * * Specify the `scope` field as this organization in your search request.
        * 
    * * string organization = 18; - * * @return The organization. */ @java.lang.Override @@ -674,35 +346,35 @@ public java.lang.String getOrganization() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organization_ = s; return s; } } /** - * - * *
        * The organization that this resource belongs to, in the form of
        * organizations/{ORGANIZATION_NUMBER}. This field is available when the
        * resource belongs to an organization.
        * To search against `organization`:
    -   * * use a field query. Example: `organization:123`
    -   * * use a free text query. Example: `123`
    -   * * specify the `scope` field as this organization in your search request.
    +   * * Use a field query. Example: `organization:123`
    +   * * Use a free text query. Example: `123`
    +   * * Specify the `scope` field as this organization in your search request.
        * 
    * * string organization = 18; - * * @return The bytes for organization. */ @java.lang.Override - public com.google.protobuf.ByteString getOrganizationBytes() { + public com.google.protobuf.ByteString + getOrganizationBytes() { java.lang.Object ref = organization_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); organization_ = b; return b; } else { @@ -713,18 +385,15 @@ public com.google.protobuf.ByteString getOrganizationBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 4; private volatile java.lang.Object displayName_; /** - * - * *
        * The display name of this resource. This field is available only when the
        * resource's Protobuf contains it.
        * To search against the `display_name`:
    -   * * use a field query. Example: `displayName:"My Instance"`
    -   * * use a free text query. Example: `"My Instance"`
    +   * * Use a field query. Example: `displayName:"My Instance"`
    +   * * Use a free text query. Example: `"My Instance"`
        * 
    * * string display_name = 4; - * * @return The displayName. */ @java.lang.Override @@ -733,33 +402,33 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
        * The display name of this resource. This field is available only when the
        * resource's Protobuf contains it.
        * To search against the `display_name`:
    -   * * use a field query. Example: `displayName:"My Instance"`
    -   * * use a free text query. Example: `"My Instance"`
    +   * * Use a field query. Example: `displayName:"My Instance"`
    +   * * Use a free text query. Example: `"My Instance"`
        * 
    * * string display_name = 4; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -770,19 +439,16 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 5; private volatile java.lang.Object description_; /** - * - * *
        * One or more paragraphs of text description of this resource. Maximum length
        * could be up to 1M bytes. This field is available only when the resource's
        * Protobuf contains it.
        * To search against the `description`:
    -   * * use a field query. Example: `description:"important instance"`
    -   * * use a free text query. Example: `"important instance"`
    +   * * Use a field query. Example: `description:"important instance"`
    +   * * Use a free text query. Example: `"important instance"`
        * 
    * * string description = 5; - * * @return The description. */ @java.lang.Override @@ -791,34 +457,34 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
        * One or more paragraphs of text description of this resource. Maximum length
        * could be up to 1M bytes. This field is available only when the resource's
        * Protobuf contains it.
        * To search against the `description`:
    -   * * use a field query. Example: `description:"important instance"`
    -   * * use a free text query. Example: `"important instance"`
    +   * * Use a field query. Example: `description:"important instance"`
    +   * * Use a free text query. Example: `"important instance"`
        * 
    * * string description = 5; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -829,19 +495,16 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int LOCATION_FIELD_NUMBER = 6; private volatile java.lang.Object location_; /** - * - * *
        * Location can be `global`, regional like `us-east1`, or zonal like
        * `us-west1-b`. This field is available only when the resource's Protobuf
        * contains it.
        * To search against the `location`:
    -   * * use a field query. Example: `location:us-west*`
    -   * * use a free text query. Example: `us-west*`
    +   * * Use a field query. Example: `location:us-west*`
    +   * * Use a free text query. Example: `us-west*`
        * 
    * * string location = 6; - * * @return The location. */ @java.lang.Override @@ -850,34 +513,34 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** - * - * *
        * Location can be `global`, regional like `us-east1`, or zonal like
        * `us-west1-b`. This field is available only when the resource's Protobuf
        * contains it.
        * To search against the `location`:
    -   * * use a field query. Example: `location:us-west*`
    -   * * use a free text query. Example: `us-west*`
    +   * * Use a field query. Example: `location:us-west*`
    +   * * Use a free text query. Example: `us-west*`
        * 
    * * string location = 6; - * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -886,23 +549,24 @@ public com.google.protobuf.ByteString getLocationBytes() { } public static final int LABELS_FIELD_NUMBER = 7; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_ResourceSearchResult_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_ResourceSearchResult_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -911,108 +575,106 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
        * for more information. This field is available only when the resource's
        * Protobuf contains it.
        * To search against the `labels`:
    -   * * use a field query:
    +   * * Use a field query:
        *     - query on any label's key or value. Example: `labels:prod`
        *     - query by a given label. Example: `labels.env:prod`
        *     - query by a given label's existence. Example: `labels.env:*`
    -   * * use a free text query. Example: `prod`
    +   * * Use a free text query. Example: `prod`
        * 
    * * map<string, string> labels = 7; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
        * for more information. This field is available only when the resource's
        * Protobuf contains it.
        * To search against the `labels`:
    -   * * use a field query:
    +   * * Use a field query:
        *     - query on any label's key or value. Example: `labels:prod`
        *     - query by a given label. Example: `labels.env:prod`
        *     - query by a given label's existence. Example: `labels.env:*`
    -   * * use a free text query. Example: `prod`
    +   * * Use a free text query. Example: `prod`
        * 
    * * map<string, string> labels = 7; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
        * for more information. This field is available only when the resource's
        * Protobuf contains it.
        * To search against the `labels`:
    -   * * use a field query:
    +   * * Use a field query:
        *     - query on any label's key or value. Example: `labels:prod`
        *     - query by a given label. Example: `labels.env:prod`
        *     - query by a given label's existence. Example: `labels.env:*`
    -   * * use a free text query. Example: `prod`
    +   * * Use a free text query. Example: `prod`
        * 
    * * map<string, string> labels = 7; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
        * for more information. This field is available only when the resource's
        * Protobuf contains it.
        * To search against the `labels`:
    -   * * use a field query:
    +   * * Use a field query:
        *     - query on any label's key or value. Example: `labels:prod`
        *     - query by a given label. Example: `labels.env:prod`
        *     - query by a given label's existence. Example: `labels.env:*`
    -   * * use a free text query. Example: `prod`
    +   * * Use a free text query. Example: `prod`
        * 
    * * map<string, string> labels = 7; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1022,8 +684,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int NETWORK_TAGS_FIELD_NUMBER = 8; private com.google.protobuf.LazyStringList networkTags_; /** - * - * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -1031,20 +691,18 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
        * for more information. This field is available only when the resource's
        * Protobuf contains it.
        * To search against the `network_tags`:
    -   * * use a field query. Example: `networkTags:internal`
    -   * * use a free text query. Example: `internal`
    +   * * Use a field query. Example: `networkTags:internal`
    +   * * Use a free text query. Example: `internal`
        * 
    * * repeated string network_tags = 8; - * * @return A list containing the networkTags. */ - public com.google.protobuf.ProtocolStringList getNetworkTagsList() { + public com.google.protobuf.ProtocolStringList + getNetworkTagsList() { return networkTags_; } /** - * - * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -1052,20 +710,17 @@ public com.google.protobuf.ProtocolStringList getNetworkTagsList() {
        * for more information. This field is available only when the resource's
        * Protobuf contains it.
        * To search against the `network_tags`:
    -   * * use a field query. Example: `networkTags:internal`
    -   * * use a free text query. Example: `internal`
    +   * * Use a field query. Example: `networkTags:internal`
    +   * * Use a free text query. Example: `internal`
        * 
    * * repeated string network_tags = 8; - * * @return The count of networkTags. */ public int getNetworkTagsCount() { return networkTags_.size(); } /** - * - * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -1073,12 +728,11 @@ public int getNetworkTagsCount() {
        * for more information. This field is available only when the resource's
        * Protobuf contains it.
        * To search against the `network_tags`:
    -   * * use a field query. Example: `networkTags:internal`
    -   * * use a free text query. Example: `internal`
    +   * * Use a field query. Example: `networkTags:internal`
    +   * * Use a free text query. Example: `internal`
        * 
    * * repeated string network_tags = 8; - * * @param index The index of the element to return. * @return The networkTags at the given index. */ @@ -1086,8 +740,6 @@ public java.lang.String getNetworkTags(int index) { return networkTags_.get(index); } /** - * - * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -1095,77 +747,88 @@ public java.lang.String getNetworkTags(int index) {
        * for more information. This field is available only when the resource's
        * Protobuf contains it.
        * To search against the `network_tags`:
    -   * * use a field query. Example: `networkTags:internal`
    -   * * use a free text query. Example: `internal`
    +   * * Use a field query. Example: `networkTags:internal`
    +   * * Use a free text query. Example: `internal`
        * 
    * * repeated string network_tags = 8; - * * @param index The index of the value to return. * @return The bytes of the networkTags at the given index. */ - public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { + public com.google.protobuf.ByteString + getNetworkTagsBytes(int index) { return networkTags_.getByteString(index); } public static final int KMS_KEY_FIELD_NUMBER = 10; private volatile java.lang.Object kmsKey_; /** - * - * *
        * The Cloud KMS
        * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
        * name or
        * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    -   * name. This field is available only when the resource's Protobuf contains
    -   * it.
    +   * name.
    +   * This field only presents for the purpose of backward compatibility. Please
    +   * use the `kms_keys` field to retrieve KMS key information. This field is
    +   * available only when the resource's Protobuf contains it and will only be
    +   * populated for [these resource
    +   * types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field)
    +   * for backward compatible purposes.
        * To search against the `kms_key`:
    -   * * use a field query. Example: `kmsKey:key`
    -   * * use a free text query. Example: `key`
    +   * * Use a field query. Example: `kmsKey:key`
    +   * * Use a free text query. Example: `key`
        * 
    * - * string kms_key = 10; - * + * string kms_key = 10 [deprecated = true]; + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. + * See google/cloud/asset/v1/assets.proto;l=434 * @return The kmsKey. */ @java.lang.Override - public java.lang.String getKmsKey() { + @java.lang.Deprecated public java.lang.String getKmsKey() { java.lang.Object ref = kmsKey_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKey_ = s; return s; } } /** - * - * *
        * The Cloud KMS
        * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
        * name or
        * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    -   * name. This field is available only when the resource's Protobuf contains
    -   * it.
    +   * name.
    +   * This field only presents for the purpose of backward compatibility. Please
    +   * use the `kms_keys` field to retrieve KMS key information. This field is
    +   * available only when the resource's Protobuf contains it and will only be
    +   * populated for [these resource
    +   * types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field)
    +   * for backward compatible purposes.
        * To search against the `kms_key`:
    -   * * use a field query. Example: `kmsKey:key`
    -   * * use a free text query. Example: `key`
    +   * * Use a field query. Example: `kmsKey:key`
    +   * * Use a free text query. Example: `key`
        * 
    * - * string kms_key = 10; - * + * string kms_key = 10 [deprecated = true]; + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. + * See google/cloud/asset/v1/assets.proto;l=434 * @return The bytes for kmsKey. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getKmsKeyBytes() { java.lang.Object ref = kmsKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKey_ = b; return b; } else { @@ -1173,17 +836,98 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { } } - public static final int CREATE_TIME_FIELD_NUMBER = 11; - private com.google.protobuf.Timestamp createTime_; + public static final int KMS_KEYS_FIELD_NUMBER = 28; + private com.google.protobuf.LazyStringList kmsKeys_; + /** + *
    +   * The Cloud KMS
    +   * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +   * names or
    +   * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +   * names. This field is available only when the resource's Protobuf contains
    +   * it.
    +   * To search against the `kms_keys`:
    +   * * Use a field query. Example: `kmsKeys:key`
    +   * * Use a free text query. Example: `key`
    +   * 
    + * + * repeated string kms_keys = 28; + * @return A list containing the kmsKeys. + */ + public com.google.protobuf.ProtocolStringList + getKmsKeysList() { + return kmsKeys_; + } + /** + *
    +   * The Cloud KMS
    +   * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +   * names or
    +   * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +   * names. This field is available only when the resource's Protobuf contains
    +   * it.
    +   * To search against the `kms_keys`:
    +   * * Use a field query. Example: `kmsKeys:key`
    +   * * Use a free text query. Example: `key`
    +   * 
    + * + * repeated string kms_keys = 28; + * @return The count of kmsKeys. + */ + public int getKmsKeysCount() { + return kmsKeys_.size(); + } /** + *
    +   * The Cloud KMS
    +   * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +   * names or
    +   * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +   * names. This field is available only when the resource's Protobuf contains
    +   * it.
    +   * To search against the `kms_keys`:
    +   * * Use a field query. Example: `kmsKeys:key`
    +   * * Use a free text query. Example: `key`
    +   * 
    * + * repeated string kms_keys = 28; + * @param index The index of the element to return. + * @return The kmsKeys at the given index. + */ + public java.lang.String getKmsKeys(int index) { + return kmsKeys_.get(index); + } + /** + *
    +   * The Cloud KMS
    +   * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +   * names or
    +   * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +   * names. This field is available only when the resource's Protobuf contains
    +   * it.
    +   * To search against the `kms_keys`:
    +   * * Use a field query. Example: `kmsKeys:key`
    +   * * Use a free text query. Example: `key`
    +   * 
    * + * repeated string kms_keys = 28; + * @param index The index of the value to return. + * @return The bytes of the kmsKeys at the given index. + */ + public com.google.protobuf.ByteString + getKmsKeysBytes(int index) { + return kmsKeys_.getByteString(index); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 11; + private com.google.protobuf.Timestamp createTime_; + /** *
        * The create timestamp of this resource, at which the resource was created.
        * The granularity is in seconds. Timestamp.nanos will always be 0. This field
        * is available only when the resource's Protobuf contains it.
        * To search against `create_time`:
    -   * * use a field query.
    +   * * Use a field query.
        *     - value in seconds since unix epoch. Example: `createTime > 1609459200`
        *     - value in date string. Example: `createTime > 2021-01-01`
        *     - value in date-time string (must be quoted). Example: `createTime >
    @@ -1191,7 +935,6 @@ public com.google.protobuf.ByteString getKmsKeyBytes() {
        * 
    * * .google.protobuf.Timestamp create_time = 11; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1199,14 +942,12 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
        * The create timestamp of this resource, at which the resource was created.
        * The granularity is in seconds. Timestamp.nanos will always be 0. This field
        * is available only when the resource's Protobuf contains it.
        * To search against `create_time`:
    -   * * use a field query.
    +   * * Use a field query.
        *     - value in seconds since unix epoch. Example: `createTime > 1609459200`
        *     - value in date string. Example: `createTime > 2021-01-01`
        *     - value in date-time string (must be quoted). Example: `createTime >
    @@ -1214,7 +955,6 @@ public boolean hasCreateTime() {
        * 
    * * .google.protobuf.Timestamp create_time = 11; - * * @return The createTime. */ @java.lang.Override @@ -1222,14 +962,12 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
        * The create timestamp of this resource, at which the resource was created.
        * The granularity is in seconds. Timestamp.nanos will always be 0. This field
        * is available only when the resource's Protobuf contains it.
        * To search against `create_time`:
    -   * * use a field query.
    +   * * Use a field query.
        *     - value in seconds since unix epoch. Example: `createTime > 1609459200`
        *     - value in date string. Example: `createTime > 2021-01-01`
        *     - value in date-time string (must be quoted). Example: `createTime >
    @@ -1246,15 +984,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
       public static final int UPDATE_TIME_FIELD_NUMBER = 12;
       private com.google.protobuf.Timestamp updateTime_;
       /**
    -   *
    -   *
        * 
        * The last update timestamp of this resource, at which the resource was last
        * modified or deleted. The granularity is in seconds. Timestamp.nanos will
        * always be 0. This field is available only when the resource's Protobuf
        * contains it.
        * To search against `update_time`:
    -   * * use a field query.
    +   * * Use a field query.
        *     - value in seconds since unix epoch. Example: `updateTime < 1609459200`
        *     - value in date string. Example: `updateTime < 2021-01-01`
        *     - value in date-time string (must be quoted). Example: `updateTime <
    @@ -1262,7 +998,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
        * 
    * * .google.protobuf.Timestamp update_time = 12; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1270,15 +1005,13 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
        * The last update timestamp of this resource, at which the resource was last
        * modified or deleted. The granularity is in seconds. Timestamp.nanos will
        * always be 0. This field is available only when the resource's Protobuf
        * contains it.
        * To search against `update_time`:
    -   * * use a field query.
    +   * * Use a field query.
        *     - value in seconds since unix epoch. Example: `updateTime < 1609459200`
        *     - value in date string. Example: `updateTime < 2021-01-01`
        *     - value in date-time string (must be quoted). Example: `updateTime <
    @@ -1286,7 +1019,6 @@ public boolean hasUpdateTime() {
        * 
    * * .google.protobuf.Timestamp update_time = 12; - * * @return The updateTime. */ @java.lang.Override @@ -1294,15 +1026,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
        * The last update timestamp of this resource, at which the resource was last
        * modified or deleted. The granularity is in seconds. Timestamp.nanos will
        * always be 0. This field is available only when the resource's Protobuf
        * contains it.
        * To search against `update_time`:
    -   * * use a field query.
    +   * * Use a field query.
        *     - value in seconds since unix epoch. Example: `updateTime < 1609459200`
        *     - value in date string. Example: `updateTime < 2021-01-01`
        *     - value in date-time string (must be quoted). Example: `updateTime <
    @@ -1319,8 +1049,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
       public static final int STATE_FIELD_NUMBER = 13;
       private volatile java.lang.Object state_;
       /**
    -   *
    -   *
        * 
        * The state of this resource. Different resources types have different state
        * definitions that are mapped from various fields of different resource
    @@ -1337,12 +1065,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
        * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API
        * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects).
        * To search against the `state`:
    -   * * use a field query. Example: `state:RUNNING`
    -   * * use a free text query. Example: `RUNNING`
    +   * * Use a field query. Example: `state:RUNNING`
    +   * * Use a free text query. Example: `RUNNING`
        * 
    * * string state = 13; - * * @return The state. */ @java.lang.Override @@ -1351,15 +1078,14 @@ public java.lang.String getState() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); state_ = s; return s; } } /** - * - * *
        * The state of this resource. Different resources types have different state
        * definitions that are mapped from various fields of different resource
    @@ -1376,20 +1102,21 @@ public java.lang.String getState() {
        * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API
        * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects).
        * To search against the `state`:
    -   * * use a field query. Example: `state:RUNNING`
    -   * * use a free text query. Example: `RUNNING`
    +   * * Use a field query. Example: `state:RUNNING`
    +   * * Use a free text query. Example: `RUNNING`
        * 
    * * string state = 13; - * * @return The bytes for state. */ @java.lang.Override - public com.google.protobuf.ByteString getStateBytes() { + public com.google.protobuf.ByteString + getStateBytes() { java.lang.Object ref = state_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); state_ = b; return b; } else { @@ -1400,8 +1127,6 @@ public com.google.protobuf.ByteString getStateBytes() { public static final int ADDITIONAL_ATTRIBUTES_FIELD_NUMBER = 9; private com.google.protobuf.Struct additionalAttributes_; /** - * - * *
        * The additional searchable attributes of this resource. The attributes may
        * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -1416,13 +1141,12 @@ public com.google.protobuf.ByteString getStateBytes() {
        * values may change as the GCP service updates to a new incompatible API
        * version.
        * To search against the `additional_attributes`:
    -   * * use a free text query to match the attributes values. Example: to search
    +   * * Use a free text query to match the attributes values. Example: to search
        *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
        *   `foobar`.
        * 
    * * .google.protobuf.Struct additional_attributes = 9; - * * @return Whether the additionalAttributes field is set. */ @java.lang.Override @@ -1430,8 +1154,6 @@ public boolean hasAdditionalAttributes() { return additionalAttributes_ != null; } /** - * - * *
        * The additional searchable attributes of this resource. The attributes may
        * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -1446,24 +1168,19 @@ public boolean hasAdditionalAttributes() {
        * values may change as the GCP service updates to a new incompatible API
        * version.
        * To search against the `additional_attributes`:
    -   * * use a free text query to match the attributes values. Example: to search
    +   * * Use a free text query to match the attributes values. Example: to search
        *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
        *   `foobar`.
        * 
    * * .google.protobuf.Struct additional_attributes = 9; - * * @return The additionalAttributes. */ @java.lang.Override public com.google.protobuf.Struct getAdditionalAttributes() { - return additionalAttributes_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : additionalAttributes_; + return additionalAttributes_ == null ? com.google.protobuf.Struct.getDefaultInstance() : additionalAttributes_; } /** - * - * *
        * The additional searchable attributes of this resource. The attributes may
        * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -1478,7 +1195,7 @@ public com.google.protobuf.Struct getAdditionalAttributes() {
        * values may change as the GCP service updates to a new incompatible API
        * version.
        * To search against the `additional_attributes`:
    -   * * use a free text query to match the attributes values. Example: to search
    +   * * Use a free text query to match the attributes values. Example: to search
        *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
        *   `foobar`.
        * 
    @@ -1493,19 +1210,16 @@ public com.google.protobuf.StructOrBuilder getAdditionalAttributesOrBuilder() { public static final int PARENT_FULL_RESOURCE_NAME_FIELD_NUMBER = 19; private volatile java.lang.Object parentFullResourceName_; /** - * - * *
        * The full resource name of this resource's parent, if it has one.
        * To search against the `parent_full_resource_name`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        * `parentFullResourceName:"project-name"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        * `project-name`
        * 
    * * string parent_full_resource_name = 19; - * * @return The parentFullResourceName. */ @java.lang.Override @@ -1514,34 +1228,34 @@ public java.lang.String getParentFullResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentFullResourceName_ = s; return s; } } /** - * - * *
        * The full resource name of this resource's parent, if it has one.
        * To search against the `parent_full_resource_name`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        * `parentFullResourceName:"project-name"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        * `project-name`
        * 
    * * string parent_full_resource_name = 19; - * * @return The bytes for parentFullResourceName. */ @java.lang.Override - public com.google.protobuf.ByteString getParentFullResourceNameBytes() { + public com.google.protobuf.ByteString + getParentFullResourceNameBytes() { java.lang.Object ref = parentFullResourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentFullResourceName_ = b; return b; } else { @@ -1552,8 +1266,6 @@ public com.google.protobuf.ByteString getParentFullResourceNameBytes() { public static final int VERSIONED_RESOURCES_FIELD_NUMBER = 16; private java.util.List versionedResources_; /** - * - * *
        * Versioned resource representations of this resource. This is repeated
        * because there could be multiple versions of resource representations during
    @@ -1570,8 +1282,6 @@ public java.util.List getVersionedR
         return versionedResources_;
       }
       /**
    -   *
    -   *
        * 
        * Versioned resource representations of this resource. This is repeated
        * because there could be multiple versions of resource representations during
    @@ -1584,13 +1294,11 @@ public java.util.List getVersionedR
        * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 16;
        */
       @java.lang.Override
    -  public java.util.List
    +  public java.util.List 
           getVersionedResourcesOrBuilderList() {
         return versionedResources_;
       }
       /**
    -   *
    -   *
        * 
        * Versioned resource representations of this resource. This is repeated
        * because there could be multiple versions of resource representations during
    @@ -1607,8 +1315,6 @@ public int getVersionedResourcesCount() {
         return versionedResources_.size();
       }
       /**
    -   *
    -   *
        * 
        * Versioned resource representations of this resource. This is repeated
        * because there could be multiple versions of resource representations during
    @@ -1625,8 +1331,6 @@ public com.google.cloud.asset.v1.VersionedResource getVersionedResources(int ind
         return versionedResources_.get(index);
       }
       /**
    -   *
    -   *
        * 
        * Versioned resource representations of this resource. This is repeated
        * because there could be multiple versions of resource representations during
    @@ -1647,8 +1351,6 @@ public com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResource
       public static final int ATTACHED_RESOURCES_FIELD_NUMBER = 20;
       private java.util.List attachedResources_;
       /**
    -   *
    -   *
        * 
        * Attached resources of this resource. For example, an OSConfig
        * Inventory is an attached resource of a Compute Instance. This field is
    @@ -1665,8 +1367,6 @@ public java.util.List getAttachedRes
         return attachedResources_;
       }
       /**
    -   *
    -   *
        * 
        * Attached resources of this resource. For example, an OSConfig
        * Inventory is an attached resource of a Compute Instance. This field is
    @@ -1679,13 +1379,11 @@ public java.util.List getAttachedRes
        * repeated .google.cloud.asset.v1.AttachedResource attached_resources = 20;
        */
       @java.lang.Override
    -  public java.util.List
    +  public java.util.List 
           getAttachedResourcesOrBuilderList() {
         return attachedResources_;
       }
       /**
    -   *
    -   *
        * 
        * Attached resources of this resource. For example, an OSConfig
        * Inventory is an attached resource of a Compute Instance. This field is
    @@ -1702,8 +1400,6 @@ public int getAttachedResourcesCount() {
         return attachedResources_.size();
       }
       /**
    -   *
    -   *
        * 
        * Attached resources of this resource. For example, an OSConfig
        * Inventory is an attached resource of a Compute Instance. This field is
    @@ -1720,8 +1416,6 @@ public com.google.cloud.asset.v1.AttachedResource getAttachedResources(int index
         return attachedResources_.get(index);
       }
       /**
    -   *
    -   *
        * 
        * Attached resources of this resource. For example, an OSConfig
        * Inventory is an attached resource of a Compute Instance. This field is
    @@ -1740,26 +1434,21 @@ public com.google.cloud.asset.v1.AttachedResourceOrBuilder getAttachedResourcesO
       }
     
       public static final int RELATIONSHIPS_FIELD_NUMBER = 21;
    -
       private static final class RelationshipsDefaultEntryHolder {
         static final com.google.protobuf.MapEntry<
    -            java.lang.String, com.google.cloud.asset.v1.RelatedResources>
    -        defaultEntry =
    +        java.lang.String, com.google.cloud.asset.v1.RelatedResources> defaultEntry =
                 com.google.protobuf.MapEntry
    -                .newDefaultInstance(
    -                    com.google.cloud.asset.v1.AssetProto
    -                        .internal_static_google_cloud_asset_v1_ResourceSearchResult_RelationshipsEntry_descriptor,
    -                    com.google.protobuf.WireFormat.FieldType.STRING,
    -                    "",
    -                    com.google.protobuf.WireFormat.FieldType.MESSAGE,
    -                    com.google.cloud.asset.v1.RelatedResources.getDefaultInstance());
    +            .newDefaultInstance(
    +                com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_ResourceSearchResult_RelationshipsEntry_descriptor, 
    +                com.google.protobuf.WireFormat.FieldType.STRING,
    +                "",
    +                com.google.protobuf.WireFormat.FieldType.MESSAGE,
    +                com.google.cloud.asset.v1.RelatedResources.getDefaultInstance());
       }
    -
    -  private com.google.protobuf.MapField
    -      relationships_;
    -
    +  private com.google.protobuf.MapField<
    +      java.lang.String, com.google.cloud.asset.v1.RelatedResources> relationships_;
       private com.google.protobuf.MapField
    -      internalGetRelationships() {
    +  internalGetRelationships() {
         if (relationships_ == null) {
           return com.google.protobuf.MapField.emptyMapField(
               RelationshipsDefaultEntryHolder.defaultEntry);
    @@ -1771,8 +1460,6 @@ public int getRelationshipsCount() {
         return internalGetRelationships().getMap().size();
       }
       /**
    -   *
    -   *
        * 
        * A map of related resources of this resource, keyed by the
        * relationship type. A relationship type is in the format of
    @@ -1784,23 +1471,22 @@ public int getRelationshipsCount() {
        *
        * map<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
        */
    +
       @java.lang.Override
    -  public boolean containsRelationships(java.lang.String key) {
    -    if (key == null) {
    -      throw new NullPointerException("map key");
    -    }
    +  public boolean containsRelationships(
    +      java.lang.String key) {
    +    if (key == null) { throw new NullPointerException("map key"); }
         return internalGetRelationships().getMap().containsKey(key);
       }
    -  /** Use {@link #getRelationshipsMap()} instead. */
    +  /**
    +   * Use {@link #getRelationshipsMap()} instead.
    +   */
       @java.lang.Override
       @java.lang.Deprecated
    -  public java.util.Map
    -      getRelationships() {
    +  public java.util.Map getRelationships() {
         return getRelationshipsMap();
       }
       /**
    -   *
    -   *
        * 
        * A map of related resources of this resource, keyed by the
        * relationship type. A relationship type is in the format of
    @@ -1813,13 +1499,11 @@ public boolean containsRelationships(java.lang.String key) {
        * map<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
        */
       @java.lang.Override
    -  public java.util.Map
    -      getRelationshipsMap() {
    +
    +  public java.util.Map getRelationshipsMap() {
         return internalGetRelationships().getMap();
       }
       /**
    -   *
    -   *
        * 
        * A map of related resources of this resource, keyed by the
        * relationship type. A relationship type is in the format of
    @@ -1832,18 +1516,16 @@ public boolean containsRelationships(java.lang.String key) {
        * map<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
        */
       @java.lang.Override
    +
       public com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
    -      java.lang.String key, com.google.cloud.asset.v1.RelatedResources defaultValue) {
    -    if (key == null) {
    -      throw new NullPointerException("map key");
    -    }
    +      java.lang.String key,
    +      com.google.cloud.asset.v1.RelatedResources defaultValue) {
    +    if (key == null) { throw new NullPointerException("map key"); }
         java.util.Map map =
             internalGetRelationships().getMap();
         return map.containsKey(key) ? map.get(key) : defaultValue;
       }
       /**
    -   *
    -   *
        * 
        * A map of related resources of this resource, keyed by the
        * relationship type. A relationship type is in the format of
    @@ -1856,10 +1538,10 @@ public com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
        * map<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
        */
       @java.lang.Override
    -  public com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(java.lang.String key) {
    -    if (key == null) {
    -      throw new NullPointerException("map key");
    -    }
    +
    +  public com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
    +      java.lang.String key) {
    +    if (key == null) { throw new NullPointerException("map key"); }
         java.util.Map map =
             internalGetRelationships().getMap();
         if (!map.containsKey(key)) {
    @@ -1871,63 +1553,55 @@ public com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(java.l
       public static final int TAG_KEYS_FIELD_NUMBER = 23;
       private com.google.protobuf.LazyStringList tagKeys_;
       /**
    -   *
    -   *
        * 
        * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
        * To search against the `tagKeys`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagKeys:"123456789/env*"`
        *     - `tagKeys="123456789/env"`
        *     - `tagKeys:"env"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `env`
        * 
    * * repeated string tag_keys = 23; - * * @return A list containing the tagKeys. */ - public com.google.protobuf.ProtocolStringList getTagKeysList() { + public com.google.protobuf.ProtocolStringList + getTagKeysList() { return tagKeys_; } /** - * - * *
        * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
        * To search against the `tagKeys`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagKeys:"123456789/env*"`
        *     - `tagKeys="123456789/env"`
        *     - `tagKeys:"env"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `env`
        * 
    * * repeated string tag_keys = 23; - * * @return The count of tagKeys. */ public int getTagKeysCount() { return tagKeys_.size(); } /** - * - * *
        * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
        * To search against the `tagKeys`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagKeys:"123456789/env*"`
        *     - `tagKeys="123456789/env"`
        *     - `tagKeys:"env"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `env`
        * 
    * * repeated string tag_keys = 23; - * * @param index The index of the element to return. * @return The tagKeys at the given index. */ @@ -1935,94 +1609,84 @@ public java.lang.String getTagKeys(int index) { return tagKeys_.get(index); } /** - * - * *
        * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
        * To search against the `tagKeys`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagKeys:"123456789/env*"`
        *     - `tagKeys="123456789/env"`
        *     - `tagKeys:"env"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `env`
        * 
    * * repeated string tag_keys = 23; - * * @param index The index of the value to return. * @return The bytes of the tagKeys at the given index. */ - public com.google.protobuf.ByteString getTagKeysBytes(int index) { + public com.google.protobuf.ByteString + getTagKeysBytes(int index) { return tagKeys_.getByteString(index); } public static final int TAG_VALUES_FIELD_NUMBER = 25; private com.google.protobuf.LazyStringList tagValues_; /** - * - * *
        * TagValue namespaced names, in the format of
        * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
        * To search against the `tagValues`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagValues:"env"`
        *     - `tagValues:"env/prod"`
        *     - `tagValues:"123456789/env/prod*"`
        *     - `tagValues="123456789/env/prod"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `prod`
        * 
    * * repeated string tag_values = 25; - * * @return A list containing the tagValues. */ - public com.google.protobuf.ProtocolStringList getTagValuesList() { + public com.google.protobuf.ProtocolStringList + getTagValuesList() { return tagValues_; } /** - * - * *
        * TagValue namespaced names, in the format of
        * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
        * To search against the `tagValues`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagValues:"env"`
        *     - `tagValues:"env/prod"`
        *     - `tagValues:"123456789/env/prod*"`
        *     - `tagValues="123456789/env/prod"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `prod`
        * 
    * * repeated string tag_values = 25; - * * @return The count of tagValues. */ public int getTagValuesCount() { return tagValues_.size(); } /** - * - * *
        * TagValue namespaced names, in the format of
        * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
        * To search against the `tagValues`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagValues:"env"`
        *     - `tagValues:"env/prod"`
        *     - `tagValues:"123456789/env/prod*"`
        *     - `tagValues="123456789/env/prod"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `prod`
        * 
    * * repeated string tag_values = 25; - * * @param index The index of the element to return. * @return The tagValues at the given index. */ @@ -2030,87 +1694,77 @@ public java.lang.String getTagValues(int index) { return tagValues_.get(index); } /** - * - * *
        * TagValue namespaced names, in the format of
        * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
        * To search against the `tagValues`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagValues:"env"`
        *     - `tagValues:"env/prod"`
        *     - `tagValues:"123456789/env/prod*"`
        *     - `tagValues="123456789/env/prod"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `prod`
        * 
    * * repeated string tag_values = 25; - * * @param index The index of the value to return. * @return The bytes of the tagValues at the given index. */ - public com.google.protobuf.ByteString getTagValuesBytes(int index) { + public com.google.protobuf.ByteString + getTagValuesBytes(int index) { return tagValues_.getByteString(index); } public static final int TAG_VALUE_IDS_FIELD_NUMBER = 26; private com.google.protobuf.LazyStringList tagValueIds_; /** - * - * *
        * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
        * To search against the `tagValueIds`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagValueIds:"456"`
        *     - `tagValueIds="tagValues/456"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `456`
        * 
    * * repeated string tag_value_ids = 26; - * * @return A list containing the tagValueIds. */ - public com.google.protobuf.ProtocolStringList getTagValueIdsList() { + public com.google.protobuf.ProtocolStringList + getTagValueIdsList() { return tagValueIds_; } /** - * - * *
        * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
        * To search against the `tagValueIds`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagValueIds:"456"`
        *     - `tagValueIds="tagValues/456"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `456`
        * 
    * * repeated string tag_value_ids = 26; - * * @return The count of tagValueIds. */ public int getTagValueIdsCount() { return tagValueIds_.size(); } /** - * - * *
        * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
        * To search against the `tagValueIds`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagValueIds:"456"`
        *     - `tagValueIds="tagValues/456"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `456`
        * 
    * * repeated string tag_value_ids = 26; - * * @param index The index of the element to return. * @return The tagValueIds at the given index. */ @@ -2118,43 +1772,38 @@ public java.lang.String getTagValueIds(int index) { return tagValueIds_.get(index); } /** - * - * *
        * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
        * To search against the `tagValueIds`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagValueIds:"456"`
        *     - `tagValueIds="tagValues/456"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `456`
        * 
    * * repeated string tag_value_ids = 26; - * * @param index The index of the value to return. * @return The bytes of the tagValueIds at the given index. */ - public com.google.protobuf.ByteString getTagValueIdsBytes(int index) { + public com.google.protobuf.ByteString + getTagValueIdsBytes(int index) { return tagValueIds_.getByteString(index); } public static final int PARENT_ASSET_TYPE_FIELD_NUMBER = 103; private volatile java.lang.Object parentAssetType_; /** - * - * *
        * The type of this resource's immediate parent, if there is one.
        * To search against the `parent_asset_type`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        * `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        * `cloudresourcemanager.googleapis.com/Project`
        * 
    * * string parent_asset_type = 103; - * * @return The parentAssetType. */ @java.lang.Override @@ -2163,34 +1812,34 @@ public java.lang.String getParentAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentAssetType_ = s; return s; } } /** - * - * *
        * The type of this resource's immediate parent, if there is one.
        * To search against the `parent_asset_type`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        * `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        * `cloudresourcemanager.googleapis.com/Project`
        * 
    * * string parent_asset_type = 103; - * * @return The bytes for parentAssetType. */ @java.lang.Override - public com.google.protobuf.ByteString getParentAssetTypeBytes() { + public com.google.protobuf.ByteString + getParentAssetTypeBytes() { java.lang.Object ref = parentAssetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentAssetType_ = b; return b; } else { @@ -2199,7 +1848,6 @@ public com.google.protobuf.ByteString getParentAssetTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2211,7 +1859,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -2230,8 +1879,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, location_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 7); for (int i = 0; i < networkTags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, networkTags_.getRaw(i)); } @@ -2265,8 +1918,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < attachedResources_.size(); i++) { output.writeMessage(20, attachedResources_.get(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetRelationships(), RelationshipsDefaultEntryHolder.defaultEntry, 21); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetRelationships(), + RelationshipsDefaultEntryHolder.defaultEntry, + 21); for (int i = 0; i < tagKeys_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 23, tagKeys_.getRaw(i)); } @@ -2276,10 +1933,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < tagValueIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 26, tagValueIds_.getRaw(i)); } + for (int i = 0; i < kmsKeys_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 28, kmsKeys_.getRaw(i)); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentAssetType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 103, parentAssetType_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2306,15 +1966,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, location_); } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__); + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, labels__); } { int dataSize = 0; @@ -2325,24 +1985,26 @@ public int getSerializedSize() { size += 1 * getNetworkTagsList().size(); } if (additionalAttributes_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(9, getAdditionalAttributes()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getAdditionalAttributes()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, kmsKey_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(state_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, state_); } for (int i = 0; i < versionedResources_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(16, versionedResources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, versionedResources_.get(i)); } { int dataSize = 0; @@ -2359,19 +2021,18 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, parentFullResourceName_); } for (int i = 0; i < attachedResources_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(20, attachedResources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, attachedResources_.get(i)); } - for (java.util.Map.Entry entry : - internalGetRelationships().getMap().entrySet()) { + for (java.util.Map.Entry entry + : internalGetRelationships().getMap().entrySet()) { com.google.protobuf.MapEntry - relationships__ = - RelationshipsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, relationships__); + relationships__ = RelationshipsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, relationships__); } { int dataSize = 0; @@ -2397,10 +2058,18 @@ public int getSerializedSize() { size += dataSize; size += 2 * getTagValueIdsList().size(); } + { + int dataSize = 0; + for (int i = 0; i < kmsKeys_.size(); i++) { + dataSize += computeStringSizeNoTag(kmsKeys_.getRaw(i)); + } + size += dataSize; + size += 2 * getKmsKeysList().size(); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentAssetType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(103, parentAssetType_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -2408,47 +2077,71 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.ResourceSearchResult)) { return super.equals(obj); } - com.google.cloud.asset.v1.ResourceSearchResult other = - (com.google.cloud.asset.v1.ResourceSearchResult) obj; - - if (!getName().equals(other.getName())) return false; - if (!getAssetType().equals(other.getAssetType())) return false; - if (!getProject().equals(other.getProject())) return false; - if (!getFoldersList().equals(other.getFoldersList())) return false; - if (!getOrganization().equals(other.getOrganization())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getLocation().equals(other.getLocation())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getNetworkTagsList().equals(other.getNetworkTagsList())) return false; - if (!getKmsKey().equals(other.getKmsKey())) return false; + com.google.cloud.asset.v1.ResourceSearchResult other = (com.google.cloud.asset.v1.ResourceSearchResult) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getAssetType() + .equals(other.getAssetType())) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (!getFoldersList() + .equals(other.getFoldersList())) return false; + if (!getOrganization() + .equals(other.getOrganization())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getLocation() + .equals(other.getLocation())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getNetworkTagsList() + .equals(other.getNetworkTagsList())) return false; + if (!getKmsKey() + .equals(other.getKmsKey())) return false; + if (!getKmsKeysList() + .equals(other.getKmsKeysList())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!getState().equals(other.getState())) return false; + if (!getState() + .equals(other.getState())) return false; if (hasAdditionalAttributes() != other.hasAdditionalAttributes()) return false; if (hasAdditionalAttributes()) { - if (!getAdditionalAttributes().equals(other.getAdditionalAttributes())) return false; - } - if (!getParentFullResourceName().equals(other.getParentFullResourceName())) return false; - if (!getVersionedResourcesList().equals(other.getVersionedResourcesList())) return false; - if (!getAttachedResourcesList().equals(other.getAttachedResourcesList())) return false; - if (!internalGetRelationships().equals(other.internalGetRelationships())) return false; - if (!getTagKeysList().equals(other.getTagKeysList())) return false; - if (!getTagValuesList().equals(other.getTagValuesList())) return false; - if (!getTagValueIdsList().equals(other.getTagValueIdsList())) return false; - if (!getParentAssetType().equals(other.getParentAssetType())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getAdditionalAttributes() + .equals(other.getAdditionalAttributes())) return false; + } + if (!getParentFullResourceName() + .equals(other.getParentFullResourceName())) return false; + if (!getVersionedResourcesList() + .equals(other.getVersionedResourcesList())) return false; + if (!getAttachedResourcesList() + .equals(other.getAttachedResourcesList())) return false; + if (!internalGetRelationships().equals( + other.internalGetRelationships())) return false; + if (!getTagKeysList() + .equals(other.getTagKeysList())) return false; + if (!getTagValuesList() + .equals(other.getTagValuesList())) return false; + if (!getTagValueIdsList() + .equals(other.getTagValueIdsList())) return false; + if (!getParentAssetType() + .equals(other.getParentAssetType())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2487,6 +2180,10 @@ public int hashCode() { } hash = (37 * hash) + KMS_KEY_FIELD_NUMBER; hash = (53 * hash) + getKmsKey().hashCode(); + if (getKmsKeysCount() > 0) { + hash = (37 * hash) + KMS_KEYS_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeysList().hashCode(); + } if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); @@ -2529,176 +2226,162 @@ public int hashCode() { } hash = (37 * hash) + PARENT_ASSET_TYPE_FIELD_NUMBER; hash = (53 * hash) + getParentAssetType().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.ResourceSearchResult parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.ResourceSearchResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ResourceSearchResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.ResourceSearchResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ResourceSearchResult 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.asset.v1.ResourceSearchResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.ResourceSearchResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.ResourceSearchResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ResourceSearchResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.ResourceSearchResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.ResourceSearchResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ResourceSearchResult parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.ResourceSearchResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.ResourceSearchResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.ResourceSearchResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * A result of Resource Search, containing information of a cloud resource.
    -   * Next ID: 29
    +   * Next ID: 31
        * 
    * * Protobuf type {@code google.cloud.asset.v1.ResourceSearchResult} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.ResourceSearchResult) com.google.cloud.asset.v1.ResourceSearchResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 7: return internalGetLabels(); case 21: return internalGetRelationships(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 7: return internalGetMutableLabels(); case 21: return internalGetMutableRelationships(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_ResourceSearchResult_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_ResourceSearchResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ResourceSearchResult.class, - com.google.cloud.asset.v1.ResourceSearchResult.Builder.class); + com.google.cloud.asset.v1.ResourceSearchResult.class, com.google.cloud.asset.v1.ResourceSearchResult.Builder.class); } // Construct using com.google.cloud.asset.v1.ResourceSearchResult.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getVersionedResourcesFieldBuilder(); - getAttachedResourcesFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2723,6 +2406,8 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000004); kmsKey_ = ""; + kmsKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); if (createTimeBuilder_ == null) { createTime_ = null; } else { @@ -2747,32 +2432,34 @@ public Builder clear() { if (versionedResourcesBuilder_ == null) { versionedResources_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); } else { + versionedResources_ = null; versionedResourcesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000010); if (attachedResourcesBuilder_ == null) { attachedResources_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); } else { + attachedResources_ = null; attachedResourcesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000020); internalGetMutableRelationships().clear(); tagKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000040); - tagValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); - tagValueIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + tagValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000100); + tagValueIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000200); parentAssetType_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor; } @java.lang.Override @@ -2791,8 +2478,7 @@ public com.google.cloud.asset.v1.ResourceSearchResult build() { @java.lang.Override public com.google.cloud.asset.v1.ResourceSearchResult buildPartial() { - com.google.cloud.asset.v1.ResourceSearchResult result = - new com.google.cloud.asset.v1.ResourceSearchResult(this); + com.google.cloud.asset.v1.ResourceSearchResult result = new com.google.cloud.asset.v1.ResourceSearchResult(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.assetType_ = assetType_; @@ -2814,6 +2500,11 @@ public com.google.cloud.asset.v1.ResourceSearchResult buildPartial() { } result.networkTags_ = networkTags_; result.kmsKey_ = kmsKey_; + if (((bitField0_ & 0x00000008) != 0)) { + kmsKeys_ = kmsKeys_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.kmsKeys_ = kmsKeys_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -2832,18 +2523,18 @@ public com.google.cloud.asset.v1.ResourceSearchResult buildPartial() { } result.parentFullResourceName_ = parentFullResourceName_; if (versionedResourcesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { versionedResources_ = java.util.Collections.unmodifiableList(versionedResources_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); } result.versionedResources_ = versionedResources_; } else { result.versionedResources_ = versionedResourcesBuilder_.build(); } if (attachedResourcesBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { attachedResources_ = java.util.Collections.unmodifiableList(attachedResources_); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); } result.attachedResources_ = attachedResources_; } else { @@ -2851,19 +2542,19 @@ public com.google.cloud.asset.v1.ResourceSearchResult buildPartial() { } result.relationships_ = internalGetRelationships(); result.relationships_.makeImmutable(); - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { tagKeys_ = tagKeys_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); } result.tagKeys_ = tagKeys_; - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { tagValues_ = tagValues_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } result.tagValues_ = tagValues_; - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { tagValueIds_ = tagValueIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); } result.tagValueIds_ = tagValueIds_; result.parentAssetType_ = parentAssetType_; @@ -2875,39 +2566,38 @@ public com.google.cloud.asset.v1.ResourceSearchResult buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.ResourceSearchResult) { - return mergeFrom((com.google.cloud.asset.v1.ResourceSearchResult) other); + return mergeFrom((com.google.cloud.asset.v1.ResourceSearchResult)other); } else { super.mergeFrom(other); return this; @@ -2954,7 +2644,8 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ResourceSearchResult other) { location_ = other.location_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (!other.networkTags_.isEmpty()) { if (networkTags_.isEmpty()) { networkTags_ = other.networkTags_; @@ -2969,6 +2660,16 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ResourceSearchResult other) { kmsKey_ = other.kmsKey_; onChanged(); } + if (!other.kmsKeys_.isEmpty()) { + if (kmsKeys_.isEmpty()) { + kmsKeys_ = other.kmsKeys_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureKmsKeysIsMutable(); + kmsKeys_.addAll(other.kmsKeys_); + } + onChanged(); + } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -2990,7 +2691,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ResourceSearchResult other) { if (!other.versionedResources_.isEmpty()) { if (versionedResources_.isEmpty()) { versionedResources_ = other.versionedResources_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureVersionedResourcesIsMutable(); versionedResources_.addAll(other.versionedResources_); @@ -3003,11 +2704,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ResourceSearchResult other) { versionedResourcesBuilder_.dispose(); versionedResourcesBuilder_ = null; versionedResources_ = other.versionedResources_; - bitField0_ = (bitField0_ & ~0x00000008); - versionedResourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVersionedResourcesFieldBuilder() - : null; + bitField0_ = (bitField0_ & ~0x00000010); + versionedResourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVersionedResourcesFieldBuilder() : null; } else { versionedResourcesBuilder_.addAllMessages(other.versionedResources_); } @@ -3017,7 +2717,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ResourceSearchResult other) { if (!other.attachedResources_.isEmpty()) { if (attachedResources_.isEmpty()) { attachedResources_ = other.attachedResources_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureAttachedResourcesIsMutable(); attachedResources_.addAll(other.attachedResources_); @@ -3030,21 +2730,21 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ResourceSearchResult other) { attachedResourcesBuilder_.dispose(); attachedResourcesBuilder_ = null; attachedResources_ = other.attachedResources_; - bitField0_ = (bitField0_ & ~0x00000010); - attachedResourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAttachedResourcesFieldBuilder() - : null; + bitField0_ = (bitField0_ & ~0x00000020); + attachedResourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAttachedResourcesFieldBuilder() : null; } else { attachedResourcesBuilder_.addAllMessages(other.attachedResources_); } } } - internalGetMutableRelationships().mergeFrom(other.internalGetRelationships()); + internalGetMutableRelationships().mergeFrom( + other.internalGetRelationships()); if (!other.tagKeys_.isEmpty()) { if (tagKeys_.isEmpty()) { tagKeys_ = other.tagKeys_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensureTagKeysIsMutable(); tagKeys_.addAll(other.tagKeys_); @@ -3054,7 +2754,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ResourceSearchResult other) { if (!other.tagValues_.isEmpty()) { if (tagValues_.isEmpty()) { tagValues_ = other.tagValues_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureTagValuesIsMutable(); tagValues_.addAll(other.tagValues_); @@ -3064,7 +2764,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ResourceSearchResult other) { if (!other.tagValueIds_.isEmpty()) { if (tagValueIds_.isEmpty()) { tagValueIds_ = other.tagValueIds_; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); } else { ensureTagValueIdsIsMutable(); tagValueIds_.addAll(other.tagValueIds_); @@ -3075,7 +2775,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ResourceSearchResult other) { parentAssetType_ = other.parentAssetType_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -3090,26 +2790,190 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.ResourceSearchResult parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + assetType_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + project_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + location_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 58 + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + ensureNetworkTagsIsMutable(); + networkTags_.add(s); + break; + } // case 66 + case 74: { + input.readMessage( + getAdditionalAttributesFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 74 + case 82: { + kmsKey_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 90: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 90 + case 98: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 98 + case 106: { + state_ = input.readStringRequireUtf8(); + + break; + } // case 106 + case 130: { + com.google.cloud.asset.v1.VersionedResource m = + input.readMessage( + com.google.cloud.asset.v1.VersionedResource.parser(), + extensionRegistry); + if (versionedResourcesBuilder_ == null) { + ensureVersionedResourcesIsMutable(); + versionedResources_.add(m); + } else { + versionedResourcesBuilder_.addMessage(m); + } + break; + } // case 130 + case 138: { + java.lang.String s = input.readStringRequireUtf8(); + ensureFoldersIsMutable(); + folders_.add(s); + break; + } // case 138 + case 146: { + organization_ = input.readStringRequireUtf8(); + + break; + } // case 146 + case 154: { + parentFullResourceName_ = input.readStringRequireUtf8(); + + break; + } // case 154 + case 162: { + com.google.cloud.asset.v1.AttachedResource m = + input.readMessage( + com.google.cloud.asset.v1.AttachedResource.parser(), + extensionRegistry); + if (attachedResourcesBuilder_ == null) { + ensureAttachedResourcesIsMutable(); + attachedResources_.add(m); + } else { + attachedResourcesBuilder_.addMessage(m); + } + break; + } // case 162 + case 170: { + com.google.protobuf.MapEntry + relationships__ = input.readMessage( + RelationshipsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableRelationships().getMutableMap().put( + relationships__.getKey(), relationships__.getValue()); + break; + } // case 170 + case 186: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagKeysIsMutable(); + tagKeys_.add(s); + break; + } // case 186 + case 202: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagValuesIsMutable(); + tagValues_.add(s); + break; + } // case 202 + case 210: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagValueIdsIsMutable(); + tagValueIds_.add(s); + break; + } // case 210 + case 226: { + java.lang.String s = input.readStringRequireUtf8(); + ensureKmsKeysIsMutable(); + kmsKeys_.add(s); + break; + } // case 226 + case 826: { + parentAssetType_ = input.readStringRequireUtf8(); + + break; + } // case 826 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.ResourceSearchResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
          * The full resource name of this resource. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -3117,18 +2981,18 @@ public Builder mergeFrom(
          * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
          * for more information.
          * To search against the `name`:
    -     * * use a field query. Example: `name:instance1`
    -     * * use a free text query. Example: `instance1`
    +     * * Use a field query. Example: `name:instance1`
    +     * * Use a free text query. Example: `instance1`
          * 
    * * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -3137,8 +3001,6 @@ public java.lang.String getName() { } } /** - * - * *
          * The full resource name of this resource. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -3146,19 +3008,20 @@ public java.lang.String getName() {
          * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
          * for more information.
          * To search against the `name`:
    -     * * use a field query. Example: `name:instance1`
    -     * * use a free text query. Example: `instance1`
    +     * * Use a field query. Example: `name:instance1`
    +     * * Use a free text query. Example: `instance1`
          * 
    * * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -3166,8 +3029,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
          * The full resource name of this resource. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -3175,27 +3036,25 @@ public com.google.protobuf.ByteString getNameBytes() {
          * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
          * for more information.
          * To search against the `name`:
    -     * * use a field query. Example: `name:instance1`
    -     * * use a free text query. Example: `instance1`
    +     * * Use a field query. Example: `name:instance1`
    +     * * Use a free text query. Example: `instance1`
          * 
    * * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
          * The full resource name of this resource. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -3203,23 +3062,20 @@ public Builder setName(java.lang.String value) {
          * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
          * for more information.
          * To search against the `name`:
    -     * * use a field query. Example: `name:instance1`
    -     * * use a free text query. Example: `instance1`
    +     * * Use a field query. Example: `name:instance1`
    +     * * Use a free text query. Example: `instance1`
          * 
    * * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
          * The full resource name of this resource. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -3227,21 +3083,21 @@ public Builder clearName() {
          * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
          * for more information.
          * To search against the `name`:
    -     * * use a field query. Example: `name:instance1`
    -     * * use a free text query. Example: `instance1`
    +     * * Use a field query. Example: `name:instance1`
    +     * * Use a free text query. Example: `instance1`
          * 
    * * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -3249,22 +3105,20 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object assetType_ = ""; /** - * - * *
          * The type of this resource. Example: `compute.googleapis.com/Disk`.
          * To search against the `asset_type`:
    -     * * specify the `asset_type` field in your search request.
    +     * * Specify the `asset_type` field in your search request.
          * 
    * * string asset_type = 2; - * * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; @@ -3273,23 +3127,22 @@ public java.lang.String getAssetType() { } } /** - * - * *
          * The type of this resource. Example: `compute.googleapis.com/Disk`.
          * To search against the `asset_type`:
    -     * * specify the `asset_type` field in your search request.
    +     * * Specify the `asset_type` field in your search request.
          * 
    * * string asset_type = 2; - * * @return The bytes for assetType. */ - public com.google.protobuf.ByteString getAssetTypeBytes() { + public com.google.protobuf.ByteString + getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetType_ = b; return b; } else { @@ -3297,67 +3150,60 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { } } /** - * - * *
          * The type of this resource. Example: `compute.googleapis.com/Disk`.
          * To search against the `asset_type`:
    -     * * specify the `asset_type` field in your search request.
    +     * * Specify the `asset_type` field in your search request.
          * 
    * * string asset_type = 2; - * * @param value The assetType to set. * @return This builder for chaining. */ - public Builder setAssetType(java.lang.String value) { + public Builder setAssetType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + assetType_ = value; onChanged(); return this; } /** - * - * *
          * The type of this resource. Example: `compute.googleapis.com/Disk`.
          * To search against the `asset_type`:
    -     * * specify the `asset_type` field in your search request.
    +     * * Specify the `asset_type` field in your search request.
          * 
    * * string asset_type = 2; - * * @return This builder for chaining. */ public Builder clearAssetType() { - + assetType_ = getDefaultInstance().getAssetType(); onChanged(); return this; } /** - * - * *
          * The type of this resource. Example: `compute.googleapis.com/Disk`.
          * To search against the `asset_type`:
    -     * * specify the `asset_type` field in your search request.
    +     * * Specify the `asset_type` field in your search request.
          * 
    * * string asset_type = 2; - * * @param value The bytes for assetType to set. * @return This builder for chaining. */ - public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { + public Builder setAssetTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; onChanged(); return this; @@ -3365,26 +3211,24 @@ public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object project_ = ""; /** - * - * *
          * The project that this resource belongs to, in the form of
          * projects/{PROJECT_NUMBER}. This field is available when the resource
          * belongs to a project.
          * To search against `project`:
    -     * * use a field query. Example: `project:12345`
    -     * * use a free text query. Example: `12345`
    -     * * specify the `scope` field as this project in your search request.
    +     * * Use a field query. Example: `project:12345`
    +     * * Use a free text query. Example: `12345`
    +     * * Specify the `scope` field as this project in your search request.
          * 
    * * string project = 3; - * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -3393,27 +3237,26 @@ public java.lang.String getProject() { } } /** - * - * *
          * The project that this resource belongs to, in the form of
          * projects/{PROJECT_NUMBER}. This field is available when the resource
          * belongs to a project.
          * To search against `project`:
    -     * * use a field query. Example: `project:12345`
    -     * * use a free text query. Example: `12345`
    -     * * specify the `scope` field as this project in your search request.
    +     * * Use a field query. Example: `project:12345`
    +     * * Use a free text query. Example: `12345`
    +     * * Specify the `scope` field as this project in your search request.
          * 
    * * string project = 3; - * * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -3421,148 +3264,131 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
          * The project that this resource belongs to, in the form of
          * projects/{PROJECT_NUMBER}. This field is available when the resource
          * belongs to a project.
          * To search against `project`:
    -     * * use a field query. Example: `project:12345`
    -     * * use a free text query. Example: `12345`
    -     * * specify the `scope` field as this project in your search request.
    +     * * Use a field query. Example: `project:12345`
    +     * * Use a free text query. Example: `12345`
    +     * * Specify the `scope` field as this project in your search request.
          * 
    * * string project = 3; - * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { + public Builder setProject( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; onChanged(); return this; } /** - * - * *
          * The project that this resource belongs to, in the form of
          * projects/{PROJECT_NUMBER}. This field is available when the resource
          * belongs to a project.
          * To search against `project`:
    -     * * use a field query. Example: `project:12345`
    -     * * use a free text query. Example: `12345`
    -     * * specify the `scope` field as this project in your search request.
    +     * * Use a field query. Example: `project:12345`
    +     * * Use a free text query. Example: `12345`
    +     * * Specify the `scope` field as this project in your search request.
          * 
    * * string project = 3; - * * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** - * - * *
          * The project that this resource belongs to, in the form of
          * projects/{PROJECT_NUMBER}. This field is available when the resource
          * belongs to a project.
          * To search against `project`:
    -     * * use a field query. Example: `project:12345`
    -     * * use a free text query. Example: `12345`
    -     * * specify the `scope` field as this project in your search request.
    +     * * Use a field query. Example: `project:12345`
    +     * * Use a free text query. Example: `12345`
    +     * * Specify the `scope` field as this project in your search request.
          * 
    * * string project = 3; - * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList folders_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList folders_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFoldersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { folders_ = new com.google.protobuf.LazyStringArrayList(folders_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
          * The folder(s) that this resource belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the resource
          * belongs to one or more folders.
          * To search against `folders`:
    -     * * use a field query. Example: `folders:(123 OR 456)`
    -     * * use a free text query. Example: `123`
    -     * * specify the `scope` field as this folder in your search request.
    +     * * Use a field query. Example: `folders:(123 OR 456)`
    +     * * Use a free text query. Example: `123`
    +     * * Specify the `scope` field as this folder in your search request.
          * 
    * * repeated string folders = 17; - * * @return A list containing the folders. */ - public com.google.protobuf.ProtocolStringList getFoldersList() { + public com.google.protobuf.ProtocolStringList + getFoldersList() { return folders_.getUnmodifiableView(); } /** - * - * *
          * The folder(s) that this resource belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the resource
          * belongs to one or more folders.
          * To search against `folders`:
    -     * * use a field query. Example: `folders:(123 OR 456)`
    -     * * use a free text query. Example: `123`
    -     * * specify the `scope` field as this folder in your search request.
    +     * * Use a field query. Example: `folders:(123 OR 456)`
    +     * * Use a free text query. Example: `123`
    +     * * Specify the `scope` field as this folder in your search request.
          * 
    * * repeated string folders = 17; - * * @return The count of folders. */ public int getFoldersCount() { return folders_.size(); } /** - * - * *
          * The folder(s) that this resource belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the resource
          * belongs to one or more folders.
          * To search against `folders`:
    -     * * use a field query. Example: `folders:(123 OR 456)`
    -     * * use a free text query. Example: `123`
    -     * * specify the `scope` field as this folder in your search request.
    +     * * Use a field query. Example: `folders:(123 OR 456)`
    +     * * Use a free text query. Example: `123`
    +     * * Specify the `scope` field as this folder in your search request.
          * 
    * * repeated string folders = 17; - * * @param index The index of the element to return. * @return The folders at the given index. */ @@ -3570,120 +3396,110 @@ public java.lang.String getFolders(int index) { return folders_.get(index); } /** - * - * *
          * The folder(s) that this resource belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the resource
          * belongs to one or more folders.
          * To search against `folders`:
    -     * * use a field query. Example: `folders:(123 OR 456)`
    -     * * use a free text query. Example: `123`
    -     * * specify the `scope` field as this folder in your search request.
    +     * * Use a field query. Example: `folders:(123 OR 456)`
    +     * * Use a free text query. Example: `123`
    +     * * Specify the `scope` field as this folder in your search request.
          * 
    * * repeated string folders = 17; - * * @param index The index of the value to return. * @return The bytes of the folders at the given index. */ - public com.google.protobuf.ByteString getFoldersBytes(int index) { + public com.google.protobuf.ByteString + getFoldersBytes(int index) { return folders_.getByteString(index); } /** - * - * *
          * The folder(s) that this resource belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the resource
          * belongs to one or more folders.
          * To search against `folders`:
    -     * * use a field query. Example: `folders:(123 OR 456)`
    -     * * use a free text query. Example: `123`
    -     * * specify the `scope` field as this folder in your search request.
    +     * * Use a field query. Example: `folders:(123 OR 456)`
    +     * * Use a free text query. Example: `123`
    +     * * Specify the `scope` field as this folder in your search request.
          * 
    * * repeated string folders = 17; - * * @param index The index to set the value at. * @param value The folders to set. * @return This builder for chaining. */ - public Builder setFolders(int index, java.lang.String value) { + public Builder setFolders( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFoldersIsMutable(); + throw new NullPointerException(); + } + ensureFoldersIsMutable(); folders_.set(index, value); onChanged(); return this; } /** - * - * *
          * The folder(s) that this resource belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the resource
          * belongs to one or more folders.
          * To search against `folders`:
    -     * * use a field query. Example: `folders:(123 OR 456)`
    -     * * use a free text query. Example: `123`
    -     * * specify the `scope` field as this folder in your search request.
    +     * * Use a field query. Example: `folders:(123 OR 456)`
    +     * * Use a free text query. Example: `123`
    +     * * Specify the `scope` field as this folder in your search request.
          * 
    * * repeated string folders = 17; - * * @param value The folders to add. * @return This builder for chaining. */ - public Builder addFolders(java.lang.String value) { + public Builder addFolders( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFoldersIsMutable(); + throw new NullPointerException(); + } + ensureFoldersIsMutable(); folders_.add(value); onChanged(); return this; } /** - * - * *
          * The folder(s) that this resource belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the resource
          * belongs to one or more folders.
          * To search against `folders`:
    -     * * use a field query. Example: `folders:(123 OR 456)`
    -     * * use a free text query. Example: `123`
    -     * * specify the `scope` field as this folder in your search request.
    +     * * Use a field query. Example: `folders:(123 OR 456)`
    +     * * Use a free text query. Example: `123`
    +     * * Specify the `scope` field as this folder in your search request.
          * 
    * * repeated string folders = 17; - * * @param values The folders to add. * @return This builder for chaining. */ - public Builder addAllFolders(java.lang.Iterable values) { + public Builder addAllFolders( + java.lang.Iterable values) { ensureFoldersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, folders_); onChanged(); return this; } /** - * - * *
          * The folder(s) that this resource belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the resource
          * belongs to one or more folders.
          * To search against `folders`:
    -     * * use a field query. Example: `folders:(123 OR 456)`
    -     * * use a free text query. Example: `123`
    -     * * specify the `scope` field as this folder in your search request.
    +     * * Use a field query. Example: `folders:(123 OR 456)`
    +     * * Use a free text query. Example: `123`
    +     * * Specify the `scope` field as this folder in your search request.
          * 
    * * repeated string folders = 17; - * * @return This builder for chaining. */ public Builder clearFolders() { @@ -3693,28 +3509,26 @@ public Builder clearFolders() { return this; } /** - * - * *
          * The folder(s) that this resource belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the resource
          * belongs to one or more folders.
          * To search against `folders`:
    -     * * use a field query. Example: `folders:(123 OR 456)`
    -     * * use a free text query. Example: `123`
    -     * * specify the `scope` field as this folder in your search request.
    +     * * Use a field query. Example: `folders:(123 OR 456)`
    +     * * Use a free text query. Example: `123`
    +     * * Specify the `scope` field as this folder in your search request.
          * 
    * * repeated string folders = 17; - * * @param value The bytes of the folders to add. * @return This builder for chaining. */ - public Builder addFoldersBytes(com.google.protobuf.ByteString value) { + public Builder addFoldersBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFoldersIsMutable(); folders_.add(value); onChanged(); @@ -3723,26 +3537,24 @@ public Builder addFoldersBytes(com.google.protobuf.ByteString value) { private java.lang.Object organization_ = ""; /** - * - * *
          * The organization that this resource belongs to, in the form of
          * organizations/{ORGANIZATION_NUMBER}. This field is available when the
          * resource belongs to an organization.
          * To search against `organization`:
    -     * * use a field query. Example: `organization:123`
    -     * * use a free text query. Example: `123`
    -     * * specify the `scope` field as this organization in your search request.
    +     * * Use a field query. Example: `organization:123`
    +     * * Use a free text query. Example: `123`
    +     * * Specify the `scope` field as this organization in your search request.
          * 
    * * string organization = 18; - * * @return The organization. */ public java.lang.String getOrganization() { java.lang.Object ref = organization_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organization_ = s; return s; @@ -3751,27 +3563,26 @@ public java.lang.String getOrganization() { } } /** - * - * *
          * The organization that this resource belongs to, in the form of
          * organizations/{ORGANIZATION_NUMBER}. This field is available when the
          * resource belongs to an organization.
          * To search against `organization`:
    -     * * use a field query. Example: `organization:123`
    -     * * use a free text query. Example: `123`
    -     * * specify the `scope` field as this organization in your search request.
    +     * * Use a field query. Example: `organization:123`
    +     * * Use a free text query. Example: `123`
    +     * * Specify the `scope` field as this organization in your search request.
          * 
    * * string organization = 18; - * * @return The bytes for organization. */ - public com.google.protobuf.ByteString getOrganizationBytes() { + public com.google.protobuf.ByteString + getOrganizationBytes() { java.lang.Object ref = organization_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); organization_ = b; return b; } else { @@ -3779,79 +3590,72 @@ public com.google.protobuf.ByteString getOrganizationBytes() { } } /** - * - * *
          * The organization that this resource belongs to, in the form of
          * organizations/{ORGANIZATION_NUMBER}. This field is available when the
          * resource belongs to an organization.
          * To search against `organization`:
    -     * * use a field query. Example: `organization:123`
    -     * * use a free text query. Example: `123`
    -     * * specify the `scope` field as this organization in your search request.
    +     * * Use a field query. Example: `organization:123`
    +     * * Use a free text query. Example: `123`
    +     * * Specify the `scope` field as this organization in your search request.
          * 
    * * string organization = 18; - * * @param value The organization to set. * @return This builder for chaining. */ - public Builder setOrganization(java.lang.String value) { + public Builder setOrganization( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + organization_ = value; onChanged(); return this; } /** - * - * *
          * The organization that this resource belongs to, in the form of
          * organizations/{ORGANIZATION_NUMBER}. This field is available when the
          * resource belongs to an organization.
          * To search against `organization`:
    -     * * use a field query. Example: `organization:123`
    -     * * use a free text query. Example: `123`
    -     * * specify the `scope` field as this organization in your search request.
    +     * * Use a field query. Example: `organization:123`
    +     * * Use a free text query. Example: `123`
    +     * * Specify the `scope` field as this organization in your search request.
          * 
    * * string organization = 18; - * * @return This builder for chaining. */ public Builder clearOrganization() { - + organization_ = getDefaultInstance().getOrganization(); onChanged(); return this; } /** - * - * *
          * The organization that this resource belongs to, in the form of
          * organizations/{ORGANIZATION_NUMBER}. This field is available when the
          * resource belongs to an organization.
          * To search against `organization`:
    -     * * use a field query. Example: `organization:123`
    -     * * use a free text query. Example: `123`
    -     * * specify the `scope` field as this organization in your search request.
    +     * * Use a field query. Example: `organization:123`
    +     * * Use a free text query. Example: `123`
    +     * * Specify the `scope` field as this organization in your search request.
          * 
    * * string organization = 18; - * * @param value The bytes for organization to set. * @return This builder for chaining. */ - public Builder setOrganizationBytes(com.google.protobuf.ByteString value) { + public Builder setOrganizationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + organization_ = value; onChanged(); return this; @@ -3859,24 +3663,22 @@ public Builder setOrganizationBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
          * The display name of this resource. This field is available only when the
          * resource's Protobuf contains it.
          * To search against the `display_name`:
    -     * * use a field query. Example: `displayName:"My Instance"`
    -     * * use a free text query. Example: `"My Instance"`
    +     * * Use a field query. Example: `displayName:"My Instance"`
    +     * * Use a free text query. Example: `"My Instance"`
          * 
    * * string display_name = 4; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -3885,25 +3687,24 @@ public java.lang.String getDisplayName() { } } /** - * - * *
          * The display name of this resource. This field is available only when the
          * resource's Protobuf contains it.
          * To search against the `display_name`:
    -     * * use a field query. Example: `displayName:"My Instance"`
    -     * * use a free text query. Example: `"My Instance"`
    +     * * Use a field query. Example: `displayName:"My Instance"`
    +     * * Use a free text query. Example: `"My Instance"`
          * 
    * * string display_name = 4; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -3911,73 +3712,66 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
          * The display name of this resource. This field is available only when the
          * resource's Protobuf contains it.
          * To search against the `display_name`:
    -     * * use a field query. Example: `displayName:"My Instance"`
    -     * * use a free text query. Example: `"My Instance"`
    +     * * Use a field query. Example: `displayName:"My Instance"`
    +     * * Use a free text query. Example: `"My Instance"`
          * 
    * * string display_name = 4; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
          * The display name of this resource. This field is available only when the
          * resource's Protobuf contains it.
          * To search against the `display_name`:
    -     * * use a field query. Example: `displayName:"My Instance"`
    -     * * use a free text query. Example: `"My Instance"`
    +     * * Use a field query. Example: `displayName:"My Instance"`
    +     * * Use a free text query. Example: `"My Instance"`
          * 
    * * string display_name = 4; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
          * The display name of this resource. This field is available only when the
          * resource's Protobuf contains it.
          * To search against the `display_name`:
    -     * * use a field query. Example: `displayName:"My Instance"`
    -     * * use a free text query. Example: `"My Instance"`
    +     * * Use a field query. Example: `displayName:"My Instance"`
    +     * * Use a free text query. Example: `"My Instance"`
          * 
    * * string display_name = 4; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -3985,25 +3779,23 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
          * One or more paragraphs of text description of this resource. Maximum length
          * could be up to 1M bytes. This field is available only when the resource's
          * Protobuf contains it.
          * To search against the `description`:
    -     * * use a field query. Example: `description:"important instance"`
    -     * * use a free text query. Example: `"important instance"`
    +     * * Use a field query. Example: `description:"important instance"`
    +     * * Use a free text query. Example: `"important instance"`
          * 
    * * string description = 5; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -4012,26 +3804,25 @@ public java.lang.String getDescription() { } } /** - * - * *
          * One or more paragraphs of text description of this resource. Maximum length
          * could be up to 1M bytes. This field is available only when the resource's
          * Protobuf contains it.
          * To search against the `description`:
    -     * * use a field query. Example: `description:"important instance"`
    -     * * use a free text query. Example: `"important instance"`
    +     * * Use a field query. Example: `description:"important instance"`
    +     * * Use a free text query. Example: `"important instance"`
          * 
    * * string description = 5; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -4039,76 +3830,69 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
          * One or more paragraphs of text description of this resource. Maximum length
          * could be up to 1M bytes. This field is available only when the resource's
          * Protobuf contains it.
          * To search against the `description`:
    -     * * use a field query. Example: `description:"important instance"`
    -     * * use a free text query. Example: `"important instance"`
    +     * * Use a field query. Example: `description:"important instance"`
    +     * * Use a free text query. Example: `"important instance"`
          * 
    * * string description = 5; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
          * One or more paragraphs of text description of this resource. Maximum length
          * could be up to 1M bytes. This field is available only when the resource's
          * Protobuf contains it.
          * To search against the `description`:
    -     * * use a field query. Example: `description:"important instance"`
    -     * * use a free text query. Example: `"important instance"`
    +     * * Use a field query. Example: `description:"important instance"`
    +     * * Use a free text query. Example: `"important instance"`
          * 
    * * string description = 5; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
          * One or more paragraphs of text description of this resource. Maximum length
          * could be up to 1M bytes. This field is available only when the resource's
          * Protobuf contains it.
          * To search against the `description`:
    -     * * use a field query. Example: `description:"important instance"`
    -     * * use a free text query. Example: `"important instance"`
    +     * * Use a field query. Example: `description:"important instance"`
    +     * * Use a free text query. Example: `"important instance"`
          * 
    * * string description = 5; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -4116,25 +3900,23 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object location_ = ""; /** - * - * *
          * Location can be `global`, regional like `us-east1`, or zonal like
          * `us-west1-b`. This field is available only when the resource's Protobuf
          * contains it.
          * To search against the `location`:
    -     * * use a field query. Example: `location:us-west*`
    -     * * use a free text query. Example: `us-west*`
    +     * * Use a field query. Example: `location:us-west*`
    +     * * Use a free text query. Example: `us-west*`
          * 
    * * string location = 6; - * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -4143,26 +3925,25 @@ public java.lang.String getLocation() { } } /** - * - * *
          * Location can be `global`, regional like `us-east1`, or zonal like
          * `us-west1-b`. This field is available only when the resource's Protobuf
          * contains it.
          * To search against the `location`:
    -     * * use a field query. Example: `location:us-west*`
    -     * * use a free text query. Example: `us-west*`
    +     * * Use a field query. Example: `location:us-west*`
    +     * * Use a free text query. Example: `us-west*`
          * 
    * * string location = 6; - * * @return The bytes for location. */ - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -4170,96 +3951,90 @@ public com.google.protobuf.ByteString getLocationBytes() { } } /** - * - * *
          * Location can be `global`, regional like `us-east1`, or zonal like
          * `us-west1-b`. This field is available only when the resource's Protobuf
          * contains it.
          * To search against the `location`:
    -     * * use a field query. Example: `location:us-west*`
    -     * * use a free text query. Example: `us-west*`
    +     * * Use a field query. Example: `location:us-west*`
    +     * * Use a free text query. Example: `us-west*`
          * 
    * * string location = 6; - * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation(java.lang.String value) { + public Builder setLocation( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** - * - * *
          * Location can be `global`, regional like `us-east1`, or zonal like
          * `us-west1-b`. This field is available only when the resource's Protobuf
          * contains it.
          * To search against the `location`:
    -     * * use a field query. Example: `location:us-west*`
    -     * * use a free text query. Example: `us-west*`
    +     * * Use a field query. Example: `location:us-west*`
    +     * * Use a free text query. Example: `us-west*`
          * 
    * * string location = 6; - * * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** - * - * *
          * Location can be `global`, regional like `us-east1`, or zonal like
          * `us-west1-b`. This field is available only when the resource's Protobuf
          * contains it.
          * To search against the `location`:
    -     * * use a field query. Example: `location:us-west*`
    -     * * use a free text query. Example: `us-west*`
    +     * * Use a field query. Example: `location:us-west*`
    +     * * Use a free text query. Example: `us-west*`
          * 
    * * string location = 6; - * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -4271,109 +4046,106 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
          * for more information. This field is available only when the resource's
          * Protobuf contains it.
          * To search against the `labels`:
    -     * * use a field query:
    +     * * Use a field query:
          *     - query on any label's key or value. Example: `labels:prod`
          *     - query by a given label. Example: `labels.env:prod`
          *     - query by a given label's existence. Example: `labels.env:*`
    -     * * use a free text query. Example: `prod`
    +     * * Use a free text query. Example: `prod`
          * 
    * * map<string, string> labels = 7; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
          * for more information. This field is available only when the resource's
          * Protobuf contains it.
          * To search against the `labels`:
    -     * * use a field query:
    +     * * Use a field query:
          *     - query on any label's key or value. Example: `labels:prod`
          *     - query by a given label. Example: `labels.env:prod`
          *     - query by a given label's existence. Example: `labels.env:*`
    -     * * use a free text query. Example: `prod`
    +     * * Use a free text query. Example: `prod`
          * 
    * * map<string, string> labels = 7; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
          * for more information. This field is available only when the resource's
          * Protobuf contains it.
          * To search against the `labels`:
    -     * * use a field query:
    +     * * Use a field query:
          *     - query on any label's key or value. Example: `labels:prod`
          *     - query by a given label. Example: `labels.env:prod`
          *     - query by a given label's existence. Example: `labels.env:*`
    -     * * use a free text query. Example: `prod`
    +     * * Use a free text query. Example: `prod`
          * 
    * * map<string, string> labels = 7; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
          * for more information. This field is available only when the resource's
          * Protobuf contains it.
          * To search against the `labels`:
    -     * * use a field query:
    +     * * Use a field query:
          *     - query on any label's key or value. Example: `labels:prod`
          *     - query by a given label. Example: `labels.env:prod`
          *     - query by a given label's existence. Example: `labels.env:*`
    -     * * use a free text query. Example: `prod`
    +     * * Use a free text query. Example: `prod`
          * 
    * * map<string, string> labels = 7; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -4381,103 +4153,102 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
          * for more information. This field is available only when the resource's
          * Protobuf contains it.
          * To search against the `labels`:
    -     * * use a field query:
    +     * * Use a field query:
          *     - query on any label's key or value. Example: `labels:prod`
          *     - query by a given label. Example: `labels.env:prod`
          *     - query by a given label's existence. Example: `labels.env:*`
    -     * * use a free text query. Example: `prod`
    +     * * Use a free text query. Example: `prod`
          * 
    * * map<string, string> labels = 7; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
          * for more information. This field is available only when the resource's
          * Protobuf contains it.
          * To search against the `labels`:
    -     * * use a field query:
    +     * * Use a field query:
          *     - query on any label's key or value. Example: `labels:prod`
          *     - query by a given label. Example: `labels.env:prod`
          *     - query by a given label's existence. Example: `labels.env:*`
    -     * * use a free text query. Example: `prod`
    +     * * Use a free text query. Example: `prod`
          * 
    * * map<string, string> labels = 7; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableLabels().getMutableMap().put(key, value); + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
          * for more information. This field is available only when the resource's
          * Protobuf contains it.
          * To search against the `labels`:
    -     * * use a field query:
    +     * * Use a field query:
          *     - query on any label's key or value. Example: `labels:prod`
          *     - query by a given label. Example: `labels.env:prod`
          *     - query by a given label's existence. Example: `labels.env:*`
    -     * * use a free text query. Example: `prod`
    +     * * Use a free text query. Example: `prod`
          * 
    * * map<string, string> labels = 7; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - private com.google.protobuf.LazyStringList networkTags_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList networkTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureNetworkTagsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { networkTags_ = new com.google.protobuf.LazyStringArrayList(networkTags_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -4485,20 +4256,18 @@ private void ensureNetworkTagsIsMutable() {
          * for more information. This field is available only when the resource's
          * Protobuf contains it.
          * To search against the `network_tags`:
    -     * * use a field query. Example: `networkTags:internal`
    -     * * use a free text query. Example: `internal`
    +     * * Use a field query. Example: `networkTags:internal`
    +     * * Use a free text query. Example: `internal`
          * 
    * * repeated string network_tags = 8; - * * @return A list containing the networkTags. */ - public com.google.protobuf.ProtocolStringList getNetworkTagsList() { + public com.google.protobuf.ProtocolStringList + getNetworkTagsList() { return networkTags_.getUnmodifiableView(); } /** - * - * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -4506,20 +4275,17 @@ public com.google.protobuf.ProtocolStringList getNetworkTagsList() {
          * for more information. This field is available only when the resource's
          * Protobuf contains it.
          * To search against the `network_tags`:
    -     * * use a field query. Example: `networkTags:internal`
    -     * * use a free text query. Example: `internal`
    +     * * Use a field query. Example: `networkTags:internal`
    +     * * Use a free text query. Example: `internal`
          * 
    * * repeated string network_tags = 8; - * * @return The count of networkTags. */ public int getNetworkTagsCount() { return networkTags_.size(); } /** - * - * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -4527,12 +4293,11 @@ public int getNetworkTagsCount() {
          * for more information. This field is available only when the resource's
          * Protobuf contains it.
          * To search against the `network_tags`:
    -     * * use a field query. Example: `networkTags:internal`
    -     * * use a free text query. Example: `internal`
    +     * * Use a field query. Example: `networkTags:internal`
    +     * * Use a free text query. Example: `internal`
          * 
    * * repeated string network_tags = 8; - * * @param index The index of the element to return. * @return The networkTags at the given index. */ @@ -4540,8 +4305,6 @@ public java.lang.String getNetworkTags(int index) { return networkTags_.get(index); } /** - * - * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -4549,21 +4312,19 @@ public java.lang.String getNetworkTags(int index) {
          * for more information. This field is available only when the resource's
          * Protobuf contains it.
          * To search against the `network_tags`:
    -     * * use a field query. Example: `networkTags:internal`
    -     * * use a free text query. Example: `internal`
    +     * * Use a field query. Example: `networkTags:internal`
    +     * * Use a free text query. Example: `internal`
          * 
    * * repeated string network_tags = 8; - * * @param index The index of the value to return. * @return The bytes of the networkTags at the given index. */ - public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { + public com.google.protobuf.ByteString + getNetworkTagsBytes(int index) { return networkTags_.getByteString(index); } /** - * - * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -4571,28 +4332,26 @@ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) {
          * for more information. This field is available only when the resource's
          * Protobuf contains it.
          * To search against the `network_tags`:
    -     * * use a field query. Example: `networkTags:internal`
    -     * * use a free text query. Example: `internal`
    +     * * Use a field query. Example: `networkTags:internal`
    +     * * Use a free text query. Example: `internal`
          * 
    * * repeated string network_tags = 8; - * * @param index The index to set the value at. * @param value The networkTags to set. * @return This builder for chaining. */ - public Builder setNetworkTags(int index, java.lang.String value) { + public Builder setNetworkTags( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNetworkTagsIsMutable(); + throw new NullPointerException(); + } + ensureNetworkTagsIsMutable(); networkTags_.set(index, value); onChanged(); return this; } /** - * - * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -4600,27 +4359,25 @@ public Builder setNetworkTags(int index, java.lang.String value) {
          * for more information. This field is available only when the resource's
          * Protobuf contains it.
          * To search against the `network_tags`:
    -     * * use a field query. Example: `networkTags:internal`
    -     * * use a free text query. Example: `internal`
    +     * * Use a field query. Example: `networkTags:internal`
    +     * * Use a free text query. Example: `internal`
          * 
    * * repeated string network_tags = 8; - * * @param value The networkTags to add. * @return This builder for chaining. */ - public Builder addNetworkTags(java.lang.String value) { + public Builder addNetworkTags( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNetworkTagsIsMutable(); + throw new NullPointerException(); + } + ensureNetworkTagsIsMutable(); networkTags_.add(value); onChanged(); return this; } /** - * - * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -4628,24 +4385,44 @@ public Builder addNetworkTags(java.lang.String value) {
          * for more information. This field is available only when the resource's
          * Protobuf contains it.
          * To search against the `network_tags`:
    -     * * use a field query. Example: `networkTags:internal`
    -     * * use a free text query. Example: `internal`
    +     * * Use a field query. Example: `networkTags:internal`
    +     * * Use a free text query. Example: `internal`
          * 
    * * repeated string network_tags = 8; - * * @param values The networkTags to add. * @return This builder for chaining. */ - public Builder addAllNetworkTags(java.lang.Iterable values) { + public Builder addAllNetworkTags( + java.lang.Iterable values) { ensureNetworkTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkTags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, networkTags_); onChanged(); return this; } /** + *
    +     * Network tags associated with this resource. Like labels, network tags are a
    +     * type of annotations used to group GCP resources. See [Labelling GCP
    +     * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    +     * for more information. This field is available only when the resource's
    +     * Protobuf contains it.
    +     * To search against the `network_tags`:
    +     * * Use a field query. Example: `networkTags:internal`
    +     * * Use a free text query. Example: `internal`
    +     * 
    * - * + * repeated string network_tags = 8; + * @return This builder for chaining. + */ + public Builder clearNetworkTags() { + networkTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -4653,211 +4430,425 @@ public Builder addAllNetworkTags(java.lang.Iterable values) {
          * for more information. This field is available only when the resource's
          * Protobuf contains it.
          * To search against the `network_tags`:
    -     * * use a field query. Example: `networkTags:internal`
    -     * * use a free text query. Example: `internal`
    +     * * Use a field query. Example: `networkTags:internal`
    +     * * Use a free text query. Example: `internal`
          * 
    * * repeated string network_tags = 8; + * @param value The bytes of the networkTags to add. + * @return This builder for chaining. + */ + public Builder addNetworkTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNetworkTagsIsMutable(); + networkTags_.add(value); + onChanged(); + return this; + } + + private java.lang.Object kmsKey_ = ""; + /** + *
    +     * The Cloud KMS
    +     * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +     * name or
    +     * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +     * name.
    +     * This field only presents for the purpose of backward compatibility. Please
    +     * use the `kms_keys` field to retrieve KMS key information. This field is
    +     * available only when the resource's Protobuf contains it and will only be
    +     * populated for [these resource
    +     * types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field)
    +     * for backward compatible purposes.
    +     * To search against the `kms_key`:
    +     * * Use a field query. Example: `kmsKey:key`
    +     * * Use a free text query. Example: `key`
    +     * 
    + * + * string kms_key = 10 [deprecated = true]; + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. + * See google/cloud/asset/v1/assets.proto;l=434 + * @return The kmsKey. + */ + @java.lang.Deprecated public java.lang.String getKmsKey() { + java.lang.Object ref = kmsKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
    +     * The Cloud KMS
    +     * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +     * name or
    +     * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +     * name.
    +     * This field only presents for the purpose of backward compatibility. Please
    +     * use the `kms_keys` field to retrieve KMS key information. This field is
    +     * available only when the resource's Protobuf contains it and will only be
    +     * populated for [these resource
    +     * types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field)
    +     * for backward compatible purposes.
    +     * To search against the `kms_key`:
    +     * * Use a field query. Example: `kmsKey:key`
    +     * * Use a free text query. Example: `key`
    +     * 
    + * + * string kms_key = 10 [deprecated = true]; + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. + * See google/cloud/asset/v1/assets.proto;l=434 + * @return The bytes for kmsKey. + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getKmsKeyBytes() { + java.lang.Object ref = kmsKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
    +     * The Cloud KMS
    +     * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +     * name or
    +     * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +     * name.
    +     * This field only presents for the purpose of backward compatibility. Please
    +     * use the `kms_keys` field to retrieve KMS key information. This field is
    +     * available only when the resource's Protobuf contains it and will only be
    +     * populated for [these resource
    +     * types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field)
    +     * for backward compatible purposes.
    +     * To search against the `kms_key`:
    +     * * Use a field query. Example: `kmsKey:key`
    +     * * Use a free text query. Example: `key`
    +     * 
    + * + * string kms_key = 10 [deprecated = true]; + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. + * See google/cloud/asset/v1/assets.proto;l=434 + * @param value The kmsKey to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setKmsKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kmsKey_ = value; + onChanged(); + return this; + } + /** + *
    +     * The Cloud KMS
    +     * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +     * name or
    +     * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +     * name.
    +     * This field only presents for the purpose of backward compatibility. Please
    +     * use the `kms_keys` field to retrieve KMS key information. This field is
    +     * available only when the resource's Protobuf contains it and will only be
    +     * populated for [these resource
    +     * types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field)
    +     * for backward compatible purposes.
    +     * To search against the `kms_key`:
    +     * * Use a field query. Example: `kmsKey:key`
    +     * * Use a free text query. Example: `key`
    +     * 
    + * + * string kms_key = 10 [deprecated = true]; + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. + * See google/cloud/asset/v1/assets.proto;l=434 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearKmsKey() { + + kmsKey_ = getDefaultInstance().getKmsKey(); + onChanged(); + return this; + } + /** + *
    +     * The Cloud KMS
    +     * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +     * name or
    +     * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +     * name.
    +     * This field only presents for the purpose of backward compatibility. Please
    +     * use the `kms_keys` field to retrieve KMS key information. This field is
    +     * available only when the resource's Protobuf contains it and will only be
    +     * populated for [these resource
    +     * types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field)
    +     * for backward compatible purposes.
    +     * To search against the `kms_key`:
    +     * * Use a field query. Example: `kmsKey:key`
    +     * * Use a free text query. Example: `key`
    +     * 
    + * + * string kms_key = 10 [deprecated = true]; + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. + * See google/cloud/asset/v1/assets.proto;l=434 + * @param value The bytes for kmsKey to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setKmsKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kmsKey_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList kmsKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureKmsKeysIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + kmsKeys_ = new com.google.protobuf.LazyStringArrayList(kmsKeys_); + bitField0_ |= 0x00000008; + } + } + /** + *
    +     * The Cloud KMS
    +     * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +     * names or
    +     * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +     * names. This field is available only when the resource's Protobuf contains
    +     * it.
    +     * To search against the `kms_keys`:
    +     * * Use a field query. Example: `kmsKeys:key`
    +     * * Use a free text query. Example: `key`
    +     * 
    + * + * repeated string kms_keys = 28; + * @return A list containing the kmsKeys. + */ + public com.google.protobuf.ProtocolStringList + getKmsKeysList() { + return kmsKeys_.getUnmodifiableView(); + } + /** + *
    +     * The Cloud KMS
    +     * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +     * names or
    +     * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +     * names. This field is available only when the resource's Protobuf contains
    +     * it.
    +     * To search against the `kms_keys`:
    +     * * Use a field query. Example: `kmsKeys:key`
    +     * * Use a free text query. Example: `key`
    +     * 
    * - * @return This builder for chaining. + * repeated string kms_keys = 28; + * @return The count of kmsKeys. */ - public Builder clearNetworkTags() { - networkTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; + public int getKmsKeysCount() { + return kmsKeys_.size(); } /** - * - * *
    -     * Network tags associated with this resource. Like labels, network tags are a
    -     * type of annotations used to group GCP resources. See [Labelling GCP
    -     * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    -     * for more information. This field is available only when the resource's
    -     * Protobuf contains it.
    -     * To search against the `network_tags`:
    -     * * use a field query. Example: `networkTags:internal`
    -     * * use a free text query. Example: `internal`
    +     * The Cloud KMS
    +     * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +     * names or
    +     * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +     * names. This field is available only when the resource's Protobuf contains
    +     * it.
    +     * To search against the `kms_keys`:
    +     * * Use a field query. Example: `kmsKeys:key`
    +     * * Use a free text query. Example: `key`
          * 
    * - * repeated string network_tags = 8; - * - * @param value The bytes of the networkTags to add. - * @return This builder for chaining. + * repeated string kms_keys = 28; + * @param index The index of the element to return. + * @return The kmsKeys at the given index. */ - public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureNetworkTagsIsMutable(); - networkTags_.add(value); - onChanged(); - return this; + public java.lang.String getKmsKeys(int index) { + return kmsKeys_.get(index); } - - private java.lang.Object kmsKey_ = ""; /** - * - * *
          * The Cloud KMS
          * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    -     * name or
    +     * names or
          * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    -     * name. This field is available only when the resource's Protobuf contains
    +     * names. This field is available only when the resource's Protobuf contains
          * it.
    -     * To search against the `kms_key`:
    -     * * use a field query. Example: `kmsKey:key`
    -     * * use a free text query. Example: `key`
    +     * To search against the `kms_keys`:
    +     * * Use a field query. Example: `kmsKeys:key`
    +     * * Use a free text query. Example: `key`
          * 
    * - * string kms_key = 10; - * - * @return The kmsKey. + * repeated string kms_keys = 28; + * @param index The index of the value to return. + * @return The bytes of the kmsKeys at the given index. */ - public java.lang.String getKmsKey() { - java.lang.Object ref = kmsKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kmsKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public com.google.protobuf.ByteString + getKmsKeysBytes(int index) { + return kmsKeys_.getByteString(index); } /** - * - * *
          * The Cloud KMS
          * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    -     * name or
    +     * names or
          * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    -     * name. This field is available only when the resource's Protobuf contains
    +     * names. This field is available only when the resource's Protobuf contains
          * it.
    -     * To search against the `kms_key`:
    -     * * use a field query. Example: `kmsKey:key`
    -     * * use a free text query. Example: `key`
    +     * To search against the `kms_keys`:
    +     * * Use a field query. Example: `kmsKeys:key`
    +     * * Use a free text query. Example: `key`
          * 
    * - * string kms_key = 10; - * - * @return The bytes for kmsKey. + * repeated string kms_keys = 28; + * @param index The index to set the value at. + * @param value The kmsKeys to set. + * @return This builder for chaining. */ - public com.google.protobuf.ByteString getKmsKeyBytes() { - java.lang.Object ref = kmsKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kmsKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public Builder setKmsKeys( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKmsKeysIsMutable(); + kmsKeys_.set(index, value); + onChanged(); + return this; } /** - * - * *
          * The Cloud KMS
          * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    -     * name or
    +     * names or
          * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    -     * name. This field is available only when the resource's Protobuf contains
    +     * names. This field is available only when the resource's Protobuf contains
          * it.
    -     * To search against the `kms_key`:
    -     * * use a field query. Example: `kmsKey:key`
    -     * * use a free text query. Example: `key`
    +     * To search against the `kms_keys`:
    +     * * Use a field query. Example: `kmsKeys:key`
    +     * * Use a free text query. Example: `key`
          * 
    * - * string kms_key = 10; - * - * @param value The kmsKey to set. + * repeated string kms_keys = 28; + * @param value The kmsKeys to add. * @return This builder for chaining. */ - public Builder setKmsKey(java.lang.String value) { + public Builder addKmsKeys( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - - kmsKey_ = value; + throw new NullPointerException(); + } + ensureKmsKeysIsMutable(); + kmsKeys_.add(value); onChanged(); return this; } /** - * - * *
          * The Cloud KMS
          * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    -     * name or
    +     * names or
          * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    -     * name. This field is available only when the resource's Protobuf contains
    +     * names. This field is available only when the resource's Protobuf contains
          * it.
    -     * To search against the `kms_key`:
    -     * * use a field query. Example: `kmsKey:key`
    -     * * use a free text query. Example: `key`
    +     * To search against the `kms_keys`:
    +     * * Use a field query. Example: `kmsKeys:key`
    +     * * Use a free text query. Example: `key`
          * 
    * - * string kms_key = 10; - * + * repeated string kms_keys = 28; + * @param values The kmsKeys to add. * @return This builder for chaining. */ - public Builder clearKmsKey() { - - kmsKey_ = getDefaultInstance().getKmsKey(); + public Builder addAllKmsKeys( + java.lang.Iterable values) { + ensureKmsKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, kmsKeys_); onChanged(); return this; } /** - * - * *
          * The Cloud KMS
          * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    -     * name or
    +     * names or
          * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    -     * name. This field is available only when the resource's Protobuf contains
    +     * names. This field is available only when the resource's Protobuf contains
          * it.
    -     * To search against the `kms_key`:
    -     * * use a field query. Example: `kmsKey:key`
    -     * * use a free text query. Example: `key`
    +     * To search against the `kms_keys`:
    +     * * Use a field query. Example: `kmsKeys:key`
    +     * * Use a free text query. Example: `key`
          * 
    * - * string kms_key = 10; + * repeated string kms_keys = 28; + * @return This builder for chaining. + */ + public Builder clearKmsKeys() { + kmsKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
    +     * The Cloud KMS
    +     * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +     * names or
    +     * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +     * names. This field is available only when the resource's Protobuf contains
    +     * it.
    +     * To search against the `kms_keys`:
    +     * * Use a field query. Example: `kmsKeys:key`
    +     * * Use a free text query. Example: `key`
    +     * 
    * - * @param value The bytes for kmsKey to set. + * repeated string kms_keys = 28; + * @param value The bytes of the kmsKeys to add. * @return This builder for chaining. */ - public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { + public Builder addKmsKeysBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kmsKey_ = value; + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureKmsKeysIsMutable(); + kmsKeys_.add(value); onChanged(); return this; } private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
          * The create timestamp of this resource, at which the resource was created.
          * The granularity is in seconds. Timestamp.nanos will always be 0. This field
          * is available only when the resource's Protobuf contains it.
          * To search against `create_time`:
    -     * * use a field query.
    +     * * Use a field query.
          *     - value in seconds since unix epoch. Example: `createTime > 1609459200`
          *     - value in date string. Example: `createTime > 2021-01-01`
          *     - value in date-time string (must be quoted). Example: `createTime >
    @@ -4865,21 +4856,18 @@ public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) {
          * 
    * * .google.protobuf.Timestamp create_time = 11; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
          * The create timestamp of this resource, at which the resource was created.
          * The granularity is in seconds. Timestamp.nanos will always be 0. This field
          * is available only when the resource's Protobuf contains it.
          * To search against `create_time`:
    -     * * use a field query.
    +     * * Use a field query.
          *     - value in seconds since unix epoch. Example: `createTime > 1609459200`
          *     - value in date string. Example: `createTime > 2021-01-01`
          *     - value in date-time string (must be quoted). Example: `createTime >
    @@ -4887,27 +4875,22 @@ public boolean hasCreateTime() {
          * 
    * * .google.protobuf.Timestamp create_time = 11; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
          * The create timestamp of this resource, at which the resource was created.
          * The granularity is in seconds. Timestamp.nanos will always be 0. This field
          * is available only when the resource's Protobuf contains it.
          * To search against `create_time`:
    -     * * use a field query.
    +     * * Use a field query.
          *     - value in seconds since unix epoch. Example: `createTime > 1609459200`
          *     - value in date string. Example: `createTime > 2021-01-01`
          *     - value in date-time string (must be quoted). Example: `createTime >
    @@ -4930,14 +4913,12 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The create timestamp of this resource, at which the resource was created.
          * The granularity is in seconds. Timestamp.nanos will always be 0. This field
          * is available only when the resource's Protobuf contains it.
          * To search against `create_time`:
    -     * * use a field query.
    +     * * Use a field query.
          *     - value in seconds since unix epoch. Example: `createTime > 1609459200`
          *     - value in date string. Example: `createTime > 2021-01-01`
          *     - value in date-time string (must be quoted). Example: `createTime >
    @@ -4946,7 +4927,8 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
          *
          * .google.protobuf.Timestamp create_time = 11;
          */
    -    public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
    +    public Builder setCreateTime(
    +        com.google.protobuf.Timestamp.Builder builderForValue) {
           if (createTimeBuilder_ == null) {
             createTime_ = builderForValue.build();
             onChanged();
    @@ -4957,14 +4939,12 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The create timestamp of this resource, at which the resource was created.
          * The granularity is in seconds. Timestamp.nanos will always be 0. This field
          * is available only when the resource's Protobuf contains it.
          * To search against `create_time`:
    -     * * use a field query.
    +     * * Use a field query.
          *     - value in seconds since unix epoch. Example: `createTime > 1609459200`
          *     - value in date string. Example: `createTime > 2021-01-01`
          *     - value in date-time string (must be quoted). Example: `createTime >
    @@ -4977,7 +4957,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
           if (createTimeBuilder_ == null) {
             if (createTime_ != null) {
               createTime_ =
    -              com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial();
    +            com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial();
             } else {
               createTime_ = value;
             }
    @@ -4989,14 +4969,12 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The create timestamp of this resource, at which the resource was created.
          * The granularity is in seconds. Timestamp.nanos will always be 0. This field
          * is available only when the resource's Protobuf contains it.
          * To search against `create_time`:
    -     * * use a field query.
    +     * * Use a field query.
          *     - value in seconds since unix epoch. Example: `createTime > 1609459200`
          *     - value in date string. Example: `createTime > 2021-01-01`
          *     - value in date-time string (must be quoted). Example: `createTime >
    @@ -5017,14 +4995,12 @@ public Builder clearCreateTime() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The create timestamp of this resource, at which the resource was created.
          * The granularity is in seconds. Timestamp.nanos will always be 0. This field
          * is available only when the resource's Protobuf contains it.
          * To search against `create_time`:
    -     * * use a field query.
    +     * * Use a field query.
          *     - value in seconds since unix epoch. Example: `createTime > 1609459200`
          *     - value in date string. Example: `createTime > 2021-01-01`
          *     - value in date-time string (must be quoted). Example: `createTime >
    @@ -5034,19 +5010,17 @@ public Builder clearCreateTime() {
          * .google.protobuf.Timestamp create_time = 11;
          */
         public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
    -
    +      
           onChanged();
           return getCreateTimeFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * The create timestamp of this resource, at which the resource was created.
          * The granularity is in seconds. Timestamp.nanos will always be 0. This field
          * is available only when the resource's Protobuf contains it.
          * To search against `create_time`:
    -     * * use a field query.
    +     * * Use a field query.
          *     - value in seconds since unix epoch. Example: `createTime > 1609459200`
          *     - value in date string. Example: `createTime > 2021-01-01`
          *     - value in date-time string (must be quoted). Example: `createTime >
    @@ -5059,20 +5033,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
           if (createTimeBuilder_ != null) {
             return createTimeBuilder_.getMessageOrBuilder();
           } else {
    -        return createTime_ == null
    -            ? com.google.protobuf.Timestamp.getDefaultInstance()
    -            : createTime_;
    +        return createTime_ == null ?
    +            com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
           }
         }
         /**
    -     *
    -     *
          * 
          * The create timestamp of this resource, at which the resource was created.
          * The granularity is in seconds. Timestamp.nanos will always be 0. This field
          * is available only when the resource's Protobuf contains it.
          * To search against `create_time`:
    -     * * use a field query.
    +     * * Use a field query.
          *     - value in seconds since unix epoch. Example: `createTime > 1609459200`
          *     - value in date string. Example: `createTime > 2021-01-01`
          *     - value in date-time string (must be quoted). Example: `createTime >
    @@ -5082,17 +5053,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
          * .google.protobuf.Timestamp create_time = 11;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp,
    -            com.google.protobuf.Timestamp.Builder,
    -            com.google.protobuf.TimestampOrBuilder>
    +        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
             getCreateTimeFieldBuilder() {
           if (createTimeBuilder_ == null) {
    -        createTimeBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.protobuf.Timestamp,
    -                com.google.protobuf.Timestamp.Builder,
    -                com.google.protobuf.TimestampOrBuilder>(
    -                getCreateTime(), getParentForChildren(), isClean());
    +        createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    +                getCreateTime(),
    +                getParentForChildren(),
    +                isClean());
             createTime_ = null;
           }
           return createTimeBuilder_;
    @@ -5100,20 +5068,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
     
         private com.google.protobuf.Timestamp updateTime_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp,
    -            com.google.protobuf.Timestamp.Builder,
    -            com.google.protobuf.TimestampOrBuilder>
    -        updateTimeBuilder_;
    +        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_;
         /**
    -     *
    -     *
          * 
          * The last update timestamp of this resource, at which the resource was last
          * modified or deleted. The granularity is in seconds. Timestamp.nanos will
          * always be 0. This field is available only when the resource's Protobuf
          * contains it.
          * To search against `update_time`:
    -     * * use a field query.
    +     * * Use a field query.
          *     - value in seconds since unix epoch. Example: `updateTime < 1609459200`
          *     - value in date string. Example: `updateTime < 2021-01-01`
          *     - value in date-time string (must be quoted). Example: `updateTime <
    @@ -5121,22 +5084,19 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
          * 
    * * .google.protobuf.Timestamp update_time = 12; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
          * The last update timestamp of this resource, at which the resource was last
          * modified or deleted. The granularity is in seconds. Timestamp.nanos will
          * always be 0. This field is available only when the resource's Protobuf
          * contains it.
          * To search against `update_time`:
    -     * * use a field query.
    +     * * Use a field query.
          *     - value in seconds since unix epoch. Example: `updateTime < 1609459200`
          *     - value in date string. Example: `updateTime < 2021-01-01`
          *     - value in date-time string (must be quoted). Example: `updateTime <
    @@ -5144,28 +5104,23 @@ public boolean hasUpdateTime() {
          * 
    * * .google.protobuf.Timestamp update_time = 12; - * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
          * The last update timestamp of this resource, at which the resource was last
          * modified or deleted. The granularity is in seconds. Timestamp.nanos will
          * always be 0. This field is available only when the resource's Protobuf
          * contains it.
          * To search against `update_time`:
    -     * * use a field query.
    +     * * Use a field query.
          *     - value in seconds since unix epoch. Example: `updateTime < 1609459200`
          *     - value in date string. Example: `updateTime < 2021-01-01`
          *     - value in date-time string (must be quoted). Example: `updateTime <
    @@ -5188,15 +5143,13 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The last update timestamp of this resource, at which the resource was last
          * modified or deleted. The granularity is in seconds. Timestamp.nanos will
          * always be 0. This field is available only when the resource's Protobuf
          * contains it.
          * To search against `update_time`:
    -     * * use a field query.
    +     * * Use a field query.
          *     - value in seconds since unix epoch. Example: `updateTime < 1609459200`
          *     - value in date string. Example: `updateTime < 2021-01-01`
          *     - value in date-time string (must be quoted). Example: `updateTime <
    @@ -5205,7 +5158,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
          *
          * .google.protobuf.Timestamp update_time = 12;
          */
    -    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
    +    public Builder setUpdateTime(
    +        com.google.protobuf.Timestamp.Builder builderForValue) {
           if (updateTimeBuilder_ == null) {
             updateTime_ = builderForValue.build();
             onChanged();
    @@ -5216,15 +5170,13 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The last update timestamp of this resource, at which the resource was last
          * modified or deleted. The granularity is in seconds. Timestamp.nanos will
          * always be 0. This field is available only when the resource's Protobuf
          * contains it.
          * To search against `update_time`:
    -     * * use a field query.
    +     * * Use a field query.
          *     - value in seconds since unix epoch. Example: `updateTime < 1609459200`
          *     - value in date string. Example: `updateTime < 2021-01-01`
          *     - value in date-time string (must be quoted). Example: `updateTime <
    @@ -5237,7 +5189,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
           if (updateTimeBuilder_ == null) {
             if (updateTime_ != null) {
               updateTime_ =
    -              com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
    +            com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
             } else {
               updateTime_ = value;
             }
    @@ -5249,15 +5201,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The last update timestamp of this resource, at which the resource was last
          * modified or deleted. The granularity is in seconds. Timestamp.nanos will
          * always be 0. This field is available only when the resource's Protobuf
          * contains it.
          * To search against `update_time`:
    -     * * use a field query.
    +     * * Use a field query.
          *     - value in seconds since unix epoch. Example: `updateTime < 1609459200`
          *     - value in date string. Example: `updateTime < 2021-01-01`
          *     - value in date-time string (must be quoted). Example: `updateTime <
    @@ -5278,15 +5228,13 @@ public Builder clearUpdateTime() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The last update timestamp of this resource, at which the resource was last
          * modified or deleted. The granularity is in seconds. Timestamp.nanos will
          * always be 0. This field is available only when the resource's Protobuf
          * contains it.
          * To search against `update_time`:
    -     * * use a field query.
    +     * * Use a field query.
          *     - value in seconds since unix epoch. Example: `updateTime < 1609459200`
          *     - value in date string. Example: `updateTime < 2021-01-01`
          *     - value in date-time string (must be quoted). Example: `updateTime <
    @@ -5296,20 +5244,18 @@ public Builder clearUpdateTime() {
          * .google.protobuf.Timestamp update_time = 12;
          */
         public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
    -
    +      
           onChanged();
           return getUpdateTimeFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * The last update timestamp of this resource, at which the resource was last
          * modified or deleted. The granularity is in seconds. Timestamp.nanos will
          * always be 0. This field is available only when the resource's Protobuf
          * contains it.
          * To search against `update_time`:
    -     * * use a field query.
    +     * * Use a field query.
          *     - value in seconds since unix epoch. Example: `updateTime < 1609459200`
          *     - value in date string. Example: `updateTime < 2021-01-01`
          *     - value in date-time string (must be quoted). Example: `updateTime <
    @@ -5322,21 +5268,18 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
           if (updateTimeBuilder_ != null) {
             return updateTimeBuilder_.getMessageOrBuilder();
           } else {
    -        return updateTime_ == null
    -            ? com.google.protobuf.Timestamp.getDefaultInstance()
    -            : updateTime_;
    +        return updateTime_ == null ?
    +            com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
           }
         }
         /**
    -     *
    -     *
          * 
          * The last update timestamp of this resource, at which the resource was last
          * modified or deleted. The granularity is in seconds. Timestamp.nanos will
          * always be 0. This field is available only when the resource's Protobuf
          * contains it.
          * To search against `update_time`:
    -     * * use a field query.
    +     * * Use a field query.
          *     - value in seconds since unix epoch. Example: `updateTime < 1609459200`
          *     - value in date string. Example: `updateTime < 2021-01-01`
          *     - value in date-time string (must be quoted). Example: `updateTime <
    @@ -5346,17 +5289,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
          * .google.protobuf.Timestamp update_time = 12;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp,
    -            com.google.protobuf.Timestamp.Builder,
    -            com.google.protobuf.TimestampOrBuilder>
    +        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
             getUpdateTimeFieldBuilder() {
           if (updateTimeBuilder_ == null) {
    -        updateTimeBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.protobuf.Timestamp,
    -                com.google.protobuf.Timestamp.Builder,
    -                com.google.protobuf.TimestampOrBuilder>(
    -                getUpdateTime(), getParentForChildren(), isClean());
    +        updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    +                getUpdateTime(),
    +                getParentForChildren(),
    +                isClean());
             updateTime_ = null;
           }
           return updateTimeBuilder_;
    @@ -5364,8 +5304,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
     
         private java.lang.Object state_ = "";
         /**
    -     *
    -     *
          * 
          * The state of this resource. Different resources types have different state
          * definitions that are mapped from various fields of different resource
    @@ -5382,18 +5320,18 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
          * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API
          * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects).
          * To search against the `state`:
    -     * * use a field query. Example: `state:RUNNING`
    -     * * use a free text query. Example: `RUNNING`
    +     * * Use a field query. Example: `state:RUNNING`
    +     * * Use a free text query. Example: `RUNNING`
          * 
    * * string state = 13; - * * @return The state. */ public java.lang.String getState() { java.lang.Object ref = state_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); state_ = s; return s; @@ -5402,8 +5340,6 @@ public java.lang.String getState() { } } /** - * - * *
          * The state of this resource. Different resources types have different state
          * definitions that are mapped from various fields of different resource
    @@ -5420,19 +5356,20 @@ public java.lang.String getState() {
          * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API
          * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects).
          * To search against the `state`:
    -     * * use a field query. Example: `state:RUNNING`
    -     * * use a free text query. Example: `RUNNING`
    +     * * Use a field query. Example: `state:RUNNING`
    +     * * Use a free text query. Example: `RUNNING`
          * 
    * * string state = 13; - * * @return The bytes for state. */ - public com.google.protobuf.ByteString getStateBytes() { + public com.google.protobuf.ByteString + getStateBytes() { java.lang.Object ref = state_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); state_ = b; return b; } else { @@ -5440,8 +5377,6 @@ public com.google.protobuf.ByteString getStateBytes() { } } /** - * - * *
          * The state of this resource. Different resources types have different state
          * definitions that are mapped from various fields of different resource
    @@ -5458,27 +5393,25 @@ public com.google.protobuf.ByteString getStateBytes() {
          * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API
          * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects).
          * To search against the `state`:
    -     * * use a field query. Example: `state:RUNNING`
    -     * * use a free text query. Example: `RUNNING`
    +     * * Use a field query. Example: `state:RUNNING`
    +     * * Use a free text query. Example: `RUNNING`
          * 
    * * string state = 13; - * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState(java.lang.String value) { + public Builder setState( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + state_ = value; onChanged(); return this; } /** - * - * *
          * The state of this resource. Different resources types have different state
          * definitions that are mapped from various fields of different resource
    @@ -5495,23 +5428,20 @@ public Builder setState(java.lang.String value) {
          * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API
          * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects).
          * To search against the `state`:
    -     * * use a field query. Example: `state:RUNNING`
    -     * * use a free text query. Example: `RUNNING`
    +     * * Use a field query. Example: `state:RUNNING`
    +     * * Use a free text query. Example: `RUNNING`
          * 
    * * string state = 13; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = getDefaultInstance().getState(); onChanged(); return this; } /** - * - * *
          * The state of this resource. Different resources types have different state
          * definitions that are mapped from various fields of different resource
    @@ -5528,21 +5458,21 @@ public Builder clearState() {
          * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API
          * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects).
          * To search against the `state`:
    -     * * use a field query. Example: `state:RUNNING`
    -     * * use a free text query. Example: `RUNNING`
    +     * * Use a field query. Example: `state:RUNNING`
    +     * * Use a free text query. Example: `RUNNING`
          * 
    * * string state = 13; - * * @param value The bytes for state to set. * @return This builder for chaining. */ - public Builder setStateBytes(com.google.protobuf.ByteString value) { + public Builder setStateBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + state_ = value; onChanged(); return this; @@ -5550,13 +5480,8 @@ public Builder setStateBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Struct additionalAttributes_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - additionalAttributesBuilder_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> additionalAttributesBuilder_; /** - * - * *
          * The additional searchable attributes of this resource. The attributes may
          * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -5571,21 +5496,18 @@ public Builder setStateBytes(com.google.protobuf.ByteString value) {
          * values may change as the GCP service updates to a new incompatible API
          * version.
          * To search against the `additional_attributes`:
    -     * * use a free text query to match the attributes values. Example: to search
    +     * * Use a free text query to match the attributes values. Example: to search
          *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
          *   `foobar`.
          * 
    * * .google.protobuf.Struct additional_attributes = 9; - * * @return Whether the additionalAttributes field is set. */ public boolean hasAdditionalAttributes() { return additionalAttributesBuilder_ != null || additionalAttributes_ != null; } /** - * - * *
          * The additional searchable attributes of this resource. The attributes may
          * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -5600,27 +5522,22 @@ public boolean hasAdditionalAttributes() {
          * values may change as the GCP service updates to a new incompatible API
          * version.
          * To search against the `additional_attributes`:
    -     * * use a free text query to match the attributes values. Example: to search
    +     * * Use a free text query to match the attributes values. Example: to search
          *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
          *   `foobar`.
          * 
    * * .google.protobuf.Struct additional_attributes = 9; - * * @return The additionalAttributes. */ public com.google.protobuf.Struct getAdditionalAttributes() { if (additionalAttributesBuilder_ == null) { - return additionalAttributes_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : additionalAttributes_; + return additionalAttributes_ == null ? com.google.protobuf.Struct.getDefaultInstance() : additionalAttributes_; } else { return additionalAttributesBuilder_.getMessage(); } } /** - * - * *
          * The additional searchable attributes of this resource. The attributes may
          * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -5635,7 +5552,7 @@ public com.google.protobuf.Struct getAdditionalAttributes() {
          * values may change as the GCP service updates to a new incompatible API
          * version.
          * To search against the `additional_attributes`:
    -     * * use a free text query to match the attributes values. Example: to search
    +     * * Use a free text query to match the attributes values. Example: to search
          *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
          *   `foobar`.
          * 
    @@ -5656,8 +5573,6 @@ public Builder setAdditionalAttributes(com.google.protobuf.Struct value) { return this; } /** - * - * *
          * The additional searchable attributes of this resource. The attributes may
          * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -5672,14 +5587,15 @@ public Builder setAdditionalAttributes(com.google.protobuf.Struct value) {
          * values may change as the GCP service updates to a new incompatible API
          * version.
          * To search against the `additional_attributes`:
    -     * * use a free text query to match the attributes values. Example: to search
    +     * * Use a free text query to match the attributes values. Example: to search
          *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
          *   `foobar`.
          * 
    * * .google.protobuf.Struct additional_attributes = 9; */ - public Builder setAdditionalAttributes(com.google.protobuf.Struct.Builder builderForValue) { + public Builder setAdditionalAttributes( + com.google.protobuf.Struct.Builder builderForValue) { if (additionalAttributesBuilder_ == null) { additionalAttributes_ = builderForValue.build(); onChanged(); @@ -5690,8 +5606,6 @@ public Builder setAdditionalAttributes(com.google.protobuf.Struct.Builder builde return this; } /** - * - * *
          * The additional searchable attributes of this resource. The attributes may
          * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -5706,7 +5620,7 @@ public Builder setAdditionalAttributes(com.google.protobuf.Struct.Builder builde
          * values may change as the GCP service updates to a new incompatible API
          * version.
          * To search against the `additional_attributes`:
    -     * * use a free text query to match the attributes values. Example: to search
    +     * * Use a free text query to match the attributes values. Example: to search
          *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
          *   `foobar`.
          * 
    @@ -5717,9 +5631,7 @@ public Builder mergeAdditionalAttributes(com.google.protobuf.Struct value) { if (additionalAttributesBuilder_ == null) { if (additionalAttributes_ != null) { additionalAttributes_ = - com.google.protobuf.Struct.newBuilder(additionalAttributes_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Struct.newBuilder(additionalAttributes_).mergeFrom(value).buildPartial(); } else { additionalAttributes_ = value; } @@ -5731,8 +5643,6 @@ public Builder mergeAdditionalAttributes(com.google.protobuf.Struct value) { return this; } /** - * - * *
          * The additional searchable attributes of this resource. The attributes may
          * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -5747,7 +5657,7 @@ public Builder mergeAdditionalAttributes(com.google.protobuf.Struct value) {
          * values may change as the GCP service updates to a new incompatible API
          * version.
          * To search against the `additional_attributes`:
    -     * * use a free text query to match the attributes values. Example: to search
    +     * * Use a free text query to match the attributes values. Example: to search
          *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
          *   `foobar`.
          * 
    @@ -5766,8 +5676,6 @@ public Builder clearAdditionalAttributes() { return this; } /** - * - * *
          * The additional searchable attributes of this resource. The attributes may
          * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -5782,7 +5690,7 @@ public Builder clearAdditionalAttributes() {
          * values may change as the GCP service updates to a new incompatible API
          * version.
          * To search against the `additional_attributes`:
    -     * * use a free text query to match the attributes values. Example: to search
    +     * * Use a free text query to match the attributes values. Example: to search
          *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
          *   `foobar`.
          * 
    @@ -5790,13 +5698,11 @@ public Builder clearAdditionalAttributes() { * .google.protobuf.Struct additional_attributes = 9; */ public com.google.protobuf.Struct.Builder getAdditionalAttributesBuilder() { - + onChanged(); return getAdditionalAttributesFieldBuilder().getBuilder(); } /** - * - * *
          * The additional searchable attributes of this resource. The attributes may
          * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -5811,7 +5717,7 @@ public com.google.protobuf.Struct.Builder getAdditionalAttributesBuilder() {
          * values may change as the GCP service updates to a new incompatible API
          * version.
          * To search against the `additional_attributes`:
    -     * * use a free text query to match the attributes values. Example: to search
    +     * * Use a free text query to match the attributes values. Example: to search
          *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
          *   `foobar`.
          * 
    @@ -5822,14 +5728,11 @@ public com.google.protobuf.StructOrBuilder getAdditionalAttributesOrBuilder() { if (additionalAttributesBuilder_ != null) { return additionalAttributesBuilder_.getMessageOrBuilder(); } else { - return additionalAttributes_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : additionalAttributes_; + return additionalAttributes_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : additionalAttributes_; } } /** - * - * *
          * The additional searchable attributes of this resource. The attributes may
          * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -5844,7 +5747,7 @@ public com.google.protobuf.StructOrBuilder getAdditionalAttributesOrBuilder() {
          * values may change as the GCP service updates to a new incompatible API
          * version.
          * To search against the `additional_attributes`:
    -     * * use a free text query to match the attributes values. Example: to search
    +     * * Use a free text query to match the attributes values. Example: to search
          *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
          *   `foobar`.
          * 
    @@ -5852,17 +5755,14 @@ public com.google.protobuf.StructOrBuilder getAdditionalAttributesOrBuilder() { * .google.protobuf.Struct additional_attributes = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getAdditionalAttributesFieldBuilder() { if (additionalAttributesBuilder_ == null) { - additionalAttributesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - getAdditionalAttributes(), getParentForChildren(), isClean()); + additionalAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getAdditionalAttributes(), + getParentForChildren(), + isClean()); additionalAttributes_ = null; } return additionalAttributesBuilder_; @@ -5870,25 +5770,23 @@ public com.google.protobuf.StructOrBuilder getAdditionalAttributesOrBuilder() { private java.lang.Object parentFullResourceName_ = ""; /** - * - * *
          * The full resource name of this resource's parent, if it has one.
          * To search against the `parent_full_resource_name`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          * `parentFullResourceName:"project-name"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          * `project-name`
          * 
    * * string parent_full_resource_name = 19; - * * @return The parentFullResourceName. */ public java.lang.String getParentFullResourceName() { java.lang.Object ref = parentFullResourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentFullResourceName_ = s; return s; @@ -5897,26 +5795,25 @@ public java.lang.String getParentFullResourceName() { } } /** - * - * *
          * The full resource name of this resource's parent, if it has one.
          * To search against the `parent_full_resource_name`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          * `parentFullResourceName:"project-name"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          * `project-name`
          * 
    * * string parent_full_resource_name = 19; - * * @return The bytes for parentFullResourceName. */ - public com.google.protobuf.ByteString getParentFullResourceNameBytes() { + public com.google.protobuf.ByteString + getParentFullResourceNameBytes() { java.lang.Object ref = parentFullResourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentFullResourceName_ = b; return b; } else { @@ -5924,102 +5821,87 @@ public com.google.protobuf.ByteString getParentFullResourceNameBytes() { } } /** - * - * *
          * The full resource name of this resource's parent, if it has one.
          * To search against the `parent_full_resource_name`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          * `parentFullResourceName:"project-name"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          * `project-name`
          * 
    * * string parent_full_resource_name = 19; - * * @param value The parentFullResourceName to set. * @return This builder for chaining. */ - public Builder setParentFullResourceName(java.lang.String value) { + public Builder setParentFullResourceName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parentFullResourceName_ = value; onChanged(); return this; } /** - * - * *
          * The full resource name of this resource's parent, if it has one.
          * To search against the `parent_full_resource_name`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          * `parentFullResourceName:"project-name"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          * `project-name`
          * 
    * * string parent_full_resource_name = 19; - * * @return This builder for chaining. */ public Builder clearParentFullResourceName() { - + parentFullResourceName_ = getDefaultInstance().getParentFullResourceName(); onChanged(); return this; } /** - * - * *
          * The full resource name of this resource's parent, if it has one.
          * To search against the `parent_full_resource_name`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          * `parentFullResourceName:"project-name"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          * `project-name`
          * 
    * * string parent_full_resource_name = 19; - * * @param value The bytes for parentFullResourceName to set. * @return This builder for chaining. */ - public Builder setParentFullResourceNameBytes(com.google.protobuf.ByteString value) { + public Builder setParentFullResourceNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parentFullResourceName_ = value; onChanged(); return this; } private java.util.List versionedResources_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureVersionedResourcesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - versionedResources_ = - new java.util.ArrayList( - versionedResources_); - bitField0_ |= 0x00000008; - } + if (!((bitField0_ & 0x00000010) != 0)) { + versionedResources_ = new java.util.ArrayList(versionedResources_); + bitField0_ |= 0x00000010; + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.VersionedResource, - com.google.cloud.asset.v1.VersionedResource.Builder, - com.google.cloud.asset.v1.VersionedResourceOrBuilder> - versionedResourcesBuilder_; + com.google.cloud.asset.v1.VersionedResource, com.google.cloud.asset.v1.VersionedResource.Builder, com.google.cloud.asset.v1.VersionedResourceOrBuilder> versionedResourcesBuilder_; /** - * - * *
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6039,8 +5921,6 @@ public java.util.List getVersionedR
           }
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6060,8 +5940,6 @@ public int getVersionedResourcesCount() {
           }
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6081,8 +5959,6 @@ public com.google.cloud.asset.v1.VersionedResource getVersionedResources(int ind
           }
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6109,8 +5985,6 @@ public Builder setVersionedResources(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6134,8 +6008,6 @@ public Builder setVersionedResources(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6161,8 +6033,6 @@ public Builder addVersionedResources(com.google.cloud.asset.v1.VersionedResource
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6189,8 +6059,6 @@ public Builder addVersionedResources(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6214,8 +6082,6 @@ public Builder addVersionedResources(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6239,8 +6105,6 @@ public Builder addVersionedResources(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6256,7 +6120,8 @@ public Builder addAllVersionedResources(
             java.lang.Iterable values) {
           if (versionedResourcesBuilder_ == null) {
             ensureVersionedResourcesIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, versionedResources_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    +            values, versionedResources_);
             onChanged();
           } else {
             versionedResourcesBuilder_.addAllMessages(values);
    @@ -6264,8 +6129,6 @@ public Builder addAllVersionedResources(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6280,7 +6143,7 @@ public Builder addAllVersionedResources(
         public Builder clearVersionedResources() {
           if (versionedResourcesBuilder_ == null) {
             versionedResources_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000008);
    +        bitField0_ = (bitField0_ & ~0x00000010);
             onChanged();
           } else {
             versionedResourcesBuilder_.clear();
    @@ -6288,8 +6151,6 @@ public Builder clearVersionedResources() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6312,8 +6173,6 @@ public Builder removeVersionedResources(int index) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6330,8 +6189,6 @@ public com.google.cloud.asset.v1.VersionedResource.Builder getVersionedResources
           return getVersionedResourcesFieldBuilder().getBuilder(index);
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6345,15 +6202,12 @@ public com.google.cloud.asset.v1.VersionedResource.Builder getVersionedResources
          */
         public com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResourcesOrBuilder(
             int index) {
    -      if (versionedResourcesBuilder_ == null) {
    -        return versionedResources_.get(index);
    -      } else {
    +      if (versionedResourcesBuilder_ == null) {
    +        return versionedResources_.get(index);  } else {
             return versionedResourcesBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6365,8 +6219,8 @@ public com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResource
          *
          * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 16;
          */
    -    public java.util.List
    -        getVersionedResourcesOrBuilderList() {
    +    public java.util.List 
    +         getVersionedResourcesOrBuilderList() {
           if (versionedResourcesBuilder_ != null) {
             return versionedResourcesBuilder_.getMessageOrBuilderList();
           } else {
    @@ -6374,8 +6228,6 @@ public com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResource
           }
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6388,12 +6240,10 @@ public com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResource
          * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 16;
          */
         public com.google.cloud.asset.v1.VersionedResource.Builder addVersionedResourcesBuilder() {
    -      return getVersionedResourcesFieldBuilder()
    -          .addBuilder(com.google.cloud.asset.v1.VersionedResource.getDefaultInstance());
    +      return getVersionedResourcesFieldBuilder().addBuilder(
    +          com.google.cloud.asset.v1.VersionedResource.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6407,12 +6257,10 @@ public com.google.cloud.asset.v1.VersionedResource.Builder addVersionedResources
          */
         public com.google.cloud.asset.v1.VersionedResource.Builder addVersionedResourcesBuilder(
             int index) {
    -      return getVersionedResourcesFieldBuilder()
    -          .addBuilder(index, com.google.cloud.asset.v1.VersionedResource.getDefaultInstance());
    +      return getVersionedResourcesFieldBuilder().addBuilder(
    +          index, com.google.cloud.asset.v1.VersionedResource.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6424,24 +6272,18 @@ public com.google.cloud.asset.v1.VersionedResource.Builder addVersionedResources
          *
          * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 16;
          */
    -    public java.util.List
    -        getVersionedResourcesBuilderList() {
    +    public java.util.List 
    +         getVersionedResourcesBuilderList() {
           return getVersionedResourcesFieldBuilder().getBuilderList();
         }
    -
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.asset.v1.VersionedResource,
    -            com.google.cloud.asset.v1.VersionedResource.Builder,
    -            com.google.cloud.asset.v1.VersionedResourceOrBuilder>
    +        com.google.cloud.asset.v1.VersionedResource, com.google.cloud.asset.v1.VersionedResource.Builder, com.google.cloud.asset.v1.VersionedResourceOrBuilder> 
             getVersionedResourcesFieldBuilder() {
           if (versionedResourcesBuilder_ == null) {
    -        versionedResourcesBuilder_ =
    -            new com.google.protobuf.RepeatedFieldBuilderV3<
    -                com.google.cloud.asset.v1.VersionedResource,
    -                com.google.cloud.asset.v1.VersionedResource.Builder,
    -                com.google.cloud.asset.v1.VersionedResourceOrBuilder>(
    +        versionedResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    +            com.google.cloud.asset.v1.VersionedResource, com.google.cloud.asset.v1.VersionedResource.Builder, com.google.cloud.asset.v1.VersionedResourceOrBuilder>(
                     versionedResources_,
    -                ((bitField0_ & 0x00000008) != 0),
    +                ((bitField0_ & 0x00000010) != 0),
                     getParentForChildren(),
                     isClean());
             versionedResources_ = null;
    @@ -6450,25 +6292,18 @@ public com.google.cloud.asset.v1.VersionedResource.Builder addVersionedResources
         }
     
         private java.util.List attachedResources_ =
    -        java.util.Collections.emptyList();
    -
    +      java.util.Collections.emptyList();
         private void ensureAttachedResourcesIsMutable() {
    -      if (!((bitField0_ & 0x00000010) != 0)) {
    -        attachedResources_ =
    -            new java.util.ArrayList(attachedResources_);
    -        bitField0_ |= 0x00000010;
    -      }
    +      if (!((bitField0_ & 0x00000020) != 0)) {
    +        attachedResources_ = new java.util.ArrayList(attachedResources_);
    +        bitField0_ |= 0x00000020;
    +       }
         }
     
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.asset.v1.AttachedResource,
    -            com.google.cloud.asset.v1.AttachedResource.Builder,
    -            com.google.cloud.asset.v1.AttachedResourceOrBuilder>
    -        attachedResourcesBuilder_;
    +        com.google.cloud.asset.v1.AttachedResource, com.google.cloud.asset.v1.AttachedResource.Builder, com.google.cloud.asset.v1.AttachedResourceOrBuilder> attachedResourcesBuilder_;
     
         /**
    -     *
    -     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6488,8 +6323,6 @@ public java.util.List getAttachedRes
           }
         }
         /**
    -     *
    -     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6509,8 +6342,6 @@ public int getAttachedResourcesCount() {
           }
         }
         /**
    -     *
    -     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6530,8 +6361,6 @@ public com.google.cloud.asset.v1.AttachedResource getAttachedResources(int index
           }
         }
         /**
    -     *
    -     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6558,8 +6387,6 @@ public Builder setAttachedResources(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6583,8 +6410,6 @@ public Builder setAttachedResources(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6610,8 +6435,6 @@ public Builder addAttachedResources(com.google.cloud.asset.v1.AttachedResource v
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6638,8 +6461,6 @@ public Builder addAttachedResources(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6663,8 +6484,6 @@ public Builder addAttachedResources(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6688,8 +6507,6 @@ public Builder addAttachedResources(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6705,7 +6522,8 @@ public Builder addAllAttachedResources(
             java.lang.Iterable values) {
           if (attachedResourcesBuilder_ == null) {
             ensureAttachedResourcesIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attachedResources_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    +            values, attachedResources_);
             onChanged();
           } else {
             attachedResourcesBuilder_.addAllMessages(values);
    @@ -6713,8 +6531,6 @@ public Builder addAllAttachedResources(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6729,7 +6545,7 @@ public Builder addAllAttachedResources(
         public Builder clearAttachedResources() {
           if (attachedResourcesBuilder_ == null) {
             attachedResources_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000010);
    +        bitField0_ = (bitField0_ & ~0x00000020);
             onChanged();
           } else {
             attachedResourcesBuilder_.clear();
    @@ -6737,8 +6553,6 @@ public Builder clearAttachedResources() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6761,8 +6575,6 @@ public Builder removeAttachedResources(int index) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6779,8 +6591,6 @@ public com.google.cloud.asset.v1.AttachedResource.Builder getAttachedResourcesBu
           return getAttachedResourcesFieldBuilder().getBuilder(index);
         }
         /**
    -     *
    -     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6795,14 +6605,11 @@ public com.google.cloud.asset.v1.AttachedResource.Builder getAttachedResourcesBu
         public com.google.cloud.asset.v1.AttachedResourceOrBuilder getAttachedResourcesOrBuilder(
             int index) {
           if (attachedResourcesBuilder_ == null) {
    -        return attachedResources_.get(index);
    -      } else {
    +        return attachedResources_.get(index);  } else {
             return attachedResourcesBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    -     *
    -     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6814,8 +6621,8 @@ public com.google.cloud.asset.v1.AttachedResourceOrBuilder getAttachedResourcesO
          *
          * repeated .google.cloud.asset.v1.AttachedResource attached_resources = 20;
          */
    -    public java.util.List
    -        getAttachedResourcesOrBuilderList() {
    +    public java.util.List 
    +         getAttachedResourcesOrBuilderList() {
           if (attachedResourcesBuilder_ != null) {
             return attachedResourcesBuilder_.getMessageOrBuilderList();
           } else {
    @@ -6823,8 +6630,6 @@ public com.google.cloud.asset.v1.AttachedResourceOrBuilder getAttachedResourcesO
           }
         }
         /**
    -     *
    -     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6837,12 +6642,10 @@ public com.google.cloud.asset.v1.AttachedResourceOrBuilder getAttachedResourcesO
          * repeated .google.cloud.asset.v1.AttachedResource attached_resources = 20;
          */
         public com.google.cloud.asset.v1.AttachedResource.Builder addAttachedResourcesBuilder() {
    -      return getAttachedResourcesFieldBuilder()
    -          .addBuilder(com.google.cloud.asset.v1.AttachedResource.getDefaultInstance());
    +      return getAttachedResourcesFieldBuilder().addBuilder(
    +          com.google.cloud.asset.v1.AttachedResource.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6856,12 +6659,10 @@ public com.google.cloud.asset.v1.AttachedResource.Builder addAttachedResourcesBu
          */
         public com.google.cloud.asset.v1.AttachedResource.Builder addAttachedResourcesBuilder(
             int index) {
    -      return getAttachedResourcesFieldBuilder()
    -          .addBuilder(index, com.google.cloud.asset.v1.AttachedResource.getDefaultInstance());
    +      return getAttachedResourcesFieldBuilder().addBuilder(
    +          index, com.google.cloud.asset.v1.AttachedResource.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6873,24 +6674,18 @@ public com.google.cloud.asset.v1.AttachedResource.Builder addAttachedResourcesBu
          *
          * repeated .google.cloud.asset.v1.AttachedResource attached_resources = 20;
          */
    -    public java.util.List
    -        getAttachedResourcesBuilderList() {
    +    public java.util.List 
    +         getAttachedResourcesBuilderList() {
           return getAttachedResourcesFieldBuilder().getBuilderList();
         }
    -
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.asset.v1.AttachedResource,
    -            com.google.cloud.asset.v1.AttachedResource.Builder,
    -            com.google.cloud.asset.v1.AttachedResourceOrBuilder>
    +        com.google.cloud.asset.v1.AttachedResource, com.google.cloud.asset.v1.AttachedResource.Builder, com.google.cloud.asset.v1.AttachedResourceOrBuilder> 
             getAttachedResourcesFieldBuilder() {
           if (attachedResourcesBuilder_ == null) {
    -        attachedResourcesBuilder_ =
    -            new com.google.protobuf.RepeatedFieldBuilderV3<
    -                com.google.cloud.asset.v1.AttachedResource,
    -                com.google.cloud.asset.v1.AttachedResource.Builder,
    -                com.google.cloud.asset.v1.AttachedResourceOrBuilder>(
    +        attachedResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    +            com.google.cloud.asset.v1.AttachedResource, com.google.cloud.asset.v1.AttachedResource.Builder, com.google.cloud.asset.v1.AttachedResourceOrBuilder>(
                     attachedResources_,
    -                ((bitField0_ & 0x00000010) != 0),
    +                ((bitField0_ & 0x00000020) != 0),
                     getParentForChildren(),
                     isClean());
             attachedResources_ = null;
    @@ -6899,27 +6694,21 @@ public com.google.cloud.asset.v1.AttachedResource.Builder addAttachedResourcesBu
         }
     
         private com.google.protobuf.MapField<
    -            java.lang.String, com.google.cloud.asset.v1.RelatedResources>
    -        relationships_;
    -
    -    private com.google.protobuf.MapField<
    -            java.lang.String, com.google.cloud.asset.v1.RelatedResources>
    -        internalGetRelationships() {
    +        java.lang.String, com.google.cloud.asset.v1.RelatedResources> relationships_;
    +    private com.google.protobuf.MapField
    +    internalGetRelationships() {
           if (relationships_ == null) {
             return com.google.protobuf.MapField.emptyMapField(
                 RelationshipsDefaultEntryHolder.defaultEntry);
           }
           return relationships_;
         }
    -
    -    private com.google.protobuf.MapField<
    -            java.lang.String, com.google.cloud.asset.v1.RelatedResources>
    -        internalGetMutableRelationships() {
    -      onChanged();
    -      ;
    +    private com.google.protobuf.MapField
    +    internalGetMutableRelationships() {
    +      onChanged();;
           if (relationships_ == null) {
    -        relationships_ =
    -            com.google.protobuf.MapField.newMapField(RelationshipsDefaultEntryHolder.defaultEntry);
    +        relationships_ = com.google.protobuf.MapField.newMapField(
    +            RelationshipsDefaultEntryHolder.defaultEntry);
           }
           if (!relationships_.isMutable()) {
             relationships_ = relationships_.copy();
    @@ -6931,8 +6720,6 @@ public int getRelationshipsCount() {
           return internalGetRelationships().getMap().size();
         }
         /**
    -     *
    -     *
          * 
          * A map of related resources of this resource, keyed by the
          * relationship type. A relationship type is in the format of
    @@ -6944,23 +6731,22 @@ public int getRelationshipsCount() {
          *
          * map<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
          */
    +
         @java.lang.Override
    -    public boolean containsRelationships(java.lang.String key) {
    -      if (key == null) {
    -        throw new NullPointerException("map key");
    -      }
    +    public boolean containsRelationships(
    +        java.lang.String key) {
    +      if (key == null) { throw new NullPointerException("map key"); }
           return internalGetRelationships().getMap().containsKey(key);
         }
    -    /** Use {@link #getRelationshipsMap()} instead. */
    +    /**
    +     * Use {@link #getRelationshipsMap()} instead.
    +     */
         @java.lang.Override
         @java.lang.Deprecated
    -    public java.util.Map
    -        getRelationships() {
    +    public java.util.Map getRelationships() {
           return getRelationshipsMap();
         }
         /**
    -     *
    -     *
          * 
          * A map of related resources of this resource, keyed by the
          * relationship type. A relationship type is in the format of
    @@ -6973,13 +6759,11 @@ public boolean containsRelationships(java.lang.String key) {
          * map<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
          */
         @java.lang.Override
    -    public java.util.Map
    -        getRelationshipsMap() {
    +
    +    public java.util.Map getRelationshipsMap() {
           return internalGetRelationships().getMap();
         }
         /**
    -     *
    -     *
          * 
          * A map of related resources of this resource, keyed by the
          * relationship type. A relationship type is in the format of
    @@ -6992,18 +6776,16 @@ public boolean containsRelationships(java.lang.String key) {
          * map<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
          */
         @java.lang.Override
    +
         public com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
    -        java.lang.String key, com.google.cloud.asset.v1.RelatedResources defaultValue) {
    -      if (key == null) {
    -        throw new NullPointerException("map key");
    -      }
    +        java.lang.String key,
    +        com.google.cloud.asset.v1.RelatedResources defaultValue) {
    +      if (key == null) { throw new NullPointerException("map key"); }
           java.util.Map map =
               internalGetRelationships().getMap();
           return map.containsKey(key) ? map.get(key) : defaultValue;
         }
         /**
    -     *
    -     *
          * 
          * A map of related resources of this resource, keyed by the
          * relationship type. A relationship type is in the format of
    @@ -7016,11 +6798,10 @@ public com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
          * map<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
          */
         @java.lang.Override
    +
         public com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
             java.lang.String key) {
    -      if (key == null) {
    -        throw new NullPointerException("map key");
    -      }
    +      if (key == null) { throw new NullPointerException("map key"); }
           java.util.Map map =
               internalGetRelationships().getMap();
           if (!map.containsKey(key)) {
    @@ -7030,12 +6811,11 @@ public com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
         }
     
         public Builder clearRelationships() {
    -      internalGetMutableRelationships().getMutableMap().clear();
    +      internalGetMutableRelationships().getMutableMap()
    +          .clear();
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A map of related resources of this resource, keyed by the
          * relationship type. A relationship type is in the format of
    @@ -7047,22 +6827,23 @@ public Builder clearRelationships() {
          *
          * map<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
          */
    -    public Builder removeRelationships(java.lang.String key) {
    -      if (key == null) {
    -        throw new NullPointerException("map key");
    -      }
    -      internalGetMutableRelationships().getMutableMap().remove(key);
    +
    +    public Builder removeRelationships(
    +        java.lang.String key) {
    +      if (key == null) { throw new NullPointerException("map key"); }
    +      internalGetMutableRelationships().getMutableMap()
    +          .remove(key);
           return this;
         }
    -    /** Use alternate mutation accessors instead. */
    +    /**
    +     * Use alternate mutation accessors instead.
    +     */
         @java.lang.Deprecated
         public java.util.Map
    -        getMutableRelationships() {
    +    getMutableRelationships() {
           return internalGetMutableRelationships().getMutableMap();
         }
         /**
    -     *
    -     *
          * 
          * A map of related resources of this resource, keyed by the
          * relationship type. A relationship type is in the format of
    @@ -7075,20 +6856,18 @@ public Builder removeRelationships(java.lang.String key) {
          * map<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
          */
         public Builder putRelationships(
    -        java.lang.String key, com.google.cloud.asset.v1.RelatedResources value) {
    -      if (key == null) {
    -        throw new NullPointerException("map key");
    -      }
    +        java.lang.String key,
    +        com.google.cloud.asset.v1.RelatedResources value) {
    +      if (key == null) { throw new NullPointerException("map key"); }
           if (value == null) {
    -        throw new NullPointerException("map value");
    -      }
    +  throw new NullPointerException("map value");
    +}
     
    -      internalGetMutableRelationships().getMutableMap().put(key, value);
    +      internalGetMutableRelationships().getMutableMap()
    +          .put(key, value);
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A map of related resources of this resource, keyed by the
          * relationship type. A relationship type is in the format of
    @@ -7100,79 +6879,71 @@ public Builder putRelationships(
          *
          * map<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
          */
    +
         public Builder putAllRelationships(
             java.util.Map values) {
    -      internalGetMutableRelationships().getMutableMap().putAll(values);
    +      internalGetMutableRelationships().getMutableMap()
    +          .putAll(values);
           return this;
         }
     
    -    private com.google.protobuf.LazyStringList tagKeys_ =
    -        com.google.protobuf.LazyStringArrayList.EMPTY;
    -
    +    private com.google.protobuf.LazyStringList tagKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
         private void ensureTagKeysIsMutable() {
    -      if (!((bitField0_ & 0x00000040) != 0)) {
    +      if (!((bitField0_ & 0x00000080) != 0)) {
             tagKeys_ = new com.google.protobuf.LazyStringArrayList(tagKeys_);
    -        bitField0_ |= 0x00000040;
    -      }
    +        bitField0_ |= 0x00000080;
    +       }
         }
         /**
    -     *
    -     *
          * 
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagKeys:"123456789/env*"`
          *     - `tagKeys="123456789/env"`
          *     - `tagKeys:"env"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `env`
          * 
    * * repeated string tag_keys = 23; - * * @return A list containing the tagKeys. */ - public com.google.protobuf.ProtocolStringList getTagKeysList() { + public com.google.protobuf.ProtocolStringList + getTagKeysList() { return tagKeys_.getUnmodifiableView(); } /** - * - * *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagKeys:"123456789/env*"`
          *     - `tagKeys="123456789/env"`
          *     - `tagKeys:"env"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `env`
          * 
    * * repeated string tag_keys = 23; - * * @return The count of tagKeys. */ public int getTagKeysCount() { return tagKeys_.size(); } /** - * - * *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagKeys:"123456789/env*"`
          *     - `tagKeys="123456789/env"`
          *     - `tagKeys:"env"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `env`
          * 
    * * repeated string tag_keys = 23; - * * @param index The index of the element to return. * @return The tagKeys at the given index. */ @@ -7180,236 +6951,214 @@ public java.lang.String getTagKeys(int index) { return tagKeys_.get(index); } /** - * - * *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagKeys:"123456789/env*"`
          *     - `tagKeys="123456789/env"`
          *     - `tagKeys:"env"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `env`
          * 
    * * repeated string tag_keys = 23; - * * @param index The index of the value to return. * @return The bytes of the tagKeys at the given index. */ - public com.google.protobuf.ByteString getTagKeysBytes(int index) { + public com.google.protobuf.ByteString + getTagKeysBytes(int index) { return tagKeys_.getByteString(index); } /** - * - * *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagKeys:"123456789/env*"`
          *     - `tagKeys="123456789/env"`
          *     - `tagKeys:"env"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `env`
          * 
    * * repeated string tag_keys = 23; - * * @param index The index to set the value at. * @param value The tagKeys to set. * @return This builder for chaining. */ - public Builder setTagKeys(int index, java.lang.String value) { + public Builder setTagKeys( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagKeysIsMutable(); + throw new NullPointerException(); + } + ensureTagKeysIsMutable(); tagKeys_.set(index, value); onChanged(); return this; } /** - * - * *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagKeys:"123456789/env*"`
          *     - `tagKeys="123456789/env"`
          *     - `tagKeys:"env"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `env`
          * 
    * * repeated string tag_keys = 23; - * * @param value The tagKeys to add. * @return This builder for chaining. */ - public Builder addTagKeys(java.lang.String value) { + public Builder addTagKeys( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagKeysIsMutable(); + throw new NullPointerException(); + } + ensureTagKeysIsMutable(); tagKeys_.add(value); onChanged(); return this; } /** - * - * *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagKeys:"123456789/env*"`
          *     - `tagKeys="123456789/env"`
          *     - `tagKeys:"env"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `env`
          * 
    * * repeated string tag_keys = 23; - * * @param values The tagKeys to add. * @return This builder for chaining. */ - public Builder addAllTagKeys(java.lang.Iterable values) { + public Builder addAllTagKeys( + java.lang.Iterable values) { ensureTagKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tagKeys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tagKeys_); onChanged(); return this; } /** - * - * *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagKeys:"123456789/env*"`
          *     - `tagKeys="123456789/env"`
          *     - `tagKeys:"env"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `env`
          * 
    * * repeated string tag_keys = 23; - * * @return This builder for chaining. */ public Builder clearTagKeys() { tagKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** - * - * *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagKeys:"123456789/env*"`
          *     - `tagKeys="123456789/env"`
          *     - `tagKeys:"env"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `env`
          * 
    * * repeated string tag_keys = 23; - * * @param value The bytes of the tagKeys to add. * @return This builder for chaining. */ - public Builder addTagKeysBytes(com.google.protobuf.ByteString value) { + public Builder addTagKeysBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTagKeysIsMutable(); tagKeys_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList tagValues_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList tagValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTagValuesIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { + if (!((bitField0_ & 0x00000100) != 0)) { tagValues_ = new com.google.protobuf.LazyStringArrayList(tagValues_); - bitField0_ |= 0x00000080; - } + bitField0_ |= 0x00000100; + } } /** - * - * *
          * TagValue namespaced names, in the format of
          * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
          * To search against the `tagValues`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValues:"env"`
          *     - `tagValues:"env/prod"`
          *     - `tagValues:"123456789/env/prod*"`
          *     - `tagValues="123456789/env/prod"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `prod`
          * 
    * * repeated string tag_values = 25; - * * @return A list containing the tagValues. */ - public com.google.protobuf.ProtocolStringList getTagValuesList() { + public com.google.protobuf.ProtocolStringList + getTagValuesList() { return tagValues_.getUnmodifiableView(); } /** - * - * *
          * TagValue namespaced names, in the format of
          * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
          * To search against the `tagValues`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValues:"env"`
          *     - `tagValues:"env/prod"`
          *     - `tagValues:"123456789/env/prod*"`
          *     - `tagValues="123456789/env/prod"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `prod`
          * 
    * * repeated string tag_values = 25; - * * @return The count of tagValues. */ public int getTagValuesCount() { return tagValues_.size(); } /** - * - * *
          * TagValue namespaced names, in the format of
          * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
          * To search against the `tagValues`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValues:"env"`
          *     - `tagValues:"env/prod"`
          *     - `tagValues:"123456789/env/prod*"`
          *     - `tagValues="123456789/env/prod"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `prod`
          * 
    * * repeated string tag_values = 25; - * * @param index The index of the element to return. * @return The tagValues at the given index. */ @@ -7417,239 +7166,217 @@ public java.lang.String getTagValues(int index) { return tagValues_.get(index); } /** - * - * *
          * TagValue namespaced names, in the format of
          * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
          * To search against the `tagValues`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValues:"env"`
          *     - `tagValues:"env/prod"`
          *     - `tagValues:"123456789/env/prod*"`
          *     - `tagValues="123456789/env/prod"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `prod`
          * 
    * * repeated string tag_values = 25; - * * @param index The index of the value to return. * @return The bytes of the tagValues at the given index. */ - public com.google.protobuf.ByteString getTagValuesBytes(int index) { + public com.google.protobuf.ByteString + getTagValuesBytes(int index) { return tagValues_.getByteString(index); } /** - * - * *
          * TagValue namespaced names, in the format of
          * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
          * To search against the `tagValues`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValues:"env"`
          *     - `tagValues:"env/prod"`
          *     - `tagValues:"123456789/env/prod*"`
          *     - `tagValues="123456789/env/prod"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `prod`
          * 
    * * repeated string tag_values = 25; - * * @param index The index to set the value at. * @param value The tagValues to set. * @return This builder for chaining. */ - public Builder setTagValues(int index, java.lang.String value) { + public Builder setTagValues( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagValuesIsMutable(); + throw new NullPointerException(); + } + ensureTagValuesIsMutable(); tagValues_.set(index, value); onChanged(); return this; } /** - * - * *
          * TagValue namespaced names, in the format of
          * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
          * To search against the `tagValues`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValues:"env"`
          *     - `tagValues:"env/prod"`
          *     - `tagValues:"123456789/env/prod*"`
          *     - `tagValues="123456789/env/prod"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `prod`
          * 
    * * repeated string tag_values = 25; - * * @param value The tagValues to add. * @return This builder for chaining. */ - public Builder addTagValues(java.lang.String value) { + public Builder addTagValues( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagValuesIsMutable(); + throw new NullPointerException(); + } + ensureTagValuesIsMutable(); tagValues_.add(value); onChanged(); return this; } /** - * - * *
          * TagValue namespaced names, in the format of
          * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
          * To search against the `tagValues`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValues:"env"`
          *     - `tagValues:"env/prod"`
          *     - `tagValues:"123456789/env/prod*"`
          *     - `tagValues="123456789/env/prod"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `prod`
          * 
    * * repeated string tag_values = 25; - * * @param values The tagValues to add. * @return This builder for chaining. */ - public Builder addAllTagValues(java.lang.Iterable values) { + public Builder addAllTagValues( + java.lang.Iterable values) { ensureTagValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tagValues_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tagValues_); onChanged(); return this; } /** - * - * *
          * TagValue namespaced names, in the format of
          * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
          * To search against the `tagValues`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValues:"env"`
          *     - `tagValues:"env/prod"`
          *     - `tagValues:"123456789/env/prod*"`
          *     - `tagValues="123456789/env/prod"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `prod`
          * 
    * * repeated string tag_values = 25; - * * @return This builder for chaining. */ public Builder clearTagValues() { tagValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** - * - * *
          * TagValue namespaced names, in the format of
          * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
          * To search against the `tagValues`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValues:"env"`
          *     - `tagValues:"env/prod"`
          *     - `tagValues:"123456789/env/prod*"`
          *     - `tagValues="123456789/env/prod"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `prod`
          * 
    * * repeated string tag_values = 25; - * * @param value The bytes of the tagValues to add. * @return This builder for chaining. */ - public Builder addTagValuesBytes(com.google.protobuf.ByteString value) { + public Builder addTagValuesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTagValuesIsMutable(); tagValues_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList tagValueIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList tagValueIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTagValueIdsIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { + if (!((bitField0_ & 0x00000200) != 0)) { tagValueIds_ = new com.google.protobuf.LazyStringArrayList(tagValueIds_); - bitField0_ |= 0x00000100; - } + bitField0_ |= 0x00000200; + } } /** - * - * *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValueIds:"456"`
          *     - `tagValueIds="tagValues/456"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `456`
          * 
    * * repeated string tag_value_ids = 26; - * * @return A list containing the tagValueIds. */ - public com.google.protobuf.ProtocolStringList getTagValueIdsList() { + public com.google.protobuf.ProtocolStringList + getTagValueIdsList() { return tagValueIds_.getUnmodifiableView(); } /** - * - * *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValueIds:"456"`
          *     - `tagValueIds="tagValues/456"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `456`
          * 
    * * repeated string tag_value_ids = 26; - * * @return The count of tagValueIds. */ public int getTagValueIdsCount() { return tagValueIds_.size(); } /** - * - * *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValueIds:"456"`
          *     - `tagValueIds="tagValues/456"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `456`
          * 
    * * repeated string tag_value_ids = 26; - * * @param index The index of the element to return. * @return The tagValueIds at the given index. */ @@ -7657,151 +7384,139 @@ public java.lang.String getTagValueIds(int index) { return tagValueIds_.get(index); } /** - * - * *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValueIds:"456"`
          *     - `tagValueIds="tagValues/456"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `456`
          * 
    * * repeated string tag_value_ids = 26; - * * @param index The index of the value to return. * @return The bytes of the tagValueIds at the given index. */ - public com.google.protobuf.ByteString getTagValueIdsBytes(int index) { + public com.google.protobuf.ByteString + getTagValueIdsBytes(int index) { return tagValueIds_.getByteString(index); } /** - * - * *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValueIds:"456"`
          *     - `tagValueIds="tagValues/456"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `456`
          * 
    * * repeated string tag_value_ids = 26; - * * @param index The index to set the value at. * @param value The tagValueIds to set. * @return This builder for chaining. */ - public Builder setTagValueIds(int index, java.lang.String value) { + public Builder setTagValueIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagValueIdsIsMutable(); + throw new NullPointerException(); + } + ensureTagValueIdsIsMutable(); tagValueIds_.set(index, value); onChanged(); return this; } /** - * - * *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValueIds:"456"`
          *     - `tagValueIds="tagValues/456"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `456`
          * 
    * * repeated string tag_value_ids = 26; - * * @param value The tagValueIds to add. * @return This builder for chaining. */ - public Builder addTagValueIds(java.lang.String value) { + public Builder addTagValueIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagValueIdsIsMutable(); + throw new NullPointerException(); + } + ensureTagValueIdsIsMutable(); tagValueIds_.add(value); onChanged(); return this; } /** - * - * *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValueIds:"456"`
          *     - `tagValueIds="tagValues/456"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `456`
          * 
    * * repeated string tag_value_ids = 26; - * * @param values The tagValueIds to add. * @return This builder for chaining. */ - public Builder addAllTagValueIds(java.lang.Iterable values) { + public Builder addAllTagValueIds( + java.lang.Iterable values) { ensureTagValueIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tagValueIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tagValueIds_); onChanged(); return this; } /** - * - * *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValueIds:"456"`
          *     - `tagValueIds="tagValues/456"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `456`
          * 
    * * repeated string tag_value_ids = 26; - * * @return This builder for chaining. */ public Builder clearTagValueIds() { tagValueIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** - * - * *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          *     - `tagValueIds:"456"`
          *     - `tagValueIds="tagValues/456"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          *     - `456`
          * 
    * * repeated string tag_value_ids = 26; - * * @param value The bytes of the tagValueIds to add. * @return This builder for chaining. */ - public Builder addTagValueIdsBytes(com.google.protobuf.ByteString value) { + public Builder addTagValueIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTagValueIdsIsMutable(); tagValueIds_.add(value); onChanged(); @@ -7810,25 +7525,23 @@ public Builder addTagValueIdsBytes(com.google.protobuf.ByteString value) { private java.lang.Object parentAssetType_ = ""; /** - * - * *
          * The type of this resource's immediate parent, if there is one.
          * To search against the `parent_asset_type`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          * `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          * `cloudresourcemanager.googleapis.com/Project`
          * 
    * * string parent_asset_type = 103; - * * @return The parentAssetType. */ public java.lang.String getParentAssetType() { java.lang.Object ref = parentAssetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentAssetType_ = s; return s; @@ -7837,26 +7550,25 @@ public java.lang.String getParentAssetType() { } } /** - * - * *
          * The type of this resource's immediate parent, if there is one.
          * To search against the `parent_asset_type`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          * `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          * `cloudresourcemanager.googleapis.com/Project`
          * 
    * * string parent_asset_type = 103; - * * @return The bytes for parentAssetType. */ - public com.google.protobuf.ByteString getParentAssetTypeBytes() { + public com.google.protobuf.ByteString + getParentAssetTypeBytes() { java.lang.Object ref = parentAssetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentAssetType_ = b; return b; } else { @@ -7864,83 +7576,76 @@ public com.google.protobuf.ByteString getParentAssetTypeBytes() { } } /** - * - * *
          * The type of this resource's immediate parent, if there is one.
          * To search against the `parent_asset_type`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          * `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          * `cloudresourcemanager.googleapis.com/Project`
          * 
    * * string parent_asset_type = 103; - * * @param value The parentAssetType to set. * @return This builder for chaining. */ - public Builder setParentAssetType(java.lang.String value) { + public Builder setParentAssetType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parentAssetType_ = value; onChanged(); return this; } /** - * - * *
          * The type of this resource's immediate parent, if there is one.
          * To search against the `parent_asset_type`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          * `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          * `cloudresourcemanager.googleapis.com/Project`
          * 
    * * string parent_asset_type = 103; - * * @return This builder for chaining. */ public Builder clearParentAssetType() { - + parentAssetType_ = getDefaultInstance().getParentAssetType(); onChanged(); return this; } /** - * - * *
          * The type of this resource's immediate parent, if there is one.
          * To search against the `parent_asset_type`:
    -     * * use a field query. Example:
    +     * * Use a field query. Example:
          * `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
    -     * * use a free text query. Example:
    +     * * Use a free text query. Example:
          * `cloudresourcemanager.googleapis.com/Project`
          * 
    * * string parent_asset_type = 103; - * * @param value The bytes for parentAssetType to set. * @return This builder for chaining. */ - public Builder setParentAssetTypeBytes(com.google.protobuf.ByteString value) { + public Builder setParentAssetTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parentAssetType_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -7950,12 +7655,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.ResourceSearchResult) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.ResourceSearchResult) private static final com.google.cloud.asset.v1.ResourceSearchResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.ResourceSearchResult(); } @@ -7964,16 +7669,27 @@ public static com.google.cloud.asset.v1.ResourceSearchResult getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceSearchResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceSearchResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceSearchResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7988,4 +7704,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.ResourceSearchResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResultOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResultOrBuilder.java similarity index 76% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResultOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResultOrBuilder.java index 5ab43ef5d8bb..acc32c1612fa 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResultOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResultOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; -public interface ResourceSearchResultOrBuilder - extends +public interface ResourceSearchResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.ResourceSearchResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The full resource name of this resource. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -33,18 +15,15 @@ public interface ResourceSearchResultOrBuilder
        * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
        * for more information.
        * To search against the `name`:
    -   * * use a field query. Example: `name:instance1`
    -   * * use a free text query. Example: `instance1`
    +   * * Use a field query. Example: `name:instance1`
    +   * * Use a free text query. Example: `instance1`
        * 
    * * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
        * The full resource name of this resource. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -52,404 +31,359 @@ public interface ResourceSearchResultOrBuilder
        * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
        * for more information.
        * To search against the `name`:
    -   * * use a field query. Example: `name:instance1`
    -   * * use a free text query. Example: `instance1`
    +   * * Use a field query. Example: `name:instance1`
    +   * * Use a free text query. Example: `instance1`
        * 
    * * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
        * The type of this resource. Example: `compute.googleapis.com/Disk`.
        * To search against the `asset_type`:
    -   * * specify the `asset_type` field in your search request.
    +   * * Specify the `asset_type` field in your search request.
        * 
    * * string asset_type = 2; - * * @return The assetType. */ java.lang.String getAssetType(); /** - * - * *
        * The type of this resource. Example: `compute.googleapis.com/Disk`.
        * To search against the `asset_type`:
    -   * * specify the `asset_type` field in your search request.
    +   * * Specify the `asset_type` field in your search request.
        * 
    * * string asset_type = 2; - * * @return The bytes for assetType. */ - com.google.protobuf.ByteString getAssetTypeBytes(); + com.google.protobuf.ByteString + getAssetTypeBytes(); /** - * - * *
        * The project that this resource belongs to, in the form of
        * projects/{PROJECT_NUMBER}. This field is available when the resource
        * belongs to a project.
        * To search against `project`:
    -   * * use a field query. Example: `project:12345`
    -   * * use a free text query. Example: `12345`
    -   * * specify the `scope` field as this project in your search request.
    +   * * Use a field query. Example: `project:12345`
    +   * * Use a free text query. Example: `12345`
    +   * * Specify the `scope` field as this project in your search request.
        * 
    * * string project = 3; - * * @return The project. */ java.lang.String getProject(); /** - * - * *
        * The project that this resource belongs to, in the form of
        * projects/{PROJECT_NUMBER}. This field is available when the resource
        * belongs to a project.
        * To search against `project`:
    -   * * use a field query. Example: `project:12345`
    -   * * use a free text query. Example: `12345`
    -   * * specify the `scope` field as this project in your search request.
    +   * * Use a field query. Example: `project:12345`
    +   * * Use a free text query. Example: `12345`
    +   * * Specify the `scope` field as this project in your search request.
        * 
    * * string project = 3; - * * @return The bytes for project. */ - com.google.protobuf.ByteString getProjectBytes(); + com.google.protobuf.ByteString + getProjectBytes(); /** - * - * *
        * The folder(s) that this resource belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the resource
        * belongs to one or more folders.
        * To search against `folders`:
    -   * * use a field query. Example: `folders:(123 OR 456)`
    -   * * use a free text query. Example: `123`
    -   * * specify the `scope` field as this folder in your search request.
    +   * * Use a field query. Example: `folders:(123 OR 456)`
    +   * * Use a free text query. Example: `123`
    +   * * Specify the `scope` field as this folder in your search request.
        * 
    * * repeated string folders = 17; - * * @return A list containing the folders. */ - java.util.List getFoldersList(); + java.util.List + getFoldersList(); /** - * - * *
        * The folder(s) that this resource belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the resource
        * belongs to one or more folders.
        * To search against `folders`:
    -   * * use a field query. Example: `folders:(123 OR 456)`
    -   * * use a free text query. Example: `123`
    -   * * specify the `scope` field as this folder in your search request.
    +   * * Use a field query. Example: `folders:(123 OR 456)`
    +   * * Use a free text query. Example: `123`
    +   * * Specify the `scope` field as this folder in your search request.
        * 
    * * repeated string folders = 17; - * * @return The count of folders. */ int getFoldersCount(); /** - * - * *
        * The folder(s) that this resource belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the resource
        * belongs to one or more folders.
        * To search against `folders`:
    -   * * use a field query. Example: `folders:(123 OR 456)`
    -   * * use a free text query. Example: `123`
    -   * * specify the `scope` field as this folder in your search request.
    +   * * Use a field query. Example: `folders:(123 OR 456)`
    +   * * Use a free text query. Example: `123`
    +   * * Specify the `scope` field as this folder in your search request.
        * 
    * * repeated string folders = 17; - * * @param index The index of the element to return. * @return The folders at the given index. */ java.lang.String getFolders(int index); /** - * - * *
        * The folder(s) that this resource belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the resource
        * belongs to one or more folders.
        * To search against `folders`:
    -   * * use a field query. Example: `folders:(123 OR 456)`
    -   * * use a free text query. Example: `123`
    -   * * specify the `scope` field as this folder in your search request.
    +   * * Use a field query. Example: `folders:(123 OR 456)`
    +   * * Use a free text query. Example: `123`
    +   * * Specify the `scope` field as this folder in your search request.
        * 
    * * repeated string folders = 17; - * * @param index The index of the value to return. * @return The bytes of the folders at the given index. */ - com.google.protobuf.ByteString getFoldersBytes(int index); + com.google.protobuf.ByteString + getFoldersBytes(int index); /** - * - * *
        * The organization that this resource belongs to, in the form of
        * organizations/{ORGANIZATION_NUMBER}. This field is available when the
        * resource belongs to an organization.
        * To search against `organization`:
    -   * * use a field query. Example: `organization:123`
    -   * * use a free text query. Example: `123`
    -   * * specify the `scope` field as this organization in your search request.
    +   * * Use a field query. Example: `organization:123`
    +   * * Use a free text query. Example: `123`
    +   * * Specify the `scope` field as this organization in your search request.
        * 
    * * string organization = 18; - * * @return The organization. */ java.lang.String getOrganization(); /** - * - * *
        * The organization that this resource belongs to, in the form of
        * organizations/{ORGANIZATION_NUMBER}. This field is available when the
        * resource belongs to an organization.
        * To search against `organization`:
    -   * * use a field query. Example: `organization:123`
    -   * * use a free text query. Example: `123`
    -   * * specify the `scope` field as this organization in your search request.
    +   * * Use a field query. Example: `organization:123`
    +   * * Use a free text query. Example: `123`
    +   * * Specify the `scope` field as this organization in your search request.
        * 
    * * string organization = 18; - * * @return The bytes for organization. */ - com.google.protobuf.ByteString getOrganizationBytes(); + com.google.protobuf.ByteString + getOrganizationBytes(); /** - * - * *
        * The display name of this resource. This field is available only when the
        * resource's Protobuf contains it.
        * To search against the `display_name`:
    -   * * use a field query. Example: `displayName:"My Instance"`
    -   * * use a free text query. Example: `"My Instance"`
    +   * * Use a field query. Example: `displayName:"My Instance"`
    +   * * Use a free text query. Example: `"My Instance"`
        * 
    * * string display_name = 4; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
        * The display name of this resource. This field is available only when the
        * resource's Protobuf contains it.
        * To search against the `display_name`:
    -   * * use a field query. Example: `displayName:"My Instance"`
    -   * * use a free text query. Example: `"My Instance"`
    +   * * Use a field query. Example: `displayName:"My Instance"`
    +   * * Use a free text query. Example: `"My Instance"`
        * 
    * * string display_name = 4; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
        * One or more paragraphs of text description of this resource. Maximum length
        * could be up to 1M bytes. This field is available only when the resource's
        * Protobuf contains it.
        * To search against the `description`:
    -   * * use a field query. Example: `description:"important instance"`
    -   * * use a free text query. Example: `"important instance"`
    +   * * Use a field query. Example: `description:"important instance"`
    +   * * Use a free text query. Example: `"important instance"`
        * 
    * * string description = 5; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
        * One or more paragraphs of text description of this resource. Maximum length
        * could be up to 1M bytes. This field is available only when the resource's
        * Protobuf contains it.
        * To search against the `description`:
    -   * * use a field query. Example: `description:"important instance"`
    -   * * use a free text query. Example: `"important instance"`
    +   * * Use a field query. Example: `description:"important instance"`
    +   * * Use a free text query. Example: `"important instance"`
        * 
    * * string description = 5; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
        * Location can be `global`, regional like `us-east1`, or zonal like
        * `us-west1-b`. This field is available only when the resource's Protobuf
        * contains it.
        * To search against the `location`:
    -   * * use a field query. Example: `location:us-west*`
    -   * * use a free text query. Example: `us-west*`
    +   * * Use a field query. Example: `location:us-west*`
    +   * * Use a free text query. Example: `us-west*`
        * 
    * * string location = 6; - * * @return The location. */ java.lang.String getLocation(); /** - * - * *
        * Location can be `global`, regional like `us-east1`, or zonal like
        * `us-west1-b`. This field is available only when the resource's Protobuf
        * contains it.
        * To search against the `location`:
    -   * * use a field query. Example: `location:us-west*`
    -   * * use a free text query. Example: `us-west*`
    +   * * Use a field query. Example: `location:us-west*`
    +   * * Use a free text query. Example: `us-west*`
        * 
    * * string location = 6; - * * @return The bytes for location. */ - com.google.protobuf.ByteString getLocationBytes(); + com.google.protobuf.ByteString + getLocationBytes(); /** - * - * *
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
        * for more information. This field is available only when the resource's
        * Protobuf contains it.
        * To search against the `labels`:
    -   * * use a field query:
    +   * * Use a field query:
        *     - query on any label's key or value. Example: `labels:prod`
        *     - query by a given label. Example: `labels.env:prod`
        *     - query by a given label's existence. Example: `labels.env:*`
    -   * * use a free text query. Example: `prod`
    +   * * Use a free text query. Example: `prod`
        * 
    * * map<string, string> labels = 7; */ int getLabelsCount(); /** - * - * *
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
        * for more information. This field is available only when the resource's
        * Protobuf contains it.
        * To search against the `labels`:
    -   * * use a field query:
    +   * * Use a field query:
        *     - query on any label's key or value. Example: `labels:prod`
        *     - query by a given label. Example: `labels.env:prod`
        *     - query by a given label's existence. Example: `labels.env:*`
    -   * * use a free text query. Example: `prod`
    +   * * Use a free text query. Example: `prod`
        * 
    * * map<string, string> labels = 7; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
        * for more information. This field is available only when the resource's
        * Protobuf contains it.
        * To search against the `labels`:
    -   * * use a field query:
    +   * * Use a field query:
        *     - query on any label's key or value. Example: `labels:prod`
        *     - query by a given label. Example: `labels.env:prod`
        *     - query by a given label's existence. Example: `labels.env:*`
    -   * * use a free text query. Example: `prod`
    +   * * Use a free text query. Example: `prod`
        * 
    * * map<string, string> labels = 7; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
        * for more information. This field is available only when the resource's
        * Protobuf contains it.
        * To search against the `labels`:
    -   * * use a field query:
    +   * * Use a field query:
        *     - query on any label's key or value. Example: `labels:prod`
        *     - query by a given label. Example: `labels.env:prod`
        *     - query by a given label's existence. Example: `labels.env:*`
    -   * * use a free text query. Example: `prod`
    +   * * Use a free text query. Example: `prod`
        * 
    * * map<string, string> labels = 7; */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
        * for more information. This field is available only when the resource's
        * Protobuf contains it.
        * To search against the `labels`:
    -   * * use a field query:
    +   * * Use a field query:
        *     - query on any label's key or value. Example: `labels:prod`
        *     - query by a given label. Example: `labels.env:prod`
        *     - query by a given label's existence. Example: `labels.env:*`
    -   * * use a free text query. Example: `prod`
    +   * * Use a free text query. Example: `prod`
        * 
    * * map<string, string> labels = 7; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -457,18 +391,16 @@ java.lang.String getLabelsOrDefault(
        * for more information. This field is available only when the resource's
        * Protobuf contains it.
        * To search against the `network_tags`:
    -   * * use a field query. Example: `networkTags:internal`
    -   * * use a free text query. Example: `internal`
    +   * * Use a field query. Example: `networkTags:internal`
    +   * * Use a free text query. Example: `internal`
        * 
    * * repeated string network_tags = 8; - * * @return A list containing the networkTags. */ - java.util.List getNetworkTagsList(); + java.util.List + getNetworkTagsList(); /** - * - * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -476,18 +408,15 @@ java.lang.String getLabelsOrDefault(
        * for more information. This field is available only when the resource's
        * Protobuf contains it.
        * To search against the `network_tags`:
    -   * * use a field query. Example: `networkTags:internal`
    -   * * use a free text query. Example: `internal`
    +   * * Use a field query. Example: `networkTags:internal`
    +   * * Use a free text query. Example: `internal`
        * 
    * * repeated string network_tags = 8; - * * @return The count of networkTags. */ int getNetworkTagsCount(); /** - * - * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -495,19 +424,16 @@ java.lang.String getLabelsOrDefault(
        * for more information. This field is available only when the resource's
        * Protobuf contains it.
        * To search against the `network_tags`:
    -   * * use a field query. Example: `networkTags:internal`
    -   * * use a free text query. Example: `internal`
    +   * * Use a field query. Example: `networkTags:internal`
    +   * * Use a free text query. Example: `internal`
        * 
    * * repeated string network_tags = 8; - * * @param index The index of the element to return. * @return The networkTags at the given index. */ java.lang.String getNetworkTags(int index); /** - * - * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -515,67 +441,147 @@ java.lang.String getLabelsOrDefault(
        * for more information. This field is available only when the resource's
        * Protobuf contains it.
        * To search against the `network_tags`:
    -   * * use a field query. Example: `networkTags:internal`
    -   * * use a free text query. Example: `internal`
    +   * * Use a field query. Example: `networkTags:internal`
    +   * * Use a free text query. Example: `internal`
        * 
    * * repeated string network_tags = 8; - * * @param index The index of the value to return. * @return The bytes of the networkTags at the given index. */ - com.google.protobuf.ByteString getNetworkTagsBytes(int index); + com.google.protobuf.ByteString + getNetworkTagsBytes(int index); /** - * - * *
        * The Cloud KMS
        * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
        * name or
        * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    -   * name. This field is available only when the resource's Protobuf contains
    -   * it.
    +   * name.
    +   * This field only presents for the purpose of backward compatibility. Please
    +   * use the `kms_keys` field to retrieve KMS key information. This field is
    +   * available only when the resource's Protobuf contains it and will only be
    +   * populated for [these resource
    +   * types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field)
    +   * for backward compatible purposes.
        * To search against the `kms_key`:
    -   * * use a field query. Example: `kmsKey:key`
    -   * * use a free text query. Example: `key`
    +   * * Use a field query. Example: `kmsKey:key`
    +   * * Use a free text query. Example: `key`
        * 
    * - * string kms_key = 10; - * + * string kms_key = 10 [deprecated = true]; + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. + * See google/cloud/asset/v1/assets.proto;l=434 * @return The kmsKey. */ - java.lang.String getKmsKey(); + @java.lang.Deprecated java.lang.String getKmsKey(); /** - * - * *
        * The Cloud KMS
        * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
        * name or
        * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    -   * name. This field is available only when the resource's Protobuf contains
    -   * it.
    +   * name.
    +   * This field only presents for the purpose of backward compatibility. Please
    +   * use the `kms_keys` field to retrieve KMS key information. This field is
    +   * available only when the resource's Protobuf contains it and will only be
    +   * populated for [these resource
    +   * types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field)
    +   * for backward compatible purposes.
        * To search against the `kms_key`:
    -   * * use a field query. Example: `kmsKey:key`
    -   * * use a free text query. Example: `key`
    +   * * Use a field query. Example: `kmsKey:key`
    +   * * Use a free text query. Example: `key`
        * 
    * - * string kms_key = 10; - * + * string kms_key = 10 [deprecated = true]; + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. + * See google/cloud/asset/v1/assets.proto;l=434 * @return The bytes for kmsKey. */ - com.google.protobuf.ByteString getKmsKeyBytes(); + @java.lang.Deprecated com.google.protobuf.ByteString + getKmsKeyBytes(); /** + *
    +   * The Cloud KMS
    +   * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +   * names or
    +   * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +   * names. This field is available only when the resource's Protobuf contains
    +   * it.
    +   * To search against the `kms_keys`:
    +   * * Use a field query. Example: `kmsKeys:key`
    +   * * Use a free text query. Example: `key`
    +   * 
    + * + * repeated string kms_keys = 28; + * @return A list containing the kmsKeys. + */ + java.util.List + getKmsKeysList(); + /** + *
    +   * The Cloud KMS
    +   * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +   * names or
    +   * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +   * names. This field is available only when the resource's Protobuf contains
    +   * it.
    +   * To search against the `kms_keys`:
    +   * * Use a field query. Example: `kmsKeys:key`
    +   * * Use a free text query. Example: `key`
    +   * 
    * + * repeated string kms_keys = 28; + * @return The count of kmsKeys. + */ + int getKmsKeysCount(); + /** + *
    +   * The Cloud KMS
    +   * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +   * names or
    +   * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +   * names. This field is available only when the resource's Protobuf contains
    +   * it.
    +   * To search against the `kms_keys`:
    +   * * Use a field query. Example: `kmsKeys:key`
    +   * * Use a free text query. Example: `key`
    +   * 
    * + * repeated string kms_keys = 28; + * @param index The index of the element to return. + * @return The kmsKeys at the given index. + */ + java.lang.String getKmsKeys(int index); + /** + *
    +   * The Cloud KMS
    +   * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +   * names or
    +   * [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +   * names. This field is available only when the resource's Protobuf contains
    +   * it.
    +   * To search against the `kms_keys`:
    +   * * Use a field query. Example: `kmsKeys:key`
    +   * * Use a free text query. Example: `key`
    +   * 
    + * + * repeated string kms_keys = 28; + * @param index The index of the value to return. + * @return The bytes of the kmsKeys at the given index. + */ + com.google.protobuf.ByteString + getKmsKeysBytes(int index); + + /** *
        * The create timestamp of this resource, at which the resource was created.
        * The granularity is in seconds. Timestamp.nanos will always be 0. This field
        * is available only when the resource's Protobuf contains it.
        * To search against `create_time`:
    -   * * use a field query.
    +   * * Use a field query.
        *     - value in seconds since unix epoch. Example: `createTime > 1609459200`
        *     - value in date string. Example: `createTime > 2021-01-01`
        *     - value in date-time string (must be quoted). Example: `createTime >
    @@ -583,19 +589,16 @@ java.lang.String getLabelsOrDefault(
        * 
    * * .google.protobuf.Timestamp create_time = 11; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
        * The create timestamp of this resource, at which the resource was created.
        * The granularity is in seconds. Timestamp.nanos will always be 0. This field
        * is available only when the resource's Protobuf contains it.
        * To search against `create_time`:
    -   * * use a field query.
    +   * * Use a field query.
        *     - value in seconds since unix epoch. Example: `createTime > 1609459200`
        *     - value in date string. Example: `createTime > 2021-01-01`
        *     - value in date-time string (must be quoted). Example: `createTime >
    @@ -603,19 +606,16 @@ java.lang.String getLabelsOrDefault(
        * 
    * * .google.protobuf.Timestamp create_time = 11; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
        * The create timestamp of this resource, at which the resource was created.
        * The granularity is in seconds. Timestamp.nanos will always be 0. This field
        * is available only when the resource's Protobuf contains it.
        * To search against `create_time`:
    -   * * use a field query.
    +   * * Use a field query.
        *     - value in seconds since unix epoch. Example: `createTime > 1609459200`
        *     - value in date string. Example: `createTime > 2021-01-01`
        *     - value in date-time string (must be quoted). Example: `createTime >
    @@ -627,15 +627,13 @@ java.lang.String getLabelsOrDefault(
       com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * The last update timestamp of this resource, at which the resource was last
        * modified or deleted. The granularity is in seconds. Timestamp.nanos will
        * always be 0. This field is available only when the resource's Protobuf
        * contains it.
        * To search against `update_time`:
    -   * * use a field query.
    +   * * Use a field query.
        *     - value in seconds since unix epoch. Example: `updateTime < 1609459200`
        *     - value in date string. Example: `updateTime < 2021-01-01`
        *     - value in date-time string (must be quoted). Example: `updateTime <
    @@ -643,20 +641,17 @@ java.lang.String getLabelsOrDefault(
        * 
    * * .google.protobuf.Timestamp update_time = 12; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
        * The last update timestamp of this resource, at which the resource was last
        * modified or deleted. The granularity is in seconds. Timestamp.nanos will
        * always be 0. This field is available only when the resource's Protobuf
        * contains it.
        * To search against `update_time`:
    -   * * use a field query.
    +   * * Use a field query.
        *     - value in seconds since unix epoch. Example: `updateTime < 1609459200`
        *     - value in date string. Example: `updateTime < 2021-01-01`
        *     - value in date-time string (must be quoted). Example: `updateTime <
    @@ -664,20 +659,17 @@ java.lang.String getLabelsOrDefault(
        * 
    * * .google.protobuf.Timestamp update_time = 12; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
        * The last update timestamp of this resource, at which the resource was last
        * modified or deleted. The granularity is in seconds. Timestamp.nanos will
        * always be 0. This field is available only when the resource's Protobuf
        * contains it.
        * To search against `update_time`:
    -   * * use a field query.
    +   * * Use a field query.
        *     - value in seconds since unix epoch. Example: `updateTime < 1609459200`
        *     - value in date string. Example: `updateTime < 2021-01-01`
        *     - value in date-time string (must be quoted). Example: `updateTime <
    @@ -689,8 +681,6 @@ java.lang.String getLabelsOrDefault(
       com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * The state of this resource. Different resources types have different state
        * definitions that are mapped from various fields of different resource
    @@ -707,18 +697,15 @@ java.lang.String getLabelsOrDefault(
        * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API
        * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects).
        * To search against the `state`:
    -   * * use a field query. Example: `state:RUNNING`
    -   * * use a free text query. Example: `RUNNING`
    +   * * Use a field query. Example: `state:RUNNING`
    +   * * Use a free text query. Example: `RUNNING`
        * 
    * * string state = 13; - * * @return The state. */ java.lang.String getState(); /** - * - * *
        * The state of this resource. Different resources types have different state
        * definitions that are mapped from various fields of different resource
    @@ -735,19 +722,17 @@ java.lang.String getLabelsOrDefault(
        * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API
        * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects).
        * To search against the `state`:
    -   * * use a field query. Example: `state:RUNNING`
    -   * * use a free text query. Example: `RUNNING`
    +   * * Use a field query. Example: `state:RUNNING`
    +   * * Use a free text query. Example: `RUNNING`
        * 
    * * string state = 13; - * * @return The bytes for state. */ - com.google.protobuf.ByteString getStateBytes(); + com.google.protobuf.ByteString + getStateBytes(); /** - * - * *
        * The additional searchable attributes of this resource. The attributes may
        * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -762,19 +747,16 @@ java.lang.String getLabelsOrDefault(
        * values may change as the GCP service updates to a new incompatible API
        * version.
        * To search against the `additional_attributes`:
    -   * * use a free text query to match the attributes values. Example: to search
    +   * * Use a free text query to match the attributes values. Example: to search
        *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
        *   `foobar`.
        * 
    * * .google.protobuf.Struct additional_attributes = 9; - * * @return Whether the additionalAttributes field is set. */ boolean hasAdditionalAttributes(); /** - * - * *
        * The additional searchable attributes of this resource. The attributes may
        * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -789,19 +771,16 @@ java.lang.String getLabelsOrDefault(
        * values may change as the GCP service updates to a new incompatible API
        * version.
        * To search against the `additional_attributes`:
    -   * * use a free text query to match the attributes values. Example: to search
    +   * * Use a free text query to match the attributes values. Example: to search
        *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
        *   `foobar`.
        * 
    * * .google.protobuf.Struct additional_attributes = 9; - * * @return The additionalAttributes. */ com.google.protobuf.Struct getAdditionalAttributes(); /** - * - * *
        * The additional searchable attributes of this resource. The attributes may
        * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -816,7 +795,7 @@ java.lang.String getLabelsOrDefault(
        * values may change as the GCP service updates to a new incompatible API
        * version.
        * To search against the `additional_attributes`:
    -   * * use a free text query to match the attributes values. Example: to search
    +   * * Use a free text query to match the attributes values. Example: to search
        *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
        *   `foobar`.
        * 
    @@ -826,43 +805,36 @@ java.lang.String getLabelsOrDefault( com.google.protobuf.StructOrBuilder getAdditionalAttributesOrBuilder(); /** - * - * *
        * The full resource name of this resource's parent, if it has one.
        * To search against the `parent_full_resource_name`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        * `parentFullResourceName:"project-name"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        * `project-name`
        * 
    * * string parent_full_resource_name = 19; - * * @return The parentFullResourceName. */ java.lang.String getParentFullResourceName(); /** - * - * *
        * The full resource name of this resource's parent, if it has one.
        * To search against the `parent_full_resource_name`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        * `parentFullResourceName:"project-name"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        * `project-name`
        * 
    * * string parent_full_resource_name = 19; - * * @return The bytes for parentFullResourceName. */ - com.google.protobuf.ByteString getParentFullResourceNameBytes(); + com.google.protobuf.ByteString + getParentFullResourceNameBytes(); /** - * - * *
        * Versioned resource representations of this resource. This is repeated
        * because there could be multiple versions of resource representations during
    @@ -874,10 +846,9 @@ java.lang.String getLabelsOrDefault(
        *
        * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 16;
        */
    -  java.util.List getVersionedResourcesList();
    +  java.util.List 
    +      getVersionedResourcesList();
       /**
    -   *
    -   *
        * 
        * Versioned resource representations of this resource. This is repeated
        * because there could be multiple versions of resource representations during
    @@ -891,8 +862,6 @@ java.lang.String getLabelsOrDefault(
        */
       com.google.cloud.asset.v1.VersionedResource getVersionedResources(int index);
       /**
    -   *
    -   *
        * 
        * Versioned resource representations of this resource. This is repeated
        * because there could be multiple versions of resource representations during
    @@ -906,8 +875,6 @@ java.lang.String getLabelsOrDefault(
        */
       int getVersionedResourcesCount();
       /**
    -   *
    -   *
        * 
        * Versioned resource representations of this resource. This is repeated
        * because there could be multiple versions of resource representations during
    @@ -919,11 +886,9 @@ java.lang.String getLabelsOrDefault(
        *
        * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 16;
        */
    -  java.util.List
    +  java.util.List 
           getVersionedResourcesOrBuilderList();
       /**
    -   *
    -   *
        * 
        * Versioned resource representations of this resource. This is repeated
        * because there could be multiple versions of resource representations during
    @@ -935,11 +900,10 @@ java.lang.String getLabelsOrDefault(
        *
        * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 16;
        */
    -  com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResourcesOrBuilder(int index);
    +  com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResourcesOrBuilder(
    +      int index);
     
       /**
    -   *
    -   *
        * 
        * Attached resources of this resource. For example, an OSConfig
        * Inventory is an attached resource of a Compute Instance. This field is
    @@ -951,10 +915,9 @@ java.lang.String getLabelsOrDefault(
        *
        * repeated .google.cloud.asset.v1.AttachedResource attached_resources = 20;
        */
    -  java.util.List getAttachedResourcesList();
    +  java.util.List 
    +      getAttachedResourcesList();
       /**
    -   *
    -   *
        * 
        * Attached resources of this resource. For example, an OSConfig
        * Inventory is an attached resource of a Compute Instance. This field is
    @@ -968,8 +931,6 @@ java.lang.String getLabelsOrDefault(
        */
       com.google.cloud.asset.v1.AttachedResource getAttachedResources(int index);
       /**
    -   *
    -   *
        * 
        * Attached resources of this resource. For example, an OSConfig
        * Inventory is an attached resource of a Compute Instance. This field is
    @@ -983,8 +944,6 @@ java.lang.String getLabelsOrDefault(
        */
       int getAttachedResourcesCount();
       /**
    -   *
    -   *
        * 
        * Attached resources of this resource. For example, an OSConfig
        * Inventory is an attached resource of a Compute Instance. This field is
    @@ -996,11 +955,9 @@ java.lang.String getLabelsOrDefault(
        *
        * repeated .google.cloud.asset.v1.AttachedResource attached_resources = 20;
        */
    -  java.util.List
    +  java.util.List 
           getAttachedResourcesOrBuilderList();
       /**
    -   *
    -   *
        * 
        * Attached resources of this resource. For example, an OSConfig
        * Inventory is an attached resource of a Compute Instance. This field is
    @@ -1012,11 +969,10 @@ java.lang.String getLabelsOrDefault(
        *
        * repeated .google.cloud.asset.v1.AttachedResource attached_resources = 20;
        */
    -  com.google.cloud.asset.v1.AttachedResourceOrBuilder getAttachedResourcesOrBuilder(int index);
    +  com.google.cloud.asset.v1.AttachedResourceOrBuilder getAttachedResourcesOrBuilder(
    +      int index);
     
       /**
    -   *
    -   *
        * 
        * A map of related resources of this resource, keyed by the
        * relationship type. A relationship type is in the format of
    @@ -1030,8 +986,6 @@ java.lang.String getLabelsOrDefault(
        */
       int getRelationshipsCount();
       /**
    -   *
    -   *
        * 
        * A map of related resources of this resource, keyed by the
        * relationship type. A relationship type is in the format of
    @@ -1043,13 +997,15 @@ java.lang.String getLabelsOrDefault(
        *
        * map<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
        */
    -  boolean containsRelationships(java.lang.String key);
    -  /** Use {@link #getRelationshipsMap()} instead. */
    +  boolean containsRelationships(
    +      java.lang.String key);
    +  /**
    +   * Use {@link #getRelationshipsMap()} instead.
    +   */
       @java.lang.Deprecated
    -  java.util.Map getRelationships();
    +  java.util.Map
    +  getRelationships();
       /**
    -   *
    -   *
        * 
        * A map of related resources of this resource, keyed by the
        * relationship type. A relationship type is in the format of
    @@ -1061,10 +1017,9 @@ java.lang.String getLabelsOrDefault(
        *
        * map<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
        */
    -  java.util.Map getRelationshipsMap();
    +  java.util.Map
    +  getRelationshipsMap();
       /**
    -   *
    -   *
        * 
        * A map of related resources of this resource, keyed by the
        * relationship type. A relationship type is in the format of
    @@ -1078,13 +1033,11 @@ java.lang.String getLabelsOrDefault(
        */
     
       /* nullable */
    -  com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
    +com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
           java.lang.String key,
           /* nullable */
    -      com.google.cloud.asset.v1.RelatedResources defaultValue);
    +com.google.cloud.asset.v1.RelatedResources defaultValue);
       /**
    -   *
    -   *
        * 
        * A map of related resources of this resource, keyed by the
        * relationship type. A relationship type is in the format of
    @@ -1096,281 +1049,248 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
        *
        * map<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
        */
    -  com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(java.lang.String key);
    +
    +  com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
    +      java.lang.String key);
     
       /**
    -   *
    -   *
        * 
        * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
        * To search against the `tagKeys`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagKeys:"123456789/env*"`
        *     - `tagKeys="123456789/env"`
        *     - `tagKeys:"env"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `env`
        * 
    * * repeated string tag_keys = 23; - * * @return A list containing the tagKeys. */ - java.util.List getTagKeysList(); + java.util.List + getTagKeysList(); /** - * - * *
        * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
        * To search against the `tagKeys`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagKeys:"123456789/env*"`
        *     - `tagKeys="123456789/env"`
        *     - `tagKeys:"env"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `env`
        * 
    * * repeated string tag_keys = 23; - * * @return The count of tagKeys. */ int getTagKeysCount(); /** - * - * *
        * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
        * To search against the `tagKeys`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagKeys:"123456789/env*"`
        *     - `tagKeys="123456789/env"`
        *     - `tagKeys:"env"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `env`
        * 
    * * repeated string tag_keys = 23; - * * @param index The index of the element to return. * @return The tagKeys at the given index. */ java.lang.String getTagKeys(int index); /** - * - * *
        * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
        * To search against the `tagKeys`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagKeys:"123456789/env*"`
        *     - `tagKeys="123456789/env"`
        *     - `tagKeys:"env"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `env`
        * 
    * * repeated string tag_keys = 23; - * * @param index The index of the value to return. * @return The bytes of the tagKeys at the given index. */ - com.google.protobuf.ByteString getTagKeysBytes(int index); + com.google.protobuf.ByteString + getTagKeysBytes(int index); /** - * - * *
        * TagValue namespaced names, in the format of
        * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
        * To search against the `tagValues`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagValues:"env"`
        *     - `tagValues:"env/prod"`
        *     - `tagValues:"123456789/env/prod*"`
        *     - `tagValues="123456789/env/prod"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `prod`
        * 
    * * repeated string tag_values = 25; - * * @return A list containing the tagValues. */ - java.util.List getTagValuesList(); + java.util.List + getTagValuesList(); /** - * - * *
        * TagValue namespaced names, in the format of
        * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
        * To search against the `tagValues`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagValues:"env"`
        *     - `tagValues:"env/prod"`
        *     - `tagValues:"123456789/env/prod*"`
        *     - `tagValues="123456789/env/prod"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `prod`
        * 
    * * repeated string tag_values = 25; - * * @return The count of tagValues. */ int getTagValuesCount(); /** - * - * *
        * TagValue namespaced names, in the format of
        * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
        * To search against the `tagValues`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagValues:"env"`
        *     - `tagValues:"env/prod"`
        *     - `tagValues:"123456789/env/prod*"`
        *     - `tagValues="123456789/env/prod"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `prod`
        * 
    * * repeated string tag_values = 25; - * * @param index The index of the element to return. * @return The tagValues at the given index. */ java.lang.String getTagValues(int index); /** - * - * *
        * TagValue namespaced names, in the format of
        * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
        * To search against the `tagValues`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagValues:"env"`
        *     - `tagValues:"env/prod"`
        *     - `tagValues:"123456789/env/prod*"`
        *     - `tagValues="123456789/env/prod"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `prod`
        * 
    * * repeated string tag_values = 25; - * * @param index The index of the value to return. * @return The bytes of the tagValues at the given index. */ - com.google.protobuf.ByteString getTagValuesBytes(int index); + com.google.protobuf.ByteString + getTagValuesBytes(int index); /** - * - * *
        * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
        * To search against the `tagValueIds`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagValueIds:"456"`
        *     - `tagValueIds="tagValues/456"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `456`
        * 
    * * repeated string tag_value_ids = 26; - * * @return A list containing the tagValueIds. */ - java.util.List getTagValueIdsList(); + java.util.List + getTagValueIdsList(); /** - * - * *
        * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
        * To search against the `tagValueIds`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagValueIds:"456"`
        *     - `tagValueIds="tagValues/456"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `456`
        * 
    * * repeated string tag_value_ids = 26; - * * @return The count of tagValueIds. */ int getTagValueIdsCount(); /** - * - * *
        * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
        * To search against the `tagValueIds`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagValueIds:"456"`
        *     - `tagValueIds="tagValues/456"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `456`
        * 
    * * repeated string tag_value_ids = 26; - * * @param index The index of the element to return. * @return The tagValueIds at the given index. */ java.lang.String getTagValueIds(int index); /** - * - * *
        * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
        * To search against the `tagValueIds`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        *     - `tagValueIds:"456"`
        *     - `tagValueIds="tagValues/456"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        *     - `456`
        * 
    * * repeated string tag_value_ids = 26; - * * @param index The index of the value to return. * @return The bytes of the tagValueIds at the given index. */ - com.google.protobuf.ByteString getTagValueIdsBytes(int index); + com.google.protobuf.ByteString + getTagValueIdsBytes(int index); /** - * - * *
        * The type of this resource's immediate parent, if there is one.
        * To search against the `parent_asset_type`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        * `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        * `cloudresourcemanager.googleapis.com/Project`
        * 
    * * string parent_asset_type = 103; - * * @return The parentAssetType. */ java.lang.String getParentAssetType(); /** - * - * *
        * The type of this resource's immediate parent, if there is one.
        * To search against the `parent_asset_type`:
    -   * * use a field query. Example:
    +   * * Use a field query. Example:
        * `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
    -   * * use a free text query. Example:
    +   * * Use a free text query. Example:
        * `cloudresourcemanager.googleapis.com/Project`
        * 
    * * string parent_asset_type = 103; - * * @return The bytes for parentAssetType. */ - com.google.protobuf.ByteString getParentAssetTypeBytes(); + com.google.protobuf.ByteString + getParentAssetTypeBytes(); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQuery.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQuery.java similarity index 63% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQuery.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQuery.java index 68a2b9c59abf..3924255b6898 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQuery.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQuery.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * A saved query which can be shared with others or used later.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.SavedQuery} */ -public final class SavedQuery extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SavedQuery extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.SavedQuery) SavedQueryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SavedQuery.newBuilder() to construct. private SavedQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SavedQuery() { name_ = ""; description_ = ""; @@ -46,218 +28,72 @@ private SavedQuery() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SavedQuery(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private SavedQuery( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - creator_ = s; - break; - } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastUpdateTime_ != null) { - subBuilder = lastUpdateTime_.toBuilder(); - } - lastUpdateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastUpdateTime_); - lastUpdateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - lastUpdater_ = s; - break; - } - case 58: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 66: - { - com.google.cloud.asset.v1.SavedQuery.QueryContent.Builder subBuilder = null; - if (content_ != null) { - subBuilder = content_.toBuilder(); - } - content_ = - input.readMessage( - com.google.cloud.asset.v1.SavedQuery.QueryContent.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(content_); - content_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SavedQuery_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SavedQuery_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 7: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SavedQuery_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SavedQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.SavedQuery.class, - com.google.cloud.asset.v1.SavedQuery.Builder.class); + com.google.cloud.asset.v1.SavedQuery.class, com.google.cloud.asset.v1.SavedQuery.Builder.class); } - public interface QueryContentOrBuilder - extends + public interface QueryContentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.SavedQuery.QueryContent) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * An IAM Policy Analysis query, which could be used in
    -     * the
    -     * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -     * rpc or the
    -     * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -     * rpc.
    +     * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +     * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; - * * @return Whether the iamPolicyAnalysisQuery field is set. */ boolean hasIamPolicyAnalysisQuery(); /** - * - * *
          * An IAM Policy Analysis query, which could be used in
    -     * the
    -     * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -     * rpc or the
    -     * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -     * rpc.
    +     * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +     * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; - * * @return The iamPolicyAnalysisQuery. */ com.google.cloud.asset.v1.IamPolicyAnalysisQuery getIamPolicyAnalysisQuery(); /** - * - * *
          * An IAM Policy Analysis query, which could be used in
    -     * the
    -     * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -     * rpc or the
    -     * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -     * rpc.
    +     * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +     * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; @@ -267,122 +103,57 @@ public interface QueryContentOrBuilder public com.google.cloud.asset.v1.SavedQuery.QueryContent.QueryContentCase getQueryContentCase(); } /** - * - * *
        * The query content.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.SavedQuery.QueryContent} */ - public static final class QueryContent extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class QueryContent extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.SavedQuery.QueryContent) QueryContentOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QueryContent.newBuilder() to construct. private QueryContent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private QueryContent() {} + private QueryContent() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new QueryContent(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private QueryContent( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder subBuilder = null; - if (queryContentCase_ == 1) { - subBuilder = - ((com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_) - .toBuilder(); - } - queryContent_ = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_); - queryContent_ = subBuilder.buildPartial(); - } - queryContentCase_ = 1; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.SavedQuery.QueryContent.class, - com.google.cloud.asset.v1.SavedQuery.QueryContent.Builder.class); + com.google.cloud.asset.v1.SavedQuery.QueryContent.class, com.google.cloud.asset.v1.SavedQuery.QueryContent.Builder.class); } private int queryContentCase_ = 0; private java.lang.Object queryContent_; - public enum QueryContentCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { IAM_POLICY_ANALYSIS_QUERY(1), QUERYCONTENT_NOT_SET(0); private final int value; - private QueryContentCase(int value) { this.value = value; } @@ -398,39 +169,31 @@ public static QueryContentCase valueOf(int value) { public static QueryContentCase forNumber(int value) { switch (value) { - case 1: - return IAM_POLICY_ANALYSIS_QUERY; - case 0: - return QUERYCONTENT_NOT_SET; - default: - return null; + case 1: return IAM_POLICY_ANALYSIS_QUERY; + case 0: return QUERYCONTENT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public QueryContentCase getQueryContentCase() { - return QueryContentCase.forNumber(queryContentCase_); + public QueryContentCase + getQueryContentCase() { + return QueryContentCase.forNumber( + queryContentCase_); } public static final int IAM_POLICY_ANALYSIS_QUERY_FIELD_NUMBER = 1; /** - * - * *
          * An IAM Policy Analysis query, which could be used in
    -     * the
    -     * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -     * rpc or the
    -     * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -     * rpc.
    +     * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +     * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; - * * @return Whether the iamPolicyAnalysisQuery field is set. */ @java.lang.Override @@ -438,53 +201,40 @@ public boolean hasIamPolicyAnalysisQuery() { return queryContentCase_ == 1; } /** - * - * *
          * An IAM Policy Analysis query, which could be used in
    -     * the
    -     * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -     * rpc or the
    -     * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -     * rpc.
    +     * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +     * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; - * * @return The iamPolicyAnalysisQuery. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getIamPolicyAnalysisQuery() { if (queryContentCase_ == 1) { - return (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_; + return (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_; } return com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance(); } /** - * - * *
          * An IAM Policy Analysis query, which could be used in
    -     * the
    -     * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -     * rpc or the
    -     * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -     * rpc.
    +     * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +     * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder - getIamPolicyAnalysisQueryOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getIamPolicyAnalysisQueryOrBuilder() { if (queryContentCase_ == 1) { - return (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_; + return (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_; } return com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -496,11 +246,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (queryContentCase_ == 1) { output.writeMessage(1, (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -510,11 +261,10 @@ public int getSerializedSize() { size = 0; if (queryContentCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -522,23 +272,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.SavedQuery.QueryContent)) { return super.equals(obj); } - com.google.cloud.asset.v1.SavedQuery.QueryContent other = - (com.google.cloud.asset.v1.SavedQuery.QueryContent) obj; + com.google.cloud.asset.v1.SavedQuery.QueryContent other = (com.google.cloud.asset.v1.SavedQuery.QueryContent) obj; if (!getQueryContentCase().equals(other.getQueryContentCase())) return false; switch (queryContentCase_) { case 1: - if (!getIamPolicyAnalysisQuery().equals(other.getIamPolicyAnalysisQuery())) return false; + if (!getIamPolicyAnalysisQuery() + .equals(other.getIamPolicyAnalysisQuery())) return false; break; case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -557,99 +307,93 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.SavedQuery.QueryContent parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.SavedQuery.QueryContent parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.SavedQuery.QueryContent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.SavedQuery.QueryContent 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.asset.v1.SavedQuery.QueryContent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.SavedQuery.QueryContent parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.SavedQuery.QueryContent parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.SavedQuery.QueryContent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.SavedQuery.QueryContent parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.SavedQuery.QueryContent parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.SavedQuery.QueryContent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.SavedQuery.QueryContent parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.SavedQuery.QueryContent parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.SavedQuery.QueryContent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.SavedQuery.QueryContent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -659,60 +403,54 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * The query content.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.SavedQuery.QueryContent} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.SavedQuery.QueryContent) com.google.cloud.asset.v1.SavedQuery.QueryContentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.SavedQuery.QueryContent.class, - com.google.cloud.asset.v1.SavedQuery.QueryContent.Builder.class); + com.google.cloud.asset.v1.SavedQuery.QueryContent.class, com.google.cloud.asset.v1.SavedQuery.QueryContent.Builder.class); } // Construct using com.google.cloud.asset.v1.SavedQuery.QueryContent.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @java.lang.Override public Builder clear() { super.clear(); + if (iamPolicyAnalysisQueryBuilder_ != null) { + iamPolicyAnalysisQueryBuilder_.clear(); + } queryContentCase_ = 0; queryContent_ = null; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_descriptor; } @java.lang.Override @@ -731,8 +469,7 @@ public com.google.cloud.asset.v1.SavedQuery.QueryContent build() { @java.lang.Override public com.google.cloud.asset.v1.SavedQuery.QueryContent buildPartial() { - com.google.cloud.asset.v1.SavedQuery.QueryContent result = - new com.google.cloud.asset.v1.SavedQuery.QueryContent(this); + com.google.cloud.asset.v1.SavedQuery.QueryContent result = new com.google.cloud.asset.v1.SavedQuery.QueryContent(this); if (queryContentCase_ == 1) { if (iamPolicyAnalysisQueryBuilder_ == null) { result.queryContent_ = queryContent_; @@ -749,41 +486,38 @@ public com.google.cloud.asset.v1.SavedQuery.QueryContent buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.SavedQuery.QueryContent) { - return mergeFrom((com.google.cloud.asset.v1.SavedQuery.QueryContent) other); + return mergeFrom((com.google.cloud.asset.v1.SavedQuery.QueryContent)other); } else { super.mergeFrom(other); return this; @@ -791,20 +525,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.SavedQuery.QueryContent other) { - if (other == com.google.cloud.asset.v1.SavedQuery.QueryContent.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.SavedQuery.QueryContent.getDefaultInstance()) return this; switch (other.getQueryContentCase()) { - case IAM_POLICY_ANALYSIS_QUERY: - { - mergeIamPolicyAnalysisQuery(other.getIamPolicyAnalysisQuery()); - break; - } - case QUERYCONTENT_NOT_SET: - { - break; - } + case IAM_POLICY_ANALYSIS_QUERY: { + mergeIamPolicyAnalysisQuery(other.getIamPolicyAnalysisQuery()); + break; + } + case QUERYCONTENT_NOT_SET: { + break; + } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -819,26 +550,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.SavedQuery.QueryContent parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getIamPolicyAnalysisQueryFieldBuilder().getBuilder(), + extensionRegistry); + queryContentCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.SavedQuery.QueryContent) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int queryContentCase_ = 0; private java.lang.Object queryContent_; - - public QueryContentCase getQueryContentCase() { - return QueryContentCase.forNumber(queryContentCase_); + public QueryContentCase + getQueryContentCase() { + return QueryContentCase.forNumber( + queryContentCase_); } public Builder clearQueryContent() { @@ -848,25 +598,17 @@ public Builder clearQueryContent() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> - iamPolicyAnalysisQueryBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> iamPolicyAnalysisQueryBuilder_; /** - * - * *
            * An IAM Policy Analysis query, which could be used in
    -       * the
    -       * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -       * rpc or the
    -       * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -       * rpc.
    +       * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +       * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; - * * @return Whether the iamPolicyAnalysisQuery field is set. */ @java.lang.Override @@ -874,19 +616,13 @@ public boolean hasIamPolicyAnalysisQuery() { return queryContentCase_ == 1; } /** - * - * *
            * An IAM Policy Analysis query, which could be used in
    -       * the
    -       * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -       * rpc or the
    -       * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -       * rpc.
    +       * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +       * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; - * * @return The iamPolicyAnalysisQuery. */ @java.lang.Override @@ -904,21 +640,15 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getIamPolicyAnalysisQuer } } /** - * - * *
            * An IAM Policy Analysis query, which could be used in
    -       * the
    -       * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -       * rpc or the
    -       * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -       * rpc.
    +       * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +       * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; */ - public Builder setIamPolicyAnalysisQuery( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery value) { + public Builder setIamPolicyAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery value) { if (iamPolicyAnalysisQueryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -932,15 +662,10 @@ public Builder setIamPolicyAnalysisQuery( return this; } /** - * - * *
            * An IAM Policy Analysis query, which could be used in
    -       * the
    -       * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -       * rpc or the
    -       * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -       * rpc.
    +       * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +       * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; @@ -957,30 +682,20 @@ public Builder setIamPolicyAnalysisQuery( return this; } /** - * - * *
            * An IAM Policy Analysis query, which could be used in
    -       * the
    -       * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -       * rpc or the
    -       * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -       * rpc.
    +       * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +       * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; */ - public Builder mergeIamPolicyAnalysisQuery( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery value) { + public Builder mergeIamPolicyAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery value) { if (iamPolicyAnalysisQueryBuilder_ == null) { - if (queryContentCase_ == 1 - && queryContent_ - != com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance()) { - queryContent_ = - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.newBuilder( - (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_) - .mergeFrom(value) - .buildPartial(); + if (queryContentCase_ == 1 && + queryContent_ != com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance()) { + queryContent_ = com.google.cloud.asset.v1.IamPolicyAnalysisQuery.newBuilder((com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_) + .mergeFrom(value).buildPartial(); } else { queryContent_ = value; } @@ -996,15 +711,10 @@ public Builder mergeIamPolicyAnalysisQuery( return this; } /** - * - * *
            * An IAM Policy Analysis query, which could be used in
    -       * the
    -       * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -       * rpc or the
    -       * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -       * rpc.
    +       * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +       * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; @@ -1026,40 +736,28 @@ public Builder clearIamPolicyAnalysisQuery() { return this; } /** - * - * *
            * An IAM Policy Analysis query, which could be used in
    -       * the
    -       * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -       * rpc or the
    -       * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -       * rpc.
    +       * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +       * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; */ - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder - getIamPolicyAnalysisQueryBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder getIamPolicyAnalysisQueryBuilder() { return getIamPolicyAnalysisQueryFieldBuilder().getBuilder(); } /** - * - * *
            * An IAM Policy Analysis query, which could be used in
    -       * the
    -       * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -       * rpc or the
    -       * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -       * rpc.
    +       * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +       * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder - getIamPolicyAnalysisQueryOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getIamPolicyAnalysisQueryOrBuilder() { if ((queryContentCase_ == 1) && (iamPolicyAnalysisQueryBuilder_ != null)) { return iamPolicyAnalysisQueryBuilder_.getMessageOrBuilder(); } else { @@ -1070,44 +768,32 @@ public Builder clearIamPolicyAnalysisQuery() { } } /** - * - * *
            * An IAM Policy Analysis query, which could be used in
    -       * the
    -       * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -       * rpc or the
    -       * [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -       * rpc.
    +       * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +       * the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisQuery, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> getIamPolicyAnalysisQueryFieldBuilder() { if (iamPolicyAnalysisQueryBuilder_ == null) { if (!(queryContentCase_ == 1)) { queryContent_ = com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance(); } - iamPolicyAnalysisQueryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery, - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, - com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder>( + iamPolicyAnalysisQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisQuery, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder>( (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_, getParentForChildren(), isClean()); queryContent_ = null; } queryContentCase_ = 1; - onChanged(); - ; + onChanged();; return iamPolicyAnalysisQueryBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1120,12 +806,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.SavedQuery.QueryContent) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.SavedQuery.QueryContent) private static final com.google.cloud.asset.v1.SavedQuery.QueryContent DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.SavedQuery.QueryContent(); } @@ -1134,16 +820,27 @@ public static com.google.cloud.asset.v1.SavedQuery.QueryContent getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryContent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryContent(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryContent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1158,13 +855,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.SavedQuery.QueryContent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
        * The resource name of the saved query. The format must be:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -1173,7 +869,6 @@ public com.google.cloud.asset.v1.SavedQuery.QueryContent getDefaultInstanceForTy
        * 
    * * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1182,15 +877,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
        * The resource name of the saved query. The format must be:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -1199,15 +893,16 @@ public java.lang.String getName() {
        * 
    * * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1218,15 +913,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
        * The description of this saved query. This value should be fewer than 255
        * characters.
        * 
    * * string description = 2; - * * @return The description. */ @java.lang.Override @@ -1235,30 +927,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
        * The description of this saved query. This value should be fewer than 255
        * characters.
        * 
    * * string description = 2; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1269,15 +961,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
        * Output only. The create time of this saved query.
        * 
    * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -1285,15 +973,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
        * Output only. The create time of this saved query.
        * 
    * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -1301,14 +985,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
        * Output only. The create time of this saved query.
        * 
    * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1318,14 +999,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int CREATOR_FIELD_NUMBER = 4; private volatile java.lang.Object creator_; /** - * - * *
        * Output only. The account's email address who has created this saved query.
        * 
    * * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The creator. */ @java.lang.Override @@ -1334,29 +1012,29 @@ public java.lang.String getCreator() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); creator_ = s; return s; } } /** - * - * *
        * Output only. The account's email address who has created this saved query.
        * 
    * * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for creator. */ @java.lang.Override - public com.google.protobuf.ByteString getCreatorBytes() { + public com.google.protobuf.ByteString + getCreatorBytes() { java.lang.Object ref = creator_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); creator_ = b; return b; } else { @@ -1367,16 +1045,11 @@ public com.google.protobuf.ByteString getCreatorBytes() { public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp lastUpdateTime_; /** - * - * *
        * Output only. The last update time of this saved query.
        * 
    * - * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the lastUpdateTime field is set. */ @java.lang.Override @@ -1384,34 +1057,23 @@ public boolean hasLastUpdateTime() { return lastUpdateTime_ != null; } /** - * - * *
        * Output only. The last update time of this saved query.
        * 
    * - * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lastUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastUpdateTime() { - return lastUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastUpdateTime_; + return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } /** - * - * *
        * Output only. The last update time of this saved query.
        * 
    * - * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { @@ -1421,15 +1083,11 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { public static final int LAST_UPDATER_FIELD_NUMBER = 6; private volatile java.lang.Object lastUpdater_; /** - * - * *
    -   * Output only. The account's email address who has updated this saved query
    -   * most recently.
    +   * Output only. The account's email address who has updated this saved query most recently.
        * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The lastUpdater. */ @java.lang.Override @@ -1438,30 +1096,29 @@ public java.lang.String getLastUpdater() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastUpdater_ = s; return s; } } /** - * - * *
    -   * Output only. The account's email address who has updated this saved query
    -   * most recently.
    +   * Output only. The account's email address who has updated this saved query most recently.
        * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for lastUpdater. */ @java.lang.Override - public com.google.protobuf.ByteString getLastUpdaterBytes() { + public com.google.protobuf.ByteString + getLastUpdaterBytes() { java.lang.Object ref = lastUpdater_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lastUpdater_ = b; return b; } else { @@ -1470,23 +1127,24 @@ public com.google.protobuf.ByteString getLastUpdaterBytes() { } public static final int LABELS_FIELD_NUMBER = 7; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SavedQuery_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SavedQuery_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -1495,8 +1153,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
        * Labels applied on the resource.
        * This value should not contain more than 10 entries. The key and value of
    @@ -1505,22 +1161,22 @@ public int getLabelsCount() {
        *
        * map<string, string> labels = 7;
        */
    +
       @java.lang.Override
    -  public boolean containsLabels(java.lang.String key) {
    -    if (key == null) {
    -      throw new NullPointerException("map key");
    -    }
    +  public boolean containsLabels(
    +      java.lang.String key) {
    +    if (key == null) { throw new NullPointerException("map key"); }
         return internalGetLabels().getMap().containsKey(key);
       }
    -  /** Use {@link #getLabelsMap()} instead. */
    +  /**
    +   * Use {@link #getLabelsMap()} instead.
    +   */
       @java.lang.Override
       @java.lang.Deprecated
       public java.util.Map getLabels() {
         return getLabelsMap();
       }
       /**
    -   *
    -   *
        * 
        * Labels applied on the resource.
        * This value should not contain more than 10 entries. The key and value of
    @@ -1530,12 +1186,11 @@ public java.util.Map getLabels() {
        * map<string, string> labels = 7;
        */
       @java.lang.Override
    +
       public java.util.Map getLabelsMap() {
         return internalGetLabels().getMap();
       }
       /**
    -   *
    -   *
        * 
        * Labels applied on the resource.
        * This value should not contain more than 10 entries. The key and value of
    @@ -1545,16 +1200,16 @@ public java.util.Map getLabelsMap() {
        * map<string, string> labels = 7;
        */
       @java.lang.Override
    -  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
    -    if (key == null) {
    -      throw new NullPointerException("map key");
    -    }
    -    java.util.Map map = internalGetLabels().getMap();
    +
    +  public java.lang.String getLabelsOrDefault(
    +      java.lang.String key,
    +      java.lang.String defaultValue) {
    +    if (key == null) { throw new NullPointerException("map key"); }
    +    java.util.Map map =
    +        internalGetLabels().getMap();
         return map.containsKey(key) ? map.get(key) : defaultValue;
       }
       /**
    -   *
    -   *
        * 
        * Labels applied on the resource.
        * This value should not contain more than 10 entries. The key and value of
    @@ -1564,11 +1219,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
        * map<string, string> labels = 7;
        */
       @java.lang.Override
    -  public java.lang.String getLabelsOrThrow(java.lang.String key) {
    -    if (key == null) {
    -      throw new NullPointerException("map key");
    -    }
    -    java.util.Map map = internalGetLabels().getMap();
    +
    +  public java.lang.String getLabelsOrThrow(
    +      java.lang.String key) {
    +    if (key == null) { throw new NullPointerException("map key"); }
    +    java.util.Map map =
    +        internalGetLabels().getMap();
         if (!map.containsKey(key)) {
           throw new java.lang.IllegalArgumentException();
         }
    @@ -1578,14 +1234,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
       public static final int CONTENT_FIELD_NUMBER = 8;
       private com.google.cloud.asset.v1.SavedQuery.QueryContent content_;
       /**
    -   *
    -   *
        * 
        * The query content.
        * 
    * * .google.cloud.asset.v1.SavedQuery.QueryContent content = 8; - * * @return Whether the content field is set. */ @java.lang.Override @@ -1593,25 +1246,18 @@ public boolean hasContent() { return content_ != null; } /** - * - * *
        * The query content.
        * 
    * * .google.cloud.asset.v1.SavedQuery.QueryContent content = 8; - * * @return The content. */ @java.lang.Override public com.google.cloud.asset.v1.SavedQuery.QueryContent getContent() { - return content_ == null - ? com.google.cloud.asset.v1.SavedQuery.QueryContent.getDefaultInstance() - : content_; + return content_ == null ? com.google.cloud.asset.v1.SavedQuery.QueryContent.getDefaultInstance() : content_; } /** - * - * *
        * The query content.
        * 
    @@ -1624,7 +1270,6 @@ public com.google.cloud.asset.v1.SavedQuery.QueryContentOrBuilder getContentOrBu } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1636,7 +1281,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1655,12 +1301,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastUpdater_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, lastUpdater_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 7); if (content_ != null) { output.writeMessage(8, getContent()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1676,31 +1326,34 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, creator_); } if (lastUpdateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getLastUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getLastUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastUpdater_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, lastUpdater_); } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__); + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, labels__); } if (content_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getContent()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getContent()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1708,31 +1361,39 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.SavedQuery)) { return super.equals(obj); } com.google.cloud.asset.v1.SavedQuery other = (com.google.cloud.asset.v1.SavedQuery) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } - if (!getCreator().equals(other.getCreator())) return false; + if (!getCreator() + .equals(other.getCreator())) return false; if (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; if (hasLastUpdateTime()) { - if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; + if (!getLastUpdateTime() + .equals(other.getLastUpdateTime())) return false; } - if (!getLastUpdater().equals(other.getLastUpdater())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getLastUpdater() + .equals(other.getLastUpdater())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (hasContent() != other.hasContent()) return false; if (hasContent()) { - if (!getContent().equals(other.getContent())) return false; + if (!getContent() + .equals(other.getContent())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1767,167 +1428,157 @@ public int hashCode() { hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContent().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.SavedQuery parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.SavedQuery parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.SavedQuery parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.SavedQuery parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.asset.v1.SavedQuery parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.SavedQuery 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.asset.v1.SavedQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.SavedQuery parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.SavedQuery parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.SavedQuery parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.SavedQuery parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.SavedQuery parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.SavedQuery parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.SavedQuery parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.SavedQuery prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * A saved query which can be shared with others or used later.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.SavedQuery} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.SavedQuery) com.google.cloud.asset.v1.SavedQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SavedQuery_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SavedQuery_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 7: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 7: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SavedQuery_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SavedQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.SavedQuery.class, - com.google.cloud.asset.v1.SavedQuery.Builder.class); + com.google.cloud.asset.v1.SavedQuery.class, com.google.cloud.asset.v1.SavedQuery.Builder.class); } // Construct using com.google.cloud.asset.v1.SavedQuery.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -1962,9 +1613,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SavedQuery_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SavedQuery_descriptor; } @java.lang.Override @@ -2014,39 +1665,38 @@ public com.google.cloud.asset.v1.SavedQuery buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.SavedQuery) { - return mergeFrom((com.google.cloud.asset.v1.SavedQuery) other); + return mergeFrom((com.google.cloud.asset.v1.SavedQuery)other); } else { super.mergeFrom(other); return this; @@ -2077,11 +1727,12 @@ public Builder mergeFrom(com.google.cloud.asset.v1.SavedQuery other) { lastUpdater_ = other.lastUpdater_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.hasContent()) { mergeContent(other.getContent()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2096,26 +1747,85 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.SavedQuery parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + creator_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + input.readMessage( + getLastUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + case 50: { + lastUpdater_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 58 + case 66: { + input.readMessage( + getContentFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.SavedQuery) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
          * The resource name of the saved query. The format must be:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -2124,13 +1834,13 @@ public Builder mergeFrom(
          * 
    * * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2139,8 +1849,6 @@ public java.lang.String getName() { } } /** - * - * *
          * The resource name of the saved query. The format must be:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -2149,14 +1857,15 @@ public java.lang.String getName() {
          * 
    * * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2164,8 +1873,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
          * The resource name of the saved query. The format must be:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -2174,22 +1881,20 @@ public com.google.protobuf.ByteString getNameBytes() {
          * 
    * * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
          * The resource name of the saved query. The format must be:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -2198,18 +1903,15 @@ public Builder setName(java.lang.String value) {
          * 
    * * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
          * The resource name of the saved query. The format must be:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -2218,16 +1920,16 @@ public Builder clearName() {
          * 
    * * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2235,21 +1937,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
          * The description of this saved query. This value should be fewer than 255
          * characters.
          * 
    * * string description = 2; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2258,22 +1958,21 @@ public java.lang.String getDescription() { } } /** - * - * *
          * The description of this saved query. This value should be fewer than 255
          * characters.
          * 
    * * string description = 2; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2281,64 +1980,57 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
          * The description of this saved query. This value should be fewer than 255
          * characters.
          * 
    * * string description = 2; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
          * The description of this saved query. This value should be fewer than 255
          * characters.
          * 
    * * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
          * The description of this saved query. This value should be fewer than 255
          * characters.
          * 
    * * string description = 2; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2346,58 +2038,39 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
          * Output only. The create time of this saved query.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
          * Output only. The create time of this saved query.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
          * Output only. The create time of this saved query.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2413,17 +2086,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
          * Output only. The create time of this saved query.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2434,21 +2104,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
          * Output only. The create time of this saved query.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2460,15 +2126,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
          * Output only. The create time of this saved query.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2482,64 +2144,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
          * Output only. The create time of this saved query.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
          * Output only. The create time of this saved query.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
          * Output only. The create time of this saved query.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2547,20 +2193,18 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private java.lang.Object creator_ = ""; /** - * - * *
          * Output only. The account's email address who has created this saved query.
          * 
    * * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The creator. */ public java.lang.String getCreator() { java.lang.Object ref = creator_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); creator_ = s; return s; @@ -2569,21 +2213,20 @@ public java.lang.String getCreator() { } } /** - * - * *
          * Output only. The account's email address who has created this saved query.
          * 
    * * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for creator. */ - public com.google.protobuf.ByteString getCreatorBytes() { + public com.google.protobuf.ByteString + getCreatorBytes() { java.lang.Object ref = creator_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); creator_ = b; return b; } else { @@ -2591,61 +2234,54 @@ public com.google.protobuf.ByteString getCreatorBytes() { } } /** - * - * *
          * Output only. The account's email address who has created this saved query.
          * 
    * * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The creator to set. * @return This builder for chaining. */ - public Builder setCreator(java.lang.String value) { + public Builder setCreator( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + creator_ = value; onChanged(); return this; } /** - * - * *
          * Output only. The account's email address who has created this saved query.
          * 
    * * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCreator() { - + creator_ = getDefaultInstance().getCreator(); onChanged(); return this; } /** - * - * *
          * Output only. The account's email address who has created this saved query.
          * 
    * * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for creator to set. * @return This builder for chaining. */ - public Builder setCreatorBytes(com.google.protobuf.ByteString value) { + public Builder setCreatorBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + creator_ = value; onChanged(); return this; @@ -2653,58 +2289,39 @@ public Builder setCreatorBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp lastUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lastUpdateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdateTimeBuilder_; /** - * - * *
          * Output only. The last update time of this saved query.
          * 
    * - * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { return lastUpdateTimeBuilder_ != null || lastUpdateTime_ != null; } /** - * - * *
          * Output only. The last update time of this saved query.
          * 
    * - * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lastUpdateTime. */ public com.google.protobuf.Timestamp getLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { - return lastUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastUpdateTime_; + return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } else { return lastUpdateTimeBuilder_.getMessage(); } } /** - * - * *
          * Output only. The last update time of this saved query.
          * 
    * - * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { @@ -2720,17 +2337,14 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
          * Output only. The last update time of this saved query.
          * 
    * - * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); onChanged(); @@ -2741,23 +2355,17 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
          * Output only. The last update time of this saved query.
          * 
    * - * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { if (lastUpdateTime_ != null) { lastUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_).mergeFrom(value).buildPartial(); } else { lastUpdateTime_ = value; } @@ -2769,15 +2377,11 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
          * Output only. The last update time of this saved query.
          * 
    * - * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { @@ -2791,64 +2395,48 @@ public Builder clearLastUpdateTime() { return this; } /** - * - * *
          * Output only. The last update time of this saved query.
          * 
    * - * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { - + onChanged(); return getLastUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
          * Output only. The last update time of this saved query.
          * 
    * - * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { if (lastUpdateTimeBuilder_ != null) { return lastUpdateTimeBuilder_.getMessageOrBuilder(); } else { - return lastUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastUpdateTime_; + return lastUpdateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } } /** - * - * *
          * Output only. The last update time of this saved query.
          * 
    * - * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastUpdateTimeFieldBuilder() { if (lastUpdateTimeBuilder_ == null) { - lastUpdateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getLastUpdateTime(), getParentForChildren(), isClean()); + lastUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLastUpdateTime(), + getParentForChildren(), + isClean()); lastUpdateTime_ = null; } return lastUpdateTimeBuilder_; @@ -2856,21 +2444,18 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { private java.lang.Object lastUpdater_ = ""; /** - * - * *
    -     * Output only. The account's email address who has updated this saved query
    -     * most recently.
    +     * Output only. The account's email address who has updated this saved query most recently.
          * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The lastUpdater. */ public java.lang.String getLastUpdater() { java.lang.Object ref = lastUpdater_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastUpdater_ = s; return s; @@ -2879,22 +2464,20 @@ public java.lang.String getLastUpdater() { } } /** - * - * *
    -     * Output only. The account's email address who has updated this saved query
    -     * most recently.
    +     * Output only. The account's email address who has updated this saved query most recently.
          * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for lastUpdater. */ - public com.google.protobuf.ByteString getLastUpdaterBytes() { + public com.google.protobuf.ByteString + getLastUpdaterBytes() { java.lang.Object ref = lastUpdater_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lastUpdater_ = b; return b; } else { @@ -2902,84 +2485,75 @@ public com.google.protobuf.ByteString getLastUpdaterBytes() { } } /** - * - * *
    -     * Output only. The account's email address who has updated this saved query
    -     * most recently.
    +     * Output only. The account's email address who has updated this saved query most recently.
          * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The lastUpdater to set. * @return This builder for chaining. */ - public Builder setLastUpdater(java.lang.String value) { + public Builder setLastUpdater( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + lastUpdater_ = value; onChanged(); return this; } /** - * - * *
    -     * Output only. The account's email address who has updated this saved query
    -     * most recently.
    +     * Output only. The account's email address who has updated this saved query most recently.
          * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearLastUpdater() { - + lastUpdater_ = getDefaultInstance().getLastUpdater(); onChanged(); return this; } /** - * - * *
    -     * Output only. The account's email address who has updated this saved query
    -     * most recently.
    +     * Output only. The account's email address who has updated this saved query most recently.
          * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for lastUpdater to set. * @return This builder for chaining. */ - public Builder setLastUpdaterBytes(com.google.protobuf.ByteString value) { + public Builder setLastUpdaterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lastUpdater_ = value; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2991,8 +2565,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
          * Labels applied on the resource.
          * This value should not contain more than 10 entries. The key and value of
    @@ -3001,22 +2573,22 @@ public int getLabelsCount() {
          *
          * map<string, string> labels = 7;
          */
    +
         @java.lang.Override
    -    public boolean containsLabels(java.lang.String key) {
    -      if (key == null) {
    -        throw new NullPointerException("map key");
    -      }
    +    public boolean containsLabels(
    +        java.lang.String key) {
    +      if (key == null) { throw new NullPointerException("map key"); }
           return internalGetLabels().getMap().containsKey(key);
         }
    -    /** Use {@link #getLabelsMap()} instead. */
    +    /**
    +     * Use {@link #getLabelsMap()} instead.
    +     */
         @java.lang.Override
         @java.lang.Deprecated
         public java.util.Map getLabels() {
           return getLabelsMap();
         }
         /**
    -     *
    -     *
          * 
          * Labels applied on the resource.
          * This value should not contain more than 10 entries. The key and value of
    @@ -3026,12 +2598,11 @@ public java.util.Map getLabels() {
          * map<string, string> labels = 7;
          */
         @java.lang.Override
    +
         public java.util.Map getLabelsMap() {
           return internalGetLabels().getMap();
         }
         /**
    -     *
    -     *
          * 
          * Labels applied on the resource.
          * This value should not contain more than 10 entries. The key and value of
    @@ -3041,17 +2612,16 @@ public java.util.Map getLabelsMap() {
          * map<string, string> labels = 7;
          */
         @java.lang.Override
    +
         public java.lang.String getLabelsOrDefault(
    -        java.lang.String key, java.lang.String defaultValue) {
    -      if (key == null) {
    -        throw new NullPointerException("map key");
    -      }
    -      java.util.Map map = internalGetLabels().getMap();
    +        java.lang.String key,
    +        java.lang.String defaultValue) {
    +      if (key == null) { throw new NullPointerException("map key"); }
    +      java.util.Map map =
    +          internalGetLabels().getMap();
           return map.containsKey(key) ? map.get(key) : defaultValue;
         }
         /**
    -     *
    -     *
          * 
          * Labels applied on the resource.
          * This value should not contain more than 10 entries. The key and value of
    @@ -3061,11 +2631,12 @@ public java.lang.String getLabelsOrDefault(
          * map<string, string> labels = 7;
          */
         @java.lang.Override
    -    public java.lang.String getLabelsOrThrow(java.lang.String key) {
    -      if (key == null) {
    -        throw new NullPointerException("map key");
    -      }
    -      java.util.Map map = internalGetLabels().getMap();
    +
    +    public java.lang.String getLabelsOrThrow(
    +        java.lang.String key) {
    +      if (key == null) { throw new NullPointerException("map key"); }
    +      java.util.Map map =
    +          internalGetLabels().getMap();
           if (!map.containsKey(key)) {
             throw new java.lang.IllegalArgumentException();
           }
    @@ -3073,12 +2644,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
         }
     
         public Builder clearLabels() {
    -      internalGetMutableLabels().getMutableMap().clear();
    +      internalGetMutableLabels().getMutableMap()
    +          .clear();
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Labels applied on the resource.
          * This value should not contain more than 10 entries. The key and value of
    @@ -3087,21 +2657,23 @@ public Builder clearLabels() {
          *
          * map<string, string> labels = 7;
          */
    -    public Builder removeLabels(java.lang.String key) {
    -      if (key == null) {
    -        throw new NullPointerException("map key");
    -      }
    -      internalGetMutableLabels().getMutableMap().remove(key);
    +
    +    public Builder removeLabels(
    +        java.lang.String key) {
    +      if (key == null) { throw new NullPointerException("map key"); }
    +      internalGetMutableLabels().getMutableMap()
    +          .remove(key);
           return this;
         }
    -    /** Use alternate mutation accessors instead. */
    +    /**
    +     * Use alternate mutation accessors instead.
    +     */
         @java.lang.Deprecated
    -    public java.util.Map getMutableLabels() {
    +    public java.util.Map
    +    getMutableLabels() {
           return internalGetMutableLabels().getMutableMap();
         }
         /**
    -     *
    -     *
          * 
          * Labels applied on the resource.
          * This value should not contain more than 10 entries. The key and value of
    @@ -3110,20 +2682,19 @@ public java.util.Map getMutableLabels() {
          *
          * map<string, string> labels = 7;
          */
    -    public Builder putLabels(java.lang.String key, java.lang.String value) {
    -      if (key == null) {
    -        throw new NullPointerException("map key");
    -      }
    +    public Builder putLabels(
    +        java.lang.String key,
    +        java.lang.String value) {
    +      if (key == null) { throw new NullPointerException("map key"); }
           if (value == null) {
    -        throw new NullPointerException("map value");
    -      }
    +  throw new NullPointerException("map value");
    +}
     
    -      internalGetMutableLabels().getMutableMap().put(key, value);
    +      internalGetMutableLabels().getMutableMap()
    +          .put(key, value);
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Labels applied on the resource.
          * This value should not contain more than 10 entries. The key and value of
    @@ -3132,54 +2703,44 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
          *
          * map<string, string> labels = 7;
          */
    -    public Builder putAllLabels(java.util.Map values) {
    -      internalGetMutableLabels().getMutableMap().putAll(values);
    +
    +    public Builder putAllLabels(
    +        java.util.Map values) {
    +      internalGetMutableLabels().getMutableMap()
    +          .putAll(values);
           return this;
         }
     
         private com.google.cloud.asset.v1.SavedQuery.QueryContent content_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.SavedQuery.QueryContent,
    -            com.google.cloud.asset.v1.SavedQuery.QueryContent.Builder,
    -            com.google.cloud.asset.v1.SavedQuery.QueryContentOrBuilder>
    -        contentBuilder_;
    +        com.google.cloud.asset.v1.SavedQuery.QueryContent, com.google.cloud.asset.v1.SavedQuery.QueryContent.Builder, com.google.cloud.asset.v1.SavedQuery.QueryContentOrBuilder> contentBuilder_;
         /**
    -     *
    -     *
          * 
          * The query content.
          * 
    * * .google.cloud.asset.v1.SavedQuery.QueryContent content = 8; - * * @return Whether the content field is set. */ public boolean hasContent() { return contentBuilder_ != null || content_ != null; } /** - * - * *
          * The query content.
          * 
    * * .google.cloud.asset.v1.SavedQuery.QueryContent content = 8; - * * @return The content. */ public com.google.cloud.asset.v1.SavedQuery.QueryContent getContent() { if (contentBuilder_ == null) { - return content_ == null - ? com.google.cloud.asset.v1.SavedQuery.QueryContent.getDefaultInstance() - : content_; + return content_ == null ? com.google.cloud.asset.v1.SavedQuery.QueryContent.getDefaultInstance() : content_; } else { return contentBuilder_.getMessage(); } } /** - * - * *
          * The query content.
          * 
    @@ -3200,8 +2761,6 @@ public Builder setContent(com.google.cloud.asset.v1.SavedQuery.QueryContent valu return this; } /** - * - * *
          * The query content.
          * 
    @@ -3220,8 +2779,6 @@ public Builder setContent( return this; } /** - * - * *
          * The query content.
          * 
    @@ -3232,9 +2789,7 @@ public Builder mergeContent(com.google.cloud.asset.v1.SavedQuery.QueryContent va if (contentBuilder_ == null) { if (content_ != null) { content_ = - com.google.cloud.asset.v1.SavedQuery.QueryContent.newBuilder(content_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.SavedQuery.QueryContent.newBuilder(content_).mergeFrom(value).buildPartial(); } else { content_ = value; } @@ -3246,8 +2801,6 @@ public Builder mergeContent(com.google.cloud.asset.v1.SavedQuery.QueryContent va return this; } /** - * - * *
          * The query content.
          * 
    @@ -3266,8 +2819,6 @@ public Builder clearContent() { return this; } /** - * - * *
          * The query content.
          * 
    @@ -3275,13 +2826,11 @@ public Builder clearContent() { * .google.cloud.asset.v1.SavedQuery.QueryContent content = 8; */ public com.google.cloud.asset.v1.SavedQuery.QueryContent.Builder getContentBuilder() { - + onChanged(); return getContentFieldBuilder().getBuilder(); } /** - * - * *
          * The query content.
          * 
    @@ -3292,14 +2841,11 @@ public com.google.cloud.asset.v1.SavedQuery.QueryContentOrBuilder getContentOrBu if (contentBuilder_ != null) { return contentBuilder_.getMessageOrBuilder(); } else { - return content_ == null - ? com.google.cloud.asset.v1.SavedQuery.QueryContent.getDefaultInstance() - : content_; + return content_ == null ? + com.google.cloud.asset.v1.SavedQuery.QueryContent.getDefaultInstance() : content_; } } /** - * - * *
          * The query content.
          * 
    @@ -3307,24 +2853,21 @@ public com.google.cloud.asset.v1.SavedQuery.QueryContentOrBuilder getContentOrBu * .google.cloud.asset.v1.SavedQuery.QueryContent content = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.SavedQuery.QueryContent, - com.google.cloud.asset.v1.SavedQuery.QueryContent.Builder, - com.google.cloud.asset.v1.SavedQuery.QueryContentOrBuilder> + com.google.cloud.asset.v1.SavedQuery.QueryContent, com.google.cloud.asset.v1.SavedQuery.QueryContent.Builder, com.google.cloud.asset.v1.SavedQuery.QueryContentOrBuilder> getContentFieldBuilder() { if (contentBuilder_ == null) { - contentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.SavedQuery.QueryContent, - com.google.cloud.asset.v1.SavedQuery.QueryContent.Builder, - com.google.cloud.asset.v1.SavedQuery.QueryContentOrBuilder>( - getContent(), getParentForChildren(), isClean()); + contentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.SavedQuery.QueryContent, com.google.cloud.asset.v1.SavedQuery.QueryContent.Builder, com.google.cloud.asset.v1.SavedQuery.QueryContentOrBuilder>( + getContent(), + getParentForChildren(), + isClean()); content_ = null; } return contentBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3334,12 +2877,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.SavedQuery) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.SavedQuery) private static final com.google.cloud.asset.v1.SavedQuery DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.SavedQuery(); } @@ -3348,16 +2891,27 @@ public static com.google.cloud.asset.v1.SavedQuery getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SavedQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SavedQuery(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SavedQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3372,4 +2926,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.SavedQuery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryName.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryName.java similarity index 100% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryName.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryName.java diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryOrBuilder.java similarity index 73% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryOrBuilder.java index 190e281c4619..97c8fd013f74 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface SavedQueryOrBuilder - extends +public interface SavedQueryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.SavedQuery) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The resource name of the saved query. The format must be:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -34,13 +16,10 @@ public interface SavedQueryOrBuilder
        * 
    * * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
        * The resource name of the saved query. The format must be:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -49,172 +28,128 @@ public interface SavedQueryOrBuilder
        * 
    * * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
        * The description of this saved query. This value should be fewer than 255
        * characters.
        * 
    * * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
        * The description of this saved query. This value should be fewer than 255
        * characters.
        * 
    * * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
        * Output only. The create time of this saved query.
        * 
    * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
        * Output only. The create time of this saved query.
        * 
    * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
        * Output only. The create time of this saved query.
        * 
    * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
        * Output only. The account's email address who has created this saved query.
        * 
    * * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The creator. */ java.lang.String getCreator(); /** - * - * *
        * Output only. The account's email address who has created this saved query.
        * 
    * * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for creator. */ - com.google.protobuf.ByteString getCreatorBytes(); + com.google.protobuf.ByteString + getCreatorBytes(); /** - * - * *
        * Output only. The last update time of this saved query.
        * 
    * - * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the lastUpdateTime field is set. */ boolean hasLastUpdateTime(); /** - * - * *
        * Output only. The last update time of this saved query.
        * 
    * - * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lastUpdateTime. */ com.google.protobuf.Timestamp getLastUpdateTime(); /** - * - * *
        * Output only. The last update time of this saved query.
        * 
    * - * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); /** - * - * *
    -   * Output only. The account's email address who has updated this saved query
    -   * most recently.
    +   * Output only. The account's email address who has updated this saved query most recently.
        * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The lastUpdater. */ java.lang.String getLastUpdater(); /** - * - * *
    -   * Output only. The account's email address who has updated this saved query
    -   * most recently.
    +   * Output only. The account's email address who has updated this saved query most recently.
        * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for lastUpdater. */ - com.google.protobuf.ByteString getLastUpdaterBytes(); + com.google.protobuf.ByteString + getLastUpdaterBytes(); /** - * - * *
        * Labels applied on the resource.
        * This value should not contain more than 10 entries. The key and value of
    @@ -225,8 +160,6 @@ public interface SavedQueryOrBuilder
        */
       int getLabelsCount();
       /**
    -   *
    -   *
        * 
        * Labels applied on the resource.
        * This value should not contain more than 10 entries. The key and value of
    @@ -235,13 +168,15 @@ public interface SavedQueryOrBuilder
        *
        * map<string, string> labels = 7;
        */
    -  boolean containsLabels(java.lang.String key);
    -  /** Use {@link #getLabelsMap()} instead. */
    +  boolean containsLabels(
    +      java.lang.String key);
    +  /**
    +   * Use {@link #getLabelsMap()} instead.
    +   */
       @java.lang.Deprecated
    -  java.util.Map getLabels();
    +  java.util.Map
    +  getLabels();
       /**
    -   *
    -   *
        * 
        * Labels applied on the resource.
        * This value should not contain more than 10 entries. The key and value of
    @@ -250,10 +185,9 @@ public interface SavedQueryOrBuilder
        *
        * map<string, string> labels = 7;
        */
    -  java.util.Map getLabelsMap();
    +  java.util.Map
    +  getLabelsMap();
       /**
    -   *
    -   *
        * 
        * Labels applied on the resource.
        * This value should not contain more than 10 entries. The key and value of
    @@ -264,13 +198,11 @@ public interface SavedQueryOrBuilder
        */
     
       /* nullable */
    -  java.lang.String getLabelsOrDefault(
    +java.lang.String getLabelsOrDefault(
           java.lang.String key,
           /* nullable */
    -      java.lang.String defaultValue);
    +java.lang.String defaultValue);
       /**
    -   *
    -   *
        * 
        * Labels applied on the resource.
        * This value should not contain more than 10 entries. The key and value of
    @@ -279,35 +211,29 @@ java.lang.String getLabelsOrDefault(
        *
        * map<string, string> labels = 7;
        */
    -  java.lang.String getLabelsOrThrow(java.lang.String key);
    +
    +  java.lang.String getLabelsOrThrow(
    +      java.lang.String key);
     
       /**
    -   *
    -   *
        * 
        * The query content.
        * 
    * * .google.cloud.asset.v1.SavedQuery.QueryContent content = 8; - * * @return Whether the content field is set. */ boolean hasContent(); /** - * - * *
        * The query content.
        * 
    * * .google.cloud.asset.v1.SavedQuery.QueryContent content = 8; - * * @return The content. */ com.google.cloud.asset.v1.SavedQuery.QueryContent getContent(); /** - * - * *
        * The query content.
        * 
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequest.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequest.java similarity index 76% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequest.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequest.java index bc161aa4512c..91dfb794319b 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequest.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * Search all IAM policies request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.SearchAllIamPoliciesRequest} */ -public final class SearchAllIamPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SearchAllIamPoliciesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.SearchAllIamPoliciesRequest) SearchAllIamPoliciesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SearchAllIamPoliciesRequest.newBuilder() to construct. private SearchAllIamPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SearchAllIamPoliciesRequest() { scope_ = ""; query_ = ""; @@ -47,125 +29,36 @@ private SearchAllIamPoliciesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SearchAllIamPoliciesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private SearchAllIamPoliciesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - scope_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - query_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - assetTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - assetTypes_.add(s); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - assetTypes_ = assetTypes_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.class, - com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.Builder.class); + com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.class, com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.Builder.class); } public static final int SCOPE_FIELD_NUMBER = 1; private volatile java.lang.Object scope_; /** - * - * *
    -   * Required. A scope can be a project, a folder, or an organization. The
    -   * search is limited to the IAM policies within the `scope`. The caller must
    -   * be granted the
    +   * Required. A scope can be a project, a folder, or an organization. The search is
    +   * limited to the IAM policies within the `scope`. The caller must be granted
    +   * the
        * [`cloudasset.assets.searchAllIamPolicies`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
        * permission on the desired scope.
        * The allowed values are:
    @@ -176,7 +69,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The scope. */ @java.lang.Override @@ -185,19 +77,18 @@ public java.lang.String getScope() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; } } /** - * - * *
    -   * Required. A scope can be a project, a folder, or an organization. The
    -   * search is limited to the IAM policies within the `scope`. The caller must
    -   * be granted the
    +   * Required. A scope can be a project, a folder, or an organization. The search is
    +   * limited to the IAM policies within the `scope`. The caller must be granted
    +   * the
        * [`cloudasset.assets.searchAllIamPolicies`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
        * permission on the desired scope.
        * The allowed values are:
    @@ -208,15 +99,16 @@ public java.lang.String getScope() {
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for scope. */ @java.lang.Override - public com.google.protobuf.ByteString getScopeBytes() { + public com.google.protobuf.ByteString + getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); scope_ = b; return b; } else { @@ -227,8 +119,6 @@ public com.google.protobuf.ByteString getScopeBytes() { public static final int QUERY_FIELD_NUMBER = 2; private volatile java.lang.Object query_; /** - * - * *
        * Optional. The query statement. See [how to construct a
        * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
    @@ -273,7 +163,6 @@ public com.google.protobuf.ByteString getScopeBytes() {
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The query. */ @java.lang.Override @@ -282,15 +171,14 @@ public java.lang.String getQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } } /** - * - * *
        * Optional. The query statement. See [how to construct a
        * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
    @@ -335,15 +223,16 @@ public java.lang.String getQuery() {
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for query. */ @java.lang.Override - public com.google.protobuf.ByteString getQueryBytes() { + public com.google.protobuf.ByteString + getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); query_ = b; return b; } else { @@ -354,18 +243,14 @@ public com.google.protobuf.ByteString getQueryBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    -   * Optional. The page size for search result pagination. Page size is capped
    -   * at 500 even if a larger value is given. If set to zero, server will pick an
    -   * appropriate default. Returned results may be fewer than requested. When
    -   * this happens, there could be more results as long as `next_page_token` is
    -   * returned.
    +   * Optional. The page size for search result pagination. Page size is capped at 500 even
    +   * if a larger value is given. If set to zero, server will pick an appropriate
    +   * default. Returned results may be fewer than requested. When this happens,
    +   * there could be more results as long as `next_page_token` is returned.
        * 
    * * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -376,17 +261,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** - * - * *
    -   * Optional. If present, retrieve the next batch of results from the preceding
    -   * call to this method. `page_token` must be the value of `next_page_token`
    -   * from the previous response. The values of all other method parameters must
    -   * be identical to those in the previous call.
    +   * Optional. If present, retrieve the next batch of results from the preceding call to
    +   * this method. `page_token` must be the value of `next_page_token` from the
    +   * previous response. The values of all other method parameters must be
    +   * identical to those in the previous call.
        * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -395,32 +277,32 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    -   * Optional. If present, retrieve the next batch of results from the preceding
    -   * call to this method. `page_token` must be the value of `next_page_token`
    -   * from the previous response. The values of all other method parameters must
    -   * be identical to those in the previous call.
    +   * Optional. If present, retrieve the next batch of results from the preceding call to
    +   * this method. `page_token` must be the value of `next_page_token` from the
    +   * previous response. The values of all other method parameters must be
    +   * identical to those in the previous call.
        * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -431,12 +313,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int ASSET_TYPES_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList assetTypes_; /** - * - * *
    -   * Optional. A list of asset types that the IAM policies are attached to. If
    -   * empty, it will search the IAM policies that are attached to all the
    -   * [searchable asset
    +   * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +   * will search the IAM policies that are attached to all the [searchable asset
        * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -451,19 +330,16 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
        * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList getAssetTypesList() { + public com.google.protobuf.ProtocolStringList + getAssetTypesList() { return assetTypes_; } /** - * - * *
    -   * Optional. A list of asset types that the IAM policies are attached to. If
    -   * empty, it will search the IAM policies that are attached to all the
    -   * [searchable asset
    +   * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +   * will search the IAM policies that are attached to all the [searchable asset
        * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -478,19 +354,15 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() {
        * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** - * - * *
    -   * Optional. A list of asset types that the IAM policies are attached to. If
    -   * empty, it will search the IAM policies that are attached to all the
    -   * [searchable asset
    +   * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +   * will search the IAM policies that are attached to all the [searchable asset
        * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -505,7 +377,6 @@ public int getAssetTypesCount() {
        * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -513,12 +384,9 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** - * - * *
    -   * Optional. A list of asset types that the IAM policies are attached to. If
    -   * empty, it will search the IAM policies that are attached to all the
    -   * [searchable asset
    +   * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +   * will search the IAM policies that are attached to all the [searchable asset
        * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -533,23 +401,21 @@ public java.lang.String getAssetTypes(int index) {
        * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString + getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } public static final int ORDER_BY_FIELD_NUMBER = 7; private volatile java.lang.Object orderBy_; /** - * - * *
    -   * Optional. A comma-separated list of fields specifying the sorting order of
    -   * the results. The default order is ascending. Add " DESC" after the field
    -   * name to indicate descending order. Redundant space characters are ignored.
    +   * Optional. A comma-separated list of fields specifying the sorting order of the
    +   * results. The default order is ascending. Add " DESC" after the field name
    +   * to indicate descending order. Redundant space characters are ignored.
        * Example: "assetType DESC, resource".
        * Only singular primitive fields in the response are sortable:
        *   * resource
    @@ -560,7 +426,6 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) {
        * 
    * * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -569,19 +434,18 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    -   * Optional. A comma-separated list of fields specifying the sorting order of
    -   * the results. The default order is ascending. Add " DESC" after the field
    -   * name to indicate descending order. Redundant space characters are ignored.
    +   * Optional. A comma-separated list of fields specifying the sorting order of the
    +   * results. The default order is ascending. Add " DESC" after the field name
    +   * to indicate descending order. Redundant space characters are ignored.
        * Example: "assetType DESC, resource".
        * Only singular primitive fields in the response are sortable:
        *   * resource
    @@ -592,15 +456,16 @@ public java.lang.String getOrderBy() {
        * 
    * * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -609,7 +474,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -621,7 +485,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scope_); } @@ -640,7 +505,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, orderBy_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -656,7 +521,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, query_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -672,7 +538,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, orderBy_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -680,21 +546,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.SearchAllIamPoliciesRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.SearchAllIamPoliciesRequest other = - (com.google.cloud.asset.v1.SearchAllIamPoliciesRequest) obj; - - if (!getScope().equals(other.getScope())) return false; - if (!getQuery().equals(other.getQuery())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getAssetTypesList().equals(other.getAssetTypesList())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + com.google.cloud.asset.v1.SearchAllIamPoliciesRequest other = (com.google.cloud.asset.v1.SearchAllIamPoliciesRequest) obj; + + if (!getScope() + .equals(other.getScope())) return false; + if (!getQuery() + .equals(other.getQuery())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getAssetTypesList() + .equals(other.getAssetTypesList())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -719,149 +590,135 @@ public int hashCode() { } hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; hash = (53 * hash) + getOrderBy().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest 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.asset.v1.SearchAllIamPoliciesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1.SearchAllIamPoliciesRequest prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1.SearchAllIamPoliciesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Search all IAM policies request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.SearchAllIamPoliciesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.SearchAllIamPoliciesRequest) com.google.cloud.asset.v1.SearchAllIamPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.class, - com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.Builder.class); + com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.class, com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -881,9 +738,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor; } @java.lang.Override @@ -902,8 +759,7 @@ public com.google.cloud.asset.v1.SearchAllIamPoliciesRequest build() { @java.lang.Override public com.google.cloud.asset.v1.SearchAllIamPoliciesRequest buildPartial() { - com.google.cloud.asset.v1.SearchAllIamPoliciesRequest result = - new com.google.cloud.asset.v1.SearchAllIamPoliciesRequest(this); + com.google.cloud.asset.v1.SearchAllIamPoliciesRequest result = new com.google.cloud.asset.v1.SearchAllIamPoliciesRequest(this); int from_bitField0_ = bitField0_; result.scope_ = scope_; result.query_ = query_; @@ -923,39 +779,38 @@ public com.google.cloud.asset.v1.SearchAllIamPoliciesRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.SearchAllIamPoliciesRequest) { - return mergeFrom((com.google.cloud.asset.v1.SearchAllIamPoliciesRequest) other); + return mergeFrom((com.google.cloud.asset.v1.SearchAllIamPoliciesRequest)other); } else { super.mergeFrom(other); return this; @@ -963,8 +818,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.SearchAllIamPoliciesRequest other) { - if (other == com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.getDefaultInstance()) return this; if (!other.getScope().isEmpty()) { scope_ = other.scope_; onChanged(); @@ -994,7 +848,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.SearchAllIamPoliciesRequest o orderBy_ = other.orderBy_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1009,31 +863,71 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + scope_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + query_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + + break; + } // case 24 + case 34: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAssetTypesIsMutable(); + assetTypes_.add(s); + break; + } // case 42 + case 58: { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.SearchAllIamPoliciesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.lang.Object scope_ = ""; /** - * - * *
    -     * Required. A scope can be a project, a folder, or an organization. The
    -     * search is limited to the IAM policies within the `scope`. The caller must
    -     * be granted the
    +     * Required. A scope can be a project, a folder, or an organization. The search is
    +     * limited to the IAM policies within the `scope`. The caller must be granted
    +     * the
          * [`cloudasset.assets.searchAllIamPolicies`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
          * permission on the desired scope.
          * The allowed values are:
    @@ -1044,13 +938,13 @@ public Builder mergeFrom(
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The scope. */ public java.lang.String getScope() { java.lang.Object ref = scope_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; @@ -1059,12 +953,10 @@ public java.lang.String getScope() { } } /** - * - * *
    -     * Required. A scope can be a project, a folder, or an organization. The
    -     * search is limited to the IAM policies within the `scope`. The caller must
    -     * be granted the
    +     * Required. A scope can be a project, a folder, or an organization. The search is
    +     * limited to the IAM policies within the `scope`. The caller must be granted
    +     * the
          * [`cloudasset.assets.searchAllIamPolicies`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
          * permission on the desired scope.
          * The allowed values are:
    @@ -1075,14 +967,15 @@ public java.lang.String getScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for scope. */ - public com.google.protobuf.ByteString getScopeBytes() { + public com.google.protobuf.ByteString + getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); scope_ = b; return b; } else { @@ -1090,12 +983,10 @@ public com.google.protobuf.ByteString getScopeBytes() { } } /** - * - * *
    -     * Required. A scope can be a project, a folder, or an organization. The
    -     * search is limited to the IAM policies within the `scope`. The caller must
    -     * be granted the
    +     * Required. A scope can be a project, a folder, or an organization. The search is
    +     * limited to the IAM policies within the `scope`. The caller must be granted
    +     * the
          * [`cloudasset.assets.searchAllIamPolicies`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
          * permission on the desired scope.
          * The allowed values are:
    @@ -1106,26 +997,24 @@ public com.google.protobuf.ByteString getScopeBytes() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The scope to set. * @return This builder for chaining. */ - public Builder setScope(java.lang.String value) { + public Builder setScope( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + scope_ = value; onChanged(); return this; } /** - * - * *
    -     * Required. A scope can be a project, a folder, or an organization. The
    -     * search is limited to the IAM policies within the `scope`. The caller must
    -     * be granted the
    +     * Required. A scope can be a project, a folder, or an organization. The search is
    +     * limited to the IAM policies within the `scope`. The caller must be granted
    +     * the
          * [`cloudasset.assets.searchAllIamPolicies`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
          * permission on the desired scope.
          * The allowed values are:
    @@ -1136,22 +1025,19 @@ public Builder setScope(java.lang.String value) {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearScope() { - + scope_ = getDefaultInstance().getScope(); onChanged(); return this; } /** - * - * *
    -     * Required. A scope can be a project, a folder, or an organization. The
    -     * search is limited to the IAM policies within the `scope`. The caller must
    -     * be granted the
    +     * Required. A scope can be a project, a folder, or an organization. The search is
    +     * limited to the IAM policies within the `scope`. The caller must be granted
    +     * the
          * [`cloudasset.assets.searchAllIamPolicies`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
          * permission on the desired scope.
          * The allowed values are:
    @@ -1162,16 +1048,16 @@ public Builder clearScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for scope to set. * @return This builder for chaining. */ - public Builder setScopeBytes(com.google.protobuf.ByteString value) { + public Builder setScopeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scope_ = value; onChanged(); return this; @@ -1179,8 +1065,6 @@ public Builder setScopeBytes(com.google.protobuf.ByteString value) { private java.lang.Object query_ = ""; /** - * - * *
          * Optional. The query statement. See [how to construct a
          * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
    @@ -1225,13 +1109,13 @@ public Builder setScopeBytes(com.google.protobuf.ByteString value) {
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; @@ -1240,8 +1124,6 @@ public java.lang.String getQuery() { } } /** - * - * *
          * Optional. The query statement. See [how to construct a
          * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
    @@ -1286,14 +1168,15 @@ public java.lang.String getQuery() {
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for query. */ - public com.google.protobuf.ByteString getQueryBytes() { + public com.google.protobuf.ByteString + getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); query_ = b; return b; } else { @@ -1301,8 +1184,6 @@ public com.google.protobuf.ByteString getQueryBytes() { } } /** - * - * *
          * Optional. The query statement. See [how to construct a
          * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
    @@ -1347,22 +1228,20 @@ public com.google.protobuf.ByteString getQueryBytes() {
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The query to set. * @return This builder for chaining. */ - public Builder setQuery(java.lang.String value) { + public Builder setQuery( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + query_ = value; onChanged(); return this; } /** - * - * *
          * Optional. The query statement. See [how to construct a
          * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
    @@ -1407,18 +1286,15 @@ public Builder setQuery(java.lang.String value) {
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearQuery() { - + query_ = getDefaultInstance().getQuery(); onChanged(); return this; } /** - * - * *
          * Optional. The query statement. See [how to construct a
          * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
    @@ -1463,35 +1339,31 @@ public Builder clearQuery() {
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for query to set. * @return This builder for chaining. */ - public Builder setQueryBytes(com.google.protobuf.ByteString value) { + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
    -     * Optional. The page size for search result pagination. Page size is capped
    -     * at 500 even if a larger value is given. If set to zero, server will pick an
    -     * appropriate default. Returned results may be fewer than requested. When
    -     * this happens, there could be more results as long as `next_page_token` is
    -     * returned.
    +     * Optional. The page size for search result pagination. Page size is capped at 500 even
    +     * if a larger value is given. If set to zero, server will pick an appropriate
    +     * default. Returned results may be fewer than requested. When this happens,
    +     * there could be more results as long as `next_page_token` is returned.
          * 
    * * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -1499,44 +1371,36 @@ public int getPageSize() { return pageSize_; } /** - * - * *
    -     * Optional. The page size for search result pagination. Page size is capped
    -     * at 500 even if a larger value is given. If set to zero, server will pick an
    -     * appropriate default. Returned results may be fewer than requested. When
    -     * this happens, there could be more results as long as `next_page_token` is
    -     * returned.
    +     * Optional. The page size for search result pagination. Page size is capped at 500 even
    +     * if a larger value is given. If set to zero, server will pick an appropriate
    +     * default. Returned results may be fewer than requested. When this happens,
    +     * there could be more results as long as `next_page_token` is returned.
          * 
    * * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
    -     * Optional. The page size for search result pagination. Page size is capped
    -     * at 500 even if a larger value is given. If set to zero, server will pick an
    -     * appropriate default. Returned results may be fewer than requested. When
    -     * this happens, there could be more results as long as `next_page_token` is
    -     * returned.
    +     * Optional. The page size for search result pagination. Page size is capped at 500 even
    +     * if a larger value is given. If set to zero, server will pick an appropriate
    +     * default. Returned results may be fewer than requested. When this happens,
    +     * there could be more results as long as `next_page_token` is returned.
          * 
    * * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1544,23 +1408,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
    -     * Optional. If present, retrieve the next batch of results from the preceding
    -     * call to this method. `page_token` must be the value of `next_page_token`
    -     * from the previous response. The values of all other method parameters must
    -     * be identical to those in the previous call.
    +     * Optional. If present, retrieve the next batch of results from the preceding call to
    +     * this method. `page_token` must be the value of `next_page_token` from the
    +     * previous response. The values of all other method parameters must be
    +     * identical to those in the previous call.
          * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1569,24 +1431,23 @@ public java.lang.String getPageToken() { } } /** - * - * *
    -     * Optional. If present, retrieve the next batch of results from the preceding
    -     * call to this method. `page_token` must be the value of `next_page_token`
    -     * from the previous response. The values of all other method parameters must
    -     * be identical to those in the previous call.
    +     * Optional. If present, retrieve the next batch of results from the preceding call to
    +     * this method. `page_token` must be the value of `next_page_token` from the
    +     * previous response. The values of all other method parameters must be
    +     * identical to those in the previous call.
          * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1594,91 +1455,79 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
    -     * Optional. If present, retrieve the next batch of results from the preceding
    -     * call to this method. `page_token` must be the value of `next_page_token`
    -     * from the previous response. The values of all other method parameters must
    -     * be identical to those in the previous call.
    +     * Optional. If present, retrieve the next batch of results from the preceding call to
    +     * this method. `page_token` must be the value of `next_page_token` from the
    +     * previous response. The values of all other method parameters must be
    +     * identical to those in the previous call.
          * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
    -     * Optional. If present, retrieve the next batch of results from the preceding
    -     * call to this method. `page_token` must be the value of `next_page_token`
    -     * from the previous response. The values of all other method parameters must
    -     * be identical to those in the previous call.
    +     * Optional. If present, retrieve the next batch of results from the preceding call to
    +     * this method. `page_token` must be the value of `next_page_token` from the
    +     * previous response. The values of all other method parameters must be
    +     * identical to those in the previous call.
          * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
    -     * Optional. If present, retrieve the next batch of results from the preceding
    -     * call to this method. `page_token` must be the value of `next_page_token`
    -     * from the previous response. The values of all other method parameters must
    -     * be identical to those in the previous call.
    +     * Optional. If present, retrieve the next batch of results from the preceding call to
    +     * this method. `page_token` must be the value of `next_page_token` from the
    +     * previous response. The values of all other method parameters must be
    +     * identical to those in the previous call.
          * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList assetTypes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAssetTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assetTypes_ = new com.google.protobuf.LazyStringArrayList(assetTypes_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
    -     * Optional. A list of asset types that the IAM policies are attached to. If
    -     * empty, it will search the IAM policies that are attached to all the
    -     * [searchable asset
    +     * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +     * will search the IAM policies that are attached to all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -1693,19 +1542,16 @@ private void ensureAssetTypesIsMutable() {
          * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList getAssetTypesList() { + public com.google.protobuf.ProtocolStringList + getAssetTypesList() { return assetTypes_.getUnmodifiableView(); } /** - * - * *
    -     * Optional. A list of asset types that the IAM policies are attached to. If
    -     * empty, it will search the IAM policies that are attached to all the
    -     * [searchable asset
    +     * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +     * will search the IAM policies that are attached to all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -1720,19 +1566,15 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() {
          * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** - * - * *
    -     * Optional. A list of asset types that the IAM policies are attached to. If
    -     * empty, it will search the IAM policies that are attached to all the
    -     * [searchable asset
    +     * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +     * will search the IAM policies that are attached to all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -1747,7 +1589,6 @@ public int getAssetTypesCount() {
          * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -1755,12 +1596,9 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** - * - * *
    -     * Optional. A list of asset types that the IAM policies are attached to. If
    -     * empty, it will search the IAM policies that are attached to all the
    -     * [searchable asset
    +     * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +     * will search the IAM policies that are attached to all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -1775,20 +1613,17 @@ public java.lang.String getAssetTypes(int index) {
          * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString + getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } /** - * - * *
    -     * Optional. A list of asset types that the IAM policies are attached to. If
    -     * empty, it will search the IAM policies that are attached to all the
    -     * [searchable asset
    +     * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +     * will search the IAM policies that are attached to all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -1803,27 +1638,24 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) {
          * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The assetTypes to set. * @return This builder for chaining. */ - public Builder setAssetTypes(int index, java.lang.String value) { + public Builder setAssetTypes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.set(index, value); onChanged(); return this; } /** - * - * *
    -     * Optional. A list of asset types that the IAM policies are attached to. If
    -     * empty, it will search the IAM policies that are attached to all the
    -     * [searchable asset
    +     * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +     * will search the IAM policies that are attached to all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -1838,26 +1670,23 @@ public Builder setAssetTypes(int index, java.lang.String value) {
          * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypes(java.lang.String value) { + public Builder addAssetTypes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); return this; } /** - * - * *
    -     * Optional. A list of asset types that the IAM policies are attached to. If
    -     * empty, it will search the IAM policies that are attached to all the
    -     * [searchable asset
    +     * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +     * will search the IAM policies that are attached to all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -1872,23 +1701,21 @@ public Builder addAssetTypes(java.lang.String value) {
          * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The assetTypes to add. * @return This builder for chaining. */ - public Builder addAllAssetTypes(java.lang.Iterable values) { + public Builder addAllAssetTypes( + java.lang.Iterable values) { ensureAssetTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, assetTypes_); onChanged(); return this; } /** - * - * *
    -     * Optional. A list of asset types that the IAM policies are attached to. If
    -     * empty, it will search the IAM policies that are attached to all the
    -     * [searchable asset
    +     * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +     * will search the IAM policies that are attached to all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -1903,7 +1730,6 @@ public Builder addAllAssetTypes(java.lang.Iterable values) {
          * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1913,12 +1739,9 @@ public Builder clearAssetTypes() { return this; } /** - * - * *
    -     * Optional. A list of asset types that the IAM policies are attached to. If
    -     * empty, it will search the IAM policies that are attached to all the
    -     * [searchable asset
    +     * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +     * will search the IAM policies that are attached to all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -1933,15 +1756,15 @@ public Builder clearAssetTypes() {
          * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { + public Builder addAssetTypesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); @@ -1950,12 +1773,10 @@ public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
    -     * Optional. A comma-separated list of fields specifying the sorting order of
    -     * the results. The default order is ascending. Add " DESC" after the field
    -     * name to indicate descending order. Redundant space characters are ignored.
    +     * Optional. A comma-separated list of fields specifying the sorting order of the
    +     * results. The default order is ascending. Add " DESC" after the field name
    +     * to indicate descending order. Redundant space characters are ignored.
          * Example: "assetType DESC, resource".
          * Only singular primitive fields in the response are sortable:
          *   * resource
    @@ -1966,13 +1787,13 @@ public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) {
          * 
    * * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1981,12 +1802,10 @@ public java.lang.String getOrderBy() { } } /** - * - * *
    -     * Optional. A comma-separated list of fields specifying the sorting order of
    -     * the results. The default order is ascending. Add " DESC" after the field
    -     * name to indicate descending order. Redundant space characters are ignored.
    +     * Optional. A comma-separated list of fields specifying the sorting order of the
    +     * results. The default order is ascending. Add " DESC" after the field name
    +     * to indicate descending order. Redundant space characters are ignored.
          * Example: "assetType DESC, resource".
          * Only singular primitive fields in the response are sortable:
          *   * resource
    @@ -1997,14 +1816,15 @@ public java.lang.String getOrderBy() {
          * 
    * * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -2012,12 +1832,10 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
    -     * Optional. A comma-separated list of fields specifying the sorting order of
    -     * the results. The default order is ascending. Add " DESC" after the field
    -     * name to indicate descending order. Redundant space characters are ignored.
    +     * Optional. A comma-separated list of fields specifying the sorting order of the
    +     * results. The default order is ascending. Add " DESC" after the field name
    +     * to indicate descending order. Redundant space characters are ignored.
          * Example: "assetType DESC, resource".
          * Only singular primitive fields in the response are sortable:
          *   * resource
    @@ -2028,26 +1846,24 @@ public com.google.protobuf.ByteString getOrderByBytes() {
          * 
    * * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
    -     * Optional. A comma-separated list of fields specifying the sorting order of
    -     * the results. The default order is ascending. Add " DESC" after the field
    -     * name to indicate descending order. Redundant space characters are ignored.
    +     * Optional. A comma-separated list of fields specifying the sorting order of the
    +     * results. The default order is ascending. Add " DESC" after the field name
    +     * to indicate descending order. Redundant space characters are ignored.
          * Example: "assetType DESC, resource".
          * Only singular primitive fields in the response are sortable:
          *   * resource
    @@ -2058,22 +1874,19 @@ public Builder setOrderBy(java.lang.String value) {
          * 
    * * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
    -     * Optional. A comma-separated list of fields specifying the sorting order of
    -     * the results. The default order is ascending. Add " DESC" after the field
    -     * name to indicate descending order. Redundant space characters are ignored.
    +     * Optional. A comma-separated list of fields specifying the sorting order of the
    +     * results. The default order is ascending. Add " DESC" after the field name
    +     * to indicate descending order. Redundant space characters are ignored.
          * Example: "assetType DESC, resource".
          * Only singular primitive fields in the response are sortable:
          *   * resource
    @@ -2084,23 +1897,23 @@ public Builder clearOrderBy() {
          * 
    * * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2110,12 +1923,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.SearchAllIamPoliciesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.SearchAllIamPoliciesRequest) private static final com.google.cloud.asset.v1.SearchAllIamPoliciesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.SearchAllIamPoliciesRequest(); } @@ -2124,16 +1937,27 @@ public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchAllIamPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchAllIamPoliciesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAllIamPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2148,4 +1972,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.asset.v1.SearchAllIamPoliciesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequestOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequestOrBuilder.java similarity index 81% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequestOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequestOrBuilder.java index 672fb1a95d96..beb0187685e8 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequestOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequestOrBuilder.java @@ -1,35 +1,17 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface SearchAllIamPoliciesRequestOrBuilder - extends +public interface SearchAllIamPoliciesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.SearchAllIamPoliciesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    -   * Required. A scope can be a project, a folder, or an organization. The
    -   * search is limited to the IAM policies within the `scope`. The caller must
    -   * be granted the
    +   * Required. A scope can be a project, a folder, or an organization. The search is
    +   * limited to the IAM policies within the `scope`. The caller must be granted
    +   * the
        * [`cloudasset.assets.searchAllIamPolicies`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
        * permission on the desired scope.
        * The allowed values are:
    @@ -40,17 +22,14 @@ public interface SearchAllIamPoliciesRequestOrBuilder
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The scope. */ java.lang.String getScope(); /** - * - * *
    -   * Required. A scope can be a project, a folder, or an organization. The
    -   * search is limited to the IAM policies within the `scope`. The caller must
    -   * be granted the
    +   * Required. A scope can be a project, a folder, or an organization. The search is
    +   * limited to the IAM policies within the `scope`. The caller must be granted
    +   * the
        * [`cloudasset.assets.searchAllIamPolicies`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
        * permission on the desired scope.
        * The allowed values are:
    @@ -61,14 +40,12 @@ public interface SearchAllIamPoliciesRequestOrBuilder
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for scope. */ - com.google.protobuf.ByteString getScopeBytes(); + com.google.protobuf.ByteString + getScopeBytes(); /** - * - * *
        * Optional. The query statement. See [how to construct a
        * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
    @@ -113,13 +90,10 @@ public interface SearchAllIamPoliciesRequestOrBuilder
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The query. */ java.lang.String getQuery(); /** - * - * *
        * Optional. The query statement. See [how to construct a
        * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
    @@ -164,66 +138,54 @@ public interface SearchAllIamPoliciesRequestOrBuilder
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for query. */ - com.google.protobuf.ByteString getQueryBytes(); + com.google.protobuf.ByteString + getQueryBytes(); /** - * - * *
    -   * Optional. The page size for search result pagination. Page size is capped
    -   * at 500 even if a larger value is given. If set to zero, server will pick an
    -   * appropriate default. Returned results may be fewer than requested. When
    -   * this happens, there could be more results as long as `next_page_token` is
    -   * returned.
    +   * Optional. The page size for search result pagination. Page size is capped at 500 even
    +   * if a larger value is given. If set to zero, server will pick an appropriate
    +   * default. Returned results may be fewer than requested. When this happens,
    +   * there could be more results as long as `next_page_token` is returned.
        * 
    * * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    -   * Optional. If present, retrieve the next batch of results from the preceding
    -   * call to this method. `page_token` must be the value of `next_page_token`
    -   * from the previous response. The values of all other method parameters must
    -   * be identical to those in the previous call.
    +   * Optional. If present, retrieve the next batch of results from the preceding call to
    +   * this method. `page_token` must be the value of `next_page_token` from the
    +   * previous response. The values of all other method parameters must be
    +   * identical to those in the previous call.
        * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    -   * Optional. If present, retrieve the next batch of results from the preceding
    -   * call to this method. `page_token` must be the value of `next_page_token`
    -   * from the previous response. The values of all other method parameters must
    -   * be identical to those in the previous call.
    +   * Optional. If present, retrieve the next batch of results from the preceding call to
    +   * this method. `page_token` must be the value of `next_page_token` from the
    +   * previous response. The values of all other method parameters must be
    +   * identical to those in the previous call.
        * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    -   * Optional. A list of asset types that the IAM policies are attached to. If
    -   * empty, it will search the IAM policies that are attached to all the
    -   * [searchable asset
    +   * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +   * will search the IAM policies that are attached to all the [searchable asset
        * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -238,17 +200,14 @@ public interface SearchAllIamPoliciesRequestOrBuilder
        * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the assetTypes. */ - java.util.List getAssetTypesList(); + java.util.List + getAssetTypesList(); /** - * - * *
    -   * Optional. A list of asset types that the IAM policies are attached to. If
    -   * empty, it will search the IAM policies that are attached to all the
    -   * [searchable asset
    +   * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +   * will search the IAM policies that are attached to all the [searchable asset
        * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -263,17 +222,13 @@ public interface SearchAllIamPoliciesRequestOrBuilder
        * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of assetTypes. */ int getAssetTypesCount(); /** - * - * *
    -   * Optional. A list of asset types that the IAM policies are attached to. If
    -   * empty, it will search the IAM policies that are attached to all the
    -   * [searchable asset
    +   * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +   * will search the IAM policies that are attached to all the [searchable asset
        * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -288,18 +243,14 @@ public interface SearchAllIamPoliciesRequestOrBuilder
        * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ java.lang.String getAssetTypes(int index); /** - * - * *
    -   * Optional. A list of asset types that the IAM policies are attached to. If
    -   * empty, it will search the IAM policies that are attached to all the
    -   * [searchable asset
    +   * Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +   * will search the IAM policies that are attached to all the [searchable asset
        * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
    @@ -314,19 +265,17 @@ public interface SearchAllIamPoliciesRequestOrBuilder
        * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - com.google.protobuf.ByteString getAssetTypesBytes(int index); + com.google.protobuf.ByteString + getAssetTypesBytes(int index); /** - * - * *
    -   * Optional. A comma-separated list of fields specifying the sorting order of
    -   * the results. The default order is ascending. Add " DESC" after the field
    -   * name to indicate descending order. Redundant space characters are ignored.
    +   * Optional. A comma-separated list of fields specifying the sorting order of the
    +   * results. The default order is ascending. Add " DESC" after the field name
    +   * to indicate descending order. Redundant space characters are ignored.
        * Example: "assetType DESC, resource".
        * Only singular primitive fields in the response are sortable:
        *   * resource
    @@ -337,17 +286,14 @@ public interface SearchAllIamPoliciesRequestOrBuilder
        * 
    * * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    -   * Optional. A comma-separated list of fields specifying the sorting order of
    -   * the results. The default order is ascending. Add " DESC" after the field
    -   * name to indicate descending order. Redundant space characters are ignored.
    +   * Optional. A comma-separated list of fields specifying the sorting order of the
    +   * results. The default order is ascending. Add " DESC" after the field name
    +   * to indicate descending order. Redundant space characters are ignored.
        * Example: "assetType DESC, resource".
        * Only singular primitive fields in the response are sortable:
        *   * resource
    @@ -358,8 +304,8 @@ public interface SearchAllIamPoliciesRequestOrBuilder
        * 
    * * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponse.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponse.java similarity index 70% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponse.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponse.java index c8ed054de7fb..e6d1b1eb556a 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponse.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * Search all IAM policies response.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.SearchAllIamPoliciesResponse} */ -public final class SearchAllIamPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SearchAllIamPoliciesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.SearchAllIamPoliciesResponse) SearchAllIamPoliciesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SearchAllIamPoliciesResponse.newBuilder() to construct. private SearchAllIamPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SearchAllIamPoliciesResponse() { results_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,97 +26,32 @@ private SearchAllIamPoliciesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SearchAllIamPoliciesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private SearchAllIamPoliciesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - results_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - results_.add( - input.readMessage( - com.google.cloud.asset.v1.IamPolicySearchResult.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - results_ = java.util.Collections.unmodifiableList(results_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.class, - com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.Builder.class); + com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.class, com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.Builder.class); } public static final int RESULTS_FIELD_NUMBER = 1; private java.util.List results_; /** - * - * *
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -147,8 +64,6 @@ public java.util.List getResult
         return results_;
       }
       /**
    -   *
    -   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -157,13 +72,11 @@ public java.util.List getResult
        * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
        */
       @java.lang.Override
    -  public java.util.List
    +  public java.util.List 
           getResultsOrBuilderList() {
         return results_;
       }
       /**
    -   *
    -   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -176,8 +89,6 @@ public int getResultsCount() {
         return results_.size();
       }
       /**
    -   *
    -   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -190,8 +101,6 @@ public com.google.cloud.asset.v1.IamPolicySearchResult getResults(int index) {
         return results_.get(index);
       }
       /**
    -   *
    -   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -200,15 +109,14 @@ public com.google.cloud.asset.v1.IamPolicySearchResult getResults(int index) {
        * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
        */
       @java.lang.Override
    -  public com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder getResultsOrBuilder(int index) {
    +  public com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder getResultsOrBuilder(
    +      int index) {
         return results_.get(index);
       }
     
       public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
       private volatile java.lang.Object nextPageToken_;
       /**
    -   *
    -   *
        * 
        * Set if there are more results than those appearing in this response; to get
        * the next set of results, call this method again, using this value as the
    @@ -216,7 +124,6 @@ public com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder getResultsOrBuil
        * 
    * * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -225,15 +132,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
        * Set if there are more results than those appearing in this response; to get
        * the next set of results, call this method again, using this value as the
    @@ -241,15 +147,16 @@ public java.lang.String getNextPageToken() {
        * 
    * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -258,7 +165,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,14 +176,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeMessage(1, results_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -287,12 +194,13 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, results_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, results_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -300,17 +208,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.SearchAllIamPoliciesResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1.SearchAllIamPoliciesResponse other = - (com.google.cloud.asset.v1.SearchAllIamPoliciesResponse) obj; + com.google.cloud.asset.v1.SearchAllIamPoliciesResponse other = (com.google.cloud.asset.v1.SearchAllIamPoliciesResponse) obj; - if (!getResultsList().equals(other.getResultsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getResultsList() + .equals(other.getResultsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -327,169 +236,154 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse 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.asset.v1.SearchAllIamPoliciesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1.SearchAllIamPoliciesResponse prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1.SearchAllIamPoliciesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Search all IAM policies response.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.SearchAllIamPoliciesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.SearchAllIamPoliciesResponse) com.google.cloud.asset.v1.SearchAllIamPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.class, - com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.Builder.class); + com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.class, com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.Builder.class); } // Construct using com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getResultsFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + results_ = null; resultsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor; } @java.lang.Override @@ -508,8 +402,7 @@ public com.google.cloud.asset.v1.SearchAllIamPoliciesResponse build() { @java.lang.Override public com.google.cloud.asset.v1.SearchAllIamPoliciesResponse buildPartial() { - com.google.cloud.asset.v1.SearchAllIamPoliciesResponse result = - new com.google.cloud.asset.v1.SearchAllIamPoliciesResponse(this); + com.google.cloud.asset.v1.SearchAllIamPoliciesResponse result = new com.google.cloud.asset.v1.SearchAllIamPoliciesResponse(this); int from_bitField0_ = bitField0_; if (resultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -529,39 +422,38 @@ public com.google.cloud.asset.v1.SearchAllIamPoliciesResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.SearchAllIamPoliciesResponse) { - return mergeFrom((com.google.cloud.asset.v1.SearchAllIamPoliciesResponse) other); + return mergeFrom((com.google.cloud.asset.v1.SearchAllIamPoliciesResponse)other); } else { super.mergeFrom(other); return this; @@ -569,8 +461,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.SearchAllIamPoliciesResponse other) { - if (other == com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.getDefaultInstance()) return this; if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { @@ -589,10 +480,9 @@ public Builder mergeFrom(com.google.cloud.asset.v1.SearchAllIamPoliciesResponse resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); - resultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResultsFieldBuilder() - : null; + resultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResultsFieldBuilder() : null; } else { resultsBuilder_.addAllMessages(other.results_); } @@ -602,7 +492,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.SearchAllIamPoliciesResponse nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -617,43 +507,65 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.asset.v1.IamPolicySearchResult m = + input.readMessage( + com.google.cloud.asset.v1.IamPolicySearchResult.parser(), + extensionRegistry); + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(m); + } else { + resultsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.SearchAllIamPoliciesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.util.List results_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - results_ = - new java.util.ArrayList(results_); + results_ = new java.util.ArrayList(results_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicySearchResult, - com.google.cloud.asset.v1.IamPolicySearchResult.Builder, - com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder> - resultsBuilder_; + com.google.cloud.asset.v1.IamPolicySearchResult, com.google.cloud.asset.v1.IamPolicySearchResult.Builder, com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder> resultsBuilder_; /** - * - * *
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -669,8 +581,6 @@ public java.util.List getResult
           }
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -686,8 +596,6 @@ public int getResultsCount() {
           }
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -703,8 +611,6 @@ public com.google.cloud.asset.v1.IamPolicySearchResult getResults(int index) {
           }
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -712,7 +618,8 @@ public com.google.cloud.asset.v1.IamPolicySearchResult getResults(int index) {
          *
          * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
          */
    -    public Builder setResults(int index, com.google.cloud.asset.v1.IamPolicySearchResult value) {
    +    public Builder setResults(
    +        int index, com.google.cloud.asset.v1.IamPolicySearchResult value) {
           if (resultsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -726,8 +633,6 @@ public Builder setResults(int index, com.google.cloud.asset.v1.IamPolicySearchRe
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -747,8 +652,6 @@ public Builder setResults(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -770,8 +673,6 @@ public Builder addResults(com.google.cloud.asset.v1.IamPolicySearchResult value)
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -779,7 +680,8 @@ public Builder addResults(com.google.cloud.asset.v1.IamPolicySearchResult value)
          *
          * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
          */
    -    public Builder addResults(int index, com.google.cloud.asset.v1.IamPolicySearchResult value) {
    +    public Builder addResults(
    +        int index, com.google.cloud.asset.v1.IamPolicySearchResult value) {
           if (resultsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -793,8 +695,6 @@ public Builder addResults(int index, com.google.cloud.asset.v1.IamPolicySearchRe
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -814,8 +714,6 @@ public Builder addResults(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -835,8 +733,6 @@ public Builder addResults(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -848,7 +744,8 @@ public Builder addAllResults(
             java.lang.Iterable values) {
           if (resultsBuilder_ == null) {
             ensureResultsIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    +            values, results_);
             onChanged();
           } else {
             resultsBuilder_.addAllMessages(values);
    @@ -856,8 +753,6 @@ public Builder addAllResults(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -876,8 +771,6 @@ public Builder clearResults() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -896,8 +789,6 @@ public Builder removeResults(int index) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -905,12 +796,11 @@ public Builder removeResults(int index) {
          *
          * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
          */
    -    public com.google.cloud.asset.v1.IamPolicySearchResult.Builder getResultsBuilder(int index) {
    +    public com.google.cloud.asset.v1.IamPolicySearchResult.Builder getResultsBuilder(
    +        int index) {
           return getResultsFieldBuilder().getBuilder(index);
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -918,16 +808,14 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Builder getResultsBuilder
          *
          * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
          */
    -    public com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder getResultsOrBuilder(int index) {
    +    public com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder getResultsOrBuilder(
    +        int index) {
           if (resultsBuilder_ == null) {
    -        return results_.get(index);
    -      } else {
    +        return results_.get(index);  } else {
             return resultsBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -935,8 +823,8 @@ public com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder getResultsOrBuil
          *
          * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
          */
    -    public java.util.List
    -        getResultsOrBuilderList() {
    +    public java.util.List 
    +         getResultsOrBuilderList() {
           if (resultsBuilder_ != null) {
             return resultsBuilder_.getMessageOrBuilderList();
           } else {
    @@ -944,8 +832,6 @@ public com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder getResultsOrBuil
           }
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -954,12 +840,10 @@ public com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder getResultsOrBuil
          * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
          */
         public com.google.cloud.asset.v1.IamPolicySearchResult.Builder addResultsBuilder() {
    -      return getResultsFieldBuilder()
    -          .addBuilder(com.google.cloud.asset.v1.IamPolicySearchResult.getDefaultInstance());
    +      return getResultsFieldBuilder().addBuilder(
    +          com.google.cloud.asset.v1.IamPolicySearchResult.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -967,13 +851,12 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Builder addResultsBuilder
          *
          * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
          */
    -    public com.google.cloud.asset.v1.IamPolicySearchResult.Builder addResultsBuilder(int index) {
    -      return getResultsFieldBuilder()
    -          .addBuilder(index, com.google.cloud.asset.v1.IamPolicySearchResult.getDefaultInstance());
    +    public com.google.cloud.asset.v1.IamPolicySearchResult.Builder addResultsBuilder(
    +        int index) {
    +      return getResultsFieldBuilder().addBuilder(
    +          index, com.google.cloud.asset.v1.IamPolicySearchResult.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -981,23 +864,20 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Builder addResultsBuilder
          *
          * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
          */
    -    public java.util.List
    -        getResultsBuilderList() {
    +    public java.util.List 
    +         getResultsBuilderList() {
           return getResultsFieldBuilder().getBuilderList();
         }
    -
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.asset.v1.IamPolicySearchResult,
    -            com.google.cloud.asset.v1.IamPolicySearchResult.Builder,
    -            com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder>
    +        com.google.cloud.asset.v1.IamPolicySearchResult, com.google.cloud.asset.v1.IamPolicySearchResult.Builder, com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder> 
             getResultsFieldBuilder() {
           if (resultsBuilder_ == null) {
    -        resultsBuilder_ =
    -            new com.google.protobuf.RepeatedFieldBuilderV3<
    -                com.google.cloud.asset.v1.IamPolicySearchResult,
    -                com.google.cloud.asset.v1.IamPolicySearchResult.Builder,
    -                com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder>(
    -                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
    +        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    +            com.google.cloud.asset.v1.IamPolicySearchResult, com.google.cloud.asset.v1.IamPolicySearchResult.Builder, com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder>(
    +                results_,
    +                ((bitField0_ & 0x00000001) != 0),
    +                getParentForChildren(),
    +                isClean());
             results_ = null;
           }
           return resultsBuilder_;
    @@ -1005,8 +885,6 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Builder addResultsBuilder
     
         private java.lang.Object nextPageToken_ = "";
         /**
    -     *
    -     *
          * 
          * Set if there are more results than those appearing in this response; to get
          * the next set of results, call this method again, using this value as the
    @@ -1014,13 +892,13 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Builder addResultsBuilder
          * 
    * * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1029,8 +907,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
          * Set if there are more results than those appearing in this response; to get
          * the next set of results, call this method again, using this value as the
    @@ -1038,14 +914,15 @@ public java.lang.String getNextPageToken() {
          * 
    * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1053,8 +930,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
          * Set if there are more results than those appearing in this response; to get
          * the next set of results, call this method again, using this value as the
    @@ -1062,22 +937,20 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
          * Set if there are more results than those appearing in this response; to get
          * the next set of results, call this method again, using this value as the
    @@ -1085,18 +958,15 @@ public Builder setNextPageToken(java.lang.String value) {
          * 
    * * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
          * Set if there are more results than those appearing in this response; to get
          * the next set of results, call this method again, using this value as the
    @@ -1104,23 +974,23 @@ 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1130,12 +1000,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.SearchAllIamPoliciesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.SearchAllIamPoliciesResponse) private static final com.google.cloud.asset.v1.SearchAllIamPoliciesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.SearchAllIamPoliciesResponse(); } @@ -1144,16 +1014,27 @@ public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchAllIamPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchAllIamPoliciesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAllIamPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1168,4 +1049,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.asset.v1.SearchAllIamPoliciesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponseOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponseOrBuilder.java similarity index 75% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponseOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponseOrBuilder.java index 56d9e7a7a971..e1866ae585cc 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponseOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface SearchAllIamPoliciesResponseOrBuilder - extends +public interface SearchAllIamPoliciesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.SearchAllIamPoliciesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -33,10 +15,9 @@ public interface SearchAllIamPoliciesResponseOrBuilder
        *
        * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
        */
    -  java.util.List getResultsList();
    +  java.util.List 
    +      getResultsList();
       /**
    -   *
    -   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -46,8 +27,6 @@ public interface SearchAllIamPoliciesResponseOrBuilder
        */
       com.google.cloud.asset.v1.IamPolicySearchResult getResults(int index);
       /**
    -   *
    -   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -57,8 +36,6 @@ public interface SearchAllIamPoliciesResponseOrBuilder
        */
       int getResultsCount();
       /**
    -   *
    -   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -66,11 +43,9 @@ public interface SearchAllIamPoliciesResponseOrBuilder
        *
        * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
        */
    -  java.util.List
    +  java.util.List 
           getResultsOrBuilderList();
       /**
    -   *
    -   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -78,11 +53,10 @@ public interface SearchAllIamPoliciesResponseOrBuilder
        *
        * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
        */
    -  com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder getResultsOrBuilder(int index);
    +  com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder getResultsOrBuilder(
    +      int index);
     
       /**
    -   *
    -   *
        * 
        * Set if there are more results than those appearing in this response; to get
        * the next set of results, call this method again, using this value as the
    @@ -90,13 +64,10 @@ public interface SearchAllIamPoliciesResponseOrBuilder
        * 
    * * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
        * Set if there are more results than those appearing in this response; to get
        * the next set of results, call this method again, using this value as the
    @@ -104,8 +75,8 @@ public interface SearchAllIamPoliciesResponseOrBuilder
        * 
    * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequest.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequest.java similarity index 75% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequest.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequest.java index 4aabc0485ac6..3e74d63b5c64 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequest.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * Search all resources request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.SearchAllResourcesRequest} */ -public final class SearchAllResourcesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SearchAllResourcesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.SearchAllResourcesRequest) SearchAllResourcesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SearchAllResourcesRequest.newBuilder() to construct. private SearchAllResourcesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SearchAllResourcesRequest() { scope_ = ""; query_ = ""; @@ -47,140 +29,35 @@ private SearchAllResourcesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SearchAllResourcesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private SearchAllResourcesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - scope_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - query_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - assetTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - assetTypes_.add(s); - break; - } - case 32: - { - pageSize_ = input.readInt32(); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - orderBy_ = s; - break; - } - case 66: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (readMask_ != null) { - subBuilder = readMask_.toBuilder(); - } - readMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readMask_); - readMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - assetTypes_ = assetTypes_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.SearchAllResourcesRequest.class, - com.google.cloud.asset.v1.SearchAllResourcesRequest.Builder.class); + com.google.cloud.asset.v1.SearchAllResourcesRequest.class, com.google.cloud.asset.v1.SearchAllResourcesRequest.Builder.class); } public static final int SCOPE_FIELD_NUMBER = 1; private volatile java.lang.Object scope_; /** - * - * *
    -   * Required. A scope can be a project, a folder, or an organization. The
    -   * search is limited to the resources within the `scope`. The caller must be
    -   * granted the
    +   * Required. A scope can be a project, a folder, or an organization. The search is
    +   * limited to the resources within the `scope`. The caller must be granted the
        * [`cloudasset.assets.searchAllResources`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
        * permission on the desired scope.
        * The allowed values are:
    @@ -191,7 +68,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The scope. */ @java.lang.Override @@ -200,19 +76,17 @@ public java.lang.String getScope() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; } } /** - * - * *
    -   * Required. A scope can be a project, a folder, or an organization. The
    -   * search is limited to the resources within the `scope`. The caller must be
    -   * granted the
    +   * Required. A scope can be a project, a folder, or an organization. The search is
    +   * limited to the resources within the `scope`. The caller must be granted the
        * [`cloudasset.assets.searchAllResources`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
        * permission on the desired scope.
        * The allowed values are:
    @@ -223,15 +97,16 @@ public java.lang.String getScope() {
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for scope. */ @java.lang.Override - public com.google.protobuf.ByteString getScopeBytes() { + public com.google.protobuf.ByteString + getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); scope_ = b; return b; } else { @@ -242,8 +117,6 @@ public com.google.protobuf.ByteString getScopeBytes() { public static final int QUERY_FIELD_NUMBER = 2; private volatile java.lang.Object query_; /** - * - * *
        * Optional. The query statement. See [how to construct a
        * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
    @@ -264,7 +137,11 @@ public com.google.protobuf.ByteString getScopeBytes() {
        *   and its value is "prod".
        * * `labels.env:*` to find Cloud resources that have a label "env".
        * * `kmsKey:key` to find Cloud resources encrypted with a customer-managed
    -   *   encryption key whose name contains the word "key".
    +   *   encryption key whose name contains "key" as a word. This field is
    +   *   deprecated. Please use the `kmsKeys` field to retrieve KMS key
    +   *   information.
    +   * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
    +   *   encryption keys whose name contains the word "key".
        * * `relationships:instance-group-1` to find Cloud resources that have
        *   relationships with "instance-group-1" in the related resource name.
        * * `relationships:INSTANCE_TO_INSTANCEGROUP` to find compute instances that
    @@ -294,7 +171,6 @@ public com.google.protobuf.ByteString getScopeBytes() {
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The query. */ @java.lang.Override @@ -303,15 +179,14 @@ public java.lang.String getQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } } /** - * - * *
        * Optional. The query statement. See [how to construct a
        * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
    @@ -332,7 +207,11 @@ public java.lang.String getQuery() {
        *   and its value is "prod".
        * * `labels.env:*` to find Cloud resources that have a label "env".
        * * `kmsKey:key` to find Cloud resources encrypted with a customer-managed
    -   *   encryption key whose name contains the word "key".
    +   *   encryption key whose name contains "key" as a word. This field is
    +   *   deprecated. Please use the `kmsKeys` field to retrieve KMS key
    +   *   information.
    +   * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
    +   *   encryption keys whose name contains the word "key".
        * * `relationships:instance-group-1` to find Cloud resources that have
        *   relationships with "instance-group-1" in the related resource name.
        * * `relationships:INSTANCE_TO_INSTANCEGROUP` to find compute instances that
    @@ -362,15 +241,16 @@ public java.lang.String getQuery() {
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for query. */ @java.lang.Override - public com.google.protobuf.ByteString getQueryBytes() { + public com.google.protobuf.ByteString + getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); query_ = b; return b; } else { @@ -381,11 +261,9 @@ public com.google.protobuf.ByteString getQueryBytes() { public static final int ASSET_TYPES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList assetTypes_; /** - * - * *
    -   * Optional. A list of asset types that this request searches for. If empty,
    -   * it will search all the [searchable asset
    +   * Optional. A list of asset types that this request searches for. If empty, it will
    +   * search all the [searchable asset
        * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -398,18 +276,16 @@ public com.google.protobuf.ByteString getQueryBytes() {
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList getAssetTypesList() { + public com.google.protobuf.ProtocolStringList + getAssetTypesList() { return assetTypes_; } /** - * - * *
    -   * Optional. A list of asset types that this request searches for. If empty,
    -   * it will search all the [searchable asset
    +   * Optional. A list of asset types that this request searches for. If empty, it will
    +   * search all the [searchable asset
        * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -422,18 +298,15 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() {
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** - * - * *
    -   * Optional. A list of asset types that this request searches for. If empty,
    -   * it will search all the [searchable asset
    +   * Optional. A list of asset types that this request searches for. If empty, it will
    +   * search all the [searchable asset
        * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -446,7 +319,6 @@ public int getAssetTypesCount() {
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -454,11 +326,9 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** - * - * *
    -   * Optional. A list of asset types that this request searches for. If empty,
    -   * it will search all the [searchable asset
    +   * Optional. A list of asset types that this request searches for. If empty, it will
    +   * search all the [searchable asset
        * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -471,29 +341,25 @@ public java.lang.String getAssetTypes(int index) {
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString + getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** - * - * *
    -   * Optional. The page size for search result pagination. Page size is capped
    -   * at 500 even if a larger value is given. If set to zero, server will pick an
    -   * appropriate default. Returned results may be fewer than requested. When
    -   * this happens, there could be more results as long as `next_page_token` is
    -   * returned.
    +   * Optional. The page size for search result pagination. Page size is capped at 500 even
    +   * if a larger value is given. If set to zero, server will pick an appropriate
    +   * default. Returned results may be fewer than requested. When this happens,
    +   * there could be more results as long as `next_page_token` is returned.
        * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -504,17 +370,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 5; private volatile java.lang.Object pageToken_; /** - * - * *
    -   * Optional. If present, then retrieve the next batch of results from the
    -   * preceding call to this method. `page_token` must be the value of
    -   * `next_page_token` from the previous response. The values of all other
    -   * method parameters, must be identical to those in the previous call.
    +   * Optional. If present, then retrieve the next batch of results from the preceding call
    +   * to this method. `page_token` must be the value of `next_page_token` from
    +   * the previous response. The values of all other method parameters, must be
    +   * identical to those in the previous call.
        * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -523,32 +386,32 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    -   * Optional. If present, then retrieve the next batch of results from the
    -   * preceding call to this method. `page_token` must be the value of
    -   * `next_page_token` from the previous response. The values of all other
    -   * method parameters, must be identical to those in the previous call.
    +   * Optional. If present, then retrieve the next batch of results from the preceding call
    +   * to this method. `page_token` must be the value of `next_page_token` from
    +   * the previous response. The values of all other method parameters, must be
    +   * identical to those in the previous call.
        * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -559,12 +422,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int ORDER_BY_FIELD_NUMBER = 6; private volatile java.lang.Object orderBy_; /** - * - * *
    -   * Optional. A comma-separated list of fields specifying the sorting order of
    -   * the results. The default order is ascending. Add " DESC" after the field
    -   * name to indicate descending order. Redundant space characters are ignored.
    +   * Optional. A comma-separated list of fields specifying the sorting order of the
    +   * results. The default order is ascending. Add " DESC" after the field name
    +   * to indicate descending order. Redundant space characters are ignored.
        * Example: "location DESC, name".
        * Only singular primitive fields in the response are sortable:
        *   * name
    @@ -573,19 +434,17 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
        *   * displayName
        *   * description
        *   * location
    -   *   * kmsKey
        *   * createTime
        *   * updateTime
        *   * state
        *   * parentFullResourceName
        *   * parentAssetType
    -   * All the other fields such as repeated fields (e.g., `networkTags`), map
    -   * fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`)
    -   * are not supported.
    +   * All the other fields such as repeated fields (e.g., `networkTags`,
    +   * `kmsKeys`), map fields (e.g., `labels`) and struct fields (e.g.,
    +   * `additionalAttributes`) are not supported.
        * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -594,19 +453,18 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    -   * Optional. A comma-separated list of fields specifying the sorting order of
    -   * the results. The default order is ascending. Add " DESC" after the field
    -   * name to indicate descending order. Redundant space characters are ignored.
    +   * Optional. A comma-separated list of fields specifying the sorting order of the
    +   * results. The default order is ascending. Add " DESC" after the field name
    +   * to indicate descending order. Redundant space characters are ignored.
        * Example: "location DESC, name".
        * Only singular primitive fields in the response are sortable:
        *   * name
    @@ -615,27 +473,27 @@ public java.lang.String getOrderBy() {
        *   * displayName
        *   * description
        *   * location
    -   *   * kmsKey
        *   * createTime
        *   * updateTime
        *   * state
        *   * parentFullResourceName
        *   * parentAssetType
    -   * All the other fields such as repeated fields (e.g., `networkTags`), map
    -   * fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`)
    -   * are not supported.
    +   * All the other fields such as repeated fields (e.g., `networkTags`,
    +   * `kmsKeys`), map fields (e.g., `labels`) and struct fields (e.g.,
    +   * `additionalAttributes`) are not supported.
        * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -646,13 +504,11 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int READ_MASK_FIELD_NUMBER = 8; private com.google.protobuf.FieldMask readMask_; /** - * - * *
    -   * Optional. A comma-separated list of fields specifying which fields to be
    -   * returned in ResourceSearchResult. Only '*' or combination of top level
    -   * fields can be specified. Field names of both snake_case and camelCase are
    -   * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +   * Optional. A comma-separated list of fields specifying which fields to be returned in
    +   * ResourceSearchResult. Only '*' or combination of top level fields can be
    +   * specified. Field names of both snake_case and camelCase are supported.
    +   * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
        * The read_mask paths must be valid field paths listed but not limited to
        * (both snake_case and camelCase are supported):
        *   * name
    @@ -666,7 +522,9 @@ public com.google.protobuf.ByteString getOrderByBytes() {
        *   * tagValueIds
        *   * labels
        *   * networkTags
    -   *   * kmsKey
    +   *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +   *     retrieve KMS key information.)
    +   *   * kmsKeys
        *   * createTime
        *   * updateTime
        *   * state
    @@ -679,9 +537,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
        * Any invalid field path will trigger INVALID_ARGUMENT error.
        * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the readMask field is set. */ @java.lang.Override @@ -689,13 +545,11 @@ public boolean hasReadMask() { return readMask_ != null; } /** - * - * *
    -   * Optional. A comma-separated list of fields specifying which fields to be
    -   * returned in ResourceSearchResult. Only '*' or combination of top level
    -   * fields can be specified. Field names of both snake_case and camelCase are
    -   * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +   * Optional. A comma-separated list of fields specifying which fields to be returned in
    +   * ResourceSearchResult. Only '*' or combination of top level fields can be
    +   * specified. Field names of both snake_case and camelCase are supported.
    +   * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
        * The read_mask paths must be valid field paths listed but not limited to
        * (both snake_case and camelCase are supported):
        *   * name
    @@ -709,7 +563,9 @@ public boolean hasReadMask() {
        *   * tagValueIds
        *   * labels
        *   * networkTags
    -   *   * kmsKey
    +   *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +   *     retrieve KMS key information.)
    +   *   * kmsKeys
        *   * createTime
        *   * updateTime
        *   * state
    @@ -722,9 +578,7 @@ public boolean hasReadMask() {
        * Any invalid field path will trigger INVALID_ARGUMENT error.
        * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The readMask. */ @java.lang.Override @@ -732,13 +586,11 @@ public com.google.protobuf.FieldMask getReadMask() { return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } /** - * - * *
    -   * Optional. A comma-separated list of fields specifying which fields to be
    -   * returned in ResourceSearchResult. Only '*' or combination of top level
    -   * fields can be specified. Field names of both snake_case and camelCase are
    -   * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +   * Optional. A comma-separated list of fields specifying which fields to be returned in
    +   * ResourceSearchResult. Only '*' or combination of top level fields can be
    +   * specified. Field names of both snake_case and camelCase are supported.
    +   * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
        * The read_mask paths must be valid field paths listed but not limited to
        * (both snake_case and camelCase are supported):
        *   * name
    @@ -752,7 +604,9 @@ public com.google.protobuf.FieldMask getReadMask() {
        *   * tagValueIds
        *   * labels
        *   * networkTags
    -   *   * kmsKey
    +   *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +   *     retrieve KMS key information.)
    +   *   * kmsKeys
        *   * createTime
        *   * updateTime
        *   * state
    @@ -765,8 +619,7 @@ public com.google.protobuf.FieldMask getReadMask() {
        * Any invalid field path will trigger INVALID_ARGUMENT error.
        * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { @@ -774,7 +627,6 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -786,7 +638,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scope_); } @@ -808,7 +661,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (readMask_ != null) { output.writeMessage(8, getReadMask()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -832,7 +685,8 @@ public int getSerializedSize() { size += 1 * getAssetTypesList().size(); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); @@ -841,9 +695,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, orderBy_); } if (readMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getReadMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getReadMask()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -851,25 +706,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.SearchAllResourcesRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.SearchAllResourcesRequest other = - (com.google.cloud.asset.v1.SearchAllResourcesRequest) obj; - - if (!getScope().equals(other.getScope())) return false; - if (!getQuery().equals(other.getQuery())) return false; - if (!getAssetTypesList().equals(other.getAssetTypesList())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.asset.v1.SearchAllResourcesRequest other = (com.google.cloud.asset.v1.SearchAllResourcesRequest) obj; + + if (!getScope() + .equals(other.getScope())) return false; + if (!getQuery() + .equals(other.getQuery())) return false; + if (!getAssetTypesList() + .equals(other.getAssetTypesList())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (hasReadMask() != other.hasReadMask()) return false; if (hasReadMask()) { - if (!getReadMask().equals(other.getReadMask())) return false; + if (!getReadMask() + .equals(other.getReadMask())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -898,148 +759,135 @@ public int hashCode() { hash = (37 * hash) + READ_MASK_FIELD_NUMBER; hash = (53 * hash) + getReadMask().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.SearchAllResourcesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.SearchAllResourcesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.SearchAllResourcesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.SearchAllResourcesRequest 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.asset.v1.SearchAllResourcesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.SearchAllResourcesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.SearchAllResourcesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.SearchAllResourcesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.SearchAllResourcesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.SearchAllResourcesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.SearchAllResourcesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.SearchAllResourcesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.SearchAllResourcesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.SearchAllResourcesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.SearchAllResourcesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Search all resources request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.SearchAllResourcesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.SearchAllResourcesRequest) com.google.cloud.asset.v1.SearchAllResourcesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.SearchAllResourcesRequest.class, - com.google.cloud.asset.v1.SearchAllResourcesRequest.Builder.class); + com.google.cloud.asset.v1.SearchAllResourcesRequest.class, com.google.cloud.asset.v1.SearchAllResourcesRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.SearchAllResourcesRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -1065,9 +913,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor; } @java.lang.Override @@ -1086,8 +934,7 @@ public com.google.cloud.asset.v1.SearchAllResourcesRequest build() { @java.lang.Override public com.google.cloud.asset.v1.SearchAllResourcesRequest buildPartial() { - com.google.cloud.asset.v1.SearchAllResourcesRequest result = - new com.google.cloud.asset.v1.SearchAllResourcesRequest(this); + com.google.cloud.asset.v1.SearchAllResourcesRequest result = new com.google.cloud.asset.v1.SearchAllResourcesRequest(this); int from_bitField0_ = bitField0_; result.scope_ = scope_; result.query_ = query_; @@ -1112,39 +959,38 @@ public com.google.cloud.asset.v1.SearchAllResourcesRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.SearchAllResourcesRequest) { - return mergeFrom((com.google.cloud.asset.v1.SearchAllResourcesRequest) other); + return mergeFrom((com.google.cloud.asset.v1.SearchAllResourcesRequest)other); } else { super.mergeFrom(other); return this; @@ -1152,8 +998,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.SearchAllResourcesRequest other) { - if (other == com.google.cloud.asset.v1.SearchAllResourcesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.SearchAllResourcesRequest.getDefaultInstance()) return this; if (!other.getScope().isEmpty()) { scope_ = other.scope_; onChanged(); @@ -1186,7 +1031,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.SearchAllResourcesRequest oth if (other.hasReadMask()) { mergeReadMask(other.getReadMask()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1201,31 +1046,77 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.SearchAllResourcesRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + scope_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + query_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAssetTypesIsMutable(); + assetTypes_.add(s); + break; + } // case 26 + case 32: { + pageSize_ = input.readInt32(); + + break; + } // case 32 + case 42: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 66: { + input.readMessage( + getReadMaskFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.SearchAllResourcesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.lang.Object scope_ = ""; /** - * - * *
    -     * Required. A scope can be a project, a folder, or an organization. The
    -     * search is limited to the resources within the `scope`. The caller must be
    -     * granted the
    +     * Required. A scope can be a project, a folder, or an organization. The search is
    +     * limited to the resources within the `scope`. The caller must be granted the
          * [`cloudasset.assets.searchAllResources`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
          * permission on the desired scope.
          * The allowed values are:
    @@ -1236,13 +1127,13 @@ public Builder mergeFrom(
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The scope. */ public java.lang.String getScope() { java.lang.Object ref = scope_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; @@ -1251,12 +1142,9 @@ public java.lang.String getScope() { } } /** - * - * *
    -     * Required. A scope can be a project, a folder, or an organization. The
    -     * search is limited to the resources within the `scope`. The caller must be
    -     * granted the
    +     * Required. A scope can be a project, a folder, or an organization. The search is
    +     * limited to the resources within the `scope`. The caller must be granted the
          * [`cloudasset.assets.searchAllResources`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
          * permission on the desired scope.
          * The allowed values are:
    @@ -1267,14 +1155,15 @@ public java.lang.String getScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for scope. */ - public com.google.protobuf.ByteString getScopeBytes() { + public com.google.protobuf.ByteString + getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); scope_ = b; return b; } else { @@ -1282,12 +1171,9 @@ public com.google.protobuf.ByteString getScopeBytes() { } } /** - * - * *
    -     * Required. A scope can be a project, a folder, or an organization. The
    -     * search is limited to the resources within the `scope`. The caller must be
    -     * granted the
    +     * Required. A scope can be a project, a folder, or an organization. The search is
    +     * limited to the resources within the `scope`. The caller must be granted the
          * [`cloudasset.assets.searchAllResources`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
          * permission on the desired scope.
          * The allowed values are:
    @@ -1298,26 +1184,23 @@ public com.google.protobuf.ByteString getScopeBytes() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The scope to set. * @return This builder for chaining. */ - public Builder setScope(java.lang.String value) { + public Builder setScope( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + scope_ = value; onChanged(); return this; } /** - * - * *
    -     * Required. A scope can be a project, a folder, or an organization. The
    -     * search is limited to the resources within the `scope`. The caller must be
    -     * granted the
    +     * Required. A scope can be a project, a folder, or an organization. The search is
    +     * limited to the resources within the `scope`. The caller must be granted the
          * [`cloudasset.assets.searchAllResources`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
          * permission on the desired scope.
          * The allowed values are:
    @@ -1328,22 +1211,18 @@ public Builder setScope(java.lang.String value) {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearScope() { - + scope_ = getDefaultInstance().getScope(); onChanged(); return this; } /** - * - * *
    -     * Required. A scope can be a project, a folder, or an organization. The
    -     * search is limited to the resources within the `scope`. The caller must be
    -     * granted the
    +     * Required. A scope can be a project, a folder, or an organization. The search is
    +     * limited to the resources within the `scope`. The caller must be granted the
          * [`cloudasset.assets.searchAllResources`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
          * permission on the desired scope.
          * The allowed values are:
    @@ -1354,16 +1233,16 @@ public Builder clearScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for scope to set. * @return This builder for chaining. */ - public Builder setScopeBytes(com.google.protobuf.ByteString value) { + public Builder setScopeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scope_ = value; onChanged(); return this; @@ -1371,8 +1250,6 @@ public Builder setScopeBytes(com.google.protobuf.ByteString value) { private java.lang.Object query_ = ""; /** - * - * *
          * Optional. The query statement. See [how to construct a
          * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
    @@ -1393,7 +1270,11 @@ public Builder setScopeBytes(com.google.protobuf.ByteString value) {
          *   and its value is "prod".
          * * `labels.env:*` to find Cloud resources that have a label "env".
          * * `kmsKey:key` to find Cloud resources encrypted with a customer-managed
    -     *   encryption key whose name contains the word "key".
    +     *   encryption key whose name contains "key" as a word. This field is
    +     *   deprecated. Please use the `kmsKeys` field to retrieve KMS key
    +     *   information.
    +     * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
    +     *   encryption keys whose name contains the word "key".
          * * `relationships:instance-group-1` to find Cloud resources that have
          *   relationships with "instance-group-1" in the related resource name.
          * * `relationships:INSTANCE_TO_INSTANCEGROUP` to find compute instances that
    @@ -1423,13 +1304,13 @@ public Builder setScopeBytes(com.google.protobuf.ByteString value) {
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; @@ -1438,8 +1319,6 @@ public java.lang.String getQuery() { } } /** - * - * *
          * Optional. The query statement. See [how to construct a
          * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
    @@ -1460,7 +1339,11 @@ public java.lang.String getQuery() {
          *   and its value is "prod".
          * * `labels.env:*` to find Cloud resources that have a label "env".
          * * `kmsKey:key` to find Cloud resources encrypted with a customer-managed
    -     *   encryption key whose name contains the word "key".
    +     *   encryption key whose name contains "key" as a word. This field is
    +     *   deprecated. Please use the `kmsKeys` field to retrieve KMS key
    +     *   information.
    +     * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
    +     *   encryption keys whose name contains the word "key".
          * * `relationships:instance-group-1` to find Cloud resources that have
          *   relationships with "instance-group-1" in the related resource name.
          * * `relationships:INSTANCE_TO_INSTANCEGROUP` to find compute instances that
    @@ -1490,14 +1373,15 @@ public java.lang.String getQuery() {
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for query. */ - public com.google.protobuf.ByteString getQueryBytes() { + public com.google.protobuf.ByteString + getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); query_ = b; return b; } else { @@ -1505,8 +1389,6 @@ public com.google.protobuf.ByteString getQueryBytes() { } } /** - * - * *
          * Optional. The query statement. See [how to construct a
          * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
    @@ -1527,7 +1409,11 @@ public com.google.protobuf.ByteString getQueryBytes() {
          *   and its value is "prod".
          * * `labels.env:*` to find Cloud resources that have a label "env".
          * * `kmsKey:key` to find Cloud resources encrypted with a customer-managed
    -     *   encryption key whose name contains the word "key".
    +     *   encryption key whose name contains "key" as a word. This field is
    +     *   deprecated. Please use the `kmsKeys` field to retrieve KMS key
    +     *   information.
    +     * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
    +     *   encryption keys whose name contains the word "key".
          * * `relationships:instance-group-1` to find Cloud resources that have
          *   relationships with "instance-group-1" in the related resource name.
          * * `relationships:INSTANCE_TO_INSTANCEGROUP` to find compute instances that
    @@ -1557,22 +1443,20 @@ public com.google.protobuf.ByteString getQueryBytes() {
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The query to set. * @return This builder for chaining. */ - public Builder setQuery(java.lang.String value) { + public Builder setQuery( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + query_ = value; onChanged(); return this; } /** - * - * *
          * Optional. The query statement. See [how to construct a
          * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
    @@ -1593,7 +1477,11 @@ public Builder setQuery(java.lang.String value) {
          *   and its value is "prod".
          * * `labels.env:*` to find Cloud resources that have a label "env".
          * * `kmsKey:key` to find Cloud resources encrypted with a customer-managed
    -     *   encryption key whose name contains the word "key".
    +     *   encryption key whose name contains "key" as a word. This field is
    +     *   deprecated. Please use the `kmsKeys` field to retrieve KMS key
    +     *   information.
    +     * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
    +     *   encryption keys whose name contains the word "key".
          * * `relationships:instance-group-1` to find Cloud resources that have
          *   relationships with "instance-group-1" in the related resource name.
          * * `relationships:INSTANCE_TO_INSTANCEGROUP` to find compute instances that
    @@ -1623,18 +1511,15 @@ public Builder setQuery(java.lang.String value) {
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearQuery() { - + query_ = getDefaultInstance().getQuery(); onChanged(); return this; } /** - * - * *
          * Optional. The query statement. See [how to construct a
          * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
    @@ -1655,7 +1540,11 @@ public Builder clearQuery() {
          *   and its value is "prod".
          * * `labels.env:*` to find Cloud resources that have a label "env".
          * * `kmsKey:key` to find Cloud resources encrypted with a customer-managed
    -     *   encryption key whose name contains the word "key".
    +     *   encryption key whose name contains "key" as a word. This field is
    +     *   deprecated. Please use the `kmsKeys` field to retrieve KMS key
    +     *   information.
    +     * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
    +     *   encryption keys whose name contains the word "key".
          * * `relationships:instance-group-1` to find Cloud resources that have
          *   relationships with "instance-group-1" in the related resource name.
          * * `relationships:INSTANCE_TO_INSTANCEGROUP` to find compute instances that
    @@ -1685,36 +1574,32 @@ public Builder clearQuery() {
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for query to set. * @return This builder for chaining. */ - public Builder setQueryBytes(com.google.protobuf.ByteString value) { + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList assetTypes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAssetTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assetTypes_ = new com.google.protobuf.LazyStringArrayList(assetTypes_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
    -     * Optional. A list of asset types that this request searches for. If empty,
    -     * it will search all the [searchable asset
    +     * Optional. A list of asset types that this request searches for. If empty, it will
    +     * search all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -1727,18 +1612,16 @@ private void ensureAssetTypesIsMutable() {
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList getAssetTypesList() { + public com.google.protobuf.ProtocolStringList + getAssetTypesList() { return assetTypes_.getUnmodifiableView(); } /** - * - * *
    -     * Optional. A list of asset types that this request searches for. If empty,
    -     * it will search all the [searchable asset
    +     * Optional. A list of asset types that this request searches for. If empty, it will
    +     * search all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -1751,18 +1634,15 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() {
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** - * - * *
    -     * Optional. A list of asset types that this request searches for. If empty,
    -     * it will search all the [searchable asset
    +     * Optional. A list of asset types that this request searches for. If empty, it will
    +     * search all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -1775,7 +1655,6 @@ public int getAssetTypesCount() {
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -1783,11 +1662,9 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** - * - * *
    -     * Optional. A list of asset types that this request searches for. If empty,
    -     * it will search all the [searchable asset
    +     * Optional. A list of asset types that this request searches for. If empty, it will
    +     * search all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -1800,19 +1677,17 @@ public java.lang.String getAssetTypes(int index) {
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString + getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } /** - * - * *
    -     * Optional. A list of asset types that this request searches for. If empty,
    -     * it will search all the [searchable asset
    +     * Optional. A list of asset types that this request searches for. If empty, it will
    +     * search all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -1825,26 +1700,24 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) {
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The assetTypes to set. * @return This builder for chaining. */ - public Builder setAssetTypes(int index, java.lang.String value) { + public Builder setAssetTypes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.set(index, value); onChanged(); return this; } /** - * - * *
    -     * Optional. A list of asset types that this request searches for. If empty,
    -     * it will search all the [searchable asset
    +     * Optional. A list of asset types that this request searches for. If empty, it will
    +     * search all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -1857,25 +1730,23 @@ public Builder setAssetTypes(int index, java.lang.String value) {
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypes(java.lang.String value) { + public Builder addAssetTypes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); return this; } /** - * - * *
    -     * Optional. A list of asset types that this request searches for. If empty,
    -     * it will search all the [searchable asset
    +     * Optional. A list of asset types that this request searches for. If empty, it will
    +     * search all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -1888,22 +1759,21 @@ public Builder addAssetTypes(java.lang.String value) {
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The assetTypes to add. * @return This builder for chaining. */ - public Builder addAllAssetTypes(java.lang.Iterable values) { + public Builder addAllAssetTypes( + java.lang.Iterable values) { ensureAssetTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, assetTypes_); onChanged(); return this; } /** - * - * *
    -     * Optional. A list of asset types that this request searches for. If empty,
    -     * it will search all the [searchable asset
    +     * Optional. A list of asset types that this request searches for. If empty, it will
    +     * search all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -1916,7 +1786,6 @@ public Builder addAllAssetTypes(java.lang.Iterable values) {
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1926,11 +1795,9 @@ public Builder clearAssetTypes() { return this; } /** - * - * *
    -     * Optional. A list of asset types that this request searches for. If empty,
    -     * it will search all the [searchable asset
    +     * Optional. A list of asset types that this request searches for. If empty, it will
    +     * search all the [searchable asset
          * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
          * Regular expressions are also supported. For example:
          * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -1943,35 +1810,31 @@ public Builder clearAssetTypes() {
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { + public Builder addAssetTypesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
    -     * Optional. The page size for search result pagination. Page size is capped
    -     * at 500 even if a larger value is given. If set to zero, server will pick an
    -     * appropriate default. Returned results may be fewer than requested. When
    -     * this happens, there could be more results as long as `next_page_token` is
    -     * returned.
    +     * Optional. The page size for search result pagination. Page size is capped at 500 even
    +     * if a larger value is given. If set to zero, server will pick an appropriate
    +     * default. Returned results may be fewer than requested. When this happens,
    +     * there could be more results as long as `next_page_token` is returned.
          * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -1979,44 +1842,36 @@ public int getPageSize() { return pageSize_; } /** - * - * *
    -     * Optional. The page size for search result pagination. Page size is capped
    -     * at 500 even if a larger value is given. If set to zero, server will pick an
    -     * appropriate default. Returned results may be fewer than requested. When
    -     * this happens, there could be more results as long as `next_page_token` is
    -     * returned.
    +     * Optional. The page size for search result pagination. Page size is capped at 500 even
    +     * if a larger value is given. If set to zero, server will pick an appropriate
    +     * default. Returned results may be fewer than requested. When this happens,
    +     * there could be more results as long as `next_page_token` is returned.
          * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
    -     * Optional. The page size for search result pagination. Page size is capped
    -     * at 500 even if a larger value is given. If set to zero, server will pick an
    -     * appropriate default. Returned results may be fewer than requested. When
    -     * this happens, there could be more results as long as `next_page_token` is
    -     * returned.
    +     * Optional. The page size for search result pagination. Page size is capped at 500 even
    +     * if a larger value is given. If set to zero, server will pick an appropriate
    +     * default. Returned results may be fewer than requested. When this happens,
    +     * there could be more results as long as `next_page_token` is returned.
          * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -2024,23 +1879,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
    -     * Optional. If present, then retrieve the next batch of results from the
    -     * preceding call to this method. `page_token` must be the value of
    -     * `next_page_token` from the previous response. The values of all other
    -     * method parameters, must be identical to those in the previous call.
    +     * Optional. If present, then retrieve the next batch of results from the preceding call
    +     * to this method. `page_token` must be the value of `next_page_token` from
    +     * the previous response. The values of all other method parameters, must be
    +     * identical to those in the previous call.
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -2049,24 +1902,23 @@ public java.lang.String getPageToken() { } } /** - * - * *
    -     * Optional. If present, then retrieve the next batch of results from the
    -     * preceding call to this method. `page_token` must be the value of
    -     * `next_page_token` from the previous response. The values of all other
    -     * method parameters, must be identical to those in the previous call.
    +     * Optional. If present, then retrieve the next batch of results from the preceding call
    +     * to this method. `page_token` must be the value of `next_page_token` from
    +     * the previous response. The values of all other method parameters, must be
    +     * identical to those in the previous call.
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -2074,70 +1926,63 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
    -     * Optional. If present, then retrieve the next batch of results from the
    -     * preceding call to this method. `page_token` must be the value of
    -     * `next_page_token` from the previous response. The values of all other
    -     * method parameters, must be identical to those in the previous call.
    +     * Optional. If present, then retrieve the next batch of results from the preceding call
    +     * to this method. `page_token` must be the value of `next_page_token` from
    +     * the previous response. The values of all other method parameters, must be
    +     * identical to those in the previous call.
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
    -     * Optional. If present, then retrieve the next batch of results from the
    -     * preceding call to this method. `page_token` must be the value of
    -     * `next_page_token` from the previous response. The values of all other
    -     * method parameters, must be identical to those in the previous call.
    +     * Optional. If present, then retrieve the next batch of results from the preceding call
    +     * to this method. `page_token` must be the value of `next_page_token` from
    +     * the previous response. The values of all other method parameters, must be
    +     * identical to those in the previous call.
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
    -     * Optional. If present, then retrieve the next batch of results from the
    -     * preceding call to this method. `page_token` must be the value of
    -     * `next_page_token` from the previous response. The values of all other
    -     * method parameters, must be identical to those in the previous call.
    +     * Optional. If present, then retrieve the next batch of results from the preceding call
    +     * to this method. `page_token` must be the value of `next_page_token` from
    +     * the previous response. The values of all other method parameters, must be
    +     * identical to those in the previous call.
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -2145,12 +1990,10 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
    -     * Optional. A comma-separated list of fields specifying the sorting order of
    -     * the results. The default order is ascending. Add " DESC" after the field
    -     * name to indicate descending order. Redundant space characters are ignored.
    +     * Optional. A comma-separated list of fields specifying the sorting order of the
    +     * results. The default order is ascending. Add " DESC" after the field name
    +     * to indicate descending order. Redundant space characters are ignored.
          * Example: "location DESC, name".
          * Only singular primitive fields in the response are sortable:
          *   * name
    @@ -2159,25 +2002,24 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
          *   * displayName
          *   * description
          *   * location
    -     *   * kmsKey
          *   * createTime
          *   * updateTime
          *   * state
          *   * parentFullResourceName
          *   * parentAssetType
    -     * All the other fields such as repeated fields (e.g., `networkTags`), map
    -     * fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`)
    -     * are not supported.
    +     * All the other fields such as repeated fields (e.g., `networkTags`,
    +     * `kmsKeys`), map fields (e.g., `labels`) and struct fields (e.g.,
    +     * `additionalAttributes`) are not supported.
          * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -2186,12 +2028,10 @@ public java.lang.String getOrderBy() { } } /** - * - * *
    -     * Optional. A comma-separated list of fields specifying the sorting order of
    -     * the results. The default order is ascending. Add " DESC" after the field
    -     * name to indicate descending order. Redundant space characters are ignored.
    +     * Optional. A comma-separated list of fields specifying the sorting order of the
    +     * results. The default order is ascending. Add " DESC" after the field name
    +     * to indicate descending order. Redundant space characters are ignored.
          * Example: "location DESC, name".
          * Only singular primitive fields in the response are sortable:
          *   * name
    @@ -2200,26 +2040,26 @@ public java.lang.String getOrderBy() {
          *   * displayName
          *   * description
          *   * location
    -     *   * kmsKey
          *   * createTime
          *   * updateTime
          *   * state
          *   * parentFullResourceName
          *   * parentAssetType
    -     * All the other fields such as repeated fields (e.g., `networkTags`), map
    -     * fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`)
    -     * are not supported.
    +     * All the other fields such as repeated fields (e.g., `networkTags`,
    +     * `kmsKeys`), map fields (e.g., `labels`) and struct fields (e.g.,
    +     * `additionalAttributes`) are not supported.
          * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -2227,12 +2067,10 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
    -     * Optional. A comma-separated list of fields specifying the sorting order of
    -     * the results. The default order is ascending. Add " DESC" after the field
    -     * name to indicate descending order. Redundant space characters are ignored.
    +     * Optional. A comma-separated list of fields specifying the sorting order of the
    +     * results. The default order is ascending. Add " DESC" after the field name
    +     * to indicate descending order. Redundant space characters are ignored.
          * Example: "location DESC, name".
          * Only singular primitive fields in the response are sortable:
          *   * name
    @@ -2241,38 +2079,35 @@ public com.google.protobuf.ByteString getOrderByBytes() {
          *   * displayName
          *   * description
          *   * location
    -     *   * kmsKey
          *   * createTime
          *   * updateTime
          *   * state
          *   * parentFullResourceName
          *   * parentAssetType
    -     * All the other fields such as repeated fields (e.g., `networkTags`), map
    -     * fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`)
    -     * are not supported.
    +     * All the other fields such as repeated fields (e.g., `networkTags`,
    +     * `kmsKeys`), map fields (e.g., `labels`) and struct fields (e.g.,
    +     * `additionalAttributes`) are not supported.
          * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
    -     * Optional. A comma-separated list of fields specifying the sorting order of
    -     * the results. The default order is ascending. Add " DESC" after the field
    -     * name to indicate descending order. Redundant space characters are ignored.
    +     * Optional. A comma-separated list of fields specifying the sorting order of the
    +     * results. The default order is ascending. Add " DESC" after the field name
    +     * to indicate descending order. Redundant space characters are ignored.
          * Example: "location DESC, name".
          * Only singular primitive fields in the response are sortable:
          *   * name
    @@ -2281,34 +2116,30 @@ public Builder setOrderBy(java.lang.String value) {
          *   * displayName
          *   * description
          *   * location
    -     *   * kmsKey
          *   * createTime
          *   * updateTime
          *   * state
          *   * parentFullResourceName
          *   * parentAssetType
    -     * All the other fields such as repeated fields (e.g., `networkTags`), map
    -     * fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`)
    -     * are not supported.
    +     * All the other fields such as repeated fields (e.g., `networkTags`,
    +     * `kmsKeys`), map fields (e.g., `labels`) and struct fields (e.g.,
    +     * `additionalAttributes`) are not supported.
          * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
    -     * Optional. A comma-separated list of fields specifying the sorting order of
    -     * the results. The default order is ascending. Add " DESC" after the field
    -     * name to indicate descending order. Redundant space characters are ignored.
    +     * Optional. A comma-separated list of fields specifying the sorting order of the
    +     * results. The default order is ascending. Add " DESC" after the field name
    +     * to indicate descending order. Redundant space characters are ignored.
          * Example: "location DESC, name".
          * Only singular primitive fields in the response are sortable:
          *   * name
    @@ -2317,28 +2148,27 @@ public Builder clearOrderBy() {
          *   * displayName
          *   * description
          *   * location
    -     *   * kmsKey
          *   * createTime
          *   * updateTime
          *   * state
          *   * parentFullResourceName
          *   * parentAssetType
    -     * All the other fields such as repeated fields (e.g., `networkTags`), map
    -     * fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`)
    -     * are not supported.
    +     * All the other fields such as repeated fields (e.g., `networkTags`,
    +     * `kmsKeys`), map fields (e.g., `labels`) and struct fields (e.g.,
    +     * `additionalAttributes`) are not supported.
          * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; @@ -2346,18 +2176,13 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.FieldMask readMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - readMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> readMaskBuilder_; /** - * - * *
    -     * Optional. A comma-separated list of fields specifying which fields to be
    -     * returned in ResourceSearchResult. Only '*' or combination of top level
    -     * fields can be specified. Field names of both snake_case and camelCase are
    -     * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +     * Optional. A comma-separated list of fields specifying which fields to be returned in
    +     * ResourceSearchResult. Only '*' or combination of top level fields can be
    +     * specified. Field names of both snake_case and camelCase are supported.
    +     * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
          * The read_mask paths must be valid field paths listed but not limited to
          * (both snake_case and camelCase are supported):
          *   * name
    @@ -2371,7 +2196,9 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
          *   * tagValueIds
          *   * labels
          *   * networkTags
    -     *   * kmsKey
    +     *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +     *     retrieve KMS key information.)
    +     *   * kmsKeys
          *   * createTime
          *   * updateTime
          *   * state
    @@ -2384,22 +2211,18 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
          * Any invalid field path will trigger INVALID_ARGUMENT error.
          * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the readMask field is set. */ public boolean hasReadMask() { return readMaskBuilder_ != null || readMask_ != null; } /** - * - * *
    -     * Optional. A comma-separated list of fields specifying which fields to be
    -     * returned in ResourceSearchResult. Only '*' or combination of top level
    -     * fields can be specified. Field names of both snake_case and camelCase are
    -     * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +     * Optional. A comma-separated list of fields specifying which fields to be returned in
    +     * ResourceSearchResult. Only '*' or combination of top level fields can be
    +     * specified. Field names of both snake_case and camelCase are supported.
    +     * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
          * The read_mask paths must be valid field paths listed but not limited to
          * (both snake_case and camelCase are supported):
          *   * name
    @@ -2413,7 +2236,9 @@ public boolean hasReadMask() {
          *   * tagValueIds
          *   * labels
          *   * networkTags
    -     *   * kmsKey
    +     *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +     *     retrieve KMS key information.)
    +     *   * kmsKeys
          *   * createTime
          *   * updateTime
          *   * state
    @@ -2426,9 +2251,7 @@ public boolean hasReadMask() {
          * Any invalid field path will trigger INVALID_ARGUMENT error.
          * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -2439,13 +2262,11 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** - * - * *
    -     * Optional. A comma-separated list of fields specifying which fields to be
    -     * returned in ResourceSearchResult. Only '*' or combination of top level
    -     * fields can be specified. Field names of both snake_case and camelCase are
    -     * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +     * Optional. A comma-separated list of fields specifying which fields to be returned in
    +     * ResourceSearchResult. Only '*' or combination of top level fields can be
    +     * specified. Field names of both snake_case and camelCase are supported.
    +     * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
          * The read_mask paths must be valid field paths listed but not limited to
          * (both snake_case and camelCase are supported):
          *   * name
    @@ -2459,7 +2280,9 @@ public com.google.protobuf.FieldMask getReadMask() {
          *   * tagValueIds
          *   * labels
          *   * networkTags
    -     *   * kmsKey
    +     *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +     *     retrieve KMS key information.)
    +     *   * kmsKeys
          *   * createTime
          *   * updateTime
          *   * state
    @@ -2472,8 +2295,7 @@ public com.google.protobuf.FieldMask getReadMask() {
          * Any invalid field path will trigger INVALID_ARGUMENT error.
          * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { @@ -2489,13 +2311,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
    -     * Optional. A comma-separated list of fields specifying which fields to be
    -     * returned in ResourceSearchResult. Only '*' or combination of top level
    -     * fields can be specified. Field names of both snake_case and camelCase are
    -     * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +     * Optional. A comma-separated list of fields specifying which fields to be returned in
    +     * ResourceSearchResult. Only '*' or combination of top level fields can be
    +     * specified. Field names of both snake_case and camelCase are supported.
    +     * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
          * The read_mask paths must be valid field paths listed but not limited to
          * (both snake_case and camelCase are supported):
          *   * name
    @@ -2509,7 +2329,9 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) {
          *   * tagValueIds
          *   * labels
          *   * networkTags
    -     *   * kmsKey
    +     *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +     *     retrieve KMS key information.)
    +     *   * kmsKeys
          *   * createTime
          *   * updateTime
          *   * state
    @@ -2522,10 +2344,10 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) {
          * Any invalid field path will trigger INVALID_ARGUMENT error.
          * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setReadMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); onChanged(); @@ -2536,13 +2358,11 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue return this; } /** - * - * *
    -     * Optional. A comma-separated list of fields specifying which fields to be
    -     * returned in ResourceSearchResult. Only '*' or combination of top level
    -     * fields can be specified. Field names of both snake_case and camelCase are
    -     * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +     * Optional. A comma-separated list of fields specifying which fields to be returned in
    +     * ResourceSearchResult. Only '*' or combination of top level fields can be
    +     * specified. Field names of both snake_case and camelCase are supported.
    +     * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
          * The read_mask paths must be valid field paths listed but not limited to
          * (both snake_case and camelCase are supported):
          *   * name
    @@ -2556,7 +2376,9 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue
          *   * tagValueIds
          *   * labels
          *   * networkTags
    -     *   * kmsKey
    +     *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +     *     retrieve KMS key information.)
    +     *   * kmsKeys
          *   * createTime
          *   * updateTime
          *   * state
    @@ -2569,14 +2391,13 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue
          * Any invalid field path will trigger INVALID_ARGUMENT error.
          * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { if (readMask_ != null) { readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); } else { readMask_ = value; } @@ -2588,13 +2409,11 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
    -     * Optional. A comma-separated list of fields specifying which fields to be
    -     * returned in ResourceSearchResult. Only '*' or combination of top level
    -     * fields can be specified. Field names of both snake_case and camelCase are
    -     * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +     * Optional. A comma-separated list of fields specifying which fields to be returned in
    +     * ResourceSearchResult. Only '*' or combination of top level fields can be
    +     * specified. Field names of both snake_case and camelCase are supported.
    +     * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
          * The read_mask paths must be valid field paths listed but not limited to
          * (both snake_case and camelCase are supported):
          *   * name
    @@ -2608,7 +2427,9 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
          *   * tagValueIds
          *   * labels
          *   * networkTags
    -     *   * kmsKey
    +     *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +     *     retrieve KMS key information.)
    +     *   * kmsKeys
          *   * createTime
          *   * updateTime
          *   * state
    @@ -2621,8 +2442,7 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
          * Any invalid field path will trigger INVALID_ARGUMENT error.
          * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearReadMask() { if (readMaskBuilder_ == null) { @@ -2636,13 +2456,11 @@ public Builder clearReadMask() { return this; } /** - * - * *
    -     * Optional. A comma-separated list of fields specifying which fields to be
    -     * returned in ResourceSearchResult. Only '*' or combination of top level
    -     * fields can be specified. Field names of both snake_case and camelCase are
    -     * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +     * Optional. A comma-separated list of fields specifying which fields to be returned in
    +     * ResourceSearchResult. Only '*' or combination of top level fields can be
    +     * specified. Field names of both snake_case and camelCase are supported.
    +     * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
          * The read_mask paths must be valid field paths listed but not limited to
          * (both snake_case and camelCase are supported):
          *   * name
    @@ -2656,7 +2474,9 @@ public Builder clearReadMask() {
          *   * tagValueIds
          *   * labels
          *   * networkTags
    -     *   * kmsKey
    +     *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +     *     retrieve KMS key information.)
    +     *   * kmsKeys
          *   * createTime
          *   * updateTime
          *   * state
    @@ -2669,22 +2489,19 @@ public Builder clearReadMask() {
          * Any invalid field path will trigger INVALID_ARGUMENT error.
          * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + onChanged(); return getReadMaskFieldBuilder().getBuilder(); } /** - * - * *
    -     * Optional. A comma-separated list of fields specifying which fields to be
    -     * returned in ResourceSearchResult. Only '*' or combination of top level
    -     * fields can be specified. Field names of both snake_case and camelCase are
    -     * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +     * Optional. A comma-separated list of fields specifying which fields to be returned in
    +     * ResourceSearchResult. Only '*' or combination of top level fields can be
    +     * specified. Field names of both snake_case and camelCase are supported.
    +     * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
          * The read_mask paths must be valid field paths listed but not limited to
          * (both snake_case and camelCase are supported):
          *   * name
    @@ -2698,7 +2515,9 @@ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() {
          *   * tagValueIds
          *   * labels
          *   * networkTags
    -     *   * kmsKey
    +     *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +     *     retrieve KMS key information.)
    +     *   * kmsKeys
          *   * createTime
          *   * updateTime
          *   * state
    @@ -2711,24 +2530,22 @@ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() {
          * Any invalid field path will trigger INVALID_ARGUMENT error.
          * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { if (readMaskBuilder_ != null) { return readMaskBuilder_.getMessageOrBuilder(); } else { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + return readMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } } /** - * - * *
    -     * Optional. A comma-separated list of fields specifying which fields to be
    -     * returned in ResourceSearchResult. Only '*' or combination of top level
    -     * fields can be specified. Field names of both snake_case and camelCase are
    -     * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +     * Optional. A comma-separated list of fields specifying which fields to be returned in
    +     * ResourceSearchResult. Only '*' or combination of top level fields can be
    +     * specified. Field names of both snake_case and camelCase are supported.
    +     * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
          * The read_mask paths must be valid field paths listed but not limited to
          * (both snake_case and camelCase are supported):
          *   * name
    @@ -2742,7 +2559,9 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
          *   * tagValueIds
          *   * labels
          *   * networkTags
    -     *   * kmsKey
    +     *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +     *     retrieve KMS key information.)
    +     *   * kmsKeys
          *   * createTime
          *   * updateTime
          *   * state
    @@ -2755,28 +2574,24 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
          * Any invalid field path will trigger INVALID_ARGUMENT error.
          * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getReadMaskFieldBuilder() { if (readMaskBuilder_ == null) { - readMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getReadMask(), getParentForChildren(), isClean()); + readMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), + getParentForChildren(), + isClean()); readMask_ = null; } return readMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2786,12 +2601,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.SearchAllResourcesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.SearchAllResourcesRequest) private static final com.google.cloud.asset.v1.SearchAllResourcesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.SearchAllResourcesRequest(); } @@ -2800,16 +2615,27 @@ public static com.google.cloud.asset.v1.SearchAllResourcesRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchAllResourcesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchAllResourcesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAllResourcesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2824,4 +2650,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.asset.v1.SearchAllResourcesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequestOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequestOrBuilder.java similarity index 79% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequestOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequestOrBuilder.java index c80c143d27bc..96eef4aab2f1 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequestOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequestOrBuilder.java @@ -1,35 +1,16 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface SearchAllResourcesRequestOrBuilder - extends +public interface SearchAllResourcesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.SearchAllResourcesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    -   * Required. A scope can be a project, a folder, or an organization. The
    -   * search is limited to the resources within the `scope`. The caller must be
    -   * granted the
    +   * Required. A scope can be a project, a folder, or an organization. The search is
    +   * limited to the resources within the `scope`. The caller must be granted the
        * [`cloudasset.assets.searchAllResources`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
        * permission on the desired scope.
        * The allowed values are:
    @@ -40,17 +21,13 @@ public interface SearchAllResourcesRequestOrBuilder
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The scope. */ java.lang.String getScope(); /** - * - * *
    -   * Required. A scope can be a project, a folder, or an organization. The
    -   * search is limited to the resources within the `scope`. The caller must be
    -   * granted the
    +   * Required. A scope can be a project, a folder, or an organization. The search is
    +   * limited to the resources within the `scope`. The caller must be granted the
        * [`cloudasset.assets.searchAllResources`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
        * permission on the desired scope.
        * The allowed values are:
    @@ -61,14 +38,12 @@ public interface SearchAllResourcesRequestOrBuilder
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for scope. */ - com.google.protobuf.ByteString getScopeBytes(); + com.google.protobuf.ByteString + getScopeBytes(); /** - * - * *
        * Optional. The query statement. See [how to construct a
        * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
    @@ -89,7 +64,11 @@ public interface SearchAllResourcesRequestOrBuilder
        *   and its value is "prod".
        * * `labels.env:*` to find Cloud resources that have a label "env".
        * * `kmsKey:key` to find Cloud resources encrypted with a customer-managed
    -   *   encryption key whose name contains the word "key".
    +   *   encryption key whose name contains "key" as a word. This field is
    +   *   deprecated. Please use the `kmsKeys` field to retrieve KMS key
    +   *   information.
    +   * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
    +   *   encryption keys whose name contains the word "key".
        * * `relationships:instance-group-1` to find Cloud resources that have
        *   relationships with "instance-group-1" in the related resource name.
        * * `relationships:INSTANCE_TO_INSTANCEGROUP` to find compute instances that
    @@ -119,13 +98,10 @@ public interface SearchAllResourcesRequestOrBuilder
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The query. */ java.lang.String getQuery(); /** - * - * *
        * Optional. The query statement. See [how to construct a
        * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
    @@ -146,7 +122,11 @@ public interface SearchAllResourcesRequestOrBuilder
        *   and its value is "prod".
        * * `labels.env:*` to find Cloud resources that have a label "env".
        * * `kmsKey:key` to find Cloud resources encrypted with a customer-managed
    -   *   encryption key whose name contains the word "key".
    +   *   encryption key whose name contains "key" as a word. This field is
    +   *   deprecated. Please use the `kmsKeys` field to retrieve KMS key
    +   *   information.
    +   * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
    +   *   encryption keys whose name contains the word "key".
        * * `relationships:instance-group-1` to find Cloud resources that have
        *   relationships with "instance-group-1" in the related resource name.
        * * `relationships:INSTANCE_TO_INSTANCEGROUP` to find compute instances that
    @@ -176,17 +156,15 @@ public interface SearchAllResourcesRequestOrBuilder
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for query. */ - com.google.protobuf.ByteString getQueryBytes(); + com.google.protobuf.ByteString + getQueryBytes(); /** - * - * *
    -   * Optional. A list of asset types that this request searches for. If empty,
    -   * it will search all the [searchable asset
    +   * Optional. A list of asset types that this request searches for. If empty, it will
    +   * search all the [searchable asset
        * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -199,16 +177,14 @@ public interface SearchAllResourcesRequestOrBuilder
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the assetTypes. */ - java.util.List getAssetTypesList(); + java.util.List + getAssetTypesList(); /** - * - * *
    -   * Optional. A list of asset types that this request searches for. If empty,
    -   * it will search all the [searchable asset
    +   * Optional. A list of asset types that this request searches for. If empty, it will
    +   * search all the [searchable asset
        * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -221,16 +197,13 @@ public interface SearchAllResourcesRequestOrBuilder
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of assetTypes. */ int getAssetTypesCount(); /** - * - * *
    -   * Optional. A list of asset types that this request searches for. If empty,
    -   * it will search all the [searchable asset
    +   * Optional. A list of asset types that this request searches for. If empty, it will
    +   * search all the [searchable asset
        * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -243,17 +216,14 @@ public interface SearchAllResourcesRequestOrBuilder
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ java.lang.String getAssetTypes(int index); /** - * - * *
    -   * Optional. A list of asset types that this request searches for. If empty,
    -   * it will search all the [searchable asset
    +   * Optional. A list of asset types that this request searches for. If empty, it will
    +   * search all the [searchable asset
        * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
        * Regular expressions are also supported. For example:
        * * "compute.googleapis.com.*" snapshots resources whose asset type starts
    @@ -266,67 +236,56 @@ public interface SearchAllResourcesRequestOrBuilder
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - com.google.protobuf.ByteString getAssetTypesBytes(int index); + com.google.protobuf.ByteString + getAssetTypesBytes(int index); /** - * - * *
    -   * Optional. The page size for search result pagination. Page size is capped
    -   * at 500 even if a larger value is given. If set to zero, server will pick an
    -   * appropriate default. Returned results may be fewer than requested. When
    -   * this happens, there could be more results as long as `next_page_token` is
    -   * returned.
    +   * Optional. The page size for search result pagination. Page size is capped at 500 even
    +   * if a larger value is given. If set to zero, server will pick an appropriate
    +   * default. Returned results may be fewer than requested. When this happens,
    +   * there could be more results as long as `next_page_token` is returned.
        * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    -   * Optional. If present, then retrieve the next batch of results from the
    -   * preceding call to this method. `page_token` must be the value of
    -   * `next_page_token` from the previous response. The values of all other
    -   * method parameters, must be identical to those in the previous call.
    +   * Optional. If present, then retrieve the next batch of results from the preceding call
    +   * to this method. `page_token` must be the value of `next_page_token` from
    +   * the previous response. The values of all other method parameters, must be
    +   * identical to those in the previous call.
        * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    -   * Optional. If present, then retrieve the next batch of results from the
    -   * preceding call to this method. `page_token` must be the value of
    -   * `next_page_token` from the previous response. The values of all other
    -   * method parameters, must be identical to those in the previous call.
    +   * Optional. If present, then retrieve the next batch of results from the preceding call
    +   * to this method. `page_token` must be the value of `next_page_token` from
    +   * the previous response. The values of all other method parameters, must be
    +   * identical to those in the previous call.
        * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    -   * Optional. A comma-separated list of fields specifying the sorting order of
    -   * the results. The default order is ascending. Add " DESC" after the field
    -   * name to indicate descending order. Redundant space characters are ignored.
    +   * Optional. A comma-separated list of fields specifying the sorting order of the
    +   * results. The default order is ascending. Add " DESC" after the field name
    +   * to indicate descending order. Redundant space characters are ignored.
        * Example: "location DESC, name".
        * Only singular primitive fields in the response are sortable:
        *   * name
    @@ -335,29 +294,25 @@ public interface SearchAllResourcesRequestOrBuilder
        *   * displayName
        *   * description
        *   * location
    -   *   * kmsKey
        *   * createTime
        *   * updateTime
        *   * state
        *   * parentFullResourceName
        *   * parentAssetType
    -   * All the other fields such as repeated fields (e.g., `networkTags`), map
    -   * fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`)
    -   * are not supported.
    +   * All the other fields such as repeated fields (e.g., `networkTags`,
    +   * `kmsKeys`), map fields (e.g., `labels`) and struct fields (e.g.,
    +   * `additionalAttributes`) are not supported.
        * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    -   * Optional. A comma-separated list of fields specifying the sorting order of
    -   * the results. The default order is ascending. Add " DESC" after the field
    -   * name to indicate descending order. Redundant space characters are ignored.
    +   * Optional. A comma-separated list of fields specifying the sorting order of the
    +   * results. The default order is ascending. Add " DESC" after the field name
    +   * to indicate descending order. Redundant space characters are ignored.
        * Example: "location DESC, name".
        * Only singular primitive fields in the response are sortable:
        *   * name
    @@ -366,31 +321,28 @@ public interface SearchAllResourcesRequestOrBuilder
        *   * displayName
        *   * description
        *   * location
    -   *   * kmsKey
        *   * createTime
        *   * updateTime
        *   * state
        *   * parentFullResourceName
        *   * parentAssetType
    -   * All the other fields such as repeated fields (e.g., `networkTags`), map
    -   * fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`)
    -   * are not supported.
    +   * All the other fields such as repeated fields (e.g., `networkTags`,
    +   * `kmsKeys`), map fields (e.g., `labels`) and struct fields (e.g.,
    +   * `additionalAttributes`) are not supported.
        * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    -   * Optional. A comma-separated list of fields specifying which fields to be
    -   * returned in ResourceSearchResult. Only '*' or combination of top level
    -   * fields can be specified. Field names of both snake_case and camelCase are
    -   * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +   * Optional. A comma-separated list of fields specifying which fields to be returned in
    +   * ResourceSearchResult. Only '*' or combination of top level fields can be
    +   * specified. Field names of both snake_case and camelCase are supported.
    +   * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
        * The read_mask paths must be valid field paths listed but not limited to
        * (both snake_case and camelCase are supported):
        *   * name
    @@ -404,7 +356,9 @@ public interface SearchAllResourcesRequestOrBuilder
        *   * tagValueIds
        *   * labels
        *   * networkTags
    -   *   * kmsKey
    +   *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +   *     retrieve KMS key information.)
    +   *   * kmsKeys
        *   * createTime
        *   * updateTime
        *   * state
    @@ -417,20 +371,16 @@ public interface SearchAllResourcesRequestOrBuilder
        * Any invalid field path will trigger INVALID_ARGUMENT error.
        * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the readMask field is set. */ boolean hasReadMask(); /** - * - * *
    -   * Optional. A comma-separated list of fields specifying which fields to be
    -   * returned in ResourceSearchResult. Only '*' or combination of top level
    -   * fields can be specified. Field names of both snake_case and camelCase are
    -   * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +   * Optional. A comma-separated list of fields specifying which fields to be returned in
    +   * ResourceSearchResult. Only '*' or combination of top level fields can be
    +   * specified. Field names of both snake_case and camelCase are supported.
    +   * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
        * The read_mask paths must be valid field paths listed but not limited to
        * (both snake_case and camelCase are supported):
        *   * name
    @@ -444,7 +394,9 @@ public interface SearchAllResourcesRequestOrBuilder
        *   * tagValueIds
        *   * labels
        *   * networkTags
    -   *   * kmsKey
    +   *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +   *     retrieve KMS key information.)
    +   *   * kmsKeys
        *   * createTime
        *   * updateTime
        *   * state
    @@ -457,20 +409,16 @@ public interface SearchAllResourcesRequestOrBuilder
        * Any invalid field path will trigger INVALID_ARGUMENT error.
        * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The readMask. */ com.google.protobuf.FieldMask getReadMask(); /** - * - * *
    -   * Optional. A comma-separated list of fields specifying which fields to be
    -   * returned in ResourceSearchResult. Only '*' or combination of top level
    -   * fields can be specified. Field names of both snake_case and camelCase are
    -   * supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +   * Optional. A comma-separated list of fields specifying which fields to be returned in
    +   * ResourceSearchResult. Only '*' or combination of top level fields can be
    +   * specified. Field names of both snake_case and camelCase are supported.
    +   * Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
        * The read_mask paths must be valid field paths listed but not limited to
        * (both snake_case and camelCase are supported):
        *   * name
    @@ -484,7 +432,9 @@ public interface SearchAllResourcesRequestOrBuilder
        *   * tagValueIds
        *   * labels
        *   * networkTags
    -   *   * kmsKey
    +   *   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +   *     retrieve KMS key information.)
    +   *   * kmsKeys
        *   * createTime
        *   * updateTime
        *   * state
    @@ -497,8 +447,7 @@ public interface SearchAllResourcesRequestOrBuilder
        * Any invalid field path will trigger INVALID_ARGUMENT error.
        * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponse.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponse.java similarity index 70% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponse.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponse.java index a5e70696eed6..e082c67164a8 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponse.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * Search all resources response.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.SearchAllResourcesResponse} */ -public final class SearchAllResourcesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SearchAllResourcesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.SearchAllResourcesResponse) SearchAllResourcesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SearchAllResourcesResponse.newBuilder() to construct. private SearchAllResourcesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SearchAllResourcesResponse() { results_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,97 +26,32 @@ private SearchAllResourcesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SearchAllResourcesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private SearchAllResourcesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - results_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - results_.add( - input.readMessage( - com.google.cloud.asset.v1.ResourceSearchResult.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - results_ = java.util.Collections.unmodifiableList(results_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.SearchAllResourcesResponse.class, - com.google.cloud.asset.v1.SearchAllResourcesResponse.Builder.class); + com.google.cloud.asset.v1.SearchAllResourcesResponse.class, com.google.cloud.asset.v1.SearchAllResourcesResponse.Builder.class); } public static final int RESULTS_FIELD_NUMBER = 1; private java.util.List results_; /** - * - * *
        * A list of Resources that match the search query. It contains the resource
        * standard metadata information.
    @@ -147,8 +64,6 @@ public java.util.List getResults
         return results_;
       }
       /**
    -   *
    -   *
        * 
        * A list of Resources that match the search query. It contains the resource
        * standard metadata information.
    @@ -157,13 +72,11 @@ public java.util.List getResults
        * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
        */
       @java.lang.Override
    -  public java.util.List
    +  public java.util.List 
           getResultsOrBuilderList() {
         return results_;
       }
       /**
    -   *
    -   *
        * 
        * A list of Resources that match the search query. It contains the resource
        * standard metadata information.
    @@ -176,8 +89,6 @@ public int getResultsCount() {
         return results_.size();
       }
       /**
    -   *
    -   *
        * 
        * A list of Resources that match the search query. It contains the resource
        * standard metadata information.
    @@ -190,8 +101,6 @@ public com.google.cloud.asset.v1.ResourceSearchResult getResults(int index) {
         return results_.get(index);
       }
       /**
    -   *
    -   *
        * 
        * A list of Resources that match the search query. It contains the resource
        * standard metadata information.
    @@ -200,15 +109,14 @@ public com.google.cloud.asset.v1.ResourceSearchResult getResults(int index) {
        * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
        */
       @java.lang.Override
    -  public com.google.cloud.asset.v1.ResourceSearchResultOrBuilder getResultsOrBuilder(int index) {
    +  public com.google.cloud.asset.v1.ResourceSearchResultOrBuilder getResultsOrBuilder(
    +      int index) {
         return results_.get(index);
       }
     
       public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
       private volatile java.lang.Object nextPageToken_;
       /**
    -   *
    -   *
        * 
        * If there are more results than those appearing in this response, then
        * `next_page_token` is included. To get the next set of results, call this
    @@ -216,7 +124,6 @@ public com.google.cloud.asset.v1.ResourceSearchResultOrBuilder getResultsOrBuild
        * 
    * * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -225,15 +132,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
        * If there are more results than those appearing in this response, then
        * `next_page_token` is included. To get the next set of results, call this
    @@ -241,15 +147,16 @@ public java.lang.String getNextPageToken() {
        * 
    * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -258,7 +165,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,14 +176,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeMessage(1, results_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -287,12 +194,13 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, results_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, results_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -300,17 +208,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.SearchAllResourcesResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1.SearchAllResourcesResponse other = - (com.google.cloud.asset.v1.SearchAllResourcesResponse) obj; + com.google.cloud.asset.v1.SearchAllResourcesResponse other = (com.google.cloud.asset.v1.SearchAllResourcesResponse) obj; - if (!getResultsList().equals(other.getResultsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getResultsList() + .equals(other.getResultsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -327,168 +236,154 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.SearchAllResourcesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.SearchAllResourcesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.SearchAllResourcesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.SearchAllResourcesResponse 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.asset.v1.SearchAllResourcesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.SearchAllResourcesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.SearchAllResourcesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.SearchAllResourcesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.SearchAllResourcesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.SearchAllResourcesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.SearchAllResourcesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.SearchAllResourcesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.SearchAllResourcesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.SearchAllResourcesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.SearchAllResourcesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Search all resources response.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.SearchAllResourcesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.SearchAllResourcesResponse) com.google.cloud.asset.v1.SearchAllResourcesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.SearchAllResourcesResponse.class, - com.google.cloud.asset.v1.SearchAllResourcesResponse.Builder.class); + com.google.cloud.asset.v1.SearchAllResourcesResponse.class, com.google.cloud.asset.v1.SearchAllResourcesResponse.Builder.class); } // Construct using com.google.cloud.asset.v1.SearchAllResourcesResponse.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getResultsFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + results_ = null; resultsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor; } @java.lang.Override @@ -507,8 +402,7 @@ public com.google.cloud.asset.v1.SearchAllResourcesResponse build() { @java.lang.Override public com.google.cloud.asset.v1.SearchAllResourcesResponse buildPartial() { - com.google.cloud.asset.v1.SearchAllResourcesResponse result = - new com.google.cloud.asset.v1.SearchAllResourcesResponse(this); + com.google.cloud.asset.v1.SearchAllResourcesResponse result = new com.google.cloud.asset.v1.SearchAllResourcesResponse(this); int from_bitField0_ = bitField0_; if (resultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -528,39 +422,38 @@ public com.google.cloud.asset.v1.SearchAllResourcesResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.SearchAllResourcesResponse) { - return mergeFrom((com.google.cloud.asset.v1.SearchAllResourcesResponse) other); + return mergeFrom((com.google.cloud.asset.v1.SearchAllResourcesResponse)other); } else { super.mergeFrom(other); return this; @@ -568,8 +461,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.SearchAllResourcesResponse other) { - if (other == com.google.cloud.asset.v1.SearchAllResourcesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.SearchAllResourcesResponse.getDefaultInstance()) return this; if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { @@ -588,10 +480,9 @@ public Builder mergeFrom(com.google.cloud.asset.v1.SearchAllResourcesResponse ot resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); - resultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResultsFieldBuilder() - : null; + resultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResultsFieldBuilder() : null; } else { resultsBuilder_.addAllMessages(other.results_); } @@ -601,7 +492,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.SearchAllResourcesResponse ot nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -616,43 +507,65 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.SearchAllResourcesResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.asset.v1.ResourceSearchResult m = + input.readMessage( + com.google.cloud.asset.v1.ResourceSearchResult.parser(), + extensionRegistry); + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(m); + } else { + resultsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.SearchAllResourcesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.util.List results_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - results_ = - new java.util.ArrayList(results_); + results_ = new java.util.ArrayList(results_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.ResourceSearchResult, - com.google.cloud.asset.v1.ResourceSearchResult.Builder, - com.google.cloud.asset.v1.ResourceSearchResultOrBuilder> - resultsBuilder_; + com.google.cloud.asset.v1.ResourceSearchResult, com.google.cloud.asset.v1.ResourceSearchResult.Builder, com.google.cloud.asset.v1.ResourceSearchResultOrBuilder> resultsBuilder_; /** - * - * *
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -668,8 +581,6 @@ public java.util.List getResults
           }
         }
         /**
    -     *
    -     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -685,8 +596,6 @@ public int getResultsCount() {
           }
         }
         /**
    -     *
    -     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -702,8 +611,6 @@ public com.google.cloud.asset.v1.ResourceSearchResult getResults(int index) {
           }
         }
         /**
    -     *
    -     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -711,7 +618,8 @@ public com.google.cloud.asset.v1.ResourceSearchResult getResults(int index) {
          *
          * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
          */
    -    public Builder setResults(int index, com.google.cloud.asset.v1.ResourceSearchResult value) {
    +    public Builder setResults(
    +        int index, com.google.cloud.asset.v1.ResourceSearchResult value) {
           if (resultsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -725,8 +633,6 @@ public Builder setResults(int index, com.google.cloud.asset.v1.ResourceSearchRes
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -746,8 +652,6 @@ public Builder setResults(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -769,8 +673,6 @@ public Builder addResults(com.google.cloud.asset.v1.ResourceSearchResult value)
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -778,7 +680,8 @@ public Builder addResults(com.google.cloud.asset.v1.ResourceSearchResult value)
          *
          * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
          */
    -    public Builder addResults(int index, com.google.cloud.asset.v1.ResourceSearchResult value) {
    +    public Builder addResults(
    +        int index, com.google.cloud.asset.v1.ResourceSearchResult value) {
           if (resultsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -792,8 +695,6 @@ public Builder addResults(int index, com.google.cloud.asset.v1.ResourceSearchRes
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -813,8 +714,6 @@ public Builder addResults(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -834,8 +733,6 @@ public Builder addResults(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -847,7 +744,8 @@ public Builder addAllResults(
             java.lang.Iterable values) {
           if (resultsBuilder_ == null) {
             ensureResultsIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    +            values, results_);
             onChanged();
           } else {
             resultsBuilder_.addAllMessages(values);
    @@ -855,8 +753,6 @@ public Builder addAllResults(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -875,8 +771,6 @@ public Builder clearResults() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -895,8 +789,6 @@ public Builder removeResults(int index) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -904,12 +796,11 @@ public Builder removeResults(int index) {
          *
          * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
          */
    -    public com.google.cloud.asset.v1.ResourceSearchResult.Builder getResultsBuilder(int index) {
    +    public com.google.cloud.asset.v1.ResourceSearchResult.Builder getResultsBuilder(
    +        int index) {
           return getResultsFieldBuilder().getBuilder(index);
         }
         /**
    -     *
    -     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -917,16 +808,14 @@ public com.google.cloud.asset.v1.ResourceSearchResult.Builder getResultsBuilder(
          *
          * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
          */
    -    public com.google.cloud.asset.v1.ResourceSearchResultOrBuilder getResultsOrBuilder(int index) {
    +    public com.google.cloud.asset.v1.ResourceSearchResultOrBuilder getResultsOrBuilder(
    +        int index) {
           if (resultsBuilder_ == null) {
    -        return results_.get(index);
    -      } else {
    +        return results_.get(index);  } else {
             return resultsBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    -     *
    -     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -934,8 +823,8 @@ public com.google.cloud.asset.v1.ResourceSearchResultOrBuilder getResultsOrBuild
          *
          * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
          */
    -    public java.util.List
    -        getResultsOrBuilderList() {
    +    public java.util.List 
    +         getResultsOrBuilderList() {
           if (resultsBuilder_ != null) {
             return resultsBuilder_.getMessageOrBuilderList();
           } else {
    @@ -943,8 +832,6 @@ public com.google.cloud.asset.v1.ResourceSearchResultOrBuilder getResultsOrBuild
           }
         }
         /**
    -     *
    -     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -953,12 +840,10 @@ public com.google.cloud.asset.v1.ResourceSearchResultOrBuilder getResultsOrBuild
          * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
          */
         public com.google.cloud.asset.v1.ResourceSearchResult.Builder addResultsBuilder() {
    -      return getResultsFieldBuilder()
    -          .addBuilder(com.google.cloud.asset.v1.ResourceSearchResult.getDefaultInstance());
    +      return getResultsFieldBuilder().addBuilder(
    +          com.google.cloud.asset.v1.ResourceSearchResult.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -966,13 +851,12 @@ public com.google.cloud.asset.v1.ResourceSearchResult.Builder addResultsBuilder(
          *
          * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
          */
    -    public com.google.cloud.asset.v1.ResourceSearchResult.Builder addResultsBuilder(int index) {
    -      return getResultsFieldBuilder()
    -          .addBuilder(index, com.google.cloud.asset.v1.ResourceSearchResult.getDefaultInstance());
    +    public com.google.cloud.asset.v1.ResourceSearchResult.Builder addResultsBuilder(
    +        int index) {
    +      return getResultsFieldBuilder().addBuilder(
    +          index, com.google.cloud.asset.v1.ResourceSearchResult.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -980,23 +864,20 @@ public com.google.cloud.asset.v1.ResourceSearchResult.Builder addResultsBuilder(
          *
          * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
          */
    -    public java.util.List
    -        getResultsBuilderList() {
    +    public java.util.List 
    +         getResultsBuilderList() {
           return getResultsFieldBuilder().getBuilderList();
         }
    -
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.asset.v1.ResourceSearchResult,
    -            com.google.cloud.asset.v1.ResourceSearchResult.Builder,
    -            com.google.cloud.asset.v1.ResourceSearchResultOrBuilder>
    +        com.google.cloud.asset.v1.ResourceSearchResult, com.google.cloud.asset.v1.ResourceSearchResult.Builder, com.google.cloud.asset.v1.ResourceSearchResultOrBuilder> 
             getResultsFieldBuilder() {
           if (resultsBuilder_ == null) {
    -        resultsBuilder_ =
    -            new com.google.protobuf.RepeatedFieldBuilderV3<
    -                com.google.cloud.asset.v1.ResourceSearchResult,
    -                com.google.cloud.asset.v1.ResourceSearchResult.Builder,
    -                com.google.cloud.asset.v1.ResourceSearchResultOrBuilder>(
    -                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
    +        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    +            com.google.cloud.asset.v1.ResourceSearchResult, com.google.cloud.asset.v1.ResourceSearchResult.Builder, com.google.cloud.asset.v1.ResourceSearchResultOrBuilder>(
    +                results_,
    +                ((bitField0_ & 0x00000001) != 0),
    +                getParentForChildren(),
    +                isClean());
             results_ = null;
           }
           return resultsBuilder_;
    @@ -1004,8 +885,6 @@ public com.google.cloud.asset.v1.ResourceSearchResult.Builder addResultsBuilder(
     
         private java.lang.Object nextPageToken_ = "";
         /**
    -     *
    -     *
          * 
          * If there are more results than those appearing in this response, then
          * `next_page_token` is included. To get the next set of results, call this
    @@ -1013,13 +892,13 @@ public com.google.cloud.asset.v1.ResourceSearchResult.Builder addResultsBuilder(
          * 
    * * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1028,8 +907,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
          * If there are more results than those appearing in this response, then
          * `next_page_token` is included. To get the next set of results, call this
    @@ -1037,14 +914,15 @@ public java.lang.String getNextPageToken() {
          * 
    * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1052,8 +930,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
          * If there are more results than those appearing in this response, then
          * `next_page_token` is included. To get the next set of results, call this
    @@ -1061,22 +937,20 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
          * If there are more results than those appearing in this response, then
          * `next_page_token` is included. To get the next set of results, call this
    @@ -1084,18 +958,15 @@ public Builder setNextPageToken(java.lang.String value) {
          * 
    * * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
          * If there are more results than those appearing in this response, then
          * `next_page_token` is included. To get the next set of results, call this
    @@ -1103,23 +974,23 @@ 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1129,12 +1000,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.SearchAllResourcesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.SearchAllResourcesResponse) private static final com.google.cloud.asset.v1.SearchAllResourcesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.SearchAllResourcesResponse(); } @@ -1143,16 +1014,27 @@ public static com.google.cloud.asset.v1.SearchAllResourcesResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchAllResourcesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchAllResourcesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAllResourcesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1167,4 +1049,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.asset.v1.SearchAllResourcesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponseOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponseOrBuilder.java similarity index 74% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponseOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponseOrBuilder.java index 2a0215998613..d0999fac75c7 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponseOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface SearchAllResourcesResponseOrBuilder - extends +public interface SearchAllResourcesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.SearchAllResourcesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * A list of Resources that match the search query. It contains the resource
        * standard metadata information.
    @@ -33,10 +15,9 @@ public interface SearchAllResourcesResponseOrBuilder
        *
        * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
        */
    -  java.util.List getResultsList();
    +  java.util.List 
    +      getResultsList();
       /**
    -   *
    -   *
        * 
        * A list of Resources that match the search query. It contains the resource
        * standard metadata information.
    @@ -46,8 +27,6 @@ public interface SearchAllResourcesResponseOrBuilder
        */
       com.google.cloud.asset.v1.ResourceSearchResult getResults(int index);
       /**
    -   *
    -   *
        * 
        * A list of Resources that match the search query. It contains the resource
        * standard metadata information.
    @@ -57,8 +36,6 @@ public interface SearchAllResourcesResponseOrBuilder
        */
       int getResultsCount();
       /**
    -   *
    -   *
        * 
        * A list of Resources that match the search query. It contains the resource
        * standard metadata information.
    @@ -66,11 +43,9 @@ public interface SearchAllResourcesResponseOrBuilder
        *
        * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
        */
    -  java.util.List
    +  java.util.List 
           getResultsOrBuilderList();
       /**
    -   *
    -   *
        * 
        * A list of Resources that match the search query. It contains the resource
        * standard metadata information.
    @@ -78,11 +53,10 @@ public interface SearchAllResourcesResponseOrBuilder
        *
        * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
        */
    -  com.google.cloud.asset.v1.ResourceSearchResultOrBuilder getResultsOrBuilder(int index);
    +  com.google.cloud.asset.v1.ResourceSearchResultOrBuilder getResultsOrBuilder(
    +      int index);
     
       /**
    -   *
    -   *
        * 
        * If there are more results than those appearing in this response, then
        * `next_page_token` is included. To get the next set of results, call this
    @@ -90,13 +64,10 @@ public interface SearchAllResourcesResponseOrBuilder
        * 
    * * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
        * If there are more results than those appearing in this response, then
        * `next_page_token` is included. To get the next set of results, call this
    @@ -104,8 +75,8 @@ public interface SearchAllResourcesResponseOrBuilder
        * 
    * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchema.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchema.java similarity index 72% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchema.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchema.java index 65693385bfa3..604b22927f60 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchema.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchema.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * A field in TableSchema.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.TableFieldSchema} */ -public final class TableFieldSchema extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TableFieldSchema extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.TableFieldSchema) TableFieldSchemaOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TableFieldSchema.newBuilder() to construct. private TableFieldSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TableFieldSchema() { field_ = ""; type_ = ""; @@ -46,110 +28,32 @@ private TableFieldSchema() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TableFieldSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private TableFieldSchema( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - field_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - type_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - mode_ = s; - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fields_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - fields_.add( - input.readMessage( - com.google.cloud.asset.v1.TableFieldSchema.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - fields_ = java.util.Collections.unmodifiableList(fields_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_TableFieldSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_TableFieldSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_TableFieldSchema_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_TableFieldSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.TableFieldSchema.class, - com.google.cloud.asset.v1.TableFieldSchema.Builder.class); + com.google.cloud.asset.v1.TableFieldSchema.class, com.google.cloud.asset.v1.TableFieldSchema.Builder.class); } public static final int FIELD_FIELD_NUMBER = 1; private volatile java.lang.Object field_; /** - * - * *
        * The field name. The name must contain only letters (a-z, A-Z),
        * numbers (0-9), or underscores (_), and must start with a letter or
    @@ -157,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
    * * string field = 1; - * * @return The field. */ @java.lang.Override @@ -166,15 +69,14 @@ public java.lang.String getField() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); field_ = s; return s; } } /** - * - * *
        * The field name. The name must contain only letters (a-z, A-Z),
        * numbers (0-9), or underscores (_), and must start with a letter or
    @@ -182,15 +84,16 @@ public java.lang.String getField() {
        * 
    * * string field = 1; - * * @return The bytes for field. */ @java.lang.Override - public com.google.protobuf.ByteString getFieldBytes() { + public com.google.protobuf.ByteString + getFieldBytes() { java.lang.Object ref = field_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); field_ = b; return b; } else { @@ -201,8 +104,6 @@ public com.google.protobuf.ByteString getFieldBytes() { public static final int TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object type_; /** - * - * *
        * The field data type. Possible values include
        * * STRING
    @@ -222,7 +123,6 @@ public com.google.protobuf.ByteString getFieldBytes() {
        * 
    * * string type = 2; - * * @return The type. */ @java.lang.Override @@ -231,15 +131,14 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** - * - * *
        * The field data type. Possible values include
        * * STRING
    @@ -259,15 +158,16 @@ public java.lang.String getType() {
        * 
    * * string type = 2; - * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -278,15 +178,12 @@ public com.google.protobuf.ByteString getTypeBytes() { public static final int MODE_FIELD_NUMBER = 3; private volatile java.lang.Object mode_; /** - * - * *
        * The field mode. Possible values include NULLABLE, REQUIRED and
        * REPEATED. The default value is NULLABLE.
        * 
    * * string mode = 3; - * * @return The mode. */ @java.lang.Override @@ -295,30 +192,30 @@ public java.lang.String getMode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mode_ = s; return s; } } /** - * - * *
        * The field mode. Possible values include NULLABLE, REQUIRED and
        * REPEATED. The default value is NULLABLE.
        * 
    * * string mode = 3; - * * @return The bytes for mode. */ @java.lang.Override - public com.google.protobuf.ByteString getModeBytes() { + public com.google.protobuf.ByteString + getModeBytes() { java.lang.Object ref = mode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mode_ = b; return b; } else { @@ -329,8 +226,6 @@ public com.google.protobuf.ByteString getModeBytes() { public static final int FIELDS_FIELD_NUMBER = 4; private java.util.List fields_; /** - * - * *
        * Describes the nested schema fields if the type property is set
        * to RECORD.
    @@ -343,8 +238,6 @@ public java.util.List getFieldsList(
         return fields_;
       }
       /**
    -   *
    -   *
        * 
        * Describes the nested schema fields if the type property is set
        * to RECORD.
    @@ -353,13 +246,11 @@ public java.util.List getFieldsList(
        * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
        */
       @java.lang.Override
    -  public java.util.List
    +  public java.util.List 
           getFieldsOrBuilderList() {
         return fields_;
       }
       /**
    -   *
    -   *
        * 
        * Describes the nested schema fields if the type property is set
        * to RECORD.
    @@ -372,8 +263,6 @@ public int getFieldsCount() {
         return fields_.size();
       }
       /**
    -   *
    -   *
        * 
        * Describes the nested schema fields if the type property is set
        * to RECORD.
    @@ -386,8 +275,6 @@ public com.google.cloud.asset.v1.TableFieldSchema getFields(int index) {
         return fields_.get(index);
       }
       /**
    -   *
    -   *
        * 
        * Describes the nested schema fields if the type property is set
        * to RECORD.
    @@ -396,12 +283,12 @@ public com.google.cloud.asset.v1.TableFieldSchema getFields(int index) {
        * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
        */
       @java.lang.Override
    -  public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(int index) {
    +  public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(
    +      int index) {
         return fields_.get(index);
       }
     
       private byte memoizedIsInitialized = -1;
    -
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -413,7 +300,8 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output)
    +                      throws java.io.IOException {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(field_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, field_);
         }
    @@ -426,7 +314,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         for (int i = 0; i < fields_.size(); i++) {
           output.writeMessage(4, fields_.get(i));
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -445,9 +333,10 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mode_);
         }
         for (int i = 0; i < fields_.size(); i++) {
    -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, fields_.get(i));
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(4, fields_.get(i));
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -455,19 +344,22 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -      return true;
    +     return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1.TableFieldSchema)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1.TableFieldSchema other =
    -        (com.google.cloud.asset.v1.TableFieldSchema) obj;
    -
    -    if (!getField().equals(other.getField())) return false;
    -    if (!getType().equals(other.getType())) return false;
    -    if (!getMode().equals(other.getMode())) return false;
    -    if (!getFieldsList().equals(other.getFieldsList())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    com.google.cloud.asset.v1.TableFieldSchema other = (com.google.cloud.asset.v1.TableFieldSchema) obj;
    +
    +    if (!getField()
    +        .equals(other.getField())) return false;
    +    if (!getType()
    +        .equals(other.getType())) return false;
    +    if (!getMode()
    +        .equals(other.getMode())) return false;
    +    if (!getFieldsList()
    +        .equals(other.getFieldsList())) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -488,150 +380,135 @@ public int hashCode() {
           hash = (37 * hash) + FIELDS_FIELD_NUMBER;
           hash = (53 * hash) + getFieldsList().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1.TableFieldSchema parseFrom(java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1.TableFieldSchema parseFrom(
    +      java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.TableFieldSchema parseFrom(
    -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.TableFieldSchema parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.TableFieldSchema 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.asset.v1.TableFieldSchema parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.TableFieldSchema parseFrom(
    -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.TableFieldSchema parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.TableFieldSchema parseFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
    -
    -  public static com.google.cloud.asset.v1.TableFieldSchema parseDelimitedFrom(
    -      java.io.InputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    +  public static com.google.cloud.asset.v1.TableFieldSchema parseDelimitedFrom(java.io.InputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.TableFieldSchema parseDelimitedFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.TableFieldSchema parseFrom(
    -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.TableFieldSchema parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() {
    -    return newBuilder();
    -  }
    -
    +  public Builder newBuilderForType() { return newBuilder(); }
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    -
       public static Builder newBuilder(com.google.cloud.asset.v1.TableFieldSchema prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    -
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE
    +        ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(
    +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    -   *
    -   *
        * 
        * A field in TableSchema.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.TableFieldSchema} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.TableFieldSchema) com.google.cloud.asset.v1.TableFieldSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_TableFieldSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_TableFieldSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_TableFieldSchema_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_TableFieldSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.TableFieldSchema.class, - com.google.cloud.asset.v1.TableFieldSchema.Builder.class); + com.google.cloud.asset.v1.TableFieldSchema.class, com.google.cloud.asset.v1.TableFieldSchema.Builder.class); } // Construct using com.google.cloud.asset.v1.TableFieldSchema.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getFieldsFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); @@ -643,17 +520,18 @@ public Builder clear() { if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + fields_ = null; fieldsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_TableFieldSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_TableFieldSchema_descriptor; } @java.lang.Override @@ -672,8 +550,7 @@ public com.google.cloud.asset.v1.TableFieldSchema build() { @java.lang.Override public com.google.cloud.asset.v1.TableFieldSchema buildPartial() { - com.google.cloud.asset.v1.TableFieldSchema result = - new com.google.cloud.asset.v1.TableFieldSchema(this); + com.google.cloud.asset.v1.TableFieldSchema result = new com.google.cloud.asset.v1.TableFieldSchema(this); int from_bitField0_ = bitField0_; result.field_ = field_; result.type_ = type_; @@ -695,39 +572,38 @@ public com.google.cloud.asset.v1.TableFieldSchema buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.TableFieldSchema) { - return mergeFrom((com.google.cloud.asset.v1.TableFieldSchema) other); + return mergeFrom((com.google.cloud.asset.v1.TableFieldSchema)other); } else { super.mergeFrom(other); return this; @@ -766,16 +642,15 @@ public Builder mergeFrom(com.google.cloud.asset.v1.TableFieldSchema other) { fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000001); - fieldsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFieldsFieldBuilder() - : null; + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFieldsFieldBuilder() : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -790,26 +665,64 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.TableFieldSchema parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + field_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + type_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + mode_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + com.google.cloud.asset.v1.TableFieldSchema m = + input.readMessage( + com.google.cloud.asset.v1.TableFieldSchema.parser(), + extensionRegistry); + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(m); + } else { + fieldsBuilder_.addMessage(m); + } + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.TableFieldSchema) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.lang.Object field_ = ""; /** - * - * *
          * The field name. The name must contain only letters (a-z, A-Z),
          * numbers (0-9), or underscores (_), and must start with a letter or
    @@ -817,13 +730,13 @@ public Builder mergeFrom(
          * 
    * * string field = 1; - * * @return The field. */ public java.lang.String getField() { java.lang.Object ref = field_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); field_ = s; return s; @@ -832,8 +745,6 @@ public java.lang.String getField() { } } /** - * - * *
          * The field name. The name must contain only letters (a-z, A-Z),
          * numbers (0-9), or underscores (_), and must start with a letter or
    @@ -841,14 +752,15 @@ public java.lang.String getField() {
          * 
    * * string field = 1; - * * @return The bytes for field. */ - public com.google.protobuf.ByteString getFieldBytes() { + public com.google.protobuf.ByteString + getFieldBytes() { java.lang.Object ref = field_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); field_ = b; return b; } else { @@ -856,8 +768,6 @@ public com.google.protobuf.ByteString getFieldBytes() { } } /** - * - * *
          * The field name. The name must contain only letters (a-z, A-Z),
          * numbers (0-9), or underscores (_), and must start with a letter or
    @@ -865,22 +775,20 @@ public com.google.protobuf.ByteString getFieldBytes() {
          * 
    * * string field = 1; - * * @param value The field to set. * @return This builder for chaining. */ - public Builder setField(java.lang.String value) { + public Builder setField( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + field_ = value; onChanged(); return this; } /** - * - * *
          * The field name. The name must contain only letters (a-z, A-Z),
          * numbers (0-9), or underscores (_), and must start with a letter or
    @@ -888,18 +796,15 @@ public Builder setField(java.lang.String value) {
          * 
    * * string field = 1; - * * @return This builder for chaining. */ public Builder clearField() { - + field_ = getDefaultInstance().getField(); onChanged(); return this; } /** - * - * *
          * The field name. The name must contain only letters (a-z, A-Z),
          * numbers (0-9), or underscores (_), and must start with a letter or
    @@ -907,16 +812,16 @@ public Builder clearField() {
          * 
    * * string field = 1; - * * @param value The bytes for field to set. * @return This builder for chaining. */ - public Builder setFieldBytes(com.google.protobuf.ByteString value) { + public Builder setFieldBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + field_ = value; onChanged(); return this; @@ -924,8 +829,6 @@ public Builder setFieldBytes(com.google.protobuf.ByteString value) { private java.lang.Object type_ = ""; /** - * - * *
          * The field data type. Possible values include
          * * STRING
    @@ -945,13 +848,13 @@ public Builder setFieldBytes(com.google.protobuf.ByteString value) {
          * 
    * * string type = 2; - * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -960,8 +863,6 @@ public java.lang.String getType() { } } /** - * - * *
          * The field data type. Possible values include
          * * STRING
    @@ -981,14 +882,15 @@ public java.lang.String getType() {
          * 
    * * string type = 2; - * * @return The bytes for type. */ - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -996,8 +898,6 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
          * The field data type. Possible values include
          * * STRING
    @@ -1017,22 +917,20 @@ public com.google.protobuf.ByteString getTypeBytes() {
          * 
    * * string type = 2; - * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(java.lang.String value) { + public Builder setType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** - * - * *
          * The field data type. Possible values include
          * * STRING
    @@ -1052,18 +950,15 @@ public Builder setType(java.lang.String value) {
          * 
    * * string type = 2; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** - * - * *
          * The field data type. Possible values include
          * * STRING
    @@ -1083,16 +978,16 @@ public Builder clearType() {
          * 
    * * string type = 2; - * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes(com.google.protobuf.ByteString value) { + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; @@ -1100,21 +995,19 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object mode_ = ""; /** - * - * *
          * The field mode. Possible values include NULLABLE, REQUIRED and
          * REPEATED. The default value is NULLABLE.
          * 
    * * string mode = 3; - * * @return The mode. */ public java.lang.String getMode() { java.lang.Object ref = mode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mode_ = s; return s; @@ -1123,22 +1016,21 @@ public java.lang.String getMode() { } } /** - * - * *
          * The field mode. Possible values include NULLABLE, REQUIRED and
          * REPEATED. The default value is NULLABLE.
          * 
    * * string mode = 3; - * * @return The bytes for mode. */ - public com.google.protobuf.ByteString getModeBytes() { + public com.google.protobuf.ByteString + getModeBytes() { java.lang.Object ref = mode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mode_ = b; return b; } else { @@ -1146,88 +1038,75 @@ public com.google.protobuf.ByteString getModeBytes() { } } /** - * - * *
          * The field mode. Possible values include NULLABLE, REQUIRED and
          * REPEATED. The default value is NULLABLE.
          * 
    * * string mode = 3; - * * @param value The mode to set. * @return This builder for chaining. */ - public Builder setMode(java.lang.String value) { + public Builder setMode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mode_ = value; onChanged(); return this; } /** - * - * *
          * The field mode. Possible values include NULLABLE, REQUIRED and
          * REPEATED. The default value is NULLABLE.
          * 
    * * string mode = 3; - * * @return This builder for chaining. */ public Builder clearMode() { - + mode_ = getDefaultInstance().getMode(); onChanged(); return this; } /** - * - * *
          * The field mode. Possible values include NULLABLE, REQUIRED and
          * REPEATED. The default value is NULLABLE.
          * 
    * * string mode = 3; - * * @param value The bytes for mode to set. * @return This builder for chaining. */ - public Builder setModeBytes(com.google.protobuf.ByteString value) { + public Builder setModeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mode_ = value; onChanged(); return this; } private java.util.List fields_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { fields_ = new java.util.ArrayList(fields_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.TableFieldSchema, - com.google.cloud.asset.v1.TableFieldSchema.Builder, - com.google.cloud.asset.v1.TableFieldSchemaOrBuilder> - fieldsBuilder_; + com.google.cloud.asset.v1.TableFieldSchema, com.google.cloud.asset.v1.TableFieldSchema.Builder, com.google.cloud.asset.v1.TableFieldSchemaOrBuilder> fieldsBuilder_; /** - * - * *
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1243,8 +1122,6 @@ public java.util.List getFieldsList(
           }
         }
         /**
    -     *
    -     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1260,8 +1137,6 @@ public int getFieldsCount() {
           }
         }
         /**
    -     *
    -     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1277,8 +1152,6 @@ public com.google.cloud.asset.v1.TableFieldSchema getFields(int index) {
           }
         }
         /**
    -     *
    -     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1286,7 +1159,8 @@ public com.google.cloud.asset.v1.TableFieldSchema getFields(int index) {
          *
          * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
          */
    -    public Builder setFields(int index, com.google.cloud.asset.v1.TableFieldSchema value) {
    +    public Builder setFields(
    +        int index, com.google.cloud.asset.v1.TableFieldSchema value) {
           if (fieldsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -1300,8 +1174,6 @@ public Builder setFields(int index, com.google.cloud.asset.v1.TableFieldSchema v
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1321,8 +1193,6 @@ public Builder setFields(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1344,8 +1214,6 @@ public Builder addFields(com.google.cloud.asset.v1.TableFieldSchema value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1353,7 +1221,8 @@ public Builder addFields(com.google.cloud.asset.v1.TableFieldSchema value) {
          *
          * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
          */
    -    public Builder addFields(int index, com.google.cloud.asset.v1.TableFieldSchema value) {
    +    public Builder addFields(
    +        int index, com.google.cloud.asset.v1.TableFieldSchema value) {
           if (fieldsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -1367,8 +1236,6 @@ public Builder addFields(int index, com.google.cloud.asset.v1.TableFieldSchema v
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1376,7 +1243,8 @@ public Builder addFields(int index, com.google.cloud.asset.v1.TableFieldSchema v
          *
          * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
          */
    -    public Builder addFields(com.google.cloud.asset.v1.TableFieldSchema.Builder builderForValue) {
    +    public Builder addFields(
    +        com.google.cloud.asset.v1.TableFieldSchema.Builder builderForValue) {
           if (fieldsBuilder_ == null) {
             ensureFieldsIsMutable();
             fields_.add(builderForValue.build());
    @@ -1387,8 +1255,6 @@ public Builder addFields(com.google.cloud.asset.v1.TableFieldSchema.Builder buil
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1408,8 +1274,6 @@ public Builder addFields(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1421,7 +1285,8 @@ public Builder addAllFields(
             java.lang.Iterable values) {
           if (fieldsBuilder_ == null) {
             ensureFieldsIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    +            values, fields_);
             onChanged();
           } else {
             fieldsBuilder_.addAllMessages(values);
    @@ -1429,8 +1294,6 @@ public Builder addAllFields(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1449,8 +1312,6 @@ public Builder clearFields() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1469,8 +1330,6 @@ public Builder removeFields(int index) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1478,12 +1337,11 @@ public Builder removeFields(int index) {
          *
          * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
          */
    -    public com.google.cloud.asset.v1.TableFieldSchema.Builder getFieldsBuilder(int index) {
    +    public com.google.cloud.asset.v1.TableFieldSchema.Builder getFieldsBuilder(
    +        int index) {
           return getFieldsFieldBuilder().getBuilder(index);
         }
         /**
    -     *
    -     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1491,16 +1349,14 @@ public com.google.cloud.asset.v1.TableFieldSchema.Builder getFieldsBuilder(int i
          *
          * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
          */
    -    public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(int index) {
    +    public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(
    +        int index) {
           if (fieldsBuilder_ == null) {
    -        return fields_.get(index);
    -      } else {
    +        return fields_.get(index);  } else {
             return fieldsBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    -     *
    -     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1508,8 +1364,8 @@ public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(in
          *
          * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
          */
    -    public java.util.List
    -        getFieldsOrBuilderList() {
    +    public java.util.List 
    +         getFieldsOrBuilderList() {
           if (fieldsBuilder_ != null) {
             return fieldsBuilder_.getMessageOrBuilderList();
           } else {
    @@ -1517,8 +1373,6 @@ public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(in
           }
         }
         /**
    -     *
    -     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1527,12 +1381,10 @@ public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(in
          * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
          */
         public com.google.cloud.asset.v1.TableFieldSchema.Builder addFieldsBuilder() {
    -      return getFieldsFieldBuilder()
    -          .addBuilder(com.google.cloud.asset.v1.TableFieldSchema.getDefaultInstance());
    +      return getFieldsFieldBuilder().addBuilder(
    +          com.google.cloud.asset.v1.TableFieldSchema.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1540,13 +1392,12 @@ public com.google.cloud.asset.v1.TableFieldSchema.Builder addFieldsBuilder() {
          *
          * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
          */
    -    public com.google.cloud.asset.v1.TableFieldSchema.Builder addFieldsBuilder(int index) {
    -      return getFieldsFieldBuilder()
    -          .addBuilder(index, com.google.cloud.asset.v1.TableFieldSchema.getDefaultInstance());
    +    public com.google.cloud.asset.v1.TableFieldSchema.Builder addFieldsBuilder(
    +        int index) {
    +      return getFieldsFieldBuilder().addBuilder(
    +          index, com.google.cloud.asset.v1.TableFieldSchema.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1554,30 +1405,27 @@ public com.google.cloud.asset.v1.TableFieldSchema.Builder addFieldsBuilder(int i
          *
          * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
          */
    -    public java.util.List
    -        getFieldsBuilderList() {
    +    public java.util.List 
    +         getFieldsBuilderList() {
           return getFieldsFieldBuilder().getBuilderList();
         }
    -
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.asset.v1.TableFieldSchema,
    -            com.google.cloud.asset.v1.TableFieldSchema.Builder,
    -            com.google.cloud.asset.v1.TableFieldSchemaOrBuilder>
    +        com.google.cloud.asset.v1.TableFieldSchema, com.google.cloud.asset.v1.TableFieldSchema.Builder, com.google.cloud.asset.v1.TableFieldSchemaOrBuilder> 
             getFieldsFieldBuilder() {
           if (fieldsBuilder_ == null) {
    -        fieldsBuilder_ =
    -            new com.google.protobuf.RepeatedFieldBuilderV3<
    -                com.google.cloud.asset.v1.TableFieldSchema,
    -                com.google.cloud.asset.v1.TableFieldSchema.Builder,
    -                com.google.cloud.asset.v1.TableFieldSchemaOrBuilder>(
    -                fields_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
    +        fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    +            com.google.cloud.asset.v1.TableFieldSchema, com.google.cloud.asset.v1.TableFieldSchema.Builder, com.google.cloud.asset.v1.TableFieldSchemaOrBuilder>(
    +                fields_,
    +                ((bitField0_ & 0x00000001) != 0),
    +                getParentForChildren(),
    +                isClean());
             fields_ = null;
           }
           return fieldsBuilder_;
         }
    -
         @java.lang.Override
    -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(
    +        final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -1587,12 +1435,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    +
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.TableFieldSchema)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.TableFieldSchema)
       private static final com.google.cloud.asset.v1.TableFieldSchema DEFAULT_INSTANCE;
    -
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1.TableFieldSchema();
       }
    @@ -1601,16 +1449,27 @@ public static com.google.cloud.asset.v1.TableFieldSchema getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser PARSER =
    -      new com.google.protobuf.AbstractParser() {
    -        @java.lang.Override
    -        public TableFieldSchema parsePartialFrom(
    -            com.google.protobuf.CodedInputStream input,
    -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -            throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new TableFieldSchema(input, extensionRegistry);
    -        }
    -      };
    +  private static final com.google.protobuf.Parser
    +      PARSER = new com.google.protobuf.AbstractParser() {
    +    @java.lang.Override
    +    public TableFieldSchema parsePartialFrom(
    +        com.google.protobuf.CodedInputStream input,
    +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        throws com.google.protobuf.InvalidProtocolBufferException {
    +      Builder builder = newBuilder();
    +      try {
    +        builder.mergeFrom(input, extensionRegistry);
    +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +        throw e.setUnfinishedMessage(builder.buildPartial());
    +      } catch (com.google.protobuf.UninitializedMessageException e) {
    +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +      } catch (java.io.IOException e) {
    +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +            .setUnfinishedMessage(builder.buildPartial());
    +      }
    +      return builder.buildPartial();
    +    }
    +  };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1625,4 +1484,6 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1.TableFieldSchema getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    +
     }
    +
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchemaOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchemaOrBuilder.java
    similarity index 76%
    rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchemaOrBuilder.java
    rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchemaOrBuilder.java
    index 6b7e088ab70e..a77eb8040bc5 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchemaOrBuilder.java
    +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchemaOrBuilder.java
    @@ -1,31 +1,13 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
    -public interface TableFieldSchemaOrBuilder
    -    extends
    +public interface TableFieldSchemaOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.TableFieldSchema)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    -   *
    -   *
        * 
        * The field name. The name must contain only letters (a-z, A-Z),
        * numbers (0-9), or underscores (_), and must start with a letter or
    @@ -33,13 +15,10 @@ public interface TableFieldSchemaOrBuilder
        * 
    * * string field = 1; - * * @return The field. */ java.lang.String getField(); /** - * - * *
        * The field name. The name must contain only letters (a-z, A-Z),
        * numbers (0-9), or underscores (_), and must start with a letter or
    @@ -47,14 +26,12 @@ public interface TableFieldSchemaOrBuilder
        * 
    * * string field = 1; - * * @return The bytes for field. */ - com.google.protobuf.ByteString getFieldBytes(); + com.google.protobuf.ByteString + getFieldBytes(); /** - * - * *
        * The field data type. Possible values include
        * * STRING
    @@ -74,13 +51,10 @@ public interface TableFieldSchemaOrBuilder
        * 
    * * string type = 2; - * * @return The type. */ java.lang.String getType(); /** - * - * *
        * The field data type. Possible values include
        * * STRING
    @@ -100,41 +74,34 @@ public interface TableFieldSchemaOrBuilder
        * 
    * * string type = 2; - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); /** - * - * *
        * The field mode. Possible values include NULLABLE, REQUIRED and
        * REPEATED. The default value is NULLABLE.
        * 
    * * string mode = 3; - * * @return The mode. */ java.lang.String getMode(); /** - * - * *
        * The field mode. Possible values include NULLABLE, REQUIRED and
        * REPEATED. The default value is NULLABLE.
        * 
    * * string mode = 3; - * * @return The bytes for mode. */ - com.google.protobuf.ByteString getModeBytes(); + com.google.protobuf.ByteString + getModeBytes(); /** - * - * *
        * Describes the nested schema fields if the type property is set
        * to RECORD.
    @@ -142,10 +109,9 @@ public interface TableFieldSchemaOrBuilder
        *
        * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
        */
    -  java.util.List getFieldsList();
    +  java.util.List 
    +      getFieldsList();
       /**
    -   *
    -   *
        * 
        * Describes the nested schema fields if the type property is set
        * to RECORD.
    @@ -155,8 +121,6 @@ public interface TableFieldSchemaOrBuilder
        */
       com.google.cloud.asset.v1.TableFieldSchema getFields(int index);
       /**
    -   *
    -   *
        * 
        * Describes the nested schema fields if the type property is set
        * to RECORD.
    @@ -166,8 +130,6 @@ public interface TableFieldSchemaOrBuilder
        */
       int getFieldsCount();
       /**
    -   *
    -   *
        * 
        * Describes the nested schema fields if the type property is set
        * to RECORD.
    @@ -175,11 +137,9 @@ public interface TableFieldSchemaOrBuilder
        *
        * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
        */
    -  java.util.List
    +  java.util.List 
           getFieldsOrBuilderList();
       /**
    -   *
    -   *
        * 
        * Describes the nested schema fields if the type property is set
        * to RECORD.
    @@ -187,5 +147,6 @@ public interface TableFieldSchemaOrBuilder
        *
        * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
        */
    -  com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(int index);
    +  com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(
    +      int index);
     }
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchema.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchema.java
    similarity index 67%
    rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchema.java
    rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchema.java
    index 1a4036a858d5..c475f4cbe45d 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchema.java
    +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchema.java
    @@ -1,131 +1,56 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
     /**
    - *
    - *
      * 
      * BigQuery Compatible table schema.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.TableSchema} */ -public final class TableSchema extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TableSchema extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.TableSchema) TableSchemaOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TableSchema.newBuilder() to construct. private TableSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TableSchema() { fields_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TableSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private TableSchema( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fields_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - fields_.add( - input.readMessage( - com.google.cloud.asset.v1.TableFieldSchema.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - fields_ = java.util.Collections.unmodifiableList(fields_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_TableSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_TableSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_TableSchema_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_TableSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.TableSchema.class, - com.google.cloud.asset.v1.TableSchema.Builder.class); + com.google.cloud.asset.v1.TableSchema.class, com.google.cloud.asset.v1.TableSchema.Builder.class); } public static final int FIELDS_FIELD_NUMBER = 1; private java.util.List fields_; /** - * - * *
        * Describes the fields in a table.
        * 
    @@ -137,8 +62,6 @@ public java.util.List getFieldsList( return fields_; } /** - * - * *
        * Describes the fields in a table.
        * 
    @@ -146,13 +69,11 @@ public java.util.List getFieldsList( * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFieldsOrBuilderList() { return fields_; } /** - * - * *
        * Describes the fields in a table.
        * 
    @@ -164,8 +85,6 @@ public int getFieldsCount() { return fields_.size(); } /** - * - * *
        * Describes the fields in a table.
        * 
    @@ -177,8 +96,6 @@ public com.google.cloud.asset.v1.TableFieldSchema getFields(int index) { return fields_.get(index); } /** - * - * *
        * Describes the fields in a table.
        * 
    @@ -186,12 +103,12 @@ public com.google.cloud.asset.v1.TableFieldSchema getFields(int index) { * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ @java.lang.Override - public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(int index) { + public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder( + int index) { return fields_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,11 +120,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < fields_.size(); i++) { output.writeMessage(1, fields_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -217,9 +135,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < fields_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fields_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, fields_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -227,15 +146,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.TableSchema)) { return super.equals(obj); } com.google.cloud.asset.v1.TableSchema other = (com.google.cloud.asset.v1.TableSchema) obj; - if (!getFieldsList().equals(other.getFieldsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getFieldsList() + .equals(other.getFieldsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -250,165 +170,152 @@ public int hashCode() { hash = (37 * hash) + FIELDS_FIELD_NUMBER; hash = (53 * hash) + getFieldsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.TableSchema parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.TableSchema parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.TableSchema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.TableSchema parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.asset.v1.TableSchema parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.TableSchema 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.asset.v1.TableSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.TableSchema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.TableSchema parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.TableSchema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.TableSchema parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.TableSchema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.TableSchema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.TableSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.TableSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * BigQuery Compatible table schema.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.TableSchema} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.TableSchema) com.google.cloud.asset.v1.TableSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_TableSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_TableSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_TableSchema_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_TableSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.TableSchema.class, - com.google.cloud.asset.v1.TableSchema.Builder.class); + com.google.cloud.asset.v1.TableSchema.class, com.google.cloud.asset.v1.TableSchema.Builder.class); } // Construct using com.google.cloud.asset.v1.TableSchema.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getFieldsFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); if (fieldsBuilder_ == null) { fields_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + fields_ = null; fieldsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_TableSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_TableSchema_descriptor; } @java.lang.Override @@ -427,8 +334,7 @@ public com.google.cloud.asset.v1.TableSchema build() { @java.lang.Override public com.google.cloud.asset.v1.TableSchema buildPartial() { - com.google.cloud.asset.v1.TableSchema result = - new com.google.cloud.asset.v1.TableSchema(this); + com.google.cloud.asset.v1.TableSchema result = new com.google.cloud.asset.v1.TableSchema(this); int from_bitField0_ = bitField0_; if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -447,39 +353,38 @@ public com.google.cloud.asset.v1.TableSchema buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.TableSchema) { - return mergeFrom((com.google.cloud.asset.v1.TableSchema) other); + return mergeFrom((com.google.cloud.asset.v1.TableSchema)other); } else { super.mergeFrom(other); return this; @@ -506,16 +411,15 @@ public Builder mergeFrom(com.google.cloud.asset.v1.TableSchema other) { fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000001); - fieldsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFieldsFieldBuilder() - : null; + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFieldsFieldBuilder() : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -530,41 +434,60 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.TableSchema parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.asset.v1.TableFieldSchema m = + input.readMessage( + com.google.cloud.asset.v1.TableFieldSchema.parser(), + extensionRegistry); + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(m); + } else { + fieldsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.TableSchema) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.util.List fields_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { fields_ = new java.util.ArrayList(fields_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.TableFieldSchema, - com.google.cloud.asset.v1.TableFieldSchema.Builder, - com.google.cloud.asset.v1.TableFieldSchemaOrBuilder> - fieldsBuilder_; + com.google.cloud.asset.v1.TableFieldSchema, com.google.cloud.asset.v1.TableFieldSchema.Builder, com.google.cloud.asset.v1.TableFieldSchemaOrBuilder> fieldsBuilder_; /** - * - * *
          * Describes the fields in a table.
          * 
    @@ -579,8 +502,6 @@ public java.util.List getFieldsList( } } /** - * - * *
          * Describes the fields in a table.
          * 
    @@ -595,8 +516,6 @@ public int getFieldsCount() { } } /** - * - * *
          * Describes the fields in a table.
          * 
    @@ -611,15 +530,14 @@ public com.google.cloud.asset.v1.TableFieldSchema getFields(int index) { } } /** - * - * *
          * Describes the fields in a table.
          * 
    * * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ - public Builder setFields(int index, com.google.cloud.asset.v1.TableFieldSchema value) { + public Builder setFields( + int index, com.google.cloud.asset.v1.TableFieldSchema value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -633,8 +551,6 @@ public Builder setFields(int index, com.google.cloud.asset.v1.TableFieldSchema v return this; } /** - * - * *
          * Describes the fields in a table.
          * 
    @@ -653,8 +569,6 @@ public Builder setFields( return this; } /** - * - * *
          * Describes the fields in a table.
          * 
    @@ -675,15 +589,14 @@ public Builder addFields(com.google.cloud.asset.v1.TableFieldSchema value) { return this; } /** - * - * *
          * Describes the fields in a table.
          * 
    * * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ - public Builder addFields(int index, com.google.cloud.asset.v1.TableFieldSchema value) { + public Builder addFields( + int index, com.google.cloud.asset.v1.TableFieldSchema value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -697,15 +610,14 @@ public Builder addFields(int index, com.google.cloud.asset.v1.TableFieldSchema v return this; } /** - * - * *
          * Describes the fields in a table.
          * 
    * * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ - public Builder addFields(com.google.cloud.asset.v1.TableFieldSchema.Builder builderForValue) { + public Builder addFields( + com.google.cloud.asset.v1.TableFieldSchema.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(builderForValue.build()); @@ -716,8 +628,6 @@ public Builder addFields(com.google.cloud.asset.v1.TableFieldSchema.Builder buil return this; } /** - * - * *
          * Describes the fields in a table.
          * 
    @@ -736,8 +646,6 @@ public Builder addFields( return this; } /** - * - * *
          * Describes the fields in a table.
          * 
    @@ -748,7 +656,8 @@ public Builder addAllFields( java.lang.Iterable values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); @@ -756,8 +665,6 @@ public Builder addAllFields( return this; } /** - * - * *
          * Describes the fields in a table.
          * 
    @@ -775,8 +682,6 @@ public Builder clearFields() { return this; } /** - * - * *
          * Describes the fields in a table.
          * 
    @@ -794,44 +699,39 @@ public Builder removeFields(int index) { return this; } /** - * - * *
          * Describes the fields in a table.
          * 
    * * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ - public com.google.cloud.asset.v1.TableFieldSchema.Builder getFieldsBuilder(int index) { + public com.google.cloud.asset.v1.TableFieldSchema.Builder getFieldsBuilder( + int index) { return getFieldsFieldBuilder().getBuilder(index); } /** - * - * *
          * Describes the fields in a table.
          * 
    * * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ - public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(int index) { + public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder( + int index) { if (fieldsBuilder_ == null) { - return fields_.get(index); - } else { + return fields_.get(index); } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
          * Describes the fields in a table.
          * 
    * * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ - public java.util.List - getFieldsOrBuilderList() { + public java.util.List + getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { @@ -839,8 +739,6 @@ public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(in } } /** - * - * *
          * Describes the fields in a table.
          * 
    @@ -848,55 +746,49 @@ public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(in * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ public com.google.cloud.asset.v1.TableFieldSchema.Builder addFieldsBuilder() { - return getFieldsFieldBuilder() - .addBuilder(com.google.cloud.asset.v1.TableFieldSchema.getDefaultInstance()); + return getFieldsFieldBuilder().addBuilder( + com.google.cloud.asset.v1.TableFieldSchema.getDefaultInstance()); } /** - * - * *
          * Describes the fields in a table.
          * 
    * * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ - public com.google.cloud.asset.v1.TableFieldSchema.Builder addFieldsBuilder(int index) { - return getFieldsFieldBuilder() - .addBuilder(index, com.google.cloud.asset.v1.TableFieldSchema.getDefaultInstance()); + public com.google.cloud.asset.v1.TableFieldSchema.Builder addFieldsBuilder( + int index) { + return getFieldsFieldBuilder().addBuilder( + index, com.google.cloud.asset.v1.TableFieldSchema.getDefaultInstance()); } /** - * - * *
          * Describes the fields in a table.
          * 
    * * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ - public java.util.List - getFieldsBuilderList() { + public java.util.List + getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.TableFieldSchema, - com.google.cloud.asset.v1.TableFieldSchema.Builder, - com.google.cloud.asset.v1.TableFieldSchemaOrBuilder> + com.google.cloud.asset.v1.TableFieldSchema, com.google.cloud.asset.v1.TableFieldSchema.Builder, com.google.cloud.asset.v1.TableFieldSchemaOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { - fieldsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.TableFieldSchema, - com.google.cloud.asset.v1.TableFieldSchema.Builder, - com.google.cloud.asset.v1.TableFieldSchemaOrBuilder>( - fields_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.TableFieldSchema, com.google.cloud.asset.v1.TableFieldSchema.Builder, com.google.cloud.asset.v1.TableFieldSchemaOrBuilder>( + fields_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); fields_ = null; } return fieldsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -906,12 +798,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.TableSchema) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.TableSchema) private static final com.google.cloud.asset.v1.TableSchema DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.TableSchema(); } @@ -920,16 +812,27 @@ public static com.google.cloud.asset.v1.TableSchema getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TableSchema(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -944,4 +847,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.TableSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchemaOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchemaOrBuilder.java similarity index 61% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchemaOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchemaOrBuilder.java index ec840372a91e..80451085b595 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchemaOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchemaOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface TableSchemaOrBuilder - extends +public interface TableSchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.TableSchema) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Describes the fields in a table.
        * 
    * * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ - java.util.List getFieldsList(); + java.util.List + getFieldsList(); /** - * - * *
        * Describes the fields in a table.
        * 
    @@ -44,8 +25,6 @@ public interface TableSchemaOrBuilder */ com.google.cloud.asset.v1.TableFieldSchema getFields(int index); /** - * - * *
        * Describes the fields in a table.
        * 
    @@ -54,24 +33,21 @@ public interface TableSchemaOrBuilder */ int getFieldsCount(); /** - * - * *
        * Describes the fields in a table.
        * 
    * * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ - java.util.List + java.util.List getFieldsOrBuilderList(); /** - * - * *
        * Describes the fields in a table.
        * 
    * * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ - com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(int index); + com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder( + int index); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java similarity index 69% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java index 7b1a93540b65..5c6db4d03e10 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** - * - * *
      * An asset in Google Cloud and its temporal metadata, including the time window
      * when it was observed and its status during that window.
    @@ -28,156 +11,54 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.TemporalAsset}
      */
    -public final class TemporalAsset extends com.google.protobuf.GeneratedMessageV3
    -    implements
    +public final class TemporalAsset extends
    +    com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.TemporalAsset)
         TemporalAssetOrBuilder {
    -  private static final long serialVersionUID = 0L;
    +private static final long serialVersionUID = 0L;
       // Use TemporalAsset.newBuilder() to construct.
       private TemporalAsset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -
       private TemporalAsset() {
         priorAssetState_ = 0;
       }
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(
    +      UnusedPrivateParameter unused) {
         return new TemporalAsset();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet
    +  getUnknownFields() {
         return this.unknownFields;
       }
    -
    -  private TemporalAsset(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              com.google.cloud.asset.v1.TimeWindow.Builder subBuilder = null;
    -              if (window_ != null) {
    -                subBuilder = window_.toBuilder();
    -              }
    -              window_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.TimeWindow.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(window_);
    -                window_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 16:
    -            {
    -              deleted_ = input.readBool();
    -              break;
    -            }
    -          case 26:
    -            {
    -              com.google.cloud.asset.v1.Asset.Builder subBuilder = null;
    -              if (asset_ != null) {
    -                subBuilder = asset_.toBuilder();
    -              }
    -              asset_ =
    -                  input.readMessage(com.google.cloud.asset.v1.Asset.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(asset_);
    -                asset_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 32:
    -            {
    -              int rawValue = input.readEnum();
    -
    -              priorAssetState_ = rawValue;
    -              break;
    -            }
    -          case 42:
    -            {
    -              com.google.cloud.asset.v1.Asset.Builder subBuilder = null;
    -              if (priorAsset_ != null) {
    -                subBuilder = priorAsset_.toBuilder();
    -              }
    -              priorAsset_ =
    -                  input.readMessage(com.google.cloud.asset.v1.Asset.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(priorAsset_);
    -                priorAsset_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
    -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetProto
    -        .internal_static_google_cloud_asset_v1_TemporalAsset_descriptor;
    +  public static final com.google.protobuf.Descriptors.Descriptor
    +      getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_TemporalAsset_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetProto
    -        .internal_static_google_cloud_asset_v1_TemporalAsset_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_TemporalAsset_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1.TemporalAsset.class,
    -            com.google.cloud.asset.v1.TemporalAsset.Builder.class);
    +            com.google.cloud.asset.v1.TemporalAsset.class, com.google.cloud.asset.v1.TemporalAsset.Builder.class);
       }
     
       /**
    -   *
    -   *
        * 
        * State of prior asset.
        * 
    * * Protobuf enum {@code google.cloud.asset.v1.TemporalAsset.PriorAssetState} */ - public enum PriorAssetState implements com.google.protobuf.ProtocolMessageEnum { + public enum PriorAssetState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
          * prior_asset is not applicable for the current asset.
          * 
    @@ -186,8 +67,6 @@ public enum PriorAssetState implements com.google.protobuf.ProtocolMessageEnum { */ PRIOR_ASSET_STATE_UNSPECIFIED(0), /** - * - * *
          * prior_asset is populated correctly.
          * 
    @@ -196,8 +75,6 @@ public enum PriorAssetState implements com.google.protobuf.ProtocolMessageEnum { */ PRESENT(1), /** - * - * *
          * Failed to set prior_asset.
          * 
    @@ -206,8 +83,6 @@ public enum PriorAssetState implements com.google.protobuf.ProtocolMessageEnum { */ INVALID(2), /** - * - * *
          * Current asset is the first known state.
          * 
    @@ -216,8 +91,6 @@ public enum PriorAssetState implements com.google.protobuf.ProtocolMessageEnum { */ DOES_NOT_EXIST(3), /** - * - * *
          * prior_asset is a deletion.
          * 
    @@ -229,8 +102,6 @@ public enum PriorAssetState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
          * prior_asset is not applicable for the current asset.
          * 
    @@ -239,8 +110,6 @@ public enum PriorAssetState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PRIOR_ASSET_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
          * prior_asset is populated correctly.
          * 
    @@ -249,8 +118,6 @@ public enum PriorAssetState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PRESENT_VALUE = 1; /** - * - * *
          * Failed to set prior_asset.
          * 
    @@ -259,8 +126,6 @@ public enum PriorAssetState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INVALID_VALUE = 2; /** - * - * *
          * Current asset is the first known state.
          * 
    @@ -269,8 +134,6 @@ public enum PriorAssetState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DOES_NOT_EXIST_VALUE = 3; /** - * - * *
          * prior_asset is a deletion.
          * 
    @@ -279,6 +142,7 @@ public enum PriorAssetState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETED_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -303,46 +167,41 @@ public static PriorAssetState valueOf(int value) { */ public static PriorAssetState forNumber(int value) { switch (value) { - case 0: - return PRIOR_ASSET_STATE_UNSPECIFIED; - case 1: - return PRESENT; - case 2: - return INVALID; - case 3: - return DOES_NOT_EXIST; - case 4: - return DELETED; - default: - return null; + case 0: return PRIOR_ASSET_STATE_UNSPECIFIED; + case 1: return PRESENT; + case 2: return INVALID; + case 3: return DOES_NOT_EXIST; + case 4: return DELETED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + PriorAssetState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PriorAssetState findValueByNumber(int number) { + return PriorAssetState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PriorAssetState findValueByNumber(int number) { - return PriorAssetState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.asset.v1.TemporalAsset.getDescriptor().getEnumTypes().get(0); } @@ -351,7 +210,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static PriorAssetState valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -371,14 +231,11 @@ private PriorAssetState(int value) { public static final int WINDOW_FIELD_NUMBER = 1; private com.google.cloud.asset.v1.TimeWindow window_; /** - * - * *
        * The time window when the asset data and state was observed.
        * 
    * * .google.cloud.asset.v1.TimeWindow window = 1; - * * @return Whether the window field is set. */ @java.lang.Override @@ -386,14 +243,11 @@ public boolean hasWindow() { return window_ != null; } /** - * - * *
        * The time window when the asset data and state was observed.
        * 
    * * .google.cloud.asset.v1.TimeWindow window = 1; - * * @return The window. */ @java.lang.Override @@ -401,8 +255,6 @@ public com.google.cloud.asset.v1.TimeWindow getWindow() { return window_ == null ? com.google.cloud.asset.v1.TimeWindow.getDefaultInstance() : window_; } /** - * - * *
        * The time window when the asset data and state was observed.
        * 
    @@ -417,14 +269,11 @@ public com.google.cloud.asset.v1.TimeWindowOrBuilder getWindowOrBuilder() { public static final int DELETED_FIELD_NUMBER = 2; private boolean deleted_; /** - * - * *
        * Whether the asset has been deleted or not.
        * 
    * * bool deleted = 2; - * * @return The deleted. */ @java.lang.Override @@ -435,14 +284,11 @@ public boolean getDeleted() { public static final int ASSET_FIELD_NUMBER = 3; private com.google.cloud.asset.v1.Asset asset_; /** - * - * *
        * An asset in Google Cloud.
        * 
    * * .google.cloud.asset.v1.Asset asset = 3; - * * @return Whether the asset field is set. */ @java.lang.Override @@ -450,14 +296,11 @@ public boolean hasAsset() { return asset_ != null; } /** - * - * *
        * An asset in Google Cloud.
        * 
    * * .google.cloud.asset.v1.Asset asset = 3; - * * @return The asset. */ @java.lang.Override @@ -465,8 +308,6 @@ public com.google.cloud.asset.v1.Asset getAsset() { return asset_ == null ? com.google.cloud.asset.v1.Asset.getDefaultInstance() : asset_; } /** - * - * *
        * An asset in Google Cloud.
        * 
    @@ -481,53 +322,39 @@ public com.google.cloud.asset.v1.AssetOrBuilder getAssetOrBuilder() { public static final int PRIOR_ASSET_STATE_FIELD_NUMBER = 4; private int priorAssetState_; /** - * - * *
        * State of prior_asset.
        * 
    * * .google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4; - * * @return The enum numeric value on the wire for priorAssetState. */ - @java.lang.Override - public int getPriorAssetStateValue() { + @java.lang.Override public int getPriorAssetStateValue() { return priorAssetState_; } /** - * - * *
        * State of prior_asset.
        * 
    * * .google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4; - * * @return The priorAssetState. */ - @java.lang.Override - public com.google.cloud.asset.v1.TemporalAsset.PriorAssetState getPriorAssetState() { + @java.lang.Override public com.google.cloud.asset.v1.TemporalAsset.PriorAssetState getPriorAssetState() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.TemporalAsset.PriorAssetState result = - com.google.cloud.asset.v1.TemporalAsset.PriorAssetState.valueOf(priorAssetState_); - return result == null - ? com.google.cloud.asset.v1.TemporalAsset.PriorAssetState.UNRECOGNIZED - : result; + com.google.cloud.asset.v1.TemporalAsset.PriorAssetState result = com.google.cloud.asset.v1.TemporalAsset.PriorAssetState.valueOf(priorAssetState_); + return result == null ? com.google.cloud.asset.v1.TemporalAsset.PriorAssetState.UNRECOGNIZED : result; } public static final int PRIOR_ASSET_FIELD_NUMBER = 5; private com.google.cloud.asset.v1.Asset priorAsset_; /** - * - * *
        * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
        * Currently this is only set for responses in Real-Time Feed.
        * 
    * * .google.cloud.asset.v1.Asset prior_asset = 5; - * * @return Whether the priorAsset field is set. */ @java.lang.Override @@ -535,15 +362,12 @@ public boolean hasPriorAsset() { return priorAsset_ != null; } /** - * - * *
        * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
        * Currently this is only set for responses in Real-Time Feed.
        * 
    * * .google.cloud.asset.v1.Asset prior_asset = 5; - * * @return The priorAsset. */ @java.lang.Override @@ -551,8 +375,6 @@ public com.google.cloud.asset.v1.Asset getPriorAsset() { return priorAsset_ == null ? com.google.cloud.asset.v1.Asset.getDefaultInstance() : priorAsset_; } /** - * - * *
        * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
        * Currently this is only set for responses in Real-Time Feed.
    @@ -566,7 +388,6 @@ public com.google.cloud.asset.v1.AssetOrBuilder getPriorAssetOrBuilder() {
       }
     
       private byte memoizedIsInitialized = -1;
    -
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -578,7 +399,8 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output)
    +                      throws java.io.IOException {
         if (window_ != null) {
           output.writeMessage(1, getWindow());
         }
    @@ -588,15 +410,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (asset_ != null) {
           output.writeMessage(3, getAsset());
         }
    -    if (priorAssetState_
    -        != com.google.cloud.asset.v1.TemporalAsset.PriorAssetState.PRIOR_ASSET_STATE_UNSPECIFIED
    -            .getNumber()) {
    +    if (priorAssetState_ != com.google.cloud.asset.v1.TemporalAsset.PriorAssetState.PRIOR_ASSET_STATE_UNSPECIFIED.getNumber()) {
           output.writeEnum(4, priorAssetState_);
         }
         if (priorAsset_ != null) {
           output.writeMessage(5, getPriorAsset());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -606,23 +426,26 @@ public int getSerializedSize() {
     
         size = 0;
         if (window_ != null) {
    -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWindow());
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(1, getWindow());
         }
         if (deleted_ != false) {
    -      size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, deleted_);
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeBoolSize(2, deleted_);
         }
         if (asset_ != null) {
    -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAsset());
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(3, getAsset());
         }
    -    if (priorAssetState_
    -        != com.google.cloud.asset.v1.TemporalAsset.PriorAssetState.PRIOR_ASSET_STATE_UNSPECIFIED
    -            .getNumber()) {
    -      size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, priorAssetState_);
    +    if (priorAssetState_ != com.google.cloud.asset.v1.TemporalAsset.PriorAssetState.PRIOR_ASSET_STATE_UNSPECIFIED.getNumber()) {
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeEnumSize(4, priorAssetState_);
         }
         if (priorAsset_ != null) {
    -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPriorAsset());
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(5, getPriorAsset());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -630,7 +453,7 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -      return true;
    +     return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1.TemporalAsset)) {
           return super.equals(obj);
    @@ -639,19 +462,23 @@ public boolean equals(final java.lang.Object obj) {
     
         if (hasWindow() != other.hasWindow()) return false;
         if (hasWindow()) {
    -      if (!getWindow().equals(other.getWindow())) return false;
    +      if (!getWindow()
    +          .equals(other.getWindow())) return false;
         }
    -    if (getDeleted() != other.getDeleted()) return false;
    +    if (getDeleted()
    +        != other.getDeleted()) return false;
         if (hasAsset() != other.hasAsset()) return false;
         if (hasAsset()) {
    -      if (!getAsset().equals(other.getAsset())) return false;
    +      if (!getAsset()
    +          .equals(other.getAsset())) return false;
         }
         if (priorAssetState_ != other.priorAssetState_) return false;
         if (hasPriorAsset() != other.hasPriorAsset()) return false;
         if (hasPriorAsset()) {
    -      if (!getPriorAsset().equals(other.getPriorAsset())) return false;
    +      if (!getPriorAsset()
    +          .equals(other.getPriorAsset())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -667,7 +494,8 @@ public int hashCode() {
           hash = (53 * hash) + getWindow().hashCode();
         }
         hash = (37 * hash) + DELETED_FIELD_NUMBER;
    -    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeleted());
    +    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
    +        getDeleted());
         if (hasAsset()) {
           hash = (37 * hash) + ASSET_FIELD_NUMBER;
           hash = (53 * hash) + getAsset().hashCode();
    @@ -678,109 +506,102 @@ public int hashCode() {
           hash = (37 * hash) + PRIOR_ASSET_FIELD_NUMBER;
           hash = (53 * hash) + getPriorAsset().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1.TemporalAsset parseFrom(java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1.TemporalAsset parseFrom(
    +      java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.TemporalAsset parseFrom(
    -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.TemporalAsset parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.TemporalAsset 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.asset.v1.TemporalAsset parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.TemporalAsset parseFrom(
    -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.TemporalAsset parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.TemporalAsset parseFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
    -
    -  public static com.google.cloud.asset.v1.TemporalAsset parseDelimitedFrom(
    -      java.io.InputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    +  public static com.google.cloud.asset.v1.TemporalAsset parseDelimitedFrom(java.io.InputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.TemporalAsset parseDelimitedFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.TemporalAsset parseFrom(
    -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.TemporalAsset parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() {
    -    return newBuilder();
    -  }
    -
    +  public Builder newBuilderForType() { return newBuilder(); }
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    -
       public static Builder newBuilder(com.google.cloud.asset.v1.TemporalAsset prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    -
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE
    +        ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(
    +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    -   *
    -   *
        * 
        * An asset in Google Cloud and its temporal metadata, including the time window
        * when it was observed and its status during that window.
    @@ -788,39 +609,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        * Protobuf type {@code google.cloud.asset.v1.TemporalAsset}
        */
    -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    -      implements
    +  public static final class Builder extends
    +      com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.TemporalAsset)
           com.google.cloud.asset.v1.TemporalAssetOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_TemporalAsset_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor
    +        getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_TemporalAsset_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_TemporalAsset_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_TemporalAsset_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.TemporalAsset.class,
    -              com.google.cloud.asset.v1.TemporalAsset.Builder.class);
    +              com.google.cloud.asset.v1.TemporalAsset.class, com.google.cloud.asset.v1.TemporalAsset.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.TemporalAsset.newBuilder()
         private Builder() {
    -      maybeForceBuilderInitialization();
    +
         }
     
    -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    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();
    @@ -850,9 +665,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_TemporalAsset_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor
    +        getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_TemporalAsset_descriptor;
         }
     
         @java.lang.Override
    @@ -871,8 +686,7 @@ public com.google.cloud.asset.v1.TemporalAsset build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1.TemporalAsset buildPartial() {
    -      com.google.cloud.asset.v1.TemporalAsset result =
    -          new com.google.cloud.asset.v1.TemporalAsset(this);
    +      com.google.cloud.asset.v1.TemporalAsset result = new com.google.cloud.asset.v1.TemporalAsset(this);
           if (windowBuilder_ == null) {
             result.window_ = window_;
           } else {
    @@ -898,39 +712,38 @@ public com.google.cloud.asset.v1.TemporalAsset buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    -
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.TemporalAsset) {
    -        return mergeFrom((com.google.cloud.asset.v1.TemporalAsset) other);
    +        return mergeFrom((com.google.cloud.asset.v1.TemporalAsset)other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -954,7 +767,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.TemporalAsset other) {
           if (other.hasPriorAsset()) {
             mergePriorAsset(other.getPriorAsset());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -969,63 +782,94 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.TemporalAsset parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10: {
    +              input.readMessage(
    +                  getWindowFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 10
    +            case 16: {
    +              deleted_ = input.readBool();
    +
    +              break;
    +            } // case 16
    +            case 26: {
    +              input.readMessage(
    +                  getAssetFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 26
    +            case 32: {
    +              priorAssetState_ = input.readEnum();
    +
    +              break;
    +            } // case 32
    +            case 42: {
    +              input.readMessage(
    +                  getPriorAssetFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 42
    +            default: {
    +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                done = true; // was an endgroup tag
    +              }
    +              break;
    +            } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1.TemporalAsset) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
         private com.google.cloud.asset.v1.TimeWindow window_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.TimeWindow,
    -            com.google.cloud.asset.v1.TimeWindow.Builder,
    -            com.google.cloud.asset.v1.TimeWindowOrBuilder>
    -        windowBuilder_;
    +        com.google.cloud.asset.v1.TimeWindow, com.google.cloud.asset.v1.TimeWindow.Builder, com.google.cloud.asset.v1.TimeWindowOrBuilder> windowBuilder_;
         /**
    -     *
    -     *
          * 
          * The time window when the asset data and state was observed.
          * 
    * * .google.cloud.asset.v1.TimeWindow window = 1; - * * @return Whether the window field is set. */ public boolean hasWindow() { return windowBuilder_ != null || window_ != null; } /** - * - * *
          * The time window when the asset data and state was observed.
          * 
    * * .google.cloud.asset.v1.TimeWindow window = 1; - * * @return The window. */ public com.google.cloud.asset.v1.TimeWindow getWindow() { if (windowBuilder_ == null) { - return window_ == null - ? com.google.cloud.asset.v1.TimeWindow.getDefaultInstance() - : window_; + return window_ == null ? com.google.cloud.asset.v1.TimeWindow.getDefaultInstance() : window_; } else { return windowBuilder_.getMessage(); } } /** - * - * *
          * The time window when the asset data and state was observed.
          * 
    @@ -1046,15 +890,14 @@ public Builder setWindow(com.google.cloud.asset.v1.TimeWindow value) { return this; } /** - * - * *
          * The time window when the asset data and state was observed.
          * 
    * * .google.cloud.asset.v1.TimeWindow window = 1; */ - public Builder setWindow(com.google.cloud.asset.v1.TimeWindow.Builder builderForValue) { + public Builder setWindow( + com.google.cloud.asset.v1.TimeWindow.Builder builderForValue) { if (windowBuilder_ == null) { window_ = builderForValue.build(); onChanged(); @@ -1065,8 +908,6 @@ public Builder setWindow(com.google.cloud.asset.v1.TimeWindow.Builder builderFor return this; } /** - * - * *
          * The time window when the asset data and state was observed.
          * 
    @@ -1077,9 +918,7 @@ public Builder mergeWindow(com.google.cloud.asset.v1.TimeWindow value) { if (windowBuilder_ == null) { if (window_ != null) { window_ = - com.google.cloud.asset.v1.TimeWindow.newBuilder(window_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.TimeWindow.newBuilder(window_).mergeFrom(value).buildPartial(); } else { window_ = value; } @@ -1091,8 +930,6 @@ public Builder mergeWindow(com.google.cloud.asset.v1.TimeWindow value) { return this; } /** - * - * *
          * The time window when the asset data and state was observed.
          * 
    @@ -1111,8 +948,6 @@ public Builder clearWindow() { return this; } /** - * - * *
          * The time window when the asset data and state was observed.
          * 
    @@ -1120,13 +955,11 @@ public Builder clearWindow() { * .google.cloud.asset.v1.TimeWindow window = 1; */ public com.google.cloud.asset.v1.TimeWindow.Builder getWindowBuilder() { - + onChanged(); return getWindowFieldBuilder().getBuilder(); } /** - * - * *
          * The time window when the asset data and state was observed.
          * 
    @@ -1137,14 +970,11 @@ public com.google.cloud.asset.v1.TimeWindowOrBuilder getWindowOrBuilder() { if (windowBuilder_ != null) { return windowBuilder_.getMessageOrBuilder(); } else { - return window_ == null - ? com.google.cloud.asset.v1.TimeWindow.getDefaultInstance() - : window_; + return window_ == null ? + com.google.cloud.asset.v1.TimeWindow.getDefaultInstance() : window_; } } /** - * - * *
          * The time window when the asset data and state was observed.
          * 
    @@ -1152,32 +982,26 @@ public com.google.cloud.asset.v1.TimeWindowOrBuilder getWindowOrBuilder() { * .google.cloud.asset.v1.TimeWindow window = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.TimeWindow, - com.google.cloud.asset.v1.TimeWindow.Builder, - com.google.cloud.asset.v1.TimeWindowOrBuilder> + com.google.cloud.asset.v1.TimeWindow, com.google.cloud.asset.v1.TimeWindow.Builder, com.google.cloud.asset.v1.TimeWindowOrBuilder> getWindowFieldBuilder() { if (windowBuilder_ == null) { - windowBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.TimeWindow, - com.google.cloud.asset.v1.TimeWindow.Builder, - com.google.cloud.asset.v1.TimeWindowOrBuilder>( - getWindow(), getParentForChildren(), isClean()); + windowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.TimeWindow, com.google.cloud.asset.v1.TimeWindow.Builder, com.google.cloud.asset.v1.TimeWindowOrBuilder>( + getWindow(), + getParentForChildren(), + isClean()); window_ = null; } return windowBuilder_; } - private boolean deleted_; + private boolean deleted_ ; /** - * - * *
          * Whether the asset has been deleted or not.
          * 
    * * bool deleted = 2; - * * @return The deleted. */ @java.lang.Override @@ -1185,36 +1009,30 @@ public boolean getDeleted() { return deleted_; } /** - * - * *
          * Whether the asset has been deleted or not.
          * 
    * * bool deleted = 2; - * * @param value The deleted to set. * @return This builder for chaining. */ public Builder setDeleted(boolean value) { - + deleted_ = value; onChanged(); return this; } /** - * - * *
          * Whether the asset has been deleted or not.
          * 
    * * bool deleted = 2; - * * @return This builder for chaining. */ public Builder clearDeleted() { - + deleted_ = false; onChanged(); return this; @@ -1222,33 +1040,24 @@ public Builder clearDeleted() { private com.google.cloud.asset.v1.Asset asset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.Asset, - com.google.cloud.asset.v1.Asset.Builder, - com.google.cloud.asset.v1.AssetOrBuilder> - assetBuilder_; + com.google.cloud.asset.v1.Asset, com.google.cloud.asset.v1.Asset.Builder, com.google.cloud.asset.v1.AssetOrBuilder> assetBuilder_; /** - * - * *
          * An asset in Google Cloud.
          * 
    * * .google.cloud.asset.v1.Asset asset = 3; - * * @return Whether the asset field is set. */ public boolean hasAsset() { return assetBuilder_ != null || asset_ != null; } /** - * - * *
          * An asset in Google Cloud.
          * 
    * * .google.cloud.asset.v1.Asset asset = 3; - * * @return The asset. */ public com.google.cloud.asset.v1.Asset getAsset() { @@ -1259,8 +1068,6 @@ public com.google.cloud.asset.v1.Asset getAsset() { } } /** - * - * *
          * An asset in Google Cloud.
          * 
    @@ -1281,15 +1088,14 @@ public Builder setAsset(com.google.cloud.asset.v1.Asset value) { return this; } /** - * - * *
          * An asset in Google Cloud.
          * 
    * * .google.cloud.asset.v1.Asset asset = 3; */ - public Builder setAsset(com.google.cloud.asset.v1.Asset.Builder builderForValue) { + public Builder setAsset( + com.google.cloud.asset.v1.Asset.Builder builderForValue) { if (assetBuilder_ == null) { asset_ = builderForValue.build(); onChanged(); @@ -1300,8 +1106,6 @@ public Builder setAsset(com.google.cloud.asset.v1.Asset.Builder builderForValue) return this; } /** - * - * *
          * An asset in Google Cloud.
          * 
    @@ -1312,7 +1116,7 @@ public Builder mergeAsset(com.google.cloud.asset.v1.Asset value) { if (assetBuilder_ == null) { if (asset_ != null) { asset_ = - com.google.cloud.asset.v1.Asset.newBuilder(asset_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.Asset.newBuilder(asset_).mergeFrom(value).buildPartial(); } else { asset_ = value; } @@ -1324,8 +1128,6 @@ public Builder mergeAsset(com.google.cloud.asset.v1.Asset value) { return this; } /** - * - * *
          * An asset in Google Cloud.
          * 
    @@ -1344,8 +1146,6 @@ public Builder clearAsset() { return this; } /** - * - * *
          * An asset in Google Cloud.
          * 
    @@ -1353,13 +1153,11 @@ public Builder clearAsset() { * .google.cloud.asset.v1.Asset asset = 3; */ public com.google.cloud.asset.v1.Asset.Builder getAssetBuilder() { - + onChanged(); return getAssetFieldBuilder().getBuilder(); } /** - * - * *
          * An asset in Google Cloud.
          * 
    @@ -1370,12 +1168,11 @@ public com.google.cloud.asset.v1.AssetOrBuilder getAssetOrBuilder() { if (assetBuilder_ != null) { return assetBuilder_.getMessageOrBuilder(); } else { - return asset_ == null ? com.google.cloud.asset.v1.Asset.getDefaultInstance() : asset_; + return asset_ == null ? + com.google.cloud.asset.v1.Asset.getDefaultInstance() : asset_; } } /** - * - * *
          * An asset in Google Cloud.
          * 
    @@ -1383,17 +1180,14 @@ public com.google.cloud.asset.v1.AssetOrBuilder getAssetOrBuilder() { * .google.cloud.asset.v1.Asset asset = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.Asset, - com.google.cloud.asset.v1.Asset.Builder, - com.google.cloud.asset.v1.AssetOrBuilder> + com.google.cloud.asset.v1.Asset, com.google.cloud.asset.v1.Asset.Builder, com.google.cloud.asset.v1.AssetOrBuilder> getAssetFieldBuilder() { if (assetBuilder_ == null) { - assetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.Asset, - com.google.cloud.asset.v1.Asset.Builder, - com.google.cloud.asset.v1.AssetOrBuilder>( - getAsset(), getParentForChildren(), isClean()); + assetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.Asset, com.google.cloud.asset.v1.Asset.Builder, com.google.cloud.asset.v1.AssetOrBuilder>( + getAsset(), + getParentForChildren(), + isClean()); asset_ = null; } return assetBuilder_; @@ -1401,93 +1195,73 @@ public com.google.cloud.asset.v1.AssetOrBuilder getAssetOrBuilder() { private int priorAssetState_ = 0; /** - * - * *
          * State of prior_asset.
          * 
    * * .google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4; - * * @return The enum numeric value on the wire for priorAssetState. */ - @java.lang.Override - public int getPriorAssetStateValue() { + @java.lang.Override public int getPriorAssetStateValue() { return priorAssetState_; } /** - * - * *
          * State of prior_asset.
          * 
    * * .google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4; - * * @param value The enum numeric value on the wire for priorAssetState to set. * @return This builder for chaining. */ public Builder setPriorAssetStateValue(int value) { - + priorAssetState_ = value; onChanged(); return this; } /** - * - * *
          * State of prior_asset.
          * 
    * * .google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4; - * * @return The priorAssetState. */ @java.lang.Override public com.google.cloud.asset.v1.TemporalAsset.PriorAssetState getPriorAssetState() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.TemporalAsset.PriorAssetState result = - com.google.cloud.asset.v1.TemporalAsset.PriorAssetState.valueOf(priorAssetState_); - return result == null - ? com.google.cloud.asset.v1.TemporalAsset.PriorAssetState.UNRECOGNIZED - : result; + com.google.cloud.asset.v1.TemporalAsset.PriorAssetState result = com.google.cloud.asset.v1.TemporalAsset.PriorAssetState.valueOf(priorAssetState_); + return result == null ? com.google.cloud.asset.v1.TemporalAsset.PriorAssetState.UNRECOGNIZED : result; } /** - * - * *
          * State of prior_asset.
          * 
    * * .google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4; - * * @param value The priorAssetState to set. * @return This builder for chaining. */ - public Builder setPriorAssetState( - com.google.cloud.asset.v1.TemporalAsset.PriorAssetState value) { + public Builder setPriorAssetState(com.google.cloud.asset.v1.TemporalAsset.PriorAssetState value) { if (value == null) { throw new NullPointerException(); } - + priorAssetState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
          * State of prior_asset.
          * 
    * * .google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4; - * * @return This builder for chaining. */ public Builder clearPriorAssetState() { - + priorAssetState_ = 0; onChanged(); return this; @@ -1495,49 +1269,36 @@ public Builder clearPriorAssetState() { private com.google.cloud.asset.v1.Asset priorAsset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.Asset, - com.google.cloud.asset.v1.Asset.Builder, - com.google.cloud.asset.v1.AssetOrBuilder> - priorAssetBuilder_; + com.google.cloud.asset.v1.Asset, com.google.cloud.asset.v1.Asset.Builder, com.google.cloud.asset.v1.AssetOrBuilder> priorAssetBuilder_; /** - * - * *
          * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
          * Currently this is only set for responses in Real-Time Feed.
          * 
    * * .google.cloud.asset.v1.Asset prior_asset = 5; - * * @return Whether the priorAsset field is set. */ public boolean hasPriorAsset() { return priorAssetBuilder_ != null || priorAsset_ != null; } /** - * - * *
          * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
          * Currently this is only set for responses in Real-Time Feed.
          * 
    * * .google.cloud.asset.v1.Asset prior_asset = 5; - * * @return The priorAsset. */ public com.google.cloud.asset.v1.Asset getPriorAsset() { if (priorAssetBuilder_ == null) { - return priorAsset_ == null - ? com.google.cloud.asset.v1.Asset.getDefaultInstance() - : priorAsset_; + return priorAsset_ == null ? com.google.cloud.asset.v1.Asset.getDefaultInstance() : priorAsset_; } else { return priorAssetBuilder_.getMessage(); } } /** - * - * *
          * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
          * Currently this is only set for responses in Real-Time Feed.
    @@ -1559,8 +1320,6 @@ public Builder setPriorAsset(com.google.cloud.asset.v1.Asset value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
          * Currently this is only set for responses in Real-Time Feed.
    @@ -1568,7 +1327,8 @@ public Builder setPriorAsset(com.google.cloud.asset.v1.Asset value) {
          *
          * .google.cloud.asset.v1.Asset prior_asset = 5;
          */
    -    public Builder setPriorAsset(com.google.cloud.asset.v1.Asset.Builder builderForValue) {
    +    public Builder setPriorAsset(
    +        com.google.cloud.asset.v1.Asset.Builder builderForValue) {
           if (priorAssetBuilder_ == null) {
             priorAsset_ = builderForValue.build();
             onChanged();
    @@ -1579,8 +1339,6 @@ public Builder setPriorAsset(com.google.cloud.asset.v1.Asset.Builder builderForV
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
          * Currently this is only set for responses in Real-Time Feed.
    @@ -1592,9 +1350,7 @@ public Builder mergePriorAsset(com.google.cloud.asset.v1.Asset value) {
           if (priorAssetBuilder_ == null) {
             if (priorAsset_ != null) {
               priorAsset_ =
    -              com.google.cloud.asset.v1.Asset.newBuilder(priorAsset_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +            com.google.cloud.asset.v1.Asset.newBuilder(priorAsset_).mergeFrom(value).buildPartial();
             } else {
               priorAsset_ = value;
             }
    @@ -1606,8 +1362,6 @@ public Builder mergePriorAsset(com.google.cloud.asset.v1.Asset value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
          * Currently this is only set for responses in Real-Time Feed.
    @@ -1627,8 +1381,6 @@ public Builder clearPriorAsset() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
          * Currently this is only set for responses in Real-Time Feed.
    @@ -1637,13 +1389,11 @@ public Builder clearPriorAsset() {
          * .google.cloud.asset.v1.Asset prior_asset = 5;
          */
         public com.google.cloud.asset.v1.Asset.Builder getPriorAssetBuilder() {
    -
    +      
           onChanged();
           return getPriorAssetFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
          * Currently this is only set for responses in Real-Time Feed.
    @@ -1655,14 +1405,11 @@ public com.google.cloud.asset.v1.AssetOrBuilder getPriorAssetOrBuilder() {
           if (priorAssetBuilder_ != null) {
             return priorAssetBuilder_.getMessageOrBuilder();
           } else {
    -        return priorAsset_ == null
    -            ? com.google.cloud.asset.v1.Asset.getDefaultInstance()
    -            : priorAsset_;
    +        return priorAsset_ == null ?
    +            com.google.cloud.asset.v1.Asset.getDefaultInstance() : priorAsset_;
           }
         }
         /**
    -     *
    -     *
          * 
          * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
          * Currently this is only set for responses in Real-Time Feed.
    @@ -1671,24 +1418,21 @@ public com.google.cloud.asset.v1.AssetOrBuilder getPriorAssetOrBuilder() {
          * .google.cloud.asset.v1.Asset prior_asset = 5;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.Asset,
    -            com.google.cloud.asset.v1.Asset.Builder,
    -            com.google.cloud.asset.v1.AssetOrBuilder>
    +        com.google.cloud.asset.v1.Asset, com.google.cloud.asset.v1.Asset.Builder, com.google.cloud.asset.v1.AssetOrBuilder> 
             getPriorAssetFieldBuilder() {
           if (priorAssetBuilder_ == null) {
    -        priorAssetBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.cloud.asset.v1.Asset,
    -                com.google.cloud.asset.v1.Asset.Builder,
    -                com.google.cloud.asset.v1.AssetOrBuilder>(
    -                getPriorAsset(), getParentForChildren(), isClean());
    +        priorAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.cloud.asset.v1.Asset, com.google.cloud.asset.v1.Asset.Builder, com.google.cloud.asset.v1.AssetOrBuilder>(
    +                getPriorAsset(),
    +                getParentForChildren(),
    +                isClean());
             priorAsset_ = null;
           }
           return priorAssetBuilder_;
         }
    -
         @java.lang.Override
    -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(
    +        final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -1698,12 +1442,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    +
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.TemporalAsset)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.TemporalAsset)
       private static final com.google.cloud.asset.v1.TemporalAsset DEFAULT_INSTANCE;
    -
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1.TemporalAsset();
       }
    @@ -1712,16 +1456,27 @@ public static com.google.cloud.asset.v1.TemporalAsset getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser PARSER =
    -      new com.google.protobuf.AbstractParser() {
    -        @java.lang.Override
    -        public TemporalAsset parsePartialFrom(
    -            com.google.protobuf.CodedInputStream input,
    -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -            throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new TemporalAsset(input, extensionRegistry);
    -        }
    -      };
    +  private static final com.google.protobuf.Parser
    +      PARSER = new com.google.protobuf.AbstractParser() {
    +    @java.lang.Override
    +    public TemporalAsset parsePartialFrom(
    +        com.google.protobuf.CodedInputStream input,
    +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        throws com.google.protobuf.InvalidProtocolBufferException {
    +      Builder builder = newBuilder();
    +      try {
    +        builder.mergeFrom(input, extensionRegistry);
    +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +        throw e.setUnfinishedMessage(builder.buildPartial());
    +      } catch (com.google.protobuf.UninitializedMessageException e) {
    +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +      } catch (java.io.IOException e) {
    +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +            .setUnfinishedMessage(builder.buildPartial());
    +      }
    +      return builder.buildPartial();
    +    }
    +  };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1736,4 +1491,6 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1.TemporalAsset getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    +
     }
    +
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAssetOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAssetOrBuilder.java
    similarity index 80%
    rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAssetOrBuilder.java
    rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAssetOrBuilder.java
    index 68d9d1d37fad..40ba4db442af 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAssetOrBuilder.java
    +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAssetOrBuilder.java
    @@ -1,55 +1,31 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/assets.proto
     
     package com.google.cloud.asset.v1;
     
    -public interface TemporalAssetOrBuilder
    -    extends
    +public interface TemporalAssetOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.TemporalAsset)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    -   *
    -   *
        * 
        * The time window when the asset data and state was observed.
        * 
    * * .google.cloud.asset.v1.TimeWindow window = 1; - * * @return Whether the window field is set. */ boolean hasWindow(); /** - * - * *
        * The time window when the asset data and state was observed.
        * 
    * * .google.cloud.asset.v1.TimeWindow window = 1; - * * @return The window. */ com.google.cloud.asset.v1.TimeWindow getWindow(); /** - * - * *
        * The time window when the asset data and state was observed.
        * 
    @@ -59,45 +35,34 @@ public interface TemporalAssetOrBuilder com.google.cloud.asset.v1.TimeWindowOrBuilder getWindowOrBuilder(); /** - * - * *
        * Whether the asset has been deleted or not.
        * 
    * * bool deleted = 2; - * * @return The deleted. */ boolean getDeleted(); /** - * - * *
        * An asset in Google Cloud.
        * 
    * * .google.cloud.asset.v1.Asset asset = 3; - * * @return Whether the asset field is set. */ boolean hasAsset(); /** - * - * *
        * An asset in Google Cloud.
        * 
    * * .google.cloud.asset.v1.Asset asset = 3; - * * @return The asset. */ com.google.cloud.asset.v1.Asset getAsset(); /** - * - * *
        * An asset in Google Cloud.
        * 
    @@ -107,59 +72,45 @@ public interface TemporalAssetOrBuilder com.google.cloud.asset.v1.AssetOrBuilder getAssetOrBuilder(); /** - * - * *
        * State of prior_asset.
        * 
    * * .google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4; - * * @return The enum numeric value on the wire for priorAssetState. */ int getPriorAssetStateValue(); /** - * - * *
        * State of prior_asset.
        * 
    * * .google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4; - * * @return The priorAssetState. */ com.google.cloud.asset.v1.TemporalAsset.PriorAssetState getPriorAssetState(); /** - * - * *
        * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
        * Currently this is only set for responses in Real-Time Feed.
        * 
    * * .google.cloud.asset.v1.Asset prior_asset = 5; - * * @return Whether the priorAsset field is set. */ boolean hasPriorAsset(); /** - * - * *
        * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
        * Currently this is only set for responses in Real-Time Feed.
        * 
    * * .google.cloud.asset.v1.Asset prior_asset = 5; - * * @return The priorAsset. */ com.google.cloud.asset.v1.Asset getPriorAsset(); /** - * - * *
        * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
        * Currently this is only set for responses in Real-Time Feed.
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java
    similarity index 66%
    rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java
    rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java
    index c38445e5f5a7..c2aaa24bd43f 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java
    +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java
    @@ -1,150 +1,60 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/assets.proto
     
     package com.google.cloud.asset.v1;
     
     /**
    - *
    - *
      * 
      * A time window specified by its `start_time` and `end_time`.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.TimeWindow} */ -public final class TimeWindow extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TimeWindow extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.TimeWindow) TimeWindowOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TimeWindow.newBuilder() to construct. private TimeWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TimeWindow() {} + private TimeWindow() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TimeWindow(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private TimeWindow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_TimeWindow_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_TimeWindow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_TimeWindow_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_TimeWindow_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.TimeWindow.class, - com.google.cloud.asset.v1.TimeWindow.Builder.class); + com.google.cloud.asset.v1.TimeWindow.class, com.google.cloud.asset.v1.TimeWindow.Builder.class); } public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** - * - * *
        * Start time of the time window (exclusive).
        * 
    * * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -152,14 +62,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
        * Start time of the time window (exclusive).
        * 
    * * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ @java.lang.Override @@ -167,8 +74,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
        * Start time of the time window (exclusive).
        * 
    @@ -183,15 +88,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
        * End time of the time window (inclusive). If not specified, the current
        * timestamp is used instead.
        * 
    * * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -199,15 +101,12 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
        * End time of the time window (inclusive). If not specified, the current
        * timestamp is used instead.
        * 
    * * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -215,8 +114,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
        * End time of the time window (inclusive). If not specified, the current
        * timestamp is used instead.
    @@ -230,7 +127,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       }
     
       private byte memoizedIsInitialized = -1;
    -
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -242,14 +138,15 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output)
    +                      throws java.io.IOException {
         if (startTime_ != null) {
           output.writeMessage(1, getStartTime());
         }
         if (endTime_ != null) {
           output.writeMessage(2, getEndTime());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -259,12 +156,14 @@ public int getSerializedSize() {
     
         size = 0;
         if (startTime_ != null) {
    -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime());
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(1, getStartTime());
         }
         if (endTime_ != null) {
    -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime());
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(2, getEndTime());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -272,7 +171,7 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -      return true;
    +     return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1.TimeWindow)) {
           return super.equals(obj);
    @@ -281,13 +180,15 @@ public boolean equals(final java.lang.Object obj) {
     
         if (hasStartTime() != other.hasStartTime()) return false;
         if (hasStartTime()) {
    -      if (!getStartTime().equals(other.getStartTime())) return false;
    +      if (!getStartTime()
    +          .equals(other.getStartTime())) return false;
         }
         if (hasEndTime() != other.hasEndTime()) return false;
         if (hasEndTime()) {
    -      if (!getEndTime().equals(other.getEndTime())) return false;
    +      if (!getEndTime()
    +          .equals(other.getEndTime())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -306,147 +207,135 @@ public int hashCode() {
           hash = (37 * hash) + END_TIME_FIELD_NUMBER;
           hash = (53 * hash) + getEndTime().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1.TimeWindow parseFrom(java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1.TimeWindow parseFrom(
    +      java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.TimeWindow parseFrom(
    -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
    -  public static com.google.cloud.asset.v1.TimeWindow parseFrom(com.google.protobuf.ByteString data)
    +  public static com.google.cloud.asset.v1.TimeWindow parseFrom(
    +      com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.TimeWindow 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.asset.v1.TimeWindow parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.TimeWindow parseFrom(
    -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.TimeWindow parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.TimeWindow parseFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.TimeWindow parseDelimitedFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.TimeWindow parseDelimitedFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.TimeWindow parseFrom(
    -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.TimeWindow parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() {
    -    return newBuilder();
    -  }
    -
    +  public Builder newBuilderForType() { return newBuilder(); }
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    -
       public static Builder newBuilder(com.google.cloud.asset.v1.TimeWindow prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    -
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE
    +        ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(
    +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    -   *
    -   *
        * 
        * A time window specified by its `start_time` and `end_time`.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.TimeWindow} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.TimeWindow) com.google.cloud.asset.v1.TimeWindowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_TimeWindow_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_TimeWindow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_TimeWindow_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_TimeWindow_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.TimeWindow.class, - com.google.cloud.asset.v1.TimeWindow.Builder.class); + com.google.cloud.asset.v1.TimeWindow.class, com.google.cloud.asset.v1.TimeWindow.Builder.class); } // Construct using com.google.cloud.asset.v1.TimeWindow.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -466,9 +355,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto - .internal_static_google_cloud_asset_v1_TimeWindow_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_TimeWindow_descriptor; } @java.lang.Override @@ -506,39 +395,38 @@ public com.google.cloud.asset.v1.TimeWindow buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.TimeWindow) { - return mergeFrom((com.google.cloud.asset.v1.TimeWindow) other); + return mergeFrom((com.google.cloud.asset.v1.TimeWindow)other); } else { super.mergeFrom(other); return this; @@ -553,7 +441,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.TimeWindow other) { if (other.hasEndTime()) { mergeEndTime(other.getEndTime()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -568,49 +456,67 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.TimeWindow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.TimeWindow) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
          * Start time of the time window (exclusive).
          * 
    * * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
          * Start time of the time window (exclusive).
          * 
    * * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -621,8 +527,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
          * Start time of the time window (exclusive).
          * 
    @@ -643,15 +547,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
          * Start time of the time window (exclusive).
          * 
    * * .google.protobuf.Timestamp start_time = 1; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -662,8 +565,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
          * Start time of the time window (exclusive).
          * 
    @@ -674,7 +575,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -686,8 +587,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
          * Start time of the time window (exclusive).
          * 
    @@ -706,8 +605,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
          * Start time of the time window (exclusive).
          * 
    @@ -715,13 +612,11 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 1; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
          * Start time of the time window (exclusive).
          * 
    @@ -732,12 +627,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
          * Start time of the time window (exclusive).
          * 
    @@ -745,17 +639,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -763,35 +654,26 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
          * End time of the time window (inclusive). If not specified, the current
          * timestamp is used instead.
          * 
    * * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
          * End time of the time window (inclusive). If not specified, the current
          * timestamp is used instead.
          * 
    * * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -802,8 +684,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
          * End time of the time window (inclusive). If not specified, the current
          * timestamp is used instead.
    @@ -825,8 +705,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * End time of the time window (inclusive). If not specified, the current
          * timestamp is used instead.
    @@ -834,7 +712,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
          *
          * .google.protobuf.Timestamp end_time = 2;
          */
    -    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
    +    public Builder setEndTime(
    +        com.google.protobuf.Timestamp.Builder builderForValue) {
           if (endTimeBuilder_ == null) {
             endTime_ = builderForValue.build();
             onChanged();
    @@ -845,8 +724,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
           return this;
         }
         /**
    -     *
    -     *
          * 
          * End time of the time window (inclusive). If not specified, the current
          * timestamp is used instead.
    @@ -858,7 +735,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
           if (endTimeBuilder_ == null) {
             if (endTime_ != null) {
               endTime_ =
    -              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
    +            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
             } else {
               endTime_ = value;
             }
    @@ -870,8 +747,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * End time of the time window (inclusive). If not specified, the current
          * timestamp is used instead.
    @@ -891,8 +766,6 @@ public Builder clearEndTime() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * End time of the time window (inclusive). If not specified, the current
          * timestamp is used instead.
    @@ -901,13 +774,11 @@ public Builder clearEndTime() {
          * .google.protobuf.Timestamp end_time = 2;
          */
         public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
    -
    +      
           onChanged();
           return getEndTimeFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * End time of the time window (inclusive). If not specified, the current
          * timestamp is used instead.
    @@ -919,12 +790,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
           if (endTimeBuilder_ != null) {
             return endTimeBuilder_.getMessageOrBuilder();
           } else {
    -        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
    +        return endTime_ == null ?
    +            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
           }
         }
         /**
    -     *
    -     *
          * 
          * End time of the time window (inclusive). If not specified, the current
          * timestamp is used instead.
    @@ -933,24 +803,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
          * .google.protobuf.Timestamp end_time = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp,
    -            com.google.protobuf.Timestamp.Builder,
    -            com.google.protobuf.TimestampOrBuilder>
    +        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
             getEndTimeFieldBuilder() {
           if (endTimeBuilder_ == null) {
    -        endTimeBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.protobuf.Timestamp,
    -                com.google.protobuf.Timestamp.Builder,
    -                com.google.protobuf.TimestampOrBuilder>(
    -                getEndTime(), getParentForChildren(), isClean());
    +        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    +                getEndTime(),
    +                getParentForChildren(),
    +                isClean());
             endTime_ = null;
           }
           return endTimeBuilder_;
         }
    -
         @java.lang.Override
    -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(
    +        final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -960,12 +827,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    +
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.TimeWindow)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.TimeWindow)
       private static final com.google.cloud.asset.v1.TimeWindow DEFAULT_INSTANCE;
    -
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1.TimeWindow();
       }
    @@ -974,16 +841,27 @@ public static com.google.cloud.asset.v1.TimeWindow getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser PARSER =
    -      new com.google.protobuf.AbstractParser() {
    -        @java.lang.Override
    -        public TimeWindow parsePartialFrom(
    -            com.google.protobuf.CodedInputStream input,
    -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -            throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new TimeWindow(input, extensionRegistry);
    -        }
    -      };
    +  private static final com.google.protobuf.Parser
    +      PARSER = new com.google.protobuf.AbstractParser() {
    +    @java.lang.Override
    +    public TimeWindow parsePartialFrom(
    +        com.google.protobuf.CodedInputStream input,
    +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        throws com.google.protobuf.InvalidProtocolBufferException {
    +      Builder builder = newBuilder();
    +      try {
    +        builder.mergeFrom(input, extensionRegistry);
    +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +        throw e.setUnfinishedMessage(builder.buildPartial());
    +      } catch (com.google.protobuf.UninitializedMessageException e) {
    +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +      } catch (java.io.IOException e) {
    +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +            .setUnfinishedMessage(builder.buildPartial());
    +      }
    +      return builder.buildPartial();
    +    }
    +  };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -998,4 +876,6 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1.TimeWindow getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    +
     }
    +
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindowOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindowOrBuilder.java
    similarity index 70%
    rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindowOrBuilder.java
    rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindowOrBuilder.java
    index a06e2ee594d4..81646f3d1e72 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindowOrBuilder.java
    +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindowOrBuilder.java
    @@ -1,55 +1,31 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/assets.proto
     
     package com.google.cloud.asset.v1;
     
    -public interface TimeWindowOrBuilder
    -    extends
    +public interface TimeWindowOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.TimeWindow)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    -   *
    -   *
        * 
        * Start time of the time window (exclusive).
        * 
    * * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
        * Start time of the time window (exclusive).
        * 
    * * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
        * Start time of the time window (exclusive).
        * 
    @@ -59,34 +35,26 @@ public interface TimeWindowOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
        * End time of the time window (inclusive). If not specified, the current
        * timestamp is used instead.
        * 
    * * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
        * End time of the time window (inclusive). If not specified, the current
        * timestamp is used instead.
        * 
    * * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
        * End time of the time window (inclusive). If not specified, the current
        * timestamp is used instead.
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java
    similarity index 66%
    rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java
    rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java
    index 1131722a8c2f..b2365d877cbe 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java
    +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java
    @@ -1,153 +1,64 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
     /**
    - *
    - *
      * 
      * Update asset feed request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.UpdateFeedRequest} */ -public final class UpdateFeedRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateFeedRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.UpdateFeedRequest) UpdateFeedRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateFeedRequest.newBuilder() to construct. private UpdateFeedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateFeedRequest() {} + private UpdateFeedRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateFeedRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private UpdateFeedRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.asset.v1.Feed.Builder subBuilder = null; - if (feed_ != null) { - subBuilder = feed_.toBuilder(); - } - feed_ = input.readMessage(com.google.cloud.asset.v1.Feed.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(feed_); - feed_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_UpdateFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_UpdateFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.UpdateFeedRequest.class, - com.google.cloud.asset.v1.UpdateFeedRequest.Builder.class); + com.google.cloud.asset.v1.UpdateFeedRequest.class, com.google.cloud.asset.v1.UpdateFeedRequest.Builder.class); } public static final int FEED_FIELD_NUMBER = 1; private com.google.cloud.asset.v1.Feed feed_; /** - * - * *
    -   * Required. The new values of feed details. It must match an existing feed
    -   * and the field `name` must be in the format of:
    +   * Required. The new values of feed details. It must match an existing feed and the
    +   * field `name` must be in the format of:
        * projects/project_number/feeds/feed_id or
        * folders/folder_number/feeds/feed_id or
        * organizations/organization_number/feeds/feed_id.
        * 
    * * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the feed field is set. */ @java.lang.Override @@ -155,18 +66,15 @@ public boolean hasFeed() { return feed_ != null; } /** - * - * *
    -   * Required. The new values of feed details. It must match an existing feed
    -   * and the field `name` must be in the format of:
    +   * Required. The new values of feed details. It must match an existing feed and the
    +   * field `name` must be in the format of:
        * projects/project_number/feeds/feed_id or
        * folders/folder_number/feeds/feed_id or
        * organizations/organization_number/feeds/feed_id.
        * 
    * * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The feed. */ @java.lang.Override @@ -174,11 +82,9 @@ public com.google.cloud.asset.v1.Feed getFeed() { return feed_ == null ? com.google.cloud.asset.v1.Feed.getDefaultInstance() : feed_; } /** - * - * *
    -   * Required. The new values of feed details. It must match an existing feed
    -   * and the field `name` must be in the format of:
    +   * Required. The new values of feed details. It must match an existing feed and the
    +   * field `name` must be in the format of:
        * projects/project_number/feeds/feed_id or
        * folders/folder_number/feeds/feed_id or
        * organizations/organization_number/feeds/feed_id.
    @@ -194,17 +100,13 @@ public com.google.cloud.asset.v1.FeedOrBuilder getFeedOrBuilder() {
       public static final int UPDATE_MASK_FIELD_NUMBER = 2;
       private com.google.protobuf.FieldMask updateMask_;
       /**
    -   *
    -   *
        * 
        * Required. Only updates the `feed` fields indicated by this mask.
        * The field mask must not be empty, and it must not contain fields that
        * are immutable or only set by the server.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -212,17 +114,13 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
        * Required. Only updates the `feed` fields indicated by this mask.
        * The field mask must not be empty, and it must not contain fields that
        * are immutable or only set by the server.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -230,16 +128,13 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
        * Required. Only updates the `feed` fields indicated by this mask.
        * The field mask must not be empty, and it must not contain fields that
        * are immutable or only set by the server.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -247,7 +142,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,14 +153,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (feed_ != null) { output.writeMessage(1, getFeed()); } if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -276,12 +171,14 @@ public int getSerializedSize() { size = 0; if (feed_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFeed()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getFeed()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -289,23 +186,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.UpdateFeedRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.UpdateFeedRequest other = - (com.google.cloud.asset.v1.UpdateFeedRequest) obj; + com.google.cloud.asset.v1.UpdateFeedRequest other = (com.google.cloud.asset.v1.UpdateFeedRequest) obj; if (hasFeed() != other.hasFeed()) return false; if (hasFeed()) { - if (!getFeed().equals(other.getFeed())) return false; + if (!getFeed() + .equals(other.getFeed())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -324,148 +222,135 @@ public int hashCode() { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.UpdateFeedRequest 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.asset.v1.UpdateFeedRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.UpdateFeedRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.UpdateFeedRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.UpdateFeedRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.UpdateFeedRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Update asset feed request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.UpdateFeedRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.UpdateFeedRequest) com.google.cloud.asset.v1.UpdateFeedRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_UpdateFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_UpdateFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.UpdateFeedRequest.class, - com.google.cloud.asset.v1.UpdateFeedRequest.Builder.class); + com.google.cloud.asset.v1.UpdateFeedRequest.class, com.google.cloud.asset.v1.UpdateFeedRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.UpdateFeedRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -485,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor; } @java.lang.Override @@ -506,8 +391,7 @@ public com.google.cloud.asset.v1.UpdateFeedRequest build() { @java.lang.Override public com.google.cloud.asset.v1.UpdateFeedRequest buildPartial() { - com.google.cloud.asset.v1.UpdateFeedRequest result = - new com.google.cloud.asset.v1.UpdateFeedRequest(this); + com.google.cloud.asset.v1.UpdateFeedRequest result = new com.google.cloud.asset.v1.UpdateFeedRequest(this); if (feedBuilder_ == null) { result.feed_ = feed_; } else { @@ -526,39 +410,38 @@ public com.google.cloud.asset.v1.UpdateFeedRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.UpdateFeedRequest) { - return mergeFrom((com.google.cloud.asset.v1.UpdateFeedRequest) other); + return mergeFrom((com.google.cloud.asset.v1.UpdateFeedRequest)other); } else { super.mergeFrom(other); return this; @@ -573,7 +456,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.UpdateFeedRequest other) { if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -588,57 +471,75 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.UpdateFeedRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getFeedFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1.UpdateFeedRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private com.google.cloud.asset.v1.Feed feed_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.Feed, - com.google.cloud.asset.v1.Feed.Builder, - com.google.cloud.asset.v1.FeedOrBuilder> - feedBuilder_; + com.google.cloud.asset.v1.Feed, com.google.cloud.asset.v1.Feed.Builder, com.google.cloud.asset.v1.FeedOrBuilder> feedBuilder_; /** - * - * *
    -     * Required. The new values of feed details. It must match an existing feed
    -     * and the field `name` must be in the format of:
    +     * Required. The new values of feed details. It must match an existing feed and the
    +     * field `name` must be in the format of:
          * projects/project_number/feeds/feed_id or
          * folders/folder_number/feeds/feed_id or
          * organizations/organization_number/feeds/feed_id.
          * 
    * * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the feed field is set. */ public boolean hasFeed() { return feedBuilder_ != null || feed_ != null; } /** - * - * *
    -     * Required. The new values of feed details. It must match an existing feed
    -     * and the field `name` must be in the format of:
    +     * Required. The new values of feed details. It must match an existing feed and the
    +     * field `name` must be in the format of:
          * projects/project_number/feeds/feed_id or
          * folders/folder_number/feeds/feed_id or
          * organizations/organization_number/feeds/feed_id.
          * 
    * * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The feed. */ public com.google.cloud.asset.v1.Feed getFeed() { @@ -649,11 +550,9 @@ public com.google.cloud.asset.v1.Feed getFeed() { } } /** - * - * *
    -     * Required. The new values of feed details. It must match an existing feed
    -     * and the field `name` must be in the format of:
    +     * Required. The new values of feed details. It must match an existing feed and the
    +     * field `name` must be in the format of:
          * projects/project_number/feeds/feed_id or
          * folders/folder_number/feeds/feed_id or
          * organizations/organization_number/feeds/feed_id.
    @@ -675,11 +574,9 @@ public Builder setFeed(com.google.cloud.asset.v1.Feed value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
    -     * Required. The new values of feed details. It must match an existing feed
    -     * and the field `name` must be in the format of:
    +     * Required. The new values of feed details. It must match an existing feed and the
    +     * field `name` must be in the format of:
          * projects/project_number/feeds/feed_id or
          * folders/folder_number/feeds/feed_id or
          * organizations/organization_number/feeds/feed_id.
    @@ -687,7 +584,8 @@ public Builder setFeed(com.google.cloud.asset.v1.Feed value) {
          *
          * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED];
          */
    -    public Builder setFeed(com.google.cloud.asset.v1.Feed.Builder builderForValue) {
    +    public Builder setFeed(
    +        com.google.cloud.asset.v1.Feed.Builder builderForValue) {
           if (feedBuilder_ == null) {
             feed_ = builderForValue.build();
             onChanged();
    @@ -698,11 +596,9 @@ public Builder setFeed(com.google.cloud.asset.v1.Feed.Builder builderForValue) {
           return this;
         }
         /**
    -     *
    -     *
          * 
    -     * Required. The new values of feed details. It must match an existing feed
    -     * and the field `name` must be in the format of:
    +     * Required. The new values of feed details. It must match an existing feed and the
    +     * field `name` must be in the format of:
          * projects/project_number/feeds/feed_id or
          * folders/folder_number/feeds/feed_id or
          * organizations/organization_number/feeds/feed_id.
    @@ -713,7 +609,8 @@ public Builder setFeed(com.google.cloud.asset.v1.Feed.Builder builderForValue) {
         public Builder mergeFeed(com.google.cloud.asset.v1.Feed value) {
           if (feedBuilder_ == null) {
             if (feed_ != null) {
    -          feed_ = com.google.cloud.asset.v1.Feed.newBuilder(feed_).mergeFrom(value).buildPartial();
    +          feed_ =
    +            com.google.cloud.asset.v1.Feed.newBuilder(feed_).mergeFrom(value).buildPartial();
             } else {
               feed_ = value;
             }
    @@ -725,11 +622,9 @@ public Builder mergeFeed(com.google.cloud.asset.v1.Feed value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
    -     * Required. The new values of feed details. It must match an existing feed
    -     * and the field `name` must be in the format of:
    +     * Required. The new values of feed details. It must match an existing feed and the
    +     * field `name` must be in the format of:
          * projects/project_number/feeds/feed_id or
          * folders/folder_number/feeds/feed_id or
          * organizations/organization_number/feeds/feed_id.
    @@ -749,11 +644,9 @@ public Builder clearFeed() {
           return this;
         }
         /**
    -     *
    -     *
          * 
    -     * Required. The new values of feed details. It must match an existing feed
    -     * and the field `name` must be in the format of:
    +     * Required. The new values of feed details. It must match an existing feed and the
    +     * field `name` must be in the format of:
          * projects/project_number/feeds/feed_id or
          * folders/folder_number/feeds/feed_id or
          * organizations/organization_number/feeds/feed_id.
    @@ -762,16 +655,14 @@ public Builder clearFeed() {
          * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED];
          */
         public com.google.cloud.asset.v1.Feed.Builder getFeedBuilder() {
    -
    +      
           onChanged();
           return getFeedFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
    -     * Required. The new values of feed details. It must match an existing feed
    -     * and the field `name` must be in the format of:
    +     * Required. The new values of feed details. It must match an existing feed and the
    +     * field `name` must be in the format of:
          * projects/project_number/feeds/feed_id or
          * folders/folder_number/feeds/feed_id or
          * organizations/organization_number/feeds/feed_id.
    @@ -783,15 +674,14 @@ public com.google.cloud.asset.v1.FeedOrBuilder getFeedOrBuilder() {
           if (feedBuilder_ != null) {
             return feedBuilder_.getMessageOrBuilder();
           } else {
    -        return feed_ == null ? com.google.cloud.asset.v1.Feed.getDefaultInstance() : feed_;
    +        return feed_ == null ?
    +            com.google.cloud.asset.v1.Feed.getDefaultInstance() : feed_;
           }
         }
         /**
    -     *
    -     *
          * 
    -     * Required. The new values of feed details. It must match an existing feed
    -     * and the field `name` must be in the format of:
    +     * Required. The new values of feed details. It must match an existing feed and the
    +     * field `name` must be in the format of:
          * projects/project_number/feeds/feed_id or
          * folders/folder_number/feeds/feed_id or
          * organizations/organization_number/feeds/feed_id.
    @@ -800,17 +690,14 @@ public com.google.cloud.asset.v1.FeedOrBuilder getFeedOrBuilder() {
          * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED];
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.Feed,
    -            com.google.cloud.asset.v1.Feed.Builder,
    -            com.google.cloud.asset.v1.FeedOrBuilder>
    +        com.google.cloud.asset.v1.Feed, com.google.cloud.asset.v1.Feed.Builder, com.google.cloud.asset.v1.FeedOrBuilder> 
             getFeedFieldBuilder() {
           if (feedBuilder_ == null) {
    -        feedBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.cloud.asset.v1.Feed,
    -                com.google.cloud.asset.v1.Feed.Builder,
    -                com.google.cloud.asset.v1.FeedOrBuilder>(
    -                getFeed(), getParentForChildren(), isClean());
    +        feedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.cloud.asset.v1.Feed, com.google.cloud.asset.v1.Feed.Builder, com.google.cloud.asset.v1.FeedOrBuilder>(
    +                getFeed(),
    +                getParentForChildren(),
    +                isClean());
             feed_ = null;
           }
           return feedBuilder_;
    @@ -818,61 +705,45 @@ public com.google.cloud.asset.v1.FeedOrBuilder getFeedOrBuilder() {
     
         private com.google.protobuf.FieldMask updateMask_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.FieldMask,
    -            com.google.protobuf.FieldMask.Builder,
    -            com.google.protobuf.FieldMaskOrBuilder>
    -        updateMaskBuilder_;
    +        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_;
         /**
    -     *
    -     *
          * 
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -888,18 +759,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -910,22 +779,19 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -937,16 +803,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -960,74 +823,61 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1037,12 +887,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.UpdateFeedRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.UpdateFeedRequest) private static final com.google.cloud.asset.v1.UpdateFeedRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.UpdateFeedRequest(); } @@ -1051,16 +901,27 @@ public static com.google.cloud.asset.v1.UpdateFeedRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateFeedRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateFeedRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFeedRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1075,4 +936,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.UpdateFeedRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java similarity index 71% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java index d6cac469d586..4188fa73ed16 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java @@ -1,66 +1,42 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface UpdateFeedRequestOrBuilder - extends +public interface UpdateFeedRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.UpdateFeedRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    -   * Required. The new values of feed details. It must match an existing feed
    -   * and the field `name` must be in the format of:
    +   * Required. The new values of feed details. It must match an existing feed and the
    +   * field `name` must be in the format of:
        * projects/project_number/feeds/feed_id or
        * folders/folder_number/feeds/feed_id or
        * organizations/organization_number/feeds/feed_id.
        * 
    * * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the feed field is set. */ boolean hasFeed(); /** - * - * *
    -   * Required. The new values of feed details. It must match an existing feed
    -   * and the field `name` must be in the format of:
    +   * Required. The new values of feed details. It must match an existing feed and the
    +   * field `name` must be in the format of:
        * projects/project_number/feeds/feed_id or
        * folders/folder_number/feeds/feed_id or
        * organizations/organization_number/feeds/feed_id.
        * 
    * * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The feed. */ com.google.cloud.asset.v1.Feed getFeed(); /** - * - * *
    -   * Required. The new values of feed details. It must match an existing feed
    -   * and the field `name` must be in the format of:
    +   * Required. The new values of feed details. It must match an existing feed and the
    +   * field `name` must be in the format of:
        * projects/project_number/feeds/feed_id or
        * folders/folder_number/feeds/feed_id or
        * organizations/organization_number/feeds/feed_id.
    @@ -71,46 +47,35 @@ public interface UpdateFeedRequestOrBuilder
       com.google.cloud.asset.v1.FeedOrBuilder getFeedOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * Required. Only updates the `feed` fields indicated by this mask.
        * The field mask must not be empty, and it must not contain fields that
        * are immutable or only set by the server.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
        * Required. Only updates the `feed` fields indicated by this mask.
        * The field mask must not be empty, and it must not contain fields that
        * are immutable or only set by the server.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
        * Required. Only updates the `feed` fields indicated by this mask.
        * The field mask must not be empty, and it must not contain fields that
        * are immutable or only set by the server.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequest.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequest.java similarity index 63% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequest.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequest.java index 5723995e0245..02c824d413e2 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequest.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequest.java @@ -1,145 +1,55 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
      * Request to update a saved query.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.UpdateSavedQueryRequest} */ -public final class UpdateSavedQueryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateSavedQueryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.UpdateSavedQueryRequest) UpdateSavedQueryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateSavedQueryRequest.newBuilder() to construct. private UpdateSavedQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateSavedQueryRequest() {} + private UpdateSavedQueryRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateSavedQueryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private UpdateSavedQueryRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.asset.v1.SavedQuery.Builder subBuilder = null; - if (savedQuery_ != null) { - subBuilder = savedQuery_.toBuilder(); - } - savedQuery_ = - input.readMessage( - com.google.cloud.asset.v1.SavedQuery.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(savedQuery_); - savedQuery_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.UpdateSavedQueryRequest.class, - com.google.cloud.asset.v1.UpdateSavedQueryRequest.Builder.class); + com.google.cloud.asset.v1.UpdateSavedQueryRequest.class, com.google.cloud.asset.v1.UpdateSavedQueryRequest.Builder.class); } public static final int SAVED_QUERY_FIELD_NUMBER = 1; private com.google.cloud.asset.v1.SavedQuery savedQuery_; /** - * - * *
        * Required. The saved query to update.
        * The saved query's `name` field is used to identify the one to update,
    @@ -149,10 +59,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * * organizations/organization_number/savedQueries/saved_query_id
        * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the savedQuery field is set. */ @java.lang.Override @@ -160,8 +67,6 @@ public boolean hasSavedQuery() { return savedQuery_ != null; } /** - * - * *
        * Required. The saved query to update.
        * The saved query's `name` field is used to identify the one to update,
    @@ -171,21 +76,14 @@ public boolean hasSavedQuery() {
        * * organizations/organization_number/savedQueries/saved_query_id
        * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The savedQuery. */ @java.lang.Override public com.google.cloud.asset.v1.SavedQuery getSavedQuery() { - return savedQuery_ == null - ? com.google.cloud.asset.v1.SavedQuery.getDefaultInstance() - : savedQuery_; + return savedQuery_ == null ? com.google.cloud.asset.v1.SavedQuery.getDefaultInstance() : savedQuery_; } /** - * - * *
        * Required. The saved query to update.
        * The saved query's `name` field is used to identify the one to update,
    @@ -195,9 +93,7 @@ public com.google.cloud.asset.v1.SavedQuery getSavedQuery() {
        * * organizations/organization_number/savedQueries/saved_query_id
        * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() { @@ -207,15 +103,11 @@ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
        * Required. The list of fields to update.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -223,15 +115,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
        * Required. The list of fields to update.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -239,14 +127,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
        * Required. The list of fields to update.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -254,7 +139,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,14 +150,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (savedQuery_ != null) { output.writeMessage(1, getSavedQuery()); } if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -283,12 +168,14 @@ public int getSerializedSize() { size = 0; if (savedQuery_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSavedQuery()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSavedQuery()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -296,23 +183,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.UpdateSavedQueryRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.UpdateSavedQueryRequest other = - (com.google.cloud.asset.v1.UpdateSavedQueryRequest) obj; + com.google.cloud.asset.v1.UpdateSavedQueryRequest other = (com.google.cloud.asset.v1.UpdateSavedQueryRequest) obj; if (hasSavedQuery() != other.hasSavedQuery()) return false; if (hasSavedQuery()) { - if (!getSavedQuery().equals(other.getSavedQuery())) return false; + if (!getSavedQuery() + .equals(other.getSavedQuery())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -331,148 +219,135 @@ public int hashCode() { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.UpdateSavedQueryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.UpdateSavedQueryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.UpdateSavedQueryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.UpdateSavedQueryRequest 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.asset.v1.UpdateSavedQueryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.UpdateSavedQueryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1.UpdateSavedQueryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.UpdateSavedQueryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.UpdateSavedQueryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1.UpdateSavedQueryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1.UpdateSavedQueryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.UpdateSavedQueryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.UpdateSavedQueryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.UpdateSavedQueryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.UpdateSavedQueryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Request to update a saved query.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.UpdateSavedQueryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.UpdateSavedQueryRequest) com.google.cloud.asset.v1.UpdateSavedQueryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.UpdateSavedQueryRequest.class, - com.google.cloud.asset.v1.UpdateSavedQueryRequest.Builder.class); + com.google.cloud.asset.v1.UpdateSavedQueryRequest.class, com.google.cloud.asset.v1.UpdateSavedQueryRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.UpdateSavedQueryRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -492,9 +367,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto - .internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_descriptor; } @java.lang.Override @@ -513,8 +388,7 @@ public com.google.cloud.asset.v1.UpdateSavedQueryRequest build() { @java.lang.Override public com.google.cloud.asset.v1.UpdateSavedQueryRequest buildPartial() { - com.google.cloud.asset.v1.UpdateSavedQueryRequest result = - new com.google.cloud.asset.v1.UpdateSavedQueryRequest(this); + com.google.cloud.asset.v1.UpdateSavedQueryRequest result = new com.google.cloud.asset.v1.UpdateSavedQueryRequest(this); if (savedQueryBuilder_ == null) { result.savedQuery_ = savedQuery_; } else { @@ -533,39 +407,38 @@ public com.google.cloud.asset.v1.UpdateSavedQueryRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.UpdateSavedQueryRequest) { - return mergeFrom((com.google.cloud.asset.v1.UpdateSavedQueryRequest) other); + return mergeFrom((com.google.cloud.asset.v1.UpdateSavedQueryRequest)other); } else { super.mergeFrom(other); return this; @@ -573,15 +446,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.UpdateSavedQueryRequest other) { - if (other == com.google.cloud.asset.v1.UpdateSavedQueryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1.UpdateSavedQueryRequest.getDefaultInstance()) return this; if (other.hasSavedQuery()) { mergeSavedQuery(other.getSavedQuery()); } if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -596,30 +468,51 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1.UpdateSavedQueryRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getSavedQueryFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1.UpdateSavedQueryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private com.google.cloud.asset.v1.SavedQuery savedQuery_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.SavedQuery, - com.google.cloud.asset.v1.SavedQuery.Builder, - com.google.cloud.asset.v1.SavedQueryOrBuilder> - savedQueryBuilder_; + com.google.cloud.asset.v1.SavedQuery, com.google.cloud.asset.v1.SavedQuery.Builder, com.google.cloud.asset.v1.SavedQueryOrBuilder> savedQueryBuilder_; /** - * - * *
          * Required. The saved query to update.
          * The saved query's `name` field is used to identify the one to update,
    @@ -629,18 +522,13 @@ public Builder mergeFrom(
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the savedQuery field is set. */ public boolean hasSavedQuery() { return savedQueryBuilder_ != null || savedQuery_ != null; } /** - * - * *
          * Required. The saved query to update.
          * The saved query's `name` field is used to identify the one to update,
    @@ -650,24 +538,17 @@ public boolean hasSavedQuery() {
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The savedQuery. */ public com.google.cloud.asset.v1.SavedQuery getSavedQuery() { if (savedQueryBuilder_ == null) { - return savedQuery_ == null - ? com.google.cloud.asset.v1.SavedQuery.getDefaultInstance() - : savedQuery_; + return savedQuery_ == null ? com.google.cloud.asset.v1.SavedQuery.getDefaultInstance() : savedQuery_; } else { return savedQueryBuilder_.getMessage(); } } /** - * - * *
          * Required. The saved query to update.
          * The saved query's `name` field is used to identify the one to update,
    @@ -677,9 +558,7 @@ public com.google.cloud.asset.v1.SavedQuery getSavedQuery() {
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSavedQuery(com.google.cloud.asset.v1.SavedQuery value) { if (savedQueryBuilder_ == null) { @@ -695,8 +574,6 @@ public Builder setSavedQuery(com.google.cloud.asset.v1.SavedQuery value) { return this; } /** - * - * *
          * Required. The saved query to update.
          * The saved query's `name` field is used to identify the one to update,
    @@ -706,11 +583,10 @@ public Builder setSavedQuery(com.google.cloud.asset.v1.SavedQuery value) {
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSavedQuery(com.google.cloud.asset.v1.SavedQuery.Builder builderForValue) { + public Builder setSavedQuery( + com.google.cloud.asset.v1.SavedQuery.Builder builderForValue) { if (savedQueryBuilder_ == null) { savedQuery_ = builderForValue.build(); onChanged(); @@ -721,8 +597,6 @@ public Builder setSavedQuery(com.google.cloud.asset.v1.SavedQuery.Builder builde return this; } /** - * - * *
          * Required. The saved query to update.
          * The saved query's `name` field is used to identify the one to update,
    @@ -732,17 +606,13 @@ public Builder setSavedQuery(com.google.cloud.asset.v1.SavedQuery.Builder builde
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSavedQuery(com.google.cloud.asset.v1.SavedQuery value) { if (savedQueryBuilder_ == null) { if (savedQuery_ != null) { savedQuery_ = - com.google.cloud.asset.v1.SavedQuery.newBuilder(savedQuery_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1.SavedQuery.newBuilder(savedQuery_).mergeFrom(value).buildPartial(); } else { savedQuery_ = value; } @@ -754,8 +624,6 @@ public Builder mergeSavedQuery(com.google.cloud.asset.v1.SavedQuery value) { return this; } /** - * - * *
          * Required. The saved query to update.
          * The saved query's `name` field is used to identify the one to update,
    @@ -765,9 +633,7 @@ public Builder mergeSavedQuery(com.google.cloud.asset.v1.SavedQuery value) {
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSavedQuery() { if (savedQueryBuilder_ == null) { @@ -781,8 +647,6 @@ public Builder clearSavedQuery() { return this; } /** - * - * *
          * Required. The saved query to update.
          * The saved query's `name` field is used to identify the one to update,
    @@ -792,18 +656,14 @@ public Builder clearSavedQuery() {
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.asset.v1.SavedQuery.Builder getSavedQueryBuilder() { - + onChanged(); return getSavedQueryFieldBuilder().getBuilder(); } /** - * - * *
          * Required. The saved query to update.
          * The saved query's `name` field is used to identify the one to update,
    @@ -813,22 +673,17 @@ public com.google.cloud.asset.v1.SavedQuery.Builder getSavedQueryBuilder() {
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() { if (savedQueryBuilder_ != null) { return savedQueryBuilder_.getMessageOrBuilder(); } else { - return savedQuery_ == null - ? com.google.cloud.asset.v1.SavedQuery.getDefaultInstance() - : savedQuery_; + return savedQuery_ == null ? + com.google.cloud.asset.v1.SavedQuery.getDefaultInstance() : savedQuery_; } } /** - * - * *
          * Required. The saved query to update.
          * The saved query's `name` field is used to identify the one to update,
    @@ -838,22 +693,17 @@ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() {
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.SavedQuery, - com.google.cloud.asset.v1.SavedQuery.Builder, - com.google.cloud.asset.v1.SavedQueryOrBuilder> + com.google.cloud.asset.v1.SavedQuery, com.google.cloud.asset.v1.SavedQuery.Builder, com.google.cloud.asset.v1.SavedQueryOrBuilder> getSavedQueryFieldBuilder() { if (savedQueryBuilder_ == null) { - savedQueryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.SavedQuery, - com.google.cloud.asset.v1.SavedQuery.Builder, - com.google.cloud.asset.v1.SavedQueryOrBuilder>( - getSavedQuery(), getParentForChildren(), isClean()); + savedQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.SavedQuery, com.google.cloud.asset.v1.SavedQuery.Builder, com.google.cloud.asset.v1.SavedQueryOrBuilder>( + getSavedQuery(), + getParentForChildren(), + isClean()); savedQuery_ = null; } return savedQueryBuilder_; @@ -861,55 +711,39 @@ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
          * Required. The list of fields to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
          * Required. The list of fields to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
          * Required. The list of fields to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -925,16 +759,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
          * Required. The list of fields to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -945,20 +777,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
          * Required. The list of fields to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -970,14 +799,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
          * Required. The list of fields to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -991,68 +817,55 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
          * Required. The list of fields to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
          * Required. The list of fields to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
          * Required. The list of fields to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1062,12 +875,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.UpdateSavedQueryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.UpdateSavedQueryRequest) private static final com.google.cloud.asset.v1.UpdateSavedQueryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.UpdateSavedQueryRequest(); } @@ -1076,16 +889,27 @@ public static com.google.cloud.asset.v1.UpdateSavedQueryRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSavedQueryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateSavedQueryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSavedQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1100,4 +924,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.UpdateSavedQueryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequestOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequestOrBuilder.java similarity index 65% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequestOrBuilder.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequestOrBuilder.java index 636720fe0d48..307da869bba4 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequestOrBuilder.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface UpdateSavedQueryRequestOrBuilder - extends +public interface UpdateSavedQueryRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.UpdateSavedQueryRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The saved query to update.
        * The saved query's `name` field is used to identify the one to update,
    @@ -35,16 +17,11 @@ public interface UpdateSavedQueryRequestOrBuilder
        * * organizations/organization_number/savedQueries/saved_query_id
        * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the savedQuery field is set. */ boolean hasSavedQuery(); /** - * - * *
        * Required. The saved query to update.
        * The saved query's `name` field is used to identify the one to update,
    @@ -54,16 +31,11 @@ public interface UpdateSavedQueryRequestOrBuilder
        * * organizations/organization_number/savedQueries/saved_query_id
        * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The savedQuery. */ com.google.cloud.asset.v1.SavedQuery getSavedQuery(); /** - * - * *
        * Required. The saved query to update.
        * The saved query's `name` field is used to identify the one to update,
    @@ -73,47 +45,34 @@ public interface UpdateSavedQueryRequestOrBuilder
        * * organizations/organization_number/savedQueries/saved_query_id
        * 
    * - * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder(); /** - * - * *
        * Required. The list of fields to update.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
        * Required. The list of fields to update.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
        * Required. The list of fields to update.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResource.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResource.java similarity index 72% rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResource.java rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResource.java index 3e263497afd7..92ae53f59bf9 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResource.java +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResource.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** - * - * *
      * Resource representation as defined by the corresponding service providing the
      * resource for a given API version.
    @@ -28,111 +11,47 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.VersionedResource}
      */
    -public final class VersionedResource extends com.google.protobuf.GeneratedMessageV3
    -    implements
    +public final class VersionedResource extends
    +    com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.VersionedResource)
         VersionedResourceOrBuilder {
    -  private static final long serialVersionUID = 0L;
    +private static final long serialVersionUID = 0L;
       // Use VersionedResource.newBuilder() to construct.
       private VersionedResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -
       private VersionedResource() {
         version_ = "";
       }
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(
    +      UnusedPrivateParameter unused) {
         return new VersionedResource();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet
    +  getUnknownFields() {
         return this.unknownFields;
       }
    -
    -  private VersionedResource(
    -      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();
    -
    -              version_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.protobuf.Struct.Builder subBuilder = null;
    -              if (resource_ != null) {
    -                subBuilder = resource_.toBuilder();
    -              }
    -              resource_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(resource_);
    -                resource_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
    -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetProto
    -        .internal_static_google_cloud_asset_v1_VersionedResource_descriptor;
    +  public static final com.google.protobuf.Descriptors.Descriptor
    +      getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_VersionedResource_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetProto
    -        .internal_static_google_cloud_asset_v1_VersionedResource_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_VersionedResource_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1.VersionedResource.class,
    -            com.google.cloud.asset.v1.VersionedResource.Builder.class);
    +            com.google.cloud.asset.v1.VersionedResource.class, com.google.cloud.asset.v1.VersionedResource.Builder.class);
       }
     
       public static final int VERSION_FIELD_NUMBER = 1;
       private volatile java.lang.Object version_;
       /**
    -   *
    -   *
        * 
        * API version of the resource.
        * Example:
    @@ -142,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
    * * string version = 1; - * * @return The version. */ @java.lang.Override @@ -151,15 +69,14 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
        * API version of the resource.
        * Example:
    @@ -169,15 +86,16 @@ public java.lang.String getVersion() {
        * 
    * * string version = 1; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -188,8 +106,6 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int RESOURCE_FIELD_NUMBER = 2; private com.google.protobuf.Struct resource_; /** - * - * *
        * JSON representation of the resource as defined by the corresponding
        * service providing this resource.
    @@ -204,7 +120,6 @@ public com.google.protobuf.ByteString getVersionBytes() {
        * 
    * * .google.protobuf.Struct resource = 2; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -212,8 +127,6 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
        * JSON representation of the resource as defined by the corresponding
        * service providing this resource.
    @@ -228,7 +141,6 @@ public boolean hasResource() {
        * 
    * * .google.protobuf.Struct resource = 2; - * * @return The resource. */ @java.lang.Override @@ -236,8 +148,6 @@ public com.google.protobuf.Struct getResource() { return resource_ == null ? com.google.protobuf.Struct.getDefaultInstance() : resource_; } /** - * - * *
        * JSON representation of the resource as defined by the corresponding
        * service providing this resource.
    @@ -259,7 +169,6 @@ public com.google.protobuf.StructOrBuilder getResourceOrBuilder() {
       }
     
       private byte memoizedIsInitialized = -1;
    -
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -271,14 +180,15 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output)
    +                      throws java.io.IOException {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
         }
         if (resource_ != null) {
           output.writeMessage(2, getResource());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -291,9 +201,10 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_);
         }
         if (resource_ != null) {
    -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResource());
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(2, getResource());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -301,20 +212,21 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -      return true;
    +     return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1.VersionedResource)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1.VersionedResource other =
    -        (com.google.cloud.asset.v1.VersionedResource) obj;
    +    com.google.cloud.asset.v1.VersionedResource other = (com.google.cloud.asset.v1.VersionedResource) obj;
     
    -    if (!getVersion().equals(other.getVersion())) return false;
    +    if (!getVersion()
    +        .equals(other.getVersion())) return false;
         if (hasResource() != other.hasResource()) return false;
         if (hasResource()) {
    -      if (!getResource().equals(other.getResource())) return false;
    +      if (!getResource()
    +          .equals(other.getResource())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -331,109 +243,102 @@ public int hashCode() {
           hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
           hash = (53 * hash) + getResource().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1.VersionedResource parseFrom(java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1.VersionedResource parseFrom(
    +      java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.VersionedResource parseFrom(
    -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.VersionedResource parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.VersionedResource 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.asset.v1.VersionedResource parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1.VersionedResource parseFrom(
    -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.VersionedResource parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.VersionedResource parseFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
    -
    -  public static com.google.cloud.asset.v1.VersionedResource parseDelimitedFrom(
    -      java.io.InputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    +  public static com.google.cloud.asset.v1.VersionedResource parseDelimitedFrom(java.io.InputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.VersionedResource parseDelimitedFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1.VersionedResource parseFrom(
    -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1.VersionedResource parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() {
    -    return newBuilder();
    -  }
    -
    +  public Builder newBuilderForType() { return newBuilder(); }
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    -
       public static Builder newBuilder(com.google.cloud.asset.v1.VersionedResource prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    -
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE
    +        ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(
    +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    -   *
    -   *
        * 
        * Resource representation as defined by the corresponding service providing the
        * resource for a given API version.
    @@ -441,39 +346,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        * Protobuf type {@code google.cloud.asset.v1.VersionedResource}
        */
    -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    -      implements
    +  public static final class Builder extends
    +      com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.VersionedResource)
           com.google.cloud.asset.v1.VersionedResourceOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_VersionedResource_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor
    +        getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_VersionedResource_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_VersionedResource_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_VersionedResource_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.VersionedResource.class,
    -              com.google.cloud.asset.v1.VersionedResource.Builder.class);
    +              com.google.cloud.asset.v1.VersionedResource.class, com.google.cloud.asset.v1.VersionedResource.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.VersionedResource.newBuilder()
         private Builder() {
    -      maybeForceBuilderInitialization();
    +
         }
     
    -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    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();
    @@ -489,9 +388,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetProto
    -          .internal_static_google_cloud_asset_v1_VersionedResource_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor
    +        getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_VersionedResource_descriptor;
         }
     
         @java.lang.Override
    @@ -510,8 +409,7 @@ public com.google.cloud.asset.v1.VersionedResource build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1.VersionedResource buildPartial() {
    -      com.google.cloud.asset.v1.VersionedResource result =
    -          new com.google.cloud.asset.v1.VersionedResource(this);
    +      com.google.cloud.asset.v1.VersionedResource result = new com.google.cloud.asset.v1.VersionedResource(this);
           result.version_ = version_;
           if (resourceBuilder_ == null) {
             result.resource_ = resource_;
    @@ -526,39 +424,38 @@ public com.google.cloud.asset.v1.VersionedResource buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    -
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.VersionedResource) {
    -        return mergeFrom((com.google.cloud.asset.v1.VersionedResource) other);
    +        return mergeFrom((com.google.cloud.asset.v1.VersionedResource)other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -574,7 +471,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.VersionedResource other) {
           if (other.hasResource()) {
             mergeResource(other.getResource());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -589,24 +486,47 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1.VersionedResource parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10: {
    +              version_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 10
    +            case 18: {
    +              input.readMessage(
    +                  getResourceFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 18
    +            default: {
    +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                done = true; // was an endgroup tag
    +              }
    +              break;
    +            } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1.VersionedResource) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
         private java.lang.Object version_ = "";
         /**
    -     *
    -     *
          * 
          * API version of the resource.
          * Example:
    @@ -616,13 +536,13 @@ public Builder mergeFrom(
          * 
    * * string version = 1; - * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -631,8 +551,6 @@ public java.lang.String getVersion() { } } /** - * - * *
          * API version of the resource.
          * Example:
    @@ -642,14 +560,15 @@ public java.lang.String getVersion() {
          * 
    * * string version = 1; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -657,8 +576,6 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
          * API version of the resource.
          * Example:
    @@ -668,22 +585,20 @@ public com.google.protobuf.ByteString getVersionBytes() {
          * 
    * * string version = 1; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
          * API version of the resource.
          * Example:
    @@ -693,18 +608,15 @@ public Builder setVersion(java.lang.String value) {
          * 
    * * string version = 1; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
          * API version of the resource.
          * Example:
    @@ -714,16 +626,16 @@ public Builder clearVersion() {
          * 
    * * string version = 1; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -731,13 +643,8 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Struct resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - resourceBuilder_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> resourceBuilder_; /** - * - * *
          * JSON representation of the resource as defined by the corresponding
          * service providing this resource.
    @@ -752,15 +659,12 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) {
          * 
    * * .google.protobuf.Struct resource = 2; - * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** - * - * *
          * JSON representation of the resource as defined by the corresponding
          * service providing this resource.
    @@ -775,7 +679,6 @@ public boolean hasResource() {
          * 
    * * .google.protobuf.Struct resource = 2; - * * @return The resource. */ public com.google.protobuf.Struct getResource() { @@ -786,8 +689,6 @@ public com.google.protobuf.Struct getResource() { } } /** - * - * *
          * JSON representation of the resource as defined by the corresponding
          * service providing this resource.
    @@ -817,8 +718,6 @@ public Builder setResource(com.google.protobuf.Struct value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * JSON representation of the resource as defined by the corresponding
          * service providing this resource.
    @@ -834,7 +733,8 @@ public Builder setResource(com.google.protobuf.Struct value) {
          *
          * .google.protobuf.Struct resource = 2;
          */
    -    public Builder setResource(com.google.protobuf.Struct.Builder builderForValue) {
    +    public Builder setResource(
    +        com.google.protobuf.Struct.Builder builderForValue) {
           if (resourceBuilder_ == null) {
             resource_ = builderForValue.build();
             onChanged();
    @@ -845,8 +745,6 @@ public Builder setResource(com.google.protobuf.Struct.Builder builderForValue) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * JSON representation of the resource as defined by the corresponding
          * service providing this resource.
    @@ -866,7 +764,7 @@ public Builder mergeResource(com.google.protobuf.Struct value) {
           if (resourceBuilder_ == null) {
             if (resource_ != null) {
               resource_ =
    -              com.google.protobuf.Struct.newBuilder(resource_).mergeFrom(value).buildPartial();
    +            com.google.protobuf.Struct.newBuilder(resource_).mergeFrom(value).buildPartial();
             } else {
               resource_ = value;
             }
    @@ -878,8 +776,6 @@ public Builder mergeResource(com.google.protobuf.Struct value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * JSON representation of the resource as defined by the corresponding
          * service providing this resource.
    @@ -907,8 +803,6 @@ public Builder clearResource() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * JSON representation of the resource as defined by the corresponding
          * service providing this resource.
    @@ -925,13 +819,11 @@ public Builder clearResource() {
          * .google.protobuf.Struct resource = 2;
          */
         public com.google.protobuf.Struct.Builder getResourceBuilder() {
    -
    +      
           onChanged();
           return getResourceFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * JSON representation of the resource as defined by the corresponding
          * service providing this resource.
    @@ -951,12 +843,11 @@ public com.google.protobuf.StructOrBuilder getResourceOrBuilder() {
           if (resourceBuilder_ != null) {
             return resourceBuilder_.getMessageOrBuilder();
           } else {
    -        return resource_ == null ? com.google.protobuf.Struct.getDefaultInstance() : resource_;
    +        return resource_ == null ?
    +            com.google.protobuf.Struct.getDefaultInstance() : resource_;
           }
         }
         /**
    -     *
    -     *
          * 
          * JSON representation of the resource as defined by the corresponding
          * service providing this resource.
    @@ -973,24 +864,21 @@ public com.google.protobuf.StructOrBuilder getResourceOrBuilder() {
          * .google.protobuf.Struct resource = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Struct,
    -            com.google.protobuf.Struct.Builder,
    -            com.google.protobuf.StructOrBuilder>
    +        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
             getResourceFieldBuilder() {
           if (resourceBuilder_ == null) {
    -        resourceBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.protobuf.Struct,
    -                com.google.protobuf.Struct.Builder,
    -                com.google.protobuf.StructOrBuilder>(
    -                getResource(), getParentForChildren(), isClean());
    +        resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
    +                getResource(),
    +                getParentForChildren(),
    +                isClean());
             resource_ = null;
           }
           return resourceBuilder_;
         }
    -
         @java.lang.Override
    -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(
    +        final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -1000,12 +888,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    +
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.VersionedResource)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.VersionedResource)
       private static final com.google.cloud.asset.v1.VersionedResource DEFAULT_INSTANCE;
    -
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1.VersionedResource();
       }
    @@ -1014,16 +902,27 @@ public static com.google.cloud.asset.v1.VersionedResource getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser PARSER =
    -      new com.google.protobuf.AbstractParser() {
    -        @java.lang.Override
    -        public VersionedResource parsePartialFrom(
    -            com.google.protobuf.CodedInputStream input,
    -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -            throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new VersionedResource(input, extensionRegistry);
    -        }
    -      };
    +  private static final com.google.protobuf.Parser
    +      PARSER = new com.google.protobuf.AbstractParser() {
    +    @java.lang.Override
    +    public VersionedResource parsePartialFrom(
    +        com.google.protobuf.CodedInputStream input,
    +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        throws com.google.protobuf.InvalidProtocolBufferException {
    +      Builder builder = newBuilder();
    +      try {
    +        builder.mergeFrom(input, extensionRegistry);
    +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +        throw e.setUnfinishedMessage(builder.buildPartial());
    +      } catch (com.google.protobuf.UninitializedMessageException e) {
    +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +      } catch (java.io.IOException e) {
    +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +            .setUnfinishedMessage(builder.buildPartial());
    +      }
    +      return builder.buildPartial();
    +    }
    +  };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1038,4 +937,6 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1.VersionedResource getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    +
     }
    +
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResourceOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResourceOrBuilder.java
    similarity index 80%
    rename from java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResourceOrBuilder.java
    rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResourceOrBuilder.java
    index d86916246d95..9f9efa604b04 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResourceOrBuilder.java
    +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResourceOrBuilder.java
    @@ -1,31 +1,13 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/assets.proto
     
     package com.google.cloud.asset.v1;
     
    -public interface VersionedResourceOrBuilder
    -    extends
    +public interface VersionedResourceOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.VersionedResource)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    -   *
    -   *
        * 
        * API version of the resource.
        * Example:
    @@ -35,13 +17,10 @@ public interface VersionedResourceOrBuilder
        * 
    * * string version = 1; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
        * API version of the resource.
        * Example:
    @@ -51,14 +30,12 @@ public interface VersionedResourceOrBuilder
        * 
    * * string version = 1; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
        * JSON representation of the resource as defined by the corresponding
        * service providing this resource.
    @@ -73,13 +50,10 @@ public interface VersionedResourceOrBuilder
        * 
    * * .google.protobuf.Struct resource = 2; - * * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
        * JSON representation of the resource as defined by the corresponding
        * service providing this resource.
    @@ -94,13 +68,10 @@ public interface VersionedResourceOrBuilder
        * 
    * * .google.protobuf.Struct resource = 2; - * * @return The resource. */ com.google.protobuf.Struct getResource(); /** - * - * *
        * JSON representation of the resource as defined by the corresponding
        * service providing this resource.
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto
    similarity index 84%
    rename from java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto
    rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto
    index 1c34327291db..9e13d0662d72 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto
    +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto
    @@ -41,20 +41,18 @@ option php_namespace = "Google\\Cloud\\Asset\\V1";
     // Asset service definition.
     service AssetService {
       option (google.api.default_host) = "cloudasset.googleapis.com";
    -  option (google.api.oauth_scopes) =
    -      "https://www.googleapis.com/auth/cloud-platform";
    +  option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
     
       // Exports assets with time and resource types to a given Cloud Storage
       // location/BigQuery table. For Cloud Storage location destinations, the
       // output format is newline-delimited JSON. Each line represents a
    -  // [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON
    -  // format; for BigQuery table destinations, the output table stores the fields
    -  // in asset Protobuf as columns. This API implements the
    -  // [google.longrunning.Operation][google.longrunning.Operation] API, which
    -  // allows you to keep track of the export. We recommend intervals of at least
    -  // 2 seconds with exponential retry to poll the export operation result. For
    -  // regular-size resource parent, the export operation usually finishes within
    -  // 5 minutes.
    +  // [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON format; for BigQuery table
    +  // destinations, the output table stores the fields in asset Protobuf as
    +  // columns. This API implements the [google.longrunning.Operation][google.longrunning.Operation] API,
    +  // which allows you to keep track of the export. We recommend intervals of at
    +  // least 2 seconds with exponential retry to poll the export operation result.
    +  // For regular-size resource parent, the export operation usually finishes
    +  // within 5 minutes.
       rpc ExportAssets(ExportAssetsRequest) returns (google.longrunning.Operation) {
         option (google.api.http) = {
           post: "/v1/{parent=*/*}:exportAssets"
    @@ -82,8 +80,7 @@ service AssetService {
       // deleted status.
       // If a specified asset does not exist, this API returns an INVALID_ARGUMENT
       // error.
    -  rpc BatchGetAssetsHistory(BatchGetAssetsHistoryRequest)
    -      returns (BatchGetAssetsHistoryResponse) {
    +  rpc BatchGetAssetsHistory(BatchGetAssetsHistoryRequest) returns (BatchGetAssetsHistoryResponse) {
         option (google.api.http) = {
           get: "/v1/{parent=*/*}:batchGetAssetsHistory"
         };
    @@ -136,8 +133,7 @@ service AssetService {
       // folder, or organization. The caller must be granted the
       // `cloudasset.assets.searchAllResources` permission on the desired scope,
       // otherwise the request will be rejected.
    -  rpc SearchAllResources(SearchAllResourcesRequest)
    -      returns (SearchAllResourcesResponse) {
    +  rpc SearchAllResources(SearchAllResourcesRequest) returns (SearchAllResourcesResponse) {
         option (google.api.http) = {
           get: "/v1/{scope=*/*}:searchAllResources"
         };
    @@ -148,8 +144,7 @@ service AssetService {
       // folder, or organization. The caller must be granted the
       // `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
       // otherwise the request will be rejected.
    -  rpc SearchAllIamPolicies(SearchAllIamPoliciesRequest)
    -      returns (SearchAllIamPoliciesResponse) {
    +  rpc SearchAllIamPolicies(SearchAllIamPoliciesRequest) returns (SearchAllIamPoliciesResponse) {
         option (google.api.http) = {
           get: "/v1/{scope=*/*}:searchAllIamPolicies"
         };
    @@ -158,8 +153,7 @@ service AssetService {
     
       // Analyzes IAM policies to answer which identities have what accesses on
       // which resources.
    -  rpc AnalyzeIamPolicy(AnalyzeIamPolicyRequest)
    -      returns (AnalyzeIamPolicyResponse) {
    +  rpc AnalyzeIamPolicy(AnalyzeIamPolicyRequest) returns (AnalyzeIamPolicyResponse) {
         option (google.api.http) = {
           get: "/v1/{analysis_query.scope=*/*}:analyzeIamPolicy"
         };
    @@ -169,14 +163,12 @@ service AssetService {
       // accesses on which resources, and writes the analysis results to a Google
       // Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
       // output format is the JSON format that represents a
    -  // [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse].
    -  // This method implements the
    -  // [google.longrunning.Operation][google.longrunning.Operation], which allows
    -  // you to track the operation status. We recommend intervals of at least 2
    -  // seconds with exponential backoff retry to poll the operation result. The
    -  // metadata contains the metadata for the long-running operation.
    -  rpc AnalyzeIamPolicyLongrunning(AnalyzeIamPolicyLongrunningRequest)
    -      returns (google.longrunning.Operation) {
    +  // [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. This method implements the
    +  // [google.longrunning.Operation][google.longrunning.Operation], which allows you to track the operation
    +  // status. We recommend intervals of at least 2 seconds with exponential
    +  // backoff retry to poll the operation result. The metadata contains the
    +  // metadata for the long-running operation.
    +  rpc AnalyzeIamPolicyLongrunning(AnalyzeIamPolicyLongrunningRequest) returns (google.longrunning.Operation) {
         option (google.api.http) = {
           post: "/v1/{analysis_query.scope=*/*}:analyzeIamPolicyLongrunning"
           body: "*"
    @@ -237,8 +229,7 @@ service AssetService {
       }
     
       // Lists all saved queries in a parent project/folder/organization.
    -  rpc ListSavedQueries(ListSavedQueriesRequest)
    -      returns (ListSavedQueriesResponse) {
    +  rpc ListSavedQueries(ListSavedQueriesRequest) returns (ListSavedQueriesResponse) {
         option (google.api.http) = {
           get: "/v1/{parent=*/*}/savedQueries"
         };
    @@ -255,8 +246,7 @@ service AssetService {
       }
     
       // Deletes a saved query.
    -  rpc DeleteSavedQuery(DeleteSavedQueryRequest)
    -      returns (google.protobuf.Empty) {
    +  rpc DeleteSavedQuery(DeleteSavedQueryRequest) returns (google.protobuf.Empty) {
         option (google.api.http) = {
           delete: "/v1/{name=*/*/savedQueries/*}"
         };
    @@ -264,8 +254,7 @@ service AssetService {
       }
     
       // Gets effective IAM policies for a batch of resources.
    -  rpc BatchGetEffectiveIamPolicies(BatchGetEffectiveIamPoliciesRequest)
    -      returns (BatchGetEffectiveIamPoliciesResponse) {
    +  rpc BatchGetEffectiveIamPolicies(BatchGetEffectiveIamPoliciesRequest) returns (BatchGetEffectiveIamPoliciesResponse) {
         option (google.api.http) = {
           get: "/v1/{scope=*/*}/effectiveIamPolicies:batchGet"
         };
    @@ -276,8 +265,7 @@ service AssetService {
     // AnalyzeIamPolicyLongrunning rpc.
     message AnalyzeIamPolicyLongrunningMetadata {
       // Output only. The time the operation was created.
    -  google.protobuf.Timestamp create_time = 1
    -      [(google.api.field_behavior) = OUTPUT_ONLY];
    +  google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
     }
     
     // Export asset request.
    @@ -324,8 +312,7 @@ message ExportAssetsRequest {
       // returned.
       ContentType content_type = 4;
     
    -  // Required. Output configuration indicating where the results will be output
    -  // to.
    +  // Required. Output configuration indicating where the results will be output to.
       OutputConfig output_config = 5 [(google.api.field_behavior) = REQUIRED];
     
       // A list of relationship types to export, for example:
    @@ -347,10 +334,8 @@ message ExportAssetsRequest {
     }
     
     // The export asset response. This message is returned by the
    -// [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation]
    -// method in the returned
    -// [google.longrunning.Operation.response][google.longrunning.Operation.response]
    -// field.
    +// [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation] method in the returned
    +// [google.longrunning.Operation.response][google.longrunning.Operation.response] field.
     message ExportAssetsResponse {
       // Time the snapshot was taken.
       google.protobuf.Timestamp read_time = 1;
    @@ -368,11 +353,11 @@ message ExportAssetsResponse {
     
     // ListAssets request.
     message ListAssetsRequest {
    -  // Required. Name of the organization, folder, or project the assets belong
    -  // to. Format: "organizations/[organization-number]" (such as
    -  // "organizations/123"), "projects/[project-id]" (such as
    -  // "projects/my-project-id"), "projects/[project-number]" (such as
    -  // "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
    +  // Required. Name of the organization, folder, or project the assets belong to. Format:
    +  // "organizations/[organization-number]" (such as "organizations/123"),
    +  // "projects/[project-id]" (such as "projects/my-project-id"),
    +  // "projects/[project-number]" (such as "projects/12345"), or
    +  // "folders/[folder-number]" (such as "folders/12345").
       string parent = 1 [
         (google.api.field_behavior) = REQUIRED,
         (google.api.resource_reference) = {
    @@ -501,8 +486,7 @@ message BatchGetAssetsHistoryRequest {
       // See [Introduction to Cloud Asset
       // Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
       // supported asset types and relationship types.
    -  repeated string relationship_types = 5
    -      [(google.api.field_behavior) = OPTIONAL];
    +  repeated string relationship_types = 5 [(google.api.field_behavior) = OPTIONAL];
     }
     
     // Batch get assets history response.
    @@ -524,8 +508,9 @@ message CreateFeedRequest {
       // be unique under a specific parent project/folder/organization.
       string feed_id = 2 [(google.api.field_behavior) = REQUIRED];
     
    -  // Required. The feed details. The field `name` must be empty and it will be
    -  // generated in the format of: projects/project_number/feeds/feed_id
    +  // Required. The feed details. The field `name` must be empty and it will be generated
    +  // in the format of:
    +  // projects/project_number/feeds/feed_id
       // folders/folder_number/feeds/feed_id
       // organizations/organization_number/feeds/feed_id
       Feed feed = 3 [(google.api.field_behavior) = REQUIRED];
    @@ -539,7 +524,9 @@ message GetFeedRequest {
       // organizations/organization_number/feeds/feed_id
       string name = 1 [
         (google.api.field_behavior) = REQUIRED,
    -    (google.api.resource_reference) = { type: "cloudasset.googleapis.com/Feed" }
    +    (google.api.resource_reference) = {
    +      type: "cloudasset.googleapis.com/Feed"
    +    }
       ];
     }
     
    @@ -558,8 +545,8 @@ message ListFeedsResponse {
     
     // Update asset feed request.
     message UpdateFeedRequest {
    -  // Required. The new values of feed details. It must match an existing feed
    -  // and the field `name` must be in the format of:
    +  // Required. The new values of feed details. It must match an existing feed and the
    +  // field `name` must be in the format of:
       // projects/project_number/feeds/feed_id or
       // folders/folder_number/feeds/feed_id or
       // organizations/organization_number/feeds/feed_id.
    @@ -568,8 +555,7 @@ message UpdateFeedRequest {
       // Required. Only updates the `feed` fields indicated by this mask.
       // The field mask must not be empty, and it must not contain fields that
       // are immutable or only set by the server.
    -  google.protobuf.FieldMask update_mask = 2
    -      [(google.api.field_behavior) = REQUIRED];
    +  google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
     }
     
     message DeleteFeedRequest {
    @@ -579,7 +565,9 @@ message DeleteFeedRequest {
       // organizations/organization_number/feeds/feed_id
       string name = 1 [
         (google.api.field_behavior) = REQUIRED,
    -    (google.api.resource_reference) = { type: "cloudasset.googleapis.com/Feed" }
    +    (google.api.resource_reference) = {
    +      type: "cloudasset.googleapis.com/Feed"
    +    }
       ];
     }
     
    @@ -804,8 +792,7 @@ message Feed {
     
       // Required. Feed output configuration defining where the asset updates are
       // published to.
    -  FeedOutputConfig feed_output_config = 5
    -      [(google.api.field_behavior) = REQUIRED];
    +  FeedOutputConfig feed_output_config = 5 [(google.api.field_behavior) = REQUIRED];
     
       // A condition which determines whether an asset update should be published.
       // If specified, an asset will be returned only when the expression evaluates
    @@ -842,9 +829,8 @@ message Feed {
     
     // Search all resources request.
     message SearchAllResourcesRequest {
    -  // Required. A scope can be a project, a folder, or an organization. The
    -  // search is limited to the resources within the `scope`. The caller must be
    -  // granted the
    +  // Required. A scope can be a project, a folder, or an organization. The search is
    +  // limited to the resources within the `scope`. The caller must be granted the
       // [`cloudasset.assets.searchAllResources`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
       // permission on the desired scope.
       //
    @@ -877,7 +863,11 @@ message SearchAllResourcesRequest {
       //   and its value is "prod".
       // * `labels.env:*` to find Cloud resources that have a label "env".
       // * `kmsKey:key` to find Cloud resources encrypted with a customer-managed
    -  //   encryption key whose name contains the word "key".
    +  //   encryption key whose name contains "key" as a word. This field is
    +  //   deprecated. Please use the `kmsKeys` field to retrieve KMS key
    +  //   information.
    +  // * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
    +  //   encryption keys whose name contains the word "key".
       // * `relationships:instance-group-1` to find Cloud resources that have
       //   relationships with "instance-group-1" in the related resource name.
       // * `relationships:INSTANCE_TO_INSTANCEGROUP` to find compute instances that
    @@ -906,8 +896,8 @@ message SearchAllResourcesRequest {
       //   location.
       string query = 2 [(google.api.field_behavior) = OPTIONAL];
     
    -  // Optional. A list of asset types that this request searches for. If empty,
    -  // it will search all the [searchable asset
    +  // Optional. A list of asset types that this request searches for. If empty, it will
    +  // search all the [searchable asset
       // types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
       //
       // Regular expressions are also supported. For example:
    @@ -922,22 +912,21 @@ message SearchAllResourcesRequest {
       // supported asset type, an INVALID_ARGUMENT error will be returned.
       repeated string asset_types = 3 [(google.api.field_behavior) = OPTIONAL];
     
    -  // Optional. The page size for search result pagination. Page size is capped
    -  // at 500 even if a larger value is given. If set to zero, server will pick an
    -  // appropriate default. Returned results may be fewer than requested. When
    -  // this happens, there could be more results as long as `next_page_token` is
    -  // returned.
    +  // Optional. The page size for search result pagination. Page size is capped at 500 even
    +  // if a larger value is given. If set to zero, server will pick an appropriate
    +  // default. Returned results may be fewer than requested. When this happens,
    +  // there could be more results as long as `next_page_token` is returned.
       int32 page_size = 4 [(google.api.field_behavior) = OPTIONAL];
     
    -  // Optional. If present, then retrieve the next batch of results from the
    -  // preceding call to this method. `page_token` must be the value of
    -  // `next_page_token` from the previous response. The values of all other
    -  // method parameters, must be identical to those in the previous call.
    +  // Optional. If present, then retrieve the next batch of results from the preceding call
    +  // to this method. `page_token` must be the value of `next_page_token` from
    +  // the previous response. The values of all other method parameters, must be
    +  // identical to those in the previous call.
       string page_token = 5 [(google.api.field_behavior) = OPTIONAL];
     
    -  // Optional. A comma-separated list of fields specifying the sorting order of
    -  // the results. The default order is ascending. Add " DESC" after the field
    -  // name to indicate descending order. Redundant space characters are ignored.
    +  // Optional. A comma-separated list of fields specifying the sorting order of the
    +  // results. The default order is ascending. Add " DESC" after the field name
    +  // to indicate descending order. Redundant space characters are ignored.
       // Example: "location DESC, name".
       // Only singular primitive fields in the response are sortable:
       //
    @@ -947,22 +936,21 @@ message SearchAllResourcesRequest {
       //   * displayName
       //   * description
       //   * location
    -  //   * kmsKey
       //   * createTime
       //   * updateTime
       //   * state
       //   * parentFullResourceName
       //   * parentAssetType
       //
    -  // All the other fields such as repeated fields (e.g., `networkTags`), map
    -  // fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`)
    -  // are not supported.
    +  // All the other fields such as repeated fields (e.g., `networkTags`,
    +  // `kmsKeys`), map fields (e.g., `labels`) and struct fields (e.g.,
    +  // `additionalAttributes`) are not supported.
       string order_by = 6 [(google.api.field_behavior) = OPTIONAL];
     
    -  // Optional. A comma-separated list of fields specifying which fields to be
    -  // returned in ResourceSearchResult. Only '*' or combination of top level
    -  // fields can be specified. Field names of both snake_case and camelCase are
    -  // supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
    +  // Optional. A comma-separated list of fields specifying which fields to be returned in
    +  // ResourceSearchResult. Only '*' or combination of top level fields can be
    +  // specified. Field names of both snake_case and camelCase are supported.
    +  // Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
       //
       // The read_mask paths must be valid field paths listed but not limited to
       // (both snake_case and camelCase are supported):
    @@ -978,7 +966,9 @@ message SearchAllResourcesRequest {
       //   * tagValueIds
       //   * labels
       //   * networkTags
    -  //   * kmsKey
    +  //   * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
    +  //     retrieve KMS key information.)
    +  //   * kmsKeys
       //   * createTime
       //   * updateTime
       //   * state
    @@ -990,8 +980,7 @@ message SearchAllResourcesRequest {
       // If only '*' is specified, all fields including versionedResources will be
       // returned.
       // Any invalid field path will trigger INVALID_ARGUMENT error.
    -  google.protobuf.FieldMask read_mask = 8
    -      [(google.api.field_behavior) = OPTIONAL];
    +  google.protobuf.FieldMask read_mask = 8 [(google.api.field_behavior) = OPTIONAL];
     }
     
     // Search all resources response.
    @@ -1008,9 +997,9 @@ message SearchAllResourcesResponse {
     
     // Search all IAM policies request.
     message SearchAllIamPoliciesRequest {
    -  // Required. A scope can be a project, a folder, or an organization. The
    -  // search is limited to the IAM policies within the `scope`. The caller must
    -  // be granted the
    +  // Required. A scope can be a project, a folder, or an organization. The search is
    +  // limited to the IAM policies within the `scope`. The caller must be granted
    +  // the
       // [`cloudasset.assets.searchAllIamPolicies`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
       // permission on the desired scope.
       //
    @@ -1066,22 +1055,20 @@ message SearchAllIamPoliciesRequest {
       //   principal type "user".
       string query = 2 [(google.api.field_behavior) = OPTIONAL];
     
    -  // Optional. The page size for search result pagination. Page size is capped
    -  // at 500 even if a larger value is given. If set to zero, server will pick an
    -  // appropriate default. Returned results may be fewer than requested. When
    -  // this happens, there could be more results as long as `next_page_token` is
    -  // returned.
    +  // Optional. The page size for search result pagination. Page size is capped at 500 even
    +  // if a larger value is given. If set to zero, server will pick an appropriate
    +  // default. Returned results may be fewer than requested. When this happens,
    +  // there could be more results as long as `next_page_token` is returned.
       int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL];
     
    -  // Optional. If present, retrieve the next batch of results from the preceding
    -  // call to this method. `page_token` must be the value of `next_page_token`
    -  // from the previous response. The values of all other method parameters must
    -  // be identical to those in the previous call.
    +  // Optional. If present, retrieve the next batch of results from the preceding call to
    +  // this method. `page_token` must be the value of `next_page_token` from the
    +  // previous response. The values of all other method parameters must be
    +  // identical to those in the previous call.
       string page_token = 4 [(google.api.field_behavior) = OPTIONAL];
     
    -  // Optional. A list of asset types that the IAM policies are attached to. If
    -  // empty, it will search the IAM policies that are attached to all the
    -  // [searchable asset
    +  // Optional. A list of asset types that the IAM policies are attached to. If empty, it
    +  // will search the IAM policies that are attached to all the [searchable asset
       // types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
       //
       // Regular expressions are also supported. For example:
    @@ -1098,9 +1085,9 @@ message SearchAllIamPoliciesRequest {
       // supported asset type, an INVALID_ARGUMENT error will be returned.
       repeated string asset_types = 5 [(google.api.field_behavior) = OPTIONAL];
     
    -  // Optional. A comma-separated list of fields specifying the sorting order of
    -  // the results. The default order is ascending. Add " DESC" after the field
    -  // name to indicate descending order. Redundant space characters are ignored.
    +  // Optional. A comma-separated list of fields specifying the sorting order of the
    +  // results. The default order is ascending. Add " DESC" after the field name
    +  // to indicate descending order. Redundant space characters are ignored.
       // Example: "assetType DESC, resource".
       // Only singular primitive fields in the response are sortable:
       //   * resource
    @@ -1173,10 +1160,9 @@ message IamPolicyAnalysisQuery {
         // Optional. If true, the identities section of the result will expand any
         // Google groups appearing in an IAM policy binding.
         //
    -    // If
    -    // [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector]
    -    // is specified, the identity in the result will be determined by the
    -    // selector, and this flag is not allowed to set.
    +    // If [IamPolicyAnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.identity_selector] is specified, the
    +    // identity in the result will be determined by the selector, and this flag
    +    // is not allowed to set.
         //
         // If true, the default max expansion per group is 1000 for
         // AssetService.AnalyzeIamPolicy][].
    @@ -1187,31 +1173,28 @@ message IamPolicyAnalysisQuery {
         // Optional. If true, the access section of result will expand any roles
         // appearing in IAM policy bindings to include their permissions.
         //
    -    // If
    -    // [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector]
    -    // is specified, the access section of the result will be determined by the
    -    // selector, and this flag is not allowed to set.
    +    // If [IamPolicyAnalysisQuery.access_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector] is specified, the access
    +    // section of the result will be determined by the selector, and this flag
    +    // is not allowed to set.
         //
         // Default is false.
         bool expand_roles = 2 [(google.api.field_behavior) = OPTIONAL];
     
    -    // Optional. If true and
    -    // [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
    -    // is not specified, the resource section of the result will expand any
    -    // resource attached to an IAM policy to include resources lower in the
    -    // resource hierarchy.
    +    // Optional. If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is not
    +    // specified, the resource section of the result will expand any resource
    +    // attached to an IAM policy to include resources lower in the resource
    +    // hierarchy.
         //
         // For example, if the request analyzes for which resources user A has
         // permission P, and the results include an IAM policy with P on a GCP
         // folder, the results will also include resources in that folder with
         // permission P.
         //
    -    // If true and
    -    // [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector]
    -    // is specified, the resource section of the result will expand the
    -    // specified resource to include resources lower in the resource hierarchy.
    -    // Only project or lower resources are supported. Folder and organization
    -    // resource cannot be used together with this option.
    +    // If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is specified,
    +    // the resource section of the result will expand the specified resource to
    +    // include resources lower in the resource hierarchy. Only project or
    +    // lower resources are supported. Folder and organization resource cannot be
    +    // used together with this option.
         //
         // For example, if the request analyzes for which users have permission P on
         // a GCP project with this option enabled, the results will include all
    @@ -1224,21 +1207,21 @@ message IamPolicyAnalysisQuery {
         // Default is false.
         bool expand_resources = 3 [(google.api.field_behavior) = OPTIONAL];
     
    -    // Optional. If true, the result will output the relevant parent/child
    -    // relationships between resources. Default is false.
    +    // Optional. If true, the result will output the relevant parent/child relationships
    +    // between resources.
    +    // Default is false.
         bool output_resource_edges = 4 [(google.api.field_behavior) = OPTIONAL];
     
    -    // Optional. If true, the result will output the relevant membership
    -    // relationships between groups and other groups, and between groups and
    -    // principals. Default is false.
    +    // Optional. If true, the result will output the relevant membership relationships
    +    // between groups and other groups, and between groups and principals.
    +    // Default is false.
         bool output_group_edges = 5 [(google.api.field_behavior) = OPTIONAL];
     
    -    // Optional. If true, the response will include access analysis from
    -    // identities to resources via service account impersonation. This is a very
    -    // expensive operation, because many derived queries will be executed. We
    -    // highly recommend you use
    -    // [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -    // rpc instead.
    +    // Optional. If true, the response will include access analysis from identities to
    +    // resources via service account impersonation. This is a very expensive
    +    // operation, because many derived queries will be executed. We highly
    +    // recommend you use [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc
    +    // instead.
         //
         // For example, if the request analyzes for which resources user A has
         // permission P, and there's an IAM policy states user A has
    @@ -1266,8 +1249,7 @@ message IamPolicyAnalysisQuery {
         // * `iam.serviceAccounts.implicitDelegation`
         //
         // Default is false.
    -    bool analyze_service_account_impersonation = 6
    -        [(google.api.field_behavior) = OPTIONAL];
    +    bool analyze_service_account_impersonation = 6 [(google.api.field_behavior) = OPTIONAL];
       }
     
       // The IAM conditions context.
    @@ -1281,8 +1263,8 @@ message IamPolicyAnalysisQuery {
         }
       }
     
    -  // Required. The relative name of the root asset. Only resources and IAM
    -  // policies within the scope will be analyzed.
    +  // Required. The relative name of the root asset. Only resources and IAM policies within
    +  // the scope will be analyzed.
       //
       // This can only be an organization number (such as "organizations/123"), a
       // folder number (such as "folders/123"), a project ID (such as
    @@ -1296,12 +1278,10 @@ message IamPolicyAnalysisQuery {
       string scope = 1 [(google.api.field_behavior) = REQUIRED];
     
       // Optional. Specifies a resource for analysis.
    -  ResourceSelector resource_selector = 2
    -      [(google.api.field_behavior) = OPTIONAL];
    +  ResourceSelector resource_selector = 2 [(google.api.field_behavior) = OPTIONAL];
     
       // Optional. Specifies an identity for analysis.
    -  IdentitySelector identity_selector = 3
    -      [(google.api.field_behavior) = OPTIONAL];
    +  IdentitySelector identity_selector = 3 [(google.api.field_behavior) = OPTIONAL];
     
       // Optional. Specifies roles or permissions for analysis. This is optional.
       AccessSelector access_selector = 4 [(google.api.field_behavior) = OPTIONAL];
    @@ -1310,16 +1290,13 @@ message IamPolicyAnalysisQuery {
       Options options = 5 [(google.api.field_behavior) = OPTIONAL];
     
       // Optional. The hypothetical context for IAM conditions evaluation.
    -  ConditionContext condition_context = 6
    -      [(google.api.field_behavior) = OPTIONAL];
    +  ConditionContext condition_context = 6 [(google.api.field_behavior) = OPTIONAL];
     }
     
    -// A request message for
    -// [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
    +// A request message for [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
     message AnalyzeIamPolicyRequest {
       // Required. The request query.
    -  IamPolicyAnalysisQuery analysis_query = 1
    -      [(google.api.field_behavior) = REQUIRED];
    +  IamPolicyAnalysisQuery analysis_query = 1 [(google.api.field_behavior) = REQUIRED];
     
       // Optional. The name of a saved query, which must be in the format of:
       //
    @@ -1339,8 +1316,7 @@ message AnalyzeIamPolicyRequest {
       // presence yet.
       string saved_analysis_query = 3 [(google.api.field_behavior) = OPTIONAL];
     
    -  // Optional. Amount of time executable has to complete.  See JSON
    -  // representation of
    +  // Optional. Amount of time executable has to complete.  See JSON representation of
       // [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
       //
       // If this field is set with a value less than the RPC deadline, and the
    @@ -1350,26 +1326,22 @@ message AnalyzeIamPolicyRequest {
       // If it's not finished until then, you will get a  DEADLINE_EXCEEDED error.
       //
       // Default is empty.
    -  google.protobuf.Duration execution_timeout = 2
    -      [(google.api.field_behavior) = OPTIONAL];
    +  google.protobuf.Duration execution_timeout = 2 [(google.api.field_behavior) = OPTIONAL];
     }
     
    -// A response message for
    -// [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
    +// A response message for [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
     message AnalyzeIamPolicyResponse {
       // An analysis message to group the query and results.
       message IamPolicyAnalysis {
         // The analysis query.
         IamPolicyAnalysisQuery analysis_query = 1;
     
    -    // A list of
    -    // [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
    -    // that matches the analysis query, or empty if no result is found.
    +    // A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
    +    // empty if no result is found.
         repeated IamPolicyAnalysisResult analysis_results = 2;
     
    -    // Represents whether all entries in the
    -    // [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results]
    -    // have been fully explored to answer the query.
    +    // Represents whether all entries in the [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] have been
    +    // fully explored to answer the query.
         bool fully_explored = 3;
     
         // A list of non-critical errors happened during the query handling.
    @@ -1384,11 +1356,9 @@ message AnalyzeIamPolicyResponse {
       // enabled.
       repeated IamPolicyAnalysis service_account_impersonation_analysis = 2;
     
    -  // Represents whether all entries in the
    -  // [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis]
    -  // and
    -  // [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis]
    -  // have been fully explored to answer the query in the request.
    +  // Represents whether all entries in the [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] and
    +  // [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] have been fully explored to
    +  // answer the query in the request.
       bool fully_explored = 3;
     }
     
    @@ -1396,8 +1366,8 @@ message AnalyzeIamPolicyResponse {
     message IamPolicyAnalysisOutputConfig {
       // A Cloud Storage location.
       message GcsDestination {
    -    // Required. The uri of the Cloud Storage object. It's the same uri that is
    -    // used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    +    // Required. The uri of the Cloud Storage object. It's the same uri that is used by
    +    // gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
         // Editing Object
         // Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
         // for more information.
    @@ -1425,15 +1395,13 @@ message IamPolicyAnalysisOutputConfig {
           REQUEST_TIME = 1;
         }
     
    -    // Required. The BigQuery dataset in format
    -    // "projects/projectId/datasets/datasetId", to which the analysis results
    -    // should be exported. If this dataset does not exist, the export call will
    -    // return an INVALID_ARGUMENT error.
    +    // Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
    +    // to which the analysis results should be exported. If this dataset does
    +    // not exist, the export call will return an INVALID_ARGUMENT error.
         string dataset = 1 [(google.api.field_behavior) = REQUIRED];
     
    -    // Required. The prefix of the BigQuery tables to which the analysis results
    -    // will be written. Tables will be created based on this table_prefix if not
    -    // exist:
    +    // Required. The prefix of the BigQuery tables to which the analysis results will be
    +    // written. Tables will be created based on this table_prefix if not exist:
         // * _analysis table will contain export operation's metadata.
         // * _analysis_result will contain all the
         //   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
    @@ -1444,8 +1412,8 @@ message IamPolicyAnalysisOutputConfig {
         // The partition key for BigQuery partitioned table.
         PartitionKey partition_key = 3;
     
    -    // Optional. Specifies the action that occurs if the destination table or
    -    // partition already exists. The following values are supported:
    +    // Optional. Specifies the action that occurs if the destination table or partition
    +    // already exists. The following values are supported:
         //
         // * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
         // overwrites the entire table or all the partitions data.
    @@ -1470,12 +1438,10 @@ message IamPolicyAnalysisOutputConfig {
       }
     }
     
    -// A request message for
    -// [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
    +// A request message for [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
     message AnalyzeIamPolicyLongrunningRequest {
       // Required. The request query.
    -  IamPolicyAnalysisQuery analysis_query = 1
    -      [(google.api.field_behavior) = REQUIRED];
    +  IamPolicyAnalysisQuery analysis_query = 1 [(google.api.field_behavior) = REQUIRED];
     
       // Optional. The name of a saved query, which must be in the format of:
       //
    @@ -1495,15 +1461,14 @@ message AnalyzeIamPolicyLongrunningRequest {
       // presence yet.
       string saved_analysis_query = 3 [(google.api.field_behavior) = OPTIONAL];
     
    -  // Required. Output configuration indicating where the results will be output
    -  // to.
    -  IamPolicyAnalysisOutputConfig output_config = 2
    -      [(google.api.field_behavior) = REQUIRED];
    +  // Required. Output configuration indicating where the results will be output to.
    +  IamPolicyAnalysisOutputConfig output_config = 2 [(google.api.field_behavior) = REQUIRED];
     }
     
    -// A response message for
    -// [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
    -message AnalyzeIamPolicyLongrunningResponse {}
    +// A response message for [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
    +message AnalyzeIamPolicyLongrunningResponse {
    +
    +}
     
     // A saved query which can be shared with others or used later.
     message SavedQuery {
    @@ -1518,11 +1483,8 @@ message SavedQuery {
       message QueryContent {
         oneof query_content {
           // An IAM Policy Analysis query, which could be used in
    -      // the
    -      // [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy]
    -      // rpc or the
    -      // [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]
    -      // rpc.
    +      // the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    +      // the [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning] rpc.
           IamPolicyAnalysisQuery iam_policy_analysis_query = 1;
         }
       }
    @@ -1539,18 +1501,15 @@ message SavedQuery {
       string description = 2;
     
       // Output only. The create time of this saved query.
    -  google.protobuf.Timestamp create_time = 3
    -      [(google.api.field_behavior) = OUTPUT_ONLY];
    +  google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
     
       // Output only. The account's email address who has created this saved query.
       string creator = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
     
       // Output only. The last update time of this saved query.
    -  google.protobuf.Timestamp last_update_time = 5
    -      [(google.api.field_behavior) = OUTPUT_ONLY];
    +  google.protobuf.Timestamp last_update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
     
    -  // Output only. The account's email address who has updated this saved query
    -  // most recently.
    +  // Output only. The account's email address who has updated this saved query most recently.
       string last_updater = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
     
       // Labels applied on the resource.
    @@ -1564,11 +1523,11 @@ message SavedQuery {
     
     // Request to create a saved query.
     message CreateSavedQueryRequest {
    -  // Required. The name of the project/folder/organization where this
    -  // saved_query should be created in. It can only be an organization number
    -  // (such as "organizations/123"), a folder number (such as "folders/123"), a
    -  // project ID (such as "projects/my-project-id")", or a project number (such
    -  // as "projects/12345").
    +  // Required. The name of the project/folder/organization where this saved_query
    +  // should be created in. It can only be an organization number (such as
    +  // "organizations/123"), a folder number (such as "folders/123"), a project ID
    +  // (such as "projects/my-project-id")", or a project number (such as
    +  // "projects/12345").
       string parent = 1 [
         (google.api.field_behavior) = REQUIRED,
         (google.api.resource_reference) = {
    @@ -1576,13 +1535,13 @@ message CreateSavedQueryRequest {
         }
       ];
     
    -  // Required. The saved_query details. The `name` field must be empty as it
    -  // will be generated based on the parent and saved_query_id.
    +  // Required. The saved_query details. The `name` field must be empty as it will be
    +  // generated based on the parent and saved_query_id.
       SavedQuery saved_query = 2 [(google.api.field_behavior) = REQUIRED];
     
    -  // Required. The ID to use for the saved query, which must be unique in the
    -  // specified parent. It will become the final component of the saved query's
    -  // resource name.
    +  // Required. The ID to use for the saved query, which must be unique in the specified
    +  // parent. It will become the final component of the saved query's resource
    +  // name.
       //
       // This value should be 4-63 characters, and valid characters
       // are /[a-z][0-9]-/.
    @@ -1609,8 +1568,8 @@ message GetSavedQueryRequest {
     
     // Request to list saved queries.
     message ListSavedQueriesRequest {
    -  // Required. The parent project/folder/organization whose savedQueries are to
    -  // be listed. It can only be using project/folder/organization number (such as
    +  // Required. The parent project/folder/organization whose savedQueries are to be
    +  // listed. It can only be using project/folder/organization number (such as
       // "folders/12345")", or a project ID (such as "projects/my-project-id").
       string parent = 1 [
         (google.api.field_behavior) = REQUIRED,
    @@ -1628,9 +1587,8 @@ message ListSavedQueriesRequest {
       // See https://google.aip.dev/160 for more information on the grammar.
       string filter = 4 [(google.api.field_behavior) = OPTIONAL];
     
    -  // Optional. The maximum number of saved queries to return per page. The
    -  // service may return fewer than this value. If unspecified, at most 50 will
    -  // be returned.
    +  // Optional. The maximum number of saved queries to return per page. The service may
    +  // return fewer than this value. If unspecified, at most 50 will be returned.
       //  The maximum value is 1000; values above 1000 will be coerced to 1000.
       int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
     
    @@ -1665,14 +1623,12 @@ message UpdateSavedQueryRequest {
       SavedQuery saved_query = 1 [(google.api.field_behavior) = REQUIRED];
     
       // Required. The list of fields to update.
    -  google.protobuf.FieldMask update_mask = 2
    -      [(google.api.field_behavior) = REQUIRED];
    +  google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
     }
     
     // Request to delete a saved query.
     message DeleteSavedQueryRequest {
    -  // Required. The name of the saved query to delete. It must be in the format
    -  // of:
    +  // Required. The name of the saved query to delete. It must be in the format of:
       //
       // * projects/project_number/savedQueries/saved_query_id
       // * folders/folder_number/savedQueries/saved_query_id
    @@ -1764,13 +1720,12 @@ message MoveImpact {
     message QueryAssetsOutputConfig {
       // BigQuery destination.
       message BigQueryDestination {
    -    // Required. The BigQuery dataset where the query results will be saved. It
    -    // has the format of "projects/{projectId}/datasets/{datasetId}".
    +    // Required. The BigQuery dataset where the query results will be saved. It has the
    +    // format of "projects/{projectId}/datasets/{datasetId}".
         string dataset = 1 [(google.api.field_behavior) = REQUIRED];
     
    -    // Required. The BigQuery table where the query results will be saved. If
    -    // this table does not exist, a new table with the given name will be
    -    // created.
    +    // Required. The BigQuery table where the query results will be saved. If this table
    +    // does not exist, a new table with the given name will be created.
         string table = 2 [(google.api.field_behavior) = REQUIRED];
     
         // Specifies the action that occurs if the destination table or partition
    @@ -1780,8 +1735,10 @@ message QueryAssetsOutputConfig {
         // overwrites the entire table or all the partitions data.
         // * WRITE_APPEND: If the table or partition already exists, BigQuery
         // appends the data to the table or the latest partition.
    -    // * WRITE_EMPTY: If the table already exists and contains data, an error is
    -    // returned.
    +    // * WRITE_EMPTY: If the table already exists and contains data, a
    +    // 'duplicate' error is returned in the job result.
    +    //
    +    // The default value is WRITE_EMPTY.
         string write_disposition = 3;
       }
     
    @@ -1809,13 +1766,13 @@ message QueryAssetsRequest {
         // SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
         string statement = 2 [(google.api.field_behavior) = OPTIONAL];
     
    -    // Optional. Reference to the query job, which is from the
    -    // `QueryAssetsResponse` of previous `QueryAssets` call.
    +    // Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
    +    // previous `QueryAssets` call.
         string job_reference = 3 [(google.api.field_behavior) = OPTIONAL];
       }
     
    -  // Optional. The maximum number of rows to return in the results. Responses
    -  // are limited to 10 MB and 1000 rows.
    +  // Optional. The maximum number of rows to return in the results. Responses are limited
    +  // to 10 MB and 1000 rows.
       //
       // By default, the maximum row count is 1000. When the byte or row count limit
       // is reached, the rest of the query results will be paginated.
    @@ -1828,11 +1785,10 @@ message QueryAssetsRequest {
       // The field will be ignored when [output_config] is specified.
       string page_token = 5 [(google.api.field_behavior) = OPTIONAL];
     
    -  // Optional. Specifies the maximum amount of time that the client is willing
    -  // to wait for the query to complete. By default, this limit is 5 min for the
    -  // first query, and 1 minute for the following queries. If the query is
    -  // complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
    -  // false.
    +  // Optional. Specifies the maximum amount of time that the client is willing to wait
    +  // for the query to complete. By default, this limit is 5 min for the first
    +  // query, and 1 minute for the following queries. If the query is complete,
    +  // the `done` field in the `QueryAssetsResponse` is true, otherwise false.
       //
       // Like BigQuery [jobs.query
       // API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
    @@ -1851,15 +1807,13 @@ message QueryAssetsRequest {
       // If data for the timestamp/date range selected does not exist,
       // it will simply return a valid response with no rows.
       oneof time {
    -    // Optional. [start_time] is required. [start_time] must be less than
    -    // [end_time] Defaults [end_time] to now if [start_time] is set and
    -    // [end_time] isn't. Maximum permitted time range is 7 days.
    +    // Optional. [start_time] is required. [start_time] must be less than [end_time]
    +    // Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
    +    // Maximum permitted time range is 7 days.
         TimeWindow read_time_window = 7 [(google.api.field_behavior) = OPTIONAL];
     
    -    // Optional. Queries cloud assets as they appeared at the specified point in
    -    // time.
    -    google.protobuf.Timestamp read_time = 8
    -        [(google.api.field_behavior) = OPTIONAL];
    +    // Optional. Queries cloud assets as they appeared at the specified point in time.
    +    google.protobuf.Timestamp read_time = 8 [(google.api.field_behavior) = OPTIONAL];
       }
     
       // Optional. Destination where the query results will be saved.
    @@ -1871,8 +1825,7 @@ message QueryAssetsRequest {
       // Meanwhile, [QueryAssetsResponse.job_reference] will be set and can be used
       // to check the status of the query job when passed to a following
       // [QueryAssets] API call.
    -  QueryAssetsOutputConfig output_config = 9
    -      [(google.api.field_behavior) = OPTIONAL];
    +  QueryAssetsOutputConfig output_config = 9 [(google.api.field_behavior) = OPTIONAL];
     }
     
     // QueryAssets response.
    @@ -1959,8 +1912,7 @@ message TableFieldSchema {
       repeated TableFieldSchema fields = 4;
     }
     
    -// A request message for
    -// [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
    +// A request message for [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
     message BatchGetEffectiveIamPoliciesRequest {
       // Required. Only IAM policies on or below the scope will be returned.
       //
    @@ -1975,7 +1927,9 @@ message BatchGetEffectiveIamPoliciesRequest {
       // ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
       string scope = 1 [
         (google.api.field_behavior) = REQUIRED,
    -    (google.api.resource_reference) = { child_type: "*" }
    +    (google.api.resource_reference) = {
    +      child_type: "*"
    +    }
       ];
     
       // Required. The names refer to the [full_resource_names]
    @@ -1985,65 +1939,53 @@ message BatchGetEffectiveIamPoliciesRequest {
       // A maximum of 20 resources' effective policies can be retrieved in a batch.
       repeated string names = 3 [
         (google.api.field_behavior) = REQUIRED,
    -    (google.api.resource_reference) = { type: "*" }
    +    (google.api.resource_reference) = {
    +      type: "*"
    +    }
       ];
     }
     
    -// A response message for
    -// [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
    +// A response message for [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
     message BatchGetEffectiveIamPoliciesResponse {
       // The effective IAM policies on one resource.
       message EffectiveIamPolicy {
         // The IAM policy and its attached resource.
         message PolicyInfo {
    -      // The full resource name the
    -      // [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy]
    -      // is directly attached to.
    +      // The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
           string attached_resource = 1;
     
    -      // The IAM policy that's directly attached to the
    -      // [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
    +      // The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
           google.iam.v1.Policy policy = 2;
         }
     
         // The [full_resource_name]
         // (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -    // for which the
    -    // [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies]
    -    // are computed. This is one of the
    -    // [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]
    -    // the caller provides in the request.
    +    // for which the [policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies] are computed. This is one of the
    +    // [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names] the caller provides in the
    +    // request.
         string full_resource_name = 1;
     
    -    // The effective policies for the
    -    // [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
    +    // The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
         //
    -    // These policies include the policy set on the
    -    // [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    -    // and those set on its parents and ancestors up to the
    -    // [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope].
    -    // Note that these policies are not filtered according to the resource type
    -    // of the
    +    // These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    +    // those set on its parents and ancestors up to the
    +    // [BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.scope]. Note that these policies
    +    // are not filtered according to the resource type of the
         // [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
         //
         // These policies are hierarchically ordered by
    -    // [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -    // starting from
    -    // [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
    +    // [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] starting from [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]
         // itself to its parents and ancestors, such that policies[i]'s
    -    // [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource]
    -    // is the child of policies[i+1]'s
    -    // [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource],
    -    // if policies[i+1] exists.
    +    // [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource] is the child of policies[i+1]'s
    +    // [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
         repeated PolicyInfo policies = 2;
       }
     
       // The effective policies for a batch of resources. Note that the results
       // order is the same as the order of
    -  // [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names].
    -  // When a resource does not have any effective IAM policies, its corresponding
    -  // policy_result will contain empty
    -  // [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
    +  // [BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.names]. When a resource does not
    +  // have any effective IAM policies, its corresponding policy_result will
    +  // contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
       repeated EffectiveIamPolicy policy_results = 2;
     }
     
    diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto
    similarity index 88%
    rename from java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto
    rename to owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto
    index 83a23693ae80..8f22b5031f4f 100644
    --- a/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto
    +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto
    @@ -16,6 +16,7 @@ syntax = "proto3";
     
     package google.cloud.asset.v1;
     
    +import "google/api/field_behavior.proto";
     import "google/api/resource.proto";
     import "google/cloud/orgpolicy/v1/orgpolicy.proto";
     import "google/cloud/osconfig/v1/inventory.proto";
    @@ -150,8 +151,7 @@ message Asset {
     
         // Please also refer to the [service perimeter user
         // guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    -    google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter =
    -        9;
    +    google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
       }
     
       // A representation of runtime OS Inventory information. See [this
    @@ -282,8 +282,8 @@ message RelatedAsset {
       // names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
       // for more information.
       string asset = 1 [(google.api.resource_reference) = {
    -    type: "cloudasset.googleapis.com/Asset"
    -  }];
    +                      type: "cloudasset.googleapis.com/Asset"
    +                    }];
     
       // The type of the asset. Example: `compute.googleapis.com/Disk`
       //
    @@ -306,7 +306,7 @@ message RelatedAsset {
     }
     
     // A result of Resource Search, containing information of a cloud resource.
    -// Next ID: 29
    +// Next ID: 31
     message ResourceSearchResult {
       // The full resource name of this resource. Example:
       // `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -316,15 +316,15 @@ message ResourceSearchResult {
       //
       // To search against the `name`:
       //
    -  // * use a field query. Example: `name:instance1`
    -  // * use a free text query. Example: `instance1`
    +  // * Use a field query. Example: `name:instance1`
    +  // * Use a free text query. Example: `instance1`
       string name = 1;
     
       // The type of this resource. Example: `compute.googleapis.com/Disk`.
       //
       // To search against the `asset_type`:
       //
    -  // * specify the `asset_type` field in your search request.
    +  // * Specify the `asset_type` field in your search request.
       string asset_type = 2;
     
       // The project that this resource belongs to, in the form of
    @@ -333,9 +333,9 @@ message ResourceSearchResult {
       //
       // To search against `project`:
       //
    -  // * use a field query. Example: `project:12345`
    -  // * use a free text query. Example: `12345`
    -  // * specify the `scope` field as this project in your search request.
    +  // * Use a field query. Example: `project:12345`
    +  // * Use a free text query. Example: `12345`
    +  // * Specify the `scope` field as this project in your search request.
       string project = 3;
     
       // The folder(s) that this resource belongs to, in the form of
    @@ -344,9 +344,9 @@ message ResourceSearchResult {
       //
       // To search against `folders`:
       //
    -  // * use a field query. Example: `folders:(123 OR 456)`
    -  // * use a free text query. Example: `123`
    -  // * specify the `scope` field as this folder in your search request.
    +  // * Use a field query. Example: `folders:(123 OR 456)`
    +  // * Use a free text query. Example: `123`
    +  // * Specify the `scope` field as this folder in your search request.
       repeated string folders = 17;
     
       // The organization that this resource belongs to, in the form of
    @@ -355,9 +355,9 @@ message ResourceSearchResult {
       //
       // To search against `organization`:
       //
    -  // * use a field query. Example: `organization:123`
    -  // * use a free text query. Example: `123`
    -  // * specify the `scope` field as this organization in your search request.
    +  // * Use a field query. Example: `organization:123`
    +  // * Use a free text query. Example: `123`
    +  // * Specify the `scope` field as this organization in your search request.
       string organization = 18;
     
       // The display name of this resource. This field is available only when the
    @@ -365,8 +365,8 @@ message ResourceSearchResult {
       //
       // To search against the `display_name`:
       //
    -  // * use a field query. Example: `displayName:"My Instance"`
    -  // * use a free text query. Example: `"My Instance"`
    +  // * Use a field query. Example: `displayName:"My Instance"`
    +  // * Use a free text query. Example: `"My Instance"`
       string display_name = 4;
     
       // One or more paragraphs of text description of this resource. Maximum length
    @@ -375,8 +375,8 @@ message ResourceSearchResult {
       //
       // To search against the `description`:
       //
    -  // * use a field query. Example: `description:"important instance"`
    -  // * use a free text query. Example: `"important instance"`
    +  // * Use a field query. Example: `description:"important instance"`
    +  // * Use a free text query. Example: `"important instance"`
       string description = 5;
     
       // Location can be `global`, regional like `us-east1`, or zonal like
    @@ -385,8 +385,8 @@ message ResourceSearchResult {
       //
       // To search against the `location`:
       //
    -  // * use a field query. Example: `location:us-west*`
    -  // * use a free text query. Example: `us-west*`
    +  // * Use a field query. Example: `location:us-west*`
    +  // * Use a free text query. Example: `us-west*`
       string location = 6;
     
       // Labels associated with this resource. See [Labelling and grouping GCP
    @@ -396,11 +396,11 @@ message ResourceSearchResult {
       //
       // To search against the `labels`:
       //
    -  // * use a field query:
    +  // * Use a field query:
       //     - query on any label's key or value. Example: `labels:prod`
       //     - query by a given label. Example: `labels.env:prod`
       //     - query by a given label's existence. Example: `labels.env:*`
    -  // * use a free text query. Example: `prod`
    +  // * Use a free text query. Example: `prod`
       map labels = 7;
     
       // Network tags associated with this resource. Like labels, network tags are a
    @@ -411,22 +411,41 @@ message ResourceSearchResult {
       //
       // To search against the `network_tags`:
       //
    -  // * use a field query. Example: `networkTags:internal`
    -  // * use a free text query. Example: `internal`
    +  // * Use a field query. Example: `networkTags:internal`
    +  // * Use a free text query. Example: `internal`
       repeated string network_tags = 8;
     
       // The Cloud KMS
       // [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
       // name or
       // [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    -  // name. This field is available only when the resource's Protobuf contains
    -  // it.
    +  // name.
    +  //
    +  // This field only presents for the purpose of backward compatibility. Please
    +  // use the `kms_keys` field to retrieve KMS key information. This field is
    +  // available only when the resource's Protobuf contains it and will only be
    +  // populated for [these resource
    +  // types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field)
    +  // for backward compatible purposes.
       //
       // To search against the `kms_key`:
       //
    -  // * use a field query. Example: `kmsKey:key`
    -  // * use a free text query. Example: `key`
    -  string kms_key = 10;
    +  // * Use a field query. Example: `kmsKey:key`
    +  // * Use a free text query. Example: `key`
    +  string kms_key = 10 [deprecated = true];
    +
    +  // The Cloud KMS
    +  // [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    +  // names or
    +  // [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
    +  // names. This field is available only when the resource's Protobuf contains
    +  // it.
    +  //
    +  // To search against the `kms_keys`:
    +  //
    +  // * Use a field query. Example: `kmsKeys:key`
    +  // * Use a free text query. Example: `key`
    +  repeated string kms_keys = 28;
     
       // The create timestamp of this resource, at which the resource was created.
       // The granularity is in seconds. Timestamp.nanos will always be 0. This field
    @@ -434,7 +453,7 @@ message ResourceSearchResult {
       //
       // To search against `create_time`:
       //
    -  // * use a field query.
    +  // * Use a field query.
       //     - value in seconds since unix epoch. Example: `createTime > 1609459200`
       //     - value in date string. Example: `createTime > 2021-01-01`
       //     - value in date-time string (must be quoted). Example: `createTime >
    @@ -448,7 +467,7 @@ message ResourceSearchResult {
       //
       // To search against `update_time`:
       //
    -  // * use a field query.
    +  // * Use a field query.
       //     - value in seconds since unix epoch. Example: `updateTime < 1609459200`
       //     - value in date string. Example: `updateTime < 2021-01-01`
       //     - value in date-time string (must be quoted). Example: `updateTime <
    @@ -473,8 +492,8 @@ message ResourceSearchResult {
       //
       // To search against the `state`:
       //
    -  // * use a field query. Example: `state:RUNNING`
    -  // * use a free text query. Example: `RUNNING`
    +  // * Use a field query. Example: `state:RUNNING`
    +  // * Use a free text query. Example: `RUNNING`
       string state = 13;
     
       // The additional searchable attributes of this resource. The attributes may
    @@ -493,7 +512,7 @@ message ResourceSearchResult {
       //
       // To search against the `additional_attributes`:
       //
    -  // * use a free text query to match the attributes values. Example: to search
    +  // * Use a free text query to match the attributes values. Example: to search
       //   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
       //   `foobar`.
       google.protobuf.Struct additional_attributes = 9;
    @@ -501,9 +520,9 @@ message ResourceSearchResult {
       // The full resource name of this resource's parent, if it has one.
       // To search against the `parent_full_resource_name`:
       //
    -  // * use a field query. Example:
    +  // * Use a field query. Example:
       // `parentFullResourceName:"project-name"`
    -  // * use a free text query. Example:
    +  // * Use a free text query. Example:
       // `project-name`
       string parent_full_resource_name = 19;
     
    @@ -536,12 +555,12 @@ message ResourceSearchResult {
       // TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
       // To search against the `tagKeys`:
       //
    -  // * use a field query. Example:
    +  // * Use a field query. Example:
       //     - `tagKeys:"123456789/env*"`
       //     - `tagKeys="123456789/env"`
       //     - `tagKeys:"env"`
       //
    -  // * use a free text query. Example:
    +  // * Use a free text query. Example:
       //     - `env`
       repeated string tag_keys = 23;
     
    @@ -549,24 +568,24 @@ message ResourceSearchResult {
       // {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
       // To search against the `tagValues`:
       //
    -  // * use a field query. Example:
    +  // * Use a field query. Example:
       //     - `tagValues:"env"`
       //     - `tagValues:"env/prod"`
       //     - `tagValues:"123456789/env/prod*"`
       //     - `tagValues="123456789/env/prod"`
       //
    -  // * use a free text query. Example:
    +  // * Use a free text query. Example:
       //     - `prod`
       repeated string tag_values = 25;
     
       // TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
       // To search against the `tagValueIds`:
       //
    -  // * use a field query. Example:
    +  // * Use a field query. Example:
       //     - `tagValueIds:"456"`
       //     - `tagValueIds="tagValues/456"`
       //
    -  // * use a free text query. Example:
    +  // * Use a free text query. Example:
       //     - `456`
       repeated string tag_value_ids = 26;
     
    @@ -574,9 +593,9 @@ message ResourceSearchResult {
       //
       // To search against the `parent_asset_type`:
       //
    -  // * use a field query. Example:
    +  // * Use a field query. Example:
       // `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
    -  // * use a free text query. Example:
    +  // * Use a free text query. Example:
       // `cloudresourcemanager.googleapis.com/Project`
       string parent_asset_type = 103;
     }
    @@ -857,10 +876,8 @@ message IamPolicyAnalysisResult {
         repeated Access accesses = 2;
     
         // Resource edges of the graph starting from the policy attached
    -    // resource to any descendant resources. The
    -    // [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    -    // contains the full resource name of a parent resource and
    -    // [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    +    // resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    +    // the full resource name of a parent resource and [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
         // contains the full resource name of a child resource. This field is
         // present only if the output_resource_edges option is enabled in request.
         repeated Edge resource_edges = 3;
    @@ -879,41 +896,32 @@ message IamPolicyAnalysisResult {
         repeated Identity identities = 1;
     
         // Group identity edges of the graph starting from the binding's
    -    // group members to any node of the
    -    // [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].
    -    // The
    -    // [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    +    // group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
         // contains a group, such as `group:parent@google.com`. The
    -    // [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node]
    -    // contains a member of the group, such as `group:child@google.com` or
    -    // `user:foo@google.com`. This field is present only if the
    -    // output_group_edges option is enabled in request.
    +    // [Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.target_node] contains a member of the group,
    +    // such as `group:child@google.com` or `user:foo@google.com`.
    +    // This field is present only if the output_group_edges option is enabled in
    +    // request.
         repeated Edge group_edges = 2;
       }
     
       // The [full resource
       // name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    -  // of the resource to which the
    -  // [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -  // policy attaches.
    +  // of the resource to which the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] policy attaches.
       string attached_resource_full_name = 1;
     
       // The Cloud IAM policy binding under analysis.
       google.iam.v1.Binding iam_binding = 2;
     
    -  // The access control lists derived from the
    -  // [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -  // that match or potentially match resource and access selectors specified in
    -  // the request.
    +  // The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +  // potentially match resource and access selectors specified in the request.
       repeated AccessControlList access_control_lists = 3;
     
    -  // The identity list derived from members of the
    -  // [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -  // that match or potentially match identity selector specified in the request.
    +  // The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
    +  // potentially match identity selector specified in the request.
       IdentityList identity_list = 4;
     
    -  // Represents whether all analyses on the
    -  // [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]
    -  // have successfully finished.
    +  // Represents whether all analyses on the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] have successfully
    +  // finished.
       bool fully_explored = 5;
     }
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AsyncAnalyzeIamPolicy.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AsyncAnalyzeIamPolicy.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AsyncAnalyzeIamPolicy.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AsyncAnalyzeIamPolicy.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/SyncAnalyzeIamPolicy.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/SyncAnalyzeIamPolicy.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/SyncAnalyzeIamPolicy.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/SyncAnalyzeIamPolicy.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AsyncAnalyzeMove.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AsyncAnalyzeMove.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AsyncAnalyzeMove.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AsyncAnalyzeMove.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzemove/SyncAnalyzeMove.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzemove/SyncAnalyzeMove.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzemove/SyncAnalyzeMove.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzemove/SyncAnalyzeMove.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/AsyncBatchGetAssetsHistory.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/AsyncBatchGetAssetsHistory.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/AsyncBatchGetAssetsHistory.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/AsyncBatchGetAssetsHistory.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/SyncBatchGetAssetsHistory.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/SyncBatchGetAssetsHistory.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/SyncBatchGetAssetsHistory.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/SyncBatchGetAssetsHistory.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgeteffectiveiampolicies/AsyncBatchGetEffectiveIamPolicies.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgeteffectiveiampolicies/AsyncBatchGetEffectiveIamPolicies.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgeteffectiveiampolicies/AsyncBatchGetEffectiveIamPolicies.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgeteffectiveiampolicies/AsyncBatchGetEffectiveIamPolicies.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgeteffectiveiampolicies/SyncBatchGetEffectiveIamPolicies.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgeteffectiveiampolicies/SyncBatchGetEffectiveIamPolicies.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgeteffectiveiampolicies/SyncBatchGetEffectiveIamPolicies.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgeteffectiveiampolicies/SyncBatchGetEffectiveIamPolicies.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetEndpoint.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetEndpoint.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetEndpoint.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/AsyncCreateFeed.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/AsyncCreateFeed.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/AsyncCreateFeed.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/AsyncCreateFeed.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeed.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeed.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeed.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeed.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeedString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeedString.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeedString.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeedString.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/AsyncCreateSavedQuery.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/AsyncCreateSavedQuery.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/AsyncCreateSavedQuery.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/AsyncCreateSavedQuery.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQuery.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQuery.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQuery.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQuery.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryFoldernameSavedqueryString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryFoldernameSavedqueryString.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryFoldernameSavedqueryString.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryFoldernameSavedqueryString.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryOrganizationnameSavedqueryString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryOrganizationnameSavedqueryString.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryOrganizationnameSavedqueryString.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryOrganizationnameSavedqueryString.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryProjectnameSavedqueryString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryProjectnameSavedqueryString.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryProjectnameSavedqueryString.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryProjectnameSavedqueryString.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryStringSavedqueryString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryStringSavedqueryString.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryStringSavedqueryString.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryStringSavedqueryString.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/AsyncDeleteFeed.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/AsyncDeleteFeed.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/AsyncDeleteFeed.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/AsyncDeleteFeed.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeed.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeed.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeed.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeed.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedString.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedString.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedString.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/AsyncDeleteSavedQuery.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/AsyncDeleteSavedQuery.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/AsyncDeleteSavedQuery.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/AsyncDeleteSavedQuery.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQuery.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQuery.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQuery.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQuery.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQuerySavedqueryname.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQuerySavedqueryname.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQuerySavedqueryname.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQuerySavedqueryname.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQueryString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQueryString.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQueryString.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQueryString.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssets.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssets.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssets.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssets.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssetsLRO.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssetsLRO.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssetsLRO.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssetsLRO.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/SyncExportAssets.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/SyncExportAssets.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/SyncExportAssets.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/SyncExportAssets.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/AsyncGetFeed.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/AsyncGetFeed.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/AsyncGetFeed.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/AsyncGetFeed.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeed.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeed.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeed.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeed.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedFeedname.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedFeedname.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedFeedname.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedFeedname.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedString.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedString.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedString.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/AsyncGetSavedQuery.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/AsyncGetSavedQuery.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/AsyncGetSavedQuery.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/AsyncGetSavedQuery.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQuery.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQuery.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQuery.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQuery.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQuerySavedqueryname.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQuerySavedqueryname.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQuerySavedqueryname.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQuerySavedqueryname.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQueryString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQueryString.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQueryString.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQueryString.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssets.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssets.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssets.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssets.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssetsPaged.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssetsPaged.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssetsPaged.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssetsPaged.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssets.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssets.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssets.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssets.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsResourcename.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsResourcename.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsResourcename.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsResourcename.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsString.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsString.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsString.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/AsyncListFeeds.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/AsyncListFeeds.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/AsyncListFeeds.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/AsyncListFeeds.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeeds.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeeds.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeeds.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeeds.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeedsString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeedsString.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeedsString.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeedsString.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/AsyncListSavedQueries.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/AsyncListSavedQueries.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/AsyncListSavedQueries.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/AsyncListSavedQueries.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/AsyncListSavedQueriesPaged.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/AsyncListSavedQueriesPaged.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/AsyncListSavedQueriesPaged.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/AsyncListSavedQueriesPaged.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueries.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueries.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueries.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueries.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesFoldername.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesFoldername.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesFoldername.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesFoldername.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesOrganizationname.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesOrganizationname.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesOrganizationname.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesOrganizationname.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesProjectname.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesProjectname.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesProjectname.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesProjectname.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesString.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesString.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesString.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/queryassets/AsyncQueryAssets.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/queryassets/AsyncQueryAssets.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/queryassets/AsyncQueryAssets.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/queryassets/AsyncQueryAssets.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/queryassets/SyncQueryAssets.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/queryassets/SyncQueryAssets.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/queryassets/SyncQueryAssets.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/queryassets/SyncQueryAssets.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPolicies.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPolicies.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPolicies.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPolicies.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResources.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResources.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResources.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResources.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResources.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResources.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResources.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResources.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/AsyncUpdateFeed.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/AsyncUpdateFeed.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/AsyncUpdateFeed.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/AsyncUpdateFeed.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeed.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeed.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeed.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeed.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/AsyncUpdateSavedQuery.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/AsyncUpdateSavedQuery.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/AsyncUpdateSavedQuery.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/AsyncUpdateSavedQuery.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/SyncUpdateSavedQuery.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/SyncUpdateSavedQuery.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/SyncUpdateSavedQuery.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/SyncUpdateSavedQuery.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/SyncUpdateSavedQuerySavedqueryFieldmask.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/SyncUpdateSavedQuerySavedqueryFieldmask.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/SyncUpdateSavedQuerySavedqueryFieldmask.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/SyncUpdateSavedQuerySavedqueryFieldmask.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java
    rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java
    diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceClient.java b/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceClient.java
    similarity index 100%
    rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceClient.java
    rename to owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceClient.java
    diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceSettings.java b/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceSettings.java
    similarity index 99%
    rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceSettings.java
    rename to owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceSettings.java
    index 5beaf30dedf5..dbfedba29787 100644
    --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceSettings.java
    +++ b/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceSettings.java
    @@ -29,6 +29,7 @@
     import com.google.api.gax.rpc.ClientContext;
     import com.google.api.gax.rpc.ClientSettings;
     import com.google.api.gax.rpc.PagedCallSettings;
    +import com.google.api.gax.rpc.StubSettings;
     import com.google.api.gax.rpc.TransportChannelProvider;
     import com.google.api.gax.rpc.UnaryCallSettings;
     import com.google.cloud.asset.v1p1beta1.stub.AssetServiceStubSettings;
    diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/gapic_metadata.json b/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/gapic_metadata.json
    similarity index 100%
    rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/gapic_metadata.json
    rename to owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/gapic_metadata.json
    diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/package-info.java b/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/package-info.java
    similarity index 100%
    rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/package-info.java
    rename to owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/package-info.java
    diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStub.java b/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStub.java
    similarity index 100%
    rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStub.java
    rename to owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStub.java
    diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStubSettings.java b/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStubSettings.java
    similarity index 100%
    rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStubSettings.java
    rename to owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStubSettings.java
    diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/GrpcAssetServiceCallableFactory.java b/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/GrpcAssetServiceCallableFactory.java
    similarity index 100%
    rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/GrpcAssetServiceCallableFactory.java
    rename to owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/GrpcAssetServiceCallableFactory.java
    diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/GrpcAssetServiceStub.java b/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/GrpcAssetServiceStub.java
    similarity index 99%
    rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/GrpcAssetServiceStub.java
    rename to owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/GrpcAssetServiceStub.java
    index 09ac21b20398..0f2e0b071dec 100644
    --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/GrpcAssetServiceStub.java
    +++ b/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/GrpcAssetServiceStub.java
    @@ -35,6 +35,7 @@
     import io.grpc.MethodDescriptor;
     import io.grpc.protobuf.ProtoUtils;
     import java.io.IOException;
    +import java.util.Map;
     import java.util.concurrent.TimeUnit;
     import javax.annotation.Generated;
     
    diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/HttpJsonAssetServiceCallableFactory.java b/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/HttpJsonAssetServiceCallableFactory.java
    similarity index 100%
    rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/HttpJsonAssetServiceCallableFactory.java
    rename to owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/HttpJsonAssetServiceCallableFactory.java
    diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/HttpJsonAssetServiceStub.java b/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/HttpJsonAssetServiceStub.java
    similarity index 100%
    rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/HttpJsonAssetServiceStub.java
    rename to owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/HttpJsonAssetServiceStub.java
    diff --git a/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/AssetServiceClientHttpJsonTest.java b/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/AssetServiceClientHttpJsonTest.java
    similarity index 100%
    rename from java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/AssetServiceClientHttpJsonTest.java
    rename to owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/AssetServiceClientHttpJsonTest.java
    diff --git a/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/AssetServiceClientTest.java b/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/AssetServiceClientTest.java
    similarity index 100%
    rename from java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/AssetServiceClientTest.java
    rename to owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/AssetServiceClientTest.java
    diff --git a/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/MockAssetService.java b/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/MockAssetService.java
    similarity index 100%
    rename from java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/MockAssetService.java
    rename to owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/MockAssetService.java
    diff --git a/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/MockAssetServiceImpl.java b/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/MockAssetServiceImpl.java
    similarity index 100%
    rename from java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/MockAssetServiceImpl.java
    rename to owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/MockAssetServiceImpl.java
    diff --git a/java-asset/grpc-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceGrpc.java b/owl-bot-staging/java-asset/v1p1beta1/grpc-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceGrpc.java
    similarity index 51%
    rename from java-asset/grpc-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceGrpc.java
    rename to owl-bot-staging/java-asset/v1p1beta1/grpc-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceGrpc.java
    index 1190e5a9c825..73fe8769d725 100644
    --- a/java-asset/grpc-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceGrpc.java
    +++ b/owl-bot-staging/java-asset/v1p1beta1/grpc-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceGrpc.java
    @@ -1,25 +1,8 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     package com.google.cloud.asset.v1p1beta1;
     
     import static io.grpc.MethodDescriptor.generateFullMethodName;
     
     /**
    - *
    - *
      * 
      * Asset service definition.
      * 
    @@ -35,155 +18,120 @@ private AssetServiceGrpc() {} public static final String SERVICE_NAME = "google.cloud.asset.v1p1beta1.AssetService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest, - com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse> - getSearchAllResourcesMethod; + private static volatile io.grpc.MethodDescriptor getSearchAllResourcesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SearchAllResources", requestType = com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.class, responseType = com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest, - com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse> - getSearchAllResourcesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest, - com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse> - getSearchAllResourcesMethod; + public static io.grpc.MethodDescriptor getSearchAllResourcesMethod() { + io.grpc.MethodDescriptor getSearchAllResourcesMethod; if ((getSearchAllResourcesMethod = AssetServiceGrpc.getSearchAllResourcesMethod) == null) { synchronized (AssetServiceGrpc.class) { if ((getSearchAllResourcesMethod = AssetServiceGrpc.getSearchAllResourcesMethod) == null) { - AssetServiceGrpc.getSearchAllResourcesMethod = - getSearchAllResourcesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchAllResources")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AssetServiceMethodDescriptorSupplier("SearchAllResources")) - .build(); + AssetServiceGrpc.getSearchAllResourcesMethod = getSearchAllResourcesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchAllResources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("SearchAllResources")) + .build(); } } } return getSearchAllResourcesMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest, - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse> - getSearchAllIamPoliciesMethod; + private static volatile io.grpc.MethodDescriptor getSearchAllIamPoliciesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SearchAllIamPolicies", requestType = com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.class, responseType = com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest, - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse> - getSearchAllIamPoliciesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest, - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse> - getSearchAllIamPoliciesMethod; + public static io.grpc.MethodDescriptor getSearchAllIamPoliciesMethod() { + io.grpc.MethodDescriptor getSearchAllIamPoliciesMethod; if ((getSearchAllIamPoliciesMethod = AssetServiceGrpc.getSearchAllIamPoliciesMethod) == null) { synchronized (AssetServiceGrpc.class) { - if ((getSearchAllIamPoliciesMethod = AssetServiceGrpc.getSearchAllIamPoliciesMethod) - == null) { - AssetServiceGrpc.getSearchAllIamPoliciesMethod = - getSearchAllIamPoliciesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "SearchAllIamPolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AssetServiceMethodDescriptorSupplier("SearchAllIamPolicies")) - .build(); + if ((getSearchAllIamPoliciesMethod = AssetServiceGrpc.getSearchAllIamPoliciesMethod) == null) { + AssetServiceGrpc.getSearchAllIamPoliciesMethod = getSearchAllIamPoliciesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchAllIamPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("SearchAllIamPolicies")) + .build(); } } } return getSearchAllIamPoliciesMethod; } - /** Creates a new async stub that supports all call types for the service */ + /** + * Creates a new async stub that supports all call types for the service + */ public static AssetServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceStub(channel, callOptions); + } + }; return AssetServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static AssetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static AssetServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceBlockingStub(channel, callOptions); + } + }; return AssetServiceBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AssetServiceFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AssetServiceFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceFutureStub(channel, callOptions); + } + }; return AssetServiceFutureStub.newStub(factory, channel); } /** - * - * *
        * Asset service definition.
        * 
    */ - public abstract static class AssetServiceImplBase implements io.grpc.BindableService { + public static abstract class AssetServiceImplBase implements io.grpc.BindableService { /** - * - * *
          * Searches all the resources under a given accessible CRM scope
          * (project/folder/organization). This RPC gives callers
    @@ -193,17 +141,12 @@ public abstract static class AssetServiceImplBase implements io.grpc.BindableSer
          * scope, otherwise it will be rejected.
          * 
    */ - public void searchAllResources( - com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSearchAllResourcesMethod(), responseObserver); + public void searchAllResources(com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchAllResourcesMethod(), responseObserver); } /** - * - * *
          * Searches all the IAM policies under a given accessible CRM scope
          * (project/folder/organization). This RPC gives callers
    @@ -213,56 +156,49 @@ public void searchAllResources(
          * requested scope, otherwise it will be rejected.
          * 
    */ - public void searchAllIamPolicies( - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSearchAllIamPoliciesMethod(), responseObserver); + public void searchAllIamPolicies(com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchAllIamPoliciesMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getSearchAllResourcesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest, - com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse>( - this, METHODID_SEARCH_ALL_RESOURCES))) + getSearchAllResourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest, + com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse>( + this, METHODID_SEARCH_ALL_RESOURCES))) .addMethod( - getSearchAllIamPoliciesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest, - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse>( - this, METHODID_SEARCH_ALL_IAM_POLICIES))) + getSearchAllIamPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest, + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse>( + this, METHODID_SEARCH_ALL_IAM_POLICIES))) .build(); } } /** - * - * *
        * Asset service definition.
        * 
    */ - public static final class AssetServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private AssetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class AssetServiceStub extends io.grpc.stub.AbstractAsyncStub { + private AssetServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected AssetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected AssetServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AssetServiceStub(channel, callOptions); } /** - * - * *
          * Searches all the resources under a given accessible CRM scope
          * (project/folder/organization). This RPC gives callers
    @@ -272,19 +208,13 @@ protected AssetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions ca
          * scope, otherwise it will be rejected.
          * 
    */ - public void searchAllResources( - com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void searchAllResources(com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchAllResourcesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getSearchAllResourcesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
          * Searches all the IAM policies under a given accessible CRM scope
          * (project/folder/organization). This RPC gives callers
    @@ -294,27 +224,21 @@ public void searchAllResources(
          * requested scope, otherwise it will be rejected.
          * 
    */ - public void searchAllIamPolicies( - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void searchAllIamPolicies(com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchAllIamPoliciesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getSearchAllIamPoliciesMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
        * Asset service definition.
        * 
    */ - public static final class AssetServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AssetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class AssetServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private AssetServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -325,8 +249,6 @@ protected AssetServiceBlockingStub build( } /** - * - * *
          * Searches all the resources under a given accessible CRM scope
          * (project/folder/organization). This RPC gives callers
    @@ -336,15 +258,12 @@ protected AssetServiceBlockingStub build(
          * scope, otherwise it will be rejected.
          * 
    */ - public com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse searchAllResources( - com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest request) { + public com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse searchAllResources(com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSearchAllResourcesMethod(), getCallOptions(), request); } /** - * - * *
          * Searches all the IAM policies under a given accessible CRM scope
          * (project/folder/organization). This RPC gives callers
    @@ -354,23 +273,20 @@ public com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse searchAllReso
          * requested scope, otherwise it will be rejected.
          * 
    */ - public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse searchAllIamPolicies( - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest request) { + public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse searchAllIamPolicies(com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSearchAllIamPoliciesMethod(), getCallOptions(), request); } } /** - * - * *
        * Asset service definition.
        * 
    */ - public static final class AssetServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AssetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class AssetServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private AssetServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -381,8 +297,6 @@ protected AssetServiceFutureStub build( } /** - * - * *
          * Searches all the resources under a given accessible CRM scope
          * (project/folder/organization). This RPC gives callers
    @@ -392,16 +306,13 @@ protected AssetServiceFutureStub build(
          * scope, otherwise it will be rejected.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse> - searchAllResources(com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest request) { + public com.google.common.util.concurrent.ListenableFuture searchAllResources( + com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSearchAllResourcesMethod(), getCallOptions()), request); } /** - * - * *
          * Searches all the IAM policies under a given accessible CRM scope
          * (project/folder/organization). This RPC gives callers
    @@ -411,9 +322,8 @@ protected AssetServiceFutureStub build(
          * requested scope, otherwise it will be rejected.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse> - searchAllIamPolicies(com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest request) { + public com.google.common.util.concurrent.ListenableFuture searchAllIamPolicies( + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSearchAllIamPoliciesMethod(), getCallOptions()), request); } @@ -422,11 +332,11 @@ protected AssetServiceFutureStub build( private static final int METHODID_SEARCH_ALL_RESOURCES = 0; private static final int METHODID_SEARCH_ALL_IAM_POLICIES = 1; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AssetServiceImplBase serviceImpl; private final int methodId; @@ -440,18 +350,12 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_SEARCH_ALL_RESOURCES: - serviceImpl.searchAllResources( - (com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse>) - responseObserver); + serviceImpl.searchAllResources((com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SEARCH_ALL_IAM_POLICIES: - serviceImpl.searchAllIamPolicies( - (com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse>) - responseObserver); + serviceImpl.searchAllIamPolicies((com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -469,9 +373,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class AssetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class AssetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { AssetServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -513,13 +416,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (AssetServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AssetServiceFileDescriptorSupplier()) - .addMethod(getSearchAllResourcesMethod()) - .addMethod(getSearchAllIamPoliciesMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AssetServiceFileDescriptorSupplier()) + .addMethod(getSearchAllResourcesMethod()) + .addMethod(getSearchAllIamPoliciesMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetProto.java b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetProto.java new file mode 100644 index 000000000000..4a68b91ba585 --- /dev/null +++ b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetProto.java @@ -0,0 +1,129 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1p1beta1/assets.proto + +package com.google.cloud.asset.v1p1beta1; + +public final class AssetProto { + private AssetProto() {} + 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_asset_v1p1beta1_StandardResourceMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p1beta1_Permissions_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/asset/v1p1beta1/assets.pr" + + "oto\022\034google.cloud.asset.v1p1beta1\032\032googl" + + "e/iam/v1/policy.proto\"\302\002\n\030StandardResour" + + "ceMetadata\022\014\n\004name\030\001 \001(\t\022\022\n\nasset_type\030\002" + + " \001(\t\022\017\n\007project\030\003 \001(\t\022\024\n\014display_name\030\004 " + + "\001(\t\022\023\n\013description\030\005 \001(\t\022\035\n\025additional_a" + + "ttributes\030\n \003(\t\022\020\n\010location\030\013 \001(\t\022R\n\006lab" + + "els\030\014 \003(\0132B.google.cloud.asset.v1p1beta1" + + ".StandardResourceMetadata.LabelsEntry\022\024\n" + + "\014network_tags\030\r \003(\t\032-\n\013LabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\243\003\n\025IamPolicy" + + "SearchResult\022\020\n\010resource\030\001 \001(\t\022\017\n\007projec" + + "t\030\003 \001(\t\022%\n\006policy\030\004 \001(\0132\025.google.iam.v1." + + "Policy\022T\n\013explanation\030\005 \001(\0132?.google.clo" + + "ud.asset.v1p1beta1.IamPolicySearchResult" + + ".Explanation\032\351\001\n\013Explanation\022t\n\023matched_" + + "permissions\030\001 \003(\0132W.google.cloud.asset.v" + + "1p1beta1.IamPolicySearchResult.Explanati" + + "on.MatchedPermissionsEntry\032d\n\027MatchedPer" + + "missionsEntry\022\013\n\003key\030\001 \001(\t\0228\n\005value\030\002 \001(" + + "\0132).google.cloud.asset.v1p1beta1.Permiss" + + "ions:\0028\001\"\"\n\013Permissions\022\023\n\013permissions\030\001" + + " \003(\tB\264\001\n com.google.cloud.asset.v1p1beta" + + "1B\nAssetProtoP\001ZAgoogle.golang.org/genpr" + + "oto/googleapis/cloud/asset/v1p1beta1;ass" + + "et\370\001\001\252\002\034Google.Cloud.Asset.V1P1Beta1\312\002\034G" + + "oogle\\Cloud\\Asset\\V1p1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.iam.v1.PolicyProto.getDescriptor(), + }); + internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor, + new java.lang.String[] { "Name", "AssetType", "Project", "DisplayName", "Description", "AdditionalAttributes", "Location", "Labels", "NetworkTags", }); + internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_LabelsEntry_descriptor = + internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor, + new java.lang.String[] { "Resource", "Project", "Policy", "Explanation", }); + internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor = + internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor, + new java.lang.String[] { "MatchedPermissions", }); + internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor = + internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_asset_v1p1beta1_Permissions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor, + new java.lang.String[] { "Permissions", }); + com.google.iam.v1.PolicyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceProto.java b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceProto.java new file mode 100644 index 000000000000..250866763a66 --- /dev/null +++ b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceProto.java @@ -0,0 +1,132 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1p1beta1/asset_service.proto + +package com.google.cloud.asset.v1p1beta1; + +public final class AssetServiceProto { + private AssetServiceProto() {} + 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_asset_v1p1beta1_SearchAllResourcesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/asset/v1p1beta1/asset_ser" + + "vice.proto\022\034google.cloud.asset.v1p1beta1" + + "\032\034google/api/annotations.proto\032\027google/a" + + "pi/client.proto\032\037google/api/field_behavi" + + "or.proto\032)google/cloud/asset/v1p1beta1/a" + + "ssets.proto\"\245\001\n\031SearchAllResourcesReques" + + "t\022\022\n\005scope\030\001 \001(\tB\003\340A\002\022\022\n\005query\030\002 \001(\tB\003\340A" + + "\001\022\030\n\013asset_types\030\003 \003(\tB\003\340A\001\022\026\n\tpage_size" + + "\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005 \001(\tB\003\340A\001\022\025\n\010" + + "order_by\030\n \001(\tB\003\340A\001\"~\n\032SearchAllResource" + + "sResponse\022G\n\007results\030\001 \003(\01326.google.clou" + + "d.asset.v1p1beta1.StandardResourceMetada" + + "ta\022\027\n\017next_page_token\030\002 \001(\t\"v\n\033SearchAll" + + "IamPoliciesRequest\022\022\n\005scope\030\001 \001(\tB\003\340A\002\022\022" + + "\n\005query\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340" + + "A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\"}\n\034SearchAll" + + "IamPoliciesResponse\022D\n\007results\030\001 \003(\01323.g" + + "oogle.cloud.asset.v1p1beta1.IamPolicySea" + + "rchResult\022\027\n\017next_page_token\030\002 \001(\t2\211\004\n\014A" + + "ssetService\022\325\001\n\022SearchAllResources\0227.goo" + + "gle.cloud.asset.v1p1beta1.SearchAllResou" + + "rcesRequest\0328.google.cloud.asset.v1p1bet" + + "a1.SearchAllResourcesResponse\"L\202\323\344\223\002,\022*/" + + "v1p1beta1/{scope=*/*}/resources:searchAl" + + "l\332A\027scope,query,asset_types\022\321\001\n\024SearchAl" + + "lIamPolicies\0229.google.cloud.asset.v1p1be" + + "ta1.SearchAllIamPoliciesRequest\032:.google" + + ".cloud.asset.v1p1beta1.SearchAllIamPolic" + + "iesResponse\"B\202\323\344\223\002.\022,/v1p1beta1/{scope=*" + + "/*}/iamPolicies:searchAll\332A\013scope,query\032" + + "M\312A\031cloudasset.googleapis.com\322A.https://" + + "www.googleapis.com/auth/cloud-platformB\270" + + "\001\n com.google.cloud.asset.v1p1beta1B\021Ass" + + "etServiceProtoP\001ZAgoogle.golang.org/genp" + + "roto/googleapis/cloud/asset/v1p1beta1;as" + + "set\252\002\034Google.Cloud.Asset.V1P1Beta1\312\002\034Goo" + + "gle\\Cloud\\Asset\\V1p1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.asset.v1p1beta1.AssetProto.getDescriptor(), + }); + internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_descriptor, + new java.lang.String[] { "Scope", "Query", "AssetTypes", "PageSize", "PageToken", "OrderBy", }); + internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor, + new java.lang.String[] { "Results", "NextPageToken", }); + internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor, + new java.lang.String[] { "Scope", "Query", "PageSize", "PageToken", }); + internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor, + new java.lang.String[] { "Results", "NextPageToken", }); + 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); + 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.cloud.asset.v1p1beta1.AssetProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResult.java b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResult.java similarity index 68% rename from java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResult.java rename to owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResult.java index 674f16a22011..974662427b77 100644 --- a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResult.java +++ b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResult.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p1beta1/assets.proto package com.google.cloud.asset.v1p1beta1; /** - * - * *
      * The result for a IAM Policy search.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.IamPolicySearchResult} */ -public final class IamPolicySearchResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class IamPolicySearchResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p1beta1.IamPolicySearchResult) IamPolicySearchResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use IamPolicySearchResult.newBuilder() to construct. private IamPolicySearchResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IamPolicySearchResult() { resource_ = ""; project_ = ""; @@ -44,123 +26,34 @@ private IamPolicySearchResult() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IamPolicySearchResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private IamPolicySearchResult( - 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(); - - resource_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 34: - { - com.google.iam.v1.Policy.Builder subBuilder = null; - if (policy_ != null) { - subBuilder = policy_.toBuilder(); - } - policy_ = input.readMessage(com.google.iam.v1.Policy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(policy_); - policy_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder - subBuilder = null; - if (explanation_ != null) { - subBuilder = explanation_.toBuilder(); - } - explanation_ = - input.readMessage( - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(explanation_); - explanation_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetProto - .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetProto - .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.class, - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder.class); + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.class, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder.class); } - public interface ExplanationOrBuilder - extends + public interface ExplanationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * The map from roles to their included permission matching the permission
          * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -169,13 +62,10 @@ public interface ExplanationOrBuilder
          * requesting with a permission query.
          * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; */ int getMatchedPermissionsCount(); /** - * - * *
          * The map from roles to their included permission matching the permission
          * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -184,17 +74,17 @@ public interface ExplanationOrBuilder
          * requesting with a permission query.
          * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; + */ + boolean containsMatchedPermissions( + java.lang.String key); + /** + * Use {@link #getMatchedPermissionsMap()} instead. */ - boolean containsMatchedPermissions(java.lang.String key); - /** Use {@link #getMatchedPermissionsMap()} instead. */ @java.lang.Deprecated java.util.Map - getMatchedPermissions(); + getMatchedPermissions(); /** - * - * *
          * The map from roles to their included permission matching the permission
          * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -203,14 +93,11 @@ public interface ExplanationOrBuilder
          * requesting with a permission query.
          * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; */ java.util.Map - getMatchedPermissionsMap(); + getMatchedPermissionsMap(); /** - * - * *
          * The map from roles to their included permission matching the permission
          * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -219,18 +106,15 @@ public interface ExplanationOrBuilder
          * requesting with a permission query.
          * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; */ /* nullable */ - com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrDefault( +com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.asset.v1p1beta1.Permissions defaultValue); +com.google.cloud.asset.v1p1beta1.Permissions defaultValue); /** - * - * *
          * The map from roles to their included permission matching the permission
          * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -239,152 +123,84 @@ com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrDefault(
          * requesting with a permission query.
          * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; */ - com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrThrow(java.lang.String key); + + com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrThrow( + java.lang.String key); } /** - * - * *
        * Explanation about the IAM policy search result.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation} */ - public static final class Explanation extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Explanation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation) ExplanationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Explanation.newBuilder() to construct. private Explanation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Explanation() {} + private Explanation() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Explanation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private Explanation( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - matchedPermissions_ = - com.google.protobuf.MapField.newMapField( - MatchedPermissionsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.asset.v1p1beta1.Permissions> - matchedPermissions__ = - input.readMessage( - MatchedPermissionsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - matchedPermissions_ - .getMutableMap() - .put(matchedPermissions__.getKey(), matchedPermissions__.getValue()); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetProto - .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetMatchedPermissions(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetProto - .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.class, - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder.class); + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.class, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder.class); } public static final int MATCHED_PERMISSIONS_FIELD_NUMBER = 1; - private static final class MatchedPermissionsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.asset.v1p1beta1.Permissions> - defaultEntry = + java.lang.String, com.google.cloud.asset.v1p1beta1.Permissions> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.asset.v1p1beta1.AssetProto - .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.asset.v1p1beta1.Permissions.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.asset.v1p1beta1.Permissions.getDefaultInstance()); } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.asset.v1p1beta1.Permissions> - matchedPermissions_; - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.asset.v1p1beta1.Permissions> - internalGetMatchedPermissions() { + java.lang.String, com.google.cloud.asset.v1p1beta1.Permissions> matchedPermissions_; + private com.google.protobuf.MapField + internalGetMatchedPermissions() { if (matchedPermissions_ == null) { return com.google.protobuf.MapField.emptyMapField( MatchedPermissionsDefaultEntryHolder.defaultEntry); @@ -396,8 +212,6 @@ public int getMatchedPermissionsCount() { return internalGetMatchedPermissions().getMap().size(); } /** - * - * *
          * The map from roles to their included permission matching the permission
          * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -406,26 +220,24 @@ public int getMatchedPermissionsCount() {
          * requesting with a permission query.
          * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; */ + @java.lang.Override - public boolean containsMatchedPermissions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsMatchedPermissions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetMatchedPermissions().getMap().containsKey(key); } - /** Use {@link #getMatchedPermissionsMap()} instead. */ + /** + * Use {@link #getMatchedPermissionsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getMatchedPermissions() { + public java.util.Map getMatchedPermissions() { return getMatchedPermissionsMap(); } /** - * - * *
          * The map from roles to their included permission matching the permission
          * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -434,17 +246,14 @@ public boolean containsMatchedPermissions(java.lang.String key) {
          * requesting with a permission query.
          * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; */ @java.lang.Override - public java.util.Map - getMatchedPermissionsMap() { + + public java.util.Map getMatchedPermissionsMap() { return internalGetMatchedPermissions().getMap(); } /** - * - * *
          * The map from roles to their included permission matching the permission
          * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -453,22 +262,19 @@ public boolean containsMatchedPermissions(java.lang.String key) {
          * requesting with a permission query.
          * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; */ @java.lang.Override + public com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrDefault( - java.lang.String key, com.google.cloud.asset.v1p1beta1.Permissions defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.cloud.asset.v1p1beta1.Permissions defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMatchedPermissions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
          * The map from roles to their included permission matching the permission
          * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -477,15 +283,13 @@ public com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrDefau
          * requesting with a permission query.
          * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; */ @java.lang.Override + public com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMatchedPermissions().getMap(); if (!map.containsKey(key)) { @@ -495,7 +299,6 @@ public com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrThrow } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -507,13 +310,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetMatchedPermissions(), MatchedPermissionsDefaultEntryHolder.defaultEntry, 1); - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -522,18 +327,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry - entry : internalGetMatchedPermissions().getMap().entrySet()) { + for (java.util.Map.Entry entry + : internalGetMatchedPermissions().getMap().entrySet()) { com.google.protobuf.MapEntry - matchedPermissions__ = - MatchedPermissionsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, matchedPermissions__); - } - size += unknownFields.getSerializedSize(); + matchedPermissions__ = MatchedPermissionsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, matchedPermissions__); + } + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -541,17 +345,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation)) { return super.equals(obj); } - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation other = - (com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation) obj; + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation other = (com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation) obj; - if (!internalGetMatchedPermissions().equals(other.internalGetMatchedPermissions())) - return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!internalGetMatchedPermissions().equals( + other.internalGetMatchedPermissions())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -566,101 +369,93 @@ public int hashCode() { hash = (37 * hash) + MATCHED_PERMISSIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetMatchedPermissions().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation 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.asset.v1p1beta1.IamPolicySearchResult.Explanation parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation - 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.asset.v1p1beta1.IamPolicySearchResult.Explanation 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.asset.v1p1beta1.IamPolicySearchResult.Explanation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -670,69 +465,61 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * Explanation about the IAM policy search result.
          * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation) com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetProto - .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetMatchedPermissions(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 1: return internalGetMutableMatchedPermissions(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetProto - .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.class, - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder.class); + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.class, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder.class); } - // Construct using - // com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.newBuilder() + // Construct using com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -741,16 +528,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p1beta1.AssetProto - .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation - getDefaultInstanceForType() { - return com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation - .getDefaultInstance(); + public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation getDefaultInstanceForType() { + return com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.getDefaultInstance(); } @java.lang.Override @@ -764,8 +549,7 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation build( @java.lang.Override public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation buildPartial() { - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation result = - new com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation(this); + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation result = new com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation(this); int from_bitField0_ = bitField0_; result.matchedPermissions_ = internalGetMatchedPermissions(); result.matchedPermissions_.makeImmutable(); @@ -777,55 +561,49 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p1beta1.IamPolicySearchResult.Explanation) { - return mergeFrom( - (com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation) other); + return mergeFrom((com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation other) { - if (other - == com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation - .getDefaultInstance()) return this; - internalGetMutableMatchedPermissions().mergeFrom(other.internalGetMatchedPermissions()); - this.mergeUnknownFields(other.unknownFields); + public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation other) { + if (other == com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.getDefaultInstance()) return this; + internalGetMutableMatchedPermissions().mergeFrom( + other.internalGetMatchedPermissions()); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -840,47 +618,58 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.MapEntry + matchedPermissions__ = input.readMessage( + MatchedPermissionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableMatchedPermissions().getMutableMap().put( + matchedPermissions__.getKey(), matchedPermissions__.getValue()); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.asset.v1p1beta1.Permissions> - matchedPermissions_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.asset.v1p1beta1.Permissions> - internalGetMatchedPermissions() { + java.lang.String, com.google.cloud.asset.v1p1beta1.Permissions> matchedPermissions_; + private com.google.protobuf.MapField + internalGetMatchedPermissions() { if (matchedPermissions_ == null) { return com.google.protobuf.MapField.emptyMapField( MatchedPermissionsDefaultEntryHolder.defaultEntry); } return matchedPermissions_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.asset.v1p1beta1.Permissions> - internalGetMutableMatchedPermissions() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableMatchedPermissions() { + onChanged();; if (matchedPermissions_ == null) { - matchedPermissions_ = - com.google.protobuf.MapField.newMapField( - MatchedPermissionsDefaultEntryHolder.defaultEntry); + matchedPermissions_ = com.google.protobuf.MapField.newMapField( + MatchedPermissionsDefaultEntryHolder.defaultEntry); } if (!matchedPermissions_.isMutable()) { matchedPermissions_ = matchedPermissions_.copy(); @@ -892,8 +681,6 @@ public int getMatchedPermissionsCount() { return internalGetMatchedPermissions().getMap().size(); } /** - * - * *
            * The map from roles to their included permission matching the permission
            * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -902,26 +689,24 @@ public int getMatchedPermissionsCount() {
            * requesting with a permission query.
            * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; */ + @java.lang.Override - public boolean containsMatchedPermissions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsMatchedPermissions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetMatchedPermissions().getMap().containsKey(key); } - /** Use {@link #getMatchedPermissionsMap()} instead. */ + /** + * Use {@link #getMatchedPermissionsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getMatchedPermissions() { + public java.util.Map getMatchedPermissions() { return getMatchedPermissionsMap(); } /** - * - * *
            * The map from roles to their included permission matching the permission
            * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -930,17 +715,14 @@ public boolean containsMatchedPermissions(java.lang.String key) {
            * requesting with a permission query.
            * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; */ @java.lang.Override - public java.util.Map - getMatchedPermissionsMap() { + + public java.util.Map getMatchedPermissionsMap() { return internalGetMatchedPermissions().getMap(); } /** - * - * *
            * The map from roles to their included permission matching the permission
            * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -949,22 +731,19 @@ public boolean containsMatchedPermissions(java.lang.String key) {
            * requesting with a permission query.
            * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; */ @java.lang.Override + public com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrDefault( - java.lang.String key, com.google.cloud.asset.v1p1beta1.Permissions defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.cloud.asset.v1p1beta1.Permissions defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMatchedPermissions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
            * The map from roles to their included permission matching the permission
            * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -973,15 +752,13 @@ public com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrDefau
            * requesting with a permission query.
            * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; */ @java.lang.Override + public com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMatchedPermissions().getMap(); if (!map.containsKey(key)) { @@ -991,12 +768,11 @@ public com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrThrow } public Builder clearMatchedPermissions() { - internalGetMutableMatchedPermissions().getMutableMap().clear(); + internalGetMutableMatchedPermissions().getMutableMap() + .clear(); return this; } /** - * - * *
            * The map from roles to their included permission matching the permission
            * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -1005,25 +781,25 @@ public Builder clearMatchedPermissions() {
            * requesting with a permission query.
            * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; */ - public Builder removeMatchedPermissions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableMatchedPermissions().getMutableMap().remove(key); + + public Builder removeMatchedPermissions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableMatchedPermissions().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map - getMutableMatchedPermissions() { + getMutableMatchedPermissions() { return internalGetMutableMatchedPermissions().getMutableMap(); } /** - * - * *
            * The map from roles to their included permission matching the permission
            * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -1032,24 +808,21 @@ public Builder removeMatchedPermissions(java.lang.String key) {
            * requesting with a permission query.
            * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; */ public Builder putMatchedPermissions( - java.lang.String key, com.google.cloud.asset.v1p1beta1.Permissions value) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.cloud.asset.v1p1beta1.Permissions value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableMatchedPermissions().getMutableMap().put(key, value); + internalGetMutableMatchedPermissions().getMutableMap() + .put(key, value); return this; } /** - * - * *
            * The map from roles to their included permission matching the permission
            * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -1058,15 +831,15 @@ public Builder putMatchedPermissions(
            * requesting with a permission query.
            * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; - * + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; */ + public Builder putAllMatchedPermissions( java.util.Map values) { - internalGetMutableMatchedPermissions().getMutableMap().putAll(values); + internalGetMutableMatchedPermissions().getMutableMap() + .putAll(values); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1079,32 +852,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation) - private static final com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation - DEFAULT_INSTANCE; - + private static final com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation(); } - public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation - getDefaultInstance() { + public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Explanation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Explanation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Explanation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1116,17 +898,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation - getDefaultInstanceForType() { + public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int RESOURCE_FIELD_NUMBER = 1; private volatile java.lang.Object resource_; /** - * - * *
        * The [full resource
        * name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    @@ -1134,7 +914,6 @@ public com.google.protobuf.Parser getParserForType() {
        * 
    * * string resource = 1; - * * @return The resource. */ @java.lang.Override @@ -1143,15 +922,14 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** - * - * *
        * The [full resource
        * name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    @@ -1159,15 +937,16 @@ public java.lang.String getResource() {
        * 
    * * string resource = 1; - * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -1178,8 +957,6 @@ public com.google.protobuf.ByteString getResourceBytes() { public static final int PROJECT_FIELD_NUMBER = 3; private volatile java.lang.Object project_; /** - * - * *
        * The project that the associated GCP resource belongs to, in the form of
        * `projects/{project_number}`. If an IAM policy is set on a resource (like VM
    @@ -1189,7 +966,6 @@ public com.google.protobuf.ByteString getResourceBytes() {
        * 
    * * string project = 3; - * * @return The project. */ @java.lang.Override @@ -1198,15 +974,14 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** - * - * *
        * The project that the associated GCP resource belongs to, in the form of
        * `projects/{project_number}`. If an IAM policy is set on a resource (like VM
    @@ -1216,15 +991,16 @@ public java.lang.String getProject() {
        * 
    * * string project = 3; - * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -1235,8 +1011,6 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int POLICY_FIELD_NUMBER = 4; private com.google.iam.v1.Policy policy_; /** - * - * *
        * The IAM policy directly set on the given resource. Note that the original
        * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -1245,7 +1019,6 @@ public com.google.protobuf.ByteString getProjectBytes() {
        * 
    * * .google.iam.v1.Policy policy = 4; - * * @return Whether the policy field is set. */ @java.lang.Override @@ -1253,8 +1026,6 @@ public boolean hasPolicy() { return policy_ != null; } /** - * - * *
        * The IAM policy directly set on the given resource. Note that the original
        * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -1263,7 +1034,6 @@ public boolean hasPolicy() {
        * 
    * * .google.iam.v1.Policy policy = 4; - * * @return The policy. */ @java.lang.Override @@ -1271,8 +1041,6 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** - * - * *
        * The IAM policy directly set on the given resource. Note that the original
        * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -1290,15 +1058,12 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
       public static final int EXPLANATION_FIELD_NUMBER = 5;
       private com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation_;
       /**
    -   *
    -   *
        * 
        * Explanation about the IAM policy search result. It contains additional
        * information to explain why the search result matches the query.
        * 
    * * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5; - * * @return Whether the explanation field is set. */ @java.lang.Override @@ -1306,26 +1071,19 @@ public boolean hasExplanation() { return explanation_ != null; } /** - * - * *
        * Explanation about the IAM policy search result. It contains additional
        * information to explain why the search result matches the query.
        * 
    * * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5; - * * @return The explanation. */ @java.lang.Override public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation getExplanation() { - return explanation_ == null - ? com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.getDefaultInstance() - : explanation_; + return explanation_ == null ? com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.getDefaultInstance() : explanation_; } /** - * - * *
        * Explanation about the IAM policy search result. It contains additional
        * information to explain why the search result matches the query.
    @@ -1334,13 +1092,11 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation getExp
        * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
        */
       @java.lang.Override
    -  public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder
    -      getExplanationOrBuilder() {
    +  public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder getExplanationOrBuilder() {
         return getExplanation();
       }
     
       private byte memoizedIsInitialized = -1;
    -
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -1352,7 +1108,8 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output)
    +                      throws java.io.IOException {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_);
         }
    @@ -1365,7 +1122,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (explanation_ != null) {
           output.writeMessage(5, getExplanation());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -1381,12 +1138,14 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, project_);
         }
         if (policy_ != null) {
    -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPolicy());
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(4, getPolicy());
         }
         if (explanation_ != null) {
    -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getExplanation());
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(5, getExplanation());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -1394,25 +1153,28 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -      return true;
    +     return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1p1beta1.IamPolicySearchResult)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1p1beta1.IamPolicySearchResult other =
    -        (com.google.cloud.asset.v1p1beta1.IamPolicySearchResult) obj;
    +    com.google.cloud.asset.v1p1beta1.IamPolicySearchResult other = (com.google.cloud.asset.v1p1beta1.IamPolicySearchResult) obj;
     
    -    if (!getResource().equals(other.getResource())) return false;
    -    if (!getProject().equals(other.getProject())) return false;
    +    if (!getResource()
    +        .equals(other.getResource())) return false;
    +    if (!getProject()
    +        .equals(other.getProject())) return false;
         if (hasPolicy() != other.hasPolicy()) return false;
         if (hasPolicy()) {
    -      if (!getPolicy().equals(other.getPolicy())) return false;
    +      if (!getPolicy()
    +          .equals(other.getPolicy())) return false;
         }
         if (hasExplanation() != other.hasExplanation()) return false;
         if (hasExplanation()) {
    -      if (!getExplanation().equals(other.getExplanation())) return false;
    +      if (!getExplanation()
    +          .equals(other.getExplanation())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -1435,149 +1197,135 @@ public int hashCode() {
           hash = (37 * hash) + EXPLANATION_FIELD_NUMBER;
           hash = (53 * hash) + getExplanation().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
     
       public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parseFrom(
    -      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    +      java.nio.ByteBuffer data)
    +      throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parseFrom(
    -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult 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.asset.v1p1beta1.IamPolicySearchResult parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parseFrom(
    -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
    -  public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parseFrom(
    -      java.io.InputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +  public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parseFrom(java.io.InputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parseFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
    -
    -  public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parseDelimitedFrom(
    -      java.io.InputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    +  public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parseDelimitedFrom(java.io.InputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parseDelimitedFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parseFrom(
    -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() {
    -    return newBuilder();
    -  }
    -
    +  public Builder newBuilderForType() { return newBuilder(); }
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    -
    -  public static Builder newBuilder(
    -      com.google.cloud.asset.v1p1beta1.IamPolicySearchResult prototype) {
    +  public static Builder newBuilder(com.google.cloud.asset.v1p1beta1.IamPolicySearchResult prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    -
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE
    +        ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(
    +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    -   *
    -   *
        * 
        * The result for a IAM Policy search.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.IamPolicySearchResult} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p1beta1.IamPolicySearchResult) com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetProto - .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetProto - .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.class, - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder.class); + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.class, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder.class); } // Construct using com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -1601,9 +1349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p1beta1.AssetProto - .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor; } @java.lang.Override @@ -1622,8 +1370,7 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult build() { @java.lang.Override public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult buildPartial() { - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult result = - new com.google.cloud.asset.v1p1beta1.IamPolicySearchResult(this); + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult result = new com.google.cloud.asset.v1p1beta1.IamPolicySearchResult(this); result.resource_ = resource_; result.project_ = project_; if (policyBuilder_ == null) { @@ -1644,39 +1391,38 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p1beta1.IamPolicySearchResult) { - return mergeFrom((com.google.cloud.asset.v1p1beta1.IamPolicySearchResult) other); + return mergeFrom((com.google.cloud.asset.v1p1beta1.IamPolicySearchResult)other); } else { super.mergeFrom(other); return this; @@ -1684,8 +1430,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.IamPolicySearchResult other) { - if (other == com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.getDefaultInstance()) return this; if (!other.getResource().isEmpty()) { resource_ = other.resource_; onChanged(); @@ -1700,7 +1445,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.IamPolicySearchResult if (other.hasExplanation()) { mergeExplanation(other.getExplanation()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1715,25 +1460,59 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + resource_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 26: { + project_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + input.readMessage( + getPolicyFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 42: { + input.readMessage( + getExplanationFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1p1beta1.IamPolicySearchResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object resource_ = ""; /** - * - * *
          * The [full resource
          * name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    @@ -1741,13 +1520,13 @@ public Builder mergeFrom(
          * 
    * * string resource = 1; - * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -1756,8 +1535,6 @@ public java.lang.String getResource() { } } /** - * - * *
          * The [full resource
          * name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    @@ -1765,14 +1542,15 @@ public java.lang.String getResource() {
          * 
    * * string resource = 1; - * * @return The bytes for resource. */ - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -1780,8 +1558,6 @@ public com.google.protobuf.ByteString getResourceBytes() { } } /** - * - * *
          * The [full resource
          * name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    @@ -1789,22 +1565,20 @@ public com.google.protobuf.ByteString getResourceBytes() {
          * 
    * * string resource = 1; - * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource(java.lang.String value) { + public Builder setResource( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** - * - * *
          * The [full resource
          * name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    @@ -1812,18 +1586,15 @@ public Builder setResource(java.lang.String value) {
          * 
    * * string resource = 1; - * * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** - * - * *
          * The [full resource
          * name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    @@ -1831,16 +1602,16 @@ public Builder clearResource() {
          * 
    * * string resource = 1; - * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes(com.google.protobuf.ByteString value) { + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; @@ -1848,8 +1619,6 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { private java.lang.Object project_ = ""; /** - * - * *
          * The project that the associated GCP resource belongs to, in the form of
          * `projects/{project_number}`. If an IAM policy is set on a resource (like VM
    @@ -1859,13 +1628,13 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) {
          * 
    * * string project = 3; - * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -1874,8 +1643,6 @@ public java.lang.String getProject() { } } /** - * - * *
          * The project that the associated GCP resource belongs to, in the form of
          * `projects/{project_number}`. If an IAM policy is set on a resource (like VM
    @@ -1885,14 +1652,15 @@ public java.lang.String getProject() {
          * 
    * * string project = 3; - * * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -1900,8 +1668,6 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
          * The project that the associated GCP resource belongs to, in the form of
          * `projects/{project_number}`. If an IAM policy is set on a resource (like VM
    @@ -1911,22 +1677,20 @@ public com.google.protobuf.ByteString getProjectBytes() {
          * 
    * * string project = 3; - * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { + public Builder setProject( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; onChanged(); return this; } /** - * - * *
          * The project that the associated GCP resource belongs to, in the form of
          * `projects/{project_number}`. If an IAM policy is set on a resource (like VM
    @@ -1936,18 +1700,15 @@ public Builder setProject(java.lang.String value) {
          * 
    * * string project = 3; - * * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** - * - * *
          * The project that the associated GCP resource belongs to, in the form of
          * `projects/{project_number}`. If an IAM policy is set on a resource (like VM
    @@ -1957,16 +1718,16 @@ public Builder clearProject() {
          * 
    * * string project = 3; - * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; @@ -1974,13 +1735,8 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { private com.google.iam.v1.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, - com.google.iam.v1.Policy.Builder, - com.google.iam.v1.PolicyOrBuilder> - policyBuilder_; + com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> policyBuilder_; /** - * - * *
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -1989,15 +1745,12 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) {
          * 
    * * .google.iam.v1.Policy policy = 4; - * * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || policy_ != null; } /** - * - * *
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -2006,7 +1759,6 @@ public boolean hasPolicy() {
          * 
    * * .google.iam.v1.Policy policy = 4; - * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -2017,8 +1769,6 @@ public com.google.iam.v1.Policy getPolicy() { } } /** - * - * *
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -2042,8 +1792,6 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -2053,7 +1801,8 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
          *
          * .google.iam.v1.Policy policy = 4;
          */
    -    public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
    +    public Builder setPolicy(
    +        com.google.iam.v1.Policy.Builder builderForValue) {
           if (policyBuilder_ == null) {
             policy_ = builderForValue.build();
             onChanged();
    @@ -2064,8 +1813,6 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -2078,7 +1825,8 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
         public Builder mergePolicy(com.google.iam.v1.Policy value) {
           if (policyBuilder_ == null) {
             if (policy_ != null) {
    -          policy_ = com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
    +          policy_ =
    +            com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
             } else {
               policy_ = value;
             }
    @@ -2090,8 +1838,6 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -2113,8 +1859,6 @@ public Builder clearPolicy() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -2125,13 +1869,11 @@ public Builder clearPolicy() {
          * .google.iam.v1.Policy policy = 4;
          */
         public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
    -
    +      
           onChanged();
           return getPolicyFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -2145,12 +1887,11 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
           if (policyBuilder_ != null) {
             return policyBuilder_.getMessageOrBuilder();
           } else {
    -        return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_;
    +        return policy_ == null ?
    +            com.google.iam.v1.Policy.getDefaultInstance() : policy_;
           }
         }
         /**
    -     *
    -     *
          * 
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -2161,16 +1902,14 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
          * .google.iam.v1.Policy policy = 4;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.iam.v1.Policy,
    -            com.google.iam.v1.Policy.Builder,
    -            com.google.iam.v1.PolicyOrBuilder>
    +        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> 
             getPolicyFieldBuilder() {
           if (policyBuilder_ == null) {
    -        policyBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.iam.v1.Policy,
    -                com.google.iam.v1.Policy.Builder,
    -                com.google.iam.v1.PolicyOrBuilder>(getPolicy(), getParentForChildren(), isClean());
    +        policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>(
    +                getPolicy(),
    +                getParentForChildren(),
    +                isClean());
             policy_ = null;
           }
           return policyBuilder_;
    @@ -2178,50 +1917,36 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
     
         private com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation,
    -            com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder,
    -            com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder>
    -        explanationBuilder_;
    +        com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder> explanationBuilder_;
         /**
    -     *
    -     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
          * 
    * * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5; - * * @return Whether the explanation field is set. */ public boolean hasExplanation() { return explanationBuilder_ != null || explanation_ != null; } /** - * - * *
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
          * 
    * * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5; - * * @return The explanation. */ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation getExplanation() { if (explanationBuilder_ == null) { - return explanation_ == null - ? com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation - .getDefaultInstance() - : explanation_; + return explanation_ == null ? com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.getDefaultInstance() : explanation_; } else { return explanationBuilder_.getMessage(); } } /** - * - * *
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -2229,8 +1954,7 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation getExp
          *
          * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
          */
    -    public Builder setExplanation(
    -        com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation value) {
    +    public Builder setExplanation(com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation value) {
           if (explanationBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -2244,8 +1968,6 @@ public Builder setExplanation(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -2254,8 +1976,7 @@ public Builder setExplanation(
          * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
          */
         public Builder setExplanation(
    -        com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder
    -            builderForValue) {
    +        com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder builderForValue) {
           if (explanationBuilder_ == null) {
             explanation_ = builderForValue.build();
             onChanged();
    @@ -2266,8 +1987,6 @@ public Builder setExplanation(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -2275,15 +1994,11 @@ public Builder setExplanation(
          *
          * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
          */
    -    public Builder mergeExplanation(
    -        com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation value) {
    +    public Builder mergeExplanation(com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation value) {
           if (explanationBuilder_ == null) {
             if (explanation_ != null) {
               explanation_ =
    -              com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.newBuilder(
    -                      explanation_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +            com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.newBuilder(explanation_).mergeFrom(value).buildPartial();
             } else {
               explanation_ = value;
             }
    @@ -2295,8 +2010,6 @@ public Builder mergeExplanation(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -2316,8 +2029,6 @@ public Builder clearExplanation() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -2325,15 +2036,12 @@ public Builder clearExplanation() {
          *
          * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
          */
    -    public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder
    -        getExplanationBuilder() {
    -
    +    public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder getExplanationBuilder() {
    +      
           onChanged();
           return getExplanationFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -2341,20 +2049,15 @@ public Builder clearExplanation() {
          *
          * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
          */
    -    public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder
    -        getExplanationOrBuilder() {
    +    public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder getExplanationOrBuilder() {
           if (explanationBuilder_ != null) {
             return explanationBuilder_.getMessageOrBuilder();
           } else {
    -        return explanation_ == null
    -            ? com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation
    -                .getDefaultInstance()
    -            : explanation_;
    +        return explanation_ == null ?
    +            com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.getDefaultInstance() : explanation_;
           }
         }
         /**
    -     *
    -     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -2363,24 +2066,21 @@ public Builder clearExplanation() {
          * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation,
    -            com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder,
    -            com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder>
    +        com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder> 
             getExplanationFieldBuilder() {
           if (explanationBuilder_ == null) {
    -        explanationBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation,
    -                com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder,
    -                com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder>(
    -                getExplanation(), getParentForChildren(), isClean());
    +        explanationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder>(
    +                getExplanation(),
    +                getParentForChildren(),
    +                isClean());
             explanation_ = null;
           }
           return explanationBuilder_;
         }
    -
         @java.lang.Override
    -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(
    +        final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -2390,12 +2090,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    +
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p1beta1.IamPolicySearchResult)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p1beta1.IamPolicySearchResult)
       private static final com.google.cloud.asset.v1p1beta1.IamPolicySearchResult DEFAULT_INSTANCE;
    -
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1p1beta1.IamPolicySearchResult();
       }
    @@ -2404,16 +2104,27 @@ public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult getDefaultI
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser PARSER =
    -      new com.google.protobuf.AbstractParser() {
    -        @java.lang.Override
    -        public IamPolicySearchResult parsePartialFrom(
    -            com.google.protobuf.CodedInputStream input,
    -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -            throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new IamPolicySearchResult(input, extensionRegistry);
    -        }
    -      };
    +  private static final com.google.protobuf.Parser
    +      PARSER = new com.google.protobuf.AbstractParser() {
    +    @java.lang.Override
    +    public IamPolicySearchResult parsePartialFrom(
    +        com.google.protobuf.CodedInputStream input,
    +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        throws com.google.protobuf.InvalidProtocolBufferException {
    +      Builder builder = newBuilder();
    +      try {
    +        builder.mergeFrom(input, extensionRegistry);
    +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +        throw e.setUnfinishedMessage(builder.buildPartial());
    +      } catch (com.google.protobuf.UninitializedMessageException e) {
    +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +      } catch (java.io.IOException e) {
    +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +            .setUnfinishedMessage(builder.buildPartial());
    +      }
    +      return builder.buildPartial();
    +    }
    +  };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -2428,4 +2139,6 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    +
     }
    +
    diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResultOrBuilder.java b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResultOrBuilder.java
    similarity index 82%
    rename from java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResultOrBuilder.java
    rename to owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResultOrBuilder.java
    index 908e2372737e..66b38341f7d0 100644
    --- a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResultOrBuilder.java
    +++ b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResultOrBuilder.java
    @@ -1,31 +1,13 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1p1beta1/assets.proto
     
     package com.google.cloud.asset.v1p1beta1;
     
    -public interface IamPolicySearchResultOrBuilder
    -    extends
    +public interface IamPolicySearchResultOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p1beta1.IamPolicySearchResult)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    -   *
    -   *
        * 
        * The [full resource
        * name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    @@ -33,13 +15,10 @@ public interface IamPolicySearchResultOrBuilder
        * 
    * * string resource = 1; - * * @return The resource. */ java.lang.String getResource(); /** - * - * *
        * The [full resource
        * name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    @@ -47,14 +26,12 @@ public interface IamPolicySearchResultOrBuilder
        * 
    * * string resource = 1; - * * @return The bytes for resource. */ - com.google.protobuf.ByteString getResourceBytes(); + com.google.protobuf.ByteString + getResourceBytes(); /** - * - * *
        * The project that the associated GCP resource belongs to, in the form of
        * `projects/{project_number}`. If an IAM policy is set on a resource (like VM
    @@ -64,13 +41,10 @@ public interface IamPolicySearchResultOrBuilder
        * 
    * * string project = 3; - * * @return The project. */ java.lang.String getProject(); /** - * - * *
        * The project that the associated GCP resource belongs to, in the form of
        * `projects/{project_number}`. If an IAM policy is set on a resource (like VM
    @@ -80,14 +54,12 @@ public interface IamPolicySearchResultOrBuilder
        * 
    * * string project = 3; - * * @return The bytes for project. */ - com.google.protobuf.ByteString getProjectBytes(); + com.google.protobuf.ByteString + getProjectBytes(); /** - * - * *
        * The IAM policy directly set on the given resource. Note that the original
        * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -96,13 +68,10 @@ public interface IamPolicySearchResultOrBuilder
        * 
    * * .google.iam.v1.Policy policy = 4; - * * @return Whether the policy field is set. */ boolean hasPolicy(); /** - * - * *
        * The IAM policy directly set on the given resource. Note that the original
        * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -111,13 +80,10 @@ public interface IamPolicySearchResultOrBuilder
        * 
    * * .google.iam.v1.Policy policy = 4; - * * @return The policy. */ com.google.iam.v1.Policy getPolicy(); /** - * - * *
        * The IAM policy directly set on the given resource. Note that the original
        * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -130,34 +96,26 @@ public interface IamPolicySearchResultOrBuilder
       com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * Explanation about the IAM policy search result. It contains additional
        * information to explain why the search result matches the query.
        * 
    * * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5; - * * @return Whether the explanation field is set. */ boolean hasExplanation(); /** - * - * *
        * Explanation about the IAM policy search result. It contains additional
        * information to explain why the search result matches the query.
        * 
    * * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5; - * * @return The explanation. */ com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation getExplanation(); /** - * - * *
        * Explanation about the IAM policy search result. It contains additional
        * information to explain why the search result matches the query.
    @@ -165,6 +123,5 @@ public interface IamPolicySearchResultOrBuilder
        *
        * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
        */
    -  com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder
    -      getExplanationOrBuilder();
    +  com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder getExplanationOrBuilder();
     }
    diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/Permissions.java b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/Permissions.java
    similarity index 63%
    rename from java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/Permissions.java
    rename to owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/Permissions.java
    index 46891f376af3..45b1eb3aa6aa 100644
    --- a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/Permissions.java
    +++ b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/Permissions.java
    @@ -1,164 +1,84 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1p1beta1/assets.proto
     
     package com.google.cloud.asset.v1p1beta1;
     
     /**
    - *
    - *
      * 
      * IAM permissions
      * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.Permissions} */ -public final class Permissions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Permissions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p1beta1.Permissions) PermissionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Permissions.newBuilder() to construct. private Permissions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Permissions() { permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Permissions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private Permissions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - permissions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - permissions_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - permissions_ = permissions_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetProto - .internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetProto - .internal_static_google_cloud_asset_v1p1beta1_Permissions_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_Permissions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.Permissions.class, - com.google.cloud.asset.v1p1beta1.Permissions.Builder.class); + com.google.cloud.asset.v1p1beta1.Permissions.class, com.google.cloud.asset.v1p1beta1.Permissions.Builder.class); } public static final int PERMISSIONS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList permissions_; /** - * - * *
        * A list of permissions. A sample permission string: "compute.disk.get".
        * 
    * * repeated string permissions = 1; - * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList getPermissionsList() { + public com.google.protobuf.ProtocolStringList + getPermissionsList() { return permissions_; } /** - * - * *
        * A list of permissions. A sample permission string: "compute.disk.get".
        * 
    * * repeated string permissions = 1; - * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** - * - * *
        * A list of permissions. A sample permission string: "compute.disk.get".
        * 
    * * repeated string permissions = 1; - * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -166,23 +86,20 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** - * - * *
        * A list of permissions. A sample permission string: "compute.disk.get".
        * 
    * * repeated string permissions = 1; - * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString getPermissionsBytes(int index) { + public com.google.protobuf.ByteString + getPermissionsBytes(int index) { return permissions_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,11 +111,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < permissions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, permissions_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -215,7 +133,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getPermissionsList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -223,16 +141,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p1beta1.Permissions)) { return super.equals(obj); } - com.google.cloud.asset.v1p1beta1.Permissions other = - (com.google.cloud.asset.v1p1beta1.Permissions) obj; + com.google.cloud.asset.v1p1beta1.Permissions other = (com.google.cloud.asset.v1p1beta1.Permissions) obj; - if (!getPermissionsList().equals(other.getPermissionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getPermissionsList() + .equals(other.getPermissionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -247,148 +165,135 @@ public int hashCode() { hash = (37 * hash) + PERMISSIONS_FIELD_NUMBER; hash = (53 * hash) + getPermissionsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p1beta1.Permissions 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.asset.v1p1beta1.Permissions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p1beta1.Permissions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p1beta1.Permissions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p1beta1.Permissions parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p1beta1.Permissions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * IAM permissions
        * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.Permissions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p1beta1.Permissions) com.google.cloud.asset.v1p1beta1.PermissionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetProto - .internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetProto - .internal_static_google_cloud_asset_v1p1beta1_Permissions_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_Permissions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.Permissions.class, - com.google.cloud.asset.v1p1beta1.Permissions.Builder.class); + com.google.cloud.asset.v1p1beta1.Permissions.class, com.google.cloud.asset.v1p1beta1.Permissions.Builder.class); } // Construct using com.google.cloud.asset.v1p1beta1.Permissions.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -398,9 +303,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p1beta1.AssetProto - .internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor; } @java.lang.Override @@ -419,8 +324,7 @@ public com.google.cloud.asset.v1p1beta1.Permissions build() { @java.lang.Override public com.google.cloud.asset.v1p1beta1.Permissions buildPartial() { - com.google.cloud.asset.v1p1beta1.Permissions result = - new com.google.cloud.asset.v1p1beta1.Permissions(this); + com.google.cloud.asset.v1p1beta1.Permissions result = new com.google.cloud.asset.v1p1beta1.Permissions(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { permissions_ = permissions_.getUnmodifiableView(); @@ -435,39 +339,38 @@ public com.google.cloud.asset.v1p1beta1.Permissions buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p1beta1.Permissions) { - return mergeFrom((com.google.cloud.asset.v1p1beta1.Permissions) other); + return mergeFrom((com.google.cloud.asset.v1p1beta1.Permissions)other); } else { super.mergeFrom(other); return this; @@ -486,7 +389,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.Permissions other) { } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -501,68 +404,76 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p1beta1.Permissions parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePermissionsIsMutable(); + permissions_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1p1beta1.Permissions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList permissions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePermissionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
          * A list of permissions. A sample permission string: "compute.disk.get".
          * 
    * * repeated string permissions = 1; - * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList getPermissionsList() { + public com.google.protobuf.ProtocolStringList + getPermissionsList() { return permissions_.getUnmodifiableView(); } /** - * - * *
          * A list of permissions. A sample permission string: "compute.disk.get".
          * 
    * * repeated string permissions = 1; - * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** - * - * *
          * A list of permissions. A sample permission string: "compute.disk.get".
          * 
    * * repeated string permissions = 1; - * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -570,90 +481,80 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** - * - * *
          * A list of permissions. A sample permission string: "compute.disk.get".
          * 
    * * repeated string permissions = 1; - * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString getPermissionsBytes(int index) { + public com.google.protobuf.ByteString + getPermissionsBytes(int index) { return permissions_.getByteString(index); } /** - * - * *
          * A list of permissions. A sample permission string: "compute.disk.get".
          * 
    * * repeated string permissions = 1; - * * @param index The index to set the value at. * @param value The permissions to set. * @return This builder for chaining. */ - public Builder setPermissions(int index, java.lang.String value) { + public Builder setPermissions( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); return this; } /** - * - * *
          * A list of permissions. A sample permission string: "compute.disk.get".
          * 
    * * repeated string permissions = 1; - * * @param value The permissions to add. * @return This builder for chaining. */ - public Builder addPermissions(java.lang.String value) { + public Builder addPermissions( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } /** - * - * *
          * A list of permissions. A sample permission string: "compute.disk.get".
          * 
    * * repeated string permissions = 1; - * * @param values The permissions to add. * @return This builder for chaining. */ - public Builder addAllPermissions(java.lang.Iterable values) { + public Builder addAllPermissions( + java.lang.Iterable values) { ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, permissions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, permissions_); onChanged(); return this; } /** - * - * *
          * A list of permissions. A sample permission string: "compute.disk.get".
          * 
    * * repeated string permissions = 1; - * * @return This builder for chaining. */ public Builder clearPermissions() { @@ -663,30 +564,28 @@ public Builder clearPermissions() { return this; } /** - * - * *
          * A list of permissions. A sample permission string: "compute.disk.get".
          * 
    * * repeated string permissions = 1; - * * @param value The bytes of the permissions to add. * @return This builder for chaining. */ - public Builder addPermissionsBytes(com.google.protobuf.ByteString value) { + public Builder addPermissionsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -696,12 +595,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p1beta1.Permissions) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p1beta1.Permissions) private static final com.google.cloud.asset.v1p1beta1.Permissions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p1beta1.Permissions(); } @@ -710,16 +609,27 @@ public static com.google.cloud.asset.v1p1beta1.Permissions getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Permissions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Permissions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Permissions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -734,4 +644,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p1beta1.Permissions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/PermissionsOrBuilder.java b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/PermissionsOrBuilder.java similarity index 61% rename from java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/PermissionsOrBuilder.java rename to owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/PermissionsOrBuilder.java index 8a7116a8c8c9..ef7bee9844a3 100644 --- a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/PermissionsOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/PermissionsOrBuilder.java @@ -1,76 +1,50 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p1beta1/assets.proto package com.google.cloud.asset.v1p1beta1; -public interface PermissionsOrBuilder - extends +public interface PermissionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p1beta1.Permissions) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * A list of permissions. A sample permission string: "compute.disk.get".
        * 
    * * repeated string permissions = 1; - * * @return A list containing the permissions. */ - java.util.List getPermissionsList(); + java.util.List + getPermissionsList(); /** - * - * *
        * A list of permissions. A sample permission string: "compute.disk.get".
        * 
    * * repeated string permissions = 1; - * * @return The count of permissions. */ int getPermissionsCount(); /** - * - * *
        * A list of permissions. A sample permission string: "compute.disk.get".
        * 
    * * repeated string permissions = 1; - * * @param index The index of the element to return. * @return The permissions at the given index. */ java.lang.String getPermissions(int index); /** - * - * *
        * A list of permissions. A sample permission string: "compute.disk.get".
        * 
    * * repeated string permissions = 1; - * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - com.google.protobuf.ByteString getPermissionsBytes(int index); + com.google.protobuf.ByteString + getPermissionsBytes(int index); } diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequest.java b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequest.java similarity index 71% rename from java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequest.java rename to owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequest.java index 5a6167667b26..8a23764d8f2c 100644 --- a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequest.java +++ b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p1beta1/asset_service.proto package com.google.cloud.asset.v1p1beta1; /** - * - * *
      * Search all IAM policies request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest} */ -public final class SearchAllIamPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SearchAllIamPoliciesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest) SearchAllIamPoliciesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SearchAllIamPoliciesRequest.newBuilder() to construct. private SearchAllIamPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SearchAllIamPoliciesRequest() { scope_ = ""; query_ = ""; @@ -45,100 +27,32 @@ private SearchAllIamPoliciesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SearchAllIamPoliciesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private SearchAllIamPoliciesRequest( - 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(); - - scope_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - query_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.class, - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.Builder.class); + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.class, com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.Builder.class); } public static final int SCOPE_FIELD_NUMBER = 1; private volatile java.lang.Object scope_; /** - * - * *
        * Required. The relative name of an asset. The search is limited to the resources
        * within the `scope`. The allowed value must be:
    @@ -149,7 +63,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The scope. */ @java.lang.Override @@ -158,15 +71,14 @@ public java.lang.String getScope() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; } } /** - * - * *
        * Required. The relative name of an asset. The search is limited to the resources
        * within the `scope`. The allowed value must be:
    @@ -177,15 +89,16 @@ public java.lang.String getScope() {
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for scope. */ @java.lang.Override - public com.google.protobuf.ByteString getScopeBytes() { + public com.google.protobuf.ByteString + getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); scope_ = b; return b; } else { @@ -196,8 +109,6 @@ public com.google.protobuf.ByteString getScopeBytes() { public static final int QUERY_FIELD_NUMBER = 2; private volatile java.lang.Object query_; /** - * - * *
        * Optional. The query statement.
        * Examples:
    @@ -206,7 +117,6 @@ public com.google.protobuf.ByteString getScopeBytes() {
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The query. */ @java.lang.Override @@ -215,15 +125,14 @@ public java.lang.String getQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } } /** - * - * *
        * Optional. The query statement.
        * Examples:
    @@ -232,15 +141,16 @@ public java.lang.String getQuery() {
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for query. */ @java.lang.Override - public com.google.protobuf.ByteString getQueryBytes() { + public com.google.protobuf.ByteString + getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); query_ = b; return b; } else { @@ -251,8 +161,6 @@ public com.google.protobuf.ByteString getQueryBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
        * Optional. The page size for search result pagination. Page size is capped at 500 even
        * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -261,7 +169,6 @@ public com.google.protobuf.ByteString getQueryBytes() {
        * 
    * * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -272,8 +179,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** - * - * *
        * Optional. If present, retrieve the next batch of results from the preceding call to
        * this method. `page_token` must be the value of `next_page_token` from the
    @@ -282,7 +187,6 @@ public int getPageSize() {
        * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -291,15 +195,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
        * Optional. If present, retrieve the next batch of results from the preceding call to
        * this method. `page_token` must be the value of `next_page_token` from the
    @@ -308,15 +211,16 @@ public java.lang.String getPageToken() {
        * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -325,7 +229,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -337,7 +240,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scope_); } @@ -350,7 +254,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -366,12 +270,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, query_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -379,19 +284,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest other = - (com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest) obj; - - if (!getScope().equals(other.getScope())) return false; - if (!getQuery().equals(other.getQuery())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest other = (com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest) obj; + + if (!getScope() + .equals(other.getScope())) return false; + if (!getQuery() + .equals(other.getQuery())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -410,149 +318,135 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest 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.asset.v1p1beta1.SearchAllIamPoliciesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Search all IAM policies request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest) com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.class, - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.Builder.class); + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.class, com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.Builder.class); } // Construct using com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -568,14 +462,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest - getDefaultInstanceForType() { + public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest getDefaultInstanceForType() { return com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.getDefaultInstance(); } @@ -590,8 +483,7 @@ public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest build() { @java.lang.Override public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest buildPartial() { - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest result = - new com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest(this); + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest result = new com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest(this); result.scope_ = scope_; result.query_ = query_; result.pageSize_ = pageSize_; @@ -604,39 +496,38 @@ public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p1beta1.SearchAllIamPoliciesRequest) { - return mergeFrom((com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest) other); + return mergeFrom((com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest)other); } else { super.mergeFrom(other); return this; @@ -644,9 +535,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest other) { - if (other - == com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.getDefaultInstance()) return this; if (!other.getScope().isEmpty()) { scope_ = other.scope_; onChanged(); @@ -662,7 +551,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRe pageToken_ = other.pageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -677,25 +566,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + scope_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + query_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + + break; + } // case 24 + case 34: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object scope_ = ""; /** - * - * *
          * Required. The relative name of an asset. The search is limited to the resources
          * within the `scope`. The allowed value must be:
    @@ -706,13 +625,13 @@ public Builder mergeFrom(
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The scope. */ public java.lang.String getScope() { java.lang.Object ref = scope_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; @@ -721,8 +640,6 @@ public java.lang.String getScope() { } } /** - * - * *
          * Required. The relative name of an asset. The search is limited to the resources
          * within the `scope`. The allowed value must be:
    @@ -733,14 +650,15 @@ public java.lang.String getScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for scope. */ - public com.google.protobuf.ByteString getScopeBytes() { + public com.google.protobuf.ByteString + getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); scope_ = b; return b; } else { @@ -748,8 +666,6 @@ public com.google.protobuf.ByteString getScopeBytes() { } } /** - * - * *
          * Required. The relative name of an asset. The search is limited to the resources
          * within the `scope`. The allowed value must be:
    @@ -760,22 +676,20 @@ public com.google.protobuf.ByteString getScopeBytes() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The scope to set. * @return This builder for chaining. */ - public Builder setScope(java.lang.String value) { + public Builder setScope( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + scope_ = value; onChanged(); return this; } /** - * - * *
          * Required. The relative name of an asset. The search is limited to the resources
          * within the `scope`. The allowed value must be:
    @@ -786,18 +700,15 @@ public Builder setScope(java.lang.String value) {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearScope() { - + scope_ = getDefaultInstance().getScope(); onChanged(); return this; } /** - * - * *
          * Required. The relative name of an asset. The search is limited to the resources
          * within the `scope`. The allowed value must be:
    @@ -808,16 +719,16 @@ public Builder clearScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for scope to set. * @return This builder for chaining. */ - public Builder setScopeBytes(com.google.protobuf.ByteString value) { + public Builder setScopeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scope_ = value; onChanged(); return this; @@ -825,8 +736,6 @@ public Builder setScopeBytes(com.google.protobuf.ByteString value) { private java.lang.Object query_ = ""; /** - * - * *
          * Optional. The query statement.
          * Examples:
    @@ -835,13 +744,13 @@ public Builder setScopeBytes(com.google.protobuf.ByteString value) {
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; @@ -850,8 +759,6 @@ public java.lang.String getQuery() { } } /** - * - * *
          * Optional. The query statement.
          * Examples:
    @@ -860,14 +767,15 @@ public java.lang.String getQuery() {
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for query. */ - public com.google.protobuf.ByteString getQueryBytes() { + public com.google.protobuf.ByteString + getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); query_ = b; return b; } else { @@ -875,8 +783,6 @@ public com.google.protobuf.ByteString getQueryBytes() { } } /** - * - * *
          * Optional. The query statement.
          * Examples:
    @@ -885,22 +791,20 @@ public com.google.protobuf.ByteString getQueryBytes() {
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The query to set. * @return This builder for chaining. */ - public Builder setQuery(java.lang.String value) { + public Builder setQuery( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + query_ = value; onChanged(); return this; } /** - * - * *
          * Optional. The query statement.
          * Examples:
    @@ -909,18 +813,15 @@ public Builder setQuery(java.lang.String value) {
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearQuery() { - + query_ = getDefaultInstance().getQuery(); onChanged(); return this; } /** - * - * *
          * Optional. The query statement.
          * Examples:
    @@ -929,25 +830,23 @@ public Builder clearQuery() {
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for query to set. * @return This builder for chaining. */ - public Builder setQueryBytes(com.google.protobuf.ByteString value) { + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
          * Optional. The page size for search result pagination. Page size is capped at 500 even
          * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -956,7 +855,6 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) {
          * 
    * * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -964,8 +862,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
          * Optional. The page size for search result pagination. Page size is capped at 500 even
          * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -974,19 +870,16 @@ public int getPageSize() {
          * 
    * * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
          * Optional. The page size for search result pagination. Page size is capped at 500 even
          * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -995,11 +888,10 @@ public Builder setPageSize(int value) {
          * 
    * * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1007,8 +899,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
          * Optional. If present, retrieve the next batch of results from the preceding call to
          * this method. `page_token` must be the value of `next_page_token` from the
    @@ -1017,13 +907,13 @@ public Builder clearPageSize() {
          * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1032,8 +922,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
          * Optional. If present, retrieve the next batch of results from the preceding call to
          * this method. `page_token` must be the value of `next_page_token` from the
    @@ -1042,14 +930,15 @@ public java.lang.String getPageToken() {
          * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1057,8 +946,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
          * Optional. If present, retrieve the next batch of results from the preceding call to
          * this method. `page_token` must be the value of `next_page_token` from the
    @@ -1067,22 +954,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
          * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
          * Optional. If present, retrieve the next batch of results from the preceding call to
          * this method. `page_token` must be the value of `next_page_token` from the
    @@ -1091,18 +976,15 @@ public Builder setPageToken(java.lang.String value) {
          * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
          * Optional. If present, retrieve the next batch of results from the preceding call to
          * this method. `page_token` must be the value of `next_page_token` from the
    @@ -1111,23 +993,23 @@ public Builder clearPageToken() {
          * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1137,13 +1019,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest) - private static final com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest(); } @@ -1152,16 +1033,27 @@ public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchAllIamPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchAllIamPoliciesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAllIamPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1176,4 +1068,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequestOrBuilder.java b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequestOrBuilder.java similarity index 78% rename from java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequestOrBuilder.java rename to owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequestOrBuilder.java index 91f2d39a590b..afcbed816785 100644 --- a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequestOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p1beta1/asset_service.proto package com.google.cloud.asset.v1p1beta1; -public interface SearchAllIamPoliciesRequestOrBuilder - extends +public interface SearchAllIamPoliciesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The relative name of an asset. The search is limited to the resources
        * within the `scope`. The allowed value must be:
    @@ -36,13 +18,10 @@ public interface SearchAllIamPoliciesRequestOrBuilder
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The scope. */ java.lang.String getScope(); /** - * - * *
        * Required. The relative name of an asset. The search is limited to the resources
        * within the `scope`. The allowed value must be:
    @@ -53,14 +32,12 @@ public interface SearchAllIamPoliciesRequestOrBuilder
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for scope. */ - com.google.protobuf.ByteString getScopeBytes(); + com.google.protobuf.ByteString + getScopeBytes(); /** - * - * *
        * Optional. The query statement.
        * Examples:
    @@ -69,13 +46,10 @@ public interface SearchAllIamPoliciesRequestOrBuilder
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The query. */ java.lang.String getQuery(); /** - * - * *
        * Optional. The query statement.
        * Examples:
    @@ -84,14 +58,12 @@ public interface SearchAllIamPoliciesRequestOrBuilder
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for query. */ - com.google.protobuf.ByteString getQueryBytes(); + com.google.protobuf.ByteString + getQueryBytes(); /** - * - * *
        * Optional. The page size for search result pagination. Page size is capped at 500 even
        * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -100,14 +72,11 @@ public interface SearchAllIamPoliciesRequestOrBuilder
        * 
    * * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
        * Optional. If present, retrieve the next batch of results from the preceding call to
        * this method. `page_token` must be the value of `next_page_token` from the
    @@ -116,13 +85,10 @@ public interface SearchAllIamPoliciesRequestOrBuilder
        * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
        * Optional. If present, retrieve the next batch of results from the preceding call to
        * this method. `page_token` must be the value of `next_page_token` from the
    @@ -131,8 +97,8 @@ public interface SearchAllIamPoliciesRequestOrBuilder
        * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponse.java b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponse.java similarity index 71% rename from java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponse.java rename to owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponse.java index 7893f7cc7dae..4113067c3e16 100644 --- a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponse.java +++ b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p1beta1/asset_service.proto package com.google.cloud.asset.v1p1beta1; /** - * - * *
      * Search all IAM policies response.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse} */ -public final class SearchAllIamPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SearchAllIamPoliciesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse) SearchAllIamPoliciesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SearchAllIamPoliciesResponse.newBuilder() to construct. private SearchAllIamPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SearchAllIamPoliciesResponse() { results_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,99 +26,32 @@ private SearchAllIamPoliciesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SearchAllIamPoliciesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private SearchAllIamPoliciesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - results_ = - new java.util.ArrayList< - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult>(); - mutable_bitField0_ |= 0x00000001; - } - results_.add( - input.readMessage( - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - results_ = java.util.Collections.unmodifiableList(results_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.class, - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.Builder.class); + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.class, com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.Builder.class); } public static final int RESULTS_FIELD_NUMBER = 1; private java.util.List results_; /** - * - * *
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -149,8 +64,6 @@ public java.util.List ge
         return results_;
       }
       /**
    -   *
    -   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -159,13 +72,11 @@ public java.util.List ge
        * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
        */
       @java.lang.Override
    -  public java.util.List
    +  public java.util.List 
           getResultsOrBuilderList() {
         return results_;
       }
       /**
    -   *
    -   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -178,8 +89,6 @@ public int getResultsCount() {
         return results_.size();
       }
       /**
    -   *
    -   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -192,8 +101,6 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult getResults(int ind
         return results_.get(index);
       }
       /**
    -   *
    -   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -210,8 +117,6 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder getResult
       public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
       private volatile java.lang.Object nextPageToken_;
       /**
    -   *
    -   *
        * 
        * Set if there are more results than those appearing in this response; to get
        * the next set of results, call this method again, using this value as the
    @@ -219,7 +124,6 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder getResult
        * 
    * * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -228,15 +132,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
        * Set if there are more results than those appearing in this response; to get
        * the next set of results, call this method again, using this value as the
    @@ -244,15 +147,16 @@ public java.lang.String getNextPageToken() {
        * 
    * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -261,7 +165,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,14 +176,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeMessage(1, results_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -290,12 +194,13 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, results_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, results_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -303,17 +208,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse other = - (com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse) obj; + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse other = (com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse) obj; - if (!getResultsList().equals(other.getResultsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getResultsList() + .equals(other.getResultsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -330,174 +236,158 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse 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.asset.v1p1beta1.SearchAllIamPoliciesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Search all IAM policies response.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse) com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.class, - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.Builder.class); + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.class, com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.Builder.class); } // Construct using com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getResultsFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + results_ = null; resultsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse - getDefaultInstanceForType() { + public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse getDefaultInstanceForType() { return com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.getDefaultInstance(); } @@ -512,8 +402,7 @@ public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse build() { @java.lang.Override public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse buildPartial() { - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse result = - new com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse(this); + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse result = new com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse(this); int from_bitField0_ = bitField0_; if (resultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -533,39 +422,38 @@ public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p1beta1.SearchAllIamPoliciesResponse) { - return mergeFrom((com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse) other); + return mergeFrom((com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse)other); } else { super.mergeFrom(other); return this; @@ -573,9 +461,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse other) { - if (other - == com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.getDefaultInstance()) return this; if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { @@ -594,10 +480,9 @@ public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRe resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); - resultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResultsFieldBuilder() - : null; + resultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResultsFieldBuilder() : null; } else { resultsBuilder_.addAllMessages(other.results_); } @@ -607,7 +492,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRe nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -622,45 +507,65 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult m = + input.readMessage( + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.parser(), + extensionRegistry); + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(m); + } else { + resultsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.util.List results_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - results_ = - new java.util.ArrayList( - results_); + results_ = new java.util.ArrayList(results_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult, - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder, - com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder> - resultsBuilder_; + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder, com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder> resultsBuilder_; /** - * - * *
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -676,8 +581,6 @@ public java.util.List ge
           }
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -693,8 +596,6 @@ public int getResultsCount() {
           }
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -710,8 +611,6 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult getResults(int ind
           }
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -734,8 +633,6 @@ public Builder setResults(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -755,8 +652,6 @@ public Builder setResults(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -778,8 +673,6 @@ public Builder addResults(com.google.cloud.asset.v1p1beta1.IamPolicySearchResult
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -802,8 +695,6 @@ public Builder addResults(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -823,8 +714,6 @@ public Builder addResults(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -844,8 +733,6 @@ public Builder addResults(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -854,11 +741,11 @@ public Builder addResults(
          * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
          */
         public Builder addAllResults(
    -        java.lang.Iterable
    -            values) {
    +        java.lang.Iterable values) {
           if (resultsBuilder_ == null) {
             ensureResultsIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    +            values, results_);
             onChanged();
           } else {
             resultsBuilder_.addAllMessages(values);
    @@ -866,8 +753,6 @@ public Builder addAllResults(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -886,8 +771,6 @@ public Builder clearResults() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -906,8 +789,6 @@ public Builder removeResults(int index) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -920,8 +801,6 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder getResults
           return getResultsFieldBuilder().getBuilder(index);
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -932,14 +811,11 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder getResults
         public com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder getResultsOrBuilder(
             int index) {
           if (resultsBuilder_ == null) {
    -        return results_.get(index);
    -      } else {
    +        return results_.get(index);  } else {
             return resultsBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -947,8 +823,8 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder getResult
          *
          * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
          */
    -    public java.util.List
    -        getResultsOrBuilderList() {
    +    public java.util.List 
    +         getResultsOrBuilderList() {
           if (resultsBuilder_ != null) {
             return resultsBuilder_.getMessageOrBuilderList();
           } else {
    @@ -956,8 +832,6 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder getResult
           }
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -966,12 +840,10 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder getResult
          * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
          */
         public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder addResultsBuilder() {
    -      return getResultsFieldBuilder()
    -          .addBuilder(com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.getDefaultInstance());
    +      return getResultsFieldBuilder().addBuilder(
    +          com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -981,13 +853,10 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder addResults
          */
         public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder addResultsBuilder(
             int index) {
    -      return getResultsFieldBuilder()
    -          .addBuilder(
    -              index, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.getDefaultInstance());
    +      return getResultsFieldBuilder().addBuilder(
    +          index, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -995,23 +864,20 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder addResults
          *
          * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
          */
    -    public java.util.List
    -        getResultsBuilderList() {
    +    public java.util.List 
    +         getResultsBuilderList() {
           return getResultsFieldBuilder().getBuilderList();
         }
    -
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.asset.v1p1beta1.IamPolicySearchResult,
    -            com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder,
    -            com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder>
    +        com.google.cloud.asset.v1p1beta1.IamPolicySearchResult, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder, com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder> 
             getResultsFieldBuilder() {
           if (resultsBuilder_ == null) {
    -        resultsBuilder_ =
    -            new com.google.protobuf.RepeatedFieldBuilderV3<
    -                com.google.cloud.asset.v1p1beta1.IamPolicySearchResult,
    -                com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder,
    -                com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder>(
    -                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
    +        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    +            com.google.cloud.asset.v1p1beta1.IamPolicySearchResult, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder, com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder>(
    +                results_,
    +                ((bitField0_ & 0x00000001) != 0),
    +                getParentForChildren(),
    +                isClean());
             results_ = null;
           }
           return resultsBuilder_;
    @@ -1019,8 +885,6 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder addResults
     
         private java.lang.Object nextPageToken_ = "";
         /**
    -     *
    -     *
          * 
          * Set if there are more results than those appearing in this response; to get
          * the next set of results, call this method again, using this value as the
    @@ -1028,13 +892,13 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder addResults
          * 
    * * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1043,8 +907,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
          * Set if there are more results than those appearing in this response; to get
          * the next set of results, call this method again, using this value as the
    @@ -1052,14 +914,15 @@ public java.lang.String getNextPageToken() {
          * 
    * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1067,8 +930,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
          * Set if there are more results than those appearing in this response; to get
          * the next set of results, call this method again, using this value as the
    @@ -1076,22 +937,20 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
          * Set if there are more results than those appearing in this response; to get
          * the next set of results, call this method again, using this value as the
    @@ -1099,18 +958,15 @@ public Builder setNextPageToken(java.lang.String value) {
          * 
    * * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
          * Set if there are more results than those appearing in this response; to get
          * the next set of results, call this method again, using this value as the
    @@ -1118,23 +974,23 @@ 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1144,13 +1000,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse) - private static final com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse(); } @@ -1159,16 +1014,27 @@ public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchAllIamPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchAllIamPoliciesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAllIamPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1183,4 +1049,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponseOrBuilder.java b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponseOrBuilder.java similarity index 75% rename from java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponseOrBuilder.java rename to owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponseOrBuilder.java index 6407224fcb24..eb39db5c90dd 100644 --- a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponseOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p1beta1/asset_service.proto package com.google.cloud.asset.v1p1beta1; -public interface SearchAllIamPoliciesResponseOrBuilder - extends +public interface SearchAllIamPoliciesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -33,10 +15,9 @@ public interface SearchAllIamPoliciesResponseOrBuilder
        *
        * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
        */
    -  java.util.List getResultsList();
    +  java.util.List 
    +      getResultsList();
       /**
    -   *
    -   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -46,8 +27,6 @@ public interface SearchAllIamPoliciesResponseOrBuilder
        */
       com.google.cloud.asset.v1p1beta1.IamPolicySearchResult getResults(int index);
       /**
    -   *
    -   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -57,8 +36,6 @@ public interface SearchAllIamPoliciesResponseOrBuilder
        */
       int getResultsCount();
       /**
    -   *
    -   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -66,11 +43,9 @@ public interface SearchAllIamPoliciesResponseOrBuilder
        *
        * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
        */
    -  java.util.List
    +  java.util.List 
           getResultsOrBuilderList();
       /**
    -   *
    -   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -78,11 +53,10 @@ public interface SearchAllIamPoliciesResponseOrBuilder
        *
        * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
        */
    -  com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder getResultsOrBuilder(int index);
    +  com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder getResultsOrBuilder(
    +      int index);
     
       /**
    -   *
    -   *
        * 
        * Set if there are more results than those appearing in this response; to get
        * the next set of results, call this method again, using this value as the
    @@ -90,13 +64,10 @@ public interface SearchAllIamPoliciesResponseOrBuilder
        * 
    * * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
        * Set if there are more results than those appearing in this response; to get
        * the next set of results, call this method again, using this value as the
    @@ -104,8 +75,8 @@ public interface SearchAllIamPoliciesResponseOrBuilder
        * 
    * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequest.java b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequest.java similarity index 74% rename from java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequest.java rename to owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequest.java index c872d832f313..91f6ae71b834 100644 --- a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequest.java +++ b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p1beta1/asset_service.proto package com.google.cloud.asset.v1p1beta1; /** - * - * *
      * Search all resources request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.SearchAllResourcesRequest} */ -public final class SearchAllResourcesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SearchAllResourcesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p1beta1.SearchAllResourcesRequest) SearchAllResourcesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SearchAllResourcesRequest.newBuilder() to construct. private SearchAllResourcesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SearchAllResourcesRequest() { scope_ = ""; query_ = ""; @@ -47,121 +29,32 @@ private SearchAllResourcesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SearchAllResourcesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private SearchAllResourcesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - scope_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - query_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - assetTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - assetTypes_.add(s); - break; - } - case 32: - { - pageSize_ = input.readInt32(); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - assetTypes_ = assetTypes_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.class, - com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.Builder.class); + com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.class, com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.Builder.class); } public static final int SCOPE_FIELD_NUMBER = 1; private volatile java.lang.Object scope_; /** - * - * *
        * Required. The relative name of an asset. The search is limited to the resources
        * within the `scope`. The allowed value must be:
    @@ -172,7 +65,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The scope. */ @java.lang.Override @@ -181,15 +73,14 @@ public java.lang.String getScope() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; } } /** - * - * *
        * Required. The relative name of an asset. The search is limited to the resources
        * within the `scope`. The allowed value must be:
    @@ -200,15 +91,16 @@ public java.lang.String getScope() {
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for scope. */ @java.lang.Override - public com.google.protobuf.ByteString getScopeBytes() { + public com.google.protobuf.ByteString + getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); scope_ = b; return b; } else { @@ -219,14 +111,11 @@ public com.google.protobuf.ByteString getScopeBytes() { public static final int QUERY_FIELD_NUMBER = 2; private volatile java.lang.Object query_; /** - * - * *
        * Optional. The query statement.
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The query. */ @java.lang.Override @@ -235,29 +124,29 @@ public java.lang.String getQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } } /** - * - * *
        * Optional. The query statement.
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for query. */ @java.lang.Override - public com.google.protobuf.ByteString getQueryBytes() { + public com.google.protobuf.ByteString + getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); query_ = b; return b; } else { @@ -268,45 +157,37 @@ public com.google.protobuf.ByteString getQueryBytes() { public static final int ASSET_TYPES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList assetTypes_; /** - * - * *
        * Optional. A list of asset types that this request searches for. If empty, it will
        * search all the supported asset types.
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList getAssetTypesList() { + public com.google.protobuf.ProtocolStringList + getAssetTypesList() { return assetTypes_; } /** - * - * *
        * Optional. A list of asset types that this request searches for. If empty, it will
        * search all the supported asset types.
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** - * - * *
        * Optional. A list of asset types that this request searches for. If empty, it will
        * search all the supported asset types.
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -314,27 +195,23 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** - * - * *
        * Optional. A list of asset types that this request searches for. If empty, it will
        * search all the supported asset types.
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString + getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** - * - * *
        * Optional. The page size for search result pagination. Page size is capped at 500 even
        * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -343,7 +220,6 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) {
        * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -354,8 +230,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 5; private volatile java.lang.Object pageToken_; /** - * - * *
        * Optional. If present, then retrieve the next batch of results from the preceding call
        * to this method.  `page_token` must be the value of `next_page_token` from
    @@ -364,7 +238,6 @@ public int getPageSize() {
        * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -373,15 +246,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
        * Optional. If present, then retrieve the next batch of results from the preceding call
        * to this method.  `page_token` must be the value of `next_page_token` from
    @@ -390,15 +262,16 @@ public java.lang.String getPageToken() {
        * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -409,8 +282,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int ORDER_BY_FIELD_NUMBER = 10; private volatile java.lang.Object orderBy_; /** - * - * *
        * Optional. A comma separated list of fields specifying the sorting order of the
        * results. The default order is ascending. Add " desc" after the field name
    @@ -419,7 +290,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
        * 
    * * string order_by = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -428,15 +298,14 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
        * Optional. A comma separated list of fields specifying the sorting order of the
        * results. The default order is ascending. Add " desc" after the field name
    @@ -445,15 +314,16 @@ public java.lang.String getOrderBy() {
        * 
    * * string order_by = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -462,7 +332,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -474,7 +343,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scope_); } @@ -493,7 +363,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, orderBy_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -517,7 +387,8 @@ public int getSerializedSize() { size += 1 * getAssetTypesList().size(); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); @@ -525,7 +396,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, orderBy_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -533,21 +404,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest other = - (com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest) obj; - - if (!getScope().equals(other.getScope())) return false; - if (!getQuery().equals(other.getQuery())) return false; - if (!getAssetTypesList().equals(other.getAssetTypesList())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest other = (com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest) obj; + + if (!getScope() + .equals(other.getScope())) return false; + if (!getQuery() + .equals(other.getQuery())) return false; + if (!getAssetTypesList() + .equals(other.getAssetTypesList())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -572,149 +448,135 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; hash = (53 * hash) + getOrderBy().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest 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.asset.v1p1beta1.SearchAllResourcesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Search all resources request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.SearchAllResourcesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p1beta1.SearchAllResourcesRequest) com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.class, - com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.Builder.class); + com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.class, com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.Builder.class); } // Construct using com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -734,9 +596,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_descriptor; } @java.lang.Override @@ -755,8 +617,7 @@ public com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest build() { @java.lang.Override public com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest buildPartial() { - com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest result = - new com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest(this); + com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest result = new com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest(this); int from_bitField0_ = bitField0_; result.scope_ = scope_; result.query_ = query_; @@ -776,39 +637,38 @@ public com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p1beta1.SearchAllResourcesRequest) { - return mergeFrom((com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest) other); + return mergeFrom((com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest)other); } else { super.mergeFrom(other); return this; @@ -816,8 +676,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest other) { - if (other == com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.getDefaultInstance()) return this; if (!other.getScope().isEmpty()) { scope_ = other.scope_; onChanged(); @@ -847,7 +706,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequ orderBy_ = other.orderBy_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -862,27 +721,67 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + scope_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + query_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAssetTypesIsMutable(); + assetTypes_.add(s); + break; + } // case 26 + case 32: { + pageSize_ = input.readInt32(); + + break; + } // case 32 + case 42: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 82: { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.lang.Object scope_ = ""; /** - * - * *
          * Required. The relative name of an asset. The search is limited to the resources
          * within the `scope`. The allowed value must be:
    @@ -893,13 +792,13 @@ public Builder mergeFrom(
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The scope. */ public java.lang.String getScope() { java.lang.Object ref = scope_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; @@ -908,8 +807,6 @@ public java.lang.String getScope() { } } /** - * - * *
          * Required. The relative name of an asset. The search is limited to the resources
          * within the `scope`. The allowed value must be:
    @@ -920,14 +817,15 @@ public java.lang.String getScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for scope. */ - public com.google.protobuf.ByteString getScopeBytes() { + public com.google.protobuf.ByteString + getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); scope_ = b; return b; } else { @@ -935,8 +833,6 @@ public com.google.protobuf.ByteString getScopeBytes() { } } /** - * - * *
          * Required. The relative name of an asset. The search is limited to the resources
          * within the `scope`. The allowed value must be:
    @@ -947,22 +843,20 @@ public com.google.protobuf.ByteString getScopeBytes() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The scope to set. * @return This builder for chaining. */ - public Builder setScope(java.lang.String value) { + public Builder setScope( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + scope_ = value; onChanged(); return this; } /** - * - * *
          * Required. The relative name of an asset. The search is limited to the resources
          * within the `scope`. The allowed value must be:
    @@ -973,18 +867,15 @@ public Builder setScope(java.lang.String value) {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearScope() { - + scope_ = getDefaultInstance().getScope(); onChanged(); return this; } /** - * - * *
          * Required. The relative name of an asset. The search is limited to the resources
          * within the `scope`. The allowed value must be:
    @@ -995,16 +886,16 @@ public Builder clearScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for scope to set. * @return This builder for chaining. */ - public Builder setScopeBytes(com.google.protobuf.ByteString value) { + public Builder setScopeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scope_ = value; onChanged(); return this; @@ -1012,20 +903,18 @@ public Builder setScopeBytes(com.google.protobuf.ByteString value) { private java.lang.Object query_ = ""; /** - * - * *
          * Optional. The query statement.
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; @@ -1034,21 +923,20 @@ public java.lang.String getQuery() { } } /** - * - * *
          * Optional. The query statement.
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for query. */ - public com.google.protobuf.ByteString getQueryBytes() { + public com.google.protobuf.ByteString + getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); query_ = b; return b; } else { @@ -1056,115 +944,98 @@ public com.google.protobuf.ByteString getQueryBytes() { } } /** - * - * *
          * Optional. The query statement.
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The query to set. * @return This builder for chaining. */ - public Builder setQuery(java.lang.String value) { + public Builder setQuery( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + query_ = value; onChanged(); return this; } /** - * - * *
          * Optional. The query statement.
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearQuery() { - + query_ = getDefaultInstance().getQuery(); onChanged(); return this; } /** - * - * *
          * Optional. The query statement.
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for query to set. * @return This builder for chaining. */ - public Builder setQueryBytes(com.google.protobuf.ByteString value) { + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList assetTypes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAssetTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assetTypes_ = new com.google.protobuf.LazyStringArrayList(assetTypes_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the supported asset types.
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList getAssetTypesList() { + public com.google.protobuf.ProtocolStringList + getAssetTypesList() { return assetTypes_.getUnmodifiableView(); } /** - * - * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the supported asset types.
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** - * - * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the supported asset types.
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -1172,95 +1043,85 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** - * - * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the supported asset types.
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString + getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } /** - * - * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the supported asset types.
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The assetTypes to set. * @return This builder for chaining. */ - public Builder setAssetTypes(int index, java.lang.String value) { + public Builder setAssetTypes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.set(index, value); onChanged(); return this; } /** - * - * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the supported asset types.
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypes(java.lang.String value) { + public Builder addAssetTypes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); return this; } /** - * - * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the supported asset types.
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The assetTypes to add. * @return This builder for chaining. */ - public Builder addAllAssetTypes(java.lang.Iterable values) { + public Builder addAllAssetTypes( + java.lang.Iterable values) { ensureAssetTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, assetTypes_); onChanged(); return this; } /** - * - * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the supported asset types.
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1270,33 +1131,29 @@ public Builder clearAssetTypes() { return this; } /** - * - * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the supported asset types.
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { + public Builder addAssetTypesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
          * Optional. The page size for search result pagination. Page size is capped at 500 even
          * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -1305,7 +1162,6 @@ public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) {
          * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -1313,8 +1169,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
          * Optional. The page size for search result pagination. Page size is capped at 500 even
          * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -1323,19 +1177,16 @@ public int getPageSize() {
          * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
          * Optional. The page size for search result pagination. Page size is capped at 500 even
          * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -1344,11 +1195,10 @@ public Builder setPageSize(int value) {
          * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1356,8 +1206,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
          * Optional. If present, then retrieve the next batch of results from the preceding call
          * to this method.  `page_token` must be the value of `next_page_token` from
    @@ -1366,13 +1214,13 @@ public Builder clearPageSize() {
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1381,8 +1229,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
          * Optional. If present, then retrieve the next batch of results from the preceding call
          * to this method.  `page_token` must be the value of `next_page_token` from
    @@ -1391,14 +1237,15 @@ public java.lang.String getPageToken() {
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1406,8 +1253,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
          * Optional. If present, then retrieve the next batch of results from the preceding call
          * to this method.  `page_token` must be the value of `next_page_token` from
    @@ -1416,22 +1261,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
          * Optional. If present, then retrieve the next batch of results from the preceding call
          * to this method.  `page_token` must be the value of `next_page_token` from
    @@ -1440,18 +1283,15 @@ public Builder setPageToken(java.lang.String value) {
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
          * Optional. If present, then retrieve the next batch of results from the preceding call
          * to this method.  `page_token` must be the value of `next_page_token` from
    @@ -1460,16 +1300,16 @@ public Builder clearPageToken() {
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1477,8 +1317,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
          * Optional. A comma separated list of fields specifying the sorting order of the
          * results. The default order is ascending. Add " desc" after the field name
    @@ -1487,13 +1325,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
          * 
    * * string order_by = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1502,8 +1340,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
          * Optional. A comma separated list of fields specifying the sorting order of the
          * results. The default order is ascending. Add " desc" after the field name
    @@ -1512,14 +1348,15 @@ public java.lang.String getOrderBy() {
          * 
    * * string order_by = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1527,8 +1364,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
          * Optional. A comma separated list of fields specifying the sorting order of the
          * results. The default order is ascending. Add " desc" after the field name
    @@ -1537,22 +1372,20 @@ public com.google.protobuf.ByteString getOrderByBytes() {
          * 
    * * string order_by = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
          * Optional. A comma separated list of fields specifying the sorting order of the
          * results. The default order is ascending. Add " desc" after the field name
    @@ -1561,18 +1394,15 @@ public Builder setOrderBy(java.lang.String value) {
          * 
    * * string order_by = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
          * Optional. A comma separated list of fields specifying the sorting order of the
          * results. The default order is ascending. Add " desc" after the field name
    @@ -1581,23 +1411,23 @@ public Builder clearOrderBy() {
          * 
    * * string order_by = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1607,12 +1437,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p1beta1.SearchAllResourcesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p1beta1.SearchAllResourcesRequest) private static final com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest(); } @@ -1621,16 +1451,27 @@ public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchAllResourcesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchAllResourcesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAllResourcesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1645,4 +1486,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequestOrBuilder.java b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequestOrBuilder.java similarity index 82% rename from java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequestOrBuilder.java rename to owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequestOrBuilder.java index 9b27969f4428..ac30746283bf 100644 --- a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequestOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p1beta1/asset_service.proto package com.google.cloud.asset.v1p1beta1; -public interface SearchAllResourcesRequestOrBuilder - extends +public interface SearchAllResourcesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p1beta1.SearchAllResourcesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The relative name of an asset. The search is limited to the resources
        * within the `scope`. The allowed value must be:
    @@ -36,13 +18,10 @@ public interface SearchAllResourcesRequestOrBuilder
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The scope. */ java.lang.String getScope(); /** - * - * *
        * Required. The relative name of an asset. The search is limited to the resources
        * within the `scope`. The allowed value must be:
    @@ -53,94 +32,77 @@ public interface SearchAllResourcesRequestOrBuilder
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for scope. */ - com.google.protobuf.ByteString getScopeBytes(); + com.google.protobuf.ByteString + getScopeBytes(); /** - * - * *
        * Optional. The query statement.
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The query. */ java.lang.String getQuery(); /** - * - * *
        * Optional. The query statement.
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for query. */ - com.google.protobuf.ByteString getQueryBytes(); + com.google.protobuf.ByteString + getQueryBytes(); /** - * - * *
        * Optional. A list of asset types that this request searches for. If empty, it will
        * search all the supported asset types.
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the assetTypes. */ - java.util.List getAssetTypesList(); + java.util.List + getAssetTypesList(); /** - * - * *
        * Optional. A list of asset types that this request searches for. If empty, it will
        * search all the supported asset types.
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of assetTypes. */ int getAssetTypesCount(); /** - * - * *
        * Optional. A list of asset types that this request searches for. If empty, it will
        * search all the supported asset types.
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ java.lang.String getAssetTypes(int index); /** - * - * *
        * Optional. A list of asset types that this request searches for. If empty, it will
        * search all the supported asset types.
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - com.google.protobuf.ByteString getAssetTypesBytes(int index); + com.google.protobuf.ByteString + getAssetTypesBytes(int index); /** - * - * *
        * Optional. The page size for search result pagination. Page size is capped at 500 even
        * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -149,14 +111,11 @@ public interface SearchAllResourcesRequestOrBuilder
        * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
        * Optional. If present, then retrieve the next batch of results from the preceding call
        * to this method.  `page_token` must be the value of `next_page_token` from
    @@ -165,13 +124,10 @@ public interface SearchAllResourcesRequestOrBuilder
        * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
        * Optional. If present, then retrieve the next batch of results from the preceding call
        * to this method.  `page_token` must be the value of `next_page_token` from
    @@ -180,14 +136,12 @@ public interface SearchAllResourcesRequestOrBuilder
        * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
        * Optional. A comma separated list of fields specifying the sorting order of the
        * results. The default order is ascending. Add " desc" after the field name
    @@ -196,13 +150,10 @@ public interface SearchAllResourcesRequestOrBuilder
        * 
    * * string order_by = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
        * Optional. A comma separated list of fields specifying the sorting order of the
        * results. The default order is ascending. Add " desc" after the field name
    @@ -211,8 +162,8 @@ public interface SearchAllResourcesRequestOrBuilder
        * 
    * * string order_by = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponse.java b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponse.java similarity index 69% rename from java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponse.java rename to owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponse.java index 4e85d55013d4..6489e863b44c 100644 --- a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponse.java +++ b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p1beta1/asset_service.proto package com.google.cloud.asset.v1p1beta1; /** - * - * *
      * Search all resources response.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.SearchAllResourcesResponse} */ -public final class SearchAllResourcesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SearchAllResourcesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p1beta1.SearchAllResourcesResponse) SearchAllResourcesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SearchAllResourcesResponse.newBuilder() to construct. private SearchAllResourcesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SearchAllResourcesResponse() { results_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,99 +26,32 @@ private SearchAllResourcesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SearchAllResourcesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private SearchAllResourcesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - results_ = - new java.util.ArrayList< - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata>(); - mutable_bitField0_ |= 0x00000001; - } - results_.add( - input.readMessage( - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - results_ = java.util.Collections.unmodifiableList(results_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.class, - com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.Builder.class); + com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.class, com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.Builder.class); } public static final int RESULTS_FIELD_NUMBER = 1; private java.util.List results_; /** - * - * *
        * A list of resource that match the search query.
        * 
    @@ -144,13 +59,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1; */ @java.lang.Override - public java.util.List - getResultsList() { + public java.util.List getResultsList() { return results_; } /** - * - * *
        * A list of resource that match the search query.
        * 
    @@ -158,14 +70,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder> + public java.util.List getResultsOrBuilderList() { return results_; } /** - * - * *
        * A list of resource that match the search query.
        * 
    @@ -177,8 +86,6 @@ public int getResultsCount() { return results_.size(); } /** - * - * *
        * A list of resource that match the search query.
        * 
    @@ -190,8 +97,6 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata getResults(int return results_.get(index); } /** - * - * *
        * A list of resource that match the search query.
        * 
    @@ -207,8 +112,6 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder getRes public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
        * If there are more results than those appearing in this response, then
        * `next_page_token` is included.  To get the next set of results, call this
    @@ -216,7 +119,6 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder getRes
        * 
    * * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -225,15 +127,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
        * If there are more results than those appearing in this response, then
        * `next_page_token` is included.  To get the next set of results, call this
    @@ -241,15 +142,16 @@ public java.lang.String getNextPageToken() {
        * 
    * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -258,7 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,14 +171,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeMessage(1, results_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -287,12 +189,13 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, results_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, results_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -300,17 +203,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse other = - (com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse) obj; + com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse other = (com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse) obj; - if (!getResultsList().equals(other.getResultsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getResultsList() + .equals(other.getResultsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -327,169 +231,154 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse 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.asset.v1p1beta1.SearchAllResourcesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Search all resources response.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.SearchAllResourcesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p1beta1.SearchAllResourcesResponse) com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.class, - com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.Builder.class); + com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.class, com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.Builder.class); } // Construct using com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getResultsFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + results_ = null; resultsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor; } @java.lang.Override @@ -508,8 +397,7 @@ public com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse build() { @java.lang.Override public com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse buildPartial() { - com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse result = - new com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse(this); + com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse result = new com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse(this); int from_bitField0_ = bitField0_; if (resultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -529,39 +417,38 @@ public com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p1beta1.SearchAllResourcesResponse) { - return mergeFrom((com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse) other); + return mergeFrom((com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse)other); } else { super.mergeFrom(other); return this; @@ -569,8 +456,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse other) { - if (other == com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.getDefaultInstance()) return this; if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { @@ -589,10 +475,9 @@ public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.SearchAllResourcesResp resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); - resultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResultsFieldBuilder() - : null; + resultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResultsFieldBuilder() : null; } else { resultsBuilder_.addAllMessages(other.results_); } @@ -602,7 +487,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.SearchAllResourcesResp nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -617,52 +502,72 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata m = + input.readMessage( + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.parser(), + extensionRegistry); + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(m); + } else { + resultsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.util.List results_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - results_ = - new java.util.ArrayList( - results_); + results_ = new java.util.ArrayList(results_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata, - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder, - com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder> - resultsBuilder_; + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata, com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder, com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder> resultsBuilder_; /** - * - * *
          * A list of resource that match the search query.
          * 
    * * repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1; */ - public java.util.List - getResultsList() { + public java.util.List getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { @@ -670,8 +575,6 @@ private void ensureResultsIsMutable() { } } /** - * - * *
          * A list of resource that match the search query.
          * 
    @@ -686,8 +589,6 @@ public int getResultsCount() { } } /** - * - * *
          * A list of resource that match the search query.
          * 
    @@ -702,8 +603,6 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata getResults(int } } /** - * - * *
          * A list of resource that match the search query.
          * 
    @@ -725,8 +624,6 @@ public Builder setResults( return this; } /** - * - * *
          * A list of resource that match the search query.
          * 
    @@ -734,8 +631,7 @@ public Builder setResults( * repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1; */ public Builder setResults( - int index, - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder builderForValue) { + int index, com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); @@ -746,8 +642,6 @@ public Builder setResults( return this; } /** - * - * *
          * A list of resource that match the search query.
          * 
    @@ -768,8 +662,6 @@ public Builder addResults(com.google.cloud.asset.v1p1beta1.StandardResourceMetad return this; } /** - * - * *
          * A list of resource that match the search query.
          * 
    @@ -791,8 +683,6 @@ public Builder addResults( return this; } /** - * - * *
          * A list of resource that match the search query.
          * 
    @@ -811,8 +701,6 @@ public Builder addResults( return this; } /** - * - * *
          * A list of resource that match the search query.
          * 
    @@ -820,8 +708,7 @@ public Builder addResults( * repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1; */ public Builder addResults( - int index, - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder builderForValue) { + int index, com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); @@ -832,8 +719,6 @@ public Builder addResults( return this; } /** - * - * *
          * A list of resource that match the search query.
          * 
    @@ -841,11 +726,11 @@ public Builder addResults( * repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1; */ public Builder addAllResults( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, results_); onChanged(); } else { resultsBuilder_.addAllMessages(values); @@ -853,8 +738,6 @@ public Builder addAllResults( return this; } /** - * - * *
          * A list of resource that match the search query.
          * 
    @@ -872,8 +755,6 @@ public Builder clearResults() { return this; } /** - * - * *
          * A list of resource that match the search query.
          * 
    @@ -891,8 +772,6 @@ public Builder removeResults(int index) { return this; } /** - * - * *
          * A list of resource that match the search query.
          * 
    @@ -904,8 +783,6 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder getResu return getResultsFieldBuilder().getBuilder(index); } /** - * - * *
          * A list of resource that match the search query.
          * 
    @@ -915,23 +792,19 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder getResu public com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder getResultsOrBuilder( int index) { if (resultsBuilder_ == null) { - return results_.get(index); - } else { + return results_.get(index); } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
          * A list of resource that match the search query.
          * 
    * * repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1; */ - public java.util.List< - ? extends com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder> - getResultsOrBuilderList() { + public java.util.List + getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { @@ -939,8 +812,6 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder getRes } } /** - * - * *
          * A list of resource that match the search query.
          * 
    @@ -948,13 +819,10 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder getRes * repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1; */ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder addResultsBuilder() { - return getResultsFieldBuilder() - .addBuilder( - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.getDefaultInstance()); + return getResultsFieldBuilder().addBuilder( + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.getDefaultInstance()); } /** - * - * *
          * A list of resource that match the search query.
          * 
    @@ -963,37 +831,30 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder addResu */ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder addResultsBuilder( int index) { - return getResultsFieldBuilder() - .addBuilder( - index, - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.getDefaultInstance()); + return getResultsFieldBuilder().addBuilder( + index, com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.getDefaultInstance()); } /** - * - * *
          * A list of resource that match the search query.
          * 
    * * repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1; */ - public java.util.List - getResultsBuilderList() { + public java.util.List + getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata, - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder, - com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder> + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata, com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder, com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { - resultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata, - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder, - com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder>( - results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata, com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder, com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder>( + results_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); results_ = null; } return resultsBuilder_; @@ -1001,8 +862,6 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder addResu private java.lang.Object nextPageToken_ = ""; /** - * - * *
          * If there are more results than those appearing in this response, then
          * `next_page_token` is included.  To get the next set of results, call this
    @@ -1010,13 +869,13 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder addResu
          * 
    * * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1025,8 +884,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
          * If there are more results than those appearing in this response, then
          * `next_page_token` is included.  To get the next set of results, call this
    @@ -1034,14 +891,15 @@ public java.lang.String getNextPageToken() {
          * 
    * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1049,8 +907,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
          * If there are more results than those appearing in this response, then
          * `next_page_token` is included.  To get the next set of results, call this
    @@ -1058,22 +914,20 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
          * If there are more results than those appearing in this response, then
          * `next_page_token` is included.  To get the next set of results, call this
    @@ -1081,18 +935,15 @@ public Builder setNextPageToken(java.lang.String value) {
          * 
    * * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
          * If there are more results than those appearing in this response, then
          * `next_page_token` is included.  To get the next set of results, call this
    @@ -1100,23 +951,23 @@ 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1126,12 +977,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p1beta1.SearchAllResourcesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p1beta1.SearchAllResourcesResponse) private static final com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse(); } @@ -1140,16 +991,27 @@ public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchAllResourcesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchAllResourcesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAllResourcesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1164,4 +1026,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponseOrBuilder.java b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponseOrBuilder.java similarity index 72% rename from java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponseOrBuilder.java rename to owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponseOrBuilder.java index 183a1d6991a6..cea3d70ab592 100644 --- a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponseOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p1beta1/asset_service.proto package com.google.cloud.asset.v1p1beta1; -public interface SearchAllResourcesResponseOrBuilder - extends +public interface SearchAllResourcesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p1beta1.SearchAllResourcesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * A list of resource that match the search query.
        * 
    * * repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1; */ - java.util.List getResultsList(); + java.util.List + getResultsList(); /** - * - * *
        * A list of resource that match the search query.
        * 
    @@ -44,8 +25,6 @@ public interface SearchAllResourcesResponseOrBuilder */ com.google.cloud.asset.v1p1beta1.StandardResourceMetadata getResults(int index); /** - * - * *
        * A list of resource that match the search query.
        * 
    @@ -54,30 +33,25 @@ public interface SearchAllResourcesResponseOrBuilder */ int getResultsCount(); /** - * - * *
        * A list of resource that match the search query.
        * 
    * * repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1; */ - java.util.List + java.util.List getResultsOrBuilderList(); /** - * - * *
        * A list of resource that match the search query.
        * 
    * * repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1; */ - com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder getResultsOrBuilder(int index); + com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder getResultsOrBuilder( + int index); /** - * - * *
        * If there are more results than those appearing in this response, then
        * `next_page_token` is included.  To get the next set of results, call this
    @@ -85,13 +59,10 @@ public interface SearchAllResourcesResponseOrBuilder
        * 
    * * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
        * If there are more results than those appearing in this response, then
        * `next_page_token` is included.  To get the next set of results, call this
    @@ -99,8 +70,8 @@ public interface SearchAllResourcesResponseOrBuilder
        * 
    * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadata.java b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadata.java similarity index 71% rename from java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadata.java rename to owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadata.java index 670f1807775d..f17a5fc6ee4f 100644 --- a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadata.java +++ b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p1beta1/assets.proto package com.google.cloud.asset.v1p1beta1; /** - * - * *
      * The standard metadata of a cloud resource.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.StandardResourceMetadata} */ -public final class StandardResourceMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StandardResourceMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p1beta1.StandardResourceMetadata) StandardResourceMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StandardResourceMetadata.newBuilder() to construct. private StandardResourceMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StandardResourceMetadata() { name_ = ""; assetType_ = ""; @@ -50,167 +32,44 @@ private StandardResourceMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StandardResourceMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private StandardResourceMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - assetType_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - additionalAttributes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - additionalAttributes_.add(s); - break; - } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - - location_ = s; - break; - } - case 98: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 106: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - networkTags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - networkTags_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - additionalAttributes_ = additionalAttributes_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - networkTags_ = networkTags_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetProto - .internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 12: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetProto - .internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.class, - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder.class); + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.class, com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
        * The full resource name. For example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -220,7 +79,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
        * 
    * * string name = 1; - * * @return The name. */ @java.lang.Override @@ -229,15 +87,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
        * The full resource name. For example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -247,15 +104,16 @@ public java.lang.String getName() {
        * 
    * * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -266,15 +124,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ASSET_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object assetType_; /** - * - * *
        * The type of this resource.
        * For example: "compute.googleapis.com/Disk".
        * 
    * * string asset_type = 2; - * * @return The assetType. */ @java.lang.Override @@ -283,30 +138,30 @@ public java.lang.String getAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; } } /** - * - * *
        * The type of this resource.
        * For example: "compute.googleapis.com/Disk".
        * 
    * * string asset_type = 2; - * * @return The bytes for assetType. */ @java.lang.Override - public com.google.protobuf.ByteString getAssetTypeBytes() { + public com.google.protobuf.ByteString + getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetType_ = b; return b; } else { @@ -317,15 +172,12 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { public static final int PROJECT_FIELD_NUMBER = 3; private volatile java.lang.Object project_; /** - * - * *
        * The project that this resource belongs to, in the form of
        * `projects/{project_number}`.
        * 
    * * string project = 3; - * * @return The project. */ @java.lang.Override @@ -334,30 +186,30 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** - * - * *
        * The project that this resource belongs to, in the form of
        * `projects/{project_number}`.
        * 
    * * string project = 3; - * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -368,14 +220,11 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 4; private volatile java.lang.Object displayName_; /** - * - * *
        * The display name of this resource.
        * 
    * * string display_name = 4; - * * @return The displayName. */ @java.lang.Override @@ -384,29 +233,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
        * The display name of this resource.
        * 
    * * string display_name = 4; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -417,15 +266,12 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 5; private volatile java.lang.Object description_; /** - * - * *
        * One or more paragraphs of text description of this resource. Maximum length
        * could be up to 1M bytes.
        * 
    * * string description = 5; - * * @return The description. */ @java.lang.Override @@ -434,30 +280,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
        * One or more paragraphs of text description of this resource. Maximum length
        * could be up to 1M bytes.
        * 
    * * string description = 5; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -468,8 +314,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int ADDITIONAL_ATTRIBUTES_FIELD_NUMBER = 10; private com.google.protobuf.LazyStringList additionalAttributes_; /** - * - * *
        * Additional searchable attributes of this resource.
        * Informational only. The exact set of attributes is subject to change.
    @@ -477,15 +321,13 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
        * 
    * * repeated string additional_attributes = 10; - * * @return A list containing the additionalAttributes. */ - public com.google.protobuf.ProtocolStringList getAdditionalAttributesList() { + public com.google.protobuf.ProtocolStringList + getAdditionalAttributesList() { return additionalAttributes_; } /** - * - * *
        * Additional searchable attributes of this resource.
        * Informational only. The exact set of attributes is subject to change.
    @@ -493,15 +335,12 @@ public com.google.protobuf.ProtocolStringList getAdditionalAttributesList() {
        * 
    * * repeated string additional_attributes = 10; - * * @return The count of additionalAttributes. */ public int getAdditionalAttributesCount() { return additionalAttributes_.size(); } /** - * - * *
        * Additional searchable attributes of this resource.
        * Informational only. The exact set of attributes is subject to change.
    @@ -509,7 +348,6 @@ public int getAdditionalAttributesCount() {
        * 
    * * repeated string additional_attributes = 10; - * * @param index The index of the element to return. * @return The additionalAttributes at the given index. */ @@ -517,8 +355,6 @@ public java.lang.String getAdditionalAttributes(int index) { return additionalAttributes_.get(index); } /** - * - * *
        * Additional searchable attributes of this resource.
        * Informational only. The exact set of attributes is subject to change.
    @@ -526,26 +362,23 @@ public java.lang.String getAdditionalAttributes(int index) {
        * 
    * * repeated string additional_attributes = 10; - * * @param index The index of the value to return. * @return The bytes of the additionalAttributes at the given index. */ - public com.google.protobuf.ByteString getAdditionalAttributesBytes(int index) { + public com.google.protobuf.ByteString + getAdditionalAttributesBytes(int index) { return additionalAttributes_.getByteString(index); } public static final int LOCATION_FIELD_NUMBER = 11; private volatile java.lang.Object location_; /** - * - * *
        * Location can be "global", regional like "us-east1", or zonal like
        * "us-west1-b".
        * 
    * * string location = 11; - * * @return The location. */ @java.lang.Override @@ -554,30 +387,30 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** - * - * *
        * Location can be "global", regional like "us-east1", or zonal like
        * "us-west1-b".
        * 
    * * string location = 11; - * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -586,23 +419,24 @@ public com.google.protobuf.ByteString getLocationBytes() { } public static final int LABELS_FIELD_NUMBER = 12; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.asset.v1p1beta1.AssetProto - .internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -611,8 +445,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -621,22 +453,22 @@ public int getLabelsCount() {
        *
        * map<string, string> labels = 12;
        */
    +
       @java.lang.Override
    -  public boolean containsLabels(java.lang.String key) {
    -    if (key == null) {
    -      throw new NullPointerException("map key");
    -    }
    +  public boolean containsLabels(
    +      java.lang.String key) {
    +    if (key == null) { throw new NullPointerException("map key"); }
         return internalGetLabels().getMap().containsKey(key);
       }
    -  /** Use {@link #getLabelsMap()} instead. */
    +  /**
    +   * Use {@link #getLabelsMap()} instead.
    +   */
       @java.lang.Override
       @java.lang.Deprecated
       public java.util.Map getLabels() {
         return getLabelsMap();
       }
       /**
    -   *
    -   *
        * 
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -646,12 +478,11 @@ public java.util.Map getLabels() {
        * map<string, string> labels = 12;
        */
       @java.lang.Override
    +
       public java.util.Map getLabelsMap() {
         return internalGetLabels().getMap();
       }
       /**
    -   *
    -   *
        * 
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -661,16 +492,16 @@ public java.util.Map getLabelsMap() {
        * map<string, string> labels = 12;
        */
       @java.lang.Override
    -  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
    -    if (key == null) {
    -      throw new NullPointerException("map key");
    -    }
    -    java.util.Map map = internalGetLabels().getMap();
    +
    +  public java.lang.String getLabelsOrDefault(
    +      java.lang.String key,
    +      java.lang.String defaultValue) {
    +    if (key == null) { throw new NullPointerException("map key"); }
    +    java.util.Map map =
    +        internalGetLabels().getMap();
         return map.containsKey(key) ? map.get(key) : defaultValue;
       }
       /**
    -   *
    -   *
        * 
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -680,11 +511,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
        * map<string, string> labels = 12;
        */
       @java.lang.Override
    -  public java.lang.String getLabelsOrThrow(java.lang.String key) {
    -    if (key == null) {
    -      throw new NullPointerException("map key");
    -    }
    -    java.util.Map map = internalGetLabels().getMap();
    +
    +  public java.lang.String getLabelsOrThrow(
    +      java.lang.String key) {
    +    if (key == null) { throw new NullPointerException("map key"); }
    +    java.util.Map map =
    +        internalGetLabels().getMap();
         if (!map.containsKey(key)) {
           throw new java.lang.IllegalArgumentException();
         }
    @@ -694,8 +526,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
       public static final int NETWORK_TAGS_FIELD_NUMBER = 13;
       private com.google.protobuf.LazyStringList networkTags_;
       /**
    -   *
    -   *
        * 
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -704,15 +534,13 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
        * 
    * * repeated string network_tags = 13; - * * @return A list containing the networkTags. */ - public com.google.protobuf.ProtocolStringList getNetworkTagsList() { + public com.google.protobuf.ProtocolStringList + getNetworkTagsList() { return networkTags_; } /** - * - * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -721,15 +549,12 @@ public com.google.protobuf.ProtocolStringList getNetworkTagsList() {
        * 
    * * repeated string network_tags = 13; - * * @return The count of networkTags. */ public int getNetworkTagsCount() { return networkTags_.size(); } /** - * - * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -738,7 +563,6 @@ public int getNetworkTagsCount() {
        * 
    * * repeated string network_tags = 13; - * * @param index The index of the element to return. * @return The networkTags at the given index. */ @@ -746,8 +570,6 @@ public java.lang.String getNetworkTags(int index) { return networkTags_.get(index); } /** - * - * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -756,16 +578,15 @@ public java.lang.String getNetworkTags(int index) {
        * 
    * * repeated string network_tags = 13; - * * @param index The index of the value to return. * @return The bytes of the networkTags at the given index. */ - public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { + public com.google.protobuf.ByteString + getNetworkTagsBytes(int index) { return networkTags_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -777,7 +598,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -794,18 +616,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } for (int i = 0; i < additionalAttributes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 10, additionalAttributes_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, additionalAttributes_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, location_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 12); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 12); for (int i = 0; i < networkTags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, networkTags_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -840,15 +665,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, location_); } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, labels__); + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, labels__); } { int dataSize = 0; @@ -858,7 +683,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getNetworkTagsList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -866,24 +691,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p1beta1.StandardResourceMetadata)) { return super.equals(obj); } - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata other = - (com.google.cloud.asset.v1p1beta1.StandardResourceMetadata) obj; - - if (!getName().equals(other.getName())) return false; - if (!getAssetType().equals(other.getAssetType())) return false; - if (!getProject().equals(other.getProject())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getAdditionalAttributesList().equals(other.getAdditionalAttributesList())) return false; - if (!getLocation().equals(other.getLocation())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getNetworkTagsList().equals(other.getNetworkTagsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata other = (com.google.cloud.asset.v1p1beta1.StandardResourceMetadata) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getAssetType() + .equals(other.getAssetType())) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getAdditionalAttributesList() + .equals(other.getAdditionalAttributesList())) return false; + if (!getLocation() + .equals(other.getLocation())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getNetworkTagsList() + .equals(other.getNetworkTagsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -918,169 +751,157 @@ public int hashCode() { hash = (37 * hash) + NETWORK_TAGS_FIELD_NUMBER; hash = (53 * hash) + getNetworkTagsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata 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.asset.v1p1beta1.StandardResourceMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1p1beta1.StandardResourceMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * The standard metadata of a cloud resource.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.StandardResourceMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p1beta1.StandardResourceMetadata) com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetProto - .internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 12: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 12: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetProto - .internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.class, - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder.class); + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.class, com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder.class); } // Construct using com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -1105,9 +926,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p1beta1.AssetProto - .internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor; } @java.lang.Override @@ -1126,8 +947,7 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata build() { @java.lang.Override public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata buildPartial() { - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata result = - new com.google.cloud.asset.v1p1beta1.StandardResourceMetadata(this); + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata result = new com.google.cloud.asset.v1p1beta1.StandardResourceMetadata(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.assetType_ = assetType_; @@ -1155,39 +975,38 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p1beta1.StandardResourceMetadata) { - return mergeFrom((com.google.cloud.asset.v1p1beta1.StandardResourceMetadata) other); + return mergeFrom((com.google.cloud.asset.v1p1beta1.StandardResourceMetadata)other); } else { super.mergeFrom(other); return this; @@ -1195,8 +1014,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.StandardResourceMetadata other) { - if (other == com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1231,7 +1049,8 @@ public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.StandardResourceMetada location_ = other.location_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (!other.networkTags_.isEmpty()) { if (networkTags_.isEmpty()) { networkTags_ = other.networkTags_; @@ -1242,7 +1061,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.StandardResourceMetada } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1257,27 +1076,86 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + assetType_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + project_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAdditionalAttributesIsMutable(); + additionalAttributes_.add(s); + break; + } // case 82 + case 90: { + location_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 98: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 98 + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + ensureNetworkTagsIsMutable(); + networkTags_.add(s); + break; + } // case 106 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1p1beta1.StandardResourceMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
          * The full resource name. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -1287,13 +1165,13 @@ public Builder mergeFrom(
          * 
    * * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1302,8 +1180,6 @@ public java.lang.String getName() { } } /** - * - * *
          * The full resource name. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -1313,14 +1189,15 @@ public java.lang.String getName() {
          * 
    * * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1328,8 +1205,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
          * The full resource name. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -1339,22 +1214,20 @@ public com.google.protobuf.ByteString getNameBytes() {
          * 
    * * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
          * The full resource name. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -1364,18 +1237,15 @@ public Builder setName(java.lang.String value) {
          * 
    * * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
          * The full resource name. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -1385,16 +1255,16 @@ public Builder clearName() {
          * 
    * * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1402,21 +1272,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object assetType_ = ""; /** - * - * *
          * The type of this resource.
          * For example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; - * * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; @@ -1425,22 +1293,21 @@ public java.lang.String getAssetType() { } } /** - * - * *
          * The type of this resource.
          * For example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; - * * @return The bytes for assetType. */ - public com.google.protobuf.ByteString getAssetTypeBytes() { + public com.google.protobuf.ByteString + getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetType_ = b; return b; } else { @@ -1448,64 +1315,57 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { } } /** - * - * *
          * The type of this resource.
          * For example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; - * * @param value The assetType to set. * @return This builder for chaining. */ - public Builder setAssetType(java.lang.String value) { + public Builder setAssetType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + assetType_ = value; onChanged(); return this; } /** - * - * *
          * The type of this resource.
          * For example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; - * * @return This builder for chaining. */ public Builder clearAssetType() { - + assetType_ = getDefaultInstance().getAssetType(); onChanged(); return this; } /** - * - * *
          * The type of this resource.
          * For example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; - * * @param value The bytes for assetType to set. * @return This builder for chaining. */ - public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { + public Builder setAssetTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; onChanged(); return this; @@ -1513,21 +1373,19 @@ public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object project_ = ""; /** - * - * *
          * The project that this resource belongs to, in the form of
          * `projects/{project_number}`.
          * 
    * * string project = 3; - * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -1536,22 +1394,21 @@ public java.lang.String getProject() { } } /** - * - * *
          * The project that this resource belongs to, in the form of
          * `projects/{project_number}`.
          * 
    * * string project = 3; - * * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -1559,64 +1416,57 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
          * The project that this resource belongs to, in the form of
          * `projects/{project_number}`.
          * 
    * * string project = 3; - * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { + public Builder setProject( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; onChanged(); return this; } /** - * - * *
          * The project that this resource belongs to, in the form of
          * `projects/{project_number}`.
          * 
    * * string project = 3; - * * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** - * - * *
          * The project that this resource belongs to, in the form of
          * `projects/{project_number}`.
          * 
    * * string project = 3; - * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; @@ -1624,20 +1474,18 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
          * The display name of this resource.
          * 
    * * string display_name = 4; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1646,21 +1494,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
          * The display name of this resource.
          * 
    * * string display_name = 4; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1668,61 +1515,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
          * The display name of this resource.
          * 
    * * string display_name = 4; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
          * The display name of this resource.
          * 
    * * string display_name = 4; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
          * The display name of this resource.
          * 
    * * string display_name = 4; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1730,21 +1570,19 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
          * One or more paragraphs of text description of this resource. Maximum length
          * could be up to 1M bytes.
          * 
    * * string description = 5; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1753,22 +1591,21 @@ public java.lang.String getDescription() { } } /** - * - * *
          * One or more paragraphs of text description of this resource. Maximum length
          * could be up to 1M bytes.
          * 
    * * string description = 5; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1776,81 +1613,70 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
          * One or more paragraphs of text description of this resource. Maximum length
          * could be up to 1M bytes.
          * 
    * * string description = 5; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
          * One or more paragraphs of text description of this resource. Maximum length
          * could be up to 1M bytes.
          * 
    * * string description = 5; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
          * One or more paragraphs of text description of this resource. Maximum length
          * could be up to 1M bytes.
          * 
    * * string description = 5; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList additionalAttributes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList additionalAttributes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAdditionalAttributesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { additionalAttributes_ = new com.google.protobuf.LazyStringArrayList(additionalAttributes_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
          * Additional searchable attributes of this resource.
          * Informational only. The exact set of attributes is subject to change.
    @@ -1858,15 +1684,13 @@ private void ensureAdditionalAttributesIsMutable() {
          * 
    * * repeated string additional_attributes = 10; - * * @return A list containing the additionalAttributes. */ - public com.google.protobuf.ProtocolStringList getAdditionalAttributesList() { + public com.google.protobuf.ProtocolStringList + getAdditionalAttributesList() { return additionalAttributes_.getUnmodifiableView(); } /** - * - * *
          * Additional searchable attributes of this resource.
          * Informational only. The exact set of attributes is subject to change.
    @@ -1874,15 +1698,12 @@ public com.google.protobuf.ProtocolStringList getAdditionalAttributesList() {
          * 
    * * repeated string additional_attributes = 10; - * * @return The count of additionalAttributes. */ public int getAdditionalAttributesCount() { return additionalAttributes_.size(); } /** - * - * *
          * Additional searchable attributes of this resource.
          * Informational only. The exact set of attributes is subject to change.
    @@ -1890,7 +1711,6 @@ public int getAdditionalAttributesCount() {
          * 
    * * repeated string additional_attributes = 10; - * * @param index The index of the element to return. * @return The additionalAttributes at the given index. */ @@ -1898,8 +1718,6 @@ public java.lang.String getAdditionalAttributes(int index) { return additionalAttributes_.get(index); } /** - * - * *
          * Additional searchable attributes of this resource.
          * Informational only. The exact set of attributes is subject to change.
    @@ -1907,16 +1725,14 @@ public java.lang.String getAdditionalAttributes(int index) {
          * 
    * * repeated string additional_attributes = 10; - * * @param index The index of the value to return. * @return The bytes of the additionalAttributes at the given index. */ - public com.google.protobuf.ByteString getAdditionalAttributesBytes(int index) { + public com.google.protobuf.ByteString + getAdditionalAttributesBytes(int index) { return additionalAttributes_.getByteString(index); } /** - * - * *
          * Additional searchable attributes of this resource.
          * Informational only. The exact set of attributes is subject to change.
    @@ -1924,23 +1740,21 @@ public com.google.protobuf.ByteString getAdditionalAttributesBytes(int index) {
          * 
    * * repeated string additional_attributes = 10; - * * @param index The index to set the value at. * @param value The additionalAttributes to set. * @return This builder for chaining. */ - public Builder setAdditionalAttributes(int index, java.lang.String value) { + public Builder setAdditionalAttributes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalAttributesIsMutable(); + throw new NullPointerException(); + } + ensureAdditionalAttributesIsMutable(); additionalAttributes_.set(index, value); onChanged(); return this; } /** - * - * *
          * Additional searchable attributes of this resource.
          * Informational only. The exact set of attributes is subject to change.
    @@ -1948,22 +1762,20 @@ public Builder setAdditionalAttributes(int index, java.lang.String value) {
          * 
    * * repeated string additional_attributes = 10; - * * @param value The additionalAttributes to add. * @return This builder for chaining. */ - public Builder addAdditionalAttributes(java.lang.String value) { + public Builder addAdditionalAttributes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalAttributesIsMutable(); + throw new NullPointerException(); + } + ensureAdditionalAttributesIsMutable(); additionalAttributes_.add(value); onChanged(); return this; } /** - * - * *
          * Additional searchable attributes of this resource.
          * Informational only. The exact set of attributes is subject to change.
    @@ -1971,19 +1783,18 @@ public Builder addAdditionalAttributes(java.lang.String value) {
          * 
    * * repeated string additional_attributes = 10; - * * @param values The additionalAttributes to add. * @return This builder for chaining. */ - public Builder addAllAdditionalAttributes(java.lang.Iterable values) { + public Builder addAllAdditionalAttributes( + java.lang.Iterable values) { ensureAdditionalAttributesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalAttributes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, additionalAttributes_); onChanged(); return this; } /** - * - * *
          * Additional searchable attributes of this resource.
          * Informational only. The exact set of attributes is subject to change.
    @@ -1991,7 +1802,6 @@ public Builder addAllAdditionalAttributes(java.lang.Iterable v
          * 
    * * repeated string additional_attributes = 10; - * * @return This builder for chaining. */ public Builder clearAdditionalAttributes() { @@ -2001,8 +1811,6 @@ public Builder clearAdditionalAttributes() { return this; } /** - * - * *
          * Additional searchable attributes of this resource.
          * Informational only. The exact set of attributes is subject to change.
    @@ -2010,15 +1818,15 @@ public Builder clearAdditionalAttributes() {
          * 
    * * repeated string additional_attributes = 10; - * * @param value The bytes of the additionalAttributes to add. * @return This builder for chaining. */ - public Builder addAdditionalAttributesBytes(com.google.protobuf.ByteString value) { + public Builder addAdditionalAttributesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAdditionalAttributesIsMutable(); additionalAttributes_.add(value); onChanged(); @@ -2027,21 +1835,19 @@ public Builder addAdditionalAttributesBytes(com.google.protobuf.ByteString value private java.lang.Object location_ = ""; /** - * - * *
          * Location can be "global", regional like "us-east1", or zonal like
          * "us-west1-b".
          * 
    * * string location = 11; - * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -2050,22 +1856,21 @@ public java.lang.String getLocation() { } } /** - * - * *
          * Location can be "global", regional like "us-east1", or zonal like
          * "us-west1-b".
          * 
    * * string location = 11; - * * @return The bytes for location. */ - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -2073,84 +1878,78 @@ public com.google.protobuf.ByteString getLocationBytes() { } } /** - * - * *
          * Location can be "global", regional like "us-east1", or zonal like
          * "us-west1-b".
          * 
    * * string location = 11; - * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation(java.lang.String value) { + public Builder setLocation( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** - * - * *
          * Location can be "global", regional like "us-east1", or zonal like
          * "us-west1-b".
          * 
    * * string location = 11; - * * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** - * - * *
          * Location can be "global", regional like "us-east1", or zonal like
          * "us-west1-b".
          * 
    * * string location = 11; - * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2162,8 +1961,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -2172,22 +1969,22 @@ public int getLabelsCount() {
          *
          * map<string, string> labels = 12;
          */
    +
         @java.lang.Override
    -    public boolean containsLabels(java.lang.String key) {
    -      if (key == null) {
    -        throw new NullPointerException("map key");
    -      }
    +    public boolean containsLabels(
    +        java.lang.String key) {
    +      if (key == null) { throw new NullPointerException("map key"); }
           return internalGetLabels().getMap().containsKey(key);
         }
    -    /** Use {@link #getLabelsMap()} instead. */
    +    /**
    +     * Use {@link #getLabelsMap()} instead.
    +     */
         @java.lang.Override
         @java.lang.Deprecated
         public java.util.Map getLabels() {
           return getLabelsMap();
         }
         /**
    -     *
    -     *
          * 
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -2197,12 +1994,11 @@ public java.util.Map getLabels() {
          * map<string, string> labels = 12;
          */
         @java.lang.Override
    +
         public java.util.Map getLabelsMap() {
           return internalGetLabels().getMap();
         }
         /**
    -     *
    -     *
          * 
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -2212,17 +2008,16 @@ public java.util.Map getLabelsMap() {
          * map<string, string> labels = 12;
          */
         @java.lang.Override
    +
         public java.lang.String getLabelsOrDefault(
    -        java.lang.String key, java.lang.String defaultValue) {
    -      if (key == null) {
    -        throw new NullPointerException("map key");
    -      }
    -      java.util.Map map = internalGetLabels().getMap();
    +        java.lang.String key,
    +        java.lang.String defaultValue) {
    +      if (key == null) { throw new NullPointerException("map key"); }
    +      java.util.Map map =
    +          internalGetLabels().getMap();
           return map.containsKey(key) ? map.get(key) : defaultValue;
         }
         /**
    -     *
    -     *
          * 
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -2232,11 +2027,12 @@ public java.lang.String getLabelsOrDefault(
          * map<string, string> labels = 12;
          */
         @java.lang.Override
    -    public java.lang.String getLabelsOrThrow(java.lang.String key) {
    -      if (key == null) {
    -        throw new NullPointerException("map key");
    -      }
    -      java.util.Map map = internalGetLabels().getMap();
    +
    +    public java.lang.String getLabelsOrThrow(
    +        java.lang.String key) {
    +      if (key == null) { throw new NullPointerException("map key"); }
    +      java.util.Map map =
    +          internalGetLabels().getMap();
           if (!map.containsKey(key)) {
             throw new java.lang.IllegalArgumentException();
           }
    @@ -2244,12 +2040,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
         }
     
         public Builder clearLabels() {
    -      internalGetMutableLabels().getMutableMap().clear();
    +      internalGetMutableLabels().getMutableMap()
    +          .clear();
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -2258,21 +2053,23 @@ public Builder clearLabels() {
          *
          * map<string, string> labels = 12;
          */
    -    public Builder removeLabels(java.lang.String key) {
    -      if (key == null) {
    -        throw new NullPointerException("map key");
    -      }
    -      internalGetMutableLabels().getMutableMap().remove(key);
    +
    +    public Builder removeLabels(
    +        java.lang.String key) {
    +      if (key == null) { throw new NullPointerException("map key"); }
    +      internalGetMutableLabels().getMutableMap()
    +          .remove(key);
           return this;
         }
    -    /** Use alternate mutation accessors instead. */
    +    /**
    +     * Use alternate mutation accessors instead.
    +     */
         @java.lang.Deprecated
    -    public java.util.Map getMutableLabels() {
    +    public java.util.Map
    +    getMutableLabels() {
           return internalGetMutableLabels().getMutableMap();
         }
         /**
    -     *
    -     *
          * 
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -2281,20 +2078,19 @@ public java.util.Map getMutableLabels() {
          *
          * map<string, string> labels = 12;
          */
    -    public Builder putLabels(java.lang.String key, java.lang.String value) {
    -      if (key == null) {
    -        throw new NullPointerException("map key");
    -      }
    +    public Builder putLabels(
    +        java.lang.String key,
    +        java.lang.String value) {
    +      if (key == null) { throw new NullPointerException("map key"); }
           if (value == null) {
    -        throw new NullPointerException("map value");
    -      }
    +  throw new NullPointerException("map value");
    +}
     
    -      internalGetMutableLabels().getMutableMap().put(key, value);
    +      internalGetMutableLabels().getMutableMap()
    +          .put(key, value);
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -2303,23 +2099,22 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
          *
          * map<string, string> labels = 12;
          */
    -    public Builder putAllLabels(java.util.Map values) {
    -      internalGetMutableLabels().getMutableMap().putAll(values);
    +
    +    public Builder putAllLabels(
    +        java.util.Map values) {
    +      internalGetMutableLabels().getMutableMap()
    +          .putAll(values);
           return this;
         }
     
    -    private com.google.protobuf.LazyStringList networkTags_ =
    -        com.google.protobuf.LazyStringArrayList.EMPTY;
    -
    +    private com.google.protobuf.LazyStringList networkTags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
         private void ensureNetworkTagsIsMutable() {
           if (!((bitField0_ & 0x00000004) != 0)) {
             networkTags_ = new com.google.protobuf.LazyStringArrayList(networkTags_);
             bitField0_ |= 0x00000004;
    -      }
    +       }
         }
         /**
    -     *
    -     *
          * 
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -2328,15 +2123,13 @@ private void ensureNetworkTagsIsMutable() {
          * 
    * * repeated string network_tags = 13; - * * @return A list containing the networkTags. */ - public com.google.protobuf.ProtocolStringList getNetworkTagsList() { + public com.google.protobuf.ProtocolStringList + getNetworkTagsList() { return networkTags_.getUnmodifiableView(); } /** - * - * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -2345,15 +2138,12 @@ public com.google.protobuf.ProtocolStringList getNetworkTagsList() {
          * 
    * * repeated string network_tags = 13; - * * @return The count of networkTags. */ public int getNetworkTagsCount() { return networkTags_.size(); } /** - * - * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -2362,7 +2152,6 @@ public int getNetworkTagsCount() {
          * 
    * * repeated string network_tags = 13; - * * @param index The index of the element to return. * @return The networkTags at the given index. */ @@ -2370,8 +2159,6 @@ public java.lang.String getNetworkTags(int index) { return networkTags_.get(index); } /** - * - * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -2380,16 +2167,14 @@ public java.lang.String getNetworkTags(int index) {
          * 
    * * repeated string network_tags = 13; - * * @param index The index of the value to return. * @return The bytes of the networkTags at the given index. */ - public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { + public com.google.protobuf.ByteString + getNetworkTagsBytes(int index) { return networkTags_.getByteString(index); } /** - * - * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -2398,23 +2183,21 @@ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) {
          * 
    * * repeated string network_tags = 13; - * * @param index The index to set the value at. * @param value The networkTags to set. * @return This builder for chaining. */ - public Builder setNetworkTags(int index, java.lang.String value) { + public Builder setNetworkTags( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNetworkTagsIsMutable(); + throw new NullPointerException(); + } + ensureNetworkTagsIsMutable(); networkTags_.set(index, value); onChanged(); return this; } /** - * - * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -2423,22 +2206,20 @@ public Builder setNetworkTags(int index, java.lang.String value) {
          * 
    * * repeated string network_tags = 13; - * * @param value The networkTags to add. * @return This builder for chaining. */ - public Builder addNetworkTags(java.lang.String value) { + public Builder addNetworkTags( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNetworkTagsIsMutable(); + throw new NullPointerException(); + } + ensureNetworkTagsIsMutable(); networkTags_.add(value); onChanged(); return this; } /** - * - * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -2447,19 +2228,18 @@ public Builder addNetworkTags(java.lang.String value) {
          * 
    * * repeated string network_tags = 13; - * * @param values The networkTags to add. * @return This builder for chaining. */ - public Builder addAllNetworkTags(java.lang.Iterable values) { + public Builder addAllNetworkTags( + java.lang.Iterable values) { ensureNetworkTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkTags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, networkTags_); onChanged(); return this; } /** - * - * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -2468,7 +2248,6 @@ public Builder addAllNetworkTags(java.lang.Iterable values) {
          * 
    * * repeated string network_tags = 13; - * * @return This builder for chaining. */ public Builder clearNetworkTags() { @@ -2478,8 +2257,6 @@ public Builder clearNetworkTags() { return this; } /** - * - * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -2488,23 +2265,23 @@ public Builder clearNetworkTags() {
          * 
    * * repeated string network_tags = 13; - * * @param value The bytes of the networkTags to add. * @return This builder for chaining. */ - public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { + public Builder addNetworkTagsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureNetworkTagsIsMutable(); networkTags_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2514,12 +2291,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p1beta1.StandardResourceMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p1beta1.StandardResourceMetadata) private static final com.google.cloud.asset.v1p1beta1.StandardResourceMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p1beta1.StandardResourceMetadata(); } @@ -2528,16 +2305,27 @@ public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StandardResourceMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StandardResourceMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StandardResourceMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2552,4 +2340,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadataOrBuilder.java b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadataOrBuilder.java similarity index 81% rename from java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadataOrBuilder.java rename to owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadataOrBuilder.java index bb204bb0e894..5a4547c2da3f 100644 --- a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadataOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadataOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p1beta1/assets.proto package com.google.cloud.asset.v1p1beta1; -public interface StandardResourceMetadataOrBuilder - extends +public interface StandardResourceMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p1beta1.StandardResourceMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The full resource name. For example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -35,13 +17,10 @@ public interface StandardResourceMetadataOrBuilder
        * 
    * * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
        * The full resource name. For example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -51,120 +30,98 @@ public interface StandardResourceMetadataOrBuilder
        * 
    * * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
        * The type of this resource.
        * For example: "compute.googleapis.com/Disk".
        * 
    * * string asset_type = 2; - * * @return The assetType. */ java.lang.String getAssetType(); /** - * - * *
        * The type of this resource.
        * For example: "compute.googleapis.com/Disk".
        * 
    * * string asset_type = 2; - * * @return The bytes for assetType. */ - com.google.protobuf.ByteString getAssetTypeBytes(); + com.google.protobuf.ByteString + getAssetTypeBytes(); /** - * - * *
        * The project that this resource belongs to, in the form of
        * `projects/{project_number}`.
        * 
    * * string project = 3; - * * @return The project. */ java.lang.String getProject(); /** - * - * *
        * The project that this resource belongs to, in the form of
        * `projects/{project_number}`.
        * 
    * * string project = 3; - * * @return The bytes for project. */ - com.google.protobuf.ByteString getProjectBytes(); + com.google.protobuf.ByteString + getProjectBytes(); /** - * - * *
        * The display name of this resource.
        * 
    * * string display_name = 4; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
        * The display name of this resource.
        * 
    * * string display_name = 4; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
        * One or more paragraphs of text description of this resource. Maximum length
        * could be up to 1M bytes.
        * 
    * * string description = 5; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
        * One or more paragraphs of text description of this resource. Maximum length
        * could be up to 1M bytes.
        * 
    * * string description = 5; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
        * Additional searchable attributes of this resource.
        * Informational only. The exact set of attributes is subject to change.
    @@ -172,13 +129,11 @@ public interface StandardResourceMetadataOrBuilder
        * 
    * * repeated string additional_attributes = 10; - * * @return A list containing the additionalAttributes. */ - java.util.List getAdditionalAttributesList(); + java.util.List + getAdditionalAttributesList(); /** - * - * *
        * Additional searchable attributes of this resource.
        * Informational only. The exact set of attributes is subject to change.
    @@ -186,13 +141,10 @@ public interface StandardResourceMetadataOrBuilder
        * 
    * * repeated string additional_attributes = 10; - * * @return The count of additionalAttributes. */ int getAdditionalAttributesCount(); /** - * - * *
        * Additional searchable attributes of this resource.
        * Informational only. The exact set of attributes is subject to change.
    @@ -200,14 +152,11 @@ public interface StandardResourceMetadataOrBuilder
        * 
    * * repeated string additional_attributes = 10; - * * @param index The index of the element to return. * @return The additionalAttributes at the given index. */ java.lang.String getAdditionalAttributes(int index); /** - * - * *
        * Additional searchable attributes of this resource.
        * Informational only. The exact set of attributes is subject to change.
    @@ -215,42 +164,35 @@ public interface StandardResourceMetadataOrBuilder
        * 
    * * repeated string additional_attributes = 10; - * * @param index The index of the value to return. * @return The bytes of the additionalAttributes at the given index. */ - com.google.protobuf.ByteString getAdditionalAttributesBytes(int index); + com.google.protobuf.ByteString + getAdditionalAttributesBytes(int index); /** - * - * *
        * Location can be "global", regional like "us-east1", or zonal like
        * "us-west1-b".
        * 
    * * string location = 11; - * * @return The location. */ java.lang.String getLocation(); /** - * - * *
        * Location can be "global", regional like "us-east1", or zonal like
        * "us-west1-b".
        * 
    * * string location = 11; - * * @return The bytes for location. */ - com.google.protobuf.ByteString getLocationBytes(); + com.google.protobuf.ByteString + getLocationBytes(); /** - * - * *
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -261,8 +203,6 @@ public interface StandardResourceMetadataOrBuilder
        */
       int getLabelsCount();
       /**
    -   *
    -   *
        * 
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -271,13 +211,15 @@ public interface StandardResourceMetadataOrBuilder
        *
        * map<string, string> labels = 12;
        */
    -  boolean containsLabels(java.lang.String key);
    -  /** Use {@link #getLabelsMap()} instead. */
    +  boolean containsLabels(
    +      java.lang.String key);
    +  /**
    +   * Use {@link #getLabelsMap()} instead.
    +   */
       @java.lang.Deprecated
    -  java.util.Map getLabels();
    +  java.util.Map
    +  getLabels();
       /**
    -   *
    -   *
        * 
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -286,10 +228,9 @@ public interface StandardResourceMetadataOrBuilder
        *
        * map<string, string> labels = 12;
        */
    -  java.util.Map getLabelsMap();
    +  java.util.Map
    +  getLabelsMap();
       /**
    -   *
    -   *
        * 
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -300,13 +241,11 @@ public interface StandardResourceMetadataOrBuilder
        */
     
       /* nullable */
    -  java.lang.String getLabelsOrDefault(
    +java.lang.String getLabelsOrDefault(
           java.lang.String key,
           /* nullable */
    -      java.lang.String defaultValue);
    +java.lang.String defaultValue);
       /**
    -   *
    -   *
        * 
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -315,11 +254,11 @@ java.lang.String getLabelsOrDefault(
        *
        * map<string, string> labels = 12;
        */
    -  java.lang.String getLabelsOrThrow(java.lang.String key);
    +
    +  java.lang.String getLabelsOrThrow(
    +      java.lang.String key);
     
       /**
    -   *
    -   *
        * 
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -328,13 +267,11 @@ java.lang.String getLabelsOrDefault(
        * 
    * * repeated string network_tags = 13; - * * @return A list containing the networkTags. */ - java.util.List getNetworkTagsList(); + java.util.List + getNetworkTagsList(); /** - * - * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -343,13 +280,10 @@ java.lang.String getLabelsOrDefault(
        * 
    * * repeated string network_tags = 13; - * * @return The count of networkTags. */ int getNetworkTagsCount(); /** - * - * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -358,14 +292,11 @@ java.lang.String getLabelsOrDefault(
        * 
    * * repeated string network_tags = 13; - * * @param index The index of the element to return. * @return The networkTags at the given index. */ java.lang.String getNetworkTags(int index); /** - * - * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -374,9 +305,9 @@ java.lang.String getLabelsOrDefault(
        * 
    * * repeated string network_tags = 13; - * * @param index The index of the value to return. * @return The bytes of the networkTags at the given index. */ - com.google.protobuf.ByteString getNetworkTagsBytes(int index); + com.google.protobuf.ByteString + getNetworkTagsBytes(int index); } diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/asset_service.proto b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/asset_service.proto similarity index 100% rename from java-asset/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/asset_service.proto rename to owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/asset_service.proto diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/assets.proto b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/assets.proto similarity index 100% rename from java-asset/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/assets.proto rename to owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/assets.proto diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetEndpoint.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPolicies.java b/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPolicies.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPolicies.java rename to owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPolicies.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java b/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java rename to owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java b/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java rename to owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java b/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java rename to owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/AsyncSearchAllResources.java b/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/AsyncSearchAllResources.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/AsyncSearchAllResources.java rename to owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/AsyncSearchAllResources.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java b/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java rename to owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/SyncSearchAllResources.java b/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/SyncSearchAllResources.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/SyncSearchAllResources.java rename to owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/SyncSearchAllResources.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java b/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java rename to owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservicesettings/searchallresources/SyncSearchAllResources.java b/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservicesettings/searchallresources/SyncSearchAllResources.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservicesettings/searchallresources/SyncSearchAllResources.java rename to owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservicesettings/searchallresources/SyncSearchAllResources.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/stub/assetservicestubsettings/searchallresources/SyncSearchAllResources.java b/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/stub/assetservicestubsettings/searchallresources/SyncSearchAllResources.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/stub/assetservicestubsettings/searchallresources/SyncSearchAllResources.java rename to owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/stub/assetservicestubsettings/searchallresources/SyncSearchAllResources.java diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceClient.java b/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceClient.java similarity index 100% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceClient.java rename to owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceClient.java diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceSettings.java b/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceSettings.java similarity index 99% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceSettings.java rename to owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceSettings.java index 0433130dafde..48de67a431ff 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceSettings.java +++ b/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceSettings.java @@ -25,6 +25,7 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.asset.v1p2beta1.stub.AssetServiceStubSettings; diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/gapic_metadata.json b/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/gapic_metadata.json similarity index 100% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/gapic_metadata.json rename to owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/gapic_metadata.json diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/package-info.java b/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/package-info.java similarity index 100% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/package-info.java rename to owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/package-info.java diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStub.java b/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStub.java similarity index 100% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStub.java rename to owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStub.java diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStubSettings.java b/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStubSettings.java similarity index 100% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStubSettings.java rename to owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStubSettings.java diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceCallableFactory.java b/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceCallableFactory.java similarity index 100% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceCallableFactory.java rename to owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceCallableFactory.java diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceStub.java b/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceStub.java similarity index 99% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceStub.java rename to owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceStub.java index 55c2f122f030..4c74edb92139 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceStub.java +++ b/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceStub.java @@ -36,6 +36,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/HttpJsonAssetServiceCallableFactory.java b/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/HttpJsonAssetServiceCallableFactory.java similarity index 100% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/HttpJsonAssetServiceCallableFactory.java rename to owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/HttpJsonAssetServiceCallableFactory.java diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/HttpJsonAssetServiceStub.java b/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/HttpJsonAssetServiceStub.java similarity index 100% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/HttpJsonAssetServiceStub.java rename to owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/HttpJsonAssetServiceStub.java diff --git a/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/AssetServiceClientHttpJsonTest.java b/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/AssetServiceClientHttpJsonTest.java similarity index 100% rename from java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/AssetServiceClientHttpJsonTest.java rename to owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/AssetServiceClientHttpJsonTest.java diff --git a/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/AssetServiceClientTest.java b/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/AssetServiceClientTest.java similarity index 100% rename from java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/AssetServiceClientTest.java rename to owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/AssetServiceClientTest.java diff --git a/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/MockAssetService.java b/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/MockAssetService.java similarity index 100% rename from java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/MockAssetService.java rename to owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/MockAssetService.java diff --git a/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/MockAssetServiceImpl.java b/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/MockAssetServiceImpl.java similarity index 100% rename from java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/MockAssetServiceImpl.java rename to owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/MockAssetServiceImpl.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/grpc-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceGrpc.java b/owl-bot-staging/java-asset/v1p2beta1/grpc-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceGrpc.java new file mode 100644 index 000000000000..696a0aaafec7 --- /dev/null +++ b/owl-bot-staging/java-asset/v1p2beta1/grpc-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceGrpc.java @@ -0,0 +1,651 @@ +package com.google.cloud.asset.v1p2beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
    + * Asset service definition.
    + * 
    + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/asset/v1p2beta1/asset_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AssetServiceGrpc { + + private AssetServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.asset.v1p2beta1.AssetService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateFeedMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFeed", + requestType = com.google.cloud.asset.v1p2beta1.CreateFeedRequest.class, + responseType = com.google.cloud.asset.v1p2beta1.Feed.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateFeedMethod() { + io.grpc.MethodDescriptor getCreateFeedMethod; + if ((getCreateFeedMethod = AssetServiceGrpc.getCreateFeedMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getCreateFeedMethod = AssetServiceGrpc.getCreateFeedMethod) == null) { + AssetServiceGrpc.getCreateFeedMethod = getCreateFeedMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFeed")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p2beta1.CreateFeedRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("CreateFeed")) + .build(); + } + } + } + return getCreateFeedMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetFeedMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFeed", + requestType = com.google.cloud.asset.v1p2beta1.GetFeedRequest.class, + responseType = com.google.cloud.asset.v1p2beta1.Feed.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetFeedMethod() { + io.grpc.MethodDescriptor getGetFeedMethod; + if ((getGetFeedMethod = AssetServiceGrpc.getGetFeedMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getGetFeedMethod = AssetServiceGrpc.getGetFeedMethod) == null) { + AssetServiceGrpc.getGetFeedMethod = getGetFeedMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFeed")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p2beta1.GetFeedRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("GetFeed")) + .build(); + } + } + } + return getGetFeedMethod; + } + + private static volatile io.grpc.MethodDescriptor getListFeedsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFeeds", + requestType = com.google.cloud.asset.v1p2beta1.ListFeedsRequest.class, + responseType = com.google.cloud.asset.v1p2beta1.ListFeedsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFeedsMethod() { + io.grpc.MethodDescriptor getListFeedsMethod; + if ((getListFeedsMethod = AssetServiceGrpc.getListFeedsMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getListFeedsMethod = AssetServiceGrpc.getListFeedsMethod) == null) { + AssetServiceGrpc.getListFeedsMethod = getListFeedsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFeeds")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p2beta1.ListFeedsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p2beta1.ListFeedsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ListFeeds")) + .build(); + } + } + } + return getListFeedsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateFeedMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFeed", + requestType = com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.class, + responseType = com.google.cloud.asset.v1p2beta1.Feed.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateFeedMethod() { + io.grpc.MethodDescriptor getUpdateFeedMethod; + if ((getUpdateFeedMethod = AssetServiceGrpc.getUpdateFeedMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getUpdateFeedMethod = AssetServiceGrpc.getUpdateFeedMethod) == null) { + AssetServiceGrpc.getUpdateFeedMethod = getUpdateFeedMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFeed")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("UpdateFeed")) + .build(); + } + } + } + return getUpdateFeedMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteFeedMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFeed", + requestType = com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteFeedMethod() { + io.grpc.MethodDescriptor getDeleteFeedMethod; + if ((getDeleteFeedMethod = AssetServiceGrpc.getDeleteFeedMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getDeleteFeedMethod = AssetServiceGrpc.getDeleteFeedMethod) == null) { + AssetServiceGrpc.getDeleteFeedMethod = getDeleteFeedMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFeed")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("DeleteFeed")) + .build(); + } + } + } + return getDeleteFeedMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static AssetServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceStub(channel, callOptions); + } + }; + return AssetServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AssetServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceBlockingStub(channel, callOptions); + } + }; + return AssetServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AssetServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceFutureStub(channel, callOptions); + } + }; + return AssetServiceFutureStub.newStub(factory, channel); + } + + /** + *
    +   * Asset service definition.
    +   * 
    + */ + public static abstract class AssetServiceImplBase implements io.grpc.BindableService { + + /** + *
    +     * Creates a feed in a parent project/folder/organization to listen to its
    +     * asset updates.
    +     * 
    + */ + public void createFeed(com.google.cloud.asset.v1p2beta1.CreateFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFeedMethod(), responseObserver); + } + + /** + *
    +     * Gets details about an asset feed.
    +     * 
    + */ + public void getFeed(com.google.cloud.asset.v1p2beta1.GetFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeedMethod(), responseObserver); + } + + /** + *
    +     * Lists all asset feeds in a parent project/folder/organization.
    +     * 
    + */ + public void listFeeds(com.google.cloud.asset.v1p2beta1.ListFeedsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFeedsMethod(), responseObserver); + } + + /** + *
    +     * Updates an asset feed configuration.
    +     * 
    + */ + public void updateFeed(com.google.cloud.asset.v1p2beta1.UpdateFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFeedMethod(), responseObserver); + } + + /** + *
    +     * Deletes an asset feed.
    +     * 
    + */ + public void deleteFeed(com.google.cloud.asset.v1p2beta1.DeleteFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFeedMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateFeedMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1p2beta1.CreateFeedRequest, + com.google.cloud.asset.v1p2beta1.Feed>( + this, METHODID_CREATE_FEED))) + .addMethod( + getGetFeedMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1p2beta1.GetFeedRequest, + com.google.cloud.asset.v1p2beta1.Feed>( + this, METHODID_GET_FEED))) + .addMethod( + getListFeedsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1p2beta1.ListFeedsRequest, + com.google.cloud.asset.v1p2beta1.ListFeedsResponse>( + this, METHODID_LIST_FEEDS))) + .addMethod( + getUpdateFeedMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1p2beta1.UpdateFeedRequest, + com.google.cloud.asset.v1p2beta1.Feed>( + this, METHODID_UPDATE_FEED))) + .addMethod( + getDeleteFeedMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1p2beta1.DeleteFeedRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_FEED))) + .build(); + } + } + + /** + *
    +   * Asset service definition.
    +   * 
    + */ + public static final class AssetServiceStub extends io.grpc.stub.AbstractAsyncStub { + private AssetServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssetServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceStub(channel, callOptions); + } + + /** + *
    +     * Creates a feed in a parent project/folder/organization to listen to its
    +     * asset updates.
    +     * 
    + */ + public void createFeed(com.google.cloud.asset.v1p2beta1.CreateFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFeedMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
    +     * Gets details about an asset feed.
    +     * 
    + */ + public void getFeed(com.google.cloud.asset.v1p2beta1.GetFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFeedMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
    +     * Lists all asset feeds in a parent project/folder/organization.
    +     * 
    + */ + public void listFeeds(com.google.cloud.asset.v1p2beta1.ListFeedsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFeedsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
    +     * Updates an asset feed configuration.
    +     * 
    + */ + public void updateFeed(com.google.cloud.asset.v1p2beta1.UpdateFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFeedMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
    +     * Deletes an asset feed.
    +     * 
    + */ + public void deleteFeed(com.google.cloud.asset.v1p2beta1.DeleteFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFeedMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
    +   * Asset service definition.
    +   * 
    + */ + public static final class AssetServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private AssetServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssetServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceBlockingStub(channel, callOptions); + } + + /** + *
    +     * Creates a feed in a parent project/folder/organization to listen to its
    +     * asset updates.
    +     * 
    + */ + public com.google.cloud.asset.v1p2beta1.Feed createFeed(com.google.cloud.asset.v1p2beta1.CreateFeedRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFeedMethod(), getCallOptions(), request); + } + + /** + *
    +     * Gets details about an asset feed.
    +     * 
    + */ + public com.google.cloud.asset.v1p2beta1.Feed getFeed(com.google.cloud.asset.v1p2beta1.GetFeedRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFeedMethod(), getCallOptions(), request); + } + + /** + *
    +     * Lists all asset feeds in a parent project/folder/organization.
    +     * 
    + */ + public com.google.cloud.asset.v1p2beta1.ListFeedsResponse listFeeds(com.google.cloud.asset.v1p2beta1.ListFeedsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFeedsMethod(), getCallOptions(), request); + } + + /** + *
    +     * Updates an asset feed configuration.
    +     * 
    + */ + public com.google.cloud.asset.v1p2beta1.Feed updateFeed(com.google.cloud.asset.v1p2beta1.UpdateFeedRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFeedMethod(), getCallOptions(), request); + } + + /** + *
    +     * Deletes an asset feed.
    +     * 
    + */ + public com.google.protobuf.Empty deleteFeed(com.google.cloud.asset.v1p2beta1.DeleteFeedRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFeedMethod(), getCallOptions(), request); + } + } + + /** + *
    +   * Asset service definition.
    +   * 
    + */ + public static final class AssetServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private AssetServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssetServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceFutureStub(channel, callOptions); + } + + /** + *
    +     * Creates a feed in a parent project/folder/organization to listen to its
    +     * asset updates.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture createFeed( + com.google.cloud.asset.v1p2beta1.CreateFeedRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFeedMethod(), getCallOptions()), request); + } + + /** + *
    +     * Gets details about an asset feed.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture getFeed( + com.google.cloud.asset.v1p2beta1.GetFeedRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFeedMethod(), getCallOptions()), request); + } + + /** + *
    +     * Lists all asset feeds in a parent project/folder/organization.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture listFeeds( + com.google.cloud.asset.v1p2beta1.ListFeedsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFeedsMethod(), getCallOptions()), request); + } + + /** + *
    +     * Updates an asset feed configuration.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture updateFeed( + com.google.cloud.asset.v1p2beta1.UpdateFeedRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFeedMethod(), getCallOptions()), request); + } + + /** + *
    +     * Deletes an asset feed.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture deleteFeed( + com.google.cloud.asset.v1p2beta1.DeleteFeedRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFeedMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_FEED = 0; + private static final int METHODID_GET_FEED = 1; + private static final int METHODID_LIST_FEEDS = 2; + private static final int METHODID_UPDATE_FEED = 3; + private static final int METHODID_DELETE_FEED = 4; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AssetServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AssetServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_FEED: + serviceImpl.createFeed((com.google.cloud.asset.v1p2beta1.CreateFeedRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_FEED: + serviceImpl.getFeed((com.google.cloud.asset.v1p2beta1.GetFeedRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FEEDS: + serviceImpl.listFeeds((com.google.cloud.asset.v1p2beta1.ListFeedsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FEED: + serviceImpl.updateFeed((com.google.cloud.asset.v1p2beta1.UpdateFeedRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FEED: + serviceImpl.deleteFeed((com.google.cloud.asset.v1p2beta1.DeleteFeedRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class AssetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AssetServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AssetService"); + } + } + + private static final class AssetServiceFileDescriptorSupplier + extends AssetServiceBaseDescriptorSupplier { + AssetServiceFileDescriptorSupplier() {} + } + + private static final class AssetServiceMethodDescriptorSupplier + extends AssetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AssetServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AssetServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AssetServiceFileDescriptorSupplier()) + .addMethod(getCreateFeedMethod()) + .addMethod(getGetFeedMethod()) + .addMethod(getListFeedsMethod()) + .addMethod(getUpdateFeedMethod()) + .addMethod(getDeleteFeedMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Asset.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Asset.java similarity index 72% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Asset.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Asset.java index 704e28ff5dd7..918fefda3f37 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Asset.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Asset.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/assets.proto package com.google.cloud.asset.v1p2beta1; /** - * - * *
      * Cloud asset. This includes all Google Cloud Platform resources,
      * Cloud IAM policies, and other non-GCP assets.
    @@ -28,16 +11,15 @@
      *
      * Protobuf type {@code google.cloud.asset.v1p2beta1.Asset}
      */
    -public final class Asset extends com.google.protobuf.GeneratedMessageV3
    -    implements
    +public final class Asset extends
    +    com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.Asset)
         AssetOrBuilder {
    -  private static final long serialVersionUID = 0L;
    +private static final long serialVersionUID = 0L;
       // Use Asset.newBuilder() to construct.
       private Asset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -
       private Asset() {
         name_ = "";
         assetType_ = "";
    @@ -46,132 +28,32 @@ private Asset() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(
    +      UnusedPrivateParameter unused) {
         return new Asset();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet
    +  getUnknownFields() {
         return this.unknownFields;
       }
    -
    -  private Asset(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              name_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              assetType_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              com.google.cloud.asset.v1p2beta1.Resource.Builder subBuilder = null;
    -              if (resource_ != null) {
    -                subBuilder = resource_.toBuilder();
    -              }
    -              resource_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p2beta1.Resource.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(resource_);
    -                resource_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 34:
    -            {
    -              com.google.iam.v1.Policy.Builder subBuilder = null;
    -              if (iamPolicy_ != null) {
    -                subBuilder = iamPolicy_.toBuilder();
    -              }
    -              iamPolicy_ = input.readMessage(com.google.iam.v1.Policy.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(iamPolicy_);
    -                iamPolicy_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 50:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                ancestors_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              ancestors_.add(s);
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        ancestors_ = ancestors_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
    -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.cloud.asset.v1p2beta1.AssetProto
    -        .internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor;
    +  public static final com.google.protobuf.Descriptors.Descriptor
    +      getDescriptor() {
    +    return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1p2beta1.AssetProto
    -        .internal_static_google_cloud_asset_v1p2beta1_Asset_fieldAccessorTable
    +    return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_Asset_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1p2beta1.Asset.class,
    -            com.google.cloud.asset.v1p2beta1.Asset.Builder.class);
    +            com.google.cloud.asset.v1p2beta1.Asset.class, com.google.cloud.asset.v1p2beta1.Asset.Builder.class);
       }
     
       public static final int NAME_FIELD_NUMBER = 1;
       private volatile java.lang.Object name_;
       /**
    -   *
    -   *
        * 
        * The full name of the asset. For example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -181,7 +63,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
    * * string name = 1; - * * @return The name. */ @java.lang.Override @@ -190,15 +71,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
        * The full name of the asset. For example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -208,15 +88,16 @@ public java.lang.String getName() {
        * 
    * * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -227,14 +108,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ASSET_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object assetType_; /** - * - * *
        * Type of the asset. Example: "compute.googleapis.com/Disk".
        * 
    * * string asset_type = 2; - * * @return The assetType. */ @java.lang.Override @@ -243,29 +121,29 @@ public java.lang.String getAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; } } /** - * - * *
        * Type of the asset. Example: "compute.googleapis.com/Disk".
        * 
    * * string asset_type = 2; - * * @return The bytes for assetType. */ @java.lang.Override - public com.google.protobuf.ByteString getAssetTypeBytes() { + public com.google.protobuf.ByteString + getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetType_ = b; return b; } else { @@ -276,14 +154,11 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.asset.v1p2beta1.Resource resource_; /** - * - * *
        * Representation of the resource.
        * 
    * * .google.cloud.asset.v1p2beta1.Resource resource = 3; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -291,25 +166,18 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
        * Representation of the resource.
        * 
    * * .google.cloud.asset.v1p2beta1.Resource resource = 3; - * * @return The resource. */ @java.lang.Override public com.google.cloud.asset.v1p2beta1.Resource getResource() { - return resource_ == null - ? com.google.cloud.asset.v1p2beta1.Resource.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.asset.v1p2beta1.Resource.getDefaultInstance() : resource_; } /** - * - * *
        * Representation of the resource.
        * 
    @@ -324,15 +192,12 @@ public com.google.cloud.asset.v1p2beta1.ResourceOrBuilder getResourceOrBuilder() public static final int IAM_POLICY_FIELD_NUMBER = 4; private com.google.iam.v1.Policy iamPolicy_; /** - * - * *
        * Representation of the actual Cloud IAM policy set on a cloud resource. For
        * each resource, there must be at most one Cloud IAM policy set on it.
        * 
    * * .google.iam.v1.Policy iam_policy = 4; - * * @return Whether the iamPolicy field is set. */ @java.lang.Override @@ -340,15 +205,12 @@ public boolean hasIamPolicy() { return iamPolicy_ != null; } /** - * - * *
        * Representation of the actual Cloud IAM policy set on a cloud resource. For
        * each resource, there must be at most one Cloud IAM policy set on it.
        * 
    * * .google.iam.v1.Policy iam_policy = 4; - * * @return The iamPolicy. */ @java.lang.Override @@ -356,8 +218,6 @@ public com.google.iam.v1.Policy getIamPolicy() { return iamPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_; } /** - * - * *
        * Representation of the actual Cloud IAM policy set on a cloud resource. For
        * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -373,8 +233,6 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
       public static final int ANCESTORS_FIELD_NUMBER = 6;
       private com.google.protobuf.LazyStringList ancestors_;
       /**
    -   *
    -   *
        * 
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -384,15 +242,13 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
        * 
    * * repeated string ancestors = 6; - * * @return A list containing the ancestors. */ - public com.google.protobuf.ProtocolStringList getAncestorsList() { + public com.google.protobuf.ProtocolStringList + getAncestorsList() { return ancestors_; } /** - * - * *
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -402,15 +258,12 @@ public com.google.protobuf.ProtocolStringList getAncestorsList() {
        * 
    * * repeated string ancestors = 6; - * * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); } /** - * - * *
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -420,7 +273,6 @@ public int getAncestorsCount() {
        * 
    * * repeated string ancestors = 6; - * * @param index The index of the element to return. * @return The ancestors at the given index. */ @@ -428,8 +280,6 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** - * - * *
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -439,16 +289,15 @@ public java.lang.String getAncestors(int index) {
        * 
    * * repeated string ancestors = 6; - * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - public com.google.protobuf.ByteString getAncestorsBytes(int index) { + public com.google.protobuf.ByteString + getAncestorsBytes(int index) { return ancestors_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -460,7 +309,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -476,7 +326,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < ancestors_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, ancestors_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -492,10 +342,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, assetType_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResource()); } if (iamPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIamPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getIamPolicy()); } { int dataSize = 0; @@ -505,7 +357,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAncestorsList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -513,25 +365,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.Asset)) { return super.equals(obj); } com.google.cloud.asset.v1p2beta1.Asset other = (com.google.cloud.asset.v1p2beta1.Asset) obj; - if (!getName().equals(other.getName())) return false; - if (!getAssetType().equals(other.getAssetType())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getAssetType() + .equals(other.getAssetType())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } if (hasIamPolicy() != other.hasIamPolicy()) return false; if (hasIamPolicy()) { - if (!getIamPolicy().equals(other.getIamPolicy())) return false; + if (!getIamPolicy() + .equals(other.getIamPolicy())) return false; } - if (!getAncestorsList().equals(other.getAncestorsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getAncestorsList() + .equals(other.getAncestorsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -558,109 +415,102 @@ public int hashCode() { hash = (37 * hash) + ANCESTORS_FIELD_NUMBER; hash = (53 * hash) + getAncestorsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1p2beta1.Asset parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p2beta1.Asset parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.Asset parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.Asset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.Asset 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.asset.v1p2beta1.Asset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.Asset parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.Asset parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.Asset parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.Asset parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.Asset parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.Asset parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.Asset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.Asset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Cloud asset. This includes all Google Cloud Platform resources,
        * Cloud IAM policies, and other non-GCP assets.
    @@ -668,39 +518,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        * Protobuf type {@code google.cloud.asset.v1p2beta1.Asset}
        */
    -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    -      implements
    +  public static final class Builder extends
    +      com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.Asset)
           com.google.cloud.asset.v1p2beta1.AssetOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.cloud.asset.v1p2beta1.AssetProto
    -          .internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor
    +        getDescriptor() {
    +      return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1p2beta1.AssetProto
    -          .internal_static_google_cloud_asset_v1p2beta1_Asset_fieldAccessorTable
    +      return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_Asset_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1p2beta1.Asset.class,
    -              com.google.cloud.asset.v1p2beta1.Asset.Builder.class);
    +              com.google.cloud.asset.v1p2beta1.Asset.class, com.google.cloud.asset.v1p2beta1.Asset.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1p2beta1.Asset.newBuilder()
         private Builder() {
    -      maybeForceBuilderInitialization();
    +
         }
     
    -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    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();
    @@ -726,9 +570,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.cloud.asset.v1p2beta1.AssetProto
    -          .internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor
    +        getDescriptorForType() {
    +      return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor;
         }
     
         @java.lang.Override
    @@ -747,8 +591,7 @@ public com.google.cloud.asset.v1p2beta1.Asset build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1p2beta1.Asset buildPartial() {
    -      com.google.cloud.asset.v1p2beta1.Asset result =
    -          new com.google.cloud.asset.v1p2beta1.Asset(this);
    +      com.google.cloud.asset.v1p2beta1.Asset result = new com.google.cloud.asset.v1p2beta1.Asset(this);
           int from_bitField0_ = bitField0_;
           result.name_ = name_;
           result.assetType_ = assetType_;
    @@ -775,39 +618,38 @@ public com.google.cloud.asset.v1p2beta1.Asset buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    -
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1p2beta1.Asset) {
    -        return mergeFrom((com.google.cloud.asset.v1p2beta1.Asset) other);
    +        return mergeFrom((com.google.cloud.asset.v1p2beta1.Asset)other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -840,7 +682,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.Asset other) {
             }
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -855,26 +697,66 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p2beta1.Asset parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10: {
    +              name_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 10
    +            case 18: {
    +              assetType_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 18
    +            case 26: {
    +              input.readMessage(
    +                  getResourceFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 26
    +            case 34: {
    +              input.readMessage(
    +                  getIamPolicyFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 34
    +            case 50: {
    +              java.lang.String s = input.readStringRequireUtf8();
    +              ensureAncestorsIsMutable();
    +              ancestors_.add(s);
    +              break;
    +            } // case 50
    +            default: {
    +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                done = true; // was an endgroup tag
    +              }
    +              break;
    +            } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p2beta1.Asset) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
    -
         private int bitField0_;
     
         private java.lang.Object name_ = "";
         /**
    -     *
    -     *
          * 
          * The full name of the asset. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -884,13 +766,13 @@ public Builder mergeFrom(
          * 
    * * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -899,8 +781,6 @@ public java.lang.String getName() { } } /** - * - * *
          * The full name of the asset. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -910,14 +790,15 @@ public java.lang.String getName() {
          * 
    * * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -925,8 +806,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
          * The full name of the asset. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -936,22 +815,20 @@ public com.google.protobuf.ByteString getNameBytes() {
          * 
    * * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
          * The full name of the asset. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -961,18 +838,15 @@ public Builder setName(java.lang.String value) {
          * 
    * * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
          * The full name of the asset. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -982,16 +856,16 @@ public Builder clearName() {
          * 
    * * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -999,20 +873,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object assetType_ = ""; /** - * - * *
          * Type of the asset. Example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; - * * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; @@ -1021,21 +893,20 @@ public java.lang.String getAssetType() { } } /** - * - * *
          * Type of the asset. Example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; - * * @return The bytes for assetType. */ - public com.google.protobuf.ByteString getAssetTypeBytes() { + public com.google.protobuf.ByteString + getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetType_ = b; return b; } else { @@ -1043,61 +914,54 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { } } /** - * - * *
          * Type of the asset. Example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; - * * @param value The assetType to set. * @return This builder for chaining. */ - public Builder setAssetType(java.lang.String value) { + public Builder setAssetType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + assetType_ = value; onChanged(); return this; } /** - * - * *
          * Type of the asset. Example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; - * * @return This builder for chaining. */ public Builder clearAssetType() { - + assetType_ = getDefaultInstance().getAssetType(); onChanged(); return this; } /** - * - * *
          * Type of the asset. Example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; - * * @param value The bytes for assetType to set. * @return This builder for chaining. */ - public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { + public Builder setAssetTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; onChanged(); return this; @@ -1105,47 +969,34 @@ public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { private com.google.cloud.asset.v1p2beta1.Resource resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Resource, - com.google.cloud.asset.v1p2beta1.Resource.Builder, - com.google.cloud.asset.v1p2beta1.ResourceOrBuilder> - resourceBuilder_; + com.google.cloud.asset.v1p2beta1.Resource, com.google.cloud.asset.v1p2beta1.Resource.Builder, com.google.cloud.asset.v1p2beta1.ResourceOrBuilder> resourceBuilder_; /** - * - * *
          * Representation of the resource.
          * 
    * * .google.cloud.asset.v1p2beta1.Resource resource = 3; - * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** - * - * *
          * Representation of the resource.
          * 
    * * .google.cloud.asset.v1p2beta1.Resource resource = 3; - * * @return The resource. */ public com.google.cloud.asset.v1p2beta1.Resource getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.cloud.asset.v1p2beta1.Resource.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.asset.v1p2beta1.Resource.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
          * Representation of the resource.
          * 
    @@ -1166,15 +1017,14 @@ public Builder setResource(com.google.cloud.asset.v1p2beta1.Resource value) { return this; } /** - * - * *
          * Representation of the resource.
          * 
    * * .google.cloud.asset.v1p2beta1.Resource resource = 3; */ - public Builder setResource(com.google.cloud.asset.v1p2beta1.Resource.Builder builderForValue) { + public Builder setResource( + com.google.cloud.asset.v1p2beta1.Resource.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -1185,8 +1035,6 @@ public Builder setResource(com.google.cloud.asset.v1p2beta1.Resource.Builder bui return this; } /** - * - * *
          * Representation of the resource.
          * 
    @@ -1197,9 +1045,7 @@ public Builder mergeResource(com.google.cloud.asset.v1p2beta1.Resource value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.asset.v1p2beta1.Resource.newBuilder(resource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1p2beta1.Resource.newBuilder(resource_).mergeFrom(value).buildPartial(); } else { resource_ = value; } @@ -1211,8 +1057,6 @@ public Builder mergeResource(com.google.cloud.asset.v1p2beta1.Resource value) { return this; } /** - * - * *
          * Representation of the resource.
          * 
    @@ -1231,8 +1075,6 @@ public Builder clearResource() { return this; } /** - * - * *
          * Representation of the resource.
          * 
    @@ -1240,13 +1082,11 @@ public Builder clearResource() { * .google.cloud.asset.v1p2beta1.Resource resource = 3; */ public com.google.cloud.asset.v1p2beta1.Resource.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** - * - * *
          * Representation of the resource.
          * 
    @@ -1257,14 +1097,11 @@ public com.google.cloud.asset.v1p2beta1.ResourceOrBuilder getResourceOrBuilder() if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null - ? com.google.cloud.asset.v1p2beta1.Resource.getDefaultInstance() - : resource_; + return resource_ == null ? + com.google.cloud.asset.v1p2beta1.Resource.getDefaultInstance() : resource_; } } /** - * - * *
          * Representation of the resource.
          * 
    @@ -1272,17 +1109,14 @@ public com.google.cloud.asset.v1p2beta1.ResourceOrBuilder getResourceOrBuilder() * .google.cloud.asset.v1p2beta1.Resource resource = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Resource, - com.google.cloud.asset.v1p2beta1.Resource.Builder, - com.google.cloud.asset.v1p2beta1.ResourceOrBuilder> + com.google.cloud.asset.v1p2beta1.Resource, com.google.cloud.asset.v1p2beta1.Resource.Builder, com.google.cloud.asset.v1p2beta1.ResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Resource, - com.google.cloud.asset.v1p2beta1.Resource.Builder, - com.google.cloud.asset.v1p2beta1.ResourceOrBuilder>( - getResource(), getParentForChildren(), isClean()); + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p2beta1.Resource, com.google.cloud.asset.v1p2beta1.Resource.Builder, com.google.cloud.asset.v1p2beta1.ResourceOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); resource_ = null; } return resourceBuilder_; @@ -1290,35 +1124,26 @@ public com.google.cloud.asset.v1p2beta1.ResourceOrBuilder getResourceOrBuilder() private com.google.iam.v1.Policy iamPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, - com.google.iam.v1.Policy.Builder, - com.google.iam.v1.PolicyOrBuilder> - iamPolicyBuilder_; + com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> iamPolicyBuilder_; /** - * - * *
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
          * 
    * * .google.iam.v1.Policy iam_policy = 4; - * * @return Whether the iamPolicy field is set. */ public boolean hasIamPolicy() { return iamPolicyBuilder_ != null || iamPolicy_ != null; } /** - * - * *
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
          * 
    * * .google.iam.v1.Policy iam_policy = 4; - * * @return The iamPolicy. */ public com.google.iam.v1.Policy getIamPolicy() { @@ -1329,8 +1154,6 @@ public com.google.iam.v1.Policy getIamPolicy() { } } /** - * - * *
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1352,8 +1175,6 @@ public Builder setIamPolicy(com.google.iam.v1.Policy value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1361,7 +1182,8 @@ public Builder setIamPolicy(com.google.iam.v1.Policy value) {
          *
          * .google.iam.v1.Policy iam_policy = 4;
          */
    -    public Builder setIamPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
    +    public Builder setIamPolicy(
    +        com.google.iam.v1.Policy.Builder builderForValue) {
           if (iamPolicyBuilder_ == null) {
             iamPolicy_ = builderForValue.build();
             onChanged();
    @@ -1372,8 +1194,6 @@ public Builder setIamPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1385,7 +1205,7 @@ public Builder mergeIamPolicy(com.google.iam.v1.Policy value) {
           if (iamPolicyBuilder_ == null) {
             if (iamPolicy_ != null) {
               iamPolicy_ =
    -              com.google.iam.v1.Policy.newBuilder(iamPolicy_).mergeFrom(value).buildPartial();
    +            com.google.iam.v1.Policy.newBuilder(iamPolicy_).mergeFrom(value).buildPartial();
             } else {
               iamPolicy_ = value;
             }
    @@ -1397,8 +1217,6 @@ public Builder mergeIamPolicy(com.google.iam.v1.Policy value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1418,8 +1236,6 @@ public Builder clearIamPolicy() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1428,13 +1244,11 @@ public Builder clearIamPolicy() {
          * .google.iam.v1.Policy iam_policy = 4;
          */
         public com.google.iam.v1.Policy.Builder getIamPolicyBuilder() {
    -
    +      
           onChanged();
           return getIamPolicyFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1446,12 +1260,11 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
           if (iamPolicyBuilder_ != null) {
             return iamPolicyBuilder_.getMessageOrBuilder();
           } else {
    -        return iamPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_;
    +        return iamPolicy_ == null ?
    +            com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_;
           }
         }
         /**
    -     *
    -     *
          * 
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1460,34 +1273,27 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
          * .google.iam.v1.Policy iam_policy = 4;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.iam.v1.Policy,
    -            com.google.iam.v1.Policy.Builder,
    -            com.google.iam.v1.PolicyOrBuilder>
    +        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> 
             getIamPolicyFieldBuilder() {
           if (iamPolicyBuilder_ == null) {
    -        iamPolicyBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.iam.v1.Policy,
    -                com.google.iam.v1.Policy.Builder,
    -                com.google.iam.v1.PolicyOrBuilder>(
    -                getIamPolicy(), getParentForChildren(), isClean());
    +        iamPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>(
    +                getIamPolicy(),
    +                getParentForChildren(),
    +                isClean());
             iamPolicy_ = null;
           }
           return iamPolicyBuilder_;
         }
     
    -    private com.google.protobuf.LazyStringList ancestors_ =
    -        com.google.protobuf.LazyStringArrayList.EMPTY;
    -
    +    private com.google.protobuf.LazyStringList ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY;
         private void ensureAncestorsIsMutable() {
           if (!((bitField0_ & 0x00000001) != 0)) {
             ancestors_ = new com.google.protobuf.LazyStringArrayList(ancestors_);
             bitField0_ |= 0x00000001;
    -      }
    +       }
         }
         /**
    -     *
    -     *
          * 
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -1497,15 +1303,13 @@ private void ensureAncestorsIsMutable() {
          * 
    * * repeated string ancestors = 6; - * * @return A list containing the ancestors. */ - public com.google.protobuf.ProtocolStringList getAncestorsList() { + public com.google.protobuf.ProtocolStringList + getAncestorsList() { return ancestors_.getUnmodifiableView(); } /** - * - * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -1515,15 +1319,12 @@ public com.google.protobuf.ProtocolStringList getAncestorsList() {
          * 
    * * repeated string ancestors = 6; - * * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); } /** - * - * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -1533,7 +1334,6 @@ public int getAncestorsCount() {
          * 
    * * repeated string ancestors = 6; - * * @param index The index of the element to return. * @return The ancestors at the given index. */ @@ -1541,8 +1341,6 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** - * - * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -1552,16 +1350,14 @@ public java.lang.String getAncestors(int index) {
          * 
    * * repeated string ancestors = 6; - * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - public com.google.protobuf.ByteString getAncestorsBytes(int index) { + public com.google.protobuf.ByteString + getAncestorsBytes(int index) { return ancestors_.getByteString(index); } /** - * - * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -1571,23 +1367,21 @@ public com.google.protobuf.ByteString getAncestorsBytes(int index) {
          * 
    * * repeated string ancestors = 6; - * * @param index The index to set the value at. * @param value The ancestors to set. * @return This builder for chaining. */ - public Builder setAncestors(int index, java.lang.String value) { + public Builder setAncestors( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAncestorsIsMutable(); + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); ancestors_.set(index, value); onChanged(); return this; } /** - * - * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -1597,22 +1391,20 @@ public Builder setAncestors(int index, java.lang.String value) {
          * 
    * * repeated string ancestors = 6; - * * @param value The ancestors to add. * @return This builder for chaining. */ - public Builder addAncestors(java.lang.String value) { + public Builder addAncestors( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAncestorsIsMutable(); + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); return this; } /** - * - * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -1622,19 +1414,18 @@ public Builder addAncestors(java.lang.String value) {
          * 
    * * repeated string ancestors = 6; - * * @param values The ancestors to add. * @return This builder for chaining. */ - public Builder addAllAncestors(java.lang.Iterable values) { + public Builder addAllAncestors( + java.lang.Iterable values) { ensureAncestorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ancestors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ancestors_); onChanged(); return this; } /** - * - * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -1644,7 +1435,6 @@ public Builder addAllAncestors(java.lang.Iterable values) {
          * 
    * * repeated string ancestors = 6; - * * @return This builder for chaining. */ public Builder clearAncestors() { @@ -1654,8 +1444,6 @@ public Builder clearAncestors() { return this; } /** - * - * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -1665,23 +1453,23 @@ public Builder clearAncestors() {
          * 
    * * repeated string ancestors = 6; - * * @param value The bytes of the ancestors to add. * @return This builder for chaining. */ - public Builder addAncestorsBytes(com.google.protobuf.ByteString value) { + public Builder addAncestorsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1691,12 +1479,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.Asset) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.Asset) private static final com.google.cloud.asset.v1p2beta1.Asset DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.Asset(); } @@ -1705,16 +1493,27 @@ public static com.google.cloud.asset.v1p2beta1.Asset getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Asset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Asset(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Asset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1729,4 +1528,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.Asset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetOrBuilder.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetOrBuilder.java similarity index 83% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetOrBuilder.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetOrBuilder.java index 6396365adb9e..c7aacd76368d 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/assets.proto package com.google.cloud.asset.v1p2beta1; -public interface AssetOrBuilder - extends +public interface AssetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.Asset) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The full name of the asset. For example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -35,13 +17,10 @@ public interface AssetOrBuilder
        * 
    * * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
        * The full name of the asset. For example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -51,63 +30,50 @@ public interface AssetOrBuilder
        * 
    * * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
        * Type of the asset. Example: "compute.googleapis.com/Disk".
        * 
    * * string asset_type = 2; - * * @return The assetType. */ java.lang.String getAssetType(); /** - * - * *
        * Type of the asset. Example: "compute.googleapis.com/Disk".
        * 
    * * string asset_type = 2; - * * @return The bytes for assetType. */ - com.google.protobuf.ByteString getAssetTypeBytes(); + com.google.protobuf.ByteString + getAssetTypeBytes(); /** - * - * *
        * Representation of the resource.
        * 
    * * .google.cloud.asset.v1p2beta1.Resource resource = 3; - * * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
        * Representation of the resource.
        * 
    * * .google.cloud.asset.v1p2beta1.Resource resource = 3; - * * @return The resource. */ com.google.cloud.asset.v1p2beta1.Resource getResource(); /** - * - * *
        * Representation of the resource.
        * 
    @@ -117,34 +83,26 @@ public interface AssetOrBuilder com.google.cloud.asset.v1p2beta1.ResourceOrBuilder getResourceOrBuilder(); /** - * - * *
        * Representation of the actual Cloud IAM policy set on a cloud resource. For
        * each resource, there must be at most one Cloud IAM policy set on it.
        * 
    * * .google.iam.v1.Policy iam_policy = 4; - * * @return Whether the iamPolicy field is set. */ boolean hasIamPolicy(); /** - * - * *
        * Representation of the actual Cloud IAM policy set on a cloud resource. For
        * each resource, there must be at most one Cloud IAM policy set on it.
        * 
    * * .google.iam.v1.Policy iam_policy = 4; - * * @return The iamPolicy. */ com.google.iam.v1.Policy getIamPolicy(); /** - * - * *
        * Representation of the actual Cloud IAM policy set on a cloud resource. For
        * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -155,8 +113,6 @@ public interface AssetOrBuilder
       com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -166,13 +122,11 @@ public interface AssetOrBuilder
        * 
    * * repeated string ancestors = 6; - * * @return A list containing the ancestors. */ - java.util.List getAncestorsList(); + java.util.List + getAncestorsList(); /** - * - * *
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -182,13 +136,10 @@ public interface AssetOrBuilder
        * 
    * * repeated string ancestors = 6; - * * @return The count of ancestors. */ int getAncestorsCount(); /** - * - * *
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -198,14 +149,11 @@ public interface AssetOrBuilder
        * 
    * * repeated string ancestors = 6; - * * @param index The index of the element to return. * @return The ancestors at the given index. */ java.lang.String getAncestors(int index); /** - * - * *
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -215,9 +163,9 @@ public interface AssetOrBuilder
        * 
    * * repeated string ancestors = 6; - * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - com.google.protobuf.ByteString getAncestorsBytes(int index); + com.google.protobuf.ByteString + getAncestorsBytes(int index); } diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetProto.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetProto.java new file mode 100644 index 000000000000..6e5b09f52b61 --- /dev/null +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetProto.java @@ -0,0 +1,108 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1p2beta1/assets.proto + +package com.google.cloud.asset.v1p2beta1; + +public final class AssetProto { + private AssetProto() {} + 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_asset_v1p2beta1_TemporalAsset_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_TimeWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_Asset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_Resource_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/asset/v1p2beta1/assets.pr" + + "oto\022\034google.cloud.asset.v1p2beta1\032\032googl" + + "e/iam/v1/policy.proto\032\034google/protobuf/s" + + "truct.proto\032\037google/protobuf/timestamp.p" + + "roto\"\216\001\n\rTemporalAsset\0228\n\006window\030\001 \001(\0132(" + + ".google.cloud.asset.v1p2beta1.TimeWindow" + + "\022\017\n\007deleted\030\002 \001(\010\0222\n\005asset\030\003 \001(\0132#.googl" + + "e.cloud.asset.v1p2beta1.Asset\"j\n\nTimeWin" + + "dow\022.\n\nstart_time\030\001 \001(\0132\032.google.protobu" + + "f.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.google.p" + + "rotobuf.Timestamp\"\241\001\n\005Asset\022\014\n\004name\030\001 \001(" + + "\t\022\022\n\nasset_type\030\002 \001(\t\0228\n\010resource\030\003 \001(\0132" + + "&.google.cloud.asset.v1p2beta1.Resource\022" + + ")\n\niam_policy\030\004 \001(\0132\025.google.iam.v1.Poli" + + "cy\022\021\n\tancestors\030\006 \003(\t\"\240\001\n\010Resource\022\017\n\007ve" + + "rsion\030\001 \001(\t\022\036\n\026discovery_document_uri\030\002 " + + "\001(\t\022\026\n\016discovery_name\030\003 \001(\t\022\024\n\014resource_" + + "url\030\004 \001(\t\022\016\n\006parent\030\005 \001(\t\022%\n\004data\030\006 \001(\0132" + + "\027.google.protobuf.StructB\264\001\n com.google." + + "cloud.asset.v1p2beta1B\nAssetProtoP\001ZAgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/asset/v1p2beta1;asset\370\001\001\252\002\034Google.Cloud" + + ".Asset.v1p2beta1\312\002\034Google\\Cloud\\Asset\\V1" + + "p2beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_descriptor, + new java.lang.String[] { "Window", "Deleted", "Asset", }); + internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_asset_v1p2beta1_TimeWindow_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor, + new java.lang.String[] { "StartTime", "EndTime", }); + internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_asset_v1p2beta1_Asset_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor, + new java.lang.String[] { "Name", "AssetType", "Resource", "IamPolicy", "Ancestors", }); + internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_asset_v1p2beta1_Resource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor, + new java.lang.String[] { "Version", "DiscoveryDocumentUri", "DiscoveryName", "ResourceUrl", "Parent", "Data", }); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceProto.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceProto.java new file mode 100644 index 000000000000..4dac20305692 --- /dev/null +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceProto.java @@ -0,0 +1,245 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1p2beta1/asset_service.proto + +package com.google.cloud.asset.v1p2beta1; + +public final class AssetServiceProto { + private AssetServiceProto() {} + 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_asset_v1p2beta1_CreateFeedRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_Feed_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/asset/v1p2beta1/asset_ser" + + "vice.proto\022\034google.cloud.asset.v1p2beta1" + + "\032\034google/api/annotations.proto\032\027google/a" + + "pi/client.proto\032\037google/api/field_behavi" + + "or.proto\032\031google/api/resource.proto\032)goo" + + "gle/cloud/asset/v1p2beta1/assets.proto\032\033" + + "google/protobuf/empty.proto\032 google/prot" + + "obuf/field_mask.proto\"u\n\021CreateFeedReque" + + "st\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\024\n\007feed_id\030\002 \001(\t" + + "B\003\340A\002\0225\n\004feed\030\003 \001(\0132\".google.cloud.asset" + + ".v1p2beta1.FeedB\003\340A\002\"F\n\016GetFeedRequest\0224" + + "\n\004name\030\001 \001(\tB&\340A\002\372A \n\036cloudasset.googlea" + + "pis.com/Feed\"\'\n\020ListFeedsRequest\022\023\n\006pare" + + "nt\030\001 \001(\tB\003\340A\002\"F\n\021ListFeedsResponse\0221\n\005fe" + + "eds\030\001 \003(\0132\".google.cloud.asset.v1p2beta1" + + ".Feed\"\200\001\n\021UpdateFeedRequest\0225\n\004feed\030\001 \001(" + + "\0132\".google.cloud.asset.v1p2beta1.FeedB\003\340" + + "A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobu" + + "f.FieldMaskB\003\340A\002\"I\n\021DeleteFeedRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n\036cloudasset.googleap" + + "is.com/Feed\"f\n\014OutputConfig\022G\n\017gcs_desti" + + "nation\030\001 \001(\0132,.google.cloud.asset.v1p2be" + + "ta1.GcsDestinationH\000B\r\n\013destination\"-\n\016G" + + "csDestination\022\r\n\003uri\030\001 \001(\tH\000B\014\n\nobject_u" + + "ri\"\"\n\021PubsubDestination\022\r\n\005topic\030\001 \001(\t\"p" + + "\n\020FeedOutputConfig\022M\n\022pubsub_destination" + + "\030\001 \001(\0132/.google.cloud.asset.v1p2beta1.Pu" + + "bsubDestinationH\000B\r\n\013destination\"\351\002\n\004Fee" + + "d\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\013asset_names\030\002 \003(" + + "\t\022\023\n\013asset_types\030\003 \003(\t\022?\n\014content_type\030\004" + + " \001(\0162).google.cloud.asset.v1p2beta1.Cont" + + "entType\022O\n\022feed_output_config\030\005 \001(\0132..go" + + "ogle.cloud.asset.v1p2beta1.FeedOutputCon" + + "figB\003\340A\002:\221\001\352A\215\001\n\036cloudasset.googleapis.c" + + "om/Feed\022\037projects/{project}/feeds/{feed}" + + "\022\035folders/{folder}/feeds/{feed}\022)organiz" + + "ations/{organization}/feeds/{feed} \001*I\n\013" + + "ContentType\022\034\n\030CONTENT_TYPE_UNSPECIFIED\020" + + "\000\022\014\n\010RESOURCE\020\001\022\016\n\nIAM_POLICY\020\0022\277\006\n\014Asse" + + "tService\022\224\001\n\nCreateFeed\022/.google.cloud.a" + + "sset.v1p2beta1.CreateFeedRequest\032\".googl" + + "e.cloud.asset.v1p2beta1.Feed\"1\202\323\344\223\002\"\"\035/v" + + "1p2beta1/{parent=*/*}/feeds:\001*\332A\006parent\022" + + "\211\001\n\007GetFeed\022,.google.cloud.asset.v1p2bet" + + "a1.GetFeedRequest\032\".google.cloud.asset.v" + + "1p2beta1.Feed\",\202\323\344\223\002\037\022\035/v1p2beta1/{name=" + + "*/*/feeds/*}\332A\004name\022\234\001\n\tListFeeds\022..goog" + + "le.cloud.asset.v1p2beta1.ListFeedsReques" + + "t\032/.google.cloud.asset.v1p2beta1.ListFee" + + "dsResponse\".\202\323\344\223\002\037\022\035/v1p2beta1/{parent=*" + + "/*}/feeds\332A\006parent\022\227\001\n\nUpdateFeed\022/.goog" + + "le.cloud.asset.v1p2beta1.UpdateFeedReque" + + "st\032\".google.cloud.asset.v1p2beta1.Feed\"4" + + "\202\323\344\223\002\'2\"/v1p2beta1/{feed.name=*/*/feeds/" + + "*}:\001*\332A\004feed\022\203\001\n\nDeleteFeed\022/.google.clo" + + "ud.asset.v1p2beta1.DeleteFeedRequest\032\026.g" + + "oogle.protobuf.Empty\",\202\323\344\223\002\037*\035/v1p2beta1" + + "/{name=*/*/feeds/*}\332A\004name\032M\312A\031cloudasse" + + "t.googleapis.com\322A.https://www.googleapi" + + "s.com/auth/cloud-platformB\270\001\n com.google" + + ".cloud.asset.v1p2beta1B\021AssetServiceProt" + + "oP\001ZAgoogle.golang.org/genproto/googleap" + + "is/cloud/asset/v1p2beta1;asset\252\002\034Google." + + "Cloud.Asset.V1p2Beta1\312\002\034Google\\Cloud\\Ass" + + "et\\V1p2beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.asset.v1p2beta1.AssetProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_descriptor, + new java.lang.String[] { "Parent", "FeedId", "Feed", }); + internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor, + new java.lang.String[] { "Parent", }); + internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor, + new java.lang.String[] { "Feeds", }); + internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor, + new java.lang.String[] { "Feed", "UpdateMask", }); + internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_asset_v1p2beta1_OutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "Destination", }); + internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_asset_v1p2beta1_GcsDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor, + new java.lang.String[] { "Uri", "ObjectUri", }); + internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor, + new java.lang.String[] { "Topic", }); + internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor, + new java.lang.String[] { "PubsubDestination", "Destination", }); + internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_asset_v1p2beta1_Feed_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor, + new java.lang.String[] { "Name", "AssetNames", "AssetTypes", "ContentType", "FeedOutputConfig", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + 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.asset.v1p2beta1.AssetProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ContentType.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ContentType.java similarity index 66% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ContentType.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ContentType.java index 6d7dda275e30..dffdb7a8ca46 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ContentType.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ContentType.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; /** - * - * *
      * Asset content type.
      * 
    * * Protobuf enum {@code google.cloud.asset.v1p2beta1.ContentType} */ -public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { +public enum ContentType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unspecified content type.
        * 
    @@ -39,8 +21,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ CONTENT_TYPE_UNSPECIFIED(0), /** - * - * *
        * Resource metadata.
        * 
    @@ -49,8 +29,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ RESOURCE(1), /** - * - * *
        * The actual IAM policy set on a resource.
        * 
    @@ -62,8 +40,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unspecified content type.
        * 
    @@ -72,8 +48,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONTENT_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Resource metadata.
        * 
    @@ -82,8 +56,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RESOURCE_VALUE = 1; /** - * - * *
        * The actual IAM policy set on a resource.
        * 
    @@ -92,6 +64,7 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IAM_POLICY_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -116,49 +89,49 @@ public static ContentType valueOf(int value) { */ public static ContentType forNumber(int value) { switch (value) { - case 0: - return CONTENT_TYPE_UNSPECIFIED; - case 1: - return RESOURCE; - case 2: - return IAM_POLICY; - default: - return null; + case 0: return CONTENT_TYPE_UNSPECIFIED; + case 1: return RESOURCE; + case 2: return IAM_POLICY; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + 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 ContentType findValueByNumber(int number) { - return ContentType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + ContentType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ContentType findValueByNumber(int number) { + return ContentType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.asset.v1p2beta1.AssetServiceProto.getDescriptor().getEnumTypes().get(0); } private static final ContentType[] VALUES = values(); - public static ContentType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ContentType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -174,3 +147,4 @@ private ContentType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.asset.v1p2beta1.ContentType) } + diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequest.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequest.java similarity index 69% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequest.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequest.java index bac9e67c19cf..9164c0afbde7 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequest.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; /** - * - * *
      * Create asset feed request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.CreateFeedRequest} */ -public final class CreateFeedRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateFeedRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.CreateFeedRequest) CreateFeedRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateFeedRequest.newBuilder() to construct. private CreateFeedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateFeedRequest() { parent_ = ""; feedId_ = ""; @@ -44,104 +26,32 @@ private CreateFeedRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateFeedRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private CreateFeedRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - feedId_ = s; - break; - } - case 26: - { - com.google.cloud.asset.v1p2beta1.Feed.Builder subBuilder = null; - if (feed_ != null) { - subBuilder = feed_.toBuilder(); - } - feed_ = - input.readMessage( - com.google.cloud.asset.v1p2beta1.Feed.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(feed_); - feed_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.CreateFeedRequest.class, - com.google.cloud.asset.v1p2beta1.CreateFeedRequest.Builder.class); + com.google.cloud.asset.v1p2beta1.CreateFeedRequest.class, com.google.cloud.asset.v1p2beta1.CreateFeedRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
        * Required. The name of the project/folder/organization where this feed
        * should be created in. It can only be an organization number (such as
    @@ -151,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -160,15 +69,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
        * Required. The name of the project/folder/organization where this feed
        * should be created in. It can only be an organization number (such as
    @@ -178,15 +86,16 @@ public java.lang.String getParent() {
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -197,15 +106,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FEED_ID_FIELD_NUMBER = 2; private volatile java.lang.Object feedId_; /** - * - * *
        * Required. This is the client-assigned asset feed identifier and it needs to
        * be unique under a specific parent project/folder/organization.
        * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The feedId. */ @java.lang.Override @@ -214,30 +120,30 @@ public java.lang.String getFeedId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); feedId_ = s; return s; } } /** - * - * *
        * Required. This is the client-assigned asset feed identifier and it needs to
        * be unique under a specific parent project/folder/organization.
        * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for feedId. */ @java.lang.Override - public com.google.protobuf.ByteString getFeedIdBytes() { + public com.google.protobuf.ByteString + getFeedIdBytes() { java.lang.Object ref = feedId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); feedId_ = b; return b; } else { @@ -248,8 +154,6 @@ public com.google.protobuf.ByteString getFeedIdBytes() { public static final int FEED_FIELD_NUMBER = 3; private com.google.cloud.asset.v1p2beta1.Feed feed_; /** - * - * *
        * Required. The feed details. The field `name` must be empty and it will be generated
        * in the format of:
    @@ -258,9 +162,7 @@ public com.google.protobuf.ByteString getFeedIdBytes() {
        * organizations/organization_number/feeds/feed_id
        * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the feed field is set. */ @java.lang.Override @@ -268,8 +170,6 @@ public boolean hasFeed() { return feed_ != null; } /** - * - * *
        * Required. The feed details. The field `name` must be empty and it will be generated
        * in the format of:
    @@ -278,9 +178,7 @@ public boolean hasFeed() {
        * organizations/organization_number/feeds/feed_id
        * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The feed. */ @java.lang.Override @@ -288,8 +186,6 @@ public com.google.cloud.asset.v1p2beta1.Feed getFeed() { return feed_ == null ? com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance() : feed_; } /** - * - * *
        * Required. The feed details. The field `name` must be empty and it will be generated
        * in the format of:
    @@ -298,8 +194,7 @@ public com.google.cloud.asset.v1p2beta1.Feed getFeed() {
        * organizations/organization_number/feeds/feed_id
        * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedOrBuilder() { @@ -307,7 +202,6 @@ public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -319,7 +213,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -329,7 +224,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (feed_ != null) { output.writeMessage(3, getFeed()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -345,9 +240,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, feedId_); } if (feed_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFeed()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getFeed()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -355,21 +251,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.CreateFeedRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1p2beta1.CreateFeedRequest other = - (com.google.cloud.asset.v1p2beta1.CreateFeedRequest) obj; + com.google.cloud.asset.v1p2beta1.CreateFeedRequest other = (com.google.cloud.asset.v1p2beta1.CreateFeedRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFeedId().equals(other.getFeedId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFeedId() + .equals(other.getFeedId())) return false; if (hasFeed() != other.hasFeed()) return false; if (hasFeed()) { - if (!getFeed().equals(other.getFeed())) return false; + if (!getFeed() + .equals(other.getFeed())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -388,148 +286,135 @@ public int hashCode() { hash = (37 * hash) + FEED_FIELD_NUMBER; hash = (53 * hash) + getFeed().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest 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.asset.v1p2beta1.CreateFeedRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.CreateFeedRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Create asset feed request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.CreateFeedRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.CreateFeedRequest) com.google.cloud.asset.v1p2beta1.CreateFeedRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.CreateFeedRequest.class, - com.google.cloud.asset.v1p2beta1.CreateFeedRequest.Builder.class); + com.google.cloud.asset.v1p2beta1.CreateFeedRequest.class, com.google.cloud.asset.v1p2beta1.CreateFeedRequest.Builder.class); } // Construct using com.google.cloud.asset.v1p2beta1.CreateFeedRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -547,9 +432,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_descriptor; } @java.lang.Override @@ -568,8 +453,7 @@ public com.google.cloud.asset.v1p2beta1.CreateFeedRequest build() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.CreateFeedRequest buildPartial() { - com.google.cloud.asset.v1p2beta1.CreateFeedRequest result = - new com.google.cloud.asset.v1p2beta1.CreateFeedRequest(this); + com.google.cloud.asset.v1p2beta1.CreateFeedRequest result = new com.google.cloud.asset.v1p2beta1.CreateFeedRequest(this); result.parent_ = parent_; result.feedId_ = feedId_; if (feedBuilder_ == null) { @@ -585,39 +469,38 @@ public com.google.cloud.asset.v1p2beta1.CreateFeedRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p2beta1.CreateFeedRequest) { - return mergeFrom((com.google.cloud.asset.v1p2beta1.CreateFeedRequest) other); + return mergeFrom((com.google.cloud.asset.v1p2beta1.CreateFeedRequest)other); } else { super.mergeFrom(other); return this; @@ -625,8 +508,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.CreateFeedRequest other) { - if (other == com.google.cloud.asset.v1p2beta1.CreateFeedRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1p2beta1.CreateFeedRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -638,7 +520,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.CreateFeedRequest othe if (other.hasFeed()) { mergeFeed(other.getFeed()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -653,25 +535,52 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p2beta1.CreateFeedRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + feedId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + input.readMessage( + getFeedFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1p2beta1.CreateFeedRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object parent_ = ""; /** - * - * *
          * Required. The name of the project/folder/organization where this feed
          * should be created in. It can only be an organization number (such as
    @@ -681,13 +590,13 @@ public Builder mergeFrom(
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -696,8 +605,6 @@ public java.lang.String getParent() { } } /** - * - * *
          * Required. The name of the project/folder/organization where this feed
          * should be created in. It can only be an organization number (such as
    @@ -707,14 +614,15 @@ public java.lang.String getParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -722,8 +630,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
          * Required. The name of the project/folder/organization where this feed
          * should be created in. It can only be an organization number (such as
    @@ -733,22 +639,20 @@ public com.google.protobuf.ByteString getParentBytes() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
          * Required. The name of the project/folder/organization where this feed
          * should be created in. It can only be an organization number (such as
    @@ -758,18 +662,15 @@ public Builder setParent(java.lang.String value) {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
          * Required. The name of the project/folder/organization where this feed
          * should be created in. It can only be an organization number (such as
    @@ -779,16 +680,16 @@ public Builder clearParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -796,21 +697,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object feedId_ = ""; /** - * - * *
          * Required. This is the client-assigned asset feed identifier and it needs to
          * be unique under a specific parent project/folder/organization.
          * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The feedId. */ public java.lang.String getFeedId() { java.lang.Object ref = feedId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); feedId_ = s; return s; @@ -819,22 +718,21 @@ public java.lang.String getFeedId() { } } /** - * - * *
          * Required. This is the client-assigned asset feed identifier and it needs to
          * be unique under a specific parent project/folder/organization.
          * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for feedId. */ - public com.google.protobuf.ByteString getFeedIdBytes() { + public com.google.protobuf.ByteString + getFeedIdBytes() { java.lang.Object ref = feedId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); feedId_ = b; return b; } else { @@ -842,64 +740,57 @@ public com.google.protobuf.ByteString getFeedIdBytes() { } } /** - * - * *
          * Required. This is the client-assigned asset feed identifier and it needs to
          * be unique under a specific parent project/folder/organization.
          * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The feedId to set. * @return This builder for chaining. */ - public Builder setFeedId(java.lang.String value) { + public Builder setFeedId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + feedId_ = value; onChanged(); return this; } /** - * - * *
          * Required. This is the client-assigned asset feed identifier and it needs to
          * be unique under a specific parent project/folder/organization.
          * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFeedId() { - + feedId_ = getDefaultInstance().getFeedId(); onChanged(); return this; } /** - * - * *
          * Required. This is the client-assigned asset feed identifier and it needs to
          * be unique under a specific parent project/folder/organization.
          * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for feedId to set. * @return This builder for chaining. */ - public Builder setFeedIdBytes(com.google.protobuf.ByteString value) { + public Builder setFeedIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + feedId_ = value; onChanged(); return this; @@ -907,13 +798,8 @@ public Builder setFeedIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.asset.v1p2beta1.Feed feed_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Feed, - com.google.cloud.asset.v1p2beta1.Feed.Builder, - com.google.cloud.asset.v1p2beta1.FeedOrBuilder> - feedBuilder_; + com.google.cloud.asset.v1p2beta1.Feed, com.google.cloud.asset.v1p2beta1.Feed.Builder, com.google.cloud.asset.v1p2beta1.FeedOrBuilder> feedBuilder_; /** - * - * *
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -922,17 +808,13 @@ public Builder setFeedIdBytes(com.google.protobuf.ByteString value) {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the feed field is set. */ public boolean hasFeed() { return feedBuilder_ != null || feed_ != null; } /** - * - * *
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -941,9 +823,7 @@ public boolean hasFeed() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The feed. */ public com.google.cloud.asset.v1p2beta1.Feed getFeed() { @@ -954,8 +834,6 @@ public com.google.cloud.asset.v1p2beta1.Feed getFeed() { } } /** - * - * *
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -964,8 +842,7 @@ public com.google.cloud.asset.v1p2beta1.Feed getFeed() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFeed(com.google.cloud.asset.v1p2beta1.Feed value) { if (feedBuilder_ == null) { @@ -981,8 +858,6 @@ public Builder setFeed(com.google.cloud.asset.v1p2beta1.Feed value) { return this; } /** - * - * *
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -991,10 +866,10 @@ public Builder setFeed(com.google.cloud.asset.v1p2beta1.Feed value) {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setFeed(com.google.cloud.asset.v1p2beta1.Feed.Builder builderForValue) { + public Builder setFeed( + com.google.cloud.asset.v1p2beta1.Feed.Builder builderForValue) { if (feedBuilder_ == null) { feed_ = builderForValue.build(); onChanged(); @@ -1005,8 +880,6 @@ public Builder setFeed(com.google.cloud.asset.v1p2beta1.Feed.Builder builderForV return this; } /** - * - * *
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -1015,16 +888,13 @@ public Builder setFeed(com.google.cloud.asset.v1p2beta1.Feed.Builder builderForV
          * organizations/organization_number/feeds/feed_id
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeFeed(com.google.cloud.asset.v1p2beta1.Feed value) { if (feedBuilder_ == null) { if (feed_ != null) { feed_ = - com.google.cloud.asset.v1p2beta1.Feed.newBuilder(feed_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1p2beta1.Feed.newBuilder(feed_).mergeFrom(value).buildPartial(); } else { feed_ = value; } @@ -1036,8 +906,6 @@ public Builder mergeFeed(com.google.cloud.asset.v1p2beta1.Feed value) { return this; } /** - * - * *
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -1046,8 +914,7 @@ public Builder mergeFeed(com.google.cloud.asset.v1p2beta1.Feed value) {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearFeed() { if (feedBuilder_ == null) { @@ -1061,8 +928,6 @@ public Builder clearFeed() { return this; } /** - * - * *
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -1071,17 +936,14 @@ public Builder clearFeed() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.asset.v1p2beta1.Feed.Builder getFeedBuilder() { - + onChanged(); return getFeedFieldBuilder().getBuilder(); } /** - * - * *
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -1090,19 +952,17 @@ public com.google.cloud.asset.v1p2beta1.Feed.Builder getFeedBuilder() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedOrBuilder() { if (feedBuilder_ != null) { return feedBuilder_.getMessageOrBuilder(); } else { - return feed_ == null ? com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance() : feed_; + return feed_ == null ? + com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance() : feed_; } } /** - * - * *
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -1111,28 +971,24 @@ public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedOrBuilder() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Feed, - com.google.cloud.asset.v1p2beta1.Feed.Builder, - com.google.cloud.asset.v1p2beta1.FeedOrBuilder> + com.google.cloud.asset.v1p2beta1.Feed, com.google.cloud.asset.v1p2beta1.Feed.Builder, com.google.cloud.asset.v1p2beta1.FeedOrBuilder> getFeedFieldBuilder() { if (feedBuilder_ == null) { - feedBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Feed, - com.google.cloud.asset.v1p2beta1.Feed.Builder, - com.google.cloud.asset.v1p2beta1.FeedOrBuilder>( - getFeed(), getParentForChildren(), isClean()); + feedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p2beta1.Feed, com.google.cloud.asset.v1p2beta1.Feed.Builder, com.google.cloud.asset.v1p2beta1.FeedOrBuilder>( + getFeed(), + getParentForChildren(), + isClean()); feed_ = null; } return feedBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1142,12 +998,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.CreateFeedRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.CreateFeedRequest) private static final com.google.cloud.asset.v1p2beta1.CreateFeedRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.CreateFeedRequest(); } @@ -1156,16 +1012,27 @@ public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFeedRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateFeedRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFeedRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1180,4 +1047,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.CreateFeedRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequestOrBuilder.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequestOrBuilder.java similarity index 76% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequestOrBuilder.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequestOrBuilder.java index 559d9f10b9e0..c8fc925433a5 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequestOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; -public interface CreateFeedRequestOrBuilder - extends +public interface CreateFeedRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.CreateFeedRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The name of the project/folder/organization where this feed
        * should be created in. It can only be an organization number (such as
    @@ -35,13 +17,10 @@ public interface CreateFeedRequestOrBuilder
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
        * Required. The name of the project/folder/organization where this feed
        * should be created in. It can only be an organization number (such as
    @@ -51,41 +30,34 @@ public interface CreateFeedRequestOrBuilder
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
        * Required. This is the client-assigned asset feed identifier and it needs to
        * be unique under a specific parent project/folder/organization.
        * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The feedId. */ java.lang.String getFeedId(); /** - * - * *
        * Required. This is the client-assigned asset feed identifier and it needs to
        * be unique under a specific parent project/folder/organization.
        * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for feedId. */ - com.google.protobuf.ByteString getFeedIdBytes(); + com.google.protobuf.ByteString + getFeedIdBytes(); /** - * - * *
        * Required. The feed details. The field `name` must be empty and it will be generated
        * in the format of:
    @@ -94,15 +66,11 @@ public interface CreateFeedRequestOrBuilder
        * organizations/organization_number/feeds/feed_id
        * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the feed field is set. */ boolean hasFeed(); /** - * - * *
        * Required. The feed details. The field `name` must be empty and it will be generated
        * in the format of:
    @@ -111,15 +79,11 @@ public interface CreateFeedRequestOrBuilder
        * organizations/organization_number/feeds/feed_id
        * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The feed. */ com.google.cloud.asset.v1p2beta1.Feed getFeed(); /** - * - * *
        * Required. The feed details. The field `name` must be empty and it will be generated
        * in the format of:
    @@ -128,8 +92,7 @@ public interface CreateFeedRequestOrBuilder
        * organizations/organization_number/feeds/feed_id
        * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedOrBuilder(); } diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequest.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequest.java similarity index 58% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequest.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequest.java index efbf7b40de63..56d31b6aca26 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequest.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequest.java @@ -1,115 +1,52 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; -/** Protobuf type {@code google.cloud.asset.v1p2beta1.DeleteFeedRequest} */ -public final class DeleteFeedRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.asset.v1p2beta1.DeleteFeedRequest} + */ +public final class DeleteFeedRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.DeleteFeedRequest) DeleteFeedRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteFeedRequest.newBuilder() to construct. private DeleteFeedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteFeedRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteFeedRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private DeleteFeedRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.class, - com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.Builder.class); + com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.class, com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
        * Required. The name of the feed and it must be in the format of:
        * projects/project_number/feeds/feed_id
    @@ -117,10 +54,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * organizations/organization_number/feeds/feed_id
        * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -129,15 +63,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
        * Required. The name of the feed and it must be in the format of:
        * projects/project_number/feeds/feed_id
    @@ -145,18 +78,17 @@ public java.lang.String getName() {
        * organizations/organization_number/feeds/feed_id
        * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,11 +108,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -193,7 +125,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -201,16 +133,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.DeleteFeedRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1p2beta1.DeleteFeedRequest other = - (com.google.cloud.asset.v1p2beta1.DeleteFeedRequest) obj; + com.google.cloud.asset.v1p2beta1.DeleteFeedRequest other = (com.google.cloud.asset.v1p2beta1.DeleteFeedRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,140 +155,131 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest 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.asset.v1p2beta1.DeleteFeedRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.DeleteFeedRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.asset.v1p2beta1.DeleteFeedRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.asset.v1p2beta1.DeleteFeedRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.DeleteFeedRequest) com.google.cloud.asset.v1p2beta1.DeleteFeedRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.class, - com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.Builder.class); + com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.class, com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.Builder.class); } // Construct using com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -366,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor; } @java.lang.Override @@ -387,8 +310,7 @@ public com.google.cloud.asset.v1p2beta1.DeleteFeedRequest build() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.DeleteFeedRequest buildPartial() { - com.google.cloud.asset.v1p2beta1.DeleteFeedRequest result = - new com.google.cloud.asset.v1p2beta1.DeleteFeedRequest(this); + com.google.cloud.asset.v1p2beta1.DeleteFeedRequest result = new com.google.cloud.asset.v1p2beta1.DeleteFeedRequest(this); result.name_ = name_; onBuilt(); return result; @@ -398,39 +320,38 @@ public com.google.cloud.asset.v1p2beta1.DeleteFeedRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p2beta1.DeleteFeedRequest) { - return mergeFrom((com.google.cloud.asset.v1p2beta1.DeleteFeedRequest) other); + return mergeFrom((com.google.cloud.asset.v1p2beta1.DeleteFeedRequest)other); } else { super.mergeFrom(other); return this; @@ -438,13 +359,12 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.DeleteFeedRequest other) { - if (other == com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -459,25 +379,40 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1p2beta1.DeleteFeedRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object name_ = ""; /** - * - * *
          * Required. The name of the feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -485,16 +420,14 @@ public Builder mergeFrom(
          * organizations/organization_number/feeds/feed_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -503,8 +436,6 @@ public java.lang.String getName() { } } /** - * - * *
          * Required. The name of the feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -512,17 +443,16 @@ public java.lang.String getName() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -530,8 +460,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
          * Required. The name of the feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -539,25 +467,21 @@ public com.google.protobuf.ByteString getNameBytes() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
          * Required. The name of the feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -565,21 +489,16 @@ public Builder setName(java.lang.String value) {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
          * Required. The name of the feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -587,26 +506,24 @@ public Builder clearName() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -616,12 +533,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.DeleteFeedRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.DeleteFeedRequest) private static final com.google.cloud.asset.v1p2beta1.DeleteFeedRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.DeleteFeedRequest(); } @@ -630,16 +547,27 @@ public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteFeedRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteFeedRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFeedRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -654,4 +582,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.DeleteFeedRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequestOrBuilder.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequestOrBuilder.java new file mode 100644 index 000000000000..7e01ca30edd5 --- /dev/null +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequestOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1p2beta1/asset_service.proto + +package com.google.cloud.asset.v1p2beta1; + +public interface DeleteFeedRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.DeleteFeedRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
    +   * Required. The name of the feed and it must be in the format of:
    +   * projects/project_number/feeds/feed_id
    +   * folders/folder_number/feeds/feed_id
    +   * organizations/organization_number/feeds/feed_id
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
    +   * Required. The name of the feed and it must be in the format of:
    +   * projects/project_number/feeds/feed_id
    +   * folders/folder_number/feeds/feed_id
    +   * organizations/organization_number/feeds/feed_id
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Feed.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Feed.java similarity index 73% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Feed.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Feed.java index 44085428ca11..0a792fb8c43f 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Feed.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Feed.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; /** - * - * *
      * An asset feed used to export asset updates to a destinations.
      * An asset feed filter controls what updates are exported.
    @@ -31,16 +14,15 @@
      *
      * Protobuf type {@code google.cloud.asset.v1p2beta1.Feed}
      */
    -public final class Feed extends com.google.protobuf.GeneratedMessageV3
    -    implements
    +public final class Feed extends
    +    com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.Feed)
         FeedOrBuilder {
    -  private static final long serialVersionUID = 0L;
    +private static final long serialVersionUID = 0L;
       // Use Feed.newBuilder() to construct.
       private Feed(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -
       private Feed() {
         name_ = "";
         assetNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    @@ -50,132 +32,32 @@ private Feed() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(
    +      UnusedPrivateParameter unused) {
         return new Feed();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet
    +  getUnknownFields() {
         return this.unknownFields;
       }
    -
    -  private Feed(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              name_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                assetNames_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              assetNames_.add(s);
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
    -                assetTypes_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000002;
    -              }
    -              assetTypes_.add(s);
    -              break;
    -            }
    -          case 32:
    -            {
    -              int rawValue = input.readEnum();
    -
    -              contentType_ = rawValue;
    -              break;
    -            }
    -          case 42:
    -            {
    -              com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder subBuilder = null;
    -              if (feedOutputConfig_ != null) {
    -                subBuilder = feedOutputConfig_.toBuilder();
    -              }
    -              feedOutputConfig_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p2beta1.FeedOutputConfig.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(feedOutputConfig_);
    -                feedOutputConfig_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        assetNames_ = assetNames_.getUnmodifiableView();
    -      }
    -      if (((mutable_bitField0_ & 0x00000002) != 0)) {
    -        assetTypes_ = assetTypes_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
    -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.cloud.asset.v1p2beta1.AssetServiceProto
    -        .internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor;
    +  public static final com.google.protobuf.Descriptors.Descriptor
    +      getDescriptor() {
    +    return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1p2beta1.AssetServiceProto
    -        .internal_static_google_cloud_asset_v1p2beta1_Feed_fieldAccessorTable
    +    return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_Feed_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1p2beta1.Feed.class,
    -            com.google.cloud.asset.v1p2beta1.Feed.Builder.class);
    +            com.google.cloud.asset.v1p2beta1.Feed.class, com.google.cloud.asset.v1p2beta1.Feed.Builder.class);
       }
     
       public static final int NAME_FIELD_NUMBER = 1;
       private volatile java.lang.Object name_;
       /**
    -   *
    -   *
        * 
        * Required. The format will be
        * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -186,7 +68,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -195,15 +76,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
        * Required. The format will be
        * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -214,15 +94,16 @@ public java.lang.String getName() {
        * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -233,8 +114,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ASSET_NAMES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList assetNames_; /** - * - * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -247,15 +126,13 @@ public com.google.protobuf.ByteString getNameBytes() {
        * 
    * * repeated string asset_names = 2; - * * @return A list containing the assetNames. */ - public com.google.protobuf.ProtocolStringList getAssetNamesList() { + public com.google.protobuf.ProtocolStringList + getAssetNamesList() { return assetNames_; } /** - * - * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -268,15 +145,12 @@ public com.google.protobuf.ProtocolStringList getAssetNamesList() {
        * 
    * * repeated string asset_names = 2; - * * @return The count of assetNames. */ public int getAssetNamesCount() { return assetNames_.size(); } /** - * - * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -289,7 +163,6 @@ public int getAssetNamesCount() {
        * 
    * * repeated string asset_names = 2; - * * @param index The index of the element to return. * @return The assetNames at the given index. */ @@ -297,8 +170,6 @@ public java.lang.String getAssetNames(int index) { return assetNames_.get(index); } /** - * - * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -311,19 +182,17 @@ public java.lang.String getAssetNames(int index) {
        * 
    * * repeated string asset_names = 2; - * * @param index The index of the value to return. * @return The bytes of the assetNames at the given index. */ - public com.google.protobuf.ByteString getAssetNamesBytes(int index) { + public com.google.protobuf.ByteString + getAssetNamesBytes(int index) { return assetNames_.getByteString(index); } public static final int ASSET_TYPES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList assetTypes_; /** - * - * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -335,15 +204,13 @@ public com.google.protobuf.ByteString getAssetNamesBytes(int index) {
        * 
    * * repeated string asset_types = 3; - * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList getAssetTypesList() { + public com.google.protobuf.ProtocolStringList + getAssetTypesList() { return assetTypes_; } /** - * - * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -355,15 +222,12 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() {
        * 
    * * repeated string asset_types = 3; - * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** - * - * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -375,7 +239,6 @@ public int getAssetTypesCount() {
        * 
    * * repeated string asset_types = 3; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -383,8 +246,6 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** - * - * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -396,66 +257,52 @@ public java.lang.String getAssetTypes(int index) {
        * 
    * * repeated string asset_types = 3; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString + getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } public static final int CONTENT_TYPE_FIELD_NUMBER = 4; private int contentType_; /** - * - * *
        * Asset content type. If not specified, no content but the asset name and
        * type will be returned.
        * 
    * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; - * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override - public int getContentTypeValue() { + @java.lang.Override public int getContentTypeValue() { return contentType_; } /** - * - * *
        * Asset content type. If not specified, no content but the asset name and
        * type will be returned.
        * 
    * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; - * * @return The contentType. */ - @java.lang.Override - public com.google.cloud.asset.v1p2beta1.ContentType getContentType() { + @java.lang.Override public com.google.cloud.asset.v1p2beta1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1p2beta1.ContentType result = - com.google.cloud.asset.v1p2beta1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1p2beta1.ContentType result = com.google.cloud.asset.v1p2beta1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1p2beta1.ContentType.UNRECOGNIZED : result; } public static final int FEED_OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.asset.v1p2beta1.FeedOutputConfig feedOutputConfig_; /** - * - * *
        * Required. Feed output configuration defining where the asset updates are
        * published to.
        * 
    * - * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the feedOutputConfig field is set. */ @java.lang.Override @@ -463,36 +310,25 @@ public boolean hasFeedOutputConfig() { return feedOutputConfig_ != null; } /** - * - * *
        * Required. Feed output configuration defining where the asset updates are
        * published to.
        * 
    * - * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The feedOutputConfig. */ @java.lang.Override public com.google.cloud.asset.v1p2beta1.FeedOutputConfig getFeedOutputConfig() { - return feedOutputConfig_ == null - ? com.google.cloud.asset.v1p2beta1.FeedOutputConfig.getDefaultInstance() - : feedOutputConfig_; + return feedOutputConfig_ == null ? com.google.cloud.asset.v1p2beta1.FeedOutputConfig.getDefaultInstance() : feedOutputConfig_; } /** - * - * *
        * Required. Feed output configuration defining where the asset updates are
        * published to.
        * 
    * - * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.asset.v1p2beta1.FeedOutputConfigOrBuilder getFeedOutputConfigOrBuilder() { @@ -500,7 +336,6 @@ public com.google.cloud.asset.v1p2beta1.FeedOutputConfigOrBuilder getFeedOutputC } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -512,7 +347,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -522,14 +358,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < assetTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, assetTypes_.getRaw(i)); } - if (contentType_ - != com.google.cloud.asset.v1p2beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + if (contentType_ != com.google.cloud.asset.v1p2beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, contentType_); } if (feedOutputConfig_ != null) { output.writeMessage(5, getFeedOutputConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -557,14 +392,15 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAssetTypesList().size(); } - if (contentType_ - != com.google.cloud.asset.v1p2beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, contentType_); + if (contentType_ != com.google.cloud.asset.v1p2beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, contentType_); } if (feedOutputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFeedOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getFeedOutputConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -572,22 +408,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.Feed)) { return super.equals(obj); } com.google.cloud.asset.v1p2beta1.Feed other = (com.google.cloud.asset.v1p2beta1.Feed) obj; - if (!getName().equals(other.getName())) return false; - if (!getAssetNamesList().equals(other.getAssetNamesList())) return false; - if (!getAssetTypesList().equals(other.getAssetTypesList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getAssetNamesList() + .equals(other.getAssetNamesList())) return false; + if (!getAssetTypesList() + .equals(other.getAssetTypesList())) return false; if (contentType_ != other.contentType_) return false; if (hasFeedOutputConfig() != other.hasFeedOutputConfig()) return false; if (hasFeedOutputConfig()) { - if (!getFeedOutputConfig().equals(other.getFeedOutputConfig())) return false; + if (!getFeedOutputConfig() + .equals(other.getFeedOutputConfig())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -614,108 +454,102 @@ public int hashCode() { hash = (37 * hash) + FEED_OUTPUT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getFeedOutputConfig().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1p2beta1.Feed parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p2beta1.Feed parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.Feed parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1p2beta1.Feed parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.asset.v1p2beta1.Feed parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.Feed 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.asset.v1p2beta1.Feed parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.Feed parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.Feed parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.Feed parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.Feed parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.Feed parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.Feed parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.Feed parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.Feed prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * An asset feed used to export asset updates to a destinations.
        * An asset feed filter controls what updates are exported.
    @@ -726,39 +560,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        * Protobuf type {@code google.cloud.asset.v1p2beta1.Feed}
        */
    -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    -      implements
    +  public static final class Builder extends
    +      com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.Feed)
           com.google.cloud.asset.v1p2beta1.FeedOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.cloud.asset.v1p2beta1.AssetServiceProto
    -          .internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor
    +        getDescriptor() {
    +      return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1p2beta1.AssetServiceProto
    -          .internal_static_google_cloud_asset_v1p2beta1_Feed_fieldAccessorTable
    +      return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_Feed_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1p2beta1.Feed.class,
    -              com.google.cloud.asset.v1p2beta1.Feed.Builder.class);
    +              com.google.cloud.asset.v1p2beta1.Feed.class, com.google.cloud.asset.v1p2beta1.Feed.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1p2beta1.Feed.newBuilder()
         private Builder() {
    -      maybeForceBuilderInitialization();
    +
         }
     
    -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    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();
    @@ -780,9 +608,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.cloud.asset.v1p2beta1.AssetServiceProto
    -          .internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor
    +        getDescriptorForType() {
    +      return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor;
         }
     
         @java.lang.Override
    @@ -801,8 +629,7 @@ public com.google.cloud.asset.v1p2beta1.Feed build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1p2beta1.Feed buildPartial() {
    -      com.google.cloud.asset.v1p2beta1.Feed result =
    -          new com.google.cloud.asset.v1p2beta1.Feed(this);
    +      com.google.cloud.asset.v1p2beta1.Feed result = new com.google.cloud.asset.v1p2beta1.Feed(this);
           int from_bitField0_ = bitField0_;
           result.name_ = name_;
           if (((bitField0_ & 0x00000001) != 0)) {
    @@ -829,39 +656,38 @@ public com.google.cloud.asset.v1p2beta1.Feed buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    -
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1p2beta1.Feed) {
    -        return mergeFrom((com.google.cloud.asset.v1p2beta1.Feed) other);
    +        return mergeFrom((com.google.cloud.asset.v1p2beta1.Feed)other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -900,7 +726,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.Feed other) {
           if (other.hasFeedOutputConfig()) {
             mergeFeedOutputConfig(other.getFeedOutputConfig());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -915,26 +741,65 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p2beta1.Feed parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10: {
    +              name_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 10
    +            case 18: {
    +              java.lang.String s = input.readStringRequireUtf8();
    +              ensureAssetNamesIsMutable();
    +              assetNames_.add(s);
    +              break;
    +            } // case 18
    +            case 26: {
    +              java.lang.String s = input.readStringRequireUtf8();
    +              ensureAssetTypesIsMutable();
    +              assetTypes_.add(s);
    +              break;
    +            } // case 26
    +            case 32: {
    +              contentType_ = input.readEnum();
    +
    +              break;
    +            } // case 32
    +            case 42: {
    +              input.readMessage(
    +                  getFeedOutputConfigFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 42
    +            default: {
    +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                done = true; // was an endgroup tag
    +              }
    +              break;
    +            } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p2beta1.Feed) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
    -
         private int bitField0_;
     
         private java.lang.Object name_ = "";
         /**
    -     *
    -     *
          * 
          * Required. The format will be
          * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -945,13 +810,13 @@ public Builder mergeFrom(
          * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -960,8 +825,6 @@ public java.lang.String getName() { } } /** - * - * *
          * Required. The format will be
          * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -972,14 +835,15 @@ public java.lang.String getName() {
          * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -987,8 +851,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
          * Required. The format will be
          * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -999,22 +861,20 @@ public com.google.protobuf.ByteString getNameBytes() {
          * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
          * Required. The format will be
          * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -1025,18 +885,15 @@ public Builder setName(java.lang.String value) {
          * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
          * Required. The format will be
          * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -1047,33 +904,29 @@ public Builder clearName() {
          * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList assetNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList assetNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAssetNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assetNames_ = new com.google.protobuf.LazyStringArrayList(assetNames_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1086,15 +939,13 @@ private void ensureAssetNamesIsMutable() {
          * 
    * * repeated string asset_names = 2; - * * @return A list containing the assetNames. */ - public com.google.protobuf.ProtocolStringList getAssetNamesList() { + public com.google.protobuf.ProtocolStringList + getAssetNamesList() { return assetNames_.getUnmodifiableView(); } /** - * - * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1107,15 +958,12 @@ public com.google.protobuf.ProtocolStringList getAssetNamesList() {
          * 
    * * repeated string asset_names = 2; - * * @return The count of assetNames. */ public int getAssetNamesCount() { return assetNames_.size(); } /** - * - * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1128,7 +976,6 @@ public int getAssetNamesCount() {
          * 
    * * repeated string asset_names = 2; - * * @param index The index of the element to return. * @return The assetNames at the given index. */ @@ -1136,8 +983,6 @@ public java.lang.String getAssetNames(int index) { return assetNames_.get(index); } /** - * - * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1150,16 +995,14 @@ public java.lang.String getAssetNames(int index) {
          * 
    * * repeated string asset_names = 2; - * * @param index The index of the value to return. * @return The bytes of the assetNames at the given index. */ - public com.google.protobuf.ByteString getAssetNamesBytes(int index) { + public com.google.protobuf.ByteString + getAssetNamesBytes(int index) { return assetNames_.getByteString(index); } /** - * - * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1172,23 +1015,21 @@ public com.google.protobuf.ByteString getAssetNamesBytes(int index) {
          * 
    * * repeated string asset_names = 2; - * * @param index The index to set the value at. * @param value The assetNames to set. * @return This builder for chaining. */ - public Builder setAssetNames(int index, java.lang.String value) { + public Builder setAssetNames( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetNamesIsMutable(); + throw new NullPointerException(); + } + ensureAssetNamesIsMutable(); assetNames_.set(index, value); onChanged(); return this; } /** - * - * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1201,22 +1042,20 @@ public Builder setAssetNames(int index, java.lang.String value) {
          * 
    * * repeated string asset_names = 2; - * * @param value The assetNames to add. * @return This builder for chaining. */ - public Builder addAssetNames(java.lang.String value) { + public Builder addAssetNames( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetNamesIsMutable(); + throw new NullPointerException(); + } + ensureAssetNamesIsMutable(); assetNames_.add(value); onChanged(); return this; } /** - * - * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1229,19 +1068,18 @@ public Builder addAssetNames(java.lang.String value) {
          * 
    * * repeated string asset_names = 2; - * * @param values The assetNames to add. * @return This builder for chaining. */ - public Builder addAllAssetNames(java.lang.Iterable values) { + public Builder addAllAssetNames( + java.lang.Iterable values) { ensureAssetNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, assetNames_); onChanged(); return this; } /** - * - * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1254,7 +1092,6 @@ public Builder addAllAssetNames(java.lang.Iterable values) {
          * 
    * * repeated string asset_names = 2; - * * @return This builder for chaining. */ public Builder clearAssetNames() { @@ -1264,8 +1101,6 @@ public Builder clearAssetNames() { return this; } /** - * - * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1278,33 +1113,29 @@ public Builder clearAssetNames() {
          * 
    * * repeated string asset_names = 2; - * * @param value The bytes of the assetNames to add. * @return This builder for chaining. */ - public Builder addAssetNamesBytes(com.google.protobuf.ByteString value) { + public Builder addAssetNamesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssetNamesIsMutable(); assetNames_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList assetTypes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAssetTypesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { assetTypes_ = new com.google.protobuf.LazyStringArrayList(assetTypes_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1316,15 +1147,13 @@ private void ensureAssetTypesIsMutable() {
          * 
    * * repeated string asset_types = 3; - * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList getAssetTypesList() { + public com.google.protobuf.ProtocolStringList + getAssetTypesList() { return assetTypes_.getUnmodifiableView(); } /** - * - * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1336,15 +1165,12 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() {
          * 
    * * repeated string asset_types = 3; - * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** - * - * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1356,7 +1182,6 @@ public int getAssetTypesCount() {
          * 
    * * repeated string asset_types = 3; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -1364,8 +1189,6 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** - * - * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1377,16 +1200,14 @@ public java.lang.String getAssetTypes(int index) {
          * 
    * * repeated string asset_types = 3; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString + getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } /** - * - * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1398,23 +1219,21 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) {
          * 
    * * repeated string asset_types = 3; - * * @param index The index to set the value at. * @param value The assetTypes to set. * @return This builder for chaining. */ - public Builder setAssetTypes(int index, java.lang.String value) { + public Builder setAssetTypes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.set(index, value); onChanged(); return this; } /** - * - * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1426,22 +1245,20 @@ public Builder setAssetTypes(int index, java.lang.String value) {
          * 
    * * repeated string asset_types = 3; - * * @param value The assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypes(java.lang.String value) { + public Builder addAssetTypes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); return this; } /** - * - * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1453,19 +1270,18 @@ public Builder addAssetTypes(java.lang.String value) {
          * 
    * * repeated string asset_types = 3; - * * @param values The assetTypes to add. * @return This builder for chaining. */ - public Builder addAllAssetTypes(java.lang.Iterable values) { + public Builder addAllAssetTypes( + java.lang.Iterable values) { ensureAssetTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, assetTypes_); onChanged(); return this; } /** - * - * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1477,7 +1293,6 @@ public Builder addAllAssetTypes(java.lang.Iterable values) {
          * 
    * * repeated string asset_types = 3; - * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1487,8 +1302,6 @@ public Builder clearAssetTypes() { return this; } /** - * - * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1500,15 +1313,15 @@ public Builder clearAssetTypes() {
          * 
    * * repeated string asset_types = 3; - * * @param value The bytes of the assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { + public Builder addAssetTypesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); @@ -1517,69 +1330,55 @@ public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { private int contentType_ = 0; /** - * - * *
          * Asset content type. If not specified, no content but the asset name and
          * type will be returned.
          * 
    * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; - * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override - public int getContentTypeValue() { + @java.lang.Override public int getContentTypeValue() { return contentType_; } /** - * - * *
          * Asset content type. If not specified, no content but the asset name and
          * type will be returned.
          * 
    * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; - * * @param value The enum numeric value on the wire for contentType to set. * @return This builder for chaining. */ public Builder setContentTypeValue(int value) { - + contentType_ = value; onChanged(); return this; } /** - * - * *
          * Asset content type. If not specified, no content but the asset name and
          * type will be returned.
          * 
    * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; - * * @return The contentType. */ @java.lang.Override public com.google.cloud.asset.v1p2beta1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1p2beta1.ContentType result = - com.google.cloud.asset.v1p2beta1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1p2beta1.ContentType result = com.google.cloud.asset.v1p2beta1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1p2beta1.ContentType.UNRECOGNIZED : result; } /** - * - * *
          * Asset content type. If not specified, no content but the asset name and
          * type will be returned.
          * 
    * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; - * * @param value The contentType to set. * @return This builder for chaining. */ @@ -1587,25 +1386,22 @@ public Builder setContentType(com.google.cloud.asset.v1p2beta1.ContentType value if (value == null) { throw new NullPointerException(); } - + contentType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
          * Asset content type. If not specified, no content but the asset name and
          * type will be returned.
          * 
    * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; - * * @return This builder for chaining. */ public Builder clearContentType() { - + contentType_ = 0; onChanged(); return this; @@ -1613,61 +1409,42 @@ public Builder clearContentType() { private com.google.cloud.asset.v1p2beta1.FeedOutputConfig feedOutputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.FeedOutputConfig, - com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder, - com.google.cloud.asset.v1p2beta1.FeedOutputConfigOrBuilder> - feedOutputConfigBuilder_; + com.google.cloud.asset.v1p2beta1.FeedOutputConfig, com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder, com.google.cloud.asset.v1p2beta1.FeedOutputConfigOrBuilder> feedOutputConfigBuilder_; /** - * - * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the feedOutputConfig field is set. */ public boolean hasFeedOutputConfig() { return feedOutputConfigBuilder_ != null || feedOutputConfig_ != null; } /** - * - * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The feedOutputConfig. */ public com.google.cloud.asset.v1p2beta1.FeedOutputConfig getFeedOutputConfig() { if (feedOutputConfigBuilder_ == null) { - return feedOutputConfig_ == null - ? com.google.cloud.asset.v1p2beta1.FeedOutputConfig.getDefaultInstance() - : feedOutputConfig_; + return feedOutputConfig_ == null ? com.google.cloud.asset.v1p2beta1.FeedOutputConfig.getDefaultInstance() : feedOutputConfig_; } else { return feedOutputConfigBuilder_.getMessage(); } } /** - * - * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFeedOutputConfig(com.google.cloud.asset.v1p2beta1.FeedOutputConfig value) { if (feedOutputConfigBuilder_ == null) { @@ -1683,16 +1460,12 @@ public Builder setFeedOutputConfig(com.google.cloud.asset.v1p2beta1.FeedOutputCo return this; } /** - * - * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFeedOutputConfig( com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder builderForValue) { @@ -1706,24 +1479,18 @@ public Builder setFeedOutputConfig( return this; } /** - * - * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeFeedOutputConfig(com.google.cloud.asset.v1p2beta1.FeedOutputConfig value) { if (feedOutputConfigBuilder_ == null) { if (feedOutputConfig_ != null) { feedOutputConfig_ = - com.google.cloud.asset.v1p2beta1.FeedOutputConfig.newBuilder(feedOutputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1p2beta1.FeedOutputConfig.newBuilder(feedOutputConfig_).mergeFrom(value).buildPartial(); } else { feedOutputConfig_ = value; } @@ -1735,16 +1502,12 @@ public Builder mergeFeedOutputConfig(com.google.cloud.asset.v1p2beta1.FeedOutput return this; } /** - * - * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearFeedOutputConfig() { if (feedOutputConfigBuilder_ == null) { @@ -1758,75 +1521,58 @@ public Builder clearFeedOutputConfig() { return this; } /** - * - * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder getFeedOutputConfigBuilder() { - + onChanged(); return getFeedOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.asset.v1p2beta1.FeedOutputConfigOrBuilder - getFeedOutputConfigOrBuilder() { + public com.google.cloud.asset.v1p2beta1.FeedOutputConfigOrBuilder getFeedOutputConfigOrBuilder() { if (feedOutputConfigBuilder_ != null) { return feedOutputConfigBuilder_.getMessageOrBuilder(); } else { - return feedOutputConfig_ == null - ? com.google.cloud.asset.v1p2beta1.FeedOutputConfig.getDefaultInstance() - : feedOutputConfig_; + return feedOutputConfig_ == null ? + com.google.cloud.asset.v1p2beta1.FeedOutputConfig.getDefaultInstance() : feedOutputConfig_; } } /** - * - * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.FeedOutputConfig, - com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder, - com.google.cloud.asset.v1p2beta1.FeedOutputConfigOrBuilder> + com.google.cloud.asset.v1p2beta1.FeedOutputConfig, com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder, com.google.cloud.asset.v1p2beta1.FeedOutputConfigOrBuilder> getFeedOutputConfigFieldBuilder() { if (feedOutputConfigBuilder_ == null) { - feedOutputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.FeedOutputConfig, - com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder, - com.google.cloud.asset.v1p2beta1.FeedOutputConfigOrBuilder>( - getFeedOutputConfig(), getParentForChildren(), isClean()); + feedOutputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p2beta1.FeedOutputConfig, com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder, com.google.cloud.asset.v1p2beta1.FeedOutputConfigOrBuilder>( + getFeedOutputConfig(), + getParentForChildren(), + isClean()); feedOutputConfig_ = null; } return feedOutputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1836,12 +1582,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.Feed) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.Feed) private static final com.google.cloud.asset.v1p2beta1.Feed DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.Feed(); } @@ -1850,16 +1596,27 @@ public static com.google.cloud.asset.v1p2beta1.Feed getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Feed parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Feed(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feed parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1874,4 +1631,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.Feed getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedName.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedName.java similarity index 100% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedName.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedName.java diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOrBuilder.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOrBuilder.java similarity index 83% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOrBuilder.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOrBuilder.java index 846765f2ef4f..66d4f439178e 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; -public interface FeedOrBuilder - extends +public interface FeedOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.Feed) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The format will be
        * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -36,13 +18,10 @@ public interface FeedOrBuilder
        * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
        * Required. The format will be
        * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -53,14 +32,12 @@ public interface FeedOrBuilder
        * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -73,13 +50,11 @@ public interface FeedOrBuilder
        * 
    * * repeated string asset_names = 2; - * * @return A list containing the assetNames. */ - java.util.List getAssetNamesList(); + java.util.List + getAssetNamesList(); /** - * - * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -92,13 +67,10 @@ public interface FeedOrBuilder
        * 
    * * repeated string asset_names = 2; - * * @return The count of assetNames. */ int getAssetNamesCount(); /** - * - * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -111,14 +83,11 @@ public interface FeedOrBuilder
        * 
    * * repeated string asset_names = 2; - * * @param index The index of the element to return. * @return The assetNames at the given index. */ java.lang.String getAssetNames(int index); /** - * - * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -131,15 +100,13 @@ public interface FeedOrBuilder
        * 
    * * repeated string asset_names = 2; - * * @param index The index of the value to return. * @return The bytes of the assetNames at the given index. */ - com.google.protobuf.ByteString getAssetNamesBytes(int index); + com.google.protobuf.ByteString + getAssetNamesBytes(int index); /** - * - * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -151,13 +118,11 @@ public interface FeedOrBuilder
        * 
    * * repeated string asset_types = 3; - * * @return A list containing the assetTypes. */ - java.util.List getAssetTypesList(); + java.util.List + getAssetTypesList(); /** - * - * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -169,13 +134,10 @@ public interface FeedOrBuilder
        * 
    * * repeated string asset_types = 3; - * * @return The count of assetTypes. */ int getAssetTypesCount(); /** - * - * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -187,14 +149,11 @@ public interface FeedOrBuilder
        * 
    * * repeated string asset_types = 3; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ java.lang.String getAssetTypes(int index); /** - * - * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -206,80 +165,60 @@ public interface FeedOrBuilder
        * 
    * * repeated string asset_types = 3; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - com.google.protobuf.ByteString getAssetTypesBytes(int index); + com.google.protobuf.ByteString + getAssetTypesBytes(int index); /** - * - * *
        * Asset content type. If not specified, no content but the asset name and
        * type will be returned.
        * 
    * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; - * * @return The enum numeric value on the wire for contentType. */ int getContentTypeValue(); /** - * - * *
        * Asset content type. If not specified, no content but the asset name and
        * type will be returned.
        * 
    * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; - * * @return The contentType. */ com.google.cloud.asset.v1p2beta1.ContentType getContentType(); /** - * - * *
        * Required. Feed output configuration defining where the asset updates are
        * published to.
        * 
    * - * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the feedOutputConfig field is set. */ boolean hasFeedOutputConfig(); /** - * - * *
        * Required. Feed output configuration defining where the asset updates are
        * published to.
        * 
    * - * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The feedOutputConfig. */ com.google.cloud.asset.v1p2beta1.FeedOutputConfig getFeedOutputConfig(); /** - * - * *
        * Required. Feed output configuration defining where the asset updates are
        * published to.
        * 
    * - * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.asset.v1p2beta1.FeedOutputConfigOrBuilder getFeedOutputConfigOrBuilder(); } diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfig.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfig.java similarity index 62% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfig.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfig.java index ee1dfa076667..3488cc883408 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfig.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfig.java @@ -1,139 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; /** - * - * *
      * Output configuration for asset feed destination.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.FeedOutputConfig} */ -public final class FeedOutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FeedOutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.FeedOutputConfig) FeedOutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FeedOutputConfig.newBuilder() to construct. private FeedOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private FeedOutputConfig() {} + private FeedOutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FeedOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private FeedOutputConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = - ((com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.asset.v1p2beta1.PubsubDestination.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 1; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.FeedOutputConfig.class, - com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder.class); + com.google.cloud.asset.v1p2beta1.FeedOutputConfig.class, com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PUBSUB_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -149,34 +70,29 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return PUBSUB_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return PUBSUB_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int PUBSUB_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
        * Destination on Cloud Pubsub.
        * 
    * * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; - * * @return Whether the pubsubDestination field is set. */ @java.lang.Override @@ -184,26 +100,21 @@ public boolean hasPubsubDestination() { return destinationCase_ == 1; } /** - * - * *
        * Destination on Cloud Pubsub.
        * 
    * * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; - * * @return The pubsubDestination. */ @java.lang.Override public com.google.cloud.asset.v1p2beta1.PubsubDestination getPubsubDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_; + return (com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_; } return com.google.cloud.asset.v1p2beta1.PubsubDestination.getDefaultInstance(); } /** - * - * *
        * Destination on Cloud Pubsub.
        * 
    @@ -211,16 +122,14 @@ public com.google.cloud.asset.v1p2beta1.PubsubDestination getPubsubDestination() * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; */ @java.lang.Override - public com.google.cloud.asset.v1p2beta1.PubsubDestinationOrBuilder - getPubsubDestinationOrBuilder() { + public com.google.cloud.asset.v1p2beta1.PubsubDestinationOrBuilder getPubsubDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_; + return (com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_; } return com.google.cloud.asset.v1p2beta1.PubsubDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,11 +141,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -246,11 +156,10 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -258,23 +167,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.FeedOutputConfig)) { return super.equals(obj); } - com.google.cloud.asset.v1p2beta1.FeedOutputConfig other = - (com.google.cloud.asset.v1p2beta1.FeedOutputConfig) obj; + com.google.cloud.asset.v1p2beta1.FeedOutputConfig other = (com.google.cloud.asset.v1p2beta1.FeedOutputConfig) obj; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getPubsubDestination().equals(other.getPubsubDestination())) return false; + if (!getPubsubDestination() + .equals(other.getPubsubDestination())) return false; break; case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -293,160 +202,150 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig 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.asset.v1p2beta1.FeedOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.FeedOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Output configuration for asset feed destination.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.FeedOutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.FeedOutputConfig) com.google.cloud.asset.v1p2beta1.FeedOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.FeedOutputConfig.class, - com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder.class); + com.google.cloud.asset.v1p2beta1.FeedOutputConfig.class, com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder.class); } // Construct using com.google.cloud.asset.v1p2beta1.FeedOutputConfig.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @java.lang.Override public Builder clear() { super.clear(); + if (pubsubDestinationBuilder_ != null) { + pubsubDestinationBuilder_.clear(); + } destinationCase_ = 0; destination_ = null; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor; } @java.lang.Override @@ -465,8 +364,7 @@ public com.google.cloud.asset.v1p2beta1.FeedOutputConfig build() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.FeedOutputConfig buildPartial() { - com.google.cloud.asset.v1p2beta1.FeedOutputConfig result = - new com.google.cloud.asset.v1p2beta1.FeedOutputConfig(this); + com.google.cloud.asset.v1p2beta1.FeedOutputConfig result = new com.google.cloud.asset.v1p2beta1.FeedOutputConfig(this); if (destinationCase_ == 1) { if (pubsubDestinationBuilder_ == null) { result.destination_ = destination_; @@ -483,39 +381,38 @@ public com.google.cloud.asset.v1p2beta1.FeedOutputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p2beta1.FeedOutputConfig) { - return mergeFrom((com.google.cloud.asset.v1p2beta1.FeedOutputConfig) other); + return mergeFrom((com.google.cloud.asset.v1p2beta1.FeedOutputConfig)other); } else { super.mergeFrom(other); return this; @@ -523,20 +420,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.FeedOutputConfig other) { - if (other == com.google.cloud.asset.v1p2beta1.FeedOutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1p2beta1.FeedOutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case PUBSUB_DESTINATION: - { - mergePubsubDestination(other.getPubsubDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case PUBSUB_DESTINATION: { + mergePubsubDestination(other.getPubsubDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -551,26 +445,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p2beta1.FeedOutputConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPubsubDestinationFieldBuilder().getBuilder(), + extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1p2beta1.FeedOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -580,20 +493,15 @@ public Builder clearDestination() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.PubsubDestination, - com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder, - com.google.cloud.asset.v1p2beta1.PubsubDestinationOrBuilder> - pubsubDestinationBuilder_; + com.google.cloud.asset.v1p2beta1.PubsubDestination, com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder, com.google.cloud.asset.v1p2beta1.PubsubDestinationOrBuilder> pubsubDestinationBuilder_; /** - * - * *
          * Destination on Cloud Pubsub.
          * 
    * * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; - * * @return Whether the pubsubDestination field is set. */ @java.lang.Override @@ -601,14 +509,11 @@ public boolean hasPubsubDestination() { return destinationCase_ == 1; } /** - * - * *
          * Destination on Cloud Pubsub.
          * 
    * * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; - * * @return The pubsubDestination. */ @java.lang.Override @@ -626,8 +531,6 @@ public com.google.cloud.asset.v1p2beta1.PubsubDestination getPubsubDestination() } } /** - * - * *
          * Destination on Cloud Pubsub.
          * 
    @@ -648,8 +551,6 @@ public Builder setPubsubDestination(com.google.cloud.asset.v1p2beta1.PubsubDesti return this; } /** - * - * *
          * Destination on Cloud Pubsub.
          * 
    @@ -668,25 +569,18 @@ public Builder setPubsubDestination( return this; } /** - * - * *
          * Destination on Cloud Pubsub.
          * 
    * * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; */ - public Builder mergePubsubDestination( - com.google.cloud.asset.v1p2beta1.PubsubDestination value) { + public Builder mergePubsubDestination(com.google.cloud.asset.v1p2beta1.PubsubDestination value) { if (pubsubDestinationBuilder_ == null) { - if (destinationCase_ == 1 - && destination_ - != com.google.cloud.asset.v1p2beta1.PubsubDestination.getDefaultInstance()) { - destination_ = - com.google.cloud.asset.v1p2beta1.PubsubDestination.newBuilder( - (com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 1 && + destination_ != com.google.cloud.asset.v1p2beta1.PubsubDestination.getDefaultInstance()) { + destination_ = com.google.cloud.asset.v1p2beta1.PubsubDestination.newBuilder((com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -702,8 +596,6 @@ public Builder mergePubsubDestination( return this; } /** - * - * *
          * Destination on Cloud Pubsub.
          * 
    @@ -727,21 +619,16 @@ public Builder clearPubsubDestination() { return this; } /** - * - * *
          * Destination on Cloud Pubsub.
          * 
    * * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; */ - public com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder - getPubsubDestinationBuilder() { + public com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder getPubsubDestinationBuilder() { return getPubsubDestinationFieldBuilder().getBuilder(); } /** - * - * *
          * Destination on Cloud Pubsub.
          * 
    @@ -749,8 +636,7 @@ public Builder clearPubsubDestination() { * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; */ @java.lang.Override - public com.google.cloud.asset.v1p2beta1.PubsubDestinationOrBuilder - getPubsubDestinationOrBuilder() { + public com.google.cloud.asset.v1p2beta1.PubsubDestinationOrBuilder getPubsubDestinationOrBuilder() { if ((destinationCase_ == 1) && (pubsubDestinationBuilder_ != null)) { return pubsubDestinationBuilder_.getMessageOrBuilder(); } else { @@ -761,8 +647,6 @@ public Builder clearPubsubDestination() { } } /** - * - * *
          * Destination on Cloud Pubsub.
          * 
    @@ -770,32 +654,26 @@ public Builder clearPubsubDestination() { * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.PubsubDestination, - com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder, - com.google.cloud.asset.v1p2beta1.PubsubDestinationOrBuilder> + com.google.cloud.asset.v1p2beta1.PubsubDestination, com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder, com.google.cloud.asset.v1p2beta1.PubsubDestinationOrBuilder> getPubsubDestinationFieldBuilder() { if (pubsubDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.asset.v1p2beta1.PubsubDestination.getDefaultInstance(); } - pubsubDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.PubsubDestination, - com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder, - com.google.cloud.asset.v1p2beta1.PubsubDestinationOrBuilder>( + pubsubDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p2beta1.PubsubDestination, com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder, com.google.cloud.asset.v1p2beta1.PubsubDestinationOrBuilder>( (com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 1; - onChanged(); - ; + onChanged();; return pubsubDestinationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -805,12 +683,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.FeedOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.FeedOutputConfig) private static final com.google.cloud.asset.v1p2beta1.FeedOutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.FeedOutputConfig(); } @@ -819,16 +697,27 @@ public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeedOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeedOutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeedOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -843,4 +732,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.FeedOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfigOrBuilder.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfigOrBuilder.java similarity index 63% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfigOrBuilder.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfigOrBuilder.java index 91029b15a997..be3215779213 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfigOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfigOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; -public interface FeedOutputConfigOrBuilder - extends +public interface FeedOutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.FeedOutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Destination on Cloud Pubsub.
        * 
    * * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; - * * @return Whether the pubsubDestination field is set. */ boolean hasPubsubDestination(); /** - * - * *
        * Destination on Cloud Pubsub.
        * 
    * * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; - * * @return The pubsubDestination. */ com.google.cloud.asset.v1p2beta1.PubsubDestination getPubsubDestination(); /** - * - * *
        * Destination on Cloud Pubsub.
        * 
    diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestination.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestination.java similarity index 65% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestination.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestination.java index 614e991885a8..bd41bc8d1c86 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestination.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestination.java @@ -1,127 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; /** - * - * *
      * A Cloud Storage location.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.GcsDestination} */ -public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.GcsDestination) GcsDestinationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private GcsDestination() {} + private GcsDestination() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private GcsDestination( - 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(); - objectUriCase_ = 1; - objectUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.GcsDestination.class, - com.google.cloud.asset.v1p2beta1.GcsDestination.Builder.class); + com.google.cloud.asset.v1p2beta1.GcsDestination.class, com.google.cloud.asset.v1p2beta1.GcsDestination.Builder.class); } private int objectUriCase_ = 0; private java.lang.Object objectUri_; - public enum ObjectUriCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { URI(1), OBJECTURI_NOT_SET(0); private final int value; - private ObjectUriCase(int value) { this.value = value; } @@ -137,28 +70,24 @@ public static ObjectUriCase valueOf(int value) { public static ObjectUriCase forNumber(int value) { switch (value) { - case 1: - return URI; - case 0: - return OBJECTURI_NOT_SET; - default: - return null; + case 1: return URI; + case 0: return OBJECTURI_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ObjectUriCase getObjectUriCase() { - return ObjectUriCase.forNumber(objectUriCase_); + public ObjectUriCase + getObjectUriCase() { + return ObjectUriCase.forNumber( + objectUriCase_); } public static final int URI_FIELD_NUMBER = 1; /** - * - * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    @@ -168,15 +97,12 @@ public ObjectUriCase getObjectUriCase() {
        * 
    * * string uri = 1; - * * @return Whether the uri field is set. */ public boolean hasUri() { return objectUriCase_ == 1; } /** - * - * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    @@ -186,7 +112,6 @@ public boolean hasUri() {
        * 
    * * string uri = 1; - * * @return The uri. */ public java.lang.String getUri() { @@ -197,7 +122,8 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (objectUriCase_ == 1) { objectUri_ = s; @@ -206,8 +132,6 @@ public java.lang.String getUri() { } } /** - * - * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    @@ -217,17 +141,18 @@ public java.lang.String getUri() {
        * 
    * * string uri = 1; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = ""; if (objectUriCase_ == 1) { ref = objectUri_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (objectUriCase_ == 1) { objectUri_ = b; } @@ -238,7 +163,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,11 +174,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (objectUriCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, objectUri_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -266,7 +191,7 @@ public int getSerializedSize() { if (objectUriCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, objectUri_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -274,23 +199,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.asset.v1p2beta1.GcsDestination other = - (com.google.cloud.asset.v1p2beta1.GcsDestination) obj; + com.google.cloud.asset.v1p2beta1.GcsDestination other = (com.google.cloud.asset.v1p2beta1.GcsDestination) obj; if (!getObjectUriCase().equals(other.getObjectUriCase())) return false; switch (objectUriCase_) { case 1: - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; break; case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -309,148 +234,135 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1p2beta1.GcsDestination parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p2beta1.GcsDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.GcsDestination 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.asset.v1p2beta1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.GcsDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.GcsDestination parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.GcsDestination parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p2beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p2beta1.GcsDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * A Cloud Storage location.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.GcsDestination} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.GcsDestination) com.google.cloud.asset.v1p2beta1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.GcsDestination.class, - com.google.cloud.asset.v1p2beta1.GcsDestination.Builder.class); + com.google.cloud.asset.v1p2beta1.GcsDestination.class, com.google.cloud.asset.v1p2beta1.GcsDestination.Builder.class); } // Construct using com.google.cloud.asset.v1p2beta1.GcsDestination.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -460,9 +372,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor; } @java.lang.Override @@ -481,8 +393,7 @@ public com.google.cloud.asset.v1p2beta1.GcsDestination build() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.GcsDestination buildPartial() { - com.google.cloud.asset.v1p2beta1.GcsDestination result = - new com.google.cloud.asset.v1p2beta1.GcsDestination(this); + com.google.cloud.asset.v1p2beta1.GcsDestination result = new com.google.cloud.asset.v1p2beta1.GcsDestination(this); if (objectUriCase_ == 1) { result.objectUri_ = objectUri_; } @@ -495,39 +406,38 @@ public com.google.cloud.asset.v1p2beta1.GcsDestination buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p2beta1.GcsDestination) { - return mergeFrom((com.google.cloud.asset.v1p2beta1.GcsDestination) other); + return mergeFrom((com.google.cloud.asset.v1p2beta1.GcsDestination)other); } else { super.mergeFrom(other); return this; @@ -535,22 +445,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.GcsDestination other) { - if (other == com.google.cloud.asset.v1p2beta1.GcsDestination.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1p2beta1.GcsDestination.getDefaultInstance()) return this; switch (other.getObjectUriCase()) { - case URI: - { - objectUriCase_ = 1; - objectUri_ = other.objectUri_; - onChanged(); - break; - } - case OBJECTURI_NOT_SET: - { - break; - } + case URI: { + objectUriCase_ = 1; + objectUri_ = other.objectUri_; + onChanged(); + break; + } + case OBJECTURI_NOT_SET: { + break; + } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -565,25 +472,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p2beta1.GcsDestination parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + objectUriCase_ = 1; + objectUri_ = s; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1p2beta1.GcsDestination) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int objectUriCase_ = 0; private java.lang.Object objectUri_; - - public ObjectUriCase getObjectUriCase() { - return ObjectUriCase.forNumber(objectUriCase_); + public ObjectUriCase + getObjectUriCase() { + return ObjectUriCase.forNumber( + objectUriCase_); } public Builder clearObjectUri() { @@ -593,9 +519,8 @@ public Builder clearObjectUri() { return this; } + /** - * - * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    @@ -605,7 +530,6 @@ public Builder clearObjectUri() {
          * 
    * * string uri = 1; - * * @return Whether the uri field is set. */ @java.lang.Override @@ -613,8 +537,6 @@ public boolean hasUri() { return objectUriCase_ == 1; } /** - * - * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    @@ -624,7 +546,6 @@ public boolean hasUri() {
          * 
    * * string uri = 1; - * * @return The uri. */ @java.lang.Override @@ -634,7 +555,8 @@ public java.lang.String getUri() { ref = objectUri_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (objectUriCase_ == 1) { objectUri_ = s; @@ -645,8 +567,6 @@ public java.lang.String getUri() { } } /** - * - * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    @@ -656,18 +576,19 @@ public java.lang.String getUri() {
          * 
    * * string uri = 1; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = ""; if (objectUriCase_ == 1) { ref = objectUri_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (objectUriCase_ == 1) { objectUri_ = b; } @@ -677,8 +598,6 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    @@ -688,22 +607,20 @@ public com.google.protobuf.ByteString getUriBytes() {
          * 
    * * string uri = 1; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - objectUriCase_ = 1; + throw new NullPointerException(); + } + objectUriCase_ = 1; objectUri_ = value; onChanged(); return this; } /** - * - * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    @@ -713,7 +630,6 @@ public Builder setUri(java.lang.String value) {
          * 
    * * string uri = 1; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -725,8 +641,6 @@ public Builder clearUri() { return this; } /** - * - * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    @@ -736,23 +650,23 @@ public Builder clearUri() {
          * 
    * * string uri = 1; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); objectUriCase_ = 1; objectUri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -762,12 +676,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.GcsDestination) private static final com.google.cloud.asset.v1p2beta1.GcsDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.GcsDestination(); } @@ -776,16 +690,27 @@ public static com.google.cloud.asset.v1p2beta1.GcsDestination getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -800,4 +725,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestinationOrBuilder.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestinationOrBuilder.java similarity index 68% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestinationOrBuilder.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestinationOrBuilder.java index 3cefb0ca9b59..083a2c545a11 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestinationOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestinationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; -public interface GcsDestinationOrBuilder - extends +public interface GcsDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    @@ -35,13 +17,10 @@ public interface GcsDestinationOrBuilder
        * 
    * * string uri = 1; - * * @return Whether the uri field is set. */ boolean hasUri(); /** - * - * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    @@ -51,13 +30,10 @@ public interface GcsDestinationOrBuilder
        * 
    * * string uri = 1; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    @@ -67,10 +43,10 @@ public interface GcsDestinationOrBuilder
        * 
    * * string uri = 1; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); public com.google.cloud.asset.v1p2beta1.GcsDestination.ObjectUriCase getObjectUriCase(); } diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequest.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequest.java similarity index 59% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequest.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequest.java index 3540a81af03b..e3d33400583c 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequest.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequest.java @@ -1,123 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; /** - * - * *
      * Get asset feed request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.GetFeedRequest} */ -public final class GetFeedRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetFeedRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.GetFeedRequest) GetFeedRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetFeedRequest.newBuilder() to construct. private GetFeedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetFeedRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetFeedRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private GetFeedRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.GetFeedRequest.class, - com.google.cloud.asset.v1p2beta1.GetFeedRequest.Builder.class); + com.google.cloud.asset.v1p2beta1.GetFeedRequest.class, com.google.cloud.asset.v1p2beta1.GetFeedRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
        * Required. The name of the Feed and it must be in the format of:
        * projects/project_number/feeds/feed_id
    @@ -125,10 +58,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * organizations/organization_number/feeds/feed_id
        * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -137,15 +67,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
        * Required. The name of the Feed and it must be in the format of:
        * projects/project_number/feeds/feed_id
    @@ -153,18 +82,17 @@ public java.lang.String getName() {
        * organizations/organization_number/feeds/feed_id
        * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -173,7 +101,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,11 +112,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -201,7 +129,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -209,16 +137,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.GetFeedRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1p2beta1.GetFeedRequest other = - (com.google.cloud.asset.v1p2beta1.GetFeedRequest) obj; + com.google.cloud.asset.v1p2beta1.GetFeedRequest other = (com.google.cloud.asset.v1p2beta1.GetFeedRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -231,148 +159,135 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1p2beta1.GetFeedRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p2beta1.GetFeedRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.GetFeedRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.GetFeedRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.GetFeedRequest 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.asset.v1p2beta1.GetFeedRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.GetFeedRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.GetFeedRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.GetFeedRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p2beta1.GetFeedRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p2beta1.GetFeedRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.GetFeedRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.GetFeedRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.GetFeedRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.GetFeedRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Get asset feed request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.GetFeedRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.GetFeedRequest) com.google.cloud.asset.v1p2beta1.GetFeedRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.GetFeedRequest.class, - com.google.cloud.asset.v1p2beta1.GetFeedRequest.Builder.class); + com.google.cloud.asset.v1p2beta1.GetFeedRequest.class, com.google.cloud.asset.v1p2beta1.GetFeedRequest.Builder.class); } // Construct using com.google.cloud.asset.v1p2beta1.GetFeedRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -382,9 +297,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor; } @java.lang.Override @@ -403,8 +318,7 @@ public com.google.cloud.asset.v1p2beta1.GetFeedRequest build() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.GetFeedRequest buildPartial() { - com.google.cloud.asset.v1p2beta1.GetFeedRequest result = - new com.google.cloud.asset.v1p2beta1.GetFeedRequest(this); + com.google.cloud.asset.v1p2beta1.GetFeedRequest result = new com.google.cloud.asset.v1p2beta1.GetFeedRequest(this); result.name_ = name_; onBuilt(); return result; @@ -414,39 +328,38 @@ public com.google.cloud.asset.v1p2beta1.GetFeedRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p2beta1.GetFeedRequest) { - return mergeFrom((com.google.cloud.asset.v1p2beta1.GetFeedRequest) other); + return mergeFrom((com.google.cloud.asset.v1p2beta1.GetFeedRequest)other); } else { super.mergeFrom(other); return this; @@ -454,13 +367,12 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.GetFeedRequest other) { - if (other == com.google.cloud.asset.v1p2beta1.GetFeedRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1p2beta1.GetFeedRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -475,24 +387,40 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p2beta1.GetFeedRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1p2beta1.GetFeedRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object name_ = ""; /** - * - * *
          * Required. The name of the Feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -500,16 +428,14 @@ public Builder mergeFrom(
          * organizations/organization_number/feeds/feed_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -518,8 +444,6 @@ public java.lang.String getName() { } } /** - * - * *
          * Required. The name of the Feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -527,17 +451,16 @@ public java.lang.String getName() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -545,8 +468,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
          * Required. The name of the Feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -554,25 +475,21 @@ public com.google.protobuf.ByteString getNameBytes() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
          * Required. The name of the Feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -580,21 +497,16 @@ public Builder setName(java.lang.String value) {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
          * Required. The name of the Feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -602,26 +514,24 @@ public Builder clearName() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -631,12 +541,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.GetFeedRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.GetFeedRequest) private static final com.google.cloud.asset.v1p2beta1.GetFeedRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.GetFeedRequest(); } @@ -645,16 +555,27 @@ public static com.google.cloud.asset.v1p2beta1.GetFeedRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFeedRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFeedRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFeedRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -669,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.GetFeedRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequestOrBuilder.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequestOrBuilder.java new file mode 100644 index 000000000000..1e57a7098971 --- /dev/null +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequestOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1p2beta1/asset_service.proto + +package com.google.cloud.asset.v1p2beta1; + +public interface GetFeedRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.GetFeedRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
    +   * Required. The name of the Feed and it must be in the format of:
    +   * projects/project_number/feeds/feed_id
    +   * folders/folder_number/feeds/feed_id
    +   * organizations/organization_number/feeds/feed_id
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
    +   * Required. The name of the Feed and it must be in the format of:
    +   * projects/project_number/feeds/feed_id
    +   * folders/folder_number/feeds/feed_id
    +   * organizations/organization_number/feeds/feed_id
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequest.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequest.java similarity index 63% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequest.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequest.java index 3c4df6dd0ba7..2b3265a25f35 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequest.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequest.java @@ -1,123 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; /** - * - * *
      * List asset feeds request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.ListFeedsRequest} */ -public final class ListFeedsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFeedsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.ListFeedsRequest) ListFeedsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFeedsRequest.newBuilder() to construct. private ListFeedsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFeedsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFeedsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private ListFeedsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.ListFeedsRequest.class, - com.google.cloud.asset.v1p2beta1.ListFeedsRequest.Builder.class); + com.google.cloud.asset.v1p2beta1.ListFeedsRequest.class, com.google.cloud.asset.v1p2beta1.ListFeedsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
        * Required. The parent project/folder/organization whose feeds are to be
        * listed. It can only be using project/folder/organization number (such as
    @@ -125,7 +58,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -134,15 +66,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
        * Required. The parent project/folder/organization whose feeds are to be
        * listed. It can only be using project/folder/organization number (such as
    @@ -150,15 +81,16 @@ public java.lang.String getParent() {
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -167,7 +99,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,11 +110,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -195,7 +127,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -203,16 +135,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.ListFeedsRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1p2beta1.ListFeedsRequest other = - (com.google.cloud.asset.v1p2beta1.ListFeedsRequest) obj; + com.google.cloud.asset.v1p2beta1.ListFeedsRequest other = (com.google.cloud.asset.v1p2beta1.ListFeedsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -225,148 +157,135 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest 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.asset.v1p2beta1.ListFeedsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.ListFeedsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * List asset feeds request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.ListFeedsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.ListFeedsRequest) com.google.cloud.asset.v1p2beta1.ListFeedsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.ListFeedsRequest.class, - com.google.cloud.asset.v1p2beta1.ListFeedsRequest.Builder.class); + com.google.cloud.asset.v1p2beta1.ListFeedsRequest.class, com.google.cloud.asset.v1p2beta1.ListFeedsRequest.Builder.class); } // Construct using com.google.cloud.asset.v1p2beta1.ListFeedsRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -376,9 +295,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor; } @java.lang.Override @@ -397,8 +316,7 @@ public com.google.cloud.asset.v1p2beta1.ListFeedsRequest build() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.ListFeedsRequest buildPartial() { - com.google.cloud.asset.v1p2beta1.ListFeedsRequest result = - new com.google.cloud.asset.v1p2beta1.ListFeedsRequest(this); + com.google.cloud.asset.v1p2beta1.ListFeedsRequest result = new com.google.cloud.asset.v1p2beta1.ListFeedsRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -408,39 +326,38 @@ public com.google.cloud.asset.v1p2beta1.ListFeedsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p2beta1.ListFeedsRequest) { - return mergeFrom((com.google.cloud.asset.v1p2beta1.ListFeedsRequest) other); + return mergeFrom((com.google.cloud.asset.v1p2beta1.ListFeedsRequest)other); } else { super.mergeFrom(other); return this; @@ -448,13 +365,12 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.ListFeedsRequest other) { - if (other == com.google.cloud.asset.v1p2beta1.ListFeedsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1p2beta1.ListFeedsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -469,25 +385,40 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p2beta1.ListFeedsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1p2beta1.ListFeedsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object parent_ = ""; /** - * - * *
          * Required. The parent project/folder/organization whose feeds are to be
          * listed. It can only be using project/folder/organization number (such as
    @@ -495,13 +426,13 @@ public Builder mergeFrom(
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -510,8 +441,6 @@ public java.lang.String getParent() { } } /** - * - * *
          * Required. The parent project/folder/organization whose feeds are to be
          * listed. It can only be using project/folder/organization number (such as
    @@ -519,14 +448,15 @@ public java.lang.String getParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -534,8 +464,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
          * Required. The parent project/folder/organization whose feeds are to be
          * listed. It can only be using project/folder/organization number (such as
    @@ -543,22 +471,20 @@ public com.google.protobuf.ByteString getParentBytes() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
          * Required. The parent project/folder/organization whose feeds are to be
          * listed. It can only be using project/folder/organization number (such as
    @@ -566,18 +492,15 @@ public Builder setParent(java.lang.String value) {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
          * Required. The parent project/folder/organization whose feeds are to be
          * listed. It can only be using project/folder/organization number (such as
    @@ -585,23 +508,23 @@ public Builder clearParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -611,12 +534,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.ListFeedsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.ListFeedsRequest) private static final com.google.cloud.asset.v1p2beta1.ListFeedsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.ListFeedsRequest(); } @@ -625,16 +548,27 @@ public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFeedsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFeedsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeedsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -649,4 +583,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.ListFeedsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequestOrBuilder.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequestOrBuilder.java similarity index 60% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequestOrBuilder.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequestOrBuilder.java index 07ffeb181dec..65b8118c4c25 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequestOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; -public interface ListFeedsRequestOrBuilder - extends +public interface ListFeedsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.ListFeedsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The parent project/folder/organization whose feeds are to be
        * listed. It can only be using project/folder/organization number (such as
    @@ -33,13 +15,10 @@ public interface ListFeedsRequestOrBuilder
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
        * Required. The parent project/folder/organization whose feeds are to be
        * listed. It can only be using project/folder/organization number (such as
    @@ -47,8 +26,8 @@ public interface ListFeedsRequestOrBuilder
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); } diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponse.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponse.java similarity index 66% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponse.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponse.java index 84c147ebf8bf..78ca5efa22d9 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponse.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponse.java @@ -1,123 +1,52 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; -/** Protobuf type {@code google.cloud.asset.v1p2beta1.ListFeedsResponse} */ -public final class ListFeedsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.asset.v1p2beta1.ListFeedsResponse} + */ +public final class ListFeedsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.ListFeedsResponse) ListFeedsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFeedsResponse.newBuilder() to construct. private ListFeedsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFeedsResponse() { feeds_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFeedsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private ListFeedsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - feeds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - feeds_.add( - input.readMessage( - com.google.cloud.asset.v1p2beta1.Feed.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - feeds_ = java.util.Collections.unmodifiableList(feeds_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.ListFeedsResponse.class, - com.google.cloud.asset.v1p2beta1.ListFeedsResponse.Builder.class); + com.google.cloud.asset.v1p2beta1.ListFeedsResponse.class, com.google.cloud.asset.v1p2beta1.ListFeedsResponse.Builder.class); } public static final int FEEDS_FIELD_NUMBER = 1; private java.util.List feeds_; /** - * - * *
        * A list of feeds.
        * 
    @@ -129,8 +58,6 @@ public java.util.List getFeedsList() { return feeds_; } /** - * - * *
        * A list of feeds.
        * 
    @@ -138,13 +65,11 @@ public java.util.List getFeedsList() { * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFeedsOrBuilderList() { return feeds_; } /** - * - * *
        * A list of feeds.
        * 
    @@ -156,8 +81,6 @@ public int getFeedsCount() { return feeds_.size(); } /** - * - * *
        * A list of feeds.
        * 
    @@ -169,8 +92,6 @@ public com.google.cloud.asset.v1p2beta1.Feed getFeeds(int index) { return feeds_.get(index); } /** - * - * *
        * A list of feeds.
        * 
    @@ -178,12 +99,12 @@ public com.google.cloud.asset.v1p2beta1.Feed getFeeds(int index) { * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ @java.lang.Override - public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedsOrBuilder(int index) { + public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedsOrBuilder( + int index) { return feeds_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -195,11 +116,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < feeds_.size(); i++) { output.writeMessage(1, feeds_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -209,9 +131,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < feeds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, feeds_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, feeds_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -219,16 +142,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.ListFeedsResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1p2beta1.ListFeedsResponse other = - (com.google.cloud.asset.v1p2beta1.ListFeedsResponse) obj; + com.google.cloud.asset.v1p2beta1.ListFeedsResponse other = (com.google.cloud.asset.v1p2beta1.ListFeedsResponse) obj; - if (!getFeedsList().equals(other.getFeedsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getFeedsList() + .equals(other.getFeedsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -243,158 +166,148 @@ public int hashCode() { hash = (37 * hash) + FEEDS_FIELD_NUMBER; hash = (53 * hash) + getFeedsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse 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.asset.v1p2beta1.ListFeedsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.ListFeedsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.asset.v1p2beta1.ListFeedsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.asset.v1p2beta1.ListFeedsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.ListFeedsResponse) com.google.cloud.asset.v1p2beta1.ListFeedsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.ListFeedsResponse.class, - com.google.cloud.asset.v1p2beta1.ListFeedsResponse.Builder.class); + com.google.cloud.asset.v1p2beta1.ListFeedsResponse.class, com.google.cloud.asset.v1p2beta1.ListFeedsResponse.Builder.class); } // Construct using com.google.cloud.asset.v1p2beta1.ListFeedsResponse.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getFeedsFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); if (feedsBuilder_ == null) { feeds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + feeds_ = null; feedsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor; } @java.lang.Override @@ -413,8 +326,7 @@ public com.google.cloud.asset.v1p2beta1.ListFeedsResponse build() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.ListFeedsResponse buildPartial() { - com.google.cloud.asset.v1p2beta1.ListFeedsResponse result = - new com.google.cloud.asset.v1p2beta1.ListFeedsResponse(this); + com.google.cloud.asset.v1p2beta1.ListFeedsResponse result = new com.google.cloud.asset.v1p2beta1.ListFeedsResponse(this); int from_bitField0_ = bitField0_; if (feedsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -433,39 +345,38 @@ public com.google.cloud.asset.v1p2beta1.ListFeedsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p2beta1.ListFeedsResponse) { - return mergeFrom((com.google.cloud.asset.v1p2beta1.ListFeedsResponse) other); + return mergeFrom((com.google.cloud.asset.v1p2beta1.ListFeedsResponse)other); } else { super.mergeFrom(other); return this; @@ -473,8 +384,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.ListFeedsResponse other) { - if (other == com.google.cloud.asset.v1p2beta1.ListFeedsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1p2beta1.ListFeedsResponse.getDefaultInstance()) return this; if (feedsBuilder_ == null) { if (!other.feeds_.isEmpty()) { if (feeds_.isEmpty()) { @@ -493,16 +403,15 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.ListFeedsResponse othe feedsBuilder_ = null; feeds_ = other.feeds_; bitField0_ = (bitField0_ & ~0x00000001); - feedsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFeedsFieldBuilder() - : null; + feedsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFeedsFieldBuilder() : null; } else { feedsBuilder_.addAllMessages(other.feeds_); } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -517,42 +426,60 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p2beta1.ListFeedsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.asset.v1p2beta1.Feed m = + input.readMessage( + com.google.cloud.asset.v1p2beta1.Feed.parser(), + extensionRegistry); + if (feedsBuilder_ == null) { + ensureFeedsIsMutable(); + feeds_.add(m); + } else { + feedsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1p2beta1.ListFeedsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.util.List feeds_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFeedsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { feeds_ = new java.util.ArrayList(feeds_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Feed, - com.google.cloud.asset.v1p2beta1.Feed.Builder, - com.google.cloud.asset.v1p2beta1.FeedOrBuilder> - feedsBuilder_; + com.google.cloud.asset.v1p2beta1.Feed, com.google.cloud.asset.v1p2beta1.Feed.Builder, com.google.cloud.asset.v1p2beta1.FeedOrBuilder> feedsBuilder_; /** - * - * *
          * A list of feeds.
          * 
    @@ -567,8 +494,6 @@ public java.util.List getFeedsList() { } } /** - * - * *
          * A list of feeds.
          * 
    @@ -583,8 +508,6 @@ public int getFeedsCount() { } } /** - * - * *
          * A list of feeds.
          * 
    @@ -599,15 +522,14 @@ public com.google.cloud.asset.v1p2beta1.Feed getFeeds(int index) { } } /** - * - * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ - public Builder setFeeds(int index, com.google.cloud.asset.v1p2beta1.Feed value) { + public Builder setFeeds( + int index, com.google.cloud.asset.v1p2beta1.Feed value) { if (feedsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -621,8 +543,6 @@ public Builder setFeeds(int index, com.google.cloud.asset.v1p2beta1.Feed value) return this; } /** - * - * *
          * A list of feeds.
          * 
    @@ -641,8 +561,6 @@ public Builder setFeeds( return this; } /** - * - * *
          * A list of feeds.
          * 
    @@ -663,15 +581,14 @@ public Builder addFeeds(com.google.cloud.asset.v1p2beta1.Feed value) { return this; } /** - * - * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ - public Builder addFeeds(int index, com.google.cloud.asset.v1p2beta1.Feed value) { + public Builder addFeeds( + int index, com.google.cloud.asset.v1p2beta1.Feed value) { if (feedsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -685,15 +602,14 @@ public Builder addFeeds(int index, com.google.cloud.asset.v1p2beta1.Feed value) return this; } /** - * - * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ - public Builder addFeeds(com.google.cloud.asset.v1p2beta1.Feed.Builder builderForValue) { + public Builder addFeeds( + com.google.cloud.asset.v1p2beta1.Feed.Builder builderForValue) { if (feedsBuilder_ == null) { ensureFeedsIsMutable(); feeds_.add(builderForValue.build()); @@ -704,8 +620,6 @@ public Builder addFeeds(com.google.cloud.asset.v1p2beta1.Feed.Builder builderFor return this; } /** - * - * *
          * A list of feeds.
          * 
    @@ -724,8 +638,6 @@ public Builder addFeeds( return this; } /** - * - * *
          * A list of feeds.
          * 
    @@ -736,7 +648,8 @@ public Builder addAllFeeds( java.lang.Iterable values) { if (feedsBuilder_ == null) { ensureFeedsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, feeds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, feeds_); onChanged(); } else { feedsBuilder_.addAllMessages(values); @@ -744,8 +657,6 @@ public Builder addAllFeeds( return this; } /** - * - * *
          * A list of feeds.
          * 
    @@ -763,8 +674,6 @@ public Builder clearFeeds() { return this; } /** - * - * *
          * A list of feeds.
          * 
    @@ -782,44 +691,39 @@ public Builder removeFeeds(int index) { return this; } /** - * - * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ - public com.google.cloud.asset.v1p2beta1.Feed.Builder getFeedsBuilder(int index) { + public com.google.cloud.asset.v1p2beta1.Feed.Builder getFeedsBuilder( + int index) { return getFeedsFieldBuilder().getBuilder(index); } /** - * - * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ - public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedsOrBuilder(int index) { + public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedsOrBuilder( + int index) { if (feedsBuilder_ == null) { - return feeds_.get(index); - } else { + return feeds_.get(index); } else { return feedsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ - public java.util.List - getFeedsOrBuilderList() { + public java.util.List + getFeedsOrBuilderList() { if (feedsBuilder_ != null) { return feedsBuilder_.getMessageOrBuilderList(); } else { @@ -827,8 +731,6 @@ public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedsOrBuilder(int inde } } /** - * - * *
          * A list of feeds.
          * 
    @@ -836,54 +738,49 @@ public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedsOrBuilder(int inde * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ public com.google.cloud.asset.v1p2beta1.Feed.Builder addFeedsBuilder() { - return getFeedsFieldBuilder() - .addBuilder(com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance()); + return getFeedsFieldBuilder().addBuilder( + com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance()); } /** - * - * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ - public com.google.cloud.asset.v1p2beta1.Feed.Builder addFeedsBuilder(int index) { - return getFeedsFieldBuilder() - .addBuilder(index, com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance()); + public com.google.cloud.asset.v1p2beta1.Feed.Builder addFeedsBuilder( + int index) { + return getFeedsFieldBuilder().addBuilder( + index, com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance()); } /** - * - * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ - public java.util.List getFeedsBuilderList() { + public java.util.List + getFeedsBuilderList() { return getFeedsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Feed, - com.google.cloud.asset.v1p2beta1.Feed.Builder, - com.google.cloud.asset.v1p2beta1.FeedOrBuilder> + com.google.cloud.asset.v1p2beta1.Feed, com.google.cloud.asset.v1p2beta1.Feed.Builder, com.google.cloud.asset.v1p2beta1.FeedOrBuilder> getFeedsFieldBuilder() { if (feedsBuilder_ == null) { - feedsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Feed, - com.google.cloud.asset.v1p2beta1.Feed.Builder, - com.google.cloud.asset.v1p2beta1.FeedOrBuilder>( - feeds_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + feedsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1p2beta1.Feed, com.google.cloud.asset.v1p2beta1.Feed.Builder, com.google.cloud.asset.v1p2beta1.FeedOrBuilder>( + feeds_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); feeds_ = null; } return feedsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -893,12 +790,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.ListFeedsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.ListFeedsResponse) private static final com.google.cloud.asset.v1p2beta1.ListFeedsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.ListFeedsResponse(); } @@ -907,16 +804,27 @@ public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFeedsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFeedsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeedsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -931,4 +839,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.ListFeedsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponseOrBuilder.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponseOrBuilder.java similarity index 59% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponseOrBuilder.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponseOrBuilder.java index 3f00050ebe87..b80afe70fd20 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponseOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; -public interface ListFeedsResponseOrBuilder - extends +public interface ListFeedsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.ListFeedsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * A list of feeds.
        * 
    * * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ - java.util.List getFeedsList(); + java.util.List + getFeedsList(); /** - * - * *
        * A list of feeds.
        * 
    @@ -44,8 +25,6 @@ public interface ListFeedsResponseOrBuilder */ com.google.cloud.asset.v1p2beta1.Feed getFeeds(int index); /** - * - * *
        * A list of feeds.
        * 
    @@ -54,23 +33,21 @@ public interface ListFeedsResponseOrBuilder */ int getFeedsCount(); /** - * - * *
        * A list of feeds.
        * 
    * * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ - java.util.List getFeedsOrBuilderList(); + java.util.List + getFeedsOrBuilderList(); /** - * - * *
        * A list of feeds.
        * 
    * * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ - com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedsOrBuilder(int index); + com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedsOrBuilder( + int index); } diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfig.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfig.java similarity index 63% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfig.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfig.java index f2ed4e0bb723..a46df40df993 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfig.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfig.java @@ -1,138 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; /** - * - * *
      * Output configuration for export assets destination.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.OutputConfig} */ -public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.OutputConfig) OutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private OutputConfig() {} + private OutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private OutputConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.asset.v1p2beta1.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = - ((com.google.cloud.asset.v1p2beta1.GcsDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.asset.v1p2beta1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.asset.v1p2beta1.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 1; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.OutputConfig.class, - com.google.cloud.asset.v1p2beta1.OutputConfig.Builder.class); + com.google.cloud.asset.v1p2beta1.OutputConfig.class, com.google.cloud.asset.v1p2beta1.OutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -148,34 +70,29 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
        * Destination on Cloud Storage.
        * 
    * * .google.cloud.asset.v1p2beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -183,26 +100,21 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
        * Destination on Cloud Storage.
        * 
    * * .google.cloud.asset.v1p2beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.asset.v1p2beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1p2beta1.GcsDestination) destination_; + return (com.google.cloud.asset.v1p2beta1.GcsDestination) destination_; } return com.google.cloud.asset.v1p2beta1.GcsDestination.getDefaultInstance(); } /** - * - * *
        * Destination on Cloud Storage.
        * 
    @@ -212,13 +124,12 @@ public com.google.cloud.asset.v1p2beta1.GcsDestination getGcsDestination() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1p2beta1.GcsDestination) destination_; + return (com.google.cloud.asset.v1p2beta1.GcsDestination) destination_; } return com.google.cloud.asset.v1p2beta1.GcsDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,11 +141,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.asset.v1p2beta1.GcsDestination) destination_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -244,11 +156,10 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.asset.v1p2beta1.GcsDestination) destination_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.asset.v1p2beta1.GcsDestination) destination_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -256,23 +167,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.OutputConfig)) { return super.equals(obj); } - com.google.cloud.asset.v1p2beta1.OutputConfig other = - (com.google.cloud.asset.v1p2beta1.OutputConfig) obj; + com.google.cloud.asset.v1p2beta1.OutputConfig other = (com.google.cloud.asset.v1p2beta1.OutputConfig) obj; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination().equals(other.getGcsDestination())) return false; + if (!getGcsDestination() + .equals(other.getGcsDestination())) return false; break; case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -291,160 +202,150 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1p2beta1.OutputConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p2beta1.OutputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.OutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.OutputConfig 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.asset.v1p2beta1.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.OutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.OutputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.OutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p2beta1.OutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p2beta1.OutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.OutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Output configuration for export assets destination.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.OutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.OutputConfig) com.google.cloud.asset.v1p2beta1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.OutputConfig.class, - com.google.cloud.asset.v1p2beta1.OutputConfig.Builder.class); + com.google.cloud.asset.v1p2beta1.OutputConfig.class, com.google.cloud.asset.v1p2beta1.OutputConfig.Builder.class); } // Construct using com.google.cloud.asset.v1p2beta1.OutputConfig.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @java.lang.Override public Builder clear() { super.clear(); + if (gcsDestinationBuilder_ != null) { + gcsDestinationBuilder_.clear(); + } destinationCase_ = 0; destination_ = null; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor; } @java.lang.Override @@ -463,8 +364,7 @@ public com.google.cloud.asset.v1p2beta1.OutputConfig build() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.OutputConfig buildPartial() { - com.google.cloud.asset.v1p2beta1.OutputConfig result = - new com.google.cloud.asset.v1p2beta1.OutputConfig(this); + com.google.cloud.asset.v1p2beta1.OutputConfig result = new com.google.cloud.asset.v1p2beta1.OutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -481,39 +381,38 @@ public com.google.cloud.asset.v1p2beta1.OutputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p2beta1.OutputConfig) { - return mergeFrom((com.google.cloud.asset.v1p2beta1.OutputConfig) other); + return mergeFrom((com.google.cloud.asset.v1p2beta1.OutputConfig)other); } else { super.mergeFrom(other); return this; @@ -523,17 +422,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.OutputConfig other) { if (other == com.google.cloud.asset.v1p2beta1.OutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -548,25 +445,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p2beta1.OutputConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getGcsDestinationFieldBuilder().getBuilder(), + extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1p2beta1.OutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -576,20 +493,15 @@ public Builder clearDestination() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.GcsDestination, - com.google.cloud.asset.v1p2beta1.GcsDestination.Builder, - com.google.cloud.asset.v1p2beta1.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.asset.v1p2beta1.GcsDestination, com.google.cloud.asset.v1p2beta1.GcsDestination.Builder, com.google.cloud.asset.v1p2beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
          * Destination on Cloud Storage.
          * 
    * * .google.cloud.asset.v1p2beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -597,14 +509,11 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
          * Destination on Cloud Storage.
          * 
    * * .google.cloud.asset.v1p2beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override @@ -622,8 +531,6 @@ public com.google.cloud.asset.v1p2beta1.GcsDestination getGcsDestination() { } } /** - * - * *
          * Destination on Cloud Storage.
          * 
    @@ -644,8 +551,6 @@ public Builder setGcsDestination(com.google.cloud.asset.v1p2beta1.GcsDestination return this; } /** - * - * *
          * Destination on Cloud Storage.
          * 
    @@ -664,8 +569,6 @@ public Builder setGcsDestination( return this; } /** - * - * *
          * Destination on Cloud Storage.
          * 
    @@ -674,14 +577,10 @@ public Builder setGcsDestination( */ public Builder mergeGcsDestination(com.google.cloud.asset.v1p2beta1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 - && destination_ - != com.google.cloud.asset.v1p2beta1.GcsDestination.getDefaultInstance()) { - destination_ = - com.google.cloud.asset.v1p2beta1.GcsDestination.newBuilder( - (com.google.cloud.asset.v1p2beta1.GcsDestination) destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 1 && + destination_ != com.google.cloud.asset.v1p2beta1.GcsDestination.getDefaultInstance()) { + destination_ = com.google.cloud.asset.v1p2beta1.GcsDestination.newBuilder((com.google.cloud.asset.v1p2beta1.GcsDestination) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -697,8 +596,6 @@ public Builder mergeGcsDestination(com.google.cloud.asset.v1p2beta1.GcsDestinati return this; } /** - * - * *
          * Destination on Cloud Storage.
          * 
    @@ -722,8 +619,6 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
          * Destination on Cloud Storage.
          * 
    @@ -734,8 +629,6 @@ public com.google.cloud.asset.v1p2beta1.GcsDestination.Builder getGcsDestination return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
          * Destination on Cloud Storage.
          * 
    @@ -754,8 +647,6 @@ public com.google.cloud.asset.v1p2beta1.GcsDestinationOrBuilder getGcsDestinatio } } /** - * - * *
          * Destination on Cloud Storage.
          * 
    @@ -763,32 +654,26 @@ public com.google.cloud.asset.v1p2beta1.GcsDestinationOrBuilder getGcsDestinatio * .google.cloud.asset.v1p2beta1.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.GcsDestination, - com.google.cloud.asset.v1p2beta1.GcsDestination.Builder, - com.google.cloud.asset.v1p2beta1.GcsDestinationOrBuilder> + com.google.cloud.asset.v1p2beta1.GcsDestination, com.google.cloud.asset.v1p2beta1.GcsDestination.Builder, com.google.cloud.asset.v1p2beta1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.asset.v1p2beta1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.GcsDestination, - com.google.cloud.asset.v1p2beta1.GcsDestination.Builder, - com.google.cloud.asset.v1p2beta1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p2beta1.GcsDestination, com.google.cloud.asset.v1p2beta1.GcsDestination.Builder, com.google.cloud.asset.v1p2beta1.GcsDestinationOrBuilder>( (com.google.cloud.asset.v1p2beta1.GcsDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 1; - onChanged(); - ; + onChanged();; return gcsDestinationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -798,12 +683,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.OutputConfig) private static final com.google.cloud.asset.v1p2beta1.OutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.OutputConfig(); } @@ -812,16 +697,27 @@ public static com.google.cloud.asset.v1p2beta1.OutputConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -836,4 +732,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfigOrBuilder.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfigOrBuilder.java similarity index 62% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfigOrBuilder.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfigOrBuilder.java index 2eadb8a878a4..ce0072cbcb16 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfigOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfigOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; -public interface OutputConfigOrBuilder - extends +public interface OutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Destination on Cloud Storage.
        * 
    * * .google.cloud.asset.v1p2beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
        * Destination on Cloud Storage.
        * 
    * * .google.cloud.asset.v1p2beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.asset.v1p2beta1.GcsDestination getGcsDestination(); /** - * - * *
        * Destination on Cloud Storage.
        * 
    diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestination.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestination.java similarity index 61% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestination.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestination.java index 5f5caea81ff1..1c6133e657be 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestination.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestination.java @@ -1,130 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; /** - * - * *
      * A Cloud Pubsub destination.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.PubsubDestination} */ -public final class PubsubDestination extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PubsubDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.PubsubDestination) PubsubDestinationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PubsubDestination.newBuilder() to construct. private PubsubDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PubsubDestination() { topic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PubsubDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private PubsubDestination( - 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(); - - topic_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.PubsubDestination.class, - com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder.class); + com.google.cloud.asset.v1p2beta1.PubsubDestination.class, com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; private volatile java.lang.Object topic_; /** - * - * *
        * The name of the Cloud Pub/Sub topic to publish to.
        * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
        * 
    * * string topic = 1; - * * @return The topic. */ @java.lang.Override @@ -133,30 +65,30 @@ public java.lang.String getTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } } /** - * - * *
        * The name of the Cloud Pub/Sub topic to publish to.
        * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
        * 
    * * string topic = 1; - * * @return The bytes for topic. */ @java.lang.Override - public com.google.protobuf.ByteString getTopicBytes() { + public com.google.protobuf.ByteString + getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); topic_ = b; return b; } else { @@ -165,7 +97,6 @@ public com.google.protobuf.ByteString getTopicBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,11 +108,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -193,7 +125,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -201,16 +133,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.PubsubDestination)) { return super.equals(obj); } - com.google.cloud.asset.v1p2beta1.PubsubDestination other = - (com.google.cloud.asset.v1p2beta1.PubsubDestination) obj; + com.google.cloud.asset.v1p2beta1.PubsubDestination other = (com.google.cloud.asset.v1p2beta1.PubsubDestination) obj; - if (!getTopic().equals(other.getTopic())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getTopic() + .equals(other.getTopic())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,148 +155,135 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TOPIC_FIELD_NUMBER; hash = (53 * hash) + getTopic().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1p2beta1.PubsubDestination parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.PubsubDestination parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.PubsubDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.PubsubDestination 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.asset.v1p2beta1.PubsubDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.PubsubDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1p2beta1.PubsubDestination parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p2beta1.PubsubDestination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.PubsubDestination parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p2beta1.PubsubDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p2beta1.PubsubDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.PubsubDestination parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.PubsubDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.PubsubDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.PubsubDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * A Cloud Pubsub destination.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.PubsubDestination} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.PubsubDestination) com.google.cloud.asset.v1p2beta1.PubsubDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.PubsubDestination.class, - com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder.class); + com.google.cloud.asset.v1p2beta1.PubsubDestination.class, com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder.class); } // Construct using com.google.cloud.asset.v1p2beta1.PubsubDestination.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -374,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor; } @java.lang.Override @@ -395,8 +314,7 @@ public com.google.cloud.asset.v1p2beta1.PubsubDestination build() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.PubsubDestination buildPartial() { - com.google.cloud.asset.v1p2beta1.PubsubDestination result = - new com.google.cloud.asset.v1p2beta1.PubsubDestination(this); + com.google.cloud.asset.v1p2beta1.PubsubDestination result = new com.google.cloud.asset.v1p2beta1.PubsubDestination(this); result.topic_ = topic_; onBuilt(); return result; @@ -406,39 +324,38 @@ public com.google.cloud.asset.v1p2beta1.PubsubDestination buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p2beta1.PubsubDestination) { - return mergeFrom((com.google.cloud.asset.v1p2beta1.PubsubDestination) other); + return mergeFrom((com.google.cloud.asset.v1p2beta1.PubsubDestination)other); } else { super.mergeFrom(other); return this; @@ -446,13 +363,12 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.PubsubDestination other) { - if (other == com.google.cloud.asset.v1p2beta1.PubsubDestination.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1p2beta1.PubsubDestination.getDefaultInstance()) return this; if (!other.getTopic().isEmpty()) { topic_ = other.topic_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -467,38 +383,53 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p2beta1.PubsubDestination parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + topic_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1p2beta1.PubsubDestination) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object topic_ = ""; /** - * - * *
          * The name of the Cloud Pub/Sub topic to publish to.
          * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
          * 
    * * string topic = 1; - * * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; @@ -507,22 +438,21 @@ public java.lang.String getTopic() { } } /** - * - * *
          * The name of the Cloud Pub/Sub topic to publish to.
          * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
          * 
    * * string topic = 1; - * * @return The bytes for topic. */ - public com.google.protobuf.ByteString getTopicBytes() { + public com.google.protobuf.ByteString + getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); topic_ = b; return b; } else { @@ -530,71 +460,64 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
          * The name of the Cloud Pub/Sub topic to publish to.
          * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
          * 
    * * string topic = 1; - * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic(java.lang.String value) { + public Builder setTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; onChanged(); return this; } /** - * - * *
          * The name of the Cloud Pub/Sub topic to publish to.
          * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
          * 
    * * string topic = 1; - * * @return This builder for chaining. */ public Builder clearTopic() { - + topic_ = getDefaultInstance().getTopic(); onChanged(); return this; } /** - * - * *
          * The name of the Cloud Pub/Sub topic to publish to.
          * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
          * 
    * * string topic = 1; - * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes(com.google.protobuf.ByteString value) { + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -604,12 +527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.PubsubDestination) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.PubsubDestination) private static final com.google.cloud.asset.v1p2beta1.PubsubDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.PubsubDestination(); } @@ -618,16 +541,27 @@ public static com.google.cloud.asset.v1p2beta1.PubsubDestination getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PubsubDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PubsubDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PubsubDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -642,4 +576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.PubsubDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestinationOrBuilder.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestinationOrBuilder.java similarity index 51% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestinationOrBuilder.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestinationOrBuilder.java index b52b0f9aa6ea..e6d950141c14 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestinationOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestinationOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; -public interface PubsubDestinationOrBuilder - extends +public interface PubsubDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.PubsubDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The name of the Cloud Pub/Sub topic to publish to.
        * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
        * 
    * * string topic = 1; - * * @return The topic. */ java.lang.String getTopic(); /** - * - * *
        * The name of the Cloud Pub/Sub topic to publish to.
        * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
        * 
    * * string topic = 1; - * * @return The bytes for topic. */ - com.google.protobuf.ByteString getTopicBytes(); + com.google.protobuf.ByteString + getTopicBytes(); } diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Resource.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Resource.java similarity index 73% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Resource.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Resource.java index 8de2f53df62a..d585e2585665 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Resource.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Resource.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/assets.proto package com.google.cloud.asset.v1p2beta1; /** - * - * *
      * Representation of a cloud resource.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.Resource} */ -public final class Resource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Resource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.Resource) ResourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Resource.newBuilder() to construct. private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Resource() { version_ = ""; discoveryDocumentUri_ = ""; @@ -47,129 +29,37 @@ private Resource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Resource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + 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(); - - version_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - discoveryDocumentUri_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - discoveryName_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - resourceUrl_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 50: - { - com.google.protobuf.Struct.Builder subBuilder = null; - if (data_ != null) { - subBuilder = data_.toBuilder(); - } - data_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(data_); - data_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetProto - .internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetProto - .internal_static_google_cloud_asset_v1p2beta1_Resource_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.Resource.class, - com.google.cloud.asset.v1p2beta1.Resource.Builder.class); + com.google.cloud.asset.v1p2beta1.Resource.class, com.google.cloud.asset.v1p2beta1.Resource.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** - * - * *
        * The API version. Example: "v1".
        * 
    * * string version = 1; - * * @return The version. */ @java.lang.Override @@ -178,29 +68,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
        * The API version. Example: "v1".
        * 
    * * string version = 1; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -211,8 +101,6 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int DISCOVERY_DOCUMENT_URI_FIELD_NUMBER = 2; private volatile java.lang.Object discoveryDocumentUri_; /** - * - * *
        * The URL of the discovery document containing the resource's JSON schema.
        * For example:
    @@ -222,7 +110,6 @@ public com.google.protobuf.ByteString getVersionBytes() {
        * 
    * * string discovery_document_uri = 2; - * * @return The discoveryDocumentUri. */ @java.lang.Override @@ -231,15 +118,14 @@ public java.lang.String getDiscoveryDocumentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryDocumentUri_ = s; return s; } } /** - * - * *
        * The URL of the discovery document containing the resource's JSON schema.
        * For example:
    @@ -249,15 +135,16 @@ public java.lang.String getDiscoveryDocumentUri() {
        * 
    * * string discovery_document_uri = 2; - * * @return The bytes for discoveryDocumentUri. */ @java.lang.Override - public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { + public com.google.protobuf.ByteString + getDiscoveryDocumentUriBytes() { java.lang.Object ref = discoveryDocumentUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); discoveryDocumentUri_ = b; return b; } else { @@ -268,8 +155,6 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { public static final int DISCOVERY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object discoveryName_; /** - * - * *
        * The JSON schema name listed in the discovery document.
        * Example: "Project". It will be left unspecified for resources (such as
    @@ -277,7 +162,6 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() {
        * 
    * * string discovery_name = 3; - * * @return The discoveryName. */ @java.lang.Override @@ -286,15 +170,14 @@ public java.lang.String getDiscoveryName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryName_ = s; return s; } } /** - * - * *
        * The JSON schema name listed in the discovery document.
        * Example: "Project". It will be left unspecified for resources (such as
    @@ -302,15 +185,16 @@ public java.lang.String getDiscoveryName() {
        * 
    * * string discovery_name = 3; - * * @return The bytes for discoveryName. */ @java.lang.Override - public com.google.protobuf.ByteString getDiscoveryNameBytes() { + public com.google.protobuf.ByteString + getDiscoveryNameBytes() { java.lang.Object ref = discoveryName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); discoveryName_ = b; return b; } else { @@ -321,8 +205,6 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() { public static final int RESOURCE_URL_FIELD_NUMBER = 4; private volatile java.lang.Object resourceUrl_; /** - * - * *
        * The REST URL for accessing the resource. An HTTP GET operation using this
        * URL returns the resource itself.
    @@ -332,7 +214,6 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() {
        * 
    * * string resource_url = 4; - * * @return The resourceUrl. */ @java.lang.Override @@ -341,15 +222,14 @@ public java.lang.String getResourceUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; } } /** - * - * *
        * The REST URL for accessing the resource. An HTTP GET operation using this
        * URL returns the resource itself.
    @@ -359,15 +239,16 @@ public java.lang.String getResourceUrl() {
        * 
    * * string resource_url = 4; - * * @return The bytes for resourceUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceUrlBytes() { + public com.google.protobuf.ByteString + getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -378,8 +259,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { public static final int PARENT_FIELD_NUMBER = 5; private volatile java.lang.Object parent_; /** - * - * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -393,7 +272,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() {
        * 
    * * string parent = 5; - * * @return The parent. */ @java.lang.Override @@ -402,15 +280,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -424,15 +301,16 @@ public java.lang.String getParent() {
        * 
    * * string parent = 5; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -443,15 +321,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int DATA_FIELD_NUMBER = 6; private com.google.protobuf.Struct data_; /** - * - * *
        * The content of the resource, in which some sensitive fields are scrubbed
        * away and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; - * * @return Whether the data field is set. */ @java.lang.Override @@ -459,15 +334,12 @@ public boolean hasData() { return data_ != null; } /** - * - * *
        * The content of the resource, in which some sensitive fields are scrubbed
        * away and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; - * * @return The data. */ @java.lang.Override @@ -475,8 +347,6 @@ public com.google.protobuf.Struct getData() { return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_; } /** - * - * *
        * The content of the resource, in which some sensitive fields are scrubbed
        * away and may not be present.
    @@ -490,7 +360,6 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
       }
     
       private byte memoizedIsInitialized = -1;
    -
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -502,7 +371,8 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output)
    +                      throws java.io.IOException {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
         }
    @@ -521,7 +391,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (data_ != null) {
           output.writeMessage(6, getData());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -546,9 +416,10 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_);
         }
         if (data_ != null) {
    -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getData());
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(6, getData());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -556,24 +427,29 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -      return true;
    +     return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1p2beta1.Resource)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1p2beta1.Resource other =
    -        (com.google.cloud.asset.v1p2beta1.Resource) obj;
    -
    -    if (!getVersion().equals(other.getVersion())) return false;
    -    if (!getDiscoveryDocumentUri().equals(other.getDiscoveryDocumentUri())) return false;
    -    if (!getDiscoveryName().equals(other.getDiscoveryName())) return false;
    -    if (!getResourceUrl().equals(other.getResourceUrl())) return false;
    -    if (!getParent().equals(other.getParent())) return false;
    +    com.google.cloud.asset.v1p2beta1.Resource other = (com.google.cloud.asset.v1p2beta1.Resource) obj;
    +
    +    if (!getVersion()
    +        .equals(other.getVersion())) return false;
    +    if (!getDiscoveryDocumentUri()
    +        .equals(other.getDiscoveryDocumentUri())) return false;
    +    if (!getDiscoveryName()
    +        .equals(other.getDiscoveryName())) return false;
    +    if (!getResourceUrl()
    +        .equals(other.getResourceUrl())) return false;
    +    if (!getParent()
    +        .equals(other.getParent())) return false;
         if (hasData() != other.hasData()) return false;
         if (hasData()) {
    -      if (!getData().equals(other.getData())) return false;
    +      if (!getData()
    +          .equals(other.getData())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -598,148 +474,135 @@ public int hashCode() {
           hash = (37 * hash) + DATA_FIELD_NUMBER;
           hash = (53 * hash) + getData().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1p2beta1.Resource parseFrom(java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1p2beta1.Resource parseFrom(
    +      java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1p2beta1.Resource parseFrom(
    -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1p2beta1.Resource parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1p2beta1.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.asset.v1p2beta1.Resource parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1p2beta1.Resource parseFrom(
    -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1p2beta1.Resource parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1p2beta1.Resource parseFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
    -
    -  public static com.google.cloud.asset.v1p2beta1.Resource parseDelimitedFrom(
    -      java.io.InputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    +  public static com.google.cloud.asset.v1p2beta1.Resource parseDelimitedFrom(java.io.InputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1p2beta1.Resource parseDelimitedFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1p2beta1.Resource parseFrom(
    -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1p2beta1.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);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() {
    -    return newBuilder();
    -  }
    -
    +  public Builder newBuilderForType() { return newBuilder(); }
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    -
       public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.Resource prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    -
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE
    +        ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(
    +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    -   *
    -   *
        * 
        * Representation of a cloud resource.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.Resource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.Resource) com.google.cloud.asset.v1p2beta1.ResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetProto - .internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetProto - .internal_static_google_cloud_asset_v1p2beta1_Resource_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.Resource.class, - com.google.cloud.asset.v1p2beta1.Resource.Builder.class); + com.google.cloud.asset.v1p2beta1.Resource.class, com.google.cloud.asset.v1p2beta1.Resource.Builder.class); } // Construct using com.google.cloud.asset.v1p2beta1.Resource.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -763,9 +626,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p2beta1.AssetProto - .internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor; } @java.lang.Override @@ -784,8 +647,7 @@ public com.google.cloud.asset.v1p2beta1.Resource build() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.Resource buildPartial() { - com.google.cloud.asset.v1p2beta1.Resource result = - new com.google.cloud.asset.v1p2beta1.Resource(this); + com.google.cloud.asset.v1p2beta1.Resource result = new com.google.cloud.asset.v1p2beta1.Resource(this); result.version_ = version_; result.discoveryDocumentUri_ = discoveryDocumentUri_; result.discoveryName_ = discoveryName_; @@ -804,39 +666,38 @@ public com.google.cloud.asset.v1p2beta1.Resource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p2beta1.Resource) { - return mergeFrom((com.google.cloud.asset.v1p2beta1.Resource) other); + return mergeFrom((com.google.cloud.asset.v1p2beta1.Resource)other); } else { super.mergeFrom(other); return this; @@ -868,7 +729,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.Resource other) { if (other.hasData()) { mergeData(other.getData()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -883,36 +744,79 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p2beta1.Resource parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + version_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + discoveryDocumentUri_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + discoveryName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + resourceUrl_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + input.readMessage( + getDataFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1p2beta1.Resource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object version_ = ""; /** - * - * *
          * The API version. Example: "v1".
          * 
    * * string version = 1; - * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -921,21 +825,20 @@ public java.lang.String getVersion() { } } /** - * - * *
          * The API version. Example: "v1".
          * 
    * * string version = 1; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -943,61 +846,54 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
          * The API version. Example: "v1".
          * 
    * * string version = 1; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
          * The API version. Example: "v1".
          * 
    * * string version = 1; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
          * The API version. Example: "v1".
          * 
    * * string version = 1; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -1005,8 +901,6 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { private java.lang.Object discoveryDocumentUri_ = ""; /** - * - * *
          * The URL of the discovery document containing the resource's JSON schema.
          * For example:
    @@ -1016,13 +910,13 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) {
          * 
    * * string discovery_document_uri = 2; - * * @return The discoveryDocumentUri. */ public java.lang.String getDiscoveryDocumentUri() { java.lang.Object ref = discoveryDocumentUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryDocumentUri_ = s; return s; @@ -1031,8 +925,6 @@ public java.lang.String getDiscoveryDocumentUri() { } } /** - * - * *
          * The URL of the discovery document containing the resource's JSON schema.
          * For example:
    @@ -1042,14 +934,15 @@ public java.lang.String getDiscoveryDocumentUri() {
          * 
    * * string discovery_document_uri = 2; - * * @return The bytes for discoveryDocumentUri. */ - public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { + public com.google.protobuf.ByteString + getDiscoveryDocumentUriBytes() { java.lang.Object ref = discoveryDocumentUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); discoveryDocumentUri_ = b; return b; } else { @@ -1057,8 +950,6 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { } } /** - * - * *
          * The URL of the discovery document containing the resource's JSON schema.
          * For example:
    @@ -1068,22 +959,20 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() {
          * 
    * * string discovery_document_uri = 2; - * * @param value The discoveryDocumentUri to set. * @return This builder for chaining. */ - public Builder setDiscoveryDocumentUri(java.lang.String value) { + public Builder setDiscoveryDocumentUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + discoveryDocumentUri_ = value; onChanged(); return this; } /** - * - * *
          * The URL of the discovery document containing the resource's JSON schema.
          * For example:
    @@ -1093,18 +982,15 @@ public Builder setDiscoveryDocumentUri(java.lang.String value) {
          * 
    * * string discovery_document_uri = 2; - * * @return This builder for chaining. */ public Builder clearDiscoveryDocumentUri() { - + discoveryDocumentUri_ = getDefaultInstance().getDiscoveryDocumentUri(); onChanged(); return this; } /** - * - * *
          * The URL of the discovery document containing the resource's JSON schema.
          * For example:
    @@ -1114,16 +1000,16 @@ public Builder clearDiscoveryDocumentUri() {
          * 
    * * string discovery_document_uri = 2; - * * @param value The bytes for discoveryDocumentUri to set. * @return This builder for chaining. */ - public Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value) { + public Builder setDiscoveryDocumentUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + discoveryDocumentUri_ = value; onChanged(); return this; @@ -1131,8 +1017,6 @@ public Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value private java.lang.Object discoveryName_ = ""; /** - * - * *
          * The JSON schema name listed in the discovery document.
          * Example: "Project". It will be left unspecified for resources (such as
    @@ -1140,13 +1024,13 @@ public Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value
          * 
    * * string discovery_name = 3; - * * @return The discoveryName. */ public java.lang.String getDiscoveryName() { java.lang.Object ref = discoveryName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryName_ = s; return s; @@ -1155,8 +1039,6 @@ public java.lang.String getDiscoveryName() { } } /** - * - * *
          * The JSON schema name listed in the discovery document.
          * Example: "Project". It will be left unspecified for resources (such as
    @@ -1164,14 +1046,15 @@ public java.lang.String getDiscoveryName() {
          * 
    * * string discovery_name = 3; - * * @return The bytes for discoveryName. */ - public com.google.protobuf.ByteString getDiscoveryNameBytes() { + public com.google.protobuf.ByteString + getDiscoveryNameBytes() { java.lang.Object ref = discoveryName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); discoveryName_ = b; return b; } else { @@ -1179,8 +1062,6 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() { } } /** - * - * *
          * The JSON schema name listed in the discovery document.
          * Example: "Project". It will be left unspecified for resources (such as
    @@ -1188,22 +1069,20 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() {
          * 
    * * string discovery_name = 3; - * * @param value The discoveryName to set. * @return This builder for chaining. */ - public Builder setDiscoveryName(java.lang.String value) { + public Builder setDiscoveryName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + discoveryName_ = value; onChanged(); return this; } /** - * - * *
          * The JSON schema name listed in the discovery document.
          * Example: "Project". It will be left unspecified for resources (such as
    @@ -1211,18 +1090,15 @@ public Builder setDiscoveryName(java.lang.String value) {
          * 
    * * string discovery_name = 3; - * * @return This builder for chaining. */ public Builder clearDiscoveryName() { - + discoveryName_ = getDefaultInstance().getDiscoveryName(); onChanged(); return this; } /** - * - * *
          * The JSON schema name listed in the discovery document.
          * Example: "Project". It will be left unspecified for resources (such as
    @@ -1230,16 +1106,16 @@ public Builder clearDiscoveryName() {
          * 
    * * string discovery_name = 3; - * * @param value The bytes for discoveryName to set. * @return This builder for chaining. */ - public Builder setDiscoveryNameBytes(com.google.protobuf.ByteString value) { + public Builder setDiscoveryNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + discoveryName_ = value; onChanged(); return this; @@ -1247,8 +1123,6 @@ public Builder setDiscoveryNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceUrl_ = ""; /** - * - * *
          * The REST URL for accessing the resource. An HTTP GET operation using this
          * URL returns the resource itself.
    @@ -1258,13 +1132,13 @@ public Builder setDiscoveryNameBytes(com.google.protobuf.ByteString value) {
          * 
    * * string resource_url = 4; - * * @return The resourceUrl. */ public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; @@ -1273,8 +1147,6 @@ public java.lang.String getResourceUrl() { } } /** - * - * *
          * The REST URL for accessing the resource. An HTTP GET operation using this
          * URL returns the resource itself.
    @@ -1284,14 +1156,15 @@ public java.lang.String getResourceUrl() {
          * 
    * * string resource_url = 4; - * * @return The bytes for resourceUrl. */ - public com.google.protobuf.ByteString getResourceUrlBytes() { + public com.google.protobuf.ByteString + getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -1299,8 +1172,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { } } /** - * - * *
          * The REST URL for accessing the resource. An HTTP GET operation using this
          * URL returns the resource itself.
    @@ -1310,22 +1181,20 @@ public com.google.protobuf.ByteString getResourceUrlBytes() {
          * 
    * * string resource_url = 4; - * * @param value The resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrl(java.lang.String value) { + public Builder setResourceUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceUrl_ = value; onChanged(); return this; } /** - * - * *
          * The REST URL for accessing the resource. An HTTP GET operation using this
          * URL returns the resource itself.
    @@ -1335,18 +1204,15 @@ public Builder setResourceUrl(java.lang.String value) {
          * 
    * * string resource_url = 4; - * * @return This builder for chaining. */ public Builder clearResourceUrl() { - + resourceUrl_ = getDefaultInstance().getResourceUrl(); onChanged(); return this; } /** - * - * *
          * The REST URL for accessing the resource. An HTTP GET operation using this
          * URL returns the resource itself.
    @@ -1356,16 +1222,16 @@ public Builder clearResourceUrl() {
          * 
    * * string resource_url = 4; - * * @param value The bytes for resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { + public Builder setResourceUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceUrl_ = value; onChanged(); return this; @@ -1373,8 +1239,6 @@ public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object parent_ = ""; /** - * - * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1388,13 +1252,13 @@ public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) {
          * 
    * * string parent = 5; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1403,8 +1267,6 @@ public java.lang.String getParent() { } } /** - * - * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1418,14 +1280,15 @@ public java.lang.String getParent() {
          * 
    * * string parent = 5; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1433,8 +1296,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1448,22 +1309,20 @@ public com.google.protobuf.ByteString getParentBytes() {
          * 
    * * string parent = 5; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1477,18 +1336,15 @@ public Builder setParent(java.lang.String value) {
          * 
    * * string parent = 5; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1502,16 +1358,16 @@ public Builder clearParent() {
          * 
    * * string parent = 5; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1519,35 +1375,26 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Struct data_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - dataBuilder_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> dataBuilder_; /** - * - * *
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
          * 
    * * .google.protobuf.Struct data = 6; - * * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** - * - * *
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
          * 
    * * .google.protobuf.Struct data = 6; - * * @return The data. */ public com.google.protobuf.Struct getData() { @@ -1558,8 +1405,6 @@ public com.google.protobuf.Struct getData() { } } /** - * - * *
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1581,8 +1426,6 @@ public Builder setData(com.google.protobuf.Struct value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1590,7 +1433,8 @@ public Builder setData(com.google.protobuf.Struct value) {
          *
          * .google.protobuf.Struct data = 6;
          */
    -    public Builder setData(com.google.protobuf.Struct.Builder builderForValue) {
    +    public Builder setData(
    +        com.google.protobuf.Struct.Builder builderForValue) {
           if (dataBuilder_ == null) {
             data_ = builderForValue.build();
             onChanged();
    @@ -1601,8 +1445,6 @@ public Builder setData(com.google.protobuf.Struct.Builder builderForValue) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1613,7 +1455,8 @@ public Builder setData(com.google.protobuf.Struct.Builder builderForValue) {
         public Builder mergeData(com.google.protobuf.Struct value) {
           if (dataBuilder_ == null) {
             if (data_ != null) {
    -          data_ = com.google.protobuf.Struct.newBuilder(data_).mergeFrom(value).buildPartial();
    +          data_ =
    +            com.google.protobuf.Struct.newBuilder(data_).mergeFrom(value).buildPartial();
             } else {
               data_ = value;
             }
    @@ -1625,8 +1468,6 @@ public Builder mergeData(com.google.protobuf.Struct value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1646,8 +1487,6 @@ public Builder clearData() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1656,13 +1495,11 @@ public Builder clearData() {
          * .google.protobuf.Struct data = 6;
          */
         public com.google.protobuf.Struct.Builder getDataBuilder() {
    -
    +      
           onChanged();
           return getDataFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1674,12 +1511,11 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
           if (dataBuilder_ != null) {
             return dataBuilder_.getMessageOrBuilder();
           } else {
    -        return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_;
    +        return data_ == null ?
    +            com.google.protobuf.Struct.getDefaultInstance() : data_;
           }
         }
         /**
    -     *
    -     *
          * 
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1688,23 +1524,21 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
          * .google.protobuf.Struct data = 6;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Struct,
    -            com.google.protobuf.Struct.Builder,
    -            com.google.protobuf.StructOrBuilder>
    +        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
             getDataFieldBuilder() {
           if (dataBuilder_ == null) {
    -        dataBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.protobuf.Struct,
    -                com.google.protobuf.Struct.Builder,
    -                com.google.protobuf.StructOrBuilder>(getData(), getParentForChildren(), isClean());
    +        dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
    +                getData(),
    +                getParentForChildren(),
    +                isClean());
             data_ = null;
           }
           return dataBuilder_;
         }
    -
         @java.lang.Override
    -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(
    +        final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -1714,12 +1548,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    +
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.Resource)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.Resource)
       private static final com.google.cloud.asset.v1p2beta1.Resource DEFAULT_INSTANCE;
    -
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.Resource();
       }
    @@ -1728,16 +1562,27 @@ public static com.google.cloud.asset.v1p2beta1.Resource getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  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);
    -        }
    -      };
    +  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 {
    +      Builder builder = newBuilder();
    +      try {
    +        builder.mergeFrom(input, extensionRegistry);
    +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +        throw e.setUnfinishedMessage(builder.buildPartial());
    +      } catch (com.google.protobuf.UninitializedMessageException e) {
    +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +      } catch (java.io.IOException e) {
    +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +            .setUnfinishedMessage(builder.buildPartial());
    +      }
    +      return builder.buildPartial();
    +    }
    +  };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1752,4 +1597,6 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1p2beta1.Resource getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    +
     }
    +
    diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ResourceOrBuilder.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ResourceOrBuilder.java
    similarity index 81%
    rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ResourceOrBuilder.java
    rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ResourceOrBuilder.java
    index 106c7dfff4c7..8e45f66a2bb8 100644
    --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ResourceOrBuilder.java
    +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ResourceOrBuilder.java
    @@ -1,56 +1,33 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1p2beta1/assets.proto
     
     package com.google.cloud.asset.v1p2beta1;
     
    -public interface ResourceOrBuilder
    -    extends
    +public interface ResourceOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.Resource)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    -   *
    -   *
        * 
        * The API version. Example: "v1".
        * 
    * * string version = 1; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
        * The API version. Example: "v1".
        * 
    * * string version = 1; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
        * The URL of the discovery document containing the resource's JSON schema.
        * For example:
    @@ -60,13 +37,10 @@ public interface ResourceOrBuilder
        * 
    * * string discovery_document_uri = 2; - * * @return The discoveryDocumentUri. */ java.lang.String getDiscoveryDocumentUri(); /** - * - * *
        * The URL of the discovery document containing the resource's JSON schema.
        * For example:
    @@ -76,14 +50,12 @@ public interface ResourceOrBuilder
        * 
    * * string discovery_document_uri = 2; - * * @return The bytes for discoveryDocumentUri. */ - com.google.protobuf.ByteString getDiscoveryDocumentUriBytes(); + com.google.protobuf.ByteString + getDiscoveryDocumentUriBytes(); /** - * - * *
        * The JSON schema name listed in the discovery document.
        * Example: "Project". It will be left unspecified for resources (such as
    @@ -91,13 +63,10 @@ public interface ResourceOrBuilder
        * 
    * * string discovery_name = 3; - * * @return The discoveryName. */ java.lang.String getDiscoveryName(); /** - * - * *
        * The JSON schema name listed in the discovery document.
        * Example: "Project". It will be left unspecified for resources (such as
    @@ -105,14 +74,12 @@ public interface ResourceOrBuilder
        * 
    * * string discovery_name = 3; - * * @return The bytes for discoveryName. */ - com.google.protobuf.ByteString getDiscoveryNameBytes(); + com.google.protobuf.ByteString + getDiscoveryNameBytes(); /** - * - * *
        * The REST URL for accessing the resource. An HTTP GET operation using this
        * URL returns the resource itself.
    @@ -122,13 +89,10 @@ public interface ResourceOrBuilder
        * 
    * * string resource_url = 4; - * * @return The resourceUrl. */ java.lang.String getResourceUrl(); /** - * - * *
        * The REST URL for accessing the resource. An HTTP GET operation using this
        * URL returns the resource itself.
    @@ -138,14 +102,12 @@ public interface ResourceOrBuilder
        * 
    * * string resource_url = 4; - * * @return The bytes for resourceUrl. */ - com.google.protobuf.ByteString getResourceUrlBytes(); + com.google.protobuf.ByteString + getResourceUrlBytes(); /** - * - * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -159,13 +121,10 @@ public interface ResourceOrBuilder
        * 
    * * string parent = 5; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -179,40 +138,32 @@ public interface ResourceOrBuilder
        * 
    * * string parent = 5; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
        * The content of the resource, in which some sensitive fields are scrubbed
        * away and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; - * * @return Whether the data field is set. */ boolean hasData(); /** - * - * *
        * The content of the resource, in which some sensitive fields are scrubbed
        * away and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; - * * @return The data. */ com.google.protobuf.Struct getData(); /** - * - * *
        * The content of the resource, in which some sensitive fields are scrubbed
        * away and may not be present.
    diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAsset.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAsset.java
    similarity index 64%
    rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAsset.java
    rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAsset.java
    index 10b8a416d0da..cbde8a23ee49 100644
    --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAsset.java
    +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAsset.java
    @@ -1,26 +1,9 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1p2beta1/assets.proto
     
     package com.google.cloud.asset.v1p2beta1;
     
     /**
    - *
    - *
      * 
      * Temporal asset. In addition to the asset, the temporal asset includes the
      * status of the asset and valid from and to time of it.
    @@ -28,131 +11,51 @@
      *
      * Protobuf type {@code google.cloud.asset.v1p2beta1.TemporalAsset}
      */
    -public final class TemporalAsset extends com.google.protobuf.GeneratedMessageV3
    -    implements
    +public final class TemporalAsset extends
    +    com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.TemporalAsset)
         TemporalAssetOrBuilder {
    -  private static final long serialVersionUID = 0L;
    +private static final long serialVersionUID = 0L;
       // Use TemporalAsset.newBuilder() to construct.
       private TemporalAsset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -
    -  private TemporalAsset() {}
    +  private TemporalAsset() {
    +  }
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(
    +      UnusedPrivateParameter unused) {
         return new TemporalAsset();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet
    +  getUnknownFields() {
         return this.unknownFields;
       }
    -
    -  private TemporalAsset(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              com.google.cloud.asset.v1p2beta1.TimeWindow.Builder subBuilder = null;
    -              if (window_ != null) {
    -                subBuilder = window_.toBuilder();
    -              }
    -              window_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p2beta1.TimeWindow.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(window_);
    -                window_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 16:
    -            {
    -              deleted_ = input.readBool();
    -              break;
    -            }
    -          case 26:
    -            {
    -              com.google.cloud.asset.v1p2beta1.Asset.Builder subBuilder = null;
    -              if (asset_ != null) {
    -                subBuilder = asset_.toBuilder();
    -              }
    -              asset_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p2beta1.Asset.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(asset_);
    -                asset_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
    -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.cloud.asset.v1p2beta1.AssetProto
    -        .internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_descriptor;
    +  public static final com.google.protobuf.Descriptors.Descriptor
    +      getDescriptor() {
    +    return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1p2beta1.AssetProto
    -        .internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_fieldAccessorTable
    +    return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1p2beta1.TemporalAsset.class,
    -            com.google.cloud.asset.v1p2beta1.TemporalAsset.Builder.class);
    +            com.google.cloud.asset.v1p2beta1.TemporalAsset.class, com.google.cloud.asset.v1p2beta1.TemporalAsset.Builder.class);
       }
     
       public static final int WINDOW_FIELD_NUMBER = 1;
       private com.google.cloud.asset.v1p2beta1.TimeWindow window_;
       /**
    -   *
    -   *
        * 
        * The time window when the asset data and state was observed.
        * 
    * * .google.cloud.asset.v1p2beta1.TimeWindow window = 1; - * * @return Whether the window field is set. */ @java.lang.Override @@ -160,25 +63,18 @@ public boolean hasWindow() { return window_ != null; } /** - * - * *
        * The time window when the asset data and state was observed.
        * 
    * * .google.cloud.asset.v1p2beta1.TimeWindow window = 1; - * * @return The window. */ @java.lang.Override public com.google.cloud.asset.v1p2beta1.TimeWindow getWindow() { - return window_ == null - ? com.google.cloud.asset.v1p2beta1.TimeWindow.getDefaultInstance() - : window_; + return window_ == null ? com.google.cloud.asset.v1p2beta1.TimeWindow.getDefaultInstance() : window_; } /** - * - * *
        * The time window when the asset data and state was observed.
        * 
    @@ -193,14 +89,11 @@ public com.google.cloud.asset.v1p2beta1.TimeWindowOrBuilder getWindowOrBuilder() public static final int DELETED_FIELD_NUMBER = 2; private boolean deleted_; /** - * - * *
        * If the asset is deleted or not.
        * 
    * * bool deleted = 2; - * * @return The deleted. */ @java.lang.Override @@ -211,14 +104,11 @@ public boolean getDeleted() { public static final int ASSET_FIELD_NUMBER = 3; private com.google.cloud.asset.v1p2beta1.Asset asset_; /** - * - * *
        * Asset.
        * 
    * * .google.cloud.asset.v1p2beta1.Asset asset = 3; - * * @return Whether the asset field is set. */ @java.lang.Override @@ -226,14 +116,11 @@ public boolean hasAsset() { return asset_ != null; } /** - * - * *
        * Asset.
        * 
    * * .google.cloud.asset.v1p2beta1.Asset asset = 3; - * * @return The asset. */ @java.lang.Override @@ -241,8 +128,6 @@ public com.google.cloud.asset.v1p2beta1.Asset getAsset() { return asset_ == null ? com.google.cloud.asset.v1p2beta1.Asset.getDefaultInstance() : asset_; } /** - * - * *
        * Asset.
        * 
    @@ -255,7 +140,6 @@ public com.google.cloud.asset.v1p2beta1.AssetOrBuilder getAssetOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (window_ != null) { output.writeMessage(1, getWindow()); } @@ -277,7 +162,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (asset_ != null) { output.writeMessage(3, getAsset()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -287,15 +172,18 @@ public int getSerializedSize() { size = 0; if (window_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWindow()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWindow()); } if (deleted_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, deleted_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, deleted_); } if (asset_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAsset()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAsset()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -303,24 +191,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.TemporalAsset)) { return super.equals(obj); } - com.google.cloud.asset.v1p2beta1.TemporalAsset other = - (com.google.cloud.asset.v1p2beta1.TemporalAsset) obj; + com.google.cloud.asset.v1p2beta1.TemporalAsset other = (com.google.cloud.asset.v1p2beta1.TemporalAsset) obj; if (hasWindow() != other.hasWindow()) return false; if (hasWindow()) { - if (!getWindow().equals(other.getWindow())) return false; + if (!getWindow() + .equals(other.getWindow())) return false; } - if (getDeleted() != other.getDeleted()) return false; + if (getDeleted() + != other.getDeleted()) return false; if (hasAsset() != other.hasAsset()) return false; if (hasAsset()) { - if (!getAsset().equals(other.getAsset())) return false; + if (!getAsset() + .equals(other.getAsset())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -336,114 +226,108 @@ public int hashCode() { hash = (53 * hash) + getWindow().hashCode(); } hash = (37 * hash) + DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeleted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDeleted()); if (hasAsset()) { hash = (37 * hash) + ASSET_FIELD_NUMBER; hash = (53 * hash) + getAsset().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1p2beta1.TemporalAsset parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p2beta1.TemporalAsset parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.TemporalAsset parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.TemporalAsset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.TemporalAsset 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.asset.v1p2beta1.TemporalAsset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.TemporalAsset parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.TemporalAsset parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.TemporalAsset parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p2beta1.TemporalAsset parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p2beta1.TemporalAsset parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.TemporalAsset parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.TemporalAsset parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.TemporalAsset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.TemporalAsset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Temporal asset. In addition to the asset, the temporal asset includes the
        * status of the asset and valid from and to time of it.
    @@ -451,39 +335,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        * Protobuf type {@code google.cloud.asset.v1p2beta1.TemporalAsset}
        */
    -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    -      implements
    +  public static final class Builder extends
    +      com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.TemporalAsset)
           com.google.cloud.asset.v1p2beta1.TemporalAssetOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.cloud.asset.v1p2beta1.AssetProto
    -          .internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor
    +        getDescriptor() {
    +      return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1p2beta1.AssetProto
    -          .internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_fieldAccessorTable
    +      return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1p2beta1.TemporalAsset.class,
    -              com.google.cloud.asset.v1p2beta1.TemporalAsset.Builder.class);
    +              com.google.cloud.asset.v1p2beta1.TemporalAsset.class, com.google.cloud.asset.v1p2beta1.TemporalAsset.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1p2beta1.TemporalAsset.newBuilder()
         private Builder() {
    -      maybeForceBuilderInitialization();
    +
         }
     
    -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    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();
    @@ -505,9 +383,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.cloud.asset.v1p2beta1.AssetProto
    -          .internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor
    +        getDescriptorForType() {
    +      return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_descriptor;
         }
     
         @java.lang.Override
    @@ -526,8 +404,7 @@ public com.google.cloud.asset.v1p2beta1.TemporalAsset build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1p2beta1.TemporalAsset buildPartial() {
    -      com.google.cloud.asset.v1p2beta1.TemporalAsset result =
    -          new com.google.cloud.asset.v1p2beta1.TemporalAsset(this);
    +      com.google.cloud.asset.v1p2beta1.TemporalAsset result = new com.google.cloud.asset.v1p2beta1.TemporalAsset(this);
           if (windowBuilder_ == null) {
             result.window_ = window_;
           } else {
    @@ -547,39 +424,38 @@ public com.google.cloud.asset.v1p2beta1.TemporalAsset buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    -
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1p2beta1.TemporalAsset) {
    -        return mergeFrom((com.google.cloud.asset.v1p2beta1.TemporalAsset) other);
    +        return mergeFrom((com.google.cloud.asset.v1p2beta1.TemporalAsset)other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -597,7 +473,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.TemporalAsset other) {
           if (other.hasAsset()) {
             mergeAsset(other.getAsset());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -612,63 +488,82 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p2beta1.TemporalAsset parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10: {
    +              input.readMessage(
    +                  getWindowFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 10
    +            case 16: {
    +              deleted_ = input.readBool();
    +
    +              break;
    +            } // case 16
    +            case 26: {
    +              input.readMessage(
    +                  getAssetFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 26
    +            default: {
    +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                done = true; // was an endgroup tag
    +              }
    +              break;
    +            } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p2beta1.TemporalAsset) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
         private com.google.cloud.asset.v1p2beta1.TimeWindow window_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1p2beta1.TimeWindow,
    -            com.google.cloud.asset.v1p2beta1.TimeWindow.Builder,
    -            com.google.cloud.asset.v1p2beta1.TimeWindowOrBuilder>
    -        windowBuilder_;
    +        com.google.cloud.asset.v1p2beta1.TimeWindow, com.google.cloud.asset.v1p2beta1.TimeWindow.Builder, com.google.cloud.asset.v1p2beta1.TimeWindowOrBuilder> windowBuilder_;
         /**
    -     *
    -     *
          * 
          * The time window when the asset data and state was observed.
          * 
    * * .google.cloud.asset.v1p2beta1.TimeWindow window = 1; - * * @return Whether the window field is set. */ public boolean hasWindow() { return windowBuilder_ != null || window_ != null; } /** - * - * *
          * The time window when the asset data and state was observed.
          * 
    * * .google.cloud.asset.v1p2beta1.TimeWindow window = 1; - * * @return The window. */ public com.google.cloud.asset.v1p2beta1.TimeWindow getWindow() { if (windowBuilder_ == null) { - return window_ == null - ? com.google.cloud.asset.v1p2beta1.TimeWindow.getDefaultInstance() - : window_; + return window_ == null ? com.google.cloud.asset.v1p2beta1.TimeWindow.getDefaultInstance() : window_; } else { return windowBuilder_.getMessage(); } } /** - * - * *
          * The time window when the asset data and state was observed.
          * 
    @@ -689,15 +584,14 @@ public Builder setWindow(com.google.cloud.asset.v1p2beta1.TimeWindow value) { return this; } /** - * - * *
          * The time window when the asset data and state was observed.
          * 
    * * .google.cloud.asset.v1p2beta1.TimeWindow window = 1; */ - public Builder setWindow(com.google.cloud.asset.v1p2beta1.TimeWindow.Builder builderForValue) { + public Builder setWindow( + com.google.cloud.asset.v1p2beta1.TimeWindow.Builder builderForValue) { if (windowBuilder_ == null) { window_ = builderForValue.build(); onChanged(); @@ -708,8 +602,6 @@ public Builder setWindow(com.google.cloud.asset.v1p2beta1.TimeWindow.Builder bui return this; } /** - * - * *
          * The time window when the asset data and state was observed.
          * 
    @@ -720,9 +612,7 @@ public Builder mergeWindow(com.google.cloud.asset.v1p2beta1.TimeWindow value) { if (windowBuilder_ == null) { if (window_ != null) { window_ = - com.google.cloud.asset.v1p2beta1.TimeWindow.newBuilder(window_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1p2beta1.TimeWindow.newBuilder(window_).mergeFrom(value).buildPartial(); } else { window_ = value; } @@ -734,8 +624,6 @@ public Builder mergeWindow(com.google.cloud.asset.v1p2beta1.TimeWindow value) { return this; } /** - * - * *
          * The time window when the asset data and state was observed.
          * 
    @@ -754,8 +642,6 @@ public Builder clearWindow() { return this; } /** - * - * *
          * The time window when the asset data and state was observed.
          * 
    @@ -763,13 +649,11 @@ public Builder clearWindow() { * .google.cloud.asset.v1p2beta1.TimeWindow window = 1; */ public com.google.cloud.asset.v1p2beta1.TimeWindow.Builder getWindowBuilder() { - + onChanged(); return getWindowFieldBuilder().getBuilder(); } /** - * - * *
          * The time window when the asset data and state was observed.
          * 
    @@ -780,14 +664,11 @@ public com.google.cloud.asset.v1p2beta1.TimeWindowOrBuilder getWindowOrBuilder() if (windowBuilder_ != null) { return windowBuilder_.getMessageOrBuilder(); } else { - return window_ == null - ? com.google.cloud.asset.v1p2beta1.TimeWindow.getDefaultInstance() - : window_; + return window_ == null ? + com.google.cloud.asset.v1p2beta1.TimeWindow.getDefaultInstance() : window_; } } /** - * - * *
          * The time window when the asset data and state was observed.
          * 
    @@ -795,32 +676,26 @@ public com.google.cloud.asset.v1p2beta1.TimeWindowOrBuilder getWindowOrBuilder() * .google.cloud.asset.v1p2beta1.TimeWindow window = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.TimeWindow, - com.google.cloud.asset.v1p2beta1.TimeWindow.Builder, - com.google.cloud.asset.v1p2beta1.TimeWindowOrBuilder> + com.google.cloud.asset.v1p2beta1.TimeWindow, com.google.cloud.asset.v1p2beta1.TimeWindow.Builder, com.google.cloud.asset.v1p2beta1.TimeWindowOrBuilder> getWindowFieldBuilder() { if (windowBuilder_ == null) { - windowBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.TimeWindow, - com.google.cloud.asset.v1p2beta1.TimeWindow.Builder, - com.google.cloud.asset.v1p2beta1.TimeWindowOrBuilder>( - getWindow(), getParentForChildren(), isClean()); + windowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p2beta1.TimeWindow, com.google.cloud.asset.v1p2beta1.TimeWindow.Builder, com.google.cloud.asset.v1p2beta1.TimeWindowOrBuilder>( + getWindow(), + getParentForChildren(), + isClean()); window_ = null; } return windowBuilder_; } - private boolean deleted_; + private boolean deleted_ ; /** - * - * *
          * If the asset is deleted or not.
          * 
    * * bool deleted = 2; - * * @return The deleted. */ @java.lang.Override @@ -828,36 +703,30 @@ public boolean getDeleted() { return deleted_; } /** - * - * *
          * If the asset is deleted or not.
          * 
    * * bool deleted = 2; - * * @param value The deleted to set. * @return This builder for chaining. */ public Builder setDeleted(boolean value) { - + deleted_ = value; onChanged(); return this; } /** - * - * *
          * If the asset is deleted or not.
          * 
    * * bool deleted = 2; - * * @return This builder for chaining. */ public Builder clearDeleted() { - + deleted_ = false; onChanged(); return this; @@ -865,47 +734,34 @@ public Builder clearDeleted() { private com.google.cloud.asset.v1p2beta1.Asset asset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Asset, - com.google.cloud.asset.v1p2beta1.Asset.Builder, - com.google.cloud.asset.v1p2beta1.AssetOrBuilder> - assetBuilder_; + com.google.cloud.asset.v1p2beta1.Asset, com.google.cloud.asset.v1p2beta1.Asset.Builder, com.google.cloud.asset.v1p2beta1.AssetOrBuilder> assetBuilder_; /** - * - * *
          * Asset.
          * 
    * * .google.cloud.asset.v1p2beta1.Asset asset = 3; - * * @return Whether the asset field is set. */ public boolean hasAsset() { return assetBuilder_ != null || asset_ != null; } /** - * - * *
          * Asset.
          * 
    * * .google.cloud.asset.v1p2beta1.Asset asset = 3; - * * @return The asset. */ public com.google.cloud.asset.v1p2beta1.Asset getAsset() { if (assetBuilder_ == null) { - return asset_ == null - ? com.google.cloud.asset.v1p2beta1.Asset.getDefaultInstance() - : asset_; + return asset_ == null ? com.google.cloud.asset.v1p2beta1.Asset.getDefaultInstance() : asset_; } else { return assetBuilder_.getMessage(); } } /** - * - * *
          * Asset.
          * 
    @@ -926,15 +782,14 @@ public Builder setAsset(com.google.cloud.asset.v1p2beta1.Asset value) { return this; } /** - * - * *
          * Asset.
          * 
    * * .google.cloud.asset.v1p2beta1.Asset asset = 3; */ - public Builder setAsset(com.google.cloud.asset.v1p2beta1.Asset.Builder builderForValue) { + public Builder setAsset( + com.google.cloud.asset.v1p2beta1.Asset.Builder builderForValue) { if (assetBuilder_ == null) { asset_ = builderForValue.build(); onChanged(); @@ -945,8 +800,6 @@ public Builder setAsset(com.google.cloud.asset.v1p2beta1.Asset.Builder builderFo return this; } /** - * - * *
          * Asset.
          * 
    @@ -957,9 +810,7 @@ public Builder mergeAsset(com.google.cloud.asset.v1p2beta1.Asset value) { if (assetBuilder_ == null) { if (asset_ != null) { asset_ = - com.google.cloud.asset.v1p2beta1.Asset.newBuilder(asset_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1p2beta1.Asset.newBuilder(asset_).mergeFrom(value).buildPartial(); } else { asset_ = value; } @@ -971,8 +822,6 @@ public Builder mergeAsset(com.google.cloud.asset.v1p2beta1.Asset value) { return this; } /** - * - * *
          * Asset.
          * 
    @@ -991,8 +840,6 @@ public Builder clearAsset() { return this; } /** - * - * *
          * Asset.
          * 
    @@ -1000,13 +847,11 @@ public Builder clearAsset() { * .google.cloud.asset.v1p2beta1.Asset asset = 3; */ public com.google.cloud.asset.v1p2beta1.Asset.Builder getAssetBuilder() { - + onChanged(); return getAssetFieldBuilder().getBuilder(); } /** - * - * *
          * Asset.
          * 
    @@ -1017,14 +862,11 @@ public com.google.cloud.asset.v1p2beta1.AssetOrBuilder getAssetOrBuilder() { if (assetBuilder_ != null) { return assetBuilder_.getMessageOrBuilder(); } else { - return asset_ == null - ? com.google.cloud.asset.v1p2beta1.Asset.getDefaultInstance() - : asset_; + return asset_ == null ? + com.google.cloud.asset.v1p2beta1.Asset.getDefaultInstance() : asset_; } } /** - * - * *
          * Asset.
          * 
    @@ -1032,24 +874,21 @@ public com.google.cloud.asset.v1p2beta1.AssetOrBuilder getAssetOrBuilder() { * .google.cloud.asset.v1p2beta1.Asset asset = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Asset, - com.google.cloud.asset.v1p2beta1.Asset.Builder, - com.google.cloud.asset.v1p2beta1.AssetOrBuilder> + com.google.cloud.asset.v1p2beta1.Asset, com.google.cloud.asset.v1p2beta1.Asset.Builder, com.google.cloud.asset.v1p2beta1.AssetOrBuilder> getAssetFieldBuilder() { if (assetBuilder_ == null) { - assetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Asset, - com.google.cloud.asset.v1p2beta1.Asset.Builder, - com.google.cloud.asset.v1p2beta1.AssetOrBuilder>( - getAsset(), getParentForChildren(), isClean()); + assetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p2beta1.Asset, com.google.cloud.asset.v1p2beta1.Asset.Builder, com.google.cloud.asset.v1p2beta1.AssetOrBuilder>( + getAsset(), + getParentForChildren(), + isClean()); asset_ = null; } return assetBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1059,12 +898,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.TemporalAsset) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.TemporalAsset) private static final com.google.cloud.asset.v1p2beta1.TemporalAsset DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.TemporalAsset(); } @@ -1073,16 +912,27 @@ public static com.google.cloud.asset.v1p2beta1.TemporalAsset getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TemporalAsset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TemporalAsset(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TemporalAsset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1097,4 +947,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.TemporalAsset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAssetOrBuilder.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAssetOrBuilder.java similarity index 70% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAssetOrBuilder.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAssetOrBuilder.java index f2666eaba337..d927836ba421 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAssetOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAssetOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/assets.proto package com.google.cloud.asset.v1p2beta1; -public interface TemporalAssetOrBuilder - extends +public interface TemporalAssetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.TemporalAsset) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The time window when the asset data and state was observed.
        * 
    * * .google.cloud.asset.v1p2beta1.TimeWindow window = 1; - * * @return Whether the window field is set. */ boolean hasWindow(); /** - * - * *
        * The time window when the asset data and state was observed.
        * 
    * * .google.cloud.asset.v1p2beta1.TimeWindow window = 1; - * * @return The window. */ com.google.cloud.asset.v1p2beta1.TimeWindow getWindow(); /** - * - * *
        * The time window when the asset data and state was observed.
        * 
    @@ -59,45 +35,34 @@ public interface TemporalAssetOrBuilder com.google.cloud.asset.v1p2beta1.TimeWindowOrBuilder getWindowOrBuilder(); /** - * - * *
        * If the asset is deleted or not.
        * 
    * * bool deleted = 2; - * * @return The deleted. */ boolean getDeleted(); /** - * - * *
        * Asset.
        * 
    * * .google.cloud.asset.v1p2beta1.Asset asset = 3; - * * @return Whether the asset field is set. */ boolean hasAsset(); /** - * - * *
        * Asset.
        * 
    * * .google.cloud.asset.v1p2beta1.Asset asset = 3; - * * @return The asset. */ com.google.cloud.asset.v1p2beta1.Asset getAsset(); /** - * - * *
        * Asset.
        * 
    diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindow.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindow.java similarity index 65% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindow.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindow.java index af7ed1677e85..50376f9c039b 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindow.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindow.java @@ -1,150 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/assets.proto package com.google.cloud.asset.v1p2beta1; /** - * - * *
      * A time window of (start_time, end_time].
      * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.TimeWindow} */ -public final class TimeWindow extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TimeWindow extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.TimeWindow) TimeWindowOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TimeWindow.newBuilder() to construct. private TimeWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TimeWindow() {} + private TimeWindow() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TimeWindow(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private TimeWindow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetProto - .internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetProto - .internal_static_google_cloud_asset_v1p2beta1_TimeWindow_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_TimeWindow_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.TimeWindow.class, - com.google.cloud.asset.v1p2beta1.TimeWindow.Builder.class); + com.google.cloud.asset.v1p2beta1.TimeWindow.class, com.google.cloud.asset.v1p2beta1.TimeWindow.Builder.class); } public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** - * - * *
        * Start time of the time window (exclusive).
        * 
    * * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -152,14 +62,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
        * Start time of the time window (exclusive).
        * 
    * * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ @java.lang.Override @@ -167,8 +74,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
        * Start time of the time window (exclusive).
        * 
    @@ -183,15 +88,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
        * End time of the time window (inclusive).
        * Current timestamp if not specified.
        * 
    * * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -199,15 +101,12 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
        * End time of the time window (inclusive).
        * Current timestamp if not specified.
        * 
    * * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -215,8 +114,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
        * End time of the time window (inclusive).
        * Current timestamp if not specified.
    @@ -230,7 +127,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       }
     
       private byte memoizedIsInitialized = -1;
    -
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -242,14 +138,15 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output)
    +                      throws java.io.IOException {
         if (startTime_ != null) {
           output.writeMessage(1, getStartTime());
         }
         if (endTime_ != null) {
           output.writeMessage(2, getEndTime());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -259,12 +156,14 @@ public int getSerializedSize() {
     
         size = 0;
         if (startTime_ != null) {
    -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime());
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(1, getStartTime());
         }
         if (endTime_ != null) {
    -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime());
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(2, getEndTime());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -272,23 +171,24 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -      return true;
    +     return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1p2beta1.TimeWindow)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1p2beta1.TimeWindow other =
    -        (com.google.cloud.asset.v1p2beta1.TimeWindow) obj;
    +    com.google.cloud.asset.v1p2beta1.TimeWindow other = (com.google.cloud.asset.v1p2beta1.TimeWindow) obj;
     
         if (hasStartTime() != other.hasStartTime()) return false;
         if (hasStartTime()) {
    -      if (!getStartTime().equals(other.getStartTime())) return false;
    +      if (!getStartTime()
    +          .equals(other.getStartTime())) return false;
         }
         if (hasEndTime() != other.hasEndTime()) return false;
         if (hasEndTime()) {
    -      if (!getEndTime().equals(other.getEndTime())) return false;
    +      if (!getEndTime()
    +          .equals(other.getEndTime())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -307,148 +207,135 @@ public int hashCode() {
           hash = (37 * hash) + END_TIME_FIELD_NUMBER;
           hash = (53 * hash) + getEndTime().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1p2beta1.TimeWindow parseFrom(java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1p2beta1.TimeWindow parseFrom(
    +      java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1p2beta1.TimeWindow parseFrom(
    -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1p2beta1.TimeWindow parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1p2beta1.TimeWindow 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.asset.v1p2beta1.TimeWindow parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1p2beta1.TimeWindow parseFrom(
    -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1p2beta1.TimeWindow parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1p2beta1.TimeWindow parseFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
    -
    -  public static com.google.cloud.asset.v1p2beta1.TimeWindow parseDelimitedFrom(
    -      java.io.InputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    +  public static com.google.cloud.asset.v1p2beta1.TimeWindow parseDelimitedFrom(java.io.InputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1p2beta1.TimeWindow parseDelimitedFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1p2beta1.TimeWindow parseFrom(
    -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1p2beta1.TimeWindow parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() {
    -    return newBuilder();
    -  }
    -
    +  public Builder newBuilderForType() { return newBuilder(); }
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    -
       public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.TimeWindow prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    -
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE
    +        ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(
    +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    -   *
    -   *
        * 
        * A time window of (start_time, end_time].
        * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.TimeWindow} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.TimeWindow) com.google.cloud.asset.v1p2beta1.TimeWindowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetProto - .internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetProto - .internal_static_google_cloud_asset_v1p2beta1_TimeWindow_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_TimeWindow_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.TimeWindow.class, - com.google.cloud.asset.v1p2beta1.TimeWindow.Builder.class); + com.google.cloud.asset.v1p2beta1.TimeWindow.class, com.google.cloud.asset.v1p2beta1.TimeWindow.Builder.class); } // Construct using com.google.cloud.asset.v1p2beta1.TimeWindow.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -468,9 +355,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p2beta1.AssetProto - .internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor; } @java.lang.Override @@ -489,8 +376,7 @@ public com.google.cloud.asset.v1p2beta1.TimeWindow build() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.TimeWindow buildPartial() { - com.google.cloud.asset.v1p2beta1.TimeWindow result = - new com.google.cloud.asset.v1p2beta1.TimeWindow(this); + com.google.cloud.asset.v1p2beta1.TimeWindow result = new com.google.cloud.asset.v1p2beta1.TimeWindow(this); if (startTimeBuilder_ == null) { result.startTime_ = startTime_; } else { @@ -509,39 +395,38 @@ public com.google.cloud.asset.v1p2beta1.TimeWindow buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p2beta1.TimeWindow) { - return mergeFrom((com.google.cloud.asset.v1p2beta1.TimeWindow) other); + return mergeFrom((com.google.cloud.asset.v1p2beta1.TimeWindow)other); } else { super.mergeFrom(other); return this; @@ -556,7 +441,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.TimeWindow other) { if (other.hasEndTime()) { mergeEndTime(other.getEndTime()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -571,49 +456,67 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p2beta1.TimeWindow parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1p2beta1.TimeWindow) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
          * Start time of the time window (exclusive).
          * 
    * * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
          * Start time of the time window (exclusive).
          * 
    * * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -624,8 +527,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
          * Start time of the time window (exclusive).
          * 
    @@ -646,15 +547,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
          * Start time of the time window (exclusive).
          * 
    * * .google.protobuf.Timestamp start_time = 1; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -665,8 +565,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
          * Start time of the time window (exclusive).
          * 
    @@ -677,7 +575,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -689,8 +587,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
          * Start time of the time window (exclusive).
          * 
    @@ -709,8 +605,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
          * Start time of the time window (exclusive).
          * 
    @@ -718,13 +612,11 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 1; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
          * Start time of the time window (exclusive).
          * 
    @@ -735,12 +627,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
          * Start time of the time window (exclusive).
          * 
    @@ -748,17 +639,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -766,35 +654,26 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
          * End time of the time window (inclusive).
          * Current timestamp if not specified.
          * 
    * * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
          * End time of the time window (inclusive).
          * Current timestamp if not specified.
          * 
    * * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -805,8 +684,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
          * End time of the time window (inclusive).
          * Current timestamp if not specified.
    @@ -828,8 +705,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * End time of the time window (inclusive).
          * Current timestamp if not specified.
    @@ -837,7 +712,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
          *
          * .google.protobuf.Timestamp end_time = 2;
          */
    -    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
    +    public Builder setEndTime(
    +        com.google.protobuf.Timestamp.Builder builderForValue) {
           if (endTimeBuilder_ == null) {
             endTime_ = builderForValue.build();
             onChanged();
    @@ -848,8 +724,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
           return this;
         }
         /**
    -     *
    -     *
          * 
          * End time of the time window (inclusive).
          * Current timestamp if not specified.
    @@ -861,7 +735,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
           if (endTimeBuilder_ == null) {
             if (endTime_ != null) {
               endTime_ =
    -              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
    +            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
             } else {
               endTime_ = value;
             }
    @@ -873,8 +747,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * End time of the time window (inclusive).
          * Current timestamp if not specified.
    @@ -894,8 +766,6 @@ public Builder clearEndTime() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * End time of the time window (inclusive).
          * Current timestamp if not specified.
    @@ -904,13 +774,11 @@ public Builder clearEndTime() {
          * .google.protobuf.Timestamp end_time = 2;
          */
         public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
    -
    +      
           onChanged();
           return getEndTimeFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * End time of the time window (inclusive).
          * Current timestamp if not specified.
    @@ -922,12 +790,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
           if (endTimeBuilder_ != null) {
             return endTimeBuilder_.getMessageOrBuilder();
           } else {
    -        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
    +        return endTime_ == null ?
    +            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
           }
         }
         /**
    -     *
    -     *
          * 
          * End time of the time window (inclusive).
          * Current timestamp if not specified.
    @@ -936,24 +803,21 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
          * .google.protobuf.Timestamp end_time = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp,
    -            com.google.protobuf.Timestamp.Builder,
    -            com.google.protobuf.TimestampOrBuilder>
    +        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
             getEndTimeFieldBuilder() {
           if (endTimeBuilder_ == null) {
    -        endTimeBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.protobuf.Timestamp,
    -                com.google.protobuf.Timestamp.Builder,
    -                com.google.protobuf.TimestampOrBuilder>(
    -                getEndTime(), getParentForChildren(), isClean());
    +        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    +                getEndTime(),
    +                getParentForChildren(),
    +                isClean());
             endTime_ = null;
           }
           return endTimeBuilder_;
         }
    -
         @java.lang.Override
    -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(
    +        final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -963,12 +827,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    +
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.TimeWindow)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.TimeWindow)
       private static final com.google.cloud.asset.v1p2beta1.TimeWindow DEFAULT_INSTANCE;
    -
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.TimeWindow();
       }
    @@ -977,16 +841,27 @@ public static com.google.cloud.asset.v1p2beta1.TimeWindow getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser PARSER =
    -      new com.google.protobuf.AbstractParser() {
    -        @java.lang.Override
    -        public TimeWindow parsePartialFrom(
    -            com.google.protobuf.CodedInputStream input,
    -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -            throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new TimeWindow(input, extensionRegistry);
    -        }
    -      };
    +  private static final com.google.protobuf.Parser
    +      PARSER = new com.google.protobuf.AbstractParser() {
    +    @java.lang.Override
    +    public TimeWindow parsePartialFrom(
    +        com.google.protobuf.CodedInputStream input,
    +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        throws com.google.protobuf.InvalidProtocolBufferException {
    +      Builder builder = newBuilder();
    +      try {
    +        builder.mergeFrom(input, extensionRegistry);
    +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +        throw e.setUnfinishedMessage(builder.buildPartial());
    +      } catch (com.google.protobuf.UninitializedMessageException e) {
    +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +      } catch (java.io.IOException e) {
    +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +            .setUnfinishedMessage(builder.buildPartial());
    +      }
    +      return builder.buildPartial();
    +    }
    +  };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1001,4 +876,6 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1p2beta1.TimeWindow getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    +
     }
    +
    diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindowOrBuilder.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindowOrBuilder.java
    similarity index 70%
    rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindowOrBuilder.java
    rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindowOrBuilder.java
    index 2b5701c7df21..c80313df9f9c 100644
    --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindowOrBuilder.java
    +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindowOrBuilder.java
    @@ -1,55 +1,31 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1p2beta1/assets.proto
     
     package com.google.cloud.asset.v1p2beta1;
     
    -public interface TimeWindowOrBuilder
    -    extends
    +public interface TimeWindowOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.TimeWindow)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    -   *
    -   *
        * 
        * Start time of the time window (exclusive).
        * 
    * * .google.protobuf.Timestamp start_time = 1; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
        * Start time of the time window (exclusive).
        * 
    * * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
        * Start time of the time window (exclusive).
        * 
    @@ -59,34 +35,26 @@ public interface TimeWindowOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
        * End time of the time window (inclusive).
        * Current timestamp if not specified.
        * 
    * * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
        * End time of the time window (inclusive).
        * Current timestamp if not specified.
        * 
    * * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
        * End time of the time window (inclusive).
        * Current timestamp if not specified.
    diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequest.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequest.java
    similarity index 66%
    rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequest.java
    rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequest.java
    index 040fd53d6b2b..48ff1c4dc9a1 100644
    --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequest.java
    +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequest.java
    @@ -1,145 +1,55 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1p2beta1/asset_service.proto
     
     package com.google.cloud.asset.v1p2beta1;
     
     /**
    - *
    - *
      * 
      * Update asset feed request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.UpdateFeedRequest} */ -public final class UpdateFeedRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateFeedRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.UpdateFeedRequest) UpdateFeedRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateFeedRequest.newBuilder() to construct. private UpdateFeedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateFeedRequest() {} + private UpdateFeedRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateFeedRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private UpdateFeedRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.asset.v1p2beta1.Feed.Builder subBuilder = null; - if (feed_ != null) { - subBuilder = feed_.toBuilder(); - } - feed_ = - input.readMessage( - com.google.cloud.asset.v1p2beta1.Feed.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(feed_); - feed_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.class, - com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.Builder.class); + com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.class, com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.Builder.class); } public static final int FEED_FIELD_NUMBER = 1; private com.google.cloud.asset.v1p2beta1.Feed feed_; /** - * - * *
        * Required. The new values of feed details. It must match an existing feed and the
        * field `name` must be in the format of:
    @@ -148,9 +58,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * organizations/organization_number/feeds/feed_id.
        * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the feed field is set. */ @java.lang.Override @@ -158,8 +66,6 @@ public boolean hasFeed() { return feed_ != null; } /** - * - * *
        * Required. The new values of feed details. It must match an existing feed and the
        * field `name` must be in the format of:
    @@ -168,9 +74,7 @@ public boolean hasFeed() {
        * organizations/organization_number/feeds/feed_id.
        * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The feed. */ @java.lang.Override @@ -178,8 +82,6 @@ public com.google.cloud.asset.v1p2beta1.Feed getFeed() { return feed_ == null ? com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance() : feed_; } /** - * - * *
        * Required. The new values of feed details. It must match an existing feed and the
        * field `name` must be in the format of:
    @@ -188,8 +90,7 @@ public com.google.cloud.asset.v1p2beta1.Feed getFeed() {
        * organizations/organization_number/feeds/feed_id.
        * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedOrBuilder() { @@ -199,17 +100,13 @@ public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
        * Required. Only updates the `feed` fields indicated by this mask.
        * The field mask must not be empty, and it must not contain fields that
        * are immutable or only set by the server.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -217,17 +114,13 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
        * Required. Only updates the `feed` fields indicated by this mask.
        * The field mask must not be empty, and it must not contain fields that
        * are immutable or only set by the server.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -235,16 +128,13 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
        * Required. Only updates the `feed` fields indicated by this mask.
        * The field mask must not be empty, and it must not contain fields that
        * are immutable or only set by the server.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -252,7 +142,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,14 +153,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (feed_ != null) { output.writeMessage(1, getFeed()); } if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -281,12 +171,14 @@ public int getSerializedSize() { size = 0; if (feed_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFeed()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getFeed()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -294,23 +186,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.UpdateFeedRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1p2beta1.UpdateFeedRequest other = - (com.google.cloud.asset.v1p2beta1.UpdateFeedRequest) obj; + com.google.cloud.asset.v1p2beta1.UpdateFeedRequest other = (com.google.cloud.asset.v1p2beta1.UpdateFeedRequest) obj; if (hasFeed() != other.hasFeed()) return false; if (hasFeed()) { - if (!getFeed().equals(other.getFeed())) return false; + if (!getFeed() + .equals(other.getFeed())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -329,148 +222,135 @@ public int hashCode() { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest 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.asset.v1p2beta1.UpdateFeedRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.UpdateFeedRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Update asset feed request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.UpdateFeedRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.UpdateFeedRequest) com.google.cloud.asset.v1p2beta1.UpdateFeedRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.class, - com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.Builder.class); + com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.class, com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.Builder.class); } // Construct using com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -490,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor; } @java.lang.Override @@ -511,8 +391,7 @@ public com.google.cloud.asset.v1p2beta1.UpdateFeedRequest build() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.UpdateFeedRequest buildPartial() { - com.google.cloud.asset.v1p2beta1.UpdateFeedRequest result = - new com.google.cloud.asset.v1p2beta1.UpdateFeedRequest(this); + com.google.cloud.asset.v1p2beta1.UpdateFeedRequest result = new com.google.cloud.asset.v1p2beta1.UpdateFeedRequest(this); if (feedBuilder_ == null) { result.feed_ = feed_; } else { @@ -531,39 +410,38 @@ public com.google.cloud.asset.v1p2beta1.UpdateFeedRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p2beta1.UpdateFeedRequest) { - return mergeFrom((com.google.cloud.asset.v1p2beta1.UpdateFeedRequest) other); + return mergeFrom((com.google.cloud.asset.v1p2beta1.UpdateFeedRequest)other); } else { super.mergeFrom(other); return this; @@ -571,15 +449,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.UpdateFeedRequest other) { - if (other == com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.getDefaultInstance()) return this; if (other.hasFeed()) { mergeFeed(other.getFeed()); } if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -594,30 +471,51 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getFeedFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1p2beta1.UpdateFeedRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private com.google.cloud.asset.v1p2beta1.Feed feed_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Feed, - com.google.cloud.asset.v1p2beta1.Feed.Builder, - com.google.cloud.asset.v1p2beta1.FeedOrBuilder> - feedBuilder_; + com.google.cloud.asset.v1p2beta1.Feed, com.google.cloud.asset.v1p2beta1.Feed.Builder, com.google.cloud.asset.v1p2beta1.FeedOrBuilder> feedBuilder_; /** - * - * *
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -626,17 +524,13 @@ public Builder mergeFrom(
          * organizations/organization_number/feeds/feed_id.
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the feed field is set. */ public boolean hasFeed() { return feedBuilder_ != null || feed_ != null; } /** - * - * *
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -645,9 +539,7 @@ public boolean hasFeed() {
          * organizations/organization_number/feeds/feed_id.
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The feed. */ public com.google.cloud.asset.v1p2beta1.Feed getFeed() { @@ -658,8 +550,6 @@ public com.google.cloud.asset.v1p2beta1.Feed getFeed() { } } /** - * - * *
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -668,8 +558,7 @@ public com.google.cloud.asset.v1p2beta1.Feed getFeed() {
          * organizations/organization_number/feeds/feed_id.
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFeed(com.google.cloud.asset.v1p2beta1.Feed value) { if (feedBuilder_ == null) { @@ -685,8 +574,6 @@ public Builder setFeed(com.google.cloud.asset.v1p2beta1.Feed value) { return this; } /** - * - * *
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -695,10 +582,10 @@ public Builder setFeed(com.google.cloud.asset.v1p2beta1.Feed value) {
          * organizations/organization_number/feeds/feed_id.
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setFeed(com.google.cloud.asset.v1p2beta1.Feed.Builder builderForValue) { + public Builder setFeed( + com.google.cloud.asset.v1p2beta1.Feed.Builder builderForValue) { if (feedBuilder_ == null) { feed_ = builderForValue.build(); onChanged(); @@ -709,8 +596,6 @@ public Builder setFeed(com.google.cloud.asset.v1p2beta1.Feed.Builder builderForV return this; } /** - * - * *
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -719,16 +604,13 @@ public Builder setFeed(com.google.cloud.asset.v1p2beta1.Feed.Builder builderForV
          * organizations/organization_number/feeds/feed_id.
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeFeed(com.google.cloud.asset.v1p2beta1.Feed value) { if (feedBuilder_ == null) { if (feed_ != null) { feed_ = - com.google.cloud.asset.v1p2beta1.Feed.newBuilder(feed_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1p2beta1.Feed.newBuilder(feed_).mergeFrom(value).buildPartial(); } else { feed_ = value; } @@ -740,8 +622,6 @@ public Builder mergeFeed(com.google.cloud.asset.v1p2beta1.Feed value) { return this; } /** - * - * *
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -750,8 +630,7 @@ public Builder mergeFeed(com.google.cloud.asset.v1p2beta1.Feed value) {
          * organizations/organization_number/feeds/feed_id.
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearFeed() { if (feedBuilder_ == null) { @@ -765,8 +644,6 @@ public Builder clearFeed() { return this; } /** - * - * *
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -775,17 +652,14 @@ public Builder clearFeed() {
          * organizations/organization_number/feeds/feed_id.
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.asset.v1p2beta1.Feed.Builder getFeedBuilder() { - + onChanged(); return getFeedFieldBuilder().getBuilder(); } /** - * - * *
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -794,19 +668,17 @@ public com.google.cloud.asset.v1p2beta1.Feed.Builder getFeedBuilder() {
          * organizations/organization_number/feeds/feed_id.
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedOrBuilder() { if (feedBuilder_ != null) { return feedBuilder_.getMessageOrBuilder(); } else { - return feed_ == null ? com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance() : feed_; + return feed_ == null ? + com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance() : feed_; } } /** - * - * *
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -815,21 +687,17 @@ public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedOrBuilder() {
          * organizations/organization_number/feeds/feed_id.
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Feed, - com.google.cloud.asset.v1p2beta1.Feed.Builder, - com.google.cloud.asset.v1p2beta1.FeedOrBuilder> + com.google.cloud.asset.v1p2beta1.Feed, com.google.cloud.asset.v1p2beta1.Feed.Builder, com.google.cloud.asset.v1p2beta1.FeedOrBuilder> getFeedFieldBuilder() { if (feedBuilder_ == null) { - feedBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Feed, - com.google.cloud.asset.v1p2beta1.Feed.Builder, - com.google.cloud.asset.v1p2beta1.FeedOrBuilder>( - getFeed(), getParentForChildren(), isClean()); + feedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p2beta1.Feed, com.google.cloud.asset.v1p2beta1.Feed.Builder, com.google.cloud.asset.v1p2beta1.FeedOrBuilder>( + getFeed(), + getParentForChildren(), + isClean()); feed_ = null; } return feedBuilder_; @@ -837,61 +705,45 @@ public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -907,18 +759,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -929,22 +779,19 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -956,16 +803,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -979,74 +823,61 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1056,12 +887,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.UpdateFeedRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.UpdateFeedRequest) private static final com.google.cloud.asset.v1p2beta1.UpdateFeedRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.UpdateFeedRequest(); } @@ -1070,16 +901,27 @@ public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateFeedRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateFeedRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFeedRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1094,4 +936,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.UpdateFeedRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequestOrBuilder.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequestOrBuilder.java similarity index 73% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequestOrBuilder.java rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequestOrBuilder.java index f47a2da67b7f..dc99969d8825 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequestOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; -public interface UpdateFeedRequestOrBuilder - extends +public interface UpdateFeedRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.UpdateFeedRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The new values of feed details. It must match an existing feed and the
        * field `name` must be in the format of:
    @@ -34,15 +16,11 @@ public interface UpdateFeedRequestOrBuilder
        * organizations/organization_number/feeds/feed_id.
        * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the feed field is set. */ boolean hasFeed(); /** - * - * *
        * Required. The new values of feed details. It must match an existing feed and the
        * field `name` must be in the format of:
    @@ -51,15 +29,11 @@ public interface UpdateFeedRequestOrBuilder
        * organizations/organization_number/feeds/feed_id.
        * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The feed. */ com.google.cloud.asset.v1p2beta1.Feed getFeed(); /** - * - * *
        * Required. The new values of feed details. It must match an existing feed and the
        * field `name` must be in the format of:
    @@ -68,52 +42,40 @@ public interface UpdateFeedRequestOrBuilder
        * organizations/organization_number/feeds/feed_id.
        * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedOrBuilder(); /** - * - * *
        * Required. Only updates the `feed` fields indicated by this mask.
        * The field mask must not be empty, and it must not contain fields that
        * are immutable or only set by the server.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
        * Required. Only updates the `feed` fields indicated by this mask.
        * The field mask must not be empty, and it must not contain fields that
        * are immutable or only set by the server.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
        * Required. Only updates the `feed` fields indicated by this mask.
        * The field mask must not be empty, and it must not contain fields that
        * are immutable or only set by the server.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/proto/google/cloud/asset/v1p2beta1/asset_service.proto b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/proto/google/cloud/asset/v1p2beta1/asset_service.proto similarity index 100% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/proto/google/cloud/asset/v1p2beta1/asset_service.proto rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/proto/google/cloud/asset/v1p2beta1/asset_service.proto diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/proto/google/cloud/asset/v1p2beta1/assets.proto b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/proto/google/cloud/asset/v1p2beta1/assets.proto similarity index 100% rename from java-asset/proto-google-cloud-asset-v1p2beta1/src/main/proto/google/cloud/asset/v1p2beta1/assets.proto rename to owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/proto/google/cloud/asset/v1p2beta1/assets.proto diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetEndpoint.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/AsyncCreateFeed.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/AsyncCreateFeed.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/AsyncCreateFeed.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/AsyncCreateFeed.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/SyncCreateFeed.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/SyncCreateFeed.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/SyncCreateFeed.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/SyncCreateFeed.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/SyncCreateFeedString.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/SyncCreateFeedString.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/SyncCreateFeedString.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/SyncCreateFeedString.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/AsyncDeleteFeed.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/AsyncDeleteFeed.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/AsyncDeleteFeed.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/AsyncDeleteFeed.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeed.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeed.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeed.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeed.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeedString.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeedString.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeedString.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeedString.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/AsyncGetFeed.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/AsyncGetFeed.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/AsyncGetFeed.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/AsyncGetFeed.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeed.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeed.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeed.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeed.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeedFeedname.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeedFeedname.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeedFeedname.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeedFeedname.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeedString.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeedString.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeedString.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeedString.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/AsyncListFeeds.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/AsyncListFeeds.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/AsyncListFeeds.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/AsyncListFeeds.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/SyncListFeeds.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/SyncListFeeds.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/SyncListFeeds.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/SyncListFeeds.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/SyncListFeedsString.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/SyncListFeedsString.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/SyncListFeedsString.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/SyncListFeedsString.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/AsyncUpdateFeed.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/AsyncUpdateFeed.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/AsyncUpdateFeed.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/AsyncUpdateFeed.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/SyncUpdateFeed.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/SyncUpdateFeed.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/SyncUpdateFeed.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/SyncUpdateFeed.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservicesettings/createfeed/SyncCreateFeed.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservicesettings/createfeed/SyncCreateFeed.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservicesettings/createfeed/SyncCreateFeed.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservicesettings/createfeed/SyncCreateFeed.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/stub/assetservicestubsettings/createfeed/SyncCreateFeed.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/stub/assetservicestubsettings/createfeed/SyncCreateFeed.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/stub/assetservicestubsettings/createfeed/SyncCreateFeed.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/stub/assetservicestubsettings/createfeed/SyncCreateFeed.java diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceClient.java b/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceClient.java similarity index 100% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceClient.java rename to owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceClient.java diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceSettings.java b/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceSettings.java similarity index 99% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceSettings.java rename to owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceSettings.java index 29acd3f3aa4c..5ad8e0041dc1 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceSettings.java +++ b/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceSettings.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.asset.v1p5beta1.stub.AssetServiceStubSettings; diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/gapic_metadata.json b/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/gapic_metadata.json similarity index 100% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/gapic_metadata.json rename to owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/gapic_metadata.json diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/package-info.java b/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/package-info.java similarity index 100% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/package-info.java rename to owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/package-info.java diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStub.java b/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStub.java similarity index 100% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStub.java rename to owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStub.java diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStubSettings.java b/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStubSettings.java similarity index 100% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStubSettings.java rename to owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStubSettings.java diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/GrpcAssetServiceCallableFactory.java b/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/GrpcAssetServiceCallableFactory.java similarity index 100% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/GrpcAssetServiceCallableFactory.java rename to owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/GrpcAssetServiceCallableFactory.java diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/GrpcAssetServiceStub.java b/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/GrpcAssetServiceStub.java similarity index 99% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/GrpcAssetServiceStub.java rename to owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/GrpcAssetServiceStub.java index 52ebbf4ba4b8..9be0edcf03da 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/GrpcAssetServiceStub.java +++ b/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/GrpcAssetServiceStub.java @@ -32,6 +32,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/HttpJsonAssetServiceCallableFactory.java b/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/HttpJsonAssetServiceCallableFactory.java similarity index 100% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/HttpJsonAssetServiceCallableFactory.java rename to owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/HttpJsonAssetServiceCallableFactory.java diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/HttpJsonAssetServiceStub.java b/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/HttpJsonAssetServiceStub.java similarity index 100% rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/HttpJsonAssetServiceStub.java rename to owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/HttpJsonAssetServiceStub.java diff --git a/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/AssetServiceClientHttpJsonTest.java b/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/AssetServiceClientHttpJsonTest.java similarity index 100% rename from java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/AssetServiceClientHttpJsonTest.java rename to owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/AssetServiceClientHttpJsonTest.java diff --git a/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/AssetServiceClientTest.java b/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/AssetServiceClientTest.java similarity index 100% rename from java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/AssetServiceClientTest.java rename to owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/AssetServiceClientTest.java diff --git a/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/MockAssetService.java b/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/MockAssetService.java similarity index 100% rename from java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/MockAssetService.java rename to owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/MockAssetService.java diff --git a/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/MockAssetServiceImpl.java b/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/MockAssetServiceImpl.java similarity index 100% rename from java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/MockAssetServiceImpl.java rename to owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/MockAssetServiceImpl.java diff --git a/java-asset/grpc-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceGrpc.java b/owl-bot-staging/java-asset/v1p5beta1/grpc-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceGrpc.java similarity index 50% rename from java-asset/grpc-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceGrpc.java rename to owl-bot-staging/java-asset/v1p5beta1/grpc-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceGrpc.java index 9172d7616ee4..f931499fa9d2 100644 --- a/java-asset/grpc-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceGrpc.java +++ b/owl-bot-staging/java-asset/v1p5beta1/grpc-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.asset.v1p5beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
      * Asset service definition.
      * 
    @@ -35,176 +18,150 @@ private AssetServiceGrpc() {} public static final String SERVICE_NAME = "google.cloud.asset.v1p5beta1.AssetService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p5beta1.ListAssetsRequest, - com.google.cloud.asset.v1p5beta1.ListAssetsResponse> - getListAssetsMethod; + private static volatile io.grpc.MethodDescriptor getListAssetsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListAssets", requestType = com.google.cloud.asset.v1p5beta1.ListAssetsRequest.class, responseType = com.google.cloud.asset.v1p5beta1.ListAssetsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p5beta1.ListAssetsRequest, - com.google.cloud.asset.v1p5beta1.ListAssetsResponse> - getListAssetsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p5beta1.ListAssetsRequest, - com.google.cloud.asset.v1p5beta1.ListAssetsResponse> - getListAssetsMethod; + public static io.grpc.MethodDescriptor getListAssetsMethod() { + io.grpc.MethodDescriptor getListAssetsMethod; if ((getListAssetsMethod = AssetServiceGrpc.getListAssetsMethod) == null) { synchronized (AssetServiceGrpc.class) { if ((getListAssetsMethod = AssetServiceGrpc.getListAssetsMethod) == null) { - AssetServiceGrpc.getListAssetsMethod = - getListAssetsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAssets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p5beta1.ListAssetsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p5beta1.ListAssetsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ListAssets")) - .build(); + AssetServiceGrpc.getListAssetsMethod = getListAssetsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p5beta1.ListAssetsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p5beta1.ListAssetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ListAssets")) + .build(); } } } return getListAssetsMethod; } - /** Creates a new async stub that supports all call types for the service */ + /** + * Creates a new async stub that supports all call types for the service + */ public static AssetServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceStub(channel, callOptions); + } + }; return AssetServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static AssetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static AssetServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceBlockingStub(channel, callOptions); + } + }; return AssetServiceBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AssetServiceFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AssetServiceFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceFutureStub(channel, callOptions); + } + }; return AssetServiceFutureStub.newStub(factory, channel); } /** - * - * *
        * Asset service definition.
        * 
    */ - public abstract static class AssetServiceImplBase implements io.grpc.BindableService { + public static abstract class AssetServiceImplBase implements io.grpc.BindableService { /** - * - * *
          * Lists assets with time and resource types and returns paged results in
          * response.
          * 
    */ - public void listAssets( - com.google.cloud.asset.v1p5beta1.ListAssetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listAssets(com.google.cloud.asset.v1p5beta1.ListAssetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAssetsMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListAssetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1p5beta1.ListAssetsRequest, - com.google.cloud.asset.v1p5beta1.ListAssetsResponse>( - this, METHODID_LIST_ASSETS))) + getListAssetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1p5beta1.ListAssetsRequest, + com.google.cloud.asset.v1p5beta1.ListAssetsResponse>( + this, METHODID_LIST_ASSETS))) .build(); } } /** - * - * *
        * Asset service definition.
        * 
    */ - public static final class AssetServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private AssetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class AssetServiceStub extends io.grpc.stub.AbstractAsyncStub { + private AssetServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected AssetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected AssetServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AssetServiceStub(channel, callOptions); } /** - * - * *
          * Lists assets with time and resource types and returns paged results in
          * response.
          * 
    */ - public void listAssets( - com.google.cloud.asset.v1p5beta1.ListAssetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listAssets(com.google.cloud.asset.v1p5beta1.ListAssetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListAssetsMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
        * Asset service definition.
        * 
    */ - public static final class AssetServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AssetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class AssetServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private AssetServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -215,30 +172,25 @@ protected AssetServiceBlockingStub build( } /** - * - * *
          * Lists assets with time and resource types and returns paged results in
          * response.
          * 
    */ - public com.google.cloud.asset.v1p5beta1.ListAssetsResponse listAssets( - com.google.cloud.asset.v1p5beta1.ListAssetsRequest request) { + public com.google.cloud.asset.v1p5beta1.ListAssetsResponse listAssets(com.google.cloud.asset.v1p5beta1.ListAssetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListAssetsMethod(), getCallOptions(), request); } } /** - * - * *
        * Asset service definition.
        * 
    */ - public static final class AssetServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AssetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class AssetServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private AssetServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -249,16 +201,13 @@ protected AssetServiceFutureStub build( } /** - * - * *
          * Lists assets with time and resource types and returns paged results in
          * response.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.asset.v1p5beta1.ListAssetsResponse> - listAssets(com.google.cloud.asset.v1p5beta1.ListAssetsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listAssets( + com.google.cloud.asset.v1p5beta1.ListAssetsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListAssetsMethod(), getCallOptions()), request); } @@ -266,11 +215,11 @@ protected AssetServiceFutureStub build( private static final int METHODID_LIST_ASSETS = 0; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AssetServiceImplBase serviceImpl; private final int methodId; @@ -284,10 +233,8 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_ASSETS: - serviceImpl.listAssets( - (com.google.cloud.asset.v1p5beta1.ListAssetsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listAssets((com.google.cloud.asset.v1p5beta1.ListAssetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -305,9 +252,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class AssetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class AssetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { AssetServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -349,12 +295,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (AssetServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AssetServiceFileDescriptorSupplier()) - .addMethod(getListAssetsMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AssetServiceFileDescriptorSupplier()) + .addMethod(getListAssetsMethod()) + .build(); } } } diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Asset.java b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Asset.java similarity index 71% rename from java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Asset.java rename to owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Asset.java index 47f349745998..995bb4b72a66 100644 --- a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Asset.java +++ b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Asset.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p5beta1/assets.proto package com.google.cloud.asset.v1p5beta1; /** - * - * *
      * Cloud asset. This includes all Google Cloud Platform resources,
      * Cloud IAM policies, and other non-GCP assets.
    @@ -28,16 +11,15 @@
      *
      * Protobuf type {@code google.cloud.asset.v1p5beta1.Asset}
      */
    -public final class Asset extends com.google.protobuf.GeneratedMessageV3
    -    implements
    +public final class Asset extends
    +    com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p5beta1.Asset)
         AssetOrBuilder {
    -  private static final long serialVersionUID = 0L;
    +private static final long serialVersionUID = 0L;
       // Use Asset.newBuilder() to construct.
       private Asset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -
       private Asset() {
         name_ = "";
         assetType_ = "";
    @@ -47,219 +29,39 @@ private Asset() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(
    +      UnusedPrivateParameter unused) {
         return new Asset();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet
    +  getUnknownFields() {
         return this.unknownFields;
       }
    -
    -  private Asset(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              name_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              assetType_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              com.google.cloud.asset.v1p5beta1.Resource.Builder subBuilder = null;
    -              if (resource_ != null) {
    -                subBuilder = resource_.toBuilder();
    -              }
    -              resource_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p5beta1.Resource.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(resource_);
    -                resource_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 34:
    -            {
    -              com.google.iam.v1.Policy.Builder subBuilder = null;
    -              if (iamPolicy_ != null) {
    -                subBuilder = iamPolicy_.toBuilder();
    -              }
    -              iamPolicy_ = input.readMessage(com.google.iam.v1.Policy.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(iamPolicy_);
    -                iamPolicy_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 50:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                orgPolicy_ = new java.util.ArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              orgPolicy_.add(
    -                  input.readMessage(
    -                      com.google.cloud.orgpolicy.v1.Policy.parser(), extensionRegistry));
    -              break;
    -            }
    -          case 58:
    -            {
    -              com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder subBuilder = null;
    -              if (accessContextPolicyCase_ == 7) {
    -                subBuilder =
    -                    ((com.google.identity.accesscontextmanager.v1.AccessPolicy)
    -                            accessContextPolicy_)
    -                        .toBuilder();
    -              }
    -              accessContextPolicy_ =
    -                  input.readMessage(
    -                      com.google.identity.accesscontextmanager.v1.AccessPolicy.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(
    -                    (com.google.identity.accesscontextmanager.v1.AccessPolicy)
    -                        accessContextPolicy_);
    -                accessContextPolicy_ = subBuilder.buildPartial();
    -              }
    -              accessContextPolicyCase_ = 7;
    -              break;
    -            }
    -          case 66:
    -            {
    -              com.google.identity.accesscontextmanager.v1.AccessLevel.Builder subBuilder = null;
    -              if (accessContextPolicyCase_ == 8) {
    -                subBuilder =
    -                    ((com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_)
    -                        .toBuilder();
    -              }
    -              accessContextPolicy_ =
    -                  input.readMessage(
    -                      com.google.identity.accesscontextmanager.v1.AccessLevel.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(
    -                    (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_);
    -                accessContextPolicy_ = subBuilder.buildPartial();
    -              }
    -              accessContextPolicyCase_ = 8;
    -              break;
    -            }
    -          case 74:
    -            {
    -              com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder subBuilder =
    -                  null;
    -              if (accessContextPolicyCase_ == 9) {
    -                subBuilder =
    -                    ((com.google.identity.accesscontextmanager.v1.ServicePerimeter)
    -                            accessContextPolicy_)
    -                        .toBuilder();
    -              }
    -              accessContextPolicy_ =
    -                  input.readMessage(
    -                      com.google.identity.accesscontextmanager.v1.ServicePerimeter.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(
    -                    (com.google.identity.accesscontextmanager.v1.ServicePerimeter)
    -                        accessContextPolicy_);
    -                accessContextPolicy_ = subBuilder.buildPartial();
    -              }
    -              accessContextPolicyCase_ = 9;
    -              break;
    -            }
    -          case 82:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
    -                ancestors_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000002;
    -              }
    -              ancestors_.add(s);
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        orgPolicy_ = java.util.Collections.unmodifiableList(orgPolicy_);
    -      }
    -      if (((mutable_bitField0_ & 0x00000002) != 0)) {
    -        ancestors_ = ancestors_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
    -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.cloud.asset.v1p5beta1.AssetProto
    -        .internal_static_google_cloud_asset_v1p5beta1_Asset_descriptor;
    +  public static final com.google.protobuf.Descriptors.Descriptor
    +      getDescriptor() {
    +    return com.google.cloud.asset.v1p5beta1.AssetProto.internal_static_google_cloud_asset_v1p5beta1_Asset_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1p5beta1.AssetProto
    -        .internal_static_google_cloud_asset_v1p5beta1_Asset_fieldAccessorTable
    +    return com.google.cloud.asset.v1p5beta1.AssetProto.internal_static_google_cloud_asset_v1p5beta1_Asset_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1p5beta1.Asset.class,
    -            com.google.cloud.asset.v1p5beta1.Asset.Builder.class);
    +            com.google.cloud.asset.v1p5beta1.Asset.class, com.google.cloud.asset.v1p5beta1.Asset.Builder.class);
       }
     
       private int accessContextPolicyCase_ = 0;
       private java.lang.Object accessContextPolicy_;
    -
       public enum AccessContextPolicyCase
    -      implements
    -          com.google.protobuf.Internal.EnumLite,
    +      implements com.google.protobuf.Internal.EnumLite,
               com.google.protobuf.AbstractMessage.InternalOneOfEnum {
         ACCESS_POLICY(7),
         ACCESS_LEVEL(8),
         SERVICE_PERIMETER(9),
         ACCESSCONTEXTPOLICY_NOT_SET(0);
         private final int value;
    -
         private AccessContextPolicyCase(int value) {
           this.value = value;
         }
    @@ -275,33 +77,27 @@ public static AccessContextPolicyCase valueOf(int value) {
     
         public static AccessContextPolicyCase forNumber(int value) {
           switch (value) {
    -        case 7:
    -          return ACCESS_POLICY;
    -        case 8:
    -          return ACCESS_LEVEL;
    -        case 9:
    -          return SERVICE_PERIMETER;
    -        case 0:
    -          return ACCESSCONTEXTPOLICY_NOT_SET;
    -        default:
    -          return null;
    +        case 7: return ACCESS_POLICY;
    +        case 8: return ACCESS_LEVEL;
    +        case 9: return SERVICE_PERIMETER;
    +        case 0: return ACCESSCONTEXTPOLICY_NOT_SET;
    +        default: return null;
           }
         }
    -
         public int getNumber() {
           return this.value;
         }
       };
     
    -  public AccessContextPolicyCase getAccessContextPolicyCase() {
    -    return AccessContextPolicyCase.forNumber(accessContextPolicyCase_);
    +  public AccessContextPolicyCase
    +  getAccessContextPolicyCase() {
    +    return AccessContextPolicyCase.forNumber(
    +        accessContextPolicyCase_);
       }
     
       public static final int NAME_FIELD_NUMBER = 1;
       private volatile java.lang.Object name_;
       /**
    -   *
    -   *
        * 
        * The full name of the asset. For example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -311,7 +107,6 @@ public AccessContextPolicyCase getAccessContextPolicyCase() {
        * 
    * * string name = 1; - * * @return The name. */ @java.lang.Override @@ -320,15 +115,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
        * The full name of the asset. For example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -338,15 +132,16 @@ public java.lang.String getName() {
        * 
    * * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -357,14 +152,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ASSET_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object assetType_; /** - * - * *
        * Type of the asset. Example: "compute.googleapis.com/Disk".
        * 
    * * string asset_type = 2; - * * @return The assetType. */ @java.lang.Override @@ -373,29 +165,29 @@ public java.lang.String getAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; } } /** - * - * *
        * Type of the asset. Example: "compute.googleapis.com/Disk".
        * 
    * * string asset_type = 2; - * * @return The bytes for assetType. */ @java.lang.Override - public com.google.protobuf.ByteString getAssetTypeBytes() { + public com.google.protobuf.ByteString + getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetType_ = b; return b; } else { @@ -406,14 +198,11 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.asset.v1p5beta1.Resource resource_; /** - * - * *
        * Representation of the resource.
        * 
    * * .google.cloud.asset.v1p5beta1.Resource resource = 3; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -421,25 +210,18 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
        * Representation of the resource.
        * 
    * * .google.cloud.asset.v1p5beta1.Resource resource = 3; - * * @return The resource. */ @java.lang.Override public com.google.cloud.asset.v1p5beta1.Resource getResource() { - return resource_ == null - ? com.google.cloud.asset.v1p5beta1.Resource.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.asset.v1p5beta1.Resource.getDefaultInstance() : resource_; } /** - * - * *
        * Representation of the resource.
        * 
    @@ -454,15 +236,12 @@ public com.google.cloud.asset.v1p5beta1.ResourceOrBuilder getResourceOrBuilder() public static final int IAM_POLICY_FIELD_NUMBER = 4; private com.google.iam.v1.Policy iamPolicy_; /** - * - * *
        * Representation of the actual Cloud IAM policy set on a cloud resource. For
        * each resource, there must be at most one Cloud IAM policy set on it.
        * 
    * * .google.iam.v1.Policy iam_policy = 4; - * * @return Whether the iamPolicy field is set. */ @java.lang.Override @@ -470,15 +249,12 @@ public boolean hasIamPolicy() { return iamPolicy_ != null; } /** - * - * *
        * Representation of the actual Cloud IAM policy set on a cloud resource. For
        * each resource, there must be at most one Cloud IAM policy set on it.
        * 
    * * .google.iam.v1.Policy iam_policy = 4; - * * @return The iamPolicy. */ @java.lang.Override @@ -486,8 +262,6 @@ public com.google.iam.v1.Policy getIamPolicy() { return iamPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_; } /** - * - * *
        * Representation of the actual Cloud IAM policy set on a cloud resource. For
        * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -503,8 +277,6 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
       public static final int ORG_POLICY_FIELD_NUMBER = 6;
       private java.util.List orgPolicy_;
       /**
    -   *
    -   *
        * 
        * Representation of the Cloud Organization Policy set on an asset. For each
        * asset, there could be multiple Organization policies with different
    @@ -518,8 +290,6 @@ public java.util.List getOrgPolicyList() {
         return orgPolicy_;
       }
       /**
    -   *
    -   *
        * 
        * Representation of the Cloud Organization Policy set on an asset. For each
        * asset, there could be multiple Organization policies with different
    @@ -529,13 +299,11 @@ public java.util.List getOrgPolicyList() {
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
       @java.lang.Override
    -  public java.util.List
    +  public java.util.List 
           getOrgPolicyOrBuilderList() {
         return orgPolicy_;
       }
       /**
    -   *
    -   *
        * 
        * Representation of the Cloud Organization Policy set on an asset. For each
        * asset, there could be multiple Organization policies with different
    @@ -549,8 +317,6 @@ public int getOrgPolicyCount() {
         return orgPolicy_.size();
       }
       /**
    -   *
    -   *
        * 
        * Representation of the Cloud Organization Policy set on an asset. For each
        * asset, there could be multiple Organization policies with different
    @@ -564,8 +330,6 @@ public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) {
         return orgPolicy_.get(index);
       }
       /**
    -   *
    -   *
        * 
        * Representation of the Cloud Organization Policy set on an asset. For each
        * asset, there could be multiple Organization policies with different
    @@ -575,14 +339,14 @@ public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) {
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
       @java.lang.Override
    -  public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int index) {
    +  public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
    +      int index) {
         return orgPolicy_.get(index);
       }
     
       public static final int ACCESS_POLICY_FIELD_NUMBER = 7;
       /**
        * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    -   *
        * @return Whether the accessPolicy field is set.
        */
       @java.lang.Override
    @@ -591,22 +355,22 @@ public boolean hasAccessPolicy() {
       }
       /**
        * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    -   *
        * @return The accessPolicy.
        */
       @java.lang.Override
       public com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy() {
         if (accessContextPolicyCase_ == 7) {
    -      return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_;
    +       return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_;
         }
         return com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance();
       }
    -  /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */
    +  /**
    +   * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    +   */
       @java.lang.Override
    -  public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder
    -      getAccessPolicyOrBuilder() {
    +  public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAccessPolicyOrBuilder() {
         if (accessContextPolicyCase_ == 7) {
    -      return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_;
    +       return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_;
         }
         return com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance();
       }
    @@ -614,7 +378,6 @@ public com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy(
       public static final int ACCESS_LEVEL_FIELD_NUMBER = 8;
       /**
        * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    -   *
        * @return Whether the accessLevel field is set.
        */
       @java.lang.Override
    @@ -623,22 +386,22 @@ public boolean hasAccessLevel() {
       }
       /**
        * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    -   *
        * @return The accessLevel.
        */
       @java.lang.Override
       public com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel() {
         if (accessContextPolicyCase_ == 8) {
    -      return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_;
    +       return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_;
         }
         return com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance();
       }
    -  /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */
    +  /**
    +   * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    +   */
       @java.lang.Override
    -  public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder
    -      getAccessLevelOrBuilder() {
    +  public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAccessLevelOrBuilder() {
         if (accessContextPolicyCase_ == 8) {
    -      return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_;
    +       return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_;
         }
         return com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance();
       }
    @@ -646,7 +409,6 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel()
       public static final int SERVICE_PERIMETER_FIELD_NUMBER = 9;
       /**
        * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
    -   *
        * @return Whether the servicePerimeter field is set.
        */
       @java.lang.Override
    @@ -655,13 +417,12 @@ public boolean hasServicePerimeter() {
       }
       /**
        * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
    -   *
        * @return The servicePerimeter.
        */
       @java.lang.Override
       public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter() {
         if (accessContextPolicyCase_ == 9) {
    -      return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_;
    +       return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_;
         }
         return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
       }
    @@ -669,10 +430,9 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePe
        * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
        */
       @java.lang.Override
    -  public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder
    -      getServicePerimeterOrBuilder() {
    +  public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder getServicePerimeterOrBuilder() {
         if (accessContextPolicyCase_ == 9) {
    -      return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_;
    +       return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_;
         }
         return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
       }
    @@ -680,8 +440,6 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePe
       public static final int ANCESTORS_FIELD_NUMBER = 10;
       private com.google.protobuf.LazyStringList ancestors_;
       /**
    -   *
    -   *
        * 
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -691,15 +449,13 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePe
        * 
    * * repeated string ancestors = 10; - * * @return A list containing the ancestors. */ - public com.google.protobuf.ProtocolStringList getAncestorsList() { + public com.google.protobuf.ProtocolStringList + getAncestorsList() { return ancestors_; } /** - * - * *
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -709,15 +465,12 @@ public com.google.protobuf.ProtocolStringList getAncestorsList() {
        * 
    * * repeated string ancestors = 10; - * * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); } /** - * - * *
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -727,7 +480,6 @@ public int getAncestorsCount() {
        * 
    * * repeated string ancestors = 10; - * * @param index The index of the element to return. * @return The ancestors at the given index. */ @@ -735,8 +487,6 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** - * - * *
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -746,16 +496,15 @@ public java.lang.String getAncestors(int index) {
        * 
    * * repeated string ancestors = 10; - * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - public com.google.protobuf.ByteString getAncestorsBytes(int index) { + public com.google.protobuf.ByteString + getAncestorsBytes(int index) { return ancestors_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -767,7 +516,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -784,21 +534,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(6, orgPolicy_.get(i)); } if (accessContextPolicyCase_ == 7) { - output.writeMessage( - 7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); + output.writeMessage(7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); } if (accessContextPolicyCase_ == 8) { - output.writeMessage( - 8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); + output.writeMessage(8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); } if (accessContextPolicyCase_ == 9) { - output.writeMessage( - 9, (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); + output.writeMessage(9, (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); } for (int i = 0; i < ancestors_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, ancestors_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -814,29 +561,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, assetType_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResource()); } if (iamPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIamPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getIamPolicy()); } for (int i = 0; i < orgPolicy_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, orgPolicy_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, orgPolicy_.get(i)); } if (accessContextPolicyCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); } if (accessContextPolicyCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); } if (accessContextPolicyCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, - (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); } { int dataSize = 0; @@ -846,7 +592,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAncestorsList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -854,40 +600,49 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p5beta1.Asset)) { return super.equals(obj); } com.google.cloud.asset.v1p5beta1.Asset other = (com.google.cloud.asset.v1p5beta1.Asset) obj; - if (!getName().equals(other.getName())) return false; - if (!getAssetType().equals(other.getAssetType())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getAssetType() + .equals(other.getAssetType())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } if (hasIamPolicy() != other.hasIamPolicy()) return false; if (hasIamPolicy()) { - if (!getIamPolicy().equals(other.getIamPolicy())) return false; + if (!getIamPolicy() + .equals(other.getIamPolicy())) return false; } - if (!getOrgPolicyList().equals(other.getOrgPolicyList())) return false; - if (!getAncestorsList().equals(other.getAncestorsList())) return false; + if (!getOrgPolicyList() + .equals(other.getOrgPolicyList())) return false; + if (!getAncestorsList() + .equals(other.getAncestorsList())) return false; if (!getAccessContextPolicyCase().equals(other.getAccessContextPolicyCase())) return false; switch (accessContextPolicyCase_) { case 7: - if (!getAccessPolicy().equals(other.getAccessPolicy())) return false; + if (!getAccessPolicy() + .equals(other.getAccessPolicy())) return false; break; case 8: - if (!getAccessLevel().equals(other.getAccessLevel())) return false; + if (!getAccessLevel() + .equals(other.getAccessLevel())) return false; break; case 9: - if (!getServicePerimeter().equals(other.getServicePerimeter())) return false; + if (!getServicePerimeter() + .equals(other.getServicePerimeter())) return false; break; case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -934,109 +689,102 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1p5beta1.Asset parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p5beta1.Asset parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p5beta1.Asset parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p5beta1.Asset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p5beta1.Asset 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.asset.v1p5beta1.Asset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p5beta1.Asset parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p5beta1.Asset parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p5beta1.Asset parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p5beta1.Asset parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p5beta1.Asset parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p5beta1.Asset parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p5beta1.Asset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p5beta1.Asset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Cloud asset. This includes all Google Cloud Platform resources,
        * Cloud IAM policies, and other non-GCP assets.
    @@ -1044,41 +792,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        * Protobuf type {@code google.cloud.asset.v1p5beta1.Asset}
        */
    -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    -      implements
    +  public static final class Builder extends
    +      com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p5beta1.Asset)
           com.google.cloud.asset.v1p5beta1.AssetOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.cloud.asset.v1p5beta1.AssetProto
    -          .internal_static_google_cloud_asset_v1p5beta1_Asset_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor
    +        getDescriptor() {
    +      return com.google.cloud.asset.v1p5beta1.AssetProto.internal_static_google_cloud_asset_v1p5beta1_Asset_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1p5beta1.AssetProto
    -          .internal_static_google_cloud_asset_v1p5beta1_Asset_fieldAccessorTable
    +      return com.google.cloud.asset.v1p5beta1.AssetProto.internal_static_google_cloud_asset_v1p5beta1_Asset_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1p5beta1.Asset.class,
    -              com.google.cloud.asset.v1p5beta1.Asset.Builder.class);
    +              com.google.cloud.asset.v1p5beta1.Asset.class, com.google.cloud.asset.v1p5beta1.Asset.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1p5beta1.Asset.newBuilder()
         private Builder() {
    -      maybeForceBuilderInitialization();
    +
         }
     
    -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(
    +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
     
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getOrgPolicyFieldBuilder();
    -      }
         }
    -
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -1100,10 +840,20 @@ public Builder clear() {
           }
           if (orgPolicyBuilder_ == null) {
             orgPolicy_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        orgPolicy_ = null;
             orgPolicyBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
    +      if (accessPolicyBuilder_ != null) {
    +        accessPolicyBuilder_.clear();
    +      }
    +      if (accessLevelBuilder_ != null) {
    +        accessLevelBuilder_.clear();
    +      }
    +      if (servicePerimeterBuilder_ != null) {
    +        servicePerimeterBuilder_.clear();
    +      }
           ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY;
           bitField0_ = (bitField0_ & ~0x00000002);
           accessContextPolicyCase_ = 0;
    @@ -1112,9 +862,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.cloud.asset.v1p5beta1.AssetProto
    -          .internal_static_google_cloud_asset_v1p5beta1_Asset_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor
    +        getDescriptorForType() {
    +      return com.google.cloud.asset.v1p5beta1.AssetProto.internal_static_google_cloud_asset_v1p5beta1_Asset_descriptor;
         }
     
         @java.lang.Override
    @@ -1133,8 +883,7 @@ public com.google.cloud.asset.v1p5beta1.Asset build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1p5beta1.Asset buildPartial() {
    -      com.google.cloud.asset.v1p5beta1.Asset result =
    -          new com.google.cloud.asset.v1p5beta1.Asset(this);
    +      com.google.cloud.asset.v1p5beta1.Asset result = new com.google.cloud.asset.v1p5beta1.Asset(this);
           int from_bitField0_ = bitField0_;
           result.name_ = name_;
           result.assetType_ = assetType_;
    @@ -1192,39 +941,38 @@ public com.google.cloud.asset.v1p5beta1.Asset buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    -
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1p5beta1.Asset) {
    -        return mergeFrom((com.google.cloud.asset.v1p5beta1.Asset) other);
    +        return mergeFrom((com.google.cloud.asset.v1p5beta1.Asset)other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -1265,10 +1013,9 @@ public Builder mergeFrom(com.google.cloud.asset.v1p5beta1.Asset other) {
                 orgPolicyBuilder_ = null;
                 orgPolicy_ = other.orgPolicy_;
                 bitField0_ = (bitField0_ & ~0x00000001);
    -            orgPolicyBuilder_ =
    -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
    -                    ? getOrgPolicyFieldBuilder()
    -                    : null;
    +            orgPolicyBuilder_ = 
    +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
    +                 getOrgPolicyFieldBuilder() : null;
               } else {
                 orgPolicyBuilder_.addAllMessages(other.orgPolicy_);
               }
    @@ -1285,27 +1032,23 @@ public Builder mergeFrom(com.google.cloud.asset.v1p5beta1.Asset other) {
             onChanged();
           }
           switch (other.getAccessContextPolicyCase()) {
    -        case ACCESS_POLICY:
    -          {
    -            mergeAccessPolicy(other.getAccessPolicy());
    -            break;
    -          }
    -        case ACCESS_LEVEL:
    -          {
    -            mergeAccessLevel(other.getAccessLevel());
    -            break;
    -          }
    -        case SERVICE_PERIMETER:
    -          {
    -            mergeServicePerimeter(other.getServicePerimeter());
    -            break;
    -          }
    -        case ACCESSCONTEXTPOLICY_NOT_SET:
    -          {
    -            break;
    -          }
    +        case ACCESS_POLICY: {
    +          mergeAccessPolicy(other.getAccessPolicy());
    +          break;
    +        }
    +        case ACCESS_LEVEL: {
    +          mergeAccessLevel(other.getAccessLevel());
    +          break;
    +        }
    +        case SERVICE_PERIMETER: {
    +          mergeServicePerimeter(other.getServicePerimeter());
    +          break;
    +        }
    +        case ACCESSCONTEXTPOLICY_NOT_SET: {
    +          break;
    +        }
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -1320,25 +1063,102 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p5beta1.Asset parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10: {
    +              name_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 10
    +            case 18: {
    +              assetType_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 18
    +            case 26: {
    +              input.readMessage(
    +                  getResourceFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 26
    +            case 34: {
    +              input.readMessage(
    +                  getIamPolicyFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 34
    +            case 50: {
    +              com.google.cloud.orgpolicy.v1.Policy m =
    +                  input.readMessage(
    +                      com.google.cloud.orgpolicy.v1.Policy.parser(),
    +                      extensionRegistry);
    +              if (orgPolicyBuilder_ == null) {
    +                ensureOrgPolicyIsMutable();
    +                orgPolicy_.add(m);
    +              } else {
    +                orgPolicyBuilder_.addMessage(m);
    +              }
    +              break;
    +            } // case 50
    +            case 58: {
    +              input.readMessage(
    +                  getAccessPolicyFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +              accessContextPolicyCase_ = 7;
    +              break;
    +            } // case 58
    +            case 66: {
    +              input.readMessage(
    +                  getAccessLevelFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +              accessContextPolicyCase_ = 8;
    +              break;
    +            } // case 66
    +            case 74: {
    +              input.readMessage(
    +                  getServicePerimeterFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +              accessContextPolicyCase_ = 9;
    +              break;
    +            } // case 74
    +            case 82: {
    +              java.lang.String s = input.readStringRequireUtf8();
    +              ensureAncestorsIsMutable();
    +              ancestors_.add(s);
    +              break;
    +            } // case 82
    +            default: {
    +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                done = true; // was an endgroup tag
    +              }
    +              break;
    +            } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p5beta1.Asset) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
    -
         private int accessContextPolicyCase_ = 0;
         private java.lang.Object accessContextPolicy_;
    -
    -    public AccessContextPolicyCase getAccessContextPolicyCase() {
    -      return AccessContextPolicyCase.forNumber(accessContextPolicyCase_);
    +    public AccessContextPolicyCase
    +        getAccessContextPolicyCase() {
    +      return AccessContextPolicyCase.forNumber(
    +          accessContextPolicyCase_);
         }
     
         public Builder clearAccessContextPolicy() {
    @@ -1352,8 +1172,6 @@ public Builder clearAccessContextPolicy() {
     
         private java.lang.Object name_ = "";
         /**
    -     *
    -     *
          * 
          * The full name of the asset. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -1363,13 +1181,13 @@ public Builder clearAccessContextPolicy() {
          * 
    * * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1378,8 +1196,6 @@ public java.lang.String getName() { } } /** - * - * *
          * The full name of the asset. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -1389,14 +1205,15 @@ public java.lang.String getName() {
          * 
    * * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1404,8 +1221,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
          * The full name of the asset. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -1415,22 +1230,20 @@ public com.google.protobuf.ByteString getNameBytes() {
          * 
    * * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
          * The full name of the asset. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -1440,18 +1253,15 @@ public Builder setName(java.lang.String value) {
          * 
    * * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
          * The full name of the asset. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -1461,16 +1271,16 @@ public Builder clearName() {
          * 
    * * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1478,20 +1288,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object assetType_ = ""; /** - * - * *
          * Type of the asset. Example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; - * * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; @@ -1500,21 +1308,20 @@ public java.lang.String getAssetType() { } } /** - * - * *
          * Type of the asset. Example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; - * * @return The bytes for assetType. */ - public com.google.protobuf.ByteString getAssetTypeBytes() { + public com.google.protobuf.ByteString + getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetType_ = b; return b; } else { @@ -1522,61 +1329,54 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { } } /** - * - * *
          * Type of the asset. Example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; - * * @param value The assetType to set. * @return This builder for chaining. */ - public Builder setAssetType(java.lang.String value) { + public Builder setAssetType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + assetType_ = value; onChanged(); return this; } /** - * - * *
          * Type of the asset. Example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; - * * @return This builder for chaining. */ public Builder clearAssetType() { - + assetType_ = getDefaultInstance().getAssetType(); onChanged(); return this; } /** - * - * *
          * Type of the asset. Example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; - * * @param value The bytes for assetType to set. * @return This builder for chaining. */ - public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { + public Builder setAssetTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; onChanged(); return this; @@ -1584,47 +1384,34 @@ public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { private com.google.cloud.asset.v1p5beta1.Resource resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p5beta1.Resource, - com.google.cloud.asset.v1p5beta1.Resource.Builder, - com.google.cloud.asset.v1p5beta1.ResourceOrBuilder> - resourceBuilder_; + com.google.cloud.asset.v1p5beta1.Resource, com.google.cloud.asset.v1p5beta1.Resource.Builder, com.google.cloud.asset.v1p5beta1.ResourceOrBuilder> resourceBuilder_; /** - * - * *
          * Representation of the resource.
          * 
    * * .google.cloud.asset.v1p5beta1.Resource resource = 3; - * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** - * - * *
          * Representation of the resource.
          * 
    * * .google.cloud.asset.v1p5beta1.Resource resource = 3; - * * @return The resource. */ public com.google.cloud.asset.v1p5beta1.Resource getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.cloud.asset.v1p5beta1.Resource.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.asset.v1p5beta1.Resource.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
          * Representation of the resource.
          * 
    @@ -1645,15 +1432,14 @@ public Builder setResource(com.google.cloud.asset.v1p5beta1.Resource value) { return this; } /** - * - * *
          * Representation of the resource.
          * 
    * * .google.cloud.asset.v1p5beta1.Resource resource = 3; */ - public Builder setResource(com.google.cloud.asset.v1p5beta1.Resource.Builder builderForValue) { + public Builder setResource( + com.google.cloud.asset.v1p5beta1.Resource.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -1664,8 +1450,6 @@ public Builder setResource(com.google.cloud.asset.v1p5beta1.Resource.Builder bui return this; } /** - * - * *
          * Representation of the resource.
          * 
    @@ -1676,9 +1460,7 @@ public Builder mergeResource(com.google.cloud.asset.v1p5beta1.Resource value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.asset.v1p5beta1.Resource.newBuilder(resource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1p5beta1.Resource.newBuilder(resource_).mergeFrom(value).buildPartial(); } else { resource_ = value; } @@ -1690,8 +1472,6 @@ public Builder mergeResource(com.google.cloud.asset.v1p5beta1.Resource value) { return this; } /** - * - * *
          * Representation of the resource.
          * 
    @@ -1710,8 +1490,6 @@ public Builder clearResource() { return this; } /** - * - * *
          * Representation of the resource.
          * 
    @@ -1719,13 +1497,11 @@ public Builder clearResource() { * .google.cloud.asset.v1p5beta1.Resource resource = 3; */ public com.google.cloud.asset.v1p5beta1.Resource.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** - * - * *
          * Representation of the resource.
          * 
    @@ -1736,14 +1512,11 @@ public com.google.cloud.asset.v1p5beta1.ResourceOrBuilder getResourceOrBuilder() if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null - ? com.google.cloud.asset.v1p5beta1.Resource.getDefaultInstance() - : resource_; + return resource_ == null ? + com.google.cloud.asset.v1p5beta1.Resource.getDefaultInstance() : resource_; } } /** - * - * *
          * Representation of the resource.
          * 
    @@ -1751,17 +1524,14 @@ public com.google.cloud.asset.v1p5beta1.ResourceOrBuilder getResourceOrBuilder() * .google.cloud.asset.v1p5beta1.Resource resource = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p5beta1.Resource, - com.google.cloud.asset.v1p5beta1.Resource.Builder, - com.google.cloud.asset.v1p5beta1.ResourceOrBuilder> + com.google.cloud.asset.v1p5beta1.Resource, com.google.cloud.asset.v1p5beta1.Resource.Builder, com.google.cloud.asset.v1p5beta1.ResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p5beta1.Resource, - com.google.cloud.asset.v1p5beta1.Resource.Builder, - com.google.cloud.asset.v1p5beta1.ResourceOrBuilder>( - getResource(), getParentForChildren(), isClean()); + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p5beta1.Resource, com.google.cloud.asset.v1p5beta1.Resource.Builder, com.google.cloud.asset.v1p5beta1.ResourceOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); resource_ = null; } return resourceBuilder_; @@ -1769,35 +1539,26 @@ public com.google.cloud.asset.v1p5beta1.ResourceOrBuilder getResourceOrBuilder() private com.google.iam.v1.Policy iamPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, - com.google.iam.v1.Policy.Builder, - com.google.iam.v1.PolicyOrBuilder> - iamPolicyBuilder_; + com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> iamPolicyBuilder_; /** - * - * *
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
          * 
    * * .google.iam.v1.Policy iam_policy = 4; - * * @return Whether the iamPolicy field is set. */ public boolean hasIamPolicy() { return iamPolicyBuilder_ != null || iamPolicy_ != null; } /** - * - * *
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
          * 
    * * .google.iam.v1.Policy iam_policy = 4; - * * @return The iamPolicy. */ public com.google.iam.v1.Policy getIamPolicy() { @@ -1808,8 +1569,6 @@ public com.google.iam.v1.Policy getIamPolicy() { } } /** - * - * *
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1831,8 +1590,6 @@ public Builder setIamPolicy(com.google.iam.v1.Policy value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1840,7 +1597,8 @@ public Builder setIamPolicy(com.google.iam.v1.Policy value) {
          *
          * .google.iam.v1.Policy iam_policy = 4;
          */
    -    public Builder setIamPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
    +    public Builder setIamPolicy(
    +        com.google.iam.v1.Policy.Builder builderForValue) {
           if (iamPolicyBuilder_ == null) {
             iamPolicy_ = builderForValue.build();
             onChanged();
    @@ -1851,8 +1609,6 @@ public Builder setIamPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1864,7 +1620,7 @@ public Builder mergeIamPolicy(com.google.iam.v1.Policy value) {
           if (iamPolicyBuilder_ == null) {
             if (iamPolicy_ != null) {
               iamPolicy_ =
    -              com.google.iam.v1.Policy.newBuilder(iamPolicy_).mergeFrom(value).buildPartial();
    +            com.google.iam.v1.Policy.newBuilder(iamPolicy_).mergeFrom(value).buildPartial();
             } else {
               iamPolicy_ = value;
             }
    @@ -1876,8 +1632,6 @@ public Builder mergeIamPolicy(com.google.iam.v1.Policy value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1897,8 +1651,6 @@ public Builder clearIamPolicy() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1907,13 +1659,11 @@ public Builder clearIamPolicy() {
          * .google.iam.v1.Policy iam_policy = 4;
          */
         public com.google.iam.v1.Policy.Builder getIamPolicyBuilder() {
    -
    +      
           onChanged();
           return getIamPolicyFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1925,12 +1675,11 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
           if (iamPolicyBuilder_ != null) {
             return iamPolicyBuilder_.getMessageOrBuilder();
           } else {
    -        return iamPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_;
    +        return iamPolicy_ == null ?
    +            com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_;
           }
         }
         /**
    -     *
    -     *
          * 
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1939,41 +1688,32 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
          * .google.iam.v1.Policy iam_policy = 4;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.iam.v1.Policy,
    -            com.google.iam.v1.Policy.Builder,
    -            com.google.iam.v1.PolicyOrBuilder>
    +        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> 
             getIamPolicyFieldBuilder() {
           if (iamPolicyBuilder_ == null) {
    -        iamPolicyBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.iam.v1.Policy,
    -                com.google.iam.v1.Policy.Builder,
    -                com.google.iam.v1.PolicyOrBuilder>(
    -                getIamPolicy(), getParentForChildren(), isClean());
    +        iamPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>(
    +                getIamPolicy(),
    +                getParentForChildren(),
    +                isClean());
             iamPolicy_ = null;
           }
           return iamPolicyBuilder_;
         }
     
         private java.util.List orgPolicy_ =
    -        java.util.Collections.emptyList();
    -
    +      java.util.Collections.emptyList();
         private void ensureOrgPolicyIsMutable() {
           if (!((bitField0_ & 0x00000001) != 0)) {
             orgPolicy_ = new java.util.ArrayList(orgPolicy_);
             bitField0_ |= 0x00000001;
    -      }
    +       }
         }
     
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.orgpolicy.v1.Policy,
    -            com.google.cloud.orgpolicy.v1.Policy.Builder,
    -            com.google.cloud.orgpolicy.v1.PolicyOrBuilder>
    -        orgPolicyBuilder_;
    +        com.google.cloud.orgpolicy.v1.Policy, com.google.cloud.orgpolicy.v1.Policy.Builder, com.google.cloud.orgpolicy.v1.PolicyOrBuilder> orgPolicyBuilder_;
     
         /**
    -     *
    -     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -1990,8 +1730,6 @@ public java.util.List getOrgPolicyList() {
           }
         }
         /**
    -     *
    -     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -2008,8 +1746,6 @@ public int getOrgPolicyCount() {
           }
         }
         /**
    -     *
    -     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -2026,8 +1762,6 @@ public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) {
           }
         }
         /**
    -     *
    -     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -2036,7 +1770,8 @@ public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) {
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public Builder setOrgPolicy(int index, com.google.cloud.orgpolicy.v1.Policy value) {
    +    public Builder setOrgPolicy(
    +        int index, com.google.cloud.orgpolicy.v1.Policy value) {
           if (orgPolicyBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -2050,8 +1785,6 @@ public Builder setOrgPolicy(int index, com.google.cloud.orgpolicy.v1.Policy valu
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -2072,8 +1805,6 @@ public Builder setOrgPolicy(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -2096,8 +1827,6 @@ public Builder addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -2106,7 +1835,8 @@ public Builder addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy value) {
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public Builder addOrgPolicy(int index, com.google.cloud.orgpolicy.v1.Policy value) {
    +    public Builder addOrgPolicy(
    +        int index, com.google.cloud.orgpolicy.v1.Policy value) {
           if (orgPolicyBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -2120,8 +1850,6 @@ public Builder addOrgPolicy(int index, com.google.cloud.orgpolicy.v1.Policy valu
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -2130,7 +1858,8 @@ public Builder addOrgPolicy(int index, com.google.cloud.orgpolicy.v1.Policy valu
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public Builder addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy.Builder builderForValue) {
    +    public Builder addOrgPolicy(
    +        com.google.cloud.orgpolicy.v1.Policy.Builder builderForValue) {
           if (orgPolicyBuilder_ == null) {
             ensureOrgPolicyIsMutable();
             orgPolicy_.add(builderForValue.build());
    @@ -2141,8 +1870,6 @@ public Builder addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy.Builder builder
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -2163,8 +1890,6 @@ public Builder addOrgPolicy(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -2177,7 +1902,8 @@ public Builder addAllOrgPolicy(
             java.lang.Iterable values) {
           if (orgPolicyBuilder_ == null) {
             ensureOrgPolicyIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, orgPolicy_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    +            values, orgPolicy_);
             onChanged();
           } else {
             orgPolicyBuilder_.addAllMessages(values);
    @@ -2185,8 +1911,6 @@ public Builder addAllOrgPolicy(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -2206,8 +1930,6 @@ public Builder clearOrgPolicy() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -2227,8 +1949,6 @@ public Builder removeOrgPolicy(int index) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -2237,12 +1957,11 @@ public Builder removeOrgPolicy(int index) {
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public com.google.cloud.orgpolicy.v1.Policy.Builder getOrgPolicyBuilder(int index) {
    +    public com.google.cloud.orgpolicy.v1.Policy.Builder getOrgPolicyBuilder(
    +        int index) {
           return getOrgPolicyFieldBuilder().getBuilder(index);
         }
         /**
    -     *
    -     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -2251,16 +1970,14 @@ public com.google.cloud.orgpolicy.v1.Policy.Builder getOrgPolicyBuilder(int inde
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int index) {
    +    public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
    +        int index) {
           if (orgPolicyBuilder_ == null) {
    -        return orgPolicy_.get(index);
    -      } else {
    +        return orgPolicy_.get(index);  } else {
             return orgPolicyBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    -     *
    -     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -2269,8 +1986,8 @@ public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int i
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public java.util.List
    -        getOrgPolicyOrBuilderList() {
    +    public java.util.List 
    +         getOrgPolicyOrBuilderList() {
           if (orgPolicyBuilder_ != null) {
             return orgPolicyBuilder_.getMessageOrBuilderList();
           } else {
    @@ -2278,8 +1995,6 @@ public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int i
           }
         }
         /**
    -     *
    -     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -2289,12 +2004,10 @@ public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int i
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
         public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder() {
    -      return getOrgPolicyFieldBuilder()
    -          .addBuilder(com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance());
    +      return getOrgPolicyFieldBuilder().addBuilder(
    +          com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -2303,13 +2016,12 @@ public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder() {
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder(int index) {
    -      return getOrgPolicyFieldBuilder()
    -          .addBuilder(index, com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance());
    +    public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder(
    +        int index) {
    +      return getOrgPolicyFieldBuilder().addBuilder(
    +          index, com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -2318,35 +2030,29 @@ public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder(int inde
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public java.util.List getOrgPolicyBuilderList() {
    +    public java.util.List 
    +         getOrgPolicyBuilderList() {
           return getOrgPolicyFieldBuilder().getBuilderList();
         }
    -
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.orgpolicy.v1.Policy,
    -            com.google.cloud.orgpolicy.v1.Policy.Builder,
    -            com.google.cloud.orgpolicy.v1.PolicyOrBuilder>
    +        com.google.cloud.orgpolicy.v1.Policy, com.google.cloud.orgpolicy.v1.Policy.Builder, com.google.cloud.orgpolicy.v1.PolicyOrBuilder> 
             getOrgPolicyFieldBuilder() {
           if (orgPolicyBuilder_ == null) {
    -        orgPolicyBuilder_ =
    -            new com.google.protobuf.RepeatedFieldBuilderV3<
    -                com.google.cloud.orgpolicy.v1.Policy,
    -                com.google.cloud.orgpolicy.v1.Policy.Builder,
    -                com.google.cloud.orgpolicy.v1.PolicyOrBuilder>(
    -                orgPolicy_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
    +        orgPolicyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    +            com.google.cloud.orgpolicy.v1.Policy, com.google.cloud.orgpolicy.v1.Policy.Builder, com.google.cloud.orgpolicy.v1.PolicyOrBuilder>(
    +                orgPolicy_,
    +                ((bitField0_ & 0x00000001) != 0),
    +                getParentForChildren(),
    +                isClean());
             orgPolicy_ = null;
           }
           return orgPolicyBuilder_;
         }
     
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.AccessPolicy,
    -            com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder,
    -            com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>
    -        accessPolicyBuilder_;
    +        com.google.identity.accesscontextmanager.v1.AccessPolicy, com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder, com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder> accessPolicyBuilder_;
         /**
          * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    -     *
          * @return Whether the accessPolicy field is set.
          */
         @java.lang.Override
    @@ -2355,7 +2061,6 @@ public boolean hasAccessPolicy() {
         }
         /**
          * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    -     *
          * @return The accessPolicy.
          */
         @java.lang.Override
    @@ -2372,7 +2077,9 @@ public com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy(
             return com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance();
           }
         }
    -    /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */
    +    /**
    +     * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    +     */
         public Builder setAccessPolicy(com.google.identity.accesscontextmanager.v1.AccessPolicy value) {
           if (accessPolicyBuilder_ == null) {
             if (value == null) {
    @@ -2386,7 +2093,9 @@ public Builder setAccessPolicy(com.google.identity.accesscontextmanager.v1.Acces
           accessContextPolicyCase_ = 7;
           return this;
         }
    -    /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */
    +    /**
    +     * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    +     */
         public Builder setAccessPolicy(
             com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder builderForValue) {
           if (accessPolicyBuilder_ == null) {
    @@ -2398,19 +2107,15 @@ public Builder setAccessPolicy(
           accessContextPolicyCase_ = 7;
           return this;
         }
    -    /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */
    -    public Builder mergeAccessPolicy(
    -        com.google.identity.accesscontextmanager.v1.AccessPolicy value) {
    +    /**
    +     * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    +     */
    +    public Builder mergeAccessPolicy(com.google.identity.accesscontextmanager.v1.AccessPolicy value) {
           if (accessPolicyBuilder_ == null) {
    -        if (accessContextPolicyCase_ == 7
    -            && accessContextPolicy_
    -                != com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance()) {
    -          accessContextPolicy_ =
    -              com.google.identity.accesscontextmanager.v1.AccessPolicy.newBuilder(
    -                      (com.google.identity.accesscontextmanager.v1.AccessPolicy)
    -                          accessContextPolicy_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +        if (accessContextPolicyCase_ == 7 &&
    +            accessContextPolicy_ != com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance()) {
    +          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.AccessPolicy.newBuilder((com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_)
    +              .mergeFrom(value).buildPartial();
             } else {
               accessContextPolicy_ = value;
             }
    @@ -2425,7 +2130,9 @@ public Builder mergeAccessPolicy(
           accessContextPolicyCase_ = 7;
           return this;
         }
    -    /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */
    +    /**
    +     * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    +     */
         public Builder clearAccessPolicy() {
           if (accessPolicyBuilder_ == null) {
             if (accessContextPolicyCase_ == 7) {
    @@ -2442,15 +2149,17 @@ public Builder clearAccessPolicy() {
           }
           return this;
         }
    -    /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */
    -    public com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder
    -        getAccessPolicyBuilder() {
    +    /**
    +     * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    +     */
    +    public com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder getAccessPolicyBuilder() {
           return getAccessPolicyFieldBuilder().getBuilder();
         }
    -    /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */
    +    /**
    +     * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    +     */
         @java.lang.Override
    -    public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder
    -        getAccessPolicyOrBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAccessPolicyOrBuilder() {
           if ((accessContextPolicyCase_ == 7) && (accessPolicyBuilder_ != null)) {
             return accessPolicyBuilder_.getMessageOrBuilder();
           } else {
    @@ -2460,41 +2169,32 @@ public Builder clearAccessPolicy() {
             return com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance();
           }
         }
    -    /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */
    +    /**
    +     * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    +     */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.AccessPolicy,
    -            com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder,
    -            com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>
    +        com.google.identity.accesscontextmanager.v1.AccessPolicy, com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder, com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder> 
             getAccessPolicyFieldBuilder() {
           if (accessPolicyBuilder_ == null) {
             if (!(accessContextPolicyCase_ == 7)) {
    -          accessContextPolicy_ =
    -              com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance();
    +          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance();
             }
    -        accessPolicyBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.identity.accesscontextmanager.v1.AccessPolicy,
    -                com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder,
    -                com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>(
    +        accessPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.identity.accesscontextmanager.v1.AccessPolicy, com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder, com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>(
                     (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_,
                     getParentForChildren(),
                     isClean());
             accessContextPolicy_ = null;
           }
           accessContextPolicyCase_ = 7;
    -      onChanged();
    -      ;
    +      onChanged();;
           return accessPolicyBuilder_;
         }
     
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.AccessLevel,
    -            com.google.identity.accesscontextmanager.v1.AccessLevel.Builder,
    -            com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>
    -        accessLevelBuilder_;
    +        com.google.identity.accesscontextmanager.v1.AccessLevel, com.google.identity.accesscontextmanager.v1.AccessLevel.Builder, com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder> accessLevelBuilder_;
         /**
          * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    -     *
          * @return Whether the accessLevel field is set.
          */
         @java.lang.Override
    @@ -2503,7 +2203,6 @@ public boolean hasAccessLevel() {
         }
         /**
          * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    -     *
          * @return The accessLevel.
          */
         @java.lang.Override
    @@ -2520,7 +2219,9 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel()
             return com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance();
           }
         }
    -    /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */
    +    /**
    +     * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    +     */
         public Builder setAccessLevel(com.google.identity.accesscontextmanager.v1.AccessLevel value) {
           if (accessLevelBuilder_ == null) {
             if (value == null) {
    @@ -2534,7 +2235,9 @@ public Builder setAccessLevel(com.google.identity.accesscontextmanager.v1.Access
           accessContextPolicyCase_ = 8;
           return this;
         }
    -    /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */
    +    /**
    +     * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    +     */
         public Builder setAccessLevel(
             com.google.identity.accesscontextmanager.v1.AccessLevel.Builder builderForValue) {
           if (accessLevelBuilder_ == null) {
    @@ -2546,18 +2249,15 @@ public Builder setAccessLevel(
           accessContextPolicyCase_ = 8;
           return this;
         }
    -    /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */
    +    /**
    +     * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    +     */
         public Builder mergeAccessLevel(com.google.identity.accesscontextmanager.v1.AccessLevel value) {
           if (accessLevelBuilder_ == null) {
    -        if (accessContextPolicyCase_ == 8
    -            && accessContextPolicy_
    -                != com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance()) {
    -          accessContextPolicy_ =
    -              com.google.identity.accesscontextmanager.v1.AccessLevel.newBuilder(
    -                      (com.google.identity.accesscontextmanager.v1.AccessLevel)
    -                          accessContextPolicy_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +        if (accessContextPolicyCase_ == 8 &&
    +            accessContextPolicy_ != com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance()) {
    +          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.AccessLevel.newBuilder((com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_)
    +              .mergeFrom(value).buildPartial();
             } else {
               accessContextPolicy_ = value;
             }
    @@ -2572,7 +2272,9 @@ public Builder mergeAccessLevel(com.google.identity.accesscontextmanager.v1.Acce
           accessContextPolicyCase_ = 8;
           return this;
         }
    -    /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */
    +    /**
    +     * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    +     */
         public Builder clearAccessLevel() {
           if (accessLevelBuilder_ == null) {
             if (accessContextPolicyCase_ == 8) {
    @@ -2589,14 +2291,17 @@ public Builder clearAccessLevel() {
           }
           return this;
         }
    -    /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */
    +    /**
    +     * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    +     */
         public com.google.identity.accesscontextmanager.v1.AccessLevel.Builder getAccessLevelBuilder() {
           return getAccessLevelFieldBuilder().getBuilder();
         }
    -    /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */
    +    /**
    +     * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    +     */
         @java.lang.Override
    -    public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder
    -        getAccessLevelOrBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAccessLevelOrBuilder() {
           if ((accessContextPolicyCase_ == 8) && (accessLevelBuilder_ != null)) {
             return accessLevelBuilder_.getMessageOrBuilder();
           } else {
    @@ -2606,41 +2311,32 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel.Builder getAccess
             return com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance();
           }
         }
    -    /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */
    +    /**
    +     * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    +     */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.AccessLevel,
    -            com.google.identity.accesscontextmanager.v1.AccessLevel.Builder,
    -            com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>
    +        com.google.identity.accesscontextmanager.v1.AccessLevel, com.google.identity.accesscontextmanager.v1.AccessLevel.Builder, com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder> 
             getAccessLevelFieldBuilder() {
           if (accessLevelBuilder_ == null) {
             if (!(accessContextPolicyCase_ == 8)) {
    -          accessContextPolicy_ =
    -              com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance();
    +          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance();
             }
    -        accessLevelBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.identity.accesscontextmanager.v1.AccessLevel,
    -                com.google.identity.accesscontextmanager.v1.AccessLevel.Builder,
    -                com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>(
    +        accessLevelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.identity.accesscontextmanager.v1.AccessLevel, com.google.identity.accesscontextmanager.v1.AccessLevel.Builder, com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>(
                     (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_,
                     getParentForChildren(),
                     isClean());
             accessContextPolicy_ = null;
           }
           accessContextPolicyCase_ = 8;
    -      onChanged();
    -      ;
    +      onChanged();;
           return accessLevelBuilder_;
         }
     
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.ServicePerimeter,
    -            com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder,
    -            com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>
    -        servicePerimeterBuilder_;
    +        com.google.identity.accesscontextmanager.v1.ServicePerimeter, com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder, com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder> servicePerimeterBuilder_;
         /**
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
    -     *
          * @return Whether the servicePerimeter field is set.
          */
         @java.lang.Override
    @@ -2649,15 +2345,13 @@ public boolean hasServicePerimeter() {
         }
         /**
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
    -     *
          * @return The servicePerimeter.
          */
         @java.lang.Override
         public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter() {
           if (servicePerimeterBuilder_ == null) {
             if (accessContextPolicyCase_ == 9) {
    -          return (com.google.identity.accesscontextmanager.v1.ServicePerimeter)
    -              accessContextPolicy_;
    +          return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_;
             }
             return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
           } else {
    @@ -2670,8 +2364,7 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePe
         /**
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
    -    public Builder setServicePerimeter(
    -        com.google.identity.accesscontextmanager.v1.ServicePerimeter value) {
    +    public Builder setServicePerimeter(com.google.identity.accesscontextmanager.v1.ServicePerimeter value) {
           if (servicePerimeterBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -2701,19 +2394,12 @@ public Builder setServicePerimeter(
         /**
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
    -    public Builder mergeServicePerimeter(
    -        com.google.identity.accesscontextmanager.v1.ServicePerimeter value) {
    +    public Builder mergeServicePerimeter(com.google.identity.accesscontextmanager.v1.ServicePerimeter value) {
           if (servicePerimeterBuilder_ == null) {
    -        if (accessContextPolicyCase_ == 9
    -            && accessContextPolicy_
    -                != com.google.identity.accesscontextmanager.v1.ServicePerimeter
    -                    .getDefaultInstance()) {
    -          accessContextPolicy_ =
    -              com.google.identity.accesscontextmanager.v1.ServicePerimeter.newBuilder(
    -                      (com.google.identity.accesscontextmanager.v1.ServicePerimeter)
    -                          accessContextPolicy_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +        if (accessContextPolicyCase_ == 9 &&
    +            accessContextPolicy_ != com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance()) {
    +          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.ServicePerimeter.newBuilder((com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_)
    +              .mergeFrom(value).buildPartial();
             } else {
               accessContextPolicy_ = value;
             }
    @@ -2750,22 +2436,19 @@ public Builder clearServicePerimeter() {
         /**
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
    -    public com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder
    -        getServicePerimeterBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder getServicePerimeterBuilder() {
           return getServicePerimeterFieldBuilder().getBuilder();
         }
         /**
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
         @java.lang.Override
    -    public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder
    -        getServicePerimeterOrBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder getServicePerimeterOrBuilder() {
           if ((accessContextPolicyCase_ == 9) && (servicePerimeterBuilder_ != null)) {
             return servicePerimeterBuilder_.getMessageOrBuilder();
           } else {
             if (accessContextPolicyCase_ == 9) {
    -          return (com.google.identity.accesscontextmanager.v1.ServicePerimeter)
    -              accessContextPolicy_;
    +          return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_;
             }
             return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
           }
    @@ -2774,43 +2457,32 @@ public Builder clearServicePerimeter() {
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.ServicePerimeter,
    -            com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder,
    -            com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>
    +        com.google.identity.accesscontextmanager.v1.ServicePerimeter, com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder, com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder> 
             getServicePerimeterFieldBuilder() {
           if (servicePerimeterBuilder_ == null) {
             if (!(accessContextPolicyCase_ == 9)) {
    -          accessContextPolicy_ =
    -              com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
    +          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
             }
    -        servicePerimeterBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.identity.accesscontextmanager.v1.ServicePerimeter,
    -                com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder,
    -                com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>(
    +        servicePerimeterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.identity.accesscontextmanager.v1.ServicePerimeter, com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder, com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>(
                     (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_,
                     getParentForChildren(),
                     isClean());
             accessContextPolicy_ = null;
           }
           accessContextPolicyCase_ = 9;
    -      onChanged();
    -      ;
    +      onChanged();;
           return servicePerimeterBuilder_;
         }
     
    -    private com.google.protobuf.LazyStringList ancestors_ =
    -        com.google.protobuf.LazyStringArrayList.EMPTY;
    -
    +    private com.google.protobuf.LazyStringList ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY;
         private void ensureAncestorsIsMutable() {
           if (!((bitField0_ & 0x00000002) != 0)) {
             ancestors_ = new com.google.protobuf.LazyStringArrayList(ancestors_);
             bitField0_ |= 0x00000002;
    -      }
    +       }
         }
         /**
    -     *
    -     *
          * 
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -2820,15 +2492,13 @@ private void ensureAncestorsIsMutable() {
          * 
    * * repeated string ancestors = 10; - * * @return A list containing the ancestors. */ - public com.google.protobuf.ProtocolStringList getAncestorsList() { + public com.google.protobuf.ProtocolStringList + getAncestorsList() { return ancestors_.getUnmodifiableView(); } /** - * - * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -2838,15 +2508,12 @@ public com.google.protobuf.ProtocolStringList getAncestorsList() {
          * 
    * * repeated string ancestors = 10; - * * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); } /** - * - * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -2856,7 +2523,6 @@ public int getAncestorsCount() {
          * 
    * * repeated string ancestors = 10; - * * @param index The index of the element to return. * @return The ancestors at the given index. */ @@ -2864,8 +2530,6 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** - * - * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -2875,16 +2539,14 @@ public java.lang.String getAncestors(int index) {
          * 
    * * repeated string ancestors = 10; - * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - public com.google.protobuf.ByteString getAncestorsBytes(int index) { + public com.google.protobuf.ByteString + getAncestorsBytes(int index) { return ancestors_.getByteString(index); } /** - * - * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -2894,23 +2556,21 @@ public com.google.protobuf.ByteString getAncestorsBytes(int index) {
          * 
    * * repeated string ancestors = 10; - * * @param index The index to set the value at. * @param value The ancestors to set. * @return This builder for chaining. */ - public Builder setAncestors(int index, java.lang.String value) { + public Builder setAncestors( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAncestorsIsMutable(); + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); ancestors_.set(index, value); onChanged(); return this; } /** - * - * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -2920,22 +2580,20 @@ public Builder setAncestors(int index, java.lang.String value) {
          * 
    * * repeated string ancestors = 10; - * * @param value The ancestors to add. * @return This builder for chaining. */ - public Builder addAncestors(java.lang.String value) { + public Builder addAncestors( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAncestorsIsMutable(); + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); return this; } /** - * - * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -2945,19 +2603,18 @@ public Builder addAncestors(java.lang.String value) {
          * 
    * * repeated string ancestors = 10; - * * @param values The ancestors to add. * @return This builder for chaining. */ - public Builder addAllAncestors(java.lang.Iterable values) { + public Builder addAllAncestors( + java.lang.Iterable values) { ensureAncestorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ancestors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ancestors_); onChanged(); return this; } /** - * - * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -2967,7 +2624,6 @@ public Builder addAllAncestors(java.lang.Iterable values) {
          * 
    * * repeated string ancestors = 10; - * * @return This builder for chaining. */ public Builder clearAncestors() { @@ -2977,8 +2633,6 @@ public Builder clearAncestors() { return this; } /** - * - * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -2988,23 +2642,23 @@ public Builder clearAncestors() {
          * 
    * * repeated string ancestors = 10; - * * @param value The bytes of the ancestors to add. * @return This builder for chaining. */ - public Builder addAncestorsBytes(com.google.protobuf.ByteString value) { + public Builder addAncestorsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3014,12 +2668,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p5beta1.Asset) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p5beta1.Asset) private static final com.google.cloud.asset.v1p5beta1.Asset DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p5beta1.Asset(); } @@ -3028,16 +2682,27 @@ public static com.google.cloud.asset.v1p5beta1.Asset getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Asset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Asset(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Asset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3052,4 +2717,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p5beta1.Asset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetOrBuilder.java b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetOrBuilder.java similarity index 84% rename from java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetOrBuilder.java rename to owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetOrBuilder.java index 7deffbed1200..c54c20d16b1b 100644 --- a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p5beta1/assets.proto package com.google.cloud.asset.v1p5beta1; -public interface AssetOrBuilder - extends +public interface AssetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p5beta1.Asset) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The full name of the asset. For example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -35,13 +17,10 @@ public interface AssetOrBuilder
        * 
    * * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
        * The full name of the asset. For example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -51,63 +30,50 @@ public interface AssetOrBuilder
        * 
    * * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
        * Type of the asset. Example: "compute.googleapis.com/Disk".
        * 
    * * string asset_type = 2; - * * @return The assetType. */ java.lang.String getAssetType(); /** - * - * *
        * Type of the asset. Example: "compute.googleapis.com/Disk".
        * 
    * * string asset_type = 2; - * * @return The bytes for assetType. */ - com.google.protobuf.ByteString getAssetTypeBytes(); + com.google.protobuf.ByteString + getAssetTypeBytes(); /** - * - * *
        * Representation of the resource.
        * 
    * * .google.cloud.asset.v1p5beta1.Resource resource = 3; - * * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
        * Representation of the resource.
        * 
    * * .google.cloud.asset.v1p5beta1.Resource resource = 3; - * * @return The resource. */ com.google.cloud.asset.v1p5beta1.Resource getResource(); /** - * - * *
        * Representation of the resource.
        * 
    @@ -117,34 +83,26 @@ public interface AssetOrBuilder com.google.cloud.asset.v1p5beta1.ResourceOrBuilder getResourceOrBuilder(); /** - * - * *
        * Representation of the actual Cloud IAM policy set on a cloud resource. For
        * each resource, there must be at most one Cloud IAM policy set on it.
        * 
    * * .google.iam.v1.Policy iam_policy = 4; - * * @return Whether the iamPolicy field is set. */ boolean hasIamPolicy(); /** - * - * *
        * Representation of the actual Cloud IAM policy set on a cloud resource. For
        * each resource, there must be at most one Cloud IAM policy set on it.
        * 
    * * .google.iam.v1.Policy iam_policy = 4; - * * @return The iamPolicy. */ com.google.iam.v1.Policy getIamPolicy(); /** - * - * *
        * Representation of the actual Cloud IAM policy set on a cloud resource. For
        * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -155,8 +113,6 @@ public interface AssetOrBuilder
       com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * Representation of the Cloud Organization Policy set on an asset. For each
        * asset, there could be multiple Organization policies with different
    @@ -165,10 +121,9 @@ public interface AssetOrBuilder
        *
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
    -  java.util.List getOrgPolicyList();
    +  java.util.List 
    +      getOrgPolicyList();
       /**
    -   *
    -   *
        * 
        * Representation of the Cloud Organization Policy set on an asset. For each
        * asset, there could be multiple Organization policies with different
    @@ -179,8 +134,6 @@ public interface AssetOrBuilder
        */
       com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index);
       /**
    -   *
    -   *
        * 
        * Representation of the Cloud Organization Policy set on an asset. For each
        * asset, there could be multiple Organization policies with different
    @@ -191,8 +144,6 @@ public interface AssetOrBuilder
        */
       int getOrgPolicyCount();
       /**
    -   *
    -   *
        * 
        * Representation of the Cloud Organization Policy set on an asset. For each
        * asset, there could be multiple Organization policies with different
    @@ -201,11 +152,9 @@ public interface AssetOrBuilder
        *
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
    -  java.util.List
    +  java.util.List 
           getOrgPolicyOrBuilderList();
       /**
    -   *
    -   *
        * 
        * Representation of the Cloud Organization Policy set on an asset. For each
        * asset, there could be multiple Organization policies with different
    @@ -214,59 +163,55 @@ public interface AssetOrBuilder
        *
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
    -  com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int index);
    +  com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
    +      int index);
     
       /**
        * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    -   *
        * @return Whether the accessPolicy field is set.
        */
       boolean hasAccessPolicy();
       /**
        * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    -   *
        * @return The accessPolicy.
        */
       com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy();
    -  /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */
    +  /**
    +   * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    +   */
       com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAccessPolicyOrBuilder();
     
       /**
        * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    -   *
        * @return Whether the accessLevel field is set.
        */
       boolean hasAccessLevel();
       /**
        * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    -   *
        * @return The accessLevel.
        */
       com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel();
    -  /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */
    +  /**
    +   * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    +   */
       com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAccessLevelOrBuilder();
     
       /**
        * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
    -   *
        * @return Whether the servicePerimeter field is set.
        */
       boolean hasServicePerimeter();
       /**
        * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
    -   *
        * @return The servicePerimeter.
        */
       com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter();
       /**
        * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
        */
    -  com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder
    -      getServicePerimeterOrBuilder();
    +  com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder getServicePerimeterOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -276,13 +221,11 @@ public interface AssetOrBuilder
        * 
    * * repeated string ancestors = 10; - * * @return A list containing the ancestors. */ - java.util.List getAncestorsList(); + java.util.List + getAncestorsList(); /** - * - * *
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -292,13 +235,10 @@ public interface AssetOrBuilder
        * 
    * * repeated string ancestors = 10; - * * @return The count of ancestors. */ int getAncestorsCount(); /** - * - * *
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -308,14 +248,11 @@ public interface AssetOrBuilder
        * 
    * * repeated string ancestors = 10; - * * @param index The index of the element to return. * @return The ancestors at the given index. */ java.lang.String getAncestors(int index); /** - * - * *
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -325,12 +262,11 @@ public interface AssetOrBuilder
        * 
    * * repeated string ancestors = 10; - * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - com.google.protobuf.ByteString getAncestorsBytes(int index); + com.google.protobuf.ByteString + getAncestorsBytes(int index); - public com.google.cloud.asset.v1p5beta1.Asset.AccessContextPolicyCase - getAccessContextPolicyCase(); + public com.google.cloud.asset.v1p5beta1.Asset.AccessContextPolicyCase getAccessContextPolicyCase(); } diff --git a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetProto.java b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetProto.java new file mode 100644 index 000000000000..cab08c9049fa --- /dev/null +++ b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetProto.java @@ -0,0 +1,107 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1p5beta1/assets.proto + +package com.google.cloud.asset.v1p5beta1; + +public final class AssetProto { + private AssetProto() {} + 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_asset_v1p5beta1_Asset_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p5beta1_Asset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p5beta1_Resource_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/asset/v1p5beta1/assets.pr" + + "oto\022\034google.cloud.asset.v1p5beta1\032\031googl" + + "e/api/resource.proto\032)google/cloud/orgpo" + + "licy/v1/orgpolicy.proto\032\032google/iam/v1/p" + + "olicy.proto\032:google/identity/accessconte" + + "xtmanager/v1/access_level.proto\032;google/" + + "identity/accesscontextmanager/v1/access_" + + "policy.proto\032?google/identity/accesscont" + + "extmanager/v1/service_perimeter.proto\032\034g" + + "oogle/protobuf/struct.proto\"\220\004\n\005Asset\022\014\n" + + "\004name\030\001 \001(\t\022\022\n\nasset_type\030\002 \001(\t\0228\n\010resou" + + "rce\030\003 \001(\0132&.google.cloud.asset.v1p5beta1" + + ".Resource\022)\n\niam_policy\030\004 \001(\0132\025.google.i" + + "am.v1.Policy\0225\n\norg_policy\030\006 \003(\0132!.googl" + + "e.cloud.orgpolicy.v1.Policy\022N\n\raccess_po" + + "licy\030\007 \001(\01325.google.identity.accessconte" + + "xtmanager.v1.AccessPolicyH\000\022L\n\014access_le" + + "vel\030\010 \001(\01324.google.identity.accesscontex" + + "tmanager.v1.AccessLevelH\000\022V\n\021service_per" + + "imeter\030\t \001(\01329.google.identity.accesscon" + + "textmanager.v1.ServicePerimeterH\000\022\021\n\tanc" + + "estors\030\n \003(\t:\'\352A$\n\037cloudasset.googleapis" + + ".com/Asset\022\001*B\027\n\025access_context_policy\"\240" + + "\001\n\010Resource\022\017\n\007version\030\001 \001(\t\022\036\n\026discover" + + "y_document_uri\030\002 \001(\t\022\026\n\016discovery_name\030\003" + + " \001(\t\022\024\n\014resource_url\030\004 \001(\t\022\016\n\006parent\030\005 \001" + + "(\t\022%\n\004data\030\006 \001(\0132\027.google.protobuf.Struc" + + "tB\264\001\n com.google.cloud.asset.v1p5beta1B\n" + + "AssetProtoP\001ZAgoogle.golang.org/genproto" + + "/googleapis/cloud/asset/v1p5beta1;asset\370" + + "\001\001\252\002\034Google.Cloud.Asset.V1p5Beta1\312\002\034Goog" + + "le\\Cloud\\Asset\\V1p5beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(), + com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(), + com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_asset_v1p5beta1_Asset_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_asset_v1p5beta1_Asset_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p5beta1_Asset_descriptor, + new java.lang.String[] { "Name", "AssetType", "Resource", "IamPolicy", "OrgPolicy", "AccessPolicy", "AccessLevel", "ServicePerimeter", "Ancestors", "AccessContextPolicy", }); + internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_asset_v1p5beta1_Resource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor, + new java.lang.String[] { "Version", "DiscoveryDocumentUri", "DiscoveryName", "ResourceUrl", "Parent", "Data", }); + 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.orgpolicy.v1.OrgPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(); + com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(); + com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceProto.java b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceProto.java new file mode 100644 index 000000000000..444c8baba5e8 --- /dev/null +++ b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceProto.java @@ -0,0 +1,104 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1p5beta1/asset_service.proto + +package com.google.cloud.asset.v1p5beta1; + +public final class AssetServiceProto { + private AssetServiceProto() {} + 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_asset_v1p5beta1_ListAssetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/asset/v1p5beta1/asset_ser" + + "vice.proto\022\034google.cloud.asset.v1p5beta1" + + "\032\034google/api/annotations.proto\032\027google/a" + + "pi/client.proto\032\037google/api/field_behavi" + + "or.proto\032)google/cloud/asset/v1p5beta1/a" + + "ssets.proto\032\037google/protobuf/timestamp.p" + + "roto\"\324\001\n\021ListAssetsRequest\022\023\n\006parent\030\001 \001" + + "(\tB\003\340A\002\022-\n\tread_time\030\002 \001(\0132\032.google.prot" + + "obuf.Timestamp\022\023\n\013asset_types\030\003 \003(\t\022?\n\014c" + + "ontent_type\030\004 \001(\0162).google.cloud.asset.v" + + "1p5beta1.ContentType\022\021\n\tpage_size\030\005 \001(\005\022" + + "\022\n\npage_token\030\006 \001(\t\"\221\001\n\022ListAssetsRespon" + + "se\022-\n\tread_time\030\001 \001(\0132\032.google.protobuf." + + "Timestamp\0223\n\006assets\030\002 \003(\0132#.google.cloud" + + ".asset.v1p5beta1.Asset\022\027\n\017next_page_toke" + + "n\030\003 \001(\t*l\n\013ContentType\022\034\n\030CONTENT_TYPE_U" + + "NSPECIFIED\020\000\022\014\n\010RESOURCE\020\001\022\016\n\nIAM_POLICY" + + "\020\002\022\016\n\nORG_POLICY\020\004\022\021\n\rACCESS_POLICY\020\0052\367\001" + + "\n\014AssetService\022\227\001\n\nListAssets\022/.google.c" + + "loud.asset.v1p5beta1.ListAssetsRequest\0320" + + ".google.cloud.asset.v1p5beta1.ListAssets" + + "Response\"&\202\323\344\223\002 \022\036/v1p5beta1/{parent=*/*" + + "}/assets\032M\312A\031cloudasset.googleapis.com\322A" + + ".https://www.googleapis.com/auth/cloud-p" + + "latformB\270\001\n com.google.cloud.asset.v1p5b" + + "eta1B\021AssetServiceProtoP\001ZAgoogle.golang" + + ".org/genproto/googleapis/cloud/asset/v1p" + + "5beta1;asset\252\002\034Google.Cloud.Asset.V1P5Be" + + "ta1\312\002\034Google\\Cloud\\Asset\\V1p5beta1b\006prot" + + "o3" + }; + 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.cloud.asset.v1p5beta1.AssetProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_descriptor, + new java.lang.String[] { "Parent", "ReadTime", "AssetTypes", "ContentType", "PageSize", "PageToken", }); + internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor, + new java.lang.String[] { "ReadTime", "Assets", "NextPageToken", }); + 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.oauthScopes); + 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.cloud.asset.v1p5beta1.AssetProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ContentType.java b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ContentType.java similarity index 69% rename from java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ContentType.java rename to owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ContentType.java index fed8739eb913..edc9ca3e0510 100644 --- a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ContentType.java +++ b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ContentType.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p5beta1/asset_service.proto package com.google.cloud.asset.v1p5beta1; /** - * - * *
      * Asset content type.
      * 
    * * Protobuf enum {@code google.cloud.asset.v1p5beta1.ContentType} */ -public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { +public enum ContentType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unspecified content type.
        * 
    @@ -39,8 +21,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ CONTENT_TYPE_UNSPECIFIED(0), /** - * - * *
        * Resource metadata.
        * 
    @@ -49,8 +29,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ RESOURCE(1), /** - * - * *
        * The actual IAM policy set on a resource.
        * 
    @@ -59,8 +37,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ IAM_POLICY(2), /** - * - * *
        * The Cloud Organization Policy set on an asset.
        * 
    @@ -69,8 +45,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ ORG_POLICY(4), /** - * - * *
        * The Cloud Access context mananger Policy set on an asset.
        * 
    @@ -82,8 +56,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unspecified content type.
        * 
    @@ -92,8 +64,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONTENT_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Resource metadata.
        * 
    @@ -102,8 +72,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RESOURCE_VALUE = 1; /** - * - * *
        * The actual IAM policy set on a resource.
        * 
    @@ -112,8 +80,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IAM_POLICY_VALUE = 2; /** - * - * *
        * The Cloud Organization Policy set on an asset.
        * 
    @@ -122,8 +88,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ORG_POLICY_VALUE = 4; /** - * - * *
        * The Cloud Access context mananger Policy set on an asset.
        * 
    @@ -132,6 +96,7 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACCESS_POLICY_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -156,53 +121,51 @@ public static ContentType valueOf(int value) { */ public static ContentType forNumber(int value) { switch (value) { - case 0: - return CONTENT_TYPE_UNSPECIFIED; - case 1: - return RESOURCE; - case 2: - return IAM_POLICY; - case 4: - return ORG_POLICY; - case 5: - return ACCESS_POLICY; - default: - return null; + case 0: return CONTENT_TYPE_UNSPECIFIED; + case 1: return RESOURCE; + case 2: return IAM_POLICY; + case 4: return ORG_POLICY; + case 5: return ACCESS_POLICY; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + 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 ContentType findValueByNumber(int number) { - return ContentType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + ContentType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ContentType findValueByNumber(int number) { + return ContentType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.asset.v1p5beta1.AssetServiceProto.getDescriptor().getEnumTypes().get(0); } private static final ContentType[] VALUES = values(); - public static ContentType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ContentType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -218,3 +181,4 @@ private ContentType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.asset.v1p5beta1.ContentType) } + diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequest.java b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequest.java similarity index 75% rename from java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequest.java rename to owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequest.java index ae570bd57094..52741cde229c 100644 --- a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequest.java +++ b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p5beta1/asset_service.proto package com.google.cloud.asset.v1p5beta1; /** - * - * *
      * ListAssets request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p5beta1.ListAssetsRequest} */ -public final class ListAssetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListAssetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p5beta1.ListAssetsRequest) ListAssetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListAssetsRequest.newBuilder() to construct. private ListAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAssetsRequest() { parent_ = ""; assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -46,129 +28,32 @@ private ListAssetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAssetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private ListAssetsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - assetTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - assetTypes_.add(s); - break; - } - case 32: - { - int rawValue = input.readEnum(); - - contentType_ = rawValue; - break; - } - case 40: - { - pageSize_ = input.readInt32(); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - assetTypes_ = assetTypes_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p5beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p5beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p5beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_fieldAccessorTable + return com.google.cloud.asset.v1p5beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p5beta1.ListAssetsRequest.class, - com.google.cloud.asset.v1p5beta1.ListAssetsRequest.Builder.class); + com.google.cloud.asset.v1p5beta1.ListAssetsRequest.class, com.google.cloud.asset.v1p5beta1.ListAssetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
        * Required. Name of the organization or project the assets belong to. Format:
        * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -177,7 +62,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -186,15 +70,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
        * Required. Name of the organization or project the assets belong to. Format:
        * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -203,15 +86,16 @@ public java.lang.String getParent() {
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -222,8 +106,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int READ_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp readTime_; /** - * - * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -233,7 +115,6 @@ public com.google.protobuf.ByteString getParentBytes() {
        * 
    * * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -241,8 +122,6 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -252,7 +131,6 @@ public boolean hasReadTime() {
        * 
    * * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ @java.lang.Override @@ -260,8 +138,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -280,8 +156,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       public static final int ASSET_TYPES_FIELD_NUMBER = 3;
       private com.google.protobuf.LazyStringList assetTypes_;
       /**
    -   *
    -   *
        * 
        * A list of asset types of which to take a snapshot for. For  example:
        * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -291,15 +165,13 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
        * 
    * * repeated string asset_types = 3; - * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList getAssetTypesList() { + public com.google.protobuf.ProtocolStringList + getAssetTypesList() { return assetTypes_; } /** - * - * *
        * A list of asset types of which to take a snapshot for. For  example:
        * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -309,15 +181,12 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() {
        * 
    * * repeated string asset_types = 3; - * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** - * - * *
        * A list of asset types of which to take a snapshot for. For  example:
        * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -327,7 +196,6 @@ public int getAssetTypesCount() {
        * 
    * * repeated string asset_types = 3; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -335,8 +203,6 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** - * - * *
        * A list of asset types of which to take a snapshot for. For  example:
        * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -346,64 +212,52 @@ public java.lang.String getAssetTypes(int index) {
        * 
    * * repeated string asset_types = 3; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString + getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } public static final int CONTENT_TYPE_FIELD_NUMBER = 4; private int contentType_; /** - * - * *
        * Asset content type. If not specified, no content but the asset name will
        * be returned.
        * 
    * * .google.cloud.asset.v1p5beta1.ContentType content_type = 4; - * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override - public int getContentTypeValue() { + @java.lang.Override public int getContentTypeValue() { return contentType_; } /** - * - * *
        * Asset content type. If not specified, no content but the asset name will
        * be returned.
        * 
    * * .google.cloud.asset.v1p5beta1.ContentType content_type = 4; - * * @return The contentType. */ - @java.lang.Override - public com.google.cloud.asset.v1p5beta1.ContentType getContentType() { + @java.lang.Override public com.google.cloud.asset.v1p5beta1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1p5beta1.ContentType result = - com.google.cloud.asset.v1p5beta1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1p5beta1.ContentType result = com.google.cloud.asset.v1p5beta1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1p5beta1.ContentType.UNRECOGNIZED : result; } public static final int PAGE_SIZE_FIELD_NUMBER = 5; private int pageSize_; /** - * - * *
        * The maximum number of assets to be returned in a single response. Default
        * is 100, minimum is 1, and maximum is 1000.
        * 
    * * int32 page_size = 5; - * * @return The pageSize. */ @java.lang.Override @@ -414,8 +268,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 6; private volatile java.lang.Object pageToken_; /** - * - * *
        * The `next_page_token` returned from the previous `ListAssetsResponse`, or
        * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -423,7 +275,6 @@ public int getPageSize() {
        * 
    * * string page_token = 6; - * * @return The pageToken. */ @java.lang.Override @@ -432,15 +283,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
        * The `next_page_token` returned from the previous `ListAssetsResponse`, or
        * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -448,15 +298,16 @@ public java.lang.String getPageToken() {
        * 
    * * string page_token = 6; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -465,7 +316,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -477,7 +327,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -487,8 +338,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < assetTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, assetTypes_.getRaw(i)); } - if (contentType_ - != com.google.cloud.asset.v1p5beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + if (contentType_ != com.google.cloud.asset.v1p5beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, contentType_); } if (pageSize_ != 0) { @@ -497,7 +347,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, pageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -510,7 +360,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReadTime()); } { int dataSize = 0; @@ -520,17 +371,18 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAssetTypesList().size(); } - if (contentType_ - != com.google.cloud.asset.v1p5beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, contentType_); + if (contentType_ != com.google.cloud.asset.v1p5beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, contentType_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -538,24 +390,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p5beta1.ListAssetsRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1p5beta1.ListAssetsRequest other = - (com.google.cloud.asset.v1p5beta1.ListAssetsRequest) obj; + com.google.cloud.asset.v1p5beta1.ListAssetsRequest other = (com.google.cloud.asset.v1p5beta1.ListAssetsRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } - if (!getAssetTypesList().equals(other.getAssetTypesList())) return false; + if (!getAssetTypesList() + .equals(other.getAssetTypesList())) return false; if (contentType_ != other.contentType_) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -582,148 +438,135 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest 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.asset.v1p5beta1.ListAssetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p5beta1.ListAssetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * ListAssets request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p5beta1.ListAssetsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p5beta1.ListAssetsRequest) com.google.cloud.asset.v1p5beta1.ListAssetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p5beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p5beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p5beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_fieldAccessorTable + return com.google.cloud.asset.v1p5beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p5beta1.ListAssetsRequest.class, - com.google.cloud.asset.v1p5beta1.ListAssetsRequest.Builder.class); + com.google.cloud.asset.v1p5beta1.ListAssetsRequest.class, com.google.cloud.asset.v1p5beta1.ListAssetsRequest.Builder.class); } // Construct using com.google.cloud.asset.v1p5beta1.ListAssetsRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -747,9 +590,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p5beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p5beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_descriptor; } @java.lang.Override @@ -768,8 +611,7 @@ public com.google.cloud.asset.v1p5beta1.ListAssetsRequest build() { @java.lang.Override public com.google.cloud.asset.v1p5beta1.ListAssetsRequest buildPartial() { - com.google.cloud.asset.v1p5beta1.ListAssetsRequest result = - new com.google.cloud.asset.v1p5beta1.ListAssetsRequest(this); + com.google.cloud.asset.v1p5beta1.ListAssetsRequest result = new com.google.cloud.asset.v1p5beta1.ListAssetsRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (readTimeBuilder_ == null) { @@ -793,39 +635,38 @@ public com.google.cloud.asset.v1p5beta1.ListAssetsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p5beta1.ListAssetsRequest) { - return mergeFrom((com.google.cloud.asset.v1p5beta1.ListAssetsRequest) other); + return mergeFrom((com.google.cloud.asset.v1p5beta1.ListAssetsRequest)other); } else { super.mergeFrom(other); return this; @@ -833,8 +674,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p5beta1.ListAssetsRequest other) { - if (other == com.google.cloud.asset.v1p5beta1.ListAssetsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1p5beta1.ListAssetsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -862,7 +702,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p5beta1.ListAssetsRequest othe pageToken_ = other.pageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -877,27 +717,69 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p5beta1.ListAssetsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getReadTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAssetTypesIsMutable(); + assetTypes_.add(s); + break; + } // case 26 + case 32: { + contentType_ = input.readEnum(); + + break; + } // case 32 + case 40: { + pageSize_ = input.readInt32(); + + break; + } // case 40 + case 50: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1p5beta1.ListAssetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
          * Required. Name of the organization or project the assets belong to. Format:
          * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -906,13 +788,13 @@ public Builder mergeFrom(
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -921,8 +803,6 @@ public java.lang.String getParent() { } } /** - * - * *
          * Required. Name of the organization or project the assets belong to. Format:
          * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -931,14 +811,15 @@ public java.lang.String getParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -946,8 +827,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
          * Required. Name of the organization or project the assets belong to. Format:
          * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -956,22 +835,20 @@ public com.google.protobuf.ByteString getParentBytes() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
          * Required. Name of the organization or project the assets belong to. Format:
          * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -980,18 +857,15 @@ public Builder setParent(java.lang.String value) {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
          * Required. Name of the organization or project the assets belong to. Format:
          * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -1000,16 +874,16 @@ public Builder clearParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1017,13 +891,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -1033,15 +902,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
          * 
    * * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -1051,7 +917,6 @@ public boolean hasReadTime() {
          * 
    * * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1062,8 +927,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -1088,8 +951,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -1100,7 +961,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
          *
          * .google.protobuf.Timestamp read_time = 2;
          */
    -    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
    +    public Builder setReadTime(
    +        com.google.protobuf.Timestamp.Builder builderForValue) {
           if (readTimeBuilder_ == null) {
             readTime_ = builderForValue.build();
             onChanged();
    @@ -1111,8 +973,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -1127,7 +987,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
           if (readTimeBuilder_ == null) {
             if (readTime_ != null) {
               readTime_ =
    -              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
    +            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
             } else {
               readTime_ = value;
             }
    @@ -1139,8 +999,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -1163,8 +1021,6 @@ public Builder clearReadTime() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -1176,13 +1032,11 @@ public Builder clearReadTime() {
          * .google.protobuf.Timestamp read_time = 2;
          */
         public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
    -
    +      
           onChanged();
           return getReadTimeFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -1197,12 +1051,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
           if (readTimeBuilder_ != null) {
             return readTimeBuilder_.getMessageOrBuilder();
           } else {
    -        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
    +        return readTime_ == null ?
    +            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
           }
         }
         /**
    -     *
    -     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -1214,34 +1067,27 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
          * .google.protobuf.Timestamp read_time = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp,
    -            com.google.protobuf.Timestamp.Builder,
    -            com.google.protobuf.TimestampOrBuilder>
    +        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
             getReadTimeFieldBuilder() {
           if (readTimeBuilder_ == null) {
    -        readTimeBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.protobuf.Timestamp,
    -                com.google.protobuf.Timestamp.Builder,
    -                com.google.protobuf.TimestampOrBuilder>(
    -                getReadTime(), getParentForChildren(), isClean());
    +        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    +                getReadTime(),
    +                getParentForChildren(),
    +                isClean());
             readTime_ = null;
           }
           return readTimeBuilder_;
         }
     
    -    private com.google.protobuf.LazyStringList assetTypes_ =
    -        com.google.protobuf.LazyStringArrayList.EMPTY;
    -
    +    private com.google.protobuf.LazyStringList assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
         private void ensureAssetTypesIsMutable() {
           if (!((bitField0_ & 0x00000001) != 0)) {
             assetTypes_ = new com.google.protobuf.LazyStringArrayList(assetTypes_);
             bitField0_ |= 0x00000001;
    -      }
    +       }
         }
         /**
    -     *
    -     *
          * 
          * A list of asset types of which to take a snapshot for. For  example:
          * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -1251,15 +1097,13 @@ private void ensureAssetTypesIsMutable() {
          * 
    * * repeated string asset_types = 3; - * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList getAssetTypesList() { + public com.google.protobuf.ProtocolStringList + getAssetTypesList() { return assetTypes_.getUnmodifiableView(); } /** - * - * *
          * A list of asset types of which to take a snapshot for. For  example:
          * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -1269,15 +1113,12 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() {
          * 
    * * repeated string asset_types = 3; - * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** - * - * *
          * A list of asset types of which to take a snapshot for. For  example:
          * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -1287,7 +1128,6 @@ public int getAssetTypesCount() {
          * 
    * * repeated string asset_types = 3; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -1295,8 +1135,6 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** - * - * *
          * A list of asset types of which to take a snapshot for. For  example:
          * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -1306,16 +1144,14 @@ public java.lang.String getAssetTypes(int index) {
          * 
    * * repeated string asset_types = 3; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString + getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } /** - * - * *
          * A list of asset types of which to take a snapshot for. For  example:
          * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -1325,23 +1161,21 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) {
          * 
    * * repeated string asset_types = 3; - * * @param index The index to set the value at. * @param value The assetTypes to set. * @return This builder for chaining. */ - public Builder setAssetTypes(int index, java.lang.String value) { + public Builder setAssetTypes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.set(index, value); onChanged(); return this; } /** - * - * *
          * A list of asset types of which to take a snapshot for. For  example:
          * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -1351,22 +1185,20 @@ public Builder setAssetTypes(int index, java.lang.String value) {
          * 
    * * repeated string asset_types = 3; - * * @param value The assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypes(java.lang.String value) { + public Builder addAssetTypes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); return this; } /** - * - * *
          * A list of asset types of which to take a snapshot for. For  example:
          * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -1376,19 +1208,18 @@ public Builder addAssetTypes(java.lang.String value) {
          * 
    * * repeated string asset_types = 3; - * * @param values The assetTypes to add. * @return This builder for chaining. */ - public Builder addAllAssetTypes(java.lang.Iterable values) { + public Builder addAllAssetTypes( + java.lang.Iterable values) { ensureAssetTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, assetTypes_); onChanged(); return this; } /** - * - * *
          * A list of asset types of which to take a snapshot for. For  example:
          * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -1398,7 +1229,6 @@ public Builder addAllAssetTypes(java.lang.Iterable values) {
          * 
    * * repeated string asset_types = 3; - * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1408,8 +1238,6 @@ public Builder clearAssetTypes() { return this; } /** - * - * *
          * A list of asset types of which to take a snapshot for. For  example:
          * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -1419,15 +1247,15 @@ public Builder clearAssetTypes() {
          * 
    * * repeated string asset_types = 3; - * * @param value The bytes of the assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { + public Builder addAssetTypesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); @@ -1436,69 +1264,55 @@ public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { private int contentType_ = 0; /** - * - * *
          * Asset content type. If not specified, no content but the asset name will
          * be returned.
          * 
    * * .google.cloud.asset.v1p5beta1.ContentType content_type = 4; - * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override - public int getContentTypeValue() { + @java.lang.Override public int getContentTypeValue() { return contentType_; } /** - * - * *
          * Asset content type. If not specified, no content but the asset name will
          * be returned.
          * 
    * * .google.cloud.asset.v1p5beta1.ContentType content_type = 4; - * * @param value The enum numeric value on the wire for contentType to set. * @return This builder for chaining. */ public Builder setContentTypeValue(int value) { - + contentType_ = value; onChanged(); return this; } /** - * - * *
          * Asset content type. If not specified, no content but the asset name will
          * be returned.
          * 
    * * .google.cloud.asset.v1p5beta1.ContentType content_type = 4; - * * @return The contentType. */ @java.lang.Override public com.google.cloud.asset.v1p5beta1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1p5beta1.ContentType result = - com.google.cloud.asset.v1p5beta1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1p5beta1.ContentType result = com.google.cloud.asset.v1p5beta1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1p5beta1.ContentType.UNRECOGNIZED : result; } /** - * - * *
          * Asset content type. If not specified, no content but the asset name will
          * be returned.
          * 
    * * .google.cloud.asset.v1p5beta1.ContentType content_type = 4; - * * @param value The contentType to set. * @return This builder for chaining. */ @@ -1506,41 +1320,35 @@ public Builder setContentType(com.google.cloud.asset.v1p5beta1.ContentType value if (value == null) { throw new NullPointerException(); } - + contentType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
          * Asset content type. If not specified, no content but the asset name will
          * be returned.
          * 
    * * .google.cloud.asset.v1p5beta1.ContentType content_type = 4; - * * @return This builder for chaining. */ public Builder clearContentType() { - + contentType_ = 0; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
          * The maximum number of assets to be returned in a single response. Default
          * is 100, minimum is 1, and maximum is 1000.
          * 
    * * int32 page_size = 5; - * * @return The pageSize. */ @java.lang.Override @@ -1548,38 +1356,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
          * The maximum number of assets to be returned in a single response. Default
          * is 100, minimum is 1, and maximum is 1000.
          * 
    * * int32 page_size = 5; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
          * The maximum number of assets to be returned in a single response. Default
          * is 100, minimum is 1, and maximum is 1000.
          * 
    * * int32 page_size = 5; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1587,8 +1389,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
          * The `next_page_token` returned from the previous `ListAssetsResponse`, or
          * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -1596,13 +1396,13 @@ public Builder clearPageSize() {
          * 
    * * string page_token = 6; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1611,8 +1411,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
          * The `next_page_token` returned from the previous `ListAssetsResponse`, or
          * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -1620,14 +1418,15 @@ public java.lang.String getPageToken() {
          * 
    * * string page_token = 6; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1635,8 +1434,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
          * The `next_page_token` returned from the previous `ListAssetsResponse`, or
          * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -1644,22 +1441,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
          * The `next_page_token` returned from the previous `ListAssetsResponse`, or
          * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -1667,18 +1462,15 @@ public Builder setPageToken(java.lang.String value) {
          * 
    * * string page_token = 6; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
          * The `next_page_token` returned from the previous `ListAssetsResponse`, or
          * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -1686,23 +1478,23 @@ 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1712,12 +1504,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p5beta1.ListAssetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p5beta1.ListAssetsRequest) private static final com.google.cloud.asset.v1p5beta1.ListAssetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p5beta1.ListAssetsRequest(); } @@ -1726,16 +1518,27 @@ public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAssetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1750,4 +1553,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p5beta1.ListAssetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequestOrBuilder.java b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequestOrBuilder.java similarity index 85% rename from java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequestOrBuilder.java rename to owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequestOrBuilder.java index 2268b978f033..38c78bebe193 100644 --- a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequestOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p5beta1/asset_service.proto package com.google.cloud.asset.v1p5beta1; -public interface ListAssetsRequestOrBuilder - extends +public interface ListAssetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p5beta1.ListAssetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. Name of the organization or project the assets belong to. Format:
        * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -34,13 +16,10 @@ public interface ListAssetsRequestOrBuilder
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
        * Required. Name of the organization or project the assets belong to. Format:
        * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -49,14 +28,12 @@ public interface ListAssetsRequestOrBuilder
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -66,13 +43,10 @@ public interface ListAssetsRequestOrBuilder
        * 
    * * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -82,13 +56,10 @@ public interface ListAssetsRequestOrBuilder
        * 
    * * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -102,8 +73,6 @@ public interface ListAssetsRequestOrBuilder
       com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * A list of asset types of which to take a snapshot for. For  example:
        * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -113,13 +82,11 @@ public interface ListAssetsRequestOrBuilder
        * 
    * * repeated string asset_types = 3; - * * @return A list containing the assetTypes. */ - java.util.List getAssetTypesList(); + java.util.List + getAssetTypesList(); /** - * - * *
        * A list of asset types of which to take a snapshot for. For  example:
        * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -129,13 +96,10 @@ public interface ListAssetsRequestOrBuilder
        * 
    * * repeated string asset_types = 3; - * * @return The count of assetTypes. */ int getAssetTypesCount(); /** - * - * *
        * A list of asset types of which to take a snapshot for. For  example:
        * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -145,14 +109,11 @@ public interface ListAssetsRequestOrBuilder
        * 
    * * repeated string asset_types = 3; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ java.lang.String getAssetTypes(int index); /** - * - * *
        * A list of asset types of which to take a snapshot for. For  example:
        * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -162,56 +123,45 @@ public interface ListAssetsRequestOrBuilder
        * 
    * * repeated string asset_types = 3; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - com.google.protobuf.ByteString getAssetTypesBytes(int index); + com.google.protobuf.ByteString + getAssetTypesBytes(int index); /** - * - * *
        * Asset content type. If not specified, no content but the asset name will
        * be returned.
        * 
    * * .google.cloud.asset.v1p5beta1.ContentType content_type = 4; - * * @return The enum numeric value on the wire for contentType. */ int getContentTypeValue(); /** - * - * *
        * Asset content type. If not specified, no content but the asset name will
        * be returned.
        * 
    * * .google.cloud.asset.v1p5beta1.ContentType content_type = 4; - * * @return The contentType. */ com.google.cloud.asset.v1p5beta1.ContentType getContentType(); /** - * - * *
        * The maximum number of assets to be returned in a single response. Default
        * is 100, minimum is 1, and maximum is 1000.
        * 
    * * int32 page_size = 5; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
        * The `next_page_token` returned from the previous `ListAssetsResponse`, or
        * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -219,13 +169,10 @@ public interface ListAssetsRequestOrBuilder
        * 
    * * string page_token = 6; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
        * The `next_page_token` returned from the previous `ListAssetsResponse`, or
        * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -233,8 +180,8 @@ public interface ListAssetsRequestOrBuilder
        * 
    * * string page_token = 6; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponse.java b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponse.java similarity index 69% rename from java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponse.java rename to owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponse.java index c7122683d2ea..ac66acc49f62 100644 --- a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponse.java +++ b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p5beta1/asset_service.proto package com.google.cloud.asset.v1p5beta1; /** - * - * *
      * ListAssets response.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p5beta1.ListAssetsResponse} */ -public final class ListAssetsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListAssetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p5beta1.ListAssetsResponse) ListAssetsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListAssetsResponse.newBuilder() to construct. private ListAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAssetsResponse() { assets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,117 +26,37 @@ private ListAssetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAssetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private ListAssetsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - assets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - assets_.add( - input.readMessage( - com.google.cloud.asset.v1p5beta1.Asset.parser(), extensionRegistry)); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - assets_ = java.util.Collections.unmodifiableList(assets_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p5beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p5beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p5beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_fieldAccessorTable + return com.google.cloud.asset.v1p5beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p5beta1.ListAssetsResponse.class, - com.google.cloud.asset.v1p5beta1.ListAssetsResponse.Builder.class); + com.google.cloud.asset.v1p5beta1.ListAssetsResponse.class, com.google.cloud.asset.v1p5beta1.ListAssetsResponse.Builder.class); } public static final int READ_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp readTime_; /** - * - * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -162,14 +64,11 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; - * * @return The readTime. */ @java.lang.Override @@ -177,8 +76,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
        * Time the snapshot was taken.
        * 
    @@ -193,8 +90,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int ASSETS_FIELD_NUMBER = 2; private java.util.List assets_; /** - * - * *
        * Assets.
        * 
    @@ -206,8 +101,6 @@ public java.util.List getAssetsList() { return assets_; } /** - * - * *
        * Assets.
        * 
    @@ -215,13 +108,11 @@ public java.util.List getAssetsList() { * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ @java.lang.Override - public java.util.List + public java.util.List getAssetsOrBuilderList() { return assets_; } /** - * - * *
        * Assets.
        * 
    @@ -233,8 +124,6 @@ public int getAssetsCount() { return assets_.size(); } /** - * - * *
        * Assets.
        * 
    @@ -246,8 +135,6 @@ public com.google.cloud.asset.v1p5beta1.Asset getAssets(int index) { return assets_.get(index); } /** - * - * *
        * Assets.
        * 
    @@ -255,22 +142,20 @@ public com.google.cloud.asset.v1p5beta1.Asset getAssets(int index) { * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ @java.lang.Override - public com.google.cloud.asset.v1p5beta1.AssetOrBuilder getAssetsOrBuilder(int index) { + public com.google.cloud.asset.v1p5beta1.AssetOrBuilder getAssetsOrBuilder( + int index) { return assets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** - * - * *
        * Token to retrieve the next page of results. Set to empty if there are no
        * remaining results.
        * 
    * * string next_page_token = 3; - * * @return The nextPageToken. */ @java.lang.Override @@ -279,30 +164,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
        * Token to retrieve the next page of results. Set to empty if there are no
        * remaining results.
        * 
    * * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -311,7 +196,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -323,7 +207,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (readTime_ != null) { output.writeMessage(1, getReadTime()); } @@ -333,7 +218,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -343,15 +228,17 @@ public int getSerializedSize() { size = 0; if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getReadTime()); } for (int i = 0; i < assets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, assets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, assets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -359,21 +246,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p5beta1.ListAssetsResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1p5beta1.ListAssetsResponse other = - (com.google.cloud.asset.v1p5beta1.ListAssetsResponse) obj; + com.google.cloud.asset.v1p5beta1.ListAssetsResponse other = (com.google.cloud.asset.v1p5beta1.ListAssetsResponse) obj; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; - } - if (!getAssetsList().equals(other.getAssetsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; + } + if (!getAssetsList() + .equals(other.getAssetsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -394,150 +283,135 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse 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.asset.v1p5beta1.ListAssetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p5beta1.ListAssetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * ListAssets response.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p5beta1.ListAssetsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p5beta1.ListAssetsResponse) com.google.cloud.asset.v1p5beta1.ListAssetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p5beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p5beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p5beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_fieldAccessorTable + return com.google.cloud.asset.v1p5beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p5beta1.ListAssetsResponse.class, - com.google.cloud.asset.v1p5beta1.ListAssetsResponse.Builder.class); + com.google.cloud.asset.v1p5beta1.ListAssetsResponse.class, com.google.cloud.asset.v1p5beta1.ListAssetsResponse.Builder.class); } // Construct using com.google.cloud.asset.v1p5beta1.ListAssetsResponse.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAssetsFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); @@ -549,19 +423,20 @@ public Builder clear() { } if (assetsBuilder_ == null) { assets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + assets_ = null; assetsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p5beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p5beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor; } @java.lang.Override @@ -580,8 +455,7 @@ public com.google.cloud.asset.v1p5beta1.ListAssetsResponse build() { @java.lang.Override public com.google.cloud.asset.v1p5beta1.ListAssetsResponse buildPartial() { - com.google.cloud.asset.v1p5beta1.ListAssetsResponse result = - new com.google.cloud.asset.v1p5beta1.ListAssetsResponse(this); + com.google.cloud.asset.v1p5beta1.ListAssetsResponse result = new com.google.cloud.asset.v1p5beta1.ListAssetsResponse(this); int from_bitField0_ = bitField0_; if (readTimeBuilder_ == null) { result.readTime_ = readTime_; @@ -606,39 +480,38 @@ public com.google.cloud.asset.v1p5beta1.ListAssetsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p5beta1.ListAssetsResponse) { - return mergeFrom((com.google.cloud.asset.v1p5beta1.ListAssetsResponse) other); + return mergeFrom((com.google.cloud.asset.v1p5beta1.ListAssetsResponse)other); } else { super.mergeFrom(other); return this; @@ -646,8 +519,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p5beta1.ListAssetsResponse other) { - if (other == com.google.cloud.asset.v1p5beta1.ListAssetsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1p5beta1.ListAssetsResponse.getDefaultInstance()) return this; if (other.hasReadTime()) { mergeReadTime(other.getReadTime()); } @@ -669,10 +541,9 @@ public Builder mergeFrom(com.google.cloud.asset.v1p5beta1.ListAssetsResponse oth assetsBuilder_ = null; assets_ = other.assets_; bitField0_ = (bitField0_ & ~0x00000001); - assetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAssetsFieldBuilder() - : null; + assetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAssetsFieldBuilder() : null; } else { assetsBuilder_.addAllMessages(other.assets_); } @@ -682,7 +553,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p5beta1.ListAssetsResponse oth nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -697,52 +568,79 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p5beta1.ListAssetsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getReadTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + com.google.cloud.asset.v1p5beta1.Asset m = + input.readMessage( + com.google.cloud.asset.v1p5beta1.Asset.parser(), + extensionRegistry); + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.add(m); + } else { + assetsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1p5beta1.ListAssetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
          * Time the snapshot was taken.
          * 
    * * .google.protobuf.Timestamp read_time = 1; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
          * Time the snapshot was taken.
          * 
    * * .google.protobuf.Timestamp read_time = 1; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -753,8 +651,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
          * Time the snapshot was taken.
          * 
    @@ -775,15 +671,14 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
          * Time the snapshot was taken.
          * 
    * * .google.protobuf.Timestamp read_time = 1; */ - public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -794,8 +689,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue return this; } /** - * - * *
          * Time the snapshot was taken.
          * 
    @@ -806,7 +699,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -818,8 +711,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
          * Time the snapshot was taken.
          * 
    @@ -838,8 +729,6 @@ public Builder clearReadTime() { return this; } /** - * - * *
          * Time the snapshot was taken.
          * 
    @@ -847,13 +736,11 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 1; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** - * - * *
          * Time the snapshot was taken.
          * 
    @@ -864,12 +751,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** - * - * *
          * Time the snapshot was taken.
          * 
    @@ -877,41 +763,32 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getReadTime(), getParentForChildren(), isClean()); + readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getReadTime(), + getParentForChildren(), + isClean()); readTime_ = null; } return readTimeBuilder_; } private java.util.List assets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAssetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assets_ = new java.util.ArrayList(assets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p5beta1.Asset, - com.google.cloud.asset.v1p5beta1.Asset.Builder, - com.google.cloud.asset.v1p5beta1.AssetOrBuilder> - assetsBuilder_; + com.google.cloud.asset.v1p5beta1.Asset, com.google.cloud.asset.v1p5beta1.Asset.Builder, com.google.cloud.asset.v1p5beta1.AssetOrBuilder> assetsBuilder_; /** - * - * *
          * Assets.
          * 
    @@ -926,8 +803,6 @@ public java.util.List getAssetsList() { } } /** - * - * *
          * Assets.
          * 
    @@ -942,8 +817,6 @@ public int getAssetsCount() { } } /** - * - * *
          * Assets.
          * 
    @@ -958,15 +831,14 @@ public com.google.cloud.asset.v1p5beta1.Asset getAssets(int index) { } } /** - * - * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ - public Builder setAssets(int index, com.google.cloud.asset.v1p5beta1.Asset value) { + public Builder setAssets( + int index, com.google.cloud.asset.v1p5beta1.Asset value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -980,8 +852,6 @@ public Builder setAssets(int index, com.google.cloud.asset.v1p5beta1.Asset value return this; } /** - * - * *
          * Assets.
          * 
    @@ -1000,8 +870,6 @@ public Builder setAssets( return this; } /** - * - * *
          * Assets.
          * 
    @@ -1022,15 +890,14 @@ public Builder addAssets(com.google.cloud.asset.v1p5beta1.Asset value) { return this; } /** - * - * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ - public Builder addAssets(int index, com.google.cloud.asset.v1p5beta1.Asset value) { + public Builder addAssets( + int index, com.google.cloud.asset.v1p5beta1.Asset value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1044,15 +911,14 @@ public Builder addAssets(int index, com.google.cloud.asset.v1p5beta1.Asset value return this; } /** - * - * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ - public Builder addAssets(com.google.cloud.asset.v1p5beta1.Asset.Builder builderForValue) { + public Builder addAssets( + com.google.cloud.asset.v1p5beta1.Asset.Builder builderForValue) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.add(builderForValue.build()); @@ -1063,8 +929,6 @@ public Builder addAssets(com.google.cloud.asset.v1p5beta1.Asset.Builder builderF return this; } /** - * - * *
          * Assets.
          * 
    @@ -1083,8 +947,6 @@ public Builder addAssets( return this; } /** - * - * *
          * Assets.
          * 
    @@ -1095,7 +957,8 @@ public Builder addAllAssets( java.lang.Iterable values) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, assets_); onChanged(); } else { assetsBuilder_.addAllMessages(values); @@ -1103,8 +966,6 @@ public Builder addAllAssets( return this; } /** - * - * *
          * Assets.
          * 
    @@ -1122,8 +983,6 @@ public Builder clearAssets() { return this; } /** - * - * *
          * Assets.
          * 
    @@ -1141,44 +1000,39 @@ public Builder removeAssets(int index) { return this; } /** - * - * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ - public com.google.cloud.asset.v1p5beta1.Asset.Builder getAssetsBuilder(int index) { + public com.google.cloud.asset.v1p5beta1.Asset.Builder getAssetsBuilder( + int index) { return getAssetsFieldBuilder().getBuilder(index); } /** - * - * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ - public com.google.cloud.asset.v1p5beta1.AssetOrBuilder getAssetsOrBuilder(int index) { + public com.google.cloud.asset.v1p5beta1.AssetOrBuilder getAssetsOrBuilder( + int index) { if (assetsBuilder_ == null) { - return assets_.get(index); - } else { + return assets_.get(index); } else { return assetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ - public java.util.List - getAssetsOrBuilderList() { + public java.util.List + getAssetsOrBuilderList() { if (assetsBuilder_ != null) { return assetsBuilder_.getMessageOrBuilderList(); } else { @@ -1186,8 +1040,6 @@ public com.google.cloud.asset.v1p5beta1.AssetOrBuilder getAssetsOrBuilder(int in } } /** - * - * *
          * Assets.
          * 
    @@ -1195,47 +1047,42 @@ public com.google.cloud.asset.v1p5beta1.AssetOrBuilder getAssetsOrBuilder(int in * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ public com.google.cloud.asset.v1p5beta1.Asset.Builder addAssetsBuilder() { - return getAssetsFieldBuilder() - .addBuilder(com.google.cloud.asset.v1p5beta1.Asset.getDefaultInstance()); + return getAssetsFieldBuilder().addBuilder( + com.google.cloud.asset.v1p5beta1.Asset.getDefaultInstance()); } /** - * - * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ - public com.google.cloud.asset.v1p5beta1.Asset.Builder addAssetsBuilder(int index) { - return getAssetsFieldBuilder() - .addBuilder(index, com.google.cloud.asset.v1p5beta1.Asset.getDefaultInstance()); + public com.google.cloud.asset.v1p5beta1.Asset.Builder addAssetsBuilder( + int index) { + return getAssetsFieldBuilder().addBuilder( + index, com.google.cloud.asset.v1p5beta1.Asset.getDefaultInstance()); } /** - * - * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ - public java.util.List getAssetsBuilderList() { + public java.util.List + getAssetsBuilderList() { return getAssetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p5beta1.Asset, - com.google.cloud.asset.v1p5beta1.Asset.Builder, - com.google.cloud.asset.v1p5beta1.AssetOrBuilder> + com.google.cloud.asset.v1p5beta1.Asset, com.google.cloud.asset.v1p5beta1.Asset.Builder, com.google.cloud.asset.v1p5beta1.AssetOrBuilder> getAssetsFieldBuilder() { if (assetsBuilder_ == null) { - assetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p5beta1.Asset, - com.google.cloud.asset.v1p5beta1.Asset.Builder, - com.google.cloud.asset.v1p5beta1.AssetOrBuilder>( - assets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + assetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1p5beta1.Asset, com.google.cloud.asset.v1p5beta1.Asset.Builder, com.google.cloud.asset.v1p5beta1.AssetOrBuilder>( + assets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); assets_ = null; } return assetsBuilder_; @@ -1243,21 +1090,19 @@ public java.util.List getAssetsB private java.lang.Object nextPageToken_ = ""; /** - * - * *
          * Token to retrieve the next page of results. Set to empty if there are no
          * remaining results.
          * 
    * * string next_page_token = 3; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1266,22 +1111,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
          * Token to retrieve the next page of results. Set to empty if there are no
          * remaining results.
          * 
    * * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1289,71 +1133,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
          * Token to retrieve the next page of results. Set to empty if there are no
          * remaining results.
          * 
    * * string next_page_token = 3; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
          * Token to retrieve the next page of results. Set to empty if there are no
          * remaining results.
          * 
    * * string next_page_token = 3; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
          * Token to retrieve the next page of results. Set to empty if there are no
          * remaining results.
          * 
    * * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1363,12 +1200,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p5beta1.ListAssetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p5beta1.ListAssetsResponse) private static final com.google.cloud.asset.v1p5beta1.ListAssetsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p5beta1.ListAssetsResponse(); } @@ -1377,16 +1214,27 @@ public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAssetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1401,4 +1249,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p5beta1.ListAssetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponseOrBuilder.java b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponseOrBuilder.java similarity index 71% rename from java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponseOrBuilder.java rename to owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponseOrBuilder.java index 0e39d6a3367a..89435126e1f4 100644 --- a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponseOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p5beta1/asset_service.proto package com.google.cloud.asset.v1p5beta1; -public interface ListAssetsResponseOrBuilder - extends +public interface ListAssetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p5beta1.ListAssetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
        * Time the snapshot was taken.
        * 
    @@ -59,18 +35,15 @@ public interface ListAssetsResponseOrBuilder com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** - * - * *
        * Assets.
        * 
    * * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ - java.util.List getAssetsList(); + java.util.List + getAssetsList(); /** - * - * *
        * Assets.
        * 
    @@ -79,8 +52,6 @@ public interface ListAssetsResponseOrBuilder */ com.google.cloud.asset.v1p5beta1.Asset getAssets(int index); /** - * - * *
        * Assets.
        * 
    @@ -89,51 +60,43 @@ public interface ListAssetsResponseOrBuilder */ int getAssetsCount(); /** - * - * *
        * Assets.
        * 
    * * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ - java.util.List + java.util.List getAssetsOrBuilderList(); /** - * - * *
        * Assets.
        * 
    * * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ - com.google.cloud.asset.v1p5beta1.AssetOrBuilder getAssetsOrBuilder(int index); + com.google.cloud.asset.v1p5beta1.AssetOrBuilder getAssetsOrBuilder( + int index); /** - * - * *
        * Token to retrieve the next page of results. Set to empty if there are no
        * remaining results.
        * 
    * * string next_page_token = 3; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
        * Token to retrieve the next page of results. Set to empty if there are no
        * remaining results.
        * 
    * * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Resource.java b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Resource.java similarity index 73% rename from java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Resource.java rename to owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Resource.java index f77c0ca6ae61..7342f31a03e1 100644 --- a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Resource.java +++ b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Resource.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p5beta1/assets.proto package com.google.cloud.asset.v1p5beta1; /** - * - * *
      * Representation of a cloud resource.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p5beta1.Resource} */ -public final class Resource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Resource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p5beta1.Resource) ResourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Resource.newBuilder() to construct. private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Resource() { version_ = ""; discoveryDocumentUri_ = ""; @@ -47,129 +29,37 @@ private Resource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Resource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + 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(); - - version_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - discoveryDocumentUri_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - discoveryName_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - resourceUrl_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 50: - { - com.google.protobuf.Struct.Builder subBuilder = null; - if (data_ != null) { - subBuilder = data_.toBuilder(); - } - data_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(data_); - data_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p5beta1.AssetProto - .internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p5beta1.AssetProto.internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p5beta1.AssetProto - .internal_static_google_cloud_asset_v1p5beta1_Resource_fieldAccessorTable + return com.google.cloud.asset.v1p5beta1.AssetProto.internal_static_google_cloud_asset_v1p5beta1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p5beta1.Resource.class, - com.google.cloud.asset.v1p5beta1.Resource.Builder.class); + com.google.cloud.asset.v1p5beta1.Resource.class, com.google.cloud.asset.v1p5beta1.Resource.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** - * - * *
        * The API version. Example: "v1".
        * 
    * * string version = 1; - * * @return The version. */ @java.lang.Override @@ -178,29 +68,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
        * The API version. Example: "v1".
        * 
    * * string version = 1; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -211,8 +101,6 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int DISCOVERY_DOCUMENT_URI_FIELD_NUMBER = 2; private volatile java.lang.Object discoveryDocumentUri_; /** - * - * *
        * The URL of the discovery document containing the resource's JSON schema.
        * For example:
    @@ -222,7 +110,6 @@ public com.google.protobuf.ByteString getVersionBytes() {
        * 
    * * string discovery_document_uri = 2; - * * @return The discoveryDocumentUri. */ @java.lang.Override @@ -231,15 +118,14 @@ public java.lang.String getDiscoveryDocumentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryDocumentUri_ = s; return s; } } /** - * - * *
        * The URL of the discovery document containing the resource's JSON schema.
        * For example:
    @@ -249,15 +135,16 @@ public java.lang.String getDiscoveryDocumentUri() {
        * 
    * * string discovery_document_uri = 2; - * * @return The bytes for discoveryDocumentUri. */ @java.lang.Override - public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { + public com.google.protobuf.ByteString + getDiscoveryDocumentUriBytes() { java.lang.Object ref = discoveryDocumentUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); discoveryDocumentUri_ = b; return b; } else { @@ -268,8 +155,6 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { public static final int DISCOVERY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object discoveryName_; /** - * - * *
        * The JSON schema name listed in the discovery document.
        * Example: "Project". It will be left unspecified for resources (such as
    @@ -277,7 +162,6 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() {
        * 
    * * string discovery_name = 3; - * * @return The discoveryName. */ @java.lang.Override @@ -286,15 +170,14 @@ public java.lang.String getDiscoveryName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryName_ = s; return s; } } /** - * - * *
        * The JSON schema name listed in the discovery document.
        * Example: "Project". It will be left unspecified for resources (such as
    @@ -302,15 +185,16 @@ public java.lang.String getDiscoveryName() {
        * 
    * * string discovery_name = 3; - * * @return The bytes for discoveryName. */ @java.lang.Override - public com.google.protobuf.ByteString getDiscoveryNameBytes() { + public com.google.protobuf.ByteString + getDiscoveryNameBytes() { java.lang.Object ref = discoveryName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); discoveryName_ = b; return b; } else { @@ -321,8 +205,6 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() { public static final int RESOURCE_URL_FIELD_NUMBER = 4; private volatile java.lang.Object resourceUrl_; /** - * - * *
        * The REST URL for accessing the resource. An HTTP GET operation using this
        * URL returns the resource itself.
    @@ -332,7 +214,6 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() {
        * 
    * * string resource_url = 4; - * * @return The resourceUrl. */ @java.lang.Override @@ -341,15 +222,14 @@ public java.lang.String getResourceUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; } } /** - * - * *
        * The REST URL for accessing the resource. An HTTP GET operation using this
        * URL returns the resource itself.
    @@ -359,15 +239,16 @@ public java.lang.String getResourceUrl() {
        * 
    * * string resource_url = 4; - * * @return The bytes for resourceUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceUrlBytes() { + public com.google.protobuf.ByteString + getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -378,8 +259,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { public static final int PARENT_FIELD_NUMBER = 5; private volatile java.lang.Object parent_; /** - * - * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -393,7 +272,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() {
        * 
    * * string parent = 5; - * * @return The parent. */ @java.lang.Override @@ -402,15 +280,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -424,15 +301,16 @@ public java.lang.String getParent() {
        * 
    * * string parent = 5; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -443,15 +321,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int DATA_FIELD_NUMBER = 6; private com.google.protobuf.Struct data_; /** - * - * *
        * The content of the resource, in which some sensitive fields are scrubbed
        * away and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; - * * @return Whether the data field is set. */ @java.lang.Override @@ -459,15 +334,12 @@ public boolean hasData() { return data_ != null; } /** - * - * *
        * The content of the resource, in which some sensitive fields are scrubbed
        * away and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; - * * @return The data. */ @java.lang.Override @@ -475,8 +347,6 @@ public com.google.protobuf.Struct getData() { return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_; } /** - * - * *
        * The content of the resource, in which some sensitive fields are scrubbed
        * away and may not be present.
    @@ -490,7 +360,6 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
       }
     
       private byte memoizedIsInitialized = -1;
    -
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -502,7 +371,8 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output)
    +                      throws java.io.IOException {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
         }
    @@ -521,7 +391,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (data_ != null) {
           output.writeMessage(6, getData());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -546,9 +416,10 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_);
         }
         if (data_ != null) {
    -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getData());
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(6, getData());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -556,24 +427,29 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -      return true;
    +     return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1p5beta1.Resource)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1p5beta1.Resource other =
    -        (com.google.cloud.asset.v1p5beta1.Resource) obj;
    -
    -    if (!getVersion().equals(other.getVersion())) return false;
    -    if (!getDiscoveryDocumentUri().equals(other.getDiscoveryDocumentUri())) return false;
    -    if (!getDiscoveryName().equals(other.getDiscoveryName())) return false;
    -    if (!getResourceUrl().equals(other.getResourceUrl())) return false;
    -    if (!getParent().equals(other.getParent())) return false;
    +    com.google.cloud.asset.v1p5beta1.Resource other = (com.google.cloud.asset.v1p5beta1.Resource) obj;
    +
    +    if (!getVersion()
    +        .equals(other.getVersion())) return false;
    +    if (!getDiscoveryDocumentUri()
    +        .equals(other.getDiscoveryDocumentUri())) return false;
    +    if (!getDiscoveryName()
    +        .equals(other.getDiscoveryName())) return false;
    +    if (!getResourceUrl()
    +        .equals(other.getResourceUrl())) return false;
    +    if (!getParent()
    +        .equals(other.getParent())) return false;
         if (hasData() != other.hasData()) return false;
         if (hasData()) {
    -      if (!getData().equals(other.getData())) return false;
    +      if (!getData()
    +          .equals(other.getData())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -598,148 +474,135 @@ public int hashCode() {
           hash = (37 * hash) + DATA_FIELD_NUMBER;
           hash = (53 * hash) + getData().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1p5beta1.Resource parseFrom(java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1p5beta1.Resource parseFrom(
    +      java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1p5beta1.Resource parseFrom(
    -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1p5beta1.Resource parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1p5beta1.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.asset.v1p5beta1.Resource parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1p5beta1.Resource parseFrom(
    -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1p5beta1.Resource parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1p5beta1.Resource parseFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
    -
    -  public static com.google.cloud.asset.v1p5beta1.Resource parseDelimitedFrom(
    -      java.io.InputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    +  public static com.google.cloud.asset.v1p5beta1.Resource parseDelimitedFrom(java.io.InputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1p5beta1.Resource parseDelimitedFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1p5beta1.Resource parseFrom(
    -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1p5beta1.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);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() {
    -    return newBuilder();
    -  }
    -
    +  public Builder newBuilderForType() { return newBuilder(); }
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    -
       public static Builder newBuilder(com.google.cloud.asset.v1p5beta1.Resource prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    -
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE
    +        ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(
    +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    -   *
    -   *
        * 
        * Representation of a cloud resource.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p5beta1.Resource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p5beta1.Resource) com.google.cloud.asset.v1p5beta1.ResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p5beta1.AssetProto - .internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p5beta1.AssetProto.internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p5beta1.AssetProto - .internal_static_google_cloud_asset_v1p5beta1_Resource_fieldAccessorTable + return com.google.cloud.asset.v1p5beta1.AssetProto.internal_static_google_cloud_asset_v1p5beta1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p5beta1.Resource.class, - com.google.cloud.asset.v1p5beta1.Resource.Builder.class); + com.google.cloud.asset.v1p5beta1.Resource.class, com.google.cloud.asset.v1p5beta1.Resource.Builder.class); } // Construct using com.google.cloud.asset.v1p5beta1.Resource.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -763,9 +626,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p5beta1.AssetProto - .internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p5beta1.AssetProto.internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor; } @java.lang.Override @@ -784,8 +647,7 @@ public com.google.cloud.asset.v1p5beta1.Resource build() { @java.lang.Override public com.google.cloud.asset.v1p5beta1.Resource buildPartial() { - com.google.cloud.asset.v1p5beta1.Resource result = - new com.google.cloud.asset.v1p5beta1.Resource(this); + com.google.cloud.asset.v1p5beta1.Resource result = new com.google.cloud.asset.v1p5beta1.Resource(this); result.version_ = version_; result.discoveryDocumentUri_ = discoveryDocumentUri_; result.discoveryName_ = discoveryName_; @@ -804,39 +666,38 @@ public com.google.cloud.asset.v1p5beta1.Resource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p5beta1.Resource) { - return mergeFrom((com.google.cloud.asset.v1p5beta1.Resource) other); + return mergeFrom((com.google.cloud.asset.v1p5beta1.Resource)other); } else { super.mergeFrom(other); return this; @@ -868,7 +729,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p5beta1.Resource other) { if (other.hasData()) { mergeData(other.getData()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -883,36 +744,79 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p5beta1.Resource parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + version_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + discoveryDocumentUri_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + discoveryName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + resourceUrl_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + input.readMessage( + getDataFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1p5beta1.Resource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object version_ = ""; /** - * - * *
          * The API version. Example: "v1".
          * 
    * * string version = 1; - * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -921,21 +825,20 @@ public java.lang.String getVersion() { } } /** - * - * *
          * The API version. Example: "v1".
          * 
    * * string version = 1; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -943,61 +846,54 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
          * The API version. Example: "v1".
          * 
    * * string version = 1; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
          * The API version. Example: "v1".
          * 
    * * string version = 1; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
          * The API version. Example: "v1".
          * 
    * * string version = 1; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -1005,8 +901,6 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { private java.lang.Object discoveryDocumentUri_ = ""; /** - * - * *
          * The URL of the discovery document containing the resource's JSON schema.
          * For example:
    @@ -1016,13 +910,13 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) {
          * 
    * * string discovery_document_uri = 2; - * * @return The discoveryDocumentUri. */ public java.lang.String getDiscoveryDocumentUri() { java.lang.Object ref = discoveryDocumentUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryDocumentUri_ = s; return s; @@ -1031,8 +925,6 @@ public java.lang.String getDiscoveryDocumentUri() { } } /** - * - * *
          * The URL of the discovery document containing the resource's JSON schema.
          * For example:
    @@ -1042,14 +934,15 @@ public java.lang.String getDiscoveryDocumentUri() {
          * 
    * * string discovery_document_uri = 2; - * * @return The bytes for discoveryDocumentUri. */ - public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { + public com.google.protobuf.ByteString + getDiscoveryDocumentUriBytes() { java.lang.Object ref = discoveryDocumentUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); discoveryDocumentUri_ = b; return b; } else { @@ -1057,8 +950,6 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { } } /** - * - * *
          * The URL of the discovery document containing the resource's JSON schema.
          * For example:
    @@ -1068,22 +959,20 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() {
          * 
    * * string discovery_document_uri = 2; - * * @param value The discoveryDocumentUri to set. * @return This builder for chaining. */ - public Builder setDiscoveryDocumentUri(java.lang.String value) { + public Builder setDiscoveryDocumentUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + discoveryDocumentUri_ = value; onChanged(); return this; } /** - * - * *
          * The URL of the discovery document containing the resource's JSON schema.
          * For example:
    @@ -1093,18 +982,15 @@ public Builder setDiscoveryDocumentUri(java.lang.String value) {
          * 
    * * string discovery_document_uri = 2; - * * @return This builder for chaining. */ public Builder clearDiscoveryDocumentUri() { - + discoveryDocumentUri_ = getDefaultInstance().getDiscoveryDocumentUri(); onChanged(); return this; } /** - * - * *
          * The URL of the discovery document containing the resource's JSON schema.
          * For example:
    @@ -1114,16 +1000,16 @@ public Builder clearDiscoveryDocumentUri() {
          * 
    * * string discovery_document_uri = 2; - * * @param value The bytes for discoveryDocumentUri to set. * @return This builder for chaining. */ - public Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value) { + public Builder setDiscoveryDocumentUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + discoveryDocumentUri_ = value; onChanged(); return this; @@ -1131,8 +1017,6 @@ public Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value private java.lang.Object discoveryName_ = ""; /** - * - * *
          * The JSON schema name listed in the discovery document.
          * Example: "Project". It will be left unspecified for resources (such as
    @@ -1140,13 +1024,13 @@ public Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value
          * 
    * * string discovery_name = 3; - * * @return The discoveryName. */ public java.lang.String getDiscoveryName() { java.lang.Object ref = discoveryName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryName_ = s; return s; @@ -1155,8 +1039,6 @@ public java.lang.String getDiscoveryName() { } } /** - * - * *
          * The JSON schema name listed in the discovery document.
          * Example: "Project". It will be left unspecified for resources (such as
    @@ -1164,14 +1046,15 @@ public java.lang.String getDiscoveryName() {
          * 
    * * string discovery_name = 3; - * * @return The bytes for discoveryName. */ - public com.google.protobuf.ByteString getDiscoveryNameBytes() { + public com.google.protobuf.ByteString + getDiscoveryNameBytes() { java.lang.Object ref = discoveryName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); discoveryName_ = b; return b; } else { @@ -1179,8 +1062,6 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() { } } /** - * - * *
          * The JSON schema name listed in the discovery document.
          * Example: "Project". It will be left unspecified for resources (such as
    @@ -1188,22 +1069,20 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() {
          * 
    * * string discovery_name = 3; - * * @param value The discoveryName to set. * @return This builder for chaining. */ - public Builder setDiscoveryName(java.lang.String value) { + public Builder setDiscoveryName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + discoveryName_ = value; onChanged(); return this; } /** - * - * *
          * The JSON schema name listed in the discovery document.
          * Example: "Project". It will be left unspecified for resources (such as
    @@ -1211,18 +1090,15 @@ public Builder setDiscoveryName(java.lang.String value) {
          * 
    * * string discovery_name = 3; - * * @return This builder for chaining. */ public Builder clearDiscoveryName() { - + discoveryName_ = getDefaultInstance().getDiscoveryName(); onChanged(); return this; } /** - * - * *
          * The JSON schema name listed in the discovery document.
          * Example: "Project". It will be left unspecified for resources (such as
    @@ -1230,16 +1106,16 @@ public Builder clearDiscoveryName() {
          * 
    * * string discovery_name = 3; - * * @param value The bytes for discoveryName to set. * @return This builder for chaining. */ - public Builder setDiscoveryNameBytes(com.google.protobuf.ByteString value) { + public Builder setDiscoveryNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + discoveryName_ = value; onChanged(); return this; @@ -1247,8 +1123,6 @@ public Builder setDiscoveryNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceUrl_ = ""; /** - * - * *
          * The REST URL for accessing the resource. An HTTP GET operation using this
          * URL returns the resource itself.
    @@ -1258,13 +1132,13 @@ public Builder setDiscoveryNameBytes(com.google.protobuf.ByteString value) {
          * 
    * * string resource_url = 4; - * * @return The resourceUrl. */ public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; @@ -1273,8 +1147,6 @@ public java.lang.String getResourceUrl() { } } /** - * - * *
          * The REST URL for accessing the resource. An HTTP GET operation using this
          * URL returns the resource itself.
    @@ -1284,14 +1156,15 @@ public java.lang.String getResourceUrl() {
          * 
    * * string resource_url = 4; - * * @return The bytes for resourceUrl. */ - public com.google.protobuf.ByteString getResourceUrlBytes() { + public com.google.protobuf.ByteString + getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -1299,8 +1172,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { } } /** - * - * *
          * The REST URL for accessing the resource. An HTTP GET operation using this
          * URL returns the resource itself.
    @@ -1310,22 +1181,20 @@ public com.google.protobuf.ByteString getResourceUrlBytes() {
          * 
    * * string resource_url = 4; - * * @param value The resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrl(java.lang.String value) { + public Builder setResourceUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceUrl_ = value; onChanged(); return this; } /** - * - * *
          * The REST URL for accessing the resource. An HTTP GET operation using this
          * URL returns the resource itself.
    @@ -1335,18 +1204,15 @@ public Builder setResourceUrl(java.lang.String value) {
          * 
    * * string resource_url = 4; - * * @return This builder for chaining. */ public Builder clearResourceUrl() { - + resourceUrl_ = getDefaultInstance().getResourceUrl(); onChanged(); return this; } /** - * - * *
          * The REST URL for accessing the resource. An HTTP GET operation using this
          * URL returns the resource itself.
    @@ -1356,16 +1222,16 @@ public Builder clearResourceUrl() {
          * 
    * * string resource_url = 4; - * * @param value The bytes for resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { + public Builder setResourceUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceUrl_ = value; onChanged(); return this; @@ -1373,8 +1239,6 @@ public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object parent_ = ""; /** - * - * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1388,13 +1252,13 @@ public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) {
          * 
    * * string parent = 5; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1403,8 +1267,6 @@ public java.lang.String getParent() { } } /** - * - * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1418,14 +1280,15 @@ public java.lang.String getParent() {
          * 
    * * string parent = 5; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1433,8 +1296,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1448,22 +1309,20 @@ public com.google.protobuf.ByteString getParentBytes() {
          * 
    * * string parent = 5; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1477,18 +1336,15 @@ public Builder setParent(java.lang.String value) {
          * 
    * * string parent = 5; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1502,16 +1358,16 @@ public Builder clearParent() {
          * 
    * * string parent = 5; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1519,35 +1375,26 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Struct data_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - dataBuilder_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> dataBuilder_; /** - * - * *
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
          * 
    * * .google.protobuf.Struct data = 6; - * * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** - * - * *
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
          * 
    * * .google.protobuf.Struct data = 6; - * * @return The data. */ public com.google.protobuf.Struct getData() { @@ -1558,8 +1405,6 @@ public com.google.protobuf.Struct getData() { } } /** - * - * *
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1581,8 +1426,6 @@ public Builder setData(com.google.protobuf.Struct value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1590,7 +1433,8 @@ public Builder setData(com.google.protobuf.Struct value) {
          *
          * .google.protobuf.Struct data = 6;
          */
    -    public Builder setData(com.google.protobuf.Struct.Builder builderForValue) {
    +    public Builder setData(
    +        com.google.protobuf.Struct.Builder builderForValue) {
           if (dataBuilder_ == null) {
             data_ = builderForValue.build();
             onChanged();
    @@ -1601,8 +1445,6 @@ public Builder setData(com.google.protobuf.Struct.Builder builderForValue) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1613,7 +1455,8 @@ public Builder setData(com.google.protobuf.Struct.Builder builderForValue) {
         public Builder mergeData(com.google.protobuf.Struct value) {
           if (dataBuilder_ == null) {
             if (data_ != null) {
    -          data_ = com.google.protobuf.Struct.newBuilder(data_).mergeFrom(value).buildPartial();
    +          data_ =
    +            com.google.protobuf.Struct.newBuilder(data_).mergeFrom(value).buildPartial();
             } else {
               data_ = value;
             }
    @@ -1625,8 +1468,6 @@ public Builder mergeData(com.google.protobuf.Struct value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1646,8 +1487,6 @@ public Builder clearData() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1656,13 +1495,11 @@ public Builder clearData() {
          * .google.protobuf.Struct data = 6;
          */
         public com.google.protobuf.Struct.Builder getDataBuilder() {
    -
    +      
           onChanged();
           return getDataFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1674,12 +1511,11 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
           if (dataBuilder_ != null) {
             return dataBuilder_.getMessageOrBuilder();
           } else {
    -        return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_;
    +        return data_ == null ?
    +            com.google.protobuf.Struct.getDefaultInstance() : data_;
           }
         }
         /**
    -     *
    -     *
          * 
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1688,23 +1524,21 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
          * .google.protobuf.Struct data = 6;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Struct,
    -            com.google.protobuf.Struct.Builder,
    -            com.google.protobuf.StructOrBuilder>
    +        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
             getDataFieldBuilder() {
           if (dataBuilder_ == null) {
    -        dataBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.protobuf.Struct,
    -                com.google.protobuf.Struct.Builder,
    -                com.google.protobuf.StructOrBuilder>(getData(), getParentForChildren(), isClean());
    +        dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
    +                getData(),
    +                getParentForChildren(),
    +                isClean());
             data_ = null;
           }
           return dataBuilder_;
         }
    -
         @java.lang.Override
    -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(
    +        final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -1714,12 +1548,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    +
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p5beta1.Resource)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p5beta1.Resource)
       private static final com.google.cloud.asset.v1p5beta1.Resource DEFAULT_INSTANCE;
    -
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1p5beta1.Resource();
       }
    @@ -1728,16 +1562,27 @@ public static com.google.cloud.asset.v1p5beta1.Resource getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  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);
    -        }
    -      };
    +  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 {
    +      Builder builder = newBuilder();
    +      try {
    +        builder.mergeFrom(input, extensionRegistry);
    +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +        throw e.setUnfinishedMessage(builder.buildPartial());
    +      } catch (com.google.protobuf.UninitializedMessageException e) {
    +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +      } catch (java.io.IOException e) {
    +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +            .setUnfinishedMessage(builder.buildPartial());
    +      }
    +      return builder.buildPartial();
    +    }
    +  };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1752,4 +1597,6 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1p5beta1.Resource getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    +
     }
    +
    diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ResourceOrBuilder.java b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ResourceOrBuilder.java
    similarity index 81%
    rename from java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ResourceOrBuilder.java
    rename to owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ResourceOrBuilder.java
    index 72bcad395aab..175f61af1448 100644
    --- a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ResourceOrBuilder.java
    +++ b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ResourceOrBuilder.java
    @@ -1,56 +1,33 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1p5beta1/assets.proto
     
     package com.google.cloud.asset.v1p5beta1;
     
    -public interface ResourceOrBuilder
    -    extends
    +public interface ResourceOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p5beta1.Resource)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    -   *
    -   *
        * 
        * The API version. Example: "v1".
        * 
    * * string version = 1; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
        * The API version. Example: "v1".
        * 
    * * string version = 1; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
        * The URL of the discovery document containing the resource's JSON schema.
        * For example:
    @@ -60,13 +37,10 @@ public interface ResourceOrBuilder
        * 
    * * string discovery_document_uri = 2; - * * @return The discoveryDocumentUri. */ java.lang.String getDiscoveryDocumentUri(); /** - * - * *
        * The URL of the discovery document containing the resource's JSON schema.
        * For example:
    @@ -76,14 +50,12 @@ public interface ResourceOrBuilder
        * 
    * * string discovery_document_uri = 2; - * * @return The bytes for discoveryDocumentUri. */ - com.google.protobuf.ByteString getDiscoveryDocumentUriBytes(); + com.google.protobuf.ByteString + getDiscoveryDocumentUriBytes(); /** - * - * *
        * The JSON schema name listed in the discovery document.
        * Example: "Project". It will be left unspecified for resources (such as
    @@ -91,13 +63,10 @@ public interface ResourceOrBuilder
        * 
    * * string discovery_name = 3; - * * @return The discoveryName. */ java.lang.String getDiscoveryName(); /** - * - * *
        * The JSON schema name listed in the discovery document.
        * Example: "Project". It will be left unspecified for resources (such as
    @@ -105,14 +74,12 @@ public interface ResourceOrBuilder
        * 
    * * string discovery_name = 3; - * * @return The bytes for discoveryName. */ - com.google.protobuf.ByteString getDiscoveryNameBytes(); + com.google.protobuf.ByteString + getDiscoveryNameBytes(); /** - * - * *
        * The REST URL for accessing the resource. An HTTP GET operation using this
        * URL returns the resource itself.
    @@ -122,13 +89,10 @@ public interface ResourceOrBuilder
        * 
    * * string resource_url = 4; - * * @return The resourceUrl. */ java.lang.String getResourceUrl(); /** - * - * *
        * The REST URL for accessing the resource. An HTTP GET operation using this
        * URL returns the resource itself.
    @@ -138,14 +102,12 @@ public interface ResourceOrBuilder
        * 
    * * string resource_url = 4; - * * @return The bytes for resourceUrl. */ - com.google.protobuf.ByteString getResourceUrlBytes(); + com.google.protobuf.ByteString + getResourceUrlBytes(); /** - * - * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -159,13 +121,10 @@ public interface ResourceOrBuilder
        * 
    * * string parent = 5; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -179,40 +138,32 @@ public interface ResourceOrBuilder
        * 
    * * string parent = 5; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
        * The content of the resource, in which some sensitive fields are scrubbed
        * away and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; - * * @return Whether the data field is set. */ boolean hasData(); /** - * - * *
        * The content of the resource, in which some sensitive fields are scrubbed
        * away and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; - * * @return The data. */ com.google.protobuf.Struct getData(); /** - * - * *
        * The content of the resource, in which some sensitive fields are scrubbed
        * away and may not be present.
    diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/proto/google/cloud/asset/v1p5beta1/asset_service.proto b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/proto/google/cloud/asset/v1p5beta1/asset_service.proto
    similarity index 100%
    rename from java-asset/proto-google-cloud-asset-v1p5beta1/src/main/proto/google/cloud/asset/v1p5beta1/asset_service.proto
    rename to owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/proto/google/cloud/asset/v1p5beta1/asset_service.proto
    diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/proto/google/cloud/asset/v1p5beta1/assets.proto b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/proto/google/cloud/asset/v1p5beta1/assets.proto
    similarity index 100%
    rename from java-asset/proto-google-cloud-asset-v1p5beta1/src/main/proto/google/cloud/asset/v1p5beta1/assets.proto
    rename to owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/proto/google/cloud/asset/v1p5beta1/assets.proto
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java
    rename to owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java
    rename to owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetEndpoint.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetEndpoint.java
    rename to owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetEndpoint.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/AsyncListAssets.java b/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/AsyncListAssets.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/AsyncListAssets.java
    rename to owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/AsyncListAssets.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/AsyncListAssetsPaged.java b/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/AsyncListAssetsPaged.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/AsyncListAssetsPaged.java
    rename to owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/AsyncListAssetsPaged.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/SyncListAssets.java b/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/SyncListAssets.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/SyncListAssets.java
    rename to owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/SyncListAssets.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservicesettings/listassets/SyncListAssets.java b/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservicesettings/listassets/SyncListAssets.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservicesettings/listassets/SyncListAssets.java
    rename to owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservicesettings/listassets/SyncListAssets.java
    diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/stub/assetservicestubsettings/listassets/SyncListAssets.java b/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/stub/assetservicestubsettings/listassets/SyncListAssets.java
    similarity index 100%
    rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/stub/assetservicestubsettings/listassets/SyncListAssets.java
    rename to owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/stub/assetservicestubsettings/listassets/SyncListAssets.java
    diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceClient.java b/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceClient.java
    similarity index 100%
    rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceClient.java
    rename to owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceClient.java
    diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceSettings.java b/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceSettings.java
    similarity index 99%
    rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceSettings.java
    rename to owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceSettings.java
    index b962673d1b85..4300c24794e3 100644
    --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceSettings.java
    +++ b/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceSettings.java
    @@ -25,6 +25,7 @@
     import com.google.api.gax.rpc.ClientContext;
     import com.google.api.gax.rpc.ClientSettings;
     import com.google.api.gax.rpc.OperationCallSettings;
    +import com.google.api.gax.rpc.StubSettings;
     import com.google.api.gax.rpc.TransportChannelProvider;
     import com.google.api.gax.rpc.UnaryCallSettings;
     import com.google.cloud.asset.v1p7beta1.stub.AssetServiceStubSettings;
    diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/gapic_metadata.json b/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/gapic_metadata.json
    similarity index 100%
    rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/gapic_metadata.json
    rename to owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/gapic_metadata.json
    diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/package-info.java b/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/package-info.java
    similarity index 100%
    rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/package-info.java
    rename to owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/package-info.java
    diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStub.java b/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStub.java
    similarity index 100%
    rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStub.java
    rename to owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStub.java
    diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStubSettings.java b/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStubSettings.java
    similarity index 100%
    rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStubSettings.java
    rename to owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStubSettings.java
    diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/GrpcAssetServiceCallableFactory.java b/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/GrpcAssetServiceCallableFactory.java
    similarity index 100%
    rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/GrpcAssetServiceCallableFactory.java
    rename to owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/GrpcAssetServiceCallableFactory.java
    diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/GrpcAssetServiceStub.java b/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/GrpcAssetServiceStub.java
    similarity index 99%
    rename from java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/GrpcAssetServiceStub.java
    rename to owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/GrpcAssetServiceStub.java
    index 7afbf3f79796..38f973b48370 100644
    --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/GrpcAssetServiceStub.java
    +++ b/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/GrpcAssetServiceStub.java
    @@ -32,6 +32,7 @@
     import io.grpc.MethodDescriptor;
     import io.grpc.protobuf.ProtoUtils;
     import java.io.IOException;
    +import java.util.Map;
     import java.util.concurrent.TimeUnit;
     import javax.annotation.Generated;
     
    diff --git a/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/AssetServiceClientTest.java b/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/AssetServiceClientTest.java
    similarity index 100%
    rename from java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/AssetServiceClientTest.java
    rename to owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/AssetServiceClientTest.java
    diff --git a/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/MockAssetService.java b/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/MockAssetService.java
    similarity index 100%
    rename from java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/MockAssetService.java
    rename to owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/MockAssetService.java
    diff --git a/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/MockAssetServiceImpl.java b/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/MockAssetServiceImpl.java
    similarity index 100%
    rename from java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/MockAssetServiceImpl.java
    rename to owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/MockAssetServiceImpl.java
    diff --git a/java-asset/grpc-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceGrpc.java b/owl-bot-staging/java-asset/v1p7beta1/grpc-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceGrpc.java
    similarity index 60%
    rename from java-asset/grpc-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceGrpc.java
    rename to owl-bot-staging/java-asset/v1p7beta1/grpc-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceGrpc.java
    index b23942ff3872..c443a291ea1f 100644
    --- a/java-asset/grpc-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceGrpc.java
    +++ b/owl-bot-staging/java-asset/v1p7beta1/grpc-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceGrpc.java
    @@ -1,25 +1,8 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     package com.google.cloud.asset.v1p7beta1;
     
     import static io.grpc.MethodDescriptor.generateFullMethodName;
     
     /**
    - *
    - *
      * 
      * Asset service definition.
      * 
    @@ -35,101 +18,89 @@ private AssetServiceGrpc() {} public static final String SERVICE_NAME = "google.cloud.asset.v1p7beta1.AssetService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p7beta1.ExportAssetsRequest, com.google.longrunning.Operation> - getExportAssetsMethod; + private static volatile io.grpc.MethodDescriptor getExportAssetsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ExportAssets", requestType = com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p7beta1.ExportAssetsRequest, com.google.longrunning.Operation> - getExportAssetsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.asset.v1p7beta1.ExportAssetsRequest, com.google.longrunning.Operation> - getExportAssetsMethod; + public static io.grpc.MethodDescriptor getExportAssetsMethod() { + io.grpc.MethodDescriptor getExportAssetsMethod; if ((getExportAssetsMethod = AssetServiceGrpc.getExportAssetsMethod) == null) { synchronized (AssetServiceGrpc.class) { if ((getExportAssetsMethod = AssetServiceGrpc.getExportAssetsMethod) == null) { - AssetServiceGrpc.getExportAssetsMethod = - getExportAssetsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportAssets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p7beta1.ExportAssetsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ExportAssets")) - .build(); + AssetServiceGrpc.getExportAssetsMethod = getExportAssetsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ExportAssets")) + .build(); } } } return getExportAssetsMethod; } - /** Creates a new async stub that supports all call types for the service */ + /** + * Creates a new async stub that supports all call types for the service + */ public static AssetServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceStub(channel, callOptions); + } + }; return AssetServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static AssetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static AssetServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceBlockingStub(channel, callOptions); + } + }; return AssetServiceBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AssetServiceFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AssetServiceFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceFutureStub(channel, callOptions); + } + }; return AssetServiceFutureStub.newStub(factory, channel); } /** - * - * *
        * Asset service definition.
        * 
    */ - public abstract static class AssetServiceImplBase implements io.grpc.BindableService { + public static abstract class AssetServiceImplBase implements io.grpc.BindableService { /** - * - * *
          * Exports assets with time and resource types to a given Cloud Storage
          * location/BigQuery table. For Cloud Storage location destinations, the
    @@ -144,47 +115,42 @@ public abstract static class AssetServiceImplBase implements io.grpc.BindableSer
          * 5 minutes.
          * 
    */ - public void exportAssets( - com.google.cloud.asset.v1p7beta1.ExportAssetsRequest request, + public void exportAssets(com.google.cloud.asset.v1p7beta1.ExportAssetsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getExportAssetsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportAssetsMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getExportAssetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1p7beta1.ExportAssetsRequest, - com.google.longrunning.Operation>(this, METHODID_EXPORT_ASSETS))) + getExportAssetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1p7beta1.ExportAssetsRequest, + com.google.longrunning.Operation>( + this, METHODID_EXPORT_ASSETS))) .build(); } } /** - * - * *
        * Asset service definition.
        * 
    */ - public static final class AssetServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private AssetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class AssetServiceStub extends io.grpc.stub.AbstractAsyncStub { + private AssetServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected AssetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected AssetServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AssetServiceStub(channel, callOptions); } /** - * - * *
          * Exports assets with time and resource types to a given Cloud Storage
          * location/BigQuery table. For Cloud Storage location destinations, the
    @@ -199,26 +165,21 @@ protected AssetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions ca
          * 5 minutes.
          * 
    */ - public void exportAssets( - com.google.cloud.asset.v1p7beta1.ExportAssetsRequest request, + public void exportAssets(com.google.cloud.asset.v1p7beta1.ExportAssetsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportAssetsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getExportAssetsMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
        * Asset service definition.
        * 
    */ - public static final class AssetServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AssetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class AssetServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private AssetServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -229,8 +190,6 @@ protected AssetServiceBlockingStub build( } /** - * - * *
          * Exports assets with time and resource types to a given Cloud Storage
          * location/BigQuery table. For Cloud Storage location destinations, the
    @@ -245,23 +204,20 @@ protected AssetServiceBlockingStub build(
          * 5 minutes.
          * 
    */ - public com.google.longrunning.Operation exportAssets( - com.google.cloud.asset.v1p7beta1.ExportAssetsRequest request) { + public com.google.longrunning.Operation exportAssets(com.google.cloud.asset.v1p7beta1.ExportAssetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getExportAssetsMethod(), getCallOptions(), request); } } /** - * - * *
        * Asset service definition.
        * 
    */ - public static final class AssetServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AssetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class AssetServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private AssetServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -272,8 +228,6 @@ protected AssetServiceFutureStub build( } /** - * - * *
          * Exports assets with time and resource types to a given Cloud Storage
          * location/BigQuery table. For Cloud Storage location destinations, the
    @@ -288,8 +242,8 @@ protected AssetServiceFutureStub build(
          * 5 minutes.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture - exportAssets(com.google.cloud.asset.v1p7beta1.ExportAssetsRequest request) { + public com.google.common.util.concurrent.ListenableFuture exportAssets( + com.google.cloud.asset.v1p7beta1.ExportAssetsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExportAssetsMethod(), getCallOptions()), request); } @@ -297,11 +251,11 @@ protected AssetServiceFutureStub build( private static final int METHODID_EXPORT_ASSETS = 0; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AssetServiceImplBase serviceImpl; private final int methodId; @@ -315,8 +269,7 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_EXPORT_ASSETS: - serviceImpl.exportAssets( - (com.google.cloud.asset.v1p7beta1.ExportAssetsRequest) request, + serviceImpl.exportAssets((com.google.cloud.asset.v1p7beta1.ExportAssetsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -335,9 +288,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class AssetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class AssetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { AssetServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -379,12 +331,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (AssetServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AssetServiceFileDescriptorSupplier()) - .addMethod(getExportAssetsMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AssetServiceFileDescriptorSupplier()) + .addMethod(getExportAssetsMethod()) + .build(); } } } diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Asset.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Asset.java similarity index 76% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Asset.java rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Asset.java index 522926d21a18..a1185b1910b4 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Asset.java +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Asset.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/assets.proto package com.google.cloud.asset.v1p7beta1; /** - * - * *
      * An asset in Google Cloud. An asset can be any resource in the Google Cloud
      * [resource
    @@ -34,16 +17,15 @@
      *
      * Protobuf type {@code google.cloud.asset.v1p7beta1.Asset}
      */
    -public final class Asset extends com.google.protobuf.GeneratedMessageV3
    -    implements
    +public final class Asset extends
    +    com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.Asset)
         AssetOrBuilder {
    -  private static final long serialVersionUID = 0L;
    +private static final long serialVersionUID = 0L;
       // Use Asset.newBuilder() to construct.
       private Asset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -
       private Asset() {
         name_ = "";
         assetType_ = "";
    @@ -53,250 +35,39 @@ private Asset() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(
    +      UnusedPrivateParameter unused) {
         return new Asset();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet
    +  getUnknownFields() {
         return this.unknownFields;
       }
    -
    -  private Asset(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              name_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              assetType_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              com.google.cloud.asset.v1p7beta1.Resource.Builder subBuilder = null;
    -              if (resource_ != null) {
    -                subBuilder = resource_.toBuilder();
    -              }
    -              resource_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p7beta1.Resource.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(resource_);
    -                resource_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 34:
    -            {
    -              com.google.iam.v1.Policy.Builder subBuilder = null;
    -              if (iamPolicy_ != null) {
    -                subBuilder = iamPolicy_.toBuilder();
    -              }
    -              iamPolicy_ = input.readMessage(com.google.iam.v1.Policy.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(iamPolicy_);
    -                iamPolicy_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 50:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                orgPolicy_ = new java.util.ArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              orgPolicy_.add(
    -                  input.readMessage(
    -                      com.google.cloud.orgpolicy.v1.Policy.parser(), extensionRegistry));
    -              break;
    -            }
    -          case 58:
    -            {
    -              com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder subBuilder = null;
    -              if (accessContextPolicyCase_ == 7) {
    -                subBuilder =
    -                    ((com.google.identity.accesscontextmanager.v1.AccessPolicy)
    -                            accessContextPolicy_)
    -                        .toBuilder();
    -              }
    -              accessContextPolicy_ =
    -                  input.readMessage(
    -                      com.google.identity.accesscontextmanager.v1.AccessPolicy.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(
    -                    (com.google.identity.accesscontextmanager.v1.AccessPolicy)
    -                        accessContextPolicy_);
    -                accessContextPolicy_ = subBuilder.buildPartial();
    -              }
    -              accessContextPolicyCase_ = 7;
    -              break;
    -            }
    -          case 66:
    -            {
    -              com.google.identity.accesscontextmanager.v1.AccessLevel.Builder subBuilder = null;
    -              if (accessContextPolicyCase_ == 8) {
    -                subBuilder =
    -                    ((com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_)
    -                        .toBuilder();
    -              }
    -              accessContextPolicy_ =
    -                  input.readMessage(
    -                      com.google.identity.accesscontextmanager.v1.AccessLevel.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(
    -                    (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_);
    -                accessContextPolicy_ = subBuilder.buildPartial();
    -              }
    -              accessContextPolicyCase_ = 8;
    -              break;
    -            }
    -          case 74:
    -            {
    -              com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder subBuilder =
    -                  null;
    -              if (accessContextPolicyCase_ == 9) {
    -                subBuilder =
    -                    ((com.google.identity.accesscontextmanager.v1.ServicePerimeter)
    -                            accessContextPolicy_)
    -                        .toBuilder();
    -              }
    -              accessContextPolicy_ =
    -                  input.readMessage(
    -                      com.google.identity.accesscontextmanager.v1.ServicePerimeter.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(
    -                    (com.google.identity.accesscontextmanager.v1.ServicePerimeter)
    -                        accessContextPolicy_);
    -                accessContextPolicy_ = subBuilder.buildPartial();
    -              }
    -              accessContextPolicyCase_ = 9;
    -              break;
    -            }
    -          case 82:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
    -                ancestors_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000002;
    -              }
    -              ancestors_.add(s);
    -              break;
    -            }
    -          case 90:
    -            {
    -              com.google.protobuf.Timestamp.Builder subBuilder = null;
    -              if (updateTime_ != null) {
    -                subBuilder = updateTime_.toBuilder();
    -              }
    -              updateTime_ =
    -                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(updateTime_);
    -                updateTime_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 106:
    -            {
    -              com.google.cloud.asset.v1p7beta1.RelatedAssets.Builder subBuilder = null;
    -              if (relatedAssets_ != null) {
    -                subBuilder = relatedAssets_.toBuilder();
    -              }
    -              relatedAssets_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p7beta1.RelatedAssets.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(relatedAssets_);
    -                relatedAssets_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        orgPolicy_ = java.util.Collections.unmodifiableList(orgPolicy_);
    -      }
    -      if (((mutable_bitField0_ & 0x00000002) != 0)) {
    -        ancestors_ = ancestors_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
    -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.cloud.asset.v1p7beta1.AssetProto
    -        .internal_static_google_cloud_asset_v1p7beta1_Asset_descriptor;
    +  public static final com.google.protobuf.Descriptors.Descriptor
    +      getDescriptor() {
    +    return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_Asset_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1p7beta1.AssetProto
    -        .internal_static_google_cloud_asset_v1p7beta1_Asset_fieldAccessorTable
    +    return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_Asset_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1p7beta1.Asset.class,
    -            com.google.cloud.asset.v1p7beta1.Asset.Builder.class);
    +            com.google.cloud.asset.v1p7beta1.Asset.class, com.google.cloud.asset.v1p7beta1.Asset.Builder.class);
       }
     
       private int accessContextPolicyCase_ = 0;
       private java.lang.Object accessContextPolicy_;
    -
       public enum AccessContextPolicyCase
    -      implements
    -          com.google.protobuf.Internal.EnumLite,
    +      implements com.google.protobuf.Internal.EnumLite,
               com.google.protobuf.AbstractMessage.InternalOneOfEnum {
         ACCESS_POLICY(7),
         ACCESS_LEVEL(8),
         SERVICE_PERIMETER(9),
         ACCESSCONTEXTPOLICY_NOT_SET(0);
         private final int value;
    -
         private AccessContextPolicyCase(int value) {
           this.value = value;
         }
    @@ -312,40 +83,33 @@ public static AccessContextPolicyCase valueOf(int value) {
     
         public static AccessContextPolicyCase forNumber(int value) {
           switch (value) {
    -        case 7:
    -          return ACCESS_POLICY;
    -        case 8:
    -          return ACCESS_LEVEL;
    -        case 9:
    -          return SERVICE_PERIMETER;
    -        case 0:
    -          return ACCESSCONTEXTPOLICY_NOT_SET;
    -        default:
    -          return null;
    +        case 7: return ACCESS_POLICY;
    +        case 8: return ACCESS_LEVEL;
    +        case 9: return SERVICE_PERIMETER;
    +        case 0: return ACCESSCONTEXTPOLICY_NOT_SET;
    +        default: return null;
           }
         }
    -
         public int getNumber() {
           return this.value;
         }
       };
     
    -  public AccessContextPolicyCase getAccessContextPolicyCase() {
    -    return AccessContextPolicyCase.forNumber(accessContextPolicyCase_);
    +  public AccessContextPolicyCase
    +  getAccessContextPolicyCase() {
    +    return AccessContextPolicyCase.forNumber(
    +        accessContextPolicyCase_);
       }
     
       public static final int UPDATE_TIME_FIELD_NUMBER = 11;
       private com.google.protobuf.Timestamp updateTime_;
       /**
    -   *
    -   *
        * 
        * The last update timestamp of an asset. update_time is updated when
        * create/update/delete operation is performed.
        * 
    * * .google.protobuf.Timestamp update_time = 11; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -353,15 +117,12 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
        * The last update timestamp of an asset. update_time is updated when
        * create/update/delete operation is performed.
        * 
    * * .google.protobuf.Timestamp update_time = 11; - * * @return The updateTime. */ @java.lang.Override @@ -369,8 +130,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
        * The last update timestamp of an asset. update_time is updated when
        * create/update/delete operation is performed.
    @@ -386,8 +145,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
       public static final int NAME_FIELD_NUMBER = 1;
       private volatile java.lang.Object name_;
       /**
    -   *
    -   *
        * 
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -397,7 +154,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
        * 
    * * string name = 1; - * * @return The name. */ @java.lang.Override @@ -406,15 +162,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -424,15 +179,16 @@ public java.lang.String getName() {
        * 
    * * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -443,8 +199,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ASSET_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object assetType_; /** - * - * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -453,7 +207,6 @@ public com.google.protobuf.ByteString getNameBytes() {
        * 
    * * string asset_type = 2; - * * @return The assetType. */ @java.lang.Override @@ -462,15 +215,14 @@ public java.lang.String getAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; } } /** - * - * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -479,15 +231,16 @@ public java.lang.String getAssetType() {
        * 
    * * string asset_type = 2; - * * @return The bytes for assetType. */ @java.lang.Override - public com.google.protobuf.ByteString getAssetTypeBytes() { + public com.google.protobuf.ByteString + getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetType_ = b; return b; } else { @@ -498,14 +251,11 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.asset.v1p7beta1.Resource resource_; /** - * - * *
        * A representation of the resource.
        * 
    * * .google.cloud.asset.v1p7beta1.Resource resource = 3; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -513,25 +263,18 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
        * A representation of the resource.
        * 
    * * .google.cloud.asset.v1p7beta1.Resource resource = 3; - * * @return The resource. */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.Resource getResource() { - return resource_ == null - ? com.google.cloud.asset.v1p7beta1.Resource.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.asset.v1p7beta1.Resource.getDefaultInstance() : resource_; } /** - * - * *
        * A representation of the resource.
        * 
    @@ -546,8 +289,6 @@ public com.google.cloud.asset.v1p7beta1.ResourceOrBuilder getResourceOrBuilder() public static final int IAM_POLICY_FIELD_NUMBER = 4; private com.google.iam.v1.Policy iamPolicy_; /** - * - * *
        * A representation of the Cloud IAM policy set on a Google Cloud resource.
        * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -561,7 +302,6 @@ public com.google.cloud.asset.v1p7beta1.ResourceOrBuilder getResourceOrBuilder()
        * 
    * * .google.iam.v1.Policy iam_policy = 4; - * * @return Whether the iamPolicy field is set. */ @java.lang.Override @@ -569,8 +309,6 @@ public boolean hasIamPolicy() { return iamPolicy_ != null; } /** - * - * *
        * A representation of the Cloud IAM policy set on a Google Cloud resource.
        * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -584,7 +322,6 @@ public boolean hasIamPolicy() {
        * 
    * * .google.iam.v1.Policy iam_policy = 4; - * * @return The iamPolicy. */ @java.lang.Override @@ -592,8 +329,6 @@ public com.google.iam.v1.Policy getIamPolicy() { return iamPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_; } /** - * - * *
        * A representation of the Cloud IAM policy set on a Google Cloud resource.
        * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -616,8 +351,6 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
       public static final int ORG_POLICY_FIELD_NUMBER = 6;
       private java.util.List orgPolicy_;
       /**
    -   *
    -   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -632,8 +365,6 @@ public java.util.List getOrgPolicyList() {
         return orgPolicy_;
       }
       /**
    -   *
    -   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -644,13 +375,11 @@ public java.util.List getOrgPolicyList() {
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
       @java.lang.Override
    -  public java.util.List
    +  public java.util.List 
           getOrgPolicyOrBuilderList() {
         return orgPolicy_;
       }
       /**
    -   *
    -   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -665,8 +394,6 @@ public int getOrgPolicyCount() {
         return orgPolicy_.size();
       }
       /**
    -   *
    -   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -681,8 +408,6 @@ public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) {
         return orgPolicy_.get(index);
       }
       /**
    -   *
    -   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -693,21 +418,19 @@ public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) {
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
       @java.lang.Override
    -  public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int index) {
    +  public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
    +      int index) {
         return orgPolicy_.get(index);
       }
     
       public static final int ACCESS_POLICY_FIELD_NUMBER = 7;
       /**
    -   *
    -   *
        * 
        * Please also refer to the [access policy user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; - * * @return Whether the accessPolicy field is set. */ @java.lang.Override @@ -715,27 +438,22 @@ public boolean hasAccessPolicy() { return accessContextPolicyCase_ == 7; } /** - * - * *
        * Please also refer to the [access policy user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; - * * @return The accessPolicy. */ @java.lang.Override public com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy() { if (accessContextPolicyCase_ == 7) { - return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_; + return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_; } return com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance(); } /** - * - * *
        * Please also refer to the [access policy user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -744,25 +462,21 @@ public com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy(
        * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
        */
       @java.lang.Override
    -  public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder
    -      getAccessPolicyOrBuilder() {
    +  public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAccessPolicyOrBuilder() {
         if (accessContextPolicyCase_ == 7) {
    -      return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_;
    +       return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_;
         }
         return com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance();
       }
     
       public static final int ACCESS_LEVEL_FIELD_NUMBER = 8;
       /**
    -   *
    -   *
        * 
        * Please also refer to the [access level user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; - * * @return Whether the accessLevel field is set. */ @java.lang.Override @@ -770,27 +484,22 @@ public boolean hasAccessLevel() { return accessContextPolicyCase_ == 8; } /** - * - * *
        * Please also refer to the [access level user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; - * * @return The accessLevel. */ @java.lang.Override public com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel() { if (accessContextPolicyCase_ == 8) { - return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_; + return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_; } return com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance(); } /** - * - * *
        * Please also refer to the [access level user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -799,25 +508,21 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel()
        * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
        */
       @java.lang.Override
    -  public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder
    -      getAccessLevelOrBuilder() {
    +  public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAccessLevelOrBuilder() {
         if (accessContextPolicyCase_ == 8) {
    -      return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_;
    +       return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_;
         }
         return com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance();
       }
     
       public static final int SERVICE_PERIMETER_FIELD_NUMBER = 9;
       /**
    -   *
    -   *
        * 
        * Please also refer to the [service perimeter user
        * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
        * 
    * * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; - * * @return Whether the servicePerimeter field is set. */ @java.lang.Override @@ -825,27 +530,22 @@ public boolean hasServicePerimeter() { return accessContextPolicyCase_ == 9; } /** - * - * *
        * Please also refer to the [service perimeter user
        * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
        * 
    * * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; - * * @return The servicePerimeter. */ @java.lang.Override public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter() { if (accessContextPolicyCase_ == 9) { - return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_; + return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_; } return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance(); } /** - * - * *
        * Please also refer to the [service perimeter user
        * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -854,10 +554,9 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePe
        * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
        */
       @java.lang.Override
    -  public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder
    -      getServicePerimeterOrBuilder() {
    +  public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder getServicePerimeterOrBuilder() {
         if (accessContextPolicyCase_ == 9) {
    -      return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_;
    +       return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_;
         }
         return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
       }
    @@ -865,15 +564,12 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePe
       public static final int RELATED_ASSETS_FIELD_NUMBER = 13;
       private com.google.cloud.asset.v1p7beta1.RelatedAssets relatedAssets_;
       /**
    -   *
    -   *
        * 
        * The related assets of the asset of one relationship type.
        * One asset only represents one type of relationship.
        * 
    * * .google.cloud.asset.v1p7beta1.RelatedAssets related_assets = 13; - * * @return Whether the relatedAssets field is set. */ @java.lang.Override @@ -881,26 +577,19 @@ public boolean hasRelatedAssets() { return relatedAssets_ != null; } /** - * - * *
        * The related assets of the asset of one relationship type.
        * One asset only represents one type of relationship.
        * 
    * * .google.cloud.asset.v1p7beta1.RelatedAssets related_assets = 13; - * * @return The relatedAssets. */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.RelatedAssets getRelatedAssets() { - return relatedAssets_ == null - ? com.google.cloud.asset.v1p7beta1.RelatedAssets.getDefaultInstance() - : relatedAssets_; + return relatedAssets_ == null ? com.google.cloud.asset.v1p7beta1.RelatedAssets.getDefaultInstance() : relatedAssets_; } /** - * - * *
        * The related assets of the asset of one relationship type.
        * One asset only represents one type of relationship.
    @@ -916,8 +605,6 @@ public com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder getRelatedAssetsO
       public static final int ANCESTORS_FIELD_NUMBER = 10;
       private com.google.protobuf.LazyStringList ancestors_;
       /**
    -   *
    -   *
        * 
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -929,15 +616,13 @@ public com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder getRelatedAssetsO
        * 
    * * repeated string ancestors = 10; - * * @return A list containing the ancestors. */ - public com.google.protobuf.ProtocolStringList getAncestorsList() { + public com.google.protobuf.ProtocolStringList + getAncestorsList() { return ancestors_; } /** - * - * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -949,15 +634,12 @@ public com.google.protobuf.ProtocolStringList getAncestorsList() {
        * 
    * * repeated string ancestors = 10; - * * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); } /** - * - * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -969,7 +651,6 @@ public int getAncestorsCount() {
        * 
    * * repeated string ancestors = 10; - * * @param index The index of the element to return. * @return The ancestors at the given index. */ @@ -977,8 +658,6 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** - * - * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -990,16 +669,15 @@ public java.lang.String getAncestors(int index) {
        * 
    * * repeated string ancestors = 10; - * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - public com.google.protobuf.ByteString getAncestorsBytes(int index) { + public com.google.protobuf.ByteString + getAncestorsBytes(int index) { return ancestors_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1011,7 +689,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1028,16 +707,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(6, orgPolicy_.get(i)); } if (accessContextPolicyCase_ == 7) { - output.writeMessage( - 7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); + output.writeMessage(7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); } if (accessContextPolicyCase_ == 8) { - output.writeMessage( - 8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); + output.writeMessage(8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); } if (accessContextPolicyCase_ == 9) { - output.writeMessage( - 9, (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); + output.writeMessage(9, (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); } for (int i = 0; i < ancestors_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, ancestors_.getRaw(i)); @@ -1048,7 +724,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (relatedAssets_ != null) { output.writeMessage(13, getRelatedAssets()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1064,29 +740,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, assetType_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResource()); } if (iamPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIamPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getIamPolicy()); } for (int i = 0; i < orgPolicy_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, orgPolicy_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, orgPolicy_.get(i)); } if (accessContextPolicyCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); } if (accessContextPolicyCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); } if (accessContextPolicyCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, - (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); } { int dataSize = 0; @@ -1097,12 +772,14 @@ public int getSerializedSize() { size += 1 * getAncestorsList().size(); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getUpdateTime()); } if (relatedAssets_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getRelatedAssets()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getRelatedAssets()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1110,7 +787,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p7beta1.Asset)) { return super.equals(obj); @@ -1119,39 +796,50 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!getName().equals(other.getName())) return false; - if (!getAssetType().equals(other.getAssetType())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getAssetType() + .equals(other.getAssetType())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } if (hasIamPolicy() != other.hasIamPolicy()) return false; if (hasIamPolicy()) { - if (!getIamPolicy().equals(other.getIamPolicy())) return false; + if (!getIamPolicy() + .equals(other.getIamPolicy())) return false; } - if (!getOrgPolicyList().equals(other.getOrgPolicyList())) return false; + if (!getOrgPolicyList() + .equals(other.getOrgPolicyList())) return false; if (hasRelatedAssets() != other.hasRelatedAssets()) return false; if (hasRelatedAssets()) { - if (!getRelatedAssets().equals(other.getRelatedAssets())) return false; + if (!getRelatedAssets() + .equals(other.getRelatedAssets())) return false; } - if (!getAncestorsList().equals(other.getAncestorsList())) return false; + if (!getAncestorsList() + .equals(other.getAncestorsList())) return false; if (!getAccessContextPolicyCase().equals(other.getAccessContextPolicyCase())) return false; switch (accessContextPolicyCase_) { case 7: - if (!getAccessPolicy().equals(other.getAccessPolicy())) return false; + if (!getAccessPolicy() + .equals(other.getAccessPolicy())) return false; break; case 8: - if (!getAccessLevel().equals(other.getAccessLevel())) return false; + if (!getAccessLevel() + .equals(other.getAccessLevel())) return false; break; case 9: - if (!getServicePerimeter().equals(other.getServicePerimeter())) return false; + if (!getServicePerimeter() + .equals(other.getServicePerimeter())) return false; break; case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1206,109 +894,102 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1p7beta1.Asset parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p7beta1.Asset parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.Asset parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.Asset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.Asset 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.asset.v1p7beta1.Asset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.Asset parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.Asset parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.Asset parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.Asset parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.Asset parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.Asset parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.Asset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.Asset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * An asset in Google Cloud. An asset can be any resource in the Google Cloud
        * [resource
    @@ -1322,41 +1003,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        * Protobuf type {@code google.cloud.asset.v1p7beta1.Asset}
        */
    -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    -      implements
    +  public static final class Builder extends
    +      com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.Asset)
           com.google.cloud.asset.v1p7beta1.AssetOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.cloud.asset.v1p7beta1.AssetProto
    -          .internal_static_google_cloud_asset_v1p7beta1_Asset_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor
    +        getDescriptor() {
    +      return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_Asset_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1p7beta1.AssetProto
    -          .internal_static_google_cloud_asset_v1p7beta1_Asset_fieldAccessorTable
    +      return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_Asset_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1p7beta1.Asset.class,
    -              com.google.cloud.asset.v1p7beta1.Asset.Builder.class);
    +              com.google.cloud.asset.v1p7beta1.Asset.class, com.google.cloud.asset.v1p7beta1.Asset.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1p7beta1.Asset.newBuilder()
         private Builder() {
    -      maybeForceBuilderInitialization();
    +
         }
     
    -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(
    +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
     
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getOrgPolicyFieldBuilder();
    -      }
         }
    -
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -1384,10 +1057,20 @@ public Builder clear() {
           }
           if (orgPolicyBuilder_ == null) {
             orgPolicy_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        orgPolicy_ = null;
             orgPolicyBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
    +      if (accessPolicyBuilder_ != null) {
    +        accessPolicyBuilder_.clear();
    +      }
    +      if (accessLevelBuilder_ != null) {
    +        accessLevelBuilder_.clear();
    +      }
    +      if (servicePerimeterBuilder_ != null) {
    +        servicePerimeterBuilder_.clear();
    +      }
           if (relatedAssetsBuilder_ == null) {
             relatedAssets_ = null;
           } else {
    @@ -1402,9 +1085,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.cloud.asset.v1p7beta1.AssetProto
    -          .internal_static_google_cloud_asset_v1p7beta1_Asset_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor
    +        getDescriptorForType() {
    +      return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_Asset_descriptor;
         }
     
         @java.lang.Override
    @@ -1423,8 +1106,7 @@ public com.google.cloud.asset.v1p7beta1.Asset build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1p7beta1.Asset buildPartial() {
    -      com.google.cloud.asset.v1p7beta1.Asset result =
    -          new com.google.cloud.asset.v1p7beta1.Asset(this);
    +      com.google.cloud.asset.v1p7beta1.Asset result = new com.google.cloud.asset.v1p7beta1.Asset(this);
           int from_bitField0_ = bitField0_;
           if (updateTimeBuilder_ == null) {
             result.updateTime_ = updateTime_;
    @@ -1492,39 +1174,38 @@ public com.google.cloud.asset.v1p7beta1.Asset buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    -
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1p7beta1.Asset) {
    -        return mergeFrom((com.google.cloud.asset.v1p7beta1.Asset) other);
    +        return mergeFrom((com.google.cloud.asset.v1p7beta1.Asset)other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -1568,10 +1249,9 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.Asset other) {
                 orgPolicyBuilder_ = null;
                 orgPolicy_ = other.orgPolicy_;
                 bitField0_ = (bitField0_ & ~0x00000001);
    -            orgPolicyBuilder_ =
    -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
    -                    ? getOrgPolicyFieldBuilder()
    -                    : null;
    +            orgPolicyBuilder_ = 
    +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
    +                 getOrgPolicyFieldBuilder() : null;
               } else {
                 orgPolicyBuilder_.addAllMessages(other.orgPolicy_);
               }
    @@ -1591,27 +1271,23 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.Asset other) {
             onChanged();
           }
           switch (other.getAccessContextPolicyCase()) {
    -        case ACCESS_POLICY:
    -          {
    -            mergeAccessPolicy(other.getAccessPolicy());
    -            break;
    -          }
    -        case ACCESS_LEVEL:
    -          {
    -            mergeAccessLevel(other.getAccessLevel());
    -            break;
    -          }
    -        case SERVICE_PERIMETER:
    -          {
    -            mergeServicePerimeter(other.getServicePerimeter());
    -            break;
    -          }
    -        case ACCESSCONTEXTPOLICY_NOT_SET:
    -          {
    -            break;
    -          }
    +        case ACCESS_POLICY: {
    +          mergeAccessPolicy(other.getAccessPolicy());
    +          break;
    +        }
    +        case ACCESS_LEVEL: {
    +          mergeAccessLevel(other.getAccessLevel());
    +          break;
    +        }
    +        case SERVICE_PERIMETER: {
    +          mergeServicePerimeter(other.getServicePerimeter());
    +          break;
    +        }
    +        case ACCESSCONTEXTPOLICY_NOT_SET: {
    +          break;
    +        }
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -1626,25 +1302,116 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p7beta1.Asset parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10: {
    +              name_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 10
    +            case 18: {
    +              assetType_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 18
    +            case 26: {
    +              input.readMessage(
    +                  getResourceFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 26
    +            case 34: {
    +              input.readMessage(
    +                  getIamPolicyFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 34
    +            case 50: {
    +              com.google.cloud.orgpolicy.v1.Policy m =
    +                  input.readMessage(
    +                      com.google.cloud.orgpolicy.v1.Policy.parser(),
    +                      extensionRegistry);
    +              if (orgPolicyBuilder_ == null) {
    +                ensureOrgPolicyIsMutable();
    +                orgPolicy_.add(m);
    +              } else {
    +                orgPolicyBuilder_.addMessage(m);
    +              }
    +              break;
    +            } // case 50
    +            case 58: {
    +              input.readMessage(
    +                  getAccessPolicyFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +              accessContextPolicyCase_ = 7;
    +              break;
    +            } // case 58
    +            case 66: {
    +              input.readMessage(
    +                  getAccessLevelFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +              accessContextPolicyCase_ = 8;
    +              break;
    +            } // case 66
    +            case 74: {
    +              input.readMessage(
    +                  getServicePerimeterFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +              accessContextPolicyCase_ = 9;
    +              break;
    +            } // case 74
    +            case 82: {
    +              java.lang.String s = input.readStringRequireUtf8();
    +              ensureAncestorsIsMutable();
    +              ancestors_.add(s);
    +              break;
    +            } // case 82
    +            case 90: {
    +              input.readMessage(
    +                  getUpdateTimeFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 90
    +            case 106: {
    +              input.readMessage(
    +                  getRelatedAssetsFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 106
    +            default: {
    +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                done = true; // was an endgroup tag
    +              }
    +              break;
    +            } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p7beta1.Asset) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
    -
         private int accessContextPolicyCase_ = 0;
         private java.lang.Object accessContextPolicy_;
    -
    -    public AccessContextPolicyCase getAccessContextPolicyCase() {
    -      return AccessContextPolicyCase.forNumber(accessContextPolicyCase_);
    +    public AccessContextPolicyCase
    +        getAccessContextPolicyCase() {
    +      return AccessContextPolicyCase.forNumber(
    +          accessContextPolicyCase_);
         }
     
         public Builder clearAccessContextPolicy() {
    @@ -1658,49 +1425,36 @@ public Builder clearAccessContextPolicy() {
     
         private com.google.protobuf.Timestamp updateTime_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp,
    -            com.google.protobuf.Timestamp.Builder,
    -            com.google.protobuf.TimestampOrBuilder>
    -        updateTimeBuilder_;
    +        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_;
         /**
    -     *
    -     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
          * 
    * * .google.protobuf.Timestamp update_time = 11; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
          * 
    * * .google.protobuf.Timestamp update_time = 11; - * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1722,8 +1476,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1731,7 +1483,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
          *
          * .google.protobuf.Timestamp update_time = 11;
          */
    -    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
    +    public Builder setUpdateTime(
    +        com.google.protobuf.Timestamp.Builder builderForValue) {
           if (updateTimeBuilder_ == null) {
             updateTime_ = builderForValue.build();
             onChanged();
    @@ -1742,8 +1495,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1755,7 +1506,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
           if (updateTimeBuilder_ == null) {
             if (updateTime_ != null) {
               updateTime_ =
    -              com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
    +            com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
             } else {
               updateTime_ = value;
             }
    @@ -1767,8 +1518,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1788,8 +1537,6 @@ public Builder clearUpdateTime() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1798,13 +1545,11 @@ public Builder clearUpdateTime() {
          * .google.protobuf.Timestamp update_time = 11;
          */
         public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
    -
    +      
           onChanged();
           return getUpdateTimeFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1816,14 +1561,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
           if (updateTimeBuilder_ != null) {
             return updateTimeBuilder_.getMessageOrBuilder();
           } else {
    -        return updateTime_ == null
    -            ? com.google.protobuf.Timestamp.getDefaultInstance()
    -            : updateTime_;
    +        return updateTime_ == null ?
    +            com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
           }
         }
         /**
    -     *
    -     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1832,17 +1574,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
          * .google.protobuf.Timestamp update_time = 11;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp,
    -            com.google.protobuf.Timestamp.Builder,
    -            com.google.protobuf.TimestampOrBuilder>
    +        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
             getUpdateTimeFieldBuilder() {
           if (updateTimeBuilder_ == null) {
    -        updateTimeBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.protobuf.Timestamp,
    -                com.google.protobuf.Timestamp.Builder,
    -                com.google.protobuf.TimestampOrBuilder>(
    -                getUpdateTime(), getParentForChildren(), isClean());
    +        updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    +                getUpdateTime(),
    +                getParentForChildren(),
    +                isClean());
             updateTime_ = null;
           }
           return updateTimeBuilder_;
    @@ -1850,8 +1589,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
     
         private java.lang.Object name_ = "";
         /**
    -     *
    -     *
          * 
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -1861,13 +1598,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
          * 
    * * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1876,8 +1613,6 @@ public java.lang.String getName() { } } /** - * - * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -1887,14 +1622,15 @@ public java.lang.String getName() {
          * 
    * * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1902,8 +1638,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -1913,22 +1647,20 @@ public com.google.protobuf.ByteString getNameBytes() {
          * 
    * * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -1938,18 +1670,15 @@ public Builder setName(java.lang.String value) {
          * 
    * * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -1959,16 +1688,16 @@ public Builder clearName() {
          * 
    * * 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); - + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1976,8 +1705,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object assetType_ = ""; /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -1986,13 +1713,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
          * 
    * * string asset_type = 2; - * * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; @@ -2001,8 +1728,6 @@ public java.lang.String getAssetType() { } } /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -2011,14 +1736,15 @@ public java.lang.String getAssetType() {
          * 
    * * string asset_type = 2; - * * @return The bytes for assetType. */ - public com.google.protobuf.ByteString getAssetTypeBytes() { + public com.google.protobuf.ByteString + getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetType_ = b; return b; } else { @@ -2026,8 +1752,6 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { } } /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -2036,22 +1760,20 @@ public com.google.protobuf.ByteString getAssetTypeBytes() {
          * 
    * * string asset_type = 2; - * * @param value The assetType to set. * @return This builder for chaining. */ - public Builder setAssetType(java.lang.String value) { + public Builder setAssetType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + assetType_ = value; onChanged(); return this; } /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -2060,18 +1782,15 @@ public Builder setAssetType(java.lang.String value) {
          * 
    * * string asset_type = 2; - * * @return This builder for chaining. */ public Builder clearAssetType() { - + assetType_ = getDefaultInstance().getAssetType(); onChanged(); return this; } /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -2080,16 +1799,16 @@ public Builder clearAssetType() {
          * 
    * * string asset_type = 2; - * * @param value The bytes for assetType to set. * @return This builder for chaining. */ - public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { + public Builder setAssetTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; onChanged(); return this; @@ -2097,47 +1816,34 @@ public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { private com.google.cloud.asset.v1p7beta1.Resource resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.Resource, - com.google.cloud.asset.v1p7beta1.Resource.Builder, - com.google.cloud.asset.v1p7beta1.ResourceOrBuilder> - resourceBuilder_; + com.google.cloud.asset.v1p7beta1.Resource, com.google.cloud.asset.v1p7beta1.Resource.Builder, com.google.cloud.asset.v1p7beta1.ResourceOrBuilder> resourceBuilder_; /** - * - * *
          * A representation of the resource.
          * 
    * * .google.cloud.asset.v1p7beta1.Resource resource = 3; - * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** - * - * *
          * A representation of the resource.
          * 
    * * .google.cloud.asset.v1p7beta1.Resource resource = 3; - * * @return The resource. */ public com.google.cloud.asset.v1p7beta1.Resource getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.cloud.asset.v1p7beta1.Resource.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.asset.v1p7beta1.Resource.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
          * A representation of the resource.
          * 
    @@ -2158,15 +1864,14 @@ public Builder setResource(com.google.cloud.asset.v1p7beta1.Resource value) { return this; } /** - * - * *
          * A representation of the resource.
          * 
    * * .google.cloud.asset.v1p7beta1.Resource resource = 3; */ - public Builder setResource(com.google.cloud.asset.v1p7beta1.Resource.Builder builderForValue) { + public Builder setResource( + com.google.cloud.asset.v1p7beta1.Resource.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -2177,8 +1882,6 @@ public Builder setResource(com.google.cloud.asset.v1p7beta1.Resource.Builder bui return this; } /** - * - * *
          * A representation of the resource.
          * 
    @@ -2189,9 +1892,7 @@ public Builder mergeResource(com.google.cloud.asset.v1p7beta1.Resource value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.asset.v1p7beta1.Resource.newBuilder(resource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1p7beta1.Resource.newBuilder(resource_).mergeFrom(value).buildPartial(); } else { resource_ = value; } @@ -2203,8 +1904,6 @@ public Builder mergeResource(com.google.cloud.asset.v1p7beta1.Resource value) { return this; } /** - * - * *
          * A representation of the resource.
          * 
    @@ -2223,8 +1922,6 @@ public Builder clearResource() { return this; } /** - * - * *
          * A representation of the resource.
          * 
    @@ -2232,13 +1929,11 @@ public Builder clearResource() { * .google.cloud.asset.v1p7beta1.Resource resource = 3; */ public com.google.cloud.asset.v1p7beta1.Resource.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** - * - * *
          * A representation of the resource.
          * 
    @@ -2249,14 +1944,11 @@ public com.google.cloud.asset.v1p7beta1.ResourceOrBuilder getResourceOrBuilder() if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null - ? com.google.cloud.asset.v1p7beta1.Resource.getDefaultInstance() - : resource_; + return resource_ == null ? + com.google.cloud.asset.v1p7beta1.Resource.getDefaultInstance() : resource_; } } /** - * - * *
          * A representation of the resource.
          * 
    @@ -2264,17 +1956,14 @@ public com.google.cloud.asset.v1p7beta1.ResourceOrBuilder getResourceOrBuilder() * .google.cloud.asset.v1p7beta1.Resource resource = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.Resource, - com.google.cloud.asset.v1p7beta1.Resource.Builder, - com.google.cloud.asset.v1p7beta1.ResourceOrBuilder> + com.google.cloud.asset.v1p7beta1.Resource, com.google.cloud.asset.v1p7beta1.Resource.Builder, com.google.cloud.asset.v1p7beta1.ResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.Resource, - com.google.cloud.asset.v1p7beta1.Resource.Builder, - com.google.cloud.asset.v1p7beta1.ResourceOrBuilder>( - getResource(), getParentForChildren(), isClean()); + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p7beta1.Resource, com.google.cloud.asset.v1p7beta1.Resource.Builder, com.google.cloud.asset.v1p7beta1.ResourceOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); resource_ = null; } return resourceBuilder_; @@ -2282,13 +1971,8 @@ public com.google.cloud.asset.v1p7beta1.ResourceOrBuilder getResourceOrBuilder() private com.google.iam.v1.Policy iamPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, - com.google.iam.v1.Policy.Builder, - com.google.iam.v1.PolicyOrBuilder> - iamPolicyBuilder_; + com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> iamPolicyBuilder_; /** - * - * *
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2302,15 +1986,12 @@ public com.google.cloud.asset.v1p7beta1.ResourceOrBuilder getResourceOrBuilder()
          * 
    * * .google.iam.v1.Policy iam_policy = 4; - * * @return Whether the iamPolicy field is set. */ public boolean hasIamPolicy() { return iamPolicyBuilder_ != null || iamPolicy_ != null; } /** - * - * *
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2324,7 +2005,6 @@ public boolean hasIamPolicy() {
          * 
    * * .google.iam.v1.Policy iam_policy = 4; - * * @return The iamPolicy. */ public com.google.iam.v1.Policy getIamPolicy() { @@ -2335,8 +2015,6 @@ public com.google.iam.v1.Policy getIamPolicy() { } } /** - * - * *
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2365,8 +2043,6 @@ public Builder setIamPolicy(com.google.iam.v1.Policy value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2381,7 +2057,8 @@ public Builder setIamPolicy(com.google.iam.v1.Policy value) {
          *
          * .google.iam.v1.Policy iam_policy = 4;
          */
    -    public Builder setIamPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
    +    public Builder setIamPolicy(
    +        com.google.iam.v1.Policy.Builder builderForValue) {
           if (iamPolicyBuilder_ == null) {
             iamPolicy_ = builderForValue.build();
             onChanged();
    @@ -2392,8 +2069,6 @@ public Builder setIamPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2412,7 +2087,7 @@ public Builder mergeIamPolicy(com.google.iam.v1.Policy value) {
           if (iamPolicyBuilder_ == null) {
             if (iamPolicy_ != null) {
               iamPolicy_ =
    -              com.google.iam.v1.Policy.newBuilder(iamPolicy_).mergeFrom(value).buildPartial();
    +            com.google.iam.v1.Policy.newBuilder(iamPolicy_).mergeFrom(value).buildPartial();
             } else {
               iamPolicy_ = value;
             }
    @@ -2424,8 +2099,6 @@ public Builder mergeIamPolicy(com.google.iam.v1.Policy value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2452,8 +2125,6 @@ public Builder clearIamPolicy() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2469,13 +2140,11 @@ public Builder clearIamPolicy() {
          * .google.iam.v1.Policy iam_policy = 4;
          */
         public com.google.iam.v1.Policy.Builder getIamPolicyBuilder() {
    -
    +      
           onChanged();
           return getIamPolicyFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2494,12 +2163,11 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
           if (iamPolicyBuilder_ != null) {
             return iamPolicyBuilder_.getMessageOrBuilder();
           } else {
    -        return iamPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_;
    +        return iamPolicy_ == null ?
    +            com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_;
           }
         }
         /**
    -     *
    -     *
          * 
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2515,41 +2183,32 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
          * .google.iam.v1.Policy iam_policy = 4;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.iam.v1.Policy,
    -            com.google.iam.v1.Policy.Builder,
    -            com.google.iam.v1.PolicyOrBuilder>
    +        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> 
             getIamPolicyFieldBuilder() {
           if (iamPolicyBuilder_ == null) {
    -        iamPolicyBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.iam.v1.Policy,
    -                com.google.iam.v1.Policy.Builder,
    -                com.google.iam.v1.PolicyOrBuilder>(
    -                getIamPolicy(), getParentForChildren(), isClean());
    +        iamPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>(
    +                getIamPolicy(),
    +                getParentForChildren(),
    +                isClean());
             iamPolicy_ = null;
           }
           return iamPolicyBuilder_;
         }
     
         private java.util.List orgPolicy_ =
    -        java.util.Collections.emptyList();
    -
    +      java.util.Collections.emptyList();
         private void ensureOrgPolicyIsMutable() {
           if (!((bitField0_ & 0x00000001) != 0)) {
             orgPolicy_ = new java.util.ArrayList(orgPolicy_);
             bitField0_ |= 0x00000001;
    -      }
    +       }
         }
     
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.orgpolicy.v1.Policy,
    -            com.google.cloud.orgpolicy.v1.Policy.Builder,
    -            com.google.cloud.orgpolicy.v1.PolicyOrBuilder>
    -        orgPolicyBuilder_;
    +        com.google.cloud.orgpolicy.v1.Policy, com.google.cloud.orgpolicy.v1.Policy.Builder, com.google.cloud.orgpolicy.v1.PolicyOrBuilder> orgPolicyBuilder_;
     
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2567,8 +2226,6 @@ public java.util.List getOrgPolicyList() {
           }
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2586,8 +2243,6 @@ public int getOrgPolicyCount() {
           }
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2605,8 +2260,6 @@ public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) {
           }
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2616,7 +2269,8 @@ public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) {
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public Builder setOrgPolicy(int index, com.google.cloud.orgpolicy.v1.Policy value) {
    +    public Builder setOrgPolicy(
    +        int index, com.google.cloud.orgpolicy.v1.Policy value) {
           if (orgPolicyBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -2630,8 +2284,6 @@ public Builder setOrgPolicy(int index, com.google.cloud.orgpolicy.v1.Policy valu
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2653,8 +2305,6 @@ public Builder setOrgPolicy(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2678,8 +2328,6 @@ public Builder addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2689,7 +2337,8 @@ public Builder addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy value) {
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public Builder addOrgPolicy(int index, com.google.cloud.orgpolicy.v1.Policy value) {
    +    public Builder addOrgPolicy(
    +        int index, com.google.cloud.orgpolicy.v1.Policy value) {
           if (orgPolicyBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -2703,8 +2352,6 @@ public Builder addOrgPolicy(int index, com.google.cloud.orgpolicy.v1.Policy valu
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2714,7 +2361,8 @@ public Builder addOrgPolicy(int index, com.google.cloud.orgpolicy.v1.Policy valu
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public Builder addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy.Builder builderForValue) {
    +    public Builder addOrgPolicy(
    +        com.google.cloud.orgpolicy.v1.Policy.Builder builderForValue) {
           if (orgPolicyBuilder_ == null) {
             ensureOrgPolicyIsMutable();
             orgPolicy_.add(builderForValue.build());
    @@ -2725,8 +2373,6 @@ public Builder addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy.Builder builder
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2748,8 +2394,6 @@ public Builder addOrgPolicy(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2763,7 +2407,8 @@ public Builder addAllOrgPolicy(
             java.lang.Iterable values) {
           if (orgPolicyBuilder_ == null) {
             ensureOrgPolicyIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, orgPolicy_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    +            values, orgPolicy_);
             onChanged();
           } else {
             orgPolicyBuilder_.addAllMessages(values);
    @@ -2771,8 +2416,6 @@ public Builder addAllOrgPolicy(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2793,8 +2436,6 @@ public Builder clearOrgPolicy() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2815,8 +2456,6 @@ public Builder removeOrgPolicy(int index) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2826,12 +2465,11 @@ public Builder removeOrgPolicy(int index) {
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public com.google.cloud.orgpolicy.v1.Policy.Builder getOrgPolicyBuilder(int index) {
    +    public com.google.cloud.orgpolicy.v1.Policy.Builder getOrgPolicyBuilder(
    +        int index) {
           return getOrgPolicyFieldBuilder().getBuilder(index);
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2841,16 +2479,14 @@ public com.google.cloud.orgpolicy.v1.Policy.Builder getOrgPolicyBuilder(int inde
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int index) {
    +    public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
    +        int index) {
           if (orgPolicyBuilder_ == null) {
    -        return orgPolicy_.get(index);
    -      } else {
    +        return orgPolicy_.get(index);  } else {
             return orgPolicyBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2860,8 +2496,8 @@ public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int i
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public java.util.List
    -        getOrgPolicyOrBuilderList() {
    +    public java.util.List 
    +         getOrgPolicyOrBuilderList() {
           if (orgPolicyBuilder_ != null) {
             return orgPolicyBuilder_.getMessageOrBuilderList();
           } else {
    @@ -2869,8 +2505,6 @@ public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int i
           }
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2881,12 +2515,10 @@ public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int i
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
         public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder() {
    -      return getOrgPolicyFieldBuilder()
    -          .addBuilder(com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance());
    +      return getOrgPolicyFieldBuilder().addBuilder(
    +          com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2896,13 +2528,12 @@ public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder() {
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder(int index) {
    -      return getOrgPolicyFieldBuilder()
    -          .addBuilder(index, com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance());
    +    public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder(
    +        int index) {
    +      return getOrgPolicyFieldBuilder().addBuilder(
    +          index, com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance());
         }
         /**
    -     *
    -     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2912,42 +2543,34 @@ public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder(int inde
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public java.util.List getOrgPolicyBuilderList() {
    +    public java.util.List 
    +         getOrgPolicyBuilderList() {
           return getOrgPolicyFieldBuilder().getBuilderList();
         }
    -
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.orgpolicy.v1.Policy,
    -            com.google.cloud.orgpolicy.v1.Policy.Builder,
    -            com.google.cloud.orgpolicy.v1.PolicyOrBuilder>
    +        com.google.cloud.orgpolicy.v1.Policy, com.google.cloud.orgpolicy.v1.Policy.Builder, com.google.cloud.orgpolicy.v1.PolicyOrBuilder> 
             getOrgPolicyFieldBuilder() {
           if (orgPolicyBuilder_ == null) {
    -        orgPolicyBuilder_ =
    -            new com.google.protobuf.RepeatedFieldBuilderV3<
    -                com.google.cloud.orgpolicy.v1.Policy,
    -                com.google.cloud.orgpolicy.v1.Policy.Builder,
    -                com.google.cloud.orgpolicy.v1.PolicyOrBuilder>(
    -                orgPolicy_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
    +        orgPolicyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    +            com.google.cloud.orgpolicy.v1.Policy, com.google.cloud.orgpolicy.v1.Policy.Builder, com.google.cloud.orgpolicy.v1.PolicyOrBuilder>(
    +                orgPolicy_,
    +                ((bitField0_ & 0x00000001) != 0),
    +                getParentForChildren(),
    +                isClean());
             orgPolicy_ = null;
           }
           return orgPolicyBuilder_;
         }
     
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.AccessPolicy,
    -            com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder,
    -            com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>
    -        accessPolicyBuilder_;
    +        com.google.identity.accesscontextmanager.v1.AccessPolicy, com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder, com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder> accessPolicyBuilder_;
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
          * 
    * * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; - * * @return Whether the accessPolicy field is set. */ @java.lang.Override @@ -2955,15 +2578,12 @@ public boolean hasAccessPolicy() { return accessContextPolicyCase_ == 7; } /** - * - * *
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
          * 
    * * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; - * * @return The accessPolicy. */ @java.lang.Override @@ -2981,8 +2601,6 @@ public com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy( } } /** - * - * *
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -3004,8 +2622,6 @@ public Builder setAccessPolicy(com.google.identity.accesscontextmanager.v1.Acces
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -3025,8 +2641,6 @@ public Builder setAccessPolicy(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -3034,18 +2648,12 @@ public Builder setAccessPolicy(
          *
          * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
          */
    -    public Builder mergeAccessPolicy(
    -        com.google.identity.accesscontextmanager.v1.AccessPolicy value) {
    +    public Builder mergeAccessPolicy(com.google.identity.accesscontextmanager.v1.AccessPolicy value) {
           if (accessPolicyBuilder_ == null) {
    -        if (accessContextPolicyCase_ == 7
    -            && accessContextPolicy_
    -                != com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance()) {
    -          accessContextPolicy_ =
    -              com.google.identity.accesscontextmanager.v1.AccessPolicy.newBuilder(
    -                      (com.google.identity.accesscontextmanager.v1.AccessPolicy)
    -                          accessContextPolicy_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +        if (accessContextPolicyCase_ == 7 &&
    +            accessContextPolicy_ != com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance()) {
    +          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.AccessPolicy.newBuilder((com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_)
    +              .mergeFrom(value).buildPartial();
             } else {
               accessContextPolicy_ = value;
             }
    @@ -3061,8 +2669,6 @@ public Builder mergeAccessPolicy(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -3087,8 +2693,6 @@ public Builder clearAccessPolicy() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -3096,13 +2700,10 @@ public Builder clearAccessPolicy() {
          *
          * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
          */
    -    public com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder
    -        getAccessPolicyBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder getAccessPolicyBuilder() {
           return getAccessPolicyFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -3111,8 +2712,7 @@ public Builder clearAccessPolicy() {
          * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
          */
         @java.lang.Override
    -    public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder
    -        getAccessPolicyOrBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAccessPolicyOrBuilder() {
           if ((accessContextPolicyCase_ == 7) && (accessPolicyBuilder_ != null)) {
             return accessPolicyBuilder_.getMessageOrBuilder();
           } else {
    @@ -3123,8 +2723,6 @@ public Builder clearAccessPolicy() {
           }
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -3133,46 +2731,33 @@ public Builder clearAccessPolicy() {
          * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.AccessPolicy,
    -            com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder,
    -            com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>
    +        com.google.identity.accesscontextmanager.v1.AccessPolicy, com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder, com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder> 
             getAccessPolicyFieldBuilder() {
           if (accessPolicyBuilder_ == null) {
             if (!(accessContextPolicyCase_ == 7)) {
    -          accessContextPolicy_ =
    -              com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance();
    +          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance();
             }
    -        accessPolicyBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.identity.accesscontextmanager.v1.AccessPolicy,
    -                com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder,
    -                com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>(
    +        accessPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.identity.accesscontextmanager.v1.AccessPolicy, com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder, com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>(
                     (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_,
                     getParentForChildren(),
                     isClean());
             accessContextPolicy_ = null;
           }
           accessContextPolicyCase_ = 7;
    -      onChanged();
    -      ;
    +      onChanged();;
           return accessPolicyBuilder_;
         }
     
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.AccessLevel,
    -            com.google.identity.accesscontextmanager.v1.AccessLevel.Builder,
    -            com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>
    -        accessLevelBuilder_;
    +        com.google.identity.accesscontextmanager.v1.AccessLevel, com.google.identity.accesscontextmanager.v1.AccessLevel.Builder, com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder> accessLevelBuilder_;
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
          * 
    * * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; - * * @return Whether the accessLevel field is set. */ @java.lang.Override @@ -3180,15 +2765,12 @@ public boolean hasAccessLevel() { return accessContextPolicyCase_ == 8; } /** - * - * *
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
          * 
    * * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; - * * @return The accessLevel. */ @java.lang.Override @@ -3206,8 +2788,6 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel() } } /** - * - * *
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -3229,8 +2809,6 @@ public Builder setAccessLevel(com.google.identity.accesscontextmanager.v1.Access
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -3250,8 +2828,6 @@ public Builder setAccessLevel(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -3261,15 +2837,10 @@ public Builder setAccessLevel(
          */
         public Builder mergeAccessLevel(com.google.identity.accesscontextmanager.v1.AccessLevel value) {
           if (accessLevelBuilder_ == null) {
    -        if (accessContextPolicyCase_ == 8
    -            && accessContextPolicy_
    -                != com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance()) {
    -          accessContextPolicy_ =
    -              com.google.identity.accesscontextmanager.v1.AccessLevel.newBuilder(
    -                      (com.google.identity.accesscontextmanager.v1.AccessLevel)
    -                          accessContextPolicy_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +        if (accessContextPolicyCase_ == 8 &&
    +            accessContextPolicy_ != com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance()) {
    +          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.AccessLevel.newBuilder((com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_)
    +              .mergeFrom(value).buildPartial();
             } else {
               accessContextPolicy_ = value;
             }
    @@ -3285,8 +2856,6 @@ public Builder mergeAccessLevel(com.google.identity.accesscontextmanager.v1.Acce
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -3311,8 +2880,6 @@ public Builder clearAccessLevel() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -3324,8 +2891,6 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel.Builder getAccess
           return getAccessLevelFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -3334,8 +2899,7 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel.Builder getAccess
          * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
          */
         @java.lang.Override
    -    public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder
    -        getAccessLevelOrBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAccessLevelOrBuilder() {
           if ((accessContextPolicyCase_ == 8) && (accessLevelBuilder_ != null)) {
             return accessLevelBuilder_.getMessageOrBuilder();
           } else {
    @@ -3346,8 +2910,6 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel.Builder getAccess
           }
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -3356,46 +2918,33 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel.Builder getAccess
          * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.AccessLevel,
    -            com.google.identity.accesscontextmanager.v1.AccessLevel.Builder,
    -            com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>
    +        com.google.identity.accesscontextmanager.v1.AccessLevel, com.google.identity.accesscontextmanager.v1.AccessLevel.Builder, com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder> 
             getAccessLevelFieldBuilder() {
           if (accessLevelBuilder_ == null) {
             if (!(accessContextPolicyCase_ == 8)) {
    -          accessContextPolicy_ =
    -              com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance();
    +          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance();
             }
    -        accessLevelBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.identity.accesscontextmanager.v1.AccessLevel,
    -                com.google.identity.accesscontextmanager.v1.AccessLevel.Builder,
    -                com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>(
    +        accessLevelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.identity.accesscontextmanager.v1.AccessLevel, com.google.identity.accesscontextmanager.v1.AccessLevel.Builder, com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>(
                     (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_,
                     getParentForChildren(),
                     isClean());
             accessContextPolicy_ = null;
           }
           accessContextPolicyCase_ = 8;
    -      onChanged();
    -      ;
    +      onChanged();;
           return accessLevelBuilder_;
         }
     
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.ServicePerimeter,
    -            com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder,
    -            com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>
    -        servicePerimeterBuilder_;
    +        com.google.identity.accesscontextmanager.v1.ServicePerimeter, com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder, com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder> servicePerimeterBuilder_;
         /**
    -     *
    -     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
          * 
    * * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; - * * @return Whether the servicePerimeter field is set. */ @java.lang.Override @@ -3403,23 +2952,19 @@ public boolean hasServicePerimeter() { return accessContextPolicyCase_ == 9; } /** - * - * *
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
          * 
    * * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; - * * @return The servicePerimeter. */ @java.lang.Override public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter() { if (servicePerimeterBuilder_ == null) { if (accessContextPolicyCase_ == 9) { - return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) - accessContextPolicy_; + return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_; } return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance(); } else { @@ -3430,8 +2975,6 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePe } } /** - * - * *
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3439,8 +2982,7 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePe
          *
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
    -    public Builder setServicePerimeter(
    -        com.google.identity.accesscontextmanager.v1.ServicePerimeter value) {
    +    public Builder setServicePerimeter(com.google.identity.accesscontextmanager.v1.ServicePerimeter value) {
           if (servicePerimeterBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -3454,8 +2996,6 @@ public Builder setServicePerimeter(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3475,8 +3015,6 @@ public Builder setServicePerimeter(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3484,19 +3022,12 @@ public Builder setServicePerimeter(
          *
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
    -    public Builder mergeServicePerimeter(
    -        com.google.identity.accesscontextmanager.v1.ServicePerimeter value) {
    +    public Builder mergeServicePerimeter(com.google.identity.accesscontextmanager.v1.ServicePerimeter value) {
           if (servicePerimeterBuilder_ == null) {
    -        if (accessContextPolicyCase_ == 9
    -            && accessContextPolicy_
    -                != com.google.identity.accesscontextmanager.v1.ServicePerimeter
    -                    .getDefaultInstance()) {
    -          accessContextPolicy_ =
    -              com.google.identity.accesscontextmanager.v1.ServicePerimeter.newBuilder(
    -                      (com.google.identity.accesscontextmanager.v1.ServicePerimeter)
    -                          accessContextPolicy_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +        if (accessContextPolicyCase_ == 9 &&
    +            accessContextPolicy_ != com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance()) {
    +          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.ServicePerimeter.newBuilder((com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_)
    +              .mergeFrom(value).buildPartial();
             } else {
               accessContextPolicy_ = value;
             }
    @@ -3512,8 +3043,6 @@ public Builder mergeServicePerimeter(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3538,8 +3067,6 @@ public Builder clearServicePerimeter() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3547,13 +3074,10 @@ public Builder clearServicePerimeter() {
          *
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
    -    public com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder
    -        getServicePerimeterBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder getServicePerimeterBuilder() {
           return getServicePerimeterFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3562,21 +3086,17 @@ public Builder clearServicePerimeter() {
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
         @java.lang.Override
    -    public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder
    -        getServicePerimeterOrBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder getServicePerimeterOrBuilder() {
           if ((accessContextPolicyCase_ == 9) && (servicePerimeterBuilder_ != null)) {
             return servicePerimeterBuilder_.getMessageOrBuilder();
           } else {
             if (accessContextPolicyCase_ == 9) {
    -          return (com.google.identity.accesscontextmanager.v1.ServicePerimeter)
    -              accessContextPolicy_;
    +          return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_;
             }
             return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
           }
         }
         /**
    -     *
    -     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3585,76 +3105,56 @@ public Builder clearServicePerimeter() {
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.ServicePerimeter,
    -            com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder,
    -            com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>
    +        com.google.identity.accesscontextmanager.v1.ServicePerimeter, com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder, com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder> 
             getServicePerimeterFieldBuilder() {
           if (servicePerimeterBuilder_ == null) {
             if (!(accessContextPolicyCase_ == 9)) {
    -          accessContextPolicy_ =
    -              com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
    +          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
             }
    -        servicePerimeterBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.identity.accesscontextmanager.v1.ServicePerimeter,
    -                com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder,
    -                com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>(
    +        servicePerimeterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.identity.accesscontextmanager.v1.ServicePerimeter, com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder, com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>(
                     (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_,
                     getParentForChildren(),
                     isClean());
             accessContextPolicy_ = null;
           }
           accessContextPolicyCase_ = 9;
    -      onChanged();
    -      ;
    +      onChanged();;
           return servicePerimeterBuilder_;
         }
     
         private com.google.cloud.asset.v1p7beta1.RelatedAssets relatedAssets_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1p7beta1.RelatedAssets,
    -            com.google.cloud.asset.v1p7beta1.RelatedAssets.Builder,
    -            com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder>
    -        relatedAssetsBuilder_;
    +        com.google.cloud.asset.v1p7beta1.RelatedAssets, com.google.cloud.asset.v1p7beta1.RelatedAssets.Builder, com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder> relatedAssetsBuilder_;
         /**
    -     *
    -     *
          * 
          * The related assets of the asset of one relationship type.
          * One asset only represents one type of relationship.
          * 
    * * .google.cloud.asset.v1p7beta1.RelatedAssets related_assets = 13; - * * @return Whether the relatedAssets field is set. */ public boolean hasRelatedAssets() { return relatedAssetsBuilder_ != null || relatedAssets_ != null; } /** - * - * *
          * The related assets of the asset of one relationship type.
          * One asset only represents one type of relationship.
          * 
    * * .google.cloud.asset.v1p7beta1.RelatedAssets related_assets = 13; - * * @return The relatedAssets. */ public com.google.cloud.asset.v1p7beta1.RelatedAssets getRelatedAssets() { if (relatedAssetsBuilder_ == null) { - return relatedAssets_ == null - ? com.google.cloud.asset.v1p7beta1.RelatedAssets.getDefaultInstance() - : relatedAssets_; + return relatedAssets_ == null ? com.google.cloud.asset.v1p7beta1.RelatedAssets.getDefaultInstance() : relatedAssets_; } else { return relatedAssetsBuilder_.getMessage(); } } /** - * - * *
          * The related assets of the asset of one relationship type.
          * One asset only represents one type of relationship.
    @@ -3676,8 +3176,6 @@ public Builder setRelatedAssets(com.google.cloud.asset.v1p7beta1.RelatedAssets v
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The related assets of the asset of one relationship type.
          * One asset only represents one type of relationship.
    @@ -3697,8 +3195,6 @@ public Builder setRelatedAssets(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The related assets of the asset of one relationship type.
          * One asset only represents one type of relationship.
    @@ -3710,9 +3206,7 @@ public Builder mergeRelatedAssets(com.google.cloud.asset.v1p7beta1.RelatedAssets
           if (relatedAssetsBuilder_ == null) {
             if (relatedAssets_ != null) {
               relatedAssets_ =
    -              com.google.cloud.asset.v1p7beta1.RelatedAssets.newBuilder(relatedAssets_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +            com.google.cloud.asset.v1p7beta1.RelatedAssets.newBuilder(relatedAssets_).mergeFrom(value).buildPartial();
             } else {
               relatedAssets_ = value;
             }
    @@ -3724,8 +3218,6 @@ public Builder mergeRelatedAssets(com.google.cloud.asset.v1p7beta1.RelatedAssets
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The related assets of the asset of one relationship type.
          * One asset only represents one type of relationship.
    @@ -3745,8 +3237,6 @@ public Builder clearRelatedAssets() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The related assets of the asset of one relationship type.
          * One asset only represents one type of relationship.
    @@ -3755,13 +3245,11 @@ public Builder clearRelatedAssets() {
          * .google.cloud.asset.v1p7beta1.RelatedAssets related_assets = 13;
          */
         public com.google.cloud.asset.v1p7beta1.RelatedAssets.Builder getRelatedAssetsBuilder() {
    -
    +      
           onChanged();
           return getRelatedAssetsFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * The related assets of the asset of one relationship type.
          * One asset only represents one type of relationship.
    @@ -3773,14 +3261,11 @@ public com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder getRelatedAssetsO
           if (relatedAssetsBuilder_ != null) {
             return relatedAssetsBuilder_.getMessageOrBuilder();
           } else {
    -        return relatedAssets_ == null
    -            ? com.google.cloud.asset.v1p7beta1.RelatedAssets.getDefaultInstance()
    -            : relatedAssets_;
    +        return relatedAssets_ == null ?
    +            com.google.cloud.asset.v1p7beta1.RelatedAssets.getDefaultInstance() : relatedAssets_;
           }
         }
         /**
    -     *
    -     *
          * 
          * The related assets of the asset of one relationship type.
          * One asset only represents one type of relationship.
    @@ -3789,34 +3274,27 @@ public com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder getRelatedAssetsO
          * .google.cloud.asset.v1p7beta1.RelatedAssets related_assets = 13;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1p7beta1.RelatedAssets,
    -            com.google.cloud.asset.v1p7beta1.RelatedAssets.Builder,
    -            com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder>
    +        com.google.cloud.asset.v1p7beta1.RelatedAssets, com.google.cloud.asset.v1p7beta1.RelatedAssets.Builder, com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder> 
             getRelatedAssetsFieldBuilder() {
           if (relatedAssetsBuilder_ == null) {
    -        relatedAssetsBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.cloud.asset.v1p7beta1.RelatedAssets,
    -                com.google.cloud.asset.v1p7beta1.RelatedAssets.Builder,
    -                com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder>(
    -                getRelatedAssets(), getParentForChildren(), isClean());
    +        relatedAssetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.cloud.asset.v1p7beta1.RelatedAssets, com.google.cloud.asset.v1p7beta1.RelatedAssets.Builder, com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder>(
    +                getRelatedAssets(),
    +                getParentForChildren(),
    +                isClean());
             relatedAssets_ = null;
           }
           return relatedAssetsBuilder_;
         }
     
    -    private com.google.protobuf.LazyStringList ancestors_ =
    -        com.google.protobuf.LazyStringArrayList.EMPTY;
    -
    +    private com.google.protobuf.LazyStringList ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY;
         private void ensureAncestorsIsMutable() {
           if (!((bitField0_ & 0x00000002) != 0)) {
             ancestors_ = new com.google.protobuf.LazyStringArrayList(ancestors_);
             bitField0_ |= 0x00000002;
    -      }
    +       }
         }
         /**
    -     *
    -     *
          * 
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3828,15 +3306,13 @@ private void ensureAncestorsIsMutable() {
          * 
    * * repeated string ancestors = 10; - * * @return A list containing the ancestors. */ - public com.google.protobuf.ProtocolStringList getAncestorsList() { + public com.google.protobuf.ProtocolStringList + getAncestorsList() { return ancestors_.getUnmodifiableView(); } /** - * - * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3848,15 +3324,12 @@ public com.google.protobuf.ProtocolStringList getAncestorsList() {
          * 
    * * repeated string ancestors = 10; - * * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); } /** - * - * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3868,7 +3341,6 @@ public int getAncestorsCount() {
          * 
    * * repeated string ancestors = 10; - * * @param index The index of the element to return. * @return The ancestors at the given index. */ @@ -3876,8 +3348,6 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** - * - * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3889,16 +3359,14 @@ public java.lang.String getAncestors(int index) {
          * 
    * * repeated string ancestors = 10; - * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - public com.google.protobuf.ByteString getAncestorsBytes(int index) { + public com.google.protobuf.ByteString + getAncestorsBytes(int index) { return ancestors_.getByteString(index); } /** - * - * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3910,23 +3378,21 @@ public com.google.protobuf.ByteString getAncestorsBytes(int index) {
          * 
    * * repeated string ancestors = 10; - * * @param index The index to set the value at. * @param value The ancestors to set. * @return This builder for chaining. */ - public Builder setAncestors(int index, java.lang.String value) { + public Builder setAncestors( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAncestorsIsMutable(); + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); ancestors_.set(index, value); onChanged(); return this; } /** - * - * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3938,22 +3404,20 @@ public Builder setAncestors(int index, java.lang.String value) {
          * 
    * * repeated string ancestors = 10; - * * @param value The ancestors to add. * @return This builder for chaining. */ - public Builder addAncestors(java.lang.String value) { + public Builder addAncestors( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAncestorsIsMutable(); + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); return this; } /** - * - * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3965,19 +3429,18 @@ public Builder addAncestors(java.lang.String value) {
          * 
    * * repeated string ancestors = 10; - * * @param values The ancestors to add. * @return This builder for chaining. */ - public Builder addAllAncestors(java.lang.Iterable values) { + public Builder addAllAncestors( + java.lang.Iterable values) { ensureAncestorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ancestors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ancestors_); onChanged(); return this; } /** - * - * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3989,7 +3452,6 @@ public Builder addAllAncestors(java.lang.Iterable values) {
          * 
    * * repeated string ancestors = 10; - * * @return This builder for chaining. */ public Builder clearAncestors() { @@ -3999,8 +3461,6 @@ public Builder clearAncestors() { return this; } /** - * - * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -4012,23 +3472,23 @@ public Builder clearAncestors() {
          * 
    * * repeated string ancestors = 10; - * * @param value The bytes of the ancestors to add. * @return This builder for chaining. */ - public Builder addAncestorsBytes(com.google.protobuf.ByteString value) { + public Builder addAncestorsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4038,12 +3498,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.Asset) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.Asset) private static final com.google.cloud.asset.v1p7beta1.Asset DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.Asset(); } @@ -4052,16 +3512,27 @@ public static com.google.cloud.asset.v1p7beta1.Asset getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Asset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Asset(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Asset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4076,4 +3547,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p7beta1.Asset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetOrBuilder.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetOrBuilder.java similarity index 90% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetOrBuilder.java rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetOrBuilder.java index 37bfc62b5fe5..4711ab6e07b9 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/assets.proto package com.google.cloud.asset.v1p7beta1; -public interface AssetOrBuilder - extends +public interface AssetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.Asset) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The last update timestamp of an asset. update_time is updated when
        * create/update/delete operation is performed.
        * 
    * * .google.protobuf.Timestamp update_time = 11; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
        * The last update timestamp of an asset. update_time is updated when
        * create/update/delete operation is performed.
        * 
    * * .google.protobuf.Timestamp update_time = 11; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
        * The last update timestamp of an asset. update_time is updated when
        * create/update/delete operation is performed.
    @@ -62,8 +38,6 @@ public interface AssetOrBuilder
       com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -73,13 +47,10 @@ public interface AssetOrBuilder
        * 
    * * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -89,14 +60,12 @@ public interface AssetOrBuilder
        * 
    * * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -105,13 +74,10 @@ public interface AssetOrBuilder
        * 
    * * string asset_type = 2; - * * @return The assetType. */ java.lang.String getAssetType(); /** - * - * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -120,38 +86,30 @@ public interface AssetOrBuilder
        * 
    * * string asset_type = 2; - * * @return The bytes for assetType. */ - com.google.protobuf.ByteString getAssetTypeBytes(); + com.google.protobuf.ByteString + getAssetTypeBytes(); /** - * - * *
        * A representation of the resource.
        * 
    * * .google.cloud.asset.v1p7beta1.Resource resource = 3; - * * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
        * A representation of the resource.
        * 
    * * .google.cloud.asset.v1p7beta1.Resource resource = 3; - * * @return The resource. */ com.google.cloud.asset.v1p7beta1.Resource getResource(); /** - * - * *
        * A representation of the resource.
        * 
    @@ -161,8 +119,6 @@ public interface AssetOrBuilder com.google.cloud.asset.v1p7beta1.ResourceOrBuilder getResourceOrBuilder(); /** - * - * *
        * A representation of the Cloud IAM policy set on a Google Cloud resource.
        * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -176,13 +132,10 @@ public interface AssetOrBuilder
        * 
    * * .google.iam.v1.Policy iam_policy = 4; - * * @return Whether the iamPolicy field is set. */ boolean hasIamPolicy(); /** - * - * *
        * A representation of the Cloud IAM policy set on a Google Cloud resource.
        * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -196,13 +149,10 @@ public interface AssetOrBuilder
        * 
    * * .google.iam.v1.Policy iam_policy = 4; - * * @return The iamPolicy. */ com.google.iam.v1.Policy getIamPolicy(); /** - * - * *
        * A representation of the Cloud IAM policy set on a Google Cloud resource.
        * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -220,8 +170,6 @@ public interface AssetOrBuilder
       com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -231,10 +179,9 @@ public interface AssetOrBuilder
        *
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
    -  java.util.List getOrgPolicyList();
    +  java.util.List 
    +      getOrgPolicyList();
       /**
    -   *
    -   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -246,8 +193,6 @@ public interface AssetOrBuilder
        */
       com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index);
       /**
    -   *
    -   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -259,8 +204,6 @@ public interface AssetOrBuilder
        */
       int getOrgPolicyCount();
       /**
    -   *
    -   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -270,11 +213,9 @@ public interface AssetOrBuilder
        *
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
    -  java.util.List
    +  java.util.List 
           getOrgPolicyOrBuilderList();
       /**
    -   *
    -   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -284,37 +225,30 @@ public interface AssetOrBuilder
        *
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
    -  com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int index);
    +  com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
    +      int index);
     
       /**
    -   *
    -   *
        * 
        * Please also refer to the [access policy user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; - * * @return Whether the accessPolicy field is set. */ boolean hasAccessPolicy(); /** - * - * *
        * Please also refer to the [access policy user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; - * * @return The accessPolicy. */ com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy(); /** - * - * *
        * Please also refer to the [access policy user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -325,34 +259,26 @@ public interface AssetOrBuilder
       com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAccessPolicyOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * Please also refer to the [access level user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; - * * @return Whether the accessLevel field is set. */ boolean hasAccessLevel(); /** - * - * *
        * Please also refer to the [access level user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; - * * @return The accessLevel. */ com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel(); /** - * - * *
        * Please also refer to the [access level user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -363,34 +289,26 @@ public interface AssetOrBuilder
       com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAccessLevelOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * Please also refer to the [service perimeter user
        * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
        * 
    * * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; - * * @return Whether the servicePerimeter field is set. */ boolean hasServicePerimeter(); /** - * - * *
        * Please also refer to the [service perimeter user
        * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
        * 
    * * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; - * * @return The servicePerimeter. */ com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter(); /** - * - * *
        * Please also refer to the [service perimeter user
        * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -398,38 +316,29 @@ public interface AssetOrBuilder
        *
        * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
        */
    -  com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder
    -      getServicePerimeterOrBuilder();
    +  com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder getServicePerimeterOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * The related assets of the asset of one relationship type.
        * One asset only represents one type of relationship.
        * 
    * * .google.cloud.asset.v1p7beta1.RelatedAssets related_assets = 13; - * * @return Whether the relatedAssets field is set. */ boolean hasRelatedAssets(); /** - * - * *
        * The related assets of the asset of one relationship type.
        * One asset only represents one type of relationship.
        * 
    * * .google.cloud.asset.v1p7beta1.RelatedAssets related_assets = 13; - * * @return The relatedAssets. */ com.google.cloud.asset.v1p7beta1.RelatedAssets getRelatedAssets(); /** - * - * *
        * The related assets of the asset of one relationship type.
        * One asset only represents one type of relationship.
    @@ -440,8 +349,6 @@ public interface AssetOrBuilder
       com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder getRelatedAssetsOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -453,13 +360,11 @@ public interface AssetOrBuilder
        * 
    * * repeated string ancestors = 10; - * * @return A list containing the ancestors. */ - java.util.List getAncestorsList(); + java.util.List + getAncestorsList(); /** - * - * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -471,13 +376,10 @@ public interface AssetOrBuilder
        * 
    * * repeated string ancestors = 10; - * * @return The count of ancestors. */ int getAncestorsCount(); /** - * - * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -489,14 +391,11 @@ public interface AssetOrBuilder
        * 
    * * repeated string ancestors = 10; - * * @param index The index of the element to return. * @return The ancestors at the given index. */ java.lang.String getAncestors(int index); /** - * - * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -508,12 +407,11 @@ public interface AssetOrBuilder
        * 
    * * repeated string ancestors = 10; - * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - com.google.protobuf.ByteString getAncestorsBytes(int index); + com.google.protobuf.ByteString + getAncestorsBytes(int index); - public com.google.cloud.asset.v1p7beta1.Asset.AccessContextPolicyCase - getAccessContextPolicyCase(); + public com.google.cloud.asset.v1p7beta1.Asset.AccessContextPolicyCase getAccessContextPolicyCase(); } diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetProto.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetProto.java new file mode 100644 index 000000000000..f29c856c2589 --- /dev/null +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetProto.java @@ -0,0 +1,160 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1p7beta1/assets.proto + +package com.google.cloud.asset.v1p7beta1; + +public final class AssetProto { + private AssetProto() {} + 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_asset_v1p7beta1_Asset_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_Asset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_Resource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/asset/v1p7beta1/assets.pr" + + "oto\022\034google.cloud.asset.v1p7beta1\032\031googl" + + "e/api/resource.proto\032)google/cloud/orgpo" + + "licy/v1/orgpolicy.proto\032(google/cloud/os" + + "config/v1/inventory.proto\032\032google/iam/v1" + + "/policy.proto\032:google/identity/accesscon" + + "textmanager/v1/access_level.proto\032;googl" + + "e/identity/accesscontextmanager/v1/acces" + + "s_policy.proto\032?google/identity/accessco" + + "ntextmanager/v1/service_perimeter.proto\032" + + "\034google/protobuf/struct.proto\032\037google/pr" + + "otobuf/timestamp.proto\"\206\005\n\005Asset\022/\n\013upda" + + "te_time\030\013 \001(\0132\032.google.protobuf.Timestam" + + "p\022\014\n\004name\030\001 \001(\t\022\022\n\nasset_type\030\002 \001(\t\0228\n\010r" + + "esource\030\003 \001(\0132&.google.cloud.asset.v1p7b" + + "eta1.Resource\022)\n\niam_policy\030\004 \001(\0132\025.goog" + + "le.iam.v1.Policy\0225\n\norg_policy\030\006 \003(\0132!.g" + + "oogle.cloud.orgpolicy.v1.Policy\022N\n\racces" + + "s_policy\030\007 \001(\01325.google.identity.accessc" + + "ontextmanager.v1.AccessPolicyH\000\022L\n\014acces" + + "s_level\030\010 \001(\01324.google.identity.accessco" + + "ntextmanager.v1.AccessLevelH\000\022V\n\021service" + + "_perimeter\030\t \001(\01329.google.identity.acces" + + "scontextmanager.v1.ServicePerimeterH\000\022C\n" + + "\016related_assets\030\r \001(\0132+.google.cloud.ass" + + "et.v1p7beta1.RelatedAssets\022\021\n\tancestors\030" + + "\n \003(\t:\'\352A$\n\037cloudasset.googleapis.com/As" + + "set\022\001*B\027\n\025access_context_policy\"\262\001\n\010Reso" + + "urce\022\017\n\007version\030\001 \001(\t\022\036\n\026discovery_docum" + + "ent_uri\030\002 \001(\t\022\026\n\016discovery_name\030\003 \001(\t\022\024\n" + + "\014resource_url\030\004 \001(\t\022\016\n\006parent\030\005 \001(\t\022%\n\004d" + + "ata\030\006 \001(\0132\027.google.protobuf.Struct\022\020\n\010lo" + + "cation\030\010 \001(\t\"\242\001\n\rRelatedAssets\022U\n\027relati" + + "onship_attributes\030\001 \001(\01324.google.cloud.a" + + "sset.v1p7beta1.RelationshipAttributes\022:\n" + + "\006assets\030\002 \003(\0132*.google.cloud.asset.v1p7b" + + "eta1.RelatedAsset\"r\n\026RelationshipAttribu" + + "tes\022\014\n\004type\030\004 \001(\t\022\034\n\024source_resource_typ" + + "e\030\001 \001(\t\022\034\n\024target_resource_type\030\002 \001(\t\022\016\n" + + "\006action\030\003 \001(\t\"j\n\014RelatedAsset\0223\n\005asset\030\001" + + " \001(\tB$\372A!\n\037cloudasset.googleapis.com/Ass" + + "et\022\022\n\nasset_type\030\002 \001(\t\022\021\n\tancestors\030\003 \003(" + + "\tB\264\001\n com.google.cloud.asset.v1p7beta1B\n" + + "AssetProtoP\001ZAgoogle.golang.org/genproto" + + "/googleapis/cloud/asset/v1p7beta1;asset\370" + + "\001\001\252\002\034Google.Cloud.Asset.V1P7Beta1\312\002\034Goog" + + "le\\Cloud\\Asset\\V1p7beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(), + com.google.cloud.osconfig.v1.Inventories.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(), + com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(), + com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_asset_v1p7beta1_Asset_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_asset_v1p7beta1_Asset_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_Asset_descriptor, + new java.lang.String[] { "UpdateTime", "Name", "AssetType", "Resource", "IamPolicy", "OrgPolicy", "AccessPolicy", "AccessLevel", "ServicePerimeter", "RelatedAssets", "Ancestors", "AccessContextPolicy", }); + internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_asset_v1p7beta1_Resource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor, + new java.lang.String[] { "Version", "DiscoveryDocumentUri", "DiscoveryName", "ResourceUrl", "Parent", "Data", "Location", }); + internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor, + new java.lang.String[] { "RelationshipAttributes", "Assets", }); + internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor, + new java.lang.String[] { "Type", "SourceResourceType", "TargetResourceType", "Action", }); + internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor, + new java.lang.String[] { "Asset", "AssetType", "Ancestors", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(); + com.google.cloud.osconfig.v1.Inventories.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(); + com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(); + com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceProto.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceProto.java new file mode 100644 index 000000000000..93f4e5177984 --- /dev/null +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceProto.java @@ -0,0 +1,203 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1p7beta1/asset_service.proto + +package com.google.cloud.asset.v1p7beta1; + +public final class AssetServiceProto { + private AssetServiceProto() {} + 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_asset_v1p7beta1_ExportAssetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_OutputResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/asset/v1p7beta1/asset_ser" + + "vice.proto\022\034google.cloud.asset.v1p7beta1" + + "\032\034google/api/annotations.proto\032\027google/a" + + "pi/client.proto\032\037google/api/field_behavi" + + "or.proto\032\031google/api/resource.proto\032)goo" + + "gle/cloud/asset/v1p7beta1/assets.proto\032#" + + "google/longrunning/operations.proto\032\037goo" + + "gle/protobuf/timestamp.proto\"\267\002\n\023ExportA" + + "ssetsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037cl" + + "oudasset.googleapis.com/Asset\022-\n\tread_ti" + + "me\030\002 \001(\0132\032.google.protobuf.Timestamp\022\023\n\013" + + "asset_types\030\003 \003(\t\022?\n\014content_type\030\004 \001(\0162" + + ").google.cloud.asset.v1p7beta1.ContentTy" + + "pe\022F\n\routput_config\030\005 \001(\0132*.google.cloud" + + ".asset.v1p7beta1.OutputConfigB\003\340A\002\022\032\n\022re" + + "lationship_types\030\006 \003(\t\"\313\001\n\024ExportAssetsR" + + "esponse\022-\n\tread_time\030\001 \001(\0132\032.google.prot" + + "obuf.Timestamp\022A\n\routput_config\030\002 \001(\0132*." + + "google.cloud.asset.v1p7beta1.OutputConfi" + + "g\022A\n\routput_result\030\003 \001(\0132*.google.cloud." + + "asset.v1p7beta1.OutputResult\"\271\001\n\014OutputC" + + "onfig\022G\n\017gcs_destination\030\001 \001(\0132,.google." + + "cloud.asset.v1p7beta1.GcsDestinationH\000\022Q" + + "\n\024bigquery_destination\030\002 \001(\01321.google.cl" + + "oud.asset.v1p7beta1.BigQueryDestinationH" + + "\000B\r\n\013destination\"]\n\014OutputResult\022C\n\ngcs_" + + "result\030\001 \001(\0132-.google.cloud.asset.v1p7be" + + "ta1.GcsOutputResultH\000B\010\n\006result\"\037\n\017GcsOu" + + "tputResult\022\014\n\004uris\030\001 \003(\t\"C\n\016GcsDestinati" + + "on\022\r\n\003uri\030\001 \001(\tH\000\022\024\n\nuri_prefix\030\002 \001(\tH\000B" + + "\014\n\nobject_uri\"\273\001\n\023BigQueryDestination\022\024\n" + + "\007dataset\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\tB\003\340A\002\022" + + "\r\n\005force\030\003 \001(\010\022C\n\016partition_spec\030\004 \001(\0132+" + + ".google.cloud.asset.v1p7beta1.PartitionS" + + "pec\022&\n\036separate_tables_per_asset_type\030\005 " + + "\001(\010\"\260\001\n\rPartitionSpec\022O\n\rpartition_key\030\001" + + " \001(\01628.google.cloud.asset.v1p7beta1.Part" + + "itionSpec.PartitionKey\"N\n\014PartitionKey\022\035" + + "\n\031PARTITION_KEY_UNSPECIFIED\020\000\022\r\n\tREAD_TI" + + "ME\020\001\022\020\n\014REQUEST_TIME\020\002*~\n\013ContentType\022\034\n" + + "\030CONTENT_TYPE_UNSPECIFIED\020\000\022\014\n\010RESOURCE\020" + + "\001\022\016\n\nIAM_POLICY\020\002\022\016\n\nORG_POLICY\020\004\022\021\n\rACC" + + "ESS_POLICY\020\005\022\020\n\014RELATIONSHIP\020\0072\332\002\n\014Asset" + + "Service\022\372\001\n\014ExportAssets\0221.google.cloud." + + "asset.v1p7beta1.ExportAssetsRequest\032\035.go" + + "ogle.longrunning.Operation\"\227\001\202\323\344\223\002)\"$/v1" + + "p7beta1/{parent=*/*}:exportAssets:\001*\312Ae\n" + + "1google.cloud.asset.v1p7beta1.ExportAsse" + + "tsResponse\0220google.cloud.asset.v1p7beta1" + + ".ExportAssetsRequest\032M\312A\031cloudasset.goog" + + "leapis.com\322A.https://www.googleapis.com/" + + "auth/cloud-platformB\270\001\n com.google.cloud" + + ".asset.v1p7beta1B\021AssetServiceProtoP\001ZAg" + + "oogle.golang.org/genproto/googleapis/clo" + + "ud/asset/v1p7beta1;asset\252\002\034Google.Cloud." + + "Asset.V1P7Beta1\312\002\034Google\\Cloud\\Asset\\V1p" + + "7beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.asset.v1p7beta1.AssetProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_descriptor, + new java.lang.String[] { "Parent", "ReadTime", "AssetTypes", "ContentType", "OutputConfig", "RelationshipTypes", }); + internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor, + new java.lang.String[] { "ReadTime", "OutputConfig", "OutputResult", }); + internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_asset_v1p7beta1_OutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "BigqueryDestination", "Destination", }); + internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_asset_v1p7beta1_OutputResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor, + new java.lang.String[] { "GcsResult", "Result", }); + internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor, + new java.lang.String[] { "Uris", }); + internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_asset_v1p7beta1_GcsDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor, + new java.lang.String[] { "Uri", "UriPrefix", "ObjectUri", }); + internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor, + new java.lang.String[] { "Dataset", "Table", "Force", "PartitionSpec", "SeparateTablesPerAssetType", }); + internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor, + new java.lang.String[] { "PartitionKey", }); + 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.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.asset.v1p7beta1.AssetProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestination.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestination.java similarity index 79% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestination.java rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestination.java index e9f66396e4c3..f9d2dbb62a96 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestination.java +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestination.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; /** - * - * *
      * A BigQuery destination for exporting assets to.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.BigQueryDestination} */ -public final class BigQueryDestination extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BigQueryDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.BigQueryDestination) BigQueryDestinationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BigQueryDestination.newBuilder() to construct. private BigQueryDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BigQueryDestination() { dataset_ = ""; table_ = ""; @@ -44,114 +26,32 @@ private BigQueryDestination() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BigQueryDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private BigQueryDestination( - 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(); - - dataset_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - table_ = s; - break; - } - case 24: - { - force_ = input.readBool(); - break; - } - case 34: - { - com.google.cloud.asset.v1p7beta1.PartitionSpec.Builder subBuilder = null; - if (partitionSpec_ != null) { - subBuilder = partitionSpec_.toBuilder(); - } - partitionSpec_ = - input.readMessage( - com.google.cloud.asset.v1p7beta1.PartitionSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(partitionSpec_); - partitionSpec_ = subBuilder.buildPartial(); - } - - break; - } - case 40: - { - separateTablesPerAssetType_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.BigQueryDestination.class, - com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder.class); + com.google.cloud.asset.v1p7beta1.BigQueryDestination.class, com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder.class); } public static final int DATASET_FIELD_NUMBER = 1; private volatile java.lang.Object dataset_; /** - * - * *
        * Required. The BigQuery dataset in format
        * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -160,7 +60,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The dataset. */ @java.lang.Override @@ -169,15 +68,14 @@ public java.lang.String getDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; } } /** - * - * *
        * Required. The BigQuery dataset in format
        * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -186,15 +84,16 @@ public java.lang.String getDataset() {
        * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for dataset. */ @java.lang.Override - public com.google.protobuf.ByteString getDatasetBytes() { + public com.google.protobuf.ByteString + getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataset_ = b; return b; } else { @@ -205,8 +104,6 @@ public com.google.protobuf.ByteString getDatasetBytes() { public static final int TABLE_FIELD_NUMBER = 2; private volatile java.lang.Object table_; /** - * - * *
        * Required. The BigQuery table to which the snapshot result should be
        * written. If this table does not exist, a new table with the given name
    @@ -214,7 +111,6 @@ public com.google.protobuf.ByteString getDatasetBytes() {
        * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The table. */ @java.lang.Override @@ -223,15 +119,14 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** - * - * *
        * Required. The BigQuery table to which the snapshot result should be
        * written. If this table does not exist, a new table with the given name
    @@ -239,15 +134,16 @@ public java.lang.String getTable() {
        * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString getTableBytes() { + public com.google.protobuf.ByteString + getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -258,8 +154,6 @@ public com.google.protobuf.ByteString getTableBytes() { public static final int FORCE_FIELD_NUMBER = 3; private boolean force_; /** - * - * *
        * If the destination table already exists and this flag is `TRUE`, the
        * table will be overwritten by the contents of assets snapshot. If the flag
    @@ -268,7 +162,6 @@ public com.google.protobuf.ByteString getTableBytes() {
        * 
    * * bool force = 3; - * * @return The force. */ @java.lang.Override @@ -279,8 +172,6 @@ public boolean getForce() { public static final int PARTITION_SPEC_FIELD_NUMBER = 4; private com.google.cloud.asset.v1p7beta1.PartitionSpec partitionSpec_; /** - * - * *
        * [partition_spec] determines whether to export to partitioned table(s) and
        * how to partition the data.
    @@ -300,7 +191,6 @@ public boolean getForce() {
        * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec partition_spec = 4; - * * @return Whether the partitionSpec field is set. */ @java.lang.Override @@ -308,8 +198,6 @@ public boolean hasPartitionSpec() { return partitionSpec_ != null; } /** - * - * *
        * [partition_spec] determines whether to export to partitioned table(s) and
        * how to partition the data.
    @@ -329,18 +217,13 @@ public boolean hasPartitionSpec() {
        * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec partition_spec = 4; - * * @return The partitionSpec. */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.PartitionSpec getPartitionSpec() { - return partitionSpec_ == null - ? com.google.cloud.asset.v1p7beta1.PartitionSpec.getDefaultInstance() - : partitionSpec_; + return partitionSpec_ == null ? com.google.cloud.asset.v1p7beta1.PartitionSpec.getDefaultInstance() : partitionSpec_; } /** - * - * *
        * [partition_spec] determines whether to export to partitioned table(s) and
        * how to partition the data.
    @@ -369,8 +252,6 @@ public com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder getPartitionSpecO
       public static final int SEPARATE_TABLES_PER_ASSET_TYPE_FIELD_NUMBER = 5;
       private boolean separateTablesPerAssetType_;
       /**
    -   *
    -   *
        * 
        * If this flag is `TRUE`, the snapshot results will be written to one or
        * multiple tables, each of which contains results of one asset type. The
    @@ -399,7 +280,6 @@ public com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder getPartitionSpecO
        * 
    * * bool separate_tables_per_asset_type = 5; - * * @return The separateTablesPerAssetType. */ @java.lang.Override @@ -408,7 +288,6 @@ public boolean getSeparateTablesPerAssetType() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -420,7 +299,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); } @@ -436,7 +316,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (separateTablesPerAssetType_ != false) { output.writeBool(5, separateTablesPerAssetType_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -452,15 +332,18 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, table_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, force_); } if (partitionSpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPartitionSpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getPartitionSpec()); } if (separateTablesPerAssetType_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, separateTablesPerAssetType_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, separateTablesPerAssetType_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -468,23 +351,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p7beta1.BigQueryDestination)) { return super.equals(obj); } - com.google.cloud.asset.v1p7beta1.BigQueryDestination other = - (com.google.cloud.asset.v1p7beta1.BigQueryDestination) obj; + com.google.cloud.asset.v1p7beta1.BigQueryDestination other = (com.google.cloud.asset.v1p7beta1.BigQueryDestination) obj; - if (!getDataset().equals(other.getDataset())) return false; - if (!getTable().equals(other.getTable())) return false; - if (getForce() != other.getForce()) return false; + if (!getDataset() + .equals(other.getDataset())) return false; + if (!getTable() + .equals(other.getTable())) return false; + if (getForce() + != other.getForce()) return false; if (hasPartitionSpec() != other.hasPartitionSpec()) return false; if (hasPartitionSpec()) { - if (!getPartitionSpec().equals(other.getPartitionSpec())) return false; + if (!getPartitionSpec() + .equals(other.getPartitionSpec())) return false; } - if (getSeparateTablesPerAssetType() != other.getSeparateTablesPerAssetType()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (getSeparateTablesPerAssetType() + != other.getSeparateTablesPerAssetType()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -500,155 +387,144 @@ public int hashCode() { hash = (37 * hash) + TABLE_FIELD_NUMBER; hash = (53 * hash) + getTable().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); if (hasPartitionSpec()) { hash = (37 * hash) + PARTITION_SPEC_FIELD_NUMBER; hash = (53 * hash) + getPartitionSpec().hashCode(); } hash = (37 * hash) + SEPARATE_TABLES_PER_ASSET_TYPE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSeparateTablesPerAssetType()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSeparateTablesPerAssetType()); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1p7beta1.BigQueryDestination parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.BigQueryDestination parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.BigQueryDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.BigQueryDestination 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.asset.v1p7beta1.BigQueryDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.BigQueryDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1p7beta1.BigQueryDestination parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p7beta1.BigQueryDestination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.BigQueryDestination parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p7beta1.BigQueryDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p7beta1.BigQueryDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.BigQueryDestination parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.BigQueryDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.BigQueryDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.BigQueryDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * A BigQuery destination for exporting assets to.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.BigQueryDestination} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.BigQueryDestination) com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.BigQueryDestination.class, - com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder.class); + com.google.cloud.asset.v1p7beta1.BigQueryDestination.class, com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder.class); } // Construct using com.google.cloud.asset.v1p7beta1.BigQueryDestination.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -670,9 +546,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor; } @java.lang.Override @@ -691,8 +567,7 @@ public com.google.cloud.asset.v1p7beta1.BigQueryDestination build() { @java.lang.Override public com.google.cloud.asset.v1p7beta1.BigQueryDestination buildPartial() { - com.google.cloud.asset.v1p7beta1.BigQueryDestination result = - new com.google.cloud.asset.v1p7beta1.BigQueryDestination(this); + com.google.cloud.asset.v1p7beta1.BigQueryDestination result = new com.google.cloud.asset.v1p7beta1.BigQueryDestination(this); result.dataset_ = dataset_; result.table_ = table_; result.force_ = force_; @@ -710,39 +585,38 @@ public com.google.cloud.asset.v1p7beta1.BigQueryDestination buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p7beta1.BigQueryDestination) { - return mergeFrom((com.google.cloud.asset.v1p7beta1.BigQueryDestination) other); + return mergeFrom((com.google.cloud.asset.v1p7beta1.BigQueryDestination)other); } else { super.mergeFrom(other); return this; @@ -750,8 +624,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.BigQueryDestination other) { - if (other == com.google.cloud.asset.v1p7beta1.BigQueryDestination.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1p7beta1.BigQueryDestination.getDefaultInstance()) return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; onChanged(); @@ -769,7 +642,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.BigQueryDestination ot if (other.getSeparateTablesPerAssetType() != false) { setSeparateTablesPerAssetType(other.getSeparateTablesPerAssetType()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -784,25 +657,62 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p7beta1.BigQueryDestination parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + dataset_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + table_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: { + force_ = input.readBool(); + + break; + } // case 24 + case 34: { + input.readMessage( + getPartitionSpecFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 40: { + separateTablesPerAssetType_ = input.readBool(); + + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1p7beta1.BigQueryDestination) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object dataset_ = ""; /** - * - * *
          * Required. The BigQuery dataset in format
          * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -811,13 +721,13 @@ public Builder mergeFrom(
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The dataset. */ public java.lang.String getDataset() { java.lang.Object ref = dataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; @@ -826,8 +736,6 @@ public java.lang.String getDataset() { } } /** - * - * *
          * Required. The BigQuery dataset in format
          * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -836,14 +744,15 @@ public java.lang.String getDataset() {
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for dataset. */ - public com.google.protobuf.ByteString getDatasetBytes() { + public com.google.protobuf.ByteString + getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataset_ = b; return b; } else { @@ -851,8 +760,6 @@ public com.google.protobuf.ByteString getDatasetBytes() { } } /** - * - * *
          * Required. The BigQuery dataset in format
          * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -861,22 +768,20 @@ public com.google.protobuf.ByteString getDatasetBytes() {
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The dataset to set. * @return This builder for chaining. */ - public Builder setDataset(java.lang.String value) { + public Builder setDataset( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataset_ = value; onChanged(); return this; } /** - * - * *
          * Required. The BigQuery dataset in format
          * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -885,18 +790,15 @@ public Builder setDataset(java.lang.String value) {
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDataset() { - + dataset_ = getDefaultInstance().getDataset(); onChanged(); return this; } /** - * - * *
          * Required. The BigQuery dataset in format
          * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -905,16 +807,16 @@ public Builder clearDataset() {
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for dataset to set. * @return This builder for chaining. */ - public Builder setDatasetBytes(com.google.protobuf.ByteString value) { + public Builder setDatasetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; onChanged(); return this; @@ -922,8 +824,6 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { private java.lang.Object table_ = ""; /** - * - * *
          * Required. The BigQuery table to which the snapshot result should be
          * written. If this table does not exist, a new table with the given name
    @@ -931,13 +831,13 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) {
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -946,8 +846,6 @@ public java.lang.String getTable() { } } /** - * - * *
          * Required. The BigQuery table to which the snapshot result should be
          * written. If this table does not exist, a new table with the given name
    @@ -955,14 +853,15 @@ public java.lang.String getTable() {
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for table. */ - public com.google.protobuf.ByteString getTableBytes() { + public com.google.protobuf.ByteString + getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -970,8 +869,6 @@ public com.google.protobuf.ByteString getTableBytes() { } } /** - * - * *
          * Required. The BigQuery table to which the snapshot result should be
          * written. If this table does not exist, a new table with the given name
    @@ -979,22 +876,20 @@ public com.google.protobuf.ByteString getTableBytes() {
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable(java.lang.String value) { + public Builder setTable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + table_ = value; onChanged(); return this; } /** - * - * *
          * Required. The BigQuery table to which the snapshot result should be
          * written. If this table does not exist, a new table with the given name
    @@ -1002,18 +897,15 @@ public Builder setTable(java.lang.String value) {
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTable() { - + table_ = getDefaultInstance().getTable(); onChanged(); return this; } /** - * - * *
          * Required. The BigQuery table to which the snapshot result should be
          * written. If this table does not exist, a new table with the given name
    @@ -1021,25 +913,23 @@ public Builder clearTable() {
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for table to set. * @return This builder for chaining. */ - public Builder setTableBytes(com.google.protobuf.ByteString value) { + public Builder setTableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + table_ = value; onChanged(); return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
          * If the destination table already exists and this flag is `TRUE`, the
          * table will be overwritten by the contents of assets snapshot. If the flag
    @@ -1048,7 +938,6 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) {
          * 
    * * bool force = 3; - * * @return The force. */ @java.lang.Override @@ -1056,8 +945,6 @@ public boolean getForce() { return force_; } /** - * - * *
          * If the destination table already exists and this flag is `TRUE`, the
          * table will be overwritten by the contents of assets snapshot. If the flag
    @@ -1066,19 +953,16 @@ public boolean getForce() {
          * 
    * * bool force = 3; - * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** - * - * *
          * If the destination table already exists and this flag is `TRUE`, the
          * table will be overwritten by the contents of assets snapshot. If the flag
    @@ -1087,11 +971,10 @@ public Builder setForce(boolean value) {
          * 
    * * bool force = 3; - * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; @@ -1099,13 +982,8 @@ public Builder clearForce() { private com.google.cloud.asset.v1p7beta1.PartitionSpec partitionSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.PartitionSpec, - com.google.cloud.asset.v1p7beta1.PartitionSpec.Builder, - com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder> - partitionSpecBuilder_; + com.google.cloud.asset.v1p7beta1.PartitionSpec, com.google.cloud.asset.v1p7beta1.PartitionSpec.Builder, com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder> partitionSpecBuilder_; /** - * - * *
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1125,15 +1003,12 @@ public Builder clearForce() {
          * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec partition_spec = 4; - * * @return Whether the partitionSpec field is set. */ public boolean hasPartitionSpec() { return partitionSpecBuilder_ != null || partitionSpec_ != null; } /** - * - * *
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1153,21 +1028,16 @@ public boolean hasPartitionSpec() {
          * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec partition_spec = 4; - * * @return The partitionSpec. */ public com.google.cloud.asset.v1p7beta1.PartitionSpec getPartitionSpec() { if (partitionSpecBuilder_ == null) { - return partitionSpec_ == null - ? com.google.cloud.asset.v1p7beta1.PartitionSpec.getDefaultInstance() - : partitionSpec_; + return partitionSpec_ == null ? com.google.cloud.asset.v1p7beta1.PartitionSpec.getDefaultInstance() : partitionSpec_; } else { return partitionSpecBuilder_.getMessage(); } } /** - * - * *
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1202,8 +1072,6 @@ public Builder setPartitionSpec(com.google.cloud.asset.v1p7beta1.PartitionSpec v
           return this;
         }
         /**
    -     *
    -     *
          * 
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1236,8 +1104,6 @@ public Builder setPartitionSpec(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1262,9 +1128,7 @@ public Builder mergePartitionSpec(com.google.cloud.asset.v1p7beta1.PartitionSpec
           if (partitionSpecBuilder_ == null) {
             if (partitionSpec_ != null) {
               partitionSpec_ =
    -              com.google.cloud.asset.v1p7beta1.PartitionSpec.newBuilder(partitionSpec_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +            com.google.cloud.asset.v1p7beta1.PartitionSpec.newBuilder(partitionSpec_).mergeFrom(value).buildPartial();
             } else {
               partitionSpec_ = value;
             }
    @@ -1276,8 +1140,6 @@ public Builder mergePartitionSpec(com.google.cloud.asset.v1p7beta1.PartitionSpec
           return this;
         }
         /**
    -     *
    -     *
          * 
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1310,8 +1172,6 @@ public Builder clearPartitionSpec() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1333,13 +1193,11 @@ public Builder clearPartitionSpec() {
          * .google.cloud.asset.v1p7beta1.PartitionSpec partition_spec = 4;
          */
         public com.google.cloud.asset.v1p7beta1.PartitionSpec.Builder getPartitionSpecBuilder() {
    -
    +      
           onChanged();
           return getPartitionSpecFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1364,14 +1222,11 @@ public com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder getPartitionSpecO
           if (partitionSpecBuilder_ != null) {
             return partitionSpecBuilder_.getMessageOrBuilder();
           } else {
    -        return partitionSpec_ == null
    -            ? com.google.cloud.asset.v1p7beta1.PartitionSpec.getDefaultInstance()
    -            : partitionSpec_;
    +        return partitionSpec_ == null ?
    +            com.google.cloud.asset.v1p7beta1.PartitionSpec.getDefaultInstance() : partitionSpec_;
           }
         }
         /**
    -     *
    -     *
          * 
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1393,26 +1248,21 @@ public com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder getPartitionSpecO
          * .google.cloud.asset.v1p7beta1.PartitionSpec partition_spec = 4;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1p7beta1.PartitionSpec,
    -            com.google.cloud.asset.v1p7beta1.PartitionSpec.Builder,
    -            com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder>
    +        com.google.cloud.asset.v1p7beta1.PartitionSpec, com.google.cloud.asset.v1p7beta1.PartitionSpec.Builder, com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder> 
             getPartitionSpecFieldBuilder() {
           if (partitionSpecBuilder_ == null) {
    -        partitionSpecBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.cloud.asset.v1p7beta1.PartitionSpec,
    -                com.google.cloud.asset.v1p7beta1.PartitionSpec.Builder,
    -                com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder>(
    -                getPartitionSpec(), getParentForChildren(), isClean());
    +        partitionSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.cloud.asset.v1p7beta1.PartitionSpec, com.google.cloud.asset.v1p7beta1.PartitionSpec.Builder, com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder>(
    +                getPartitionSpec(),
    +                getParentForChildren(),
    +                isClean());
             partitionSpec_ = null;
           }
           return partitionSpecBuilder_;
         }
     
    -    private boolean separateTablesPerAssetType_;
    +    private boolean separateTablesPerAssetType_ ;
         /**
    -     *
    -     *
          * 
          * If this flag is `TRUE`, the snapshot results will be written to one or
          * multiple tables, each of which contains results of one asset type. The
    @@ -1441,7 +1291,6 @@ public com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder getPartitionSpecO
          * 
    * * bool separate_tables_per_asset_type = 5; - * * @return The separateTablesPerAssetType. */ @java.lang.Override @@ -1449,8 +1298,6 @@ public boolean getSeparateTablesPerAssetType() { return separateTablesPerAssetType_; } /** - * - * *
          * If this flag is `TRUE`, the snapshot results will be written to one or
          * multiple tables, each of which contains results of one asset type. The
    @@ -1479,19 +1326,16 @@ public boolean getSeparateTablesPerAssetType() {
          * 
    * * bool separate_tables_per_asset_type = 5; - * * @param value The separateTablesPerAssetType to set. * @return This builder for chaining. */ public Builder setSeparateTablesPerAssetType(boolean value) { - + separateTablesPerAssetType_ = value; onChanged(); return this; } /** - * - * *
          * If this flag is `TRUE`, the snapshot results will be written to one or
          * multiple tables, each of which contains results of one asset type. The
    @@ -1520,18 +1364,17 @@ public Builder setSeparateTablesPerAssetType(boolean value) {
          * 
    * * bool separate_tables_per_asset_type = 5; - * * @return This builder for chaining. */ public Builder clearSeparateTablesPerAssetType() { - + separateTablesPerAssetType_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1541,12 +1384,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.BigQueryDestination) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.BigQueryDestination) private static final com.google.cloud.asset.v1p7beta1.BigQueryDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.BigQueryDestination(); } @@ -1555,16 +1398,27 @@ public static com.google.cloud.asset.v1p7beta1.BigQueryDestination getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BigQueryDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1579,4 +1433,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p7beta1.BigQueryDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestinationOrBuilder.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestinationOrBuilder.java similarity index 89% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestinationOrBuilder.java rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestinationOrBuilder.java index f388d517d2fa..40da134d5f87 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestinationOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestinationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; -public interface BigQueryDestinationOrBuilder - extends +public interface BigQueryDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.BigQueryDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The BigQuery dataset in format
        * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -34,13 +16,10 @@ public interface BigQueryDestinationOrBuilder
        * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The dataset. */ java.lang.String getDataset(); /** - * - * *
        * Required. The BigQuery dataset in format
        * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -49,14 +28,12 @@ public interface BigQueryDestinationOrBuilder
        * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for dataset. */ - com.google.protobuf.ByteString getDatasetBytes(); + com.google.protobuf.ByteString + getDatasetBytes(); /** - * - * *
        * Required. The BigQuery table to which the snapshot result should be
        * written. If this table does not exist, a new table with the given name
    @@ -64,13 +41,10 @@ public interface BigQueryDestinationOrBuilder
        * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The table. */ java.lang.String getTable(); /** - * - * *
        * Required. The BigQuery table to which the snapshot result should be
        * written. If this table does not exist, a new table with the given name
    @@ -78,14 +52,12 @@ public interface BigQueryDestinationOrBuilder
        * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for table. */ - com.google.protobuf.ByteString getTableBytes(); + com.google.protobuf.ByteString + getTableBytes(); /** - * - * *
        * If the destination table already exists and this flag is `TRUE`, the
        * table will be overwritten by the contents of assets snapshot. If the flag
    @@ -94,14 +66,11 @@ public interface BigQueryDestinationOrBuilder
        * 
    * * bool force = 3; - * * @return The force. */ boolean getForce(); /** - * - * *
        * [partition_spec] determines whether to export to partitioned table(s) and
        * how to partition the data.
    @@ -121,13 +90,10 @@ public interface BigQueryDestinationOrBuilder
        * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec partition_spec = 4; - * * @return Whether the partitionSpec field is set. */ boolean hasPartitionSpec(); /** - * - * *
        * [partition_spec] determines whether to export to partitioned table(s) and
        * how to partition the data.
    @@ -147,13 +113,10 @@ public interface BigQueryDestinationOrBuilder
        * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec partition_spec = 4; - * * @return The partitionSpec. */ com.google.cloud.asset.v1p7beta1.PartitionSpec getPartitionSpec(); /** - * - * *
        * [partition_spec] determines whether to export to partitioned table(s) and
        * how to partition the data.
    @@ -177,8 +140,6 @@ public interface BigQueryDestinationOrBuilder
       com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder getPartitionSpecOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * If this flag is `TRUE`, the snapshot results will be written to one or
        * multiple tables, each of which contains results of one asset type. The
    @@ -207,7 +168,6 @@ public interface BigQueryDestinationOrBuilder
        * 
    * * bool separate_tables_per_asset_type = 5; - * * @return The separateTablesPerAssetType. */ boolean getSeparateTablesPerAssetType(); diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ContentType.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ContentType.java similarity index 70% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ContentType.java rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ContentType.java index d69eb003013f..b093c4e6ef27 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ContentType.java +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ContentType.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; /** - * - * *
      * Asset content type.
      * 
    * * Protobuf enum {@code google.cloud.asset.v1p7beta1.ContentType} */ -public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { +public enum ContentType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unspecified content type.
        * 
    @@ -39,8 +21,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ CONTENT_TYPE_UNSPECIFIED(0), /** - * - * *
        * Resource metadata.
        * 
    @@ -49,8 +29,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ RESOURCE(1), /** - * - * *
        * The actual IAM policy set on a resource.
        * 
    @@ -59,8 +37,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ IAM_POLICY(2), /** - * - * *
        * The Cloud Organization Policy set on an asset.
        * 
    @@ -69,8 +45,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ ORG_POLICY(4), /** - * - * *
        * The Cloud Access context manager Policy set on an asset.
        * 
    @@ -79,8 +53,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ ACCESS_POLICY(5), /** - * - * *
        * The related resources.
        * 
    @@ -92,8 +64,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unspecified content type.
        * 
    @@ -102,8 +72,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CONTENT_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Resource metadata.
        * 
    @@ -112,8 +80,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RESOURCE_VALUE = 1; /** - * - * *
        * The actual IAM policy set on a resource.
        * 
    @@ -122,8 +88,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IAM_POLICY_VALUE = 2; /** - * - * *
        * The Cloud Organization Policy set on an asset.
        * 
    @@ -132,8 +96,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ORG_POLICY_VALUE = 4; /** - * - * *
        * The Cloud Access context manager Policy set on an asset.
        * 
    @@ -142,8 +104,6 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACCESS_POLICY_VALUE = 5; /** - * - * *
        * The related resources.
        * 
    @@ -152,6 +112,7 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RELATIONSHIP_VALUE = 7; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -176,55 +137,52 @@ public static ContentType valueOf(int value) { */ public static ContentType forNumber(int value) { switch (value) { - case 0: - return CONTENT_TYPE_UNSPECIFIED; - case 1: - return RESOURCE; - case 2: - return IAM_POLICY; - case 4: - return ORG_POLICY; - case 5: - return ACCESS_POLICY; - case 7: - return RELATIONSHIP; - default: - return null; + case 0: return CONTENT_TYPE_UNSPECIFIED; + case 1: return RESOURCE; + case 2: return IAM_POLICY; + case 4: return ORG_POLICY; + case 5: return ACCESS_POLICY; + case 7: return RELATIONSHIP; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + 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 ContentType findValueByNumber(int number) { - return ContentType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + ContentType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ContentType findValueByNumber(int number) { + return ContentType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.asset.v1p7beta1.AssetServiceProto.getDescriptor().getEnumTypes().get(0); } private static final ContentType[] VALUES = values(); - public static ContentType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ContentType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -240,3 +198,4 @@ private ContentType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.asset.v1p7beta1.ContentType) } + diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequest.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequest.java similarity index 76% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequest.java rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequest.java index 9ef4c9d0ce68..454d7c586765 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequest.java +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; /** - * - * *
      * Export asset request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.ExportAssetsRequest} */ -public final class ExportAssetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ExportAssetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.ExportAssetsRequest) ExportAssetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ExportAssetsRequest.newBuilder() to construct. private ExportAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExportAssetsRequest() { parent_ = ""; assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -46,146 +28,32 @@ private ExportAssetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExportAssetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private ExportAssetsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - assetTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - assetTypes_.add(s); - break; - } - case 32: - { - int rawValue = input.readEnum(); - - contentType_ = rawValue; - break; - } - case 42: - { - com.google.cloud.asset.v1p7beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.asset.v1p7beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - relationshipTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - relationshipTypes_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - assetTypes_ = assetTypes_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - relationshipTypes_ = relationshipTypes_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.class, - com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.Builder.class); + com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.class, com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
        * Required. The relative name of the root asset. This can only be an
        * organization number (such as "organizations/123"), a project ID (such as
    @@ -193,10 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * or a folder number (such as "folders/123").
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -205,15 +70,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
        * Required. The relative name of the root asset. This can only be an
        * organization number (such as "organizations/123"), a project ID (such as
    @@ -221,18 +85,17 @@ public java.lang.String getParent() {
        * or a folder number (such as "folders/123").
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -243,8 +106,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int READ_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp readTime_; /** - * - * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -254,7 +115,6 @@ public com.google.protobuf.ByteString getParentBytes() {
        * 
    * * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -262,8 +122,6 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -273,7 +131,6 @@ public boolean hasReadTime() {
        * 
    * * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ @java.lang.Override @@ -281,8 +138,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -301,8 +156,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       public static final int ASSET_TYPES_FIELD_NUMBER = 3;
       private com.google.protobuf.LazyStringList assetTypes_;
       /**
    -   *
    -   *
        * 
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -321,15 +174,13 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
        * 
    * * repeated string asset_types = 3; - * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList getAssetTypesList() { + public com.google.protobuf.ProtocolStringList + getAssetTypesList() { return assetTypes_; } /** - * - * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -348,15 +199,12 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() {
        * 
    * * repeated string asset_types = 3; - * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** - * - * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -375,7 +223,6 @@ public int getAssetTypesCount() {
        * 
    * * repeated string asset_types = 3; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -383,8 +230,6 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** - * - * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -403,66 +248,52 @@ public java.lang.String getAssetTypes(int index) {
        * 
    * * repeated string asset_types = 3; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString + getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } public static final int CONTENT_TYPE_FIELD_NUMBER = 4; private int contentType_; /** - * - * *
        * Asset content type. If not specified, no content but the asset name will be
        * returned.
        * 
    * * .google.cloud.asset.v1p7beta1.ContentType content_type = 4; - * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override - public int getContentTypeValue() { + @java.lang.Override public int getContentTypeValue() { return contentType_; } /** - * - * *
        * Asset content type. If not specified, no content but the asset name will be
        * returned.
        * 
    * * .google.cloud.asset.v1p7beta1.ContentType content_type = 4; - * * @return The contentType. */ - @java.lang.Override - public com.google.cloud.asset.v1p7beta1.ContentType getContentType() { + @java.lang.Override public com.google.cloud.asset.v1p7beta1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1p7beta1.ContentType result = - com.google.cloud.asset.v1p7beta1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1p7beta1.ContentType result = com.google.cloud.asset.v1p7beta1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1p7beta1.ContentType.UNRECOGNIZED : result; } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.asset.v1p7beta1.OutputConfig outputConfig_; /** - * - * *
        * Required. Output configuration indicating where the results will be output
        * to.
        * 
    * - * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -470,36 +301,25 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
        * Required. Output configuration indicating where the results will be output
        * to.
        * 
    * - * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
        * Required. Output configuration indicating where the results will be output
        * to.
        * 
    * - * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -509,8 +329,6 @@ public com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrB public static final int RELATIONSHIP_TYPES_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList relationshipTypes_; /** - * - * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -525,15 +343,13 @@ public com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrB
        * 
    * * repeated string relationship_types = 6; - * * @return A list containing the relationshipTypes. */ - public com.google.protobuf.ProtocolStringList getRelationshipTypesList() { + public com.google.protobuf.ProtocolStringList + getRelationshipTypesList() { return relationshipTypes_; } /** - * - * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -548,15 +364,12 @@ public com.google.protobuf.ProtocolStringList getRelationshipTypesList() {
        * 
    * * repeated string relationship_types = 6; - * * @return The count of relationshipTypes. */ public int getRelationshipTypesCount() { return relationshipTypes_.size(); } /** - * - * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -571,7 +384,6 @@ public int getRelationshipTypesCount() {
        * 
    * * repeated string relationship_types = 6; - * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -579,8 +391,6 @@ public java.lang.String getRelationshipTypes(int index) { return relationshipTypes_.get(index); } /** - * - * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -595,16 +405,15 @@ public java.lang.String getRelationshipTypes(int index) {
        * 
    * * repeated string relationship_types = 6; - * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) { + public com.google.protobuf.ByteString + getRelationshipTypesBytes(int index) { return relationshipTypes_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -616,7 +425,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -626,8 +436,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < assetTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, assetTypes_.getRaw(i)); } - if (contentType_ - != com.google.cloud.asset.v1p7beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + if (contentType_ != com.google.cloud.asset.v1p7beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, contentType_); } if (outputConfig_ != null) { @@ -636,7 +445,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < relationshipTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, relationshipTypes_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -649,7 +458,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReadTime()); } { int dataSize = 0; @@ -659,12 +469,13 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAssetTypesList().size(); } - if (contentType_ - != com.google.cloud.asset.v1p7beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, contentType_); + if (contentType_ != com.google.cloud.asset.v1p7beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, contentType_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getOutputConfig()); } { int dataSize = 0; @@ -674,7 +485,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getRelationshipTypesList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -682,27 +493,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p7beta1.ExportAssetsRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1p7beta1.ExportAssetsRequest other = - (com.google.cloud.asset.v1p7beta1.ExportAssetsRequest) obj; + com.google.cloud.asset.v1p7beta1.ExportAssetsRequest other = (com.google.cloud.asset.v1p7beta1.ExportAssetsRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } - if (!getAssetTypesList().equals(other.getAssetTypesList())) return false; + if (!getAssetTypesList() + .equals(other.getAssetTypesList())) return false; if (contentType_ != other.contentType_) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } - if (!getRelationshipTypesList().equals(other.getRelationshipTypesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getRelationshipTypesList() + .equals(other.getRelationshipTypesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -733,148 +548,135 @@ public int hashCode() { hash = (37 * hash) + RELATIONSHIP_TYPES_FIELD_NUMBER; hash = (53 * hash) + getRelationshipTypesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest 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.asset.v1p7beta1.ExportAssetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.ExportAssetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Export asset request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.ExportAssetsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.ExportAssetsRequest) com.google.cloud.asset.v1p7beta1.ExportAssetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.class, - com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.Builder.class); + com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.class, com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.Builder.class); } // Construct using com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -902,9 +704,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_descriptor; } @java.lang.Override @@ -923,8 +725,7 @@ public com.google.cloud.asset.v1p7beta1.ExportAssetsRequest build() { @java.lang.Override public com.google.cloud.asset.v1p7beta1.ExportAssetsRequest buildPartial() { - com.google.cloud.asset.v1p7beta1.ExportAssetsRequest result = - new com.google.cloud.asset.v1p7beta1.ExportAssetsRequest(this); + com.google.cloud.asset.v1p7beta1.ExportAssetsRequest result = new com.google.cloud.asset.v1p7beta1.ExportAssetsRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (readTimeBuilder_ == null) { @@ -956,39 +757,38 @@ public com.google.cloud.asset.v1p7beta1.ExportAssetsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p7beta1.ExportAssetsRequest) { - return mergeFrom((com.google.cloud.asset.v1p7beta1.ExportAssetsRequest) other); + return mergeFrom((com.google.cloud.asset.v1p7beta1.ExportAssetsRequest)other); } else { super.mergeFrom(other); return this; @@ -996,8 +796,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.ExportAssetsRequest other) { - if (other == com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1031,7 +830,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.ExportAssetsRequest ot } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1046,27 +845,72 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getReadTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAssetTypesIsMutable(); + assetTypes_.add(s); + break; + } // case 26 + case 32: { + contentType_ = input.readEnum(); + + break; + } // case 32 + case 42: { + input.readMessage( + getOutputConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + ensureRelationshipTypesIsMutable(); + relationshipTypes_.add(s); + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.asset.v1p7beta1.ExportAssetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -1074,16 +918,14 @@ public Builder mergeFrom(
          * or a folder number (such as "folders/123").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1092,8 +934,6 @@ public java.lang.String getParent() { } } /** - * - * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -1101,17 +941,16 @@ public java.lang.String getParent() {
          * or a folder number (such as "folders/123").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1119,8 +958,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -1128,25 +965,21 @@ public com.google.protobuf.ByteString getParentBytes() {
          * or a folder number (such as "folders/123").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -1154,21 +987,16 @@ public Builder setParent(java.lang.String value) {
          * or a folder number (such as "folders/123").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -1176,19 +1004,17 @@ public Builder clearParent() {
          * or a folder number (such as "folders/123").
          * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1196,13 +1022,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1212,15 +1033,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
          * 
    * * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1230,7 +1048,6 @@ public boolean hasReadTime() {
          * 
    * * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1241,8 +1058,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1267,8 +1082,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1279,7 +1092,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
          *
          * .google.protobuf.Timestamp read_time = 2;
          */
    -    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
    +    public Builder setReadTime(
    +        com.google.protobuf.Timestamp.Builder builderForValue) {
           if (readTimeBuilder_ == null) {
             readTime_ = builderForValue.build();
             onChanged();
    @@ -1290,8 +1104,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1306,7 +1118,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
           if (readTimeBuilder_ == null) {
             if (readTime_ != null) {
               readTime_ =
    -              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
    +            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
             } else {
               readTime_ = value;
             }
    @@ -1318,8 +1130,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1342,8 +1152,6 @@ public Builder clearReadTime() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1355,13 +1163,11 @@ public Builder clearReadTime() {
          * .google.protobuf.Timestamp read_time = 2;
          */
         public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
    -
    +      
           onChanged();
           return getReadTimeFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1376,12 +1182,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
           if (readTimeBuilder_ != null) {
             return readTimeBuilder_.getMessageOrBuilder();
           } else {
    -        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
    +        return readTime_ == null ?
    +            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
           }
         }
         /**
    -     *
    -     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1393,34 +1198,27 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
          * .google.protobuf.Timestamp read_time = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp,
    -            com.google.protobuf.Timestamp.Builder,
    -            com.google.protobuf.TimestampOrBuilder>
    +        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
             getReadTimeFieldBuilder() {
           if (readTimeBuilder_ == null) {
    -        readTimeBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.protobuf.Timestamp,
    -                com.google.protobuf.Timestamp.Builder,
    -                com.google.protobuf.TimestampOrBuilder>(
    -                getReadTime(), getParentForChildren(), isClean());
    +        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    +                getReadTime(),
    +                getParentForChildren(),
    +                isClean());
             readTime_ = null;
           }
           return readTimeBuilder_;
         }
     
    -    private com.google.protobuf.LazyStringList assetTypes_ =
    -        com.google.protobuf.LazyStringArrayList.EMPTY;
    -
    +    private com.google.protobuf.LazyStringList assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
         private void ensureAssetTypesIsMutable() {
           if (!((bitField0_ & 0x00000001) != 0)) {
             assetTypes_ = new com.google.protobuf.LazyStringArrayList(assetTypes_);
             bitField0_ |= 0x00000001;
    -      }
    +       }
         }
         /**
    -     *
    -     *
          * 
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1439,15 +1237,13 @@ private void ensureAssetTypesIsMutable() {
          * 
    * * repeated string asset_types = 3; - * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList getAssetTypesList() { + public com.google.protobuf.ProtocolStringList + getAssetTypesList() { return assetTypes_.getUnmodifiableView(); } /** - * - * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1466,15 +1262,12 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() {
          * 
    * * repeated string asset_types = 3; - * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** - * - * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1493,7 +1286,6 @@ public int getAssetTypesCount() {
          * 
    * * repeated string asset_types = 3; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -1501,8 +1293,6 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** - * - * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1521,16 +1311,14 @@ public java.lang.String getAssetTypes(int index) {
          * 
    * * repeated string asset_types = 3; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString + getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } /** - * - * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1549,23 +1337,21 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) {
          * 
    * * repeated string asset_types = 3; - * * @param index The index to set the value at. * @param value The assetTypes to set. * @return This builder for chaining. */ - public Builder setAssetTypes(int index, java.lang.String value) { + public Builder setAssetTypes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.set(index, value); onChanged(); return this; } /** - * - * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1584,22 +1370,20 @@ public Builder setAssetTypes(int index, java.lang.String value) {
          * 
    * * repeated string asset_types = 3; - * * @param value The assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypes(java.lang.String value) { + public Builder addAssetTypes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); return this; } /** - * - * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1618,19 +1402,18 @@ public Builder addAssetTypes(java.lang.String value) {
          * 
    * * repeated string asset_types = 3; - * * @param values The assetTypes to add. * @return This builder for chaining. */ - public Builder addAllAssetTypes(java.lang.Iterable values) { + public Builder addAllAssetTypes( + java.lang.Iterable values) { ensureAssetTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, assetTypes_); onChanged(); return this; } /** - * - * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1649,7 +1432,6 @@ public Builder addAllAssetTypes(java.lang.Iterable values) {
          * 
    * * repeated string asset_types = 3; - * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1659,8 +1441,6 @@ public Builder clearAssetTypes() { return this; } /** - * - * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1679,15 +1459,15 @@ public Builder clearAssetTypes() {
          * 
    * * repeated string asset_types = 3; - * * @param value The bytes of the assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { + public Builder addAssetTypesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); @@ -1696,69 +1476,55 @@ public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { private int contentType_ = 0; /** - * - * *
          * Asset content type. If not specified, no content but the asset name will be
          * returned.
          * 
    * * .google.cloud.asset.v1p7beta1.ContentType content_type = 4; - * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override - public int getContentTypeValue() { + @java.lang.Override public int getContentTypeValue() { return contentType_; } /** - * - * *
          * Asset content type. If not specified, no content but the asset name will be
          * returned.
          * 
    * * .google.cloud.asset.v1p7beta1.ContentType content_type = 4; - * * @param value The enum numeric value on the wire for contentType to set. * @return This builder for chaining. */ public Builder setContentTypeValue(int value) { - + contentType_ = value; onChanged(); return this; } /** - * - * *
          * Asset content type. If not specified, no content but the asset name will be
          * returned.
          * 
    * * .google.cloud.asset.v1p7beta1.ContentType content_type = 4; - * * @return The contentType. */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1p7beta1.ContentType result = - com.google.cloud.asset.v1p7beta1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1p7beta1.ContentType result = com.google.cloud.asset.v1p7beta1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1p7beta1.ContentType.UNRECOGNIZED : result; } /** - * - * *
          * Asset content type. If not specified, no content but the asset name will be
          * returned.
          * 
    * * .google.cloud.asset.v1p7beta1.ContentType content_type = 4; - * * @param value The contentType to set. * @return This builder for chaining. */ @@ -1766,25 +1532,22 @@ public Builder setContentType(com.google.cloud.asset.v1p7beta1.ContentType value if (value == null) { throw new NullPointerException(); } - + contentType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
          * Asset content type. If not specified, no content but the asset name will be
          * returned.
          * 
    * * .google.cloud.asset.v1p7beta1.ContentType content_type = 4; - * * @return This builder for chaining. */ public Builder clearContentType() { - + contentType_ = 0; onChanged(); return this; @@ -1792,61 +1555,42 @@ public Builder clearContentType() { private com.google.cloud.asset.v1p7beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.OutputConfig, - com.google.cloud.asset.v1p7beta1.OutputConfig.Builder, - com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.asset.v1p7beta1.OutputConfig, com.google.cloud.asset.v1p7beta1.OutputConfig.Builder, com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
          * Required. Output configuration indicating where the results will be output
          * to.
          * 
    * - * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
          * Required. Output configuration indicating where the results will be output
          * to.
          * 
    * - * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.asset.v1p7beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
          * Required. Output configuration indicating where the results will be output
          * to.
          * 
    * - * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig(com.google.cloud.asset.v1p7beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1862,16 +1606,12 @@ public Builder setOutputConfig(com.google.cloud.asset.v1p7beta1.OutputConfig val return this; } /** - * - * *
          * Required. Output configuration indicating where the results will be output
          * to.
          * 
    * - * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.asset.v1p7beta1.OutputConfig.Builder builderForValue) { @@ -1885,24 +1625,18 @@ public Builder setOutputConfig( return this; } /** - * - * *
          * Required. Output configuration indicating where the results will be output
          * to.
          * 
    * - * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeOutputConfig(com.google.cloud.asset.v1p7beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.asset.v1p7beta1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1p7beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -1914,16 +1648,12 @@ public Builder mergeOutputConfig(com.google.cloud.asset.v1p7beta1.OutputConfig v return this; } /** - * - * *
          * Required. Output configuration indicating where the results will be output
          * to.
          * 
    * - * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1937,84 +1667,64 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
          * Required. Output configuration indicating where the results will be output
          * to.
          * 
    * - * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.asset.v1p7beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
          * Required. Output configuration indicating where the results will be output
          * to.
          * 
    * - * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
          * Required. Output configuration indicating where the results will be output
          * to.
          * 
    * - * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.OutputConfig, - com.google.cloud.asset.v1p7beta1.OutputConfig.Builder, - com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder> + com.google.cloud.asset.v1p7beta1.OutputConfig, com.google.cloud.asset.v1p7beta1.OutputConfig.Builder, com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.OutputConfig, - com.google.cloud.asset.v1p7beta1.OutputConfig.Builder, - com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p7beta1.OutputConfig, com.google.cloud.asset.v1p7beta1.OutputConfig.Builder, com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - private com.google.protobuf.LazyStringList relationshipTypes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList relationshipTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRelationshipTypesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { relationshipTypes_ = new com.google.protobuf.LazyStringArrayList(relationshipTypes_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2029,15 +1739,13 @@ private void ensureRelationshipTypesIsMutable() {
          * 
    * * repeated string relationship_types = 6; - * * @return A list containing the relationshipTypes. */ - public com.google.protobuf.ProtocolStringList getRelationshipTypesList() { + public com.google.protobuf.ProtocolStringList + getRelationshipTypesList() { return relationshipTypes_.getUnmodifiableView(); } /** - * - * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2052,15 +1760,12 @@ public com.google.protobuf.ProtocolStringList getRelationshipTypesList() {
          * 
    * * repeated string relationship_types = 6; - * * @return The count of relationshipTypes. */ public int getRelationshipTypesCount() { return relationshipTypes_.size(); } /** - * - * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2075,7 +1780,6 @@ public int getRelationshipTypesCount() {
          * 
    * * repeated string relationship_types = 6; - * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -2083,8 +1787,6 @@ public java.lang.String getRelationshipTypes(int index) { return relationshipTypes_.get(index); } /** - * - * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2099,16 +1801,14 @@ public java.lang.String getRelationshipTypes(int index) {
          * 
    * * repeated string relationship_types = 6; - * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) { + public com.google.protobuf.ByteString + getRelationshipTypesBytes(int index) { return relationshipTypes_.getByteString(index); } /** - * - * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2123,23 +1823,21 @@ public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) {
          * 
    * * repeated string relationship_types = 6; - * * @param index The index to set the value at. * @param value The relationshipTypes to set. * @return This builder for chaining. */ - public Builder setRelationshipTypes(int index, java.lang.String value) { + public Builder setRelationshipTypes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRelationshipTypesIsMutable(); + throw new NullPointerException(); + } + ensureRelationshipTypesIsMutable(); relationshipTypes_.set(index, value); onChanged(); return this; } /** - * - * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2154,22 +1852,20 @@ public Builder setRelationshipTypes(int index, java.lang.String value) {
          * 
    * * repeated string relationship_types = 6; - * * @param value The relationshipTypes to add. * @return This builder for chaining. */ - public Builder addRelationshipTypes(java.lang.String value) { + public Builder addRelationshipTypes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRelationshipTypesIsMutable(); + throw new NullPointerException(); + } + ensureRelationshipTypesIsMutable(); relationshipTypes_.add(value); onChanged(); return this; } /** - * - * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2184,19 +1880,18 @@ public Builder addRelationshipTypes(java.lang.String value) {
          * 
    * * repeated string relationship_types = 6; - * * @param values The relationshipTypes to add. * @return This builder for chaining. */ - public Builder addAllRelationshipTypes(java.lang.Iterable values) { + public Builder addAllRelationshipTypes( + java.lang.Iterable values) { ensureRelationshipTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relationshipTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, relationshipTypes_); onChanged(); return this; } /** - * - * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2211,7 +1906,6 @@ public Builder addAllRelationshipTypes(java.lang.Iterable valu
          * 
    * * repeated string relationship_types = 6; - * * @return This builder for chaining. */ public Builder clearRelationshipTypes() { @@ -2221,8 +1915,6 @@ public Builder clearRelationshipTypes() { return this; } /** - * - * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2237,23 +1929,23 @@ public Builder clearRelationshipTypes() {
          * 
    * * repeated string relationship_types = 6; - * * @param value The bytes of the relationshipTypes to add. * @return This builder for chaining. */ - public Builder addRelationshipTypesBytes(com.google.protobuf.ByteString value) { + public Builder addRelationshipTypesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureRelationshipTypesIsMutable(); relationshipTypes_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2263,12 +1955,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.ExportAssetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.ExportAssetsRequest) private static final com.google.cloud.asset.v1p7beta1.ExportAssetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.ExportAssetsRequest(); } @@ -2277,16 +1969,27 @@ public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportAssetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportAssetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2301,4 +2004,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p7beta1.ExportAssetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequestOrBuilder.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequestOrBuilder.java similarity index 86% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequestOrBuilder.java rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequestOrBuilder.java index 909201e7a98f..068316c46c0b 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequestOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; -public interface ExportAssetsRequestOrBuilder - extends +public interface ExportAssetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.ExportAssetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The relative name of the root asset. This can only be an
        * organization number (such as "organizations/123"), a project ID (such as
    @@ -33,16 +15,11 @@ public interface ExportAssetsRequestOrBuilder
        * or a folder number (such as "folders/123").
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
        * Required. The relative name of the root asset. This can only be an
        * organization number (such as "organizations/123"), a project ID (such as
    @@ -50,17 +27,13 @@ public interface ExportAssetsRequestOrBuilder
        * or a folder number (such as "folders/123").
        * 
    * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -70,13 +43,10 @@ public interface ExportAssetsRequestOrBuilder
        * 
    * * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -86,13 +56,10 @@ public interface ExportAssetsRequestOrBuilder
        * 
    * * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -106,8 +73,6 @@ public interface ExportAssetsRequestOrBuilder
       com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -126,13 +91,11 @@ public interface ExportAssetsRequestOrBuilder
        * 
    * * repeated string asset_types = 3; - * * @return A list containing the assetTypes. */ - java.util.List getAssetTypesList(); + java.util.List + getAssetTypesList(); /** - * - * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -151,13 +114,10 @@ public interface ExportAssetsRequestOrBuilder
        * 
    * * repeated string asset_types = 3; - * * @return The count of assetTypes. */ int getAssetTypesCount(); /** - * - * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -176,14 +136,11 @@ public interface ExportAssetsRequestOrBuilder
        * 
    * * repeated string asset_types = 3; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ java.lang.String getAssetTypes(int index); /** - * - * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -202,86 +159,64 @@ public interface ExportAssetsRequestOrBuilder
        * 
    * * repeated string asset_types = 3; - * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - com.google.protobuf.ByteString getAssetTypesBytes(int index); + com.google.protobuf.ByteString + getAssetTypesBytes(int index); /** - * - * *
        * Asset content type. If not specified, no content but the asset name will be
        * returned.
        * 
    * * .google.cloud.asset.v1p7beta1.ContentType content_type = 4; - * * @return The enum numeric value on the wire for contentType. */ int getContentTypeValue(); /** - * - * *
        * Asset content type. If not specified, no content but the asset name will be
        * returned.
        * 
    * * .google.cloud.asset.v1p7beta1.ContentType content_type = 4; - * * @return The contentType. */ com.google.cloud.asset.v1p7beta1.ContentType getContentType(); /** - * - * *
        * Required. Output configuration indicating where the results will be output
        * to.
        * 
    * - * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
        * Required. Output configuration indicating where the results will be output
        * to.
        * 
    * - * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ com.google.cloud.asset.v1p7beta1.OutputConfig getOutputConfig(); /** - * - * *
        * Required. Output configuration indicating where the results will be output
        * to.
        * 
    * - * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -296,13 +231,11 @@ public interface ExportAssetsRequestOrBuilder
        * 
    * * repeated string relationship_types = 6; - * * @return A list containing the relationshipTypes. */ - java.util.List getRelationshipTypesList(); + java.util.List + getRelationshipTypesList(); /** - * - * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -317,13 +250,10 @@ public interface ExportAssetsRequestOrBuilder
        * 
    * * repeated string relationship_types = 6; - * * @return The count of relationshipTypes. */ int getRelationshipTypesCount(); /** - * - * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -338,14 +268,11 @@ public interface ExportAssetsRequestOrBuilder
        * 
    * * repeated string relationship_types = 6; - * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ java.lang.String getRelationshipTypes(int index); /** - * - * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -360,9 +287,9 @@ public interface ExportAssetsRequestOrBuilder
        * 
    * * repeated string relationship_types = 6; - * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - com.google.protobuf.ByteString getRelationshipTypesBytes(int index); + com.google.protobuf.ByteString + getRelationshipTypesBytes(int index); } diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponse.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponse.java similarity index 69% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponse.java rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponse.java index bcfa574a7965..ac3bc4d6a5ce 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponse.java +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; /** - * - * *
      * The export asset response. This message is returned by the
      * [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation]
    @@ -31,141 +14,51 @@
      *
      * Protobuf type {@code google.cloud.asset.v1p7beta1.ExportAssetsResponse}
      */
    -public final class ExportAssetsResponse extends com.google.protobuf.GeneratedMessageV3
    -    implements
    +public final class ExportAssetsResponse extends
    +    com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.ExportAssetsResponse)
         ExportAssetsResponseOrBuilder {
    -  private static final long serialVersionUID = 0L;
    +private static final long serialVersionUID = 0L;
       // Use ExportAssetsResponse.newBuilder() to construct.
       private ExportAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -
    -  private ExportAssetsResponse() {}
    +  private ExportAssetsResponse() {
    +  }
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(
    +      UnusedPrivateParameter unused) {
         return new ExportAssetsResponse();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet
    +  getUnknownFields() {
         return this.unknownFields;
       }
    -
    -  private ExportAssetsResponse(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              com.google.protobuf.Timestamp.Builder subBuilder = null;
    -              if (readTime_ != null) {
    -                subBuilder = readTime_.toBuilder();
    -              }
    -              readTime_ =
    -                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(readTime_);
    -                readTime_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.cloud.asset.v1p7beta1.OutputConfig.Builder subBuilder = null;
    -              if (outputConfig_ != null) {
    -                subBuilder = outputConfig_.toBuilder();
    -              }
    -              outputConfig_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p7beta1.OutputConfig.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(outputConfig_);
    -                outputConfig_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 26:
    -            {
    -              com.google.cloud.asset.v1p7beta1.OutputResult.Builder subBuilder = null;
    -              if (outputResult_ != null) {
    -                subBuilder = outputResult_.toBuilder();
    -              }
    -              outputResult_ =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1p7beta1.OutputResult.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(outputResult_);
    -                outputResult_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
    -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.cloud.asset.v1p7beta1.AssetServiceProto
    -        .internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor;
    +  public static final com.google.protobuf.Descriptors.Descriptor
    +      getDescriptor() {
    +    return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1p7beta1.AssetServiceProto
    -        .internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_fieldAccessorTable
    +    return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1p7beta1.ExportAssetsResponse.class,
    -            com.google.cloud.asset.v1p7beta1.ExportAssetsResponse.Builder.class);
    +            com.google.cloud.asset.v1p7beta1.ExportAssetsResponse.class, com.google.cloud.asset.v1p7beta1.ExportAssetsResponse.Builder.class);
       }
     
       public static final int READ_TIME_FIELD_NUMBER = 1;
       private com.google.protobuf.Timestamp readTime_;
       /**
    -   *
    -   *
        * 
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -173,14 +66,11 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; - * * @return The readTime. */ @java.lang.Override @@ -188,8 +78,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
        * Time the snapshot was taken.
        * 
    @@ -204,14 +92,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.asset.v1p7beta1.OutputConfig outputConfig_; /** - * - * *
        * Output configuration indicating where the results were output to.
        * 
    * * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 2; - * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -219,25 +104,18 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
        * Output configuration indicating where the results were output to.
        * 
    * * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 2; - * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
        * Output configuration indicating where the results were output to.
        * 
    @@ -252,8 +130,6 @@ public com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrB public static final int OUTPUT_RESULT_FIELD_NUMBER = 3; private com.google.cloud.asset.v1p7beta1.OutputResult outputResult_; /** - * - * *
        * Output result indicating where the assets were exported to. For example, a
        * set of actual Google Cloud Storage object uris where the assets are
    @@ -263,7 +139,6 @@ public com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrB
        * 
    * * .google.cloud.asset.v1p7beta1.OutputResult output_result = 3; - * * @return Whether the outputResult field is set. */ @java.lang.Override @@ -271,8 +146,6 @@ public boolean hasOutputResult() { return outputResult_ != null; } /** - * - * *
        * Output result indicating where the assets were exported to. For example, a
        * set of actual Google Cloud Storage object uris where the assets are
    @@ -282,18 +155,13 @@ public boolean hasOutputResult() {
        * 
    * * .google.cloud.asset.v1p7beta1.OutputResult output_result = 3; - * * @return The outputResult. */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.OutputResult getOutputResult() { - return outputResult_ == null - ? com.google.cloud.asset.v1p7beta1.OutputResult.getDefaultInstance() - : outputResult_; + return outputResult_ == null ? com.google.cloud.asset.v1p7beta1.OutputResult.getDefaultInstance() : outputResult_; } /** - * - * *
        * Output result indicating where the assets were exported to. For example, a
        * set of actual Google Cloud Storage object uris where the assets are
    @@ -310,7 +178,6 @@ public com.google.cloud.asset.v1p7beta1.OutputResultOrBuilder getOutputResultOrB
       }
     
       private byte memoizedIsInitialized = -1;
    -
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -322,7 +189,8 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output)
    +                      throws java.io.IOException {
         if (readTime_ != null) {
           output.writeMessage(1, getReadTime());
         }
    @@ -332,7 +200,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (outputResult_ != null) {
           output.writeMessage(3, getOutputResult());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -342,15 +210,18 @@ public int getSerializedSize() {
     
         size = 0;
         if (readTime_ != null) {
    -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReadTime());
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(1, getReadTime());
         }
         if (outputConfig_ != null) {
    -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputConfig());
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(2, getOutputConfig());
         }
         if (outputResult_ != null) {
    -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputResult());
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(3, getOutputResult());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -358,27 +229,29 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -      return true;
    +     return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1p7beta1.ExportAssetsResponse)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1p7beta1.ExportAssetsResponse other =
    -        (com.google.cloud.asset.v1p7beta1.ExportAssetsResponse) obj;
    +    com.google.cloud.asset.v1p7beta1.ExportAssetsResponse other = (com.google.cloud.asset.v1p7beta1.ExportAssetsResponse) obj;
     
         if (hasReadTime() != other.hasReadTime()) return false;
         if (hasReadTime()) {
    -      if (!getReadTime().equals(other.getReadTime())) return false;
    +      if (!getReadTime()
    +          .equals(other.getReadTime())) return false;
         }
         if (hasOutputConfig() != other.hasOutputConfig()) return false;
         if (hasOutputConfig()) {
    -      if (!getOutputConfig().equals(other.getOutputConfig())) return false;
    +      if (!getOutputConfig()
    +          .equals(other.getOutputConfig())) return false;
         }
         if (hasOutputResult() != other.hasOutputResult()) return false;
         if (hasOutputResult()) {
    -      if (!getOutputResult().equals(other.getOutputResult())) return false;
    +      if (!getOutputResult()
    +          .equals(other.getOutputResult())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -401,110 +274,102 @@ public int hashCode() {
           hash = (37 * hash) + OUTPUT_RESULT_FIELD_NUMBER;
           hash = (53 * hash) + getOutputResult().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
     
       public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parseFrom(
    -      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    +      java.nio.ByteBuffer data)
    +      throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parseFrom(
    -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse 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.asset.v1p7beta1.ExportAssetsResponse parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parseFrom(
    -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
    -  public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parseFrom(
    -      java.io.InputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +  public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parseFrom(java.io.InputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parseFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
    -
    -  public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parseDelimitedFrom(
    -      java.io.InputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    +  public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parseDelimitedFrom(java.io.InputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parseDelimitedFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parseFrom(
    -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() {
    -    return newBuilder();
    -  }
    -
    +  public Builder newBuilderForType() { return newBuilder(); }
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    -
    -  public static Builder newBuilder(
    -      com.google.cloud.asset.v1p7beta1.ExportAssetsResponse prototype) {
    +  public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.ExportAssetsResponse prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    -
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE
    +        ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(
    +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    -   *
    -   *
        * 
        * The export asset response. This message is returned by the
        * [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation]
    @@ -515,39 +380,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        * Protobuf type {@code google.cloud.asset.v1p7beta1.ExportAssetsResponse}
        */
    -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    -      implements
    +  public static final class Builder extends
    +      com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.ExportAssetsResponse)
           com.google.cloud.asset.v1p7beta1.ExportAssetsResponseOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.cloud.asset.v1p7beta1.AssetServiceProto
    -          .internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor
    +        getDescriptor() {
    +      return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1p7beta1.AssetServiceProto
    -          .internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_fieldAccessorTable
    +      return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1p7beta1.ExportAssetsResponse.class,
    -              com.google.cloud.asset.v1p7beta1.ExportAssetsResponse.Builder.class);
    +              com.google.cloud.asset.v1p7beta1.ExportAssetsResponse.class, com.google.cloud.asset.v1p7beta1.ExportAssetsResponse.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1p7beta1.ExportAssetsResponse.newBuilder()
         private Builder() {
    -      maybeForceBuilderInitialization();
    +
         }
     
    -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    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();
    @@ -573,9 +432,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.cloud.asset.v1p7beta1.AssetServiceProto
    -          .internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor
    +        getDescriptorForType() {
    +      return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor;
         }
     
         @java.lang.Override
    @@ -594,8 +453,7 @@ public com.google.cloud.asset.v1p7beta1.ExportAssetsResponse build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1p7beta1.ExportAssetsResponse buildPartial() {
    -      com.google.cloud.asset.v1p7beta1.ExportAssetsResponse result =
    -          new com.google.cloud.asset.v1p7beta1.ExportAssetsResponse(this);
    +      com.google.cloud.asset.v1p7beta1.ExportAssetsResponse result = new com.google.cloud.asset.v1p7beta1.ExportAssetsResponse(this);
           if (readTimeBuilder_ == null) {
             result.readTime_ = readTime_;
           } else {
    @@ -619,39 +477,38 @@ public com.google.cloud.asset.v1p7beta1.ExportAssetsResponse buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    -
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1p7beta1.ExportAssetsResponse) {
    -        return mergeFrom((com.google.cloud.asset.v1p7beta1.ExportAssetsResponse) other);
    +        return mergeFrom((com.google.cloud.asset.v1p7beta1.ExportAssetsResponse)other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -659,8 +516,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
         }
     
         public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.ExportAssetsResponse other) {
    -      if (other == com.google.cloud.asset.v1p7beta1.ExportAssetsResponse.getDefaultInstance())
    -        return this;
    +      if (other == com.google.cloud.asset.v1p7beta1.ExportAssetsResponse.getDefaultInstance()) return this;
           if (other.hasReadTime()) {
             mergeReadTime(other.getReadTime());
           }
    @@ -670,7 +526,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.ExportAssetsResponse o
           if (other.hasOutputResult()) {
             mergeOutputResult(other.getOutputResult());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -685,50 +541,74 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10: {
    +              input.readMessage(
    +                  getReadTimeFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 10
    +            case 18: {
    +              input.readMessage(
    +                  getOutputConfigFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 18
    +            case 26: {
    +              input.readMessage(
    +                  getOutputResultFieldBuilder().getBuilder(),
    +                  extensionRegistry);
    +
    +              break;
    +            } // case 26
    +            default: {
    +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                done = true; // was an endgroup tag
    +              }
    +              break;
    +            } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1p7beta1.ExportAssetsResponse) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
         private com.google.protobuf.Timestamp readTime_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp,
    -            com.google.protobuf.Timestamp.Builder,
    -            com.google.protobuf.TimestampOrBuilder>
    -        readTimeBuilder_;
    +        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_;
         /**
    -     *
    -     *
          * 
          * Time the snapshot was taken.
          * 
    * * .google.protobuf.Timestamp read_time = 1; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
          * Time the snapshot was taken.
          * 
    * * .google.protobuf.Timestamp read_time = 1; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -739,8 +619,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
          * Time the snapshot was taken.
          * 
    @@ -761,15 +639,14 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
          * Time the snapshot was taken.
          * 
    * * .google.protobuf.Timestamp read_time = 1; */ - public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -780,8 +657,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue return this; } /** - * - * *
          * Time the snapshot was taken.
          * 
    @@ -792,7 +667,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -804,8 +679,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
          * Time the snapshot was taken.
          * 
    @@ -824,8 +697,6 @@ public Builder clearReadTime() { return this; } /** - * - * *
          * Time the snapshot was taken.
          * 
    @@ -833,13 +704,11 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 1; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** - * - * *
          * Time the snapshot was taken.
          * 
    @@ -850,12 +719,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** - * - * *
          * Time the snapshot was taken.
          * 
    @@ -863,17 +731,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getReadTime(), getParentForChildren(), isClean()); + readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getReadTime(), + getParentForChildren(), + isClean()); readTime_ = null; } return readTimeBuilder_; @@ -881,47 +746,34 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private com.google.cloud.asset.v1p7beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.OutputConfig, - com.google.cloud.asset.v1p7beta1.OutputConfig.Builder, - com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.asset.v1p7beta1.OutputConfig, com.google.cloud.asset.v1p7beta1.OutputConfig.Builder, com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
          * Output configuration indicating where the results were output to.
          * 
    * * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 2; - * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
          * Output configuration indicating where the results were output to.
          * 
    * * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 2; - * * @return The outputConfig. */ public com.google.cloud.asset.v1p7beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -942,8 +794,6 @@ public Builder setOutputConfig(com.google.cloud.asset.v1p7beta1.OutputConfig val return this; } /** - * - * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -962,8 +812,6 @@ public Builder setOutputConfig( return this; } /** - * - * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -974,9 +822,7 @@ public Builder mergeOutputConfig(com.google.cloud.asset.v1p7beta1.OutputConfig v if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.asset.v1p7beta1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1p7beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -988,8 +834,6 @@ public Builder mergeOutputConfig(com.google.cloud.asset.v1p7beta1.OutputConfig v return this; } /** - * - * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -1008,8 +852,6 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -1017,13 +859,11 @@ public Builder clearOutputConfig() { * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 2; */ public com.google.cloud.asset.v1p7beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -1034,14 +874,11 @@ public com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrB if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -1049,17 +886,14 @@ public com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrB * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.OutputConfig, - com.google.cloud.asset.v1p7beta1.OutputConfig.Builder, - com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder> + com.google.cloud.asset.v1p7beta1.OutputConfig, com.google.cloud.asset.v1p7beta1.OutputConfig.Builder, com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.OutputConfig, - com.google.cloud.asset.v1p7beta1.OutputConfig.Builder, - com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p7beta1.OutputConfig, com.google.cloud.asset.v1p7beta1.OutputConfig.Builder, com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; @@ -1067,13 +901,8 @@ public com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrB private com.google.cloud.asset.v1p7beta1.OutputResult outputResult_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.OutputResult, - com.google.cloud.asset.v1p7beta1.OutputResult.Builder, - com.google.cloud.asset.v1p7beta1.OutputResultOrBuilder> - outputResultBuilder_; + com.google.cloud.asset.v1p7beta1.OutputResult, com.google.cloud.asset.v1p7beta1.OutputResult.Builder, com.google.cloud.asset.v1p7beta1.OutputResultOrBuilder> outputResultBuilder_; /** - * - * *
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1083,15 +912,12 @@ public com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrB
          * 
    * * .google.cloud.asset.v1p7beta1.OutputResult output_result = 3; - * * @return Whether the outputResult field is set. */ public boolean hasOutputResult() { return outputResultBuilder_ != null || outputResult_ != null; } /** - * - * *
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1101,21 +927,16 @@ public boolean hasOutputResult() {
          * 
    * * .google.cloud.asset.v1p7beta1.OutputResult output_result = 3; - * * @return The outputResult. */ public com.google.cloud.asset.v1p7beta1.OutputResult getOutputResult() { if (outputResultBuilder_ == null) { - return outputResult_ == null - ? com.google.cloud.asset.v1p7beta1.OutputResult.getDefaultInstance() - : outputResult_; + return outputResult_ == null ? com.google.cloud.asset.v1p7beta1.OutputResult.getDefaultInstance() : outputResult_; } else { return outputResultBuilder_.getMessage(); } } /** - * - * *
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1140,8 +961,6 @@ public Builder setOutputResult(com.google.cloud.asset.v1p7beta1.OutputResult val
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1164,8 +983,6 @@ public Builder setOutputResult(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1180,9 +997,7 @@ public Builder mergeOutputResult(com.google.cloud.asset.v1p7beta1.OutputResult v
           if (outputResultBuilder_ == null) {
             if (outputResult_ != null) {
               outputResult_ =
    -              com.google.cloud.asset.v1p7beta1.OutputResult.newBuilder(outputResult_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +            com.google.cloud.asset.v1p7beta1.OutputResult.newBuilder(outputResult_).mergeFrom(value).buildPartial();
             } else {
               outputResult_ = value;
             }
    @@ -1194,8 +1009,6 @@ public Builder mergeOutputResult(com.google.cloud.asset.v1p7beta1.OutputResult v
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1218,8 +1031,6 @@ public Builder clearOutputResult() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1231,13 +1042,11 @@ public Builder clearOutputResult() {
          * .google.cloud.asset.v1p7beta1.OutputResult output_result = 3;
          */
         public com.google.cloud.asset.v1p7beta1.OutputResult.Builder getOutputResultBuilder() {
    -
    +      
           onChanged();
           return getOutputResultFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1252,14 +1061,11 @@ public com.google.cloud.asset.v1p7beta1.OutputResultOrBuilder getOutputResultOrB
           if (outputResultBuilder_ != null) {
             return outputResultBuilder_.getMessageOrBuilder();
           } else {
    -        return outputResult_ == null
    -            ? com.google.cloud.asset.v1p7beta1.OutputResult.getDefaultInstance()
    -            : outputResult_;
    +        return outputResult_ == null ?
    +            com.google.cloud.asset.v1p7beta1.OutputResult.getDefaultInstance() : outputResult_;
           }
         }
         /**
    -     *
    -     *
          * 
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1271,24 +1077,21 @@ public com.google.cloud.asset.v1p7beta1.OutputResultOrBuilder getOutputResultOrB
          * .google.cloud.asset.v1p7beta1.OutputResult output_result = 3;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1p7beta1.OutputResult,
    -            com.google.cloud.asset.v1p7beta1.OutputResult.Builder,
    -            com.google.cloud.asset.v1p7beta1.OutputResultOrBuilder>
    +        com.google.cloud.asset.v1p7beta1.OutputResult, com.google.cloud.asset.v1p7beta1.OutputResult.Builder, com.google.cloud.asset.v1p7beta1.OutputResultOrBuilder> 
             getOutputResultFieldBuilder() {
           if (outputResultBuilder_ == null) {
    -        outputResultBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.cloud.asset.v1p7beta1.OutputResult,
    -                com.google.cloud.asset.v1p7beta1.OutputResult.Builder,
    -                com.google.cloud.asset.v1p7beta1.OutputResultOrBuilder>(
    -                getOutputResult(), getParentForChildren(), isClean());
    +        outputResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.cloud.asset.v1p7beta1.OutputResult, com.google.cloud.asset.v1p7beta1.OutputResult.Builder, com.google.cloud.asset.v1p7beta1.OutputResultOrBuilder>(
    +                getOutputResult(),
    +                getParentForChildren(),
    +                isClean());
             outputResult_ = null;
           }
           return outputResultBuilder_;
         }
    -
         @java.lang.Override
    -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(
    +        final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -1298,12 +1101,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    +
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.ExportAssetsResponse)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.ExportAssetsResponse)
       private static final com.google.cloud.asset.v1p7beta1.ExportAssetsResponse DEFAULT_INSTANCE;
    -
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.ExportAssetsResponse();
       }
    @@ -1312,16 +1115,27 @@ public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse getDefaultIn
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser PARSER =
    -      new com.google.protobuf.AbstractParser() {
    -        @java.lang.Override
    -        public ExportAssetsResponse parsePartialFrom(
    -            com.google.protobuf.CodedInputStream input,
    -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -            throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ExportAssetsResponse(input, extensionRegistry);
    -        }
    -      };
    +  private static final com.google.protobuf.Parser
    +      PARSER = new com.google.protobuf.AbstractParser() {
    +    @java.lang.Override
    +    public ExportAssetsResponse parsePartialFrom(
    +        com.google.protobuf.CodedInputStream input,
    +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        throws com.google.protobuf.InvalidProtocolBufferException {
    +      Builder builder = newBuilder();
    +      try {
    +        builder.mergeFrom(input, extensionRegistry);
    +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +        throw e.setUnfinishedMessage(builder.buildPartial());
    +      } catch (com.google.protobuf.UninitializedMessageException e) {
    +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +      } catch (java.io.IOException e) {
    +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +            .setUnfinishedMessage(builder.buildPartial());
    +      }
    +      return builder.buildPartial();
    +    }
    +  };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1336,4 +1150,6 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1p7beta1.ExportAssetsResponse getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    +
     }
    +
    diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponseOrBuilder.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponseOrBuilder.java
    similarity index 81%
    rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponseOrBuilder.java
    rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponseOrBuilder.java
    index cfd19940067f..17a006b72eef 100644
    --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponseOrBuilder.java
    +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponseOrBuilder.java
    @@ -1,55 +1,31 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1p7beta1/asset_service.proto
     
     package com.google.cloud.asset.v1p7beta1;
     
    -public interface ExportAssetsResponseOrBuilder
    -    extends
    +public interface ExportAssetsResponseOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.ExportAssetsResponse)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    -   *
    -   *
        * 
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
        * Time the snapshot was taken.
        * 
    @@ -59,32 +35,24 @@ public interface ExportAssetsResponseOrBuilder com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** - * - * *
        * Output configuration indicating where the results were output to.
        * 
    * * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 2; - * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
        * Output configuration indicating where the results were output to.
        * 
    * * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 2; - * * @return The outputConfig. */ com.google.cloud.asset.v1p7beta1.OutputConfig getOutputConfig(); /** - * - * *
        * Output configuration indicating where the results were output to.
        * 
    @@ -94,8 +62,6 @@ public interface ExportAssetsResponseOrBuilder com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
        * Output result indicating where the assets were exported to. For example, a
        * set of actual Google Cloud Storage object uris where the assets are
    @@ -105,13 +71,10 @@ public interface ExportAssetsResponseOrBuilder
        * 
    * * .google.cloud.asset.v1p7beta1.OutputResult output_result = 3; - * * @return Whether the outputResult field is set. */ boolean hasOutputResult(); /** - * - * *
        * Output result indicating where the assets were exported to. For example, a
        * set of actual Google Cloud Storage object uris where the assets are
    @@ -121,13 +84,10 @@ public interface ExportAssetsResponseOrBuilder
        * 
    * * .google.cloud.asset.v1p7beta1.OutputResult output_result = 3; - * * @return The outputResult. */ com.google.cloud.asset.v1p7beta1.OutputResult getOutputResult(); /** - * - * *
        * Output result indicating where the assets were exported to. For example, a
        * set of actual Google Cloud Storage object uris where the assets are
    diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestination.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestination.java
    similarity index 72%
    rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestination.java
    rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestination.java
    index a388e716f715..5b08661c13f1 100644
    --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestination.java
    +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestination.java
    @@ -1,135 +1,61 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1p7beta1/asset_service.proto
     
     package com.google.cloud.asset.v1p7beta1;
     
     /**
    - *
    - *
      * 
      * A Cloud Storage location.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.GcsDestination} */ -public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.GcsDestination) GcsDestinationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private GcsDestination() {} + private GcsDestination() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private GcsDestination( - 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(); - objectUriCase_ = 1; - objectUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - objectUriCase_ = 2; - objectUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.GcsDestination.class, - com.google.cloud.asset.v1p7beta1.GcsDestination.Builder.class); + com.google.cloud.asset.v1p7beta1.GcsDestination.class, com.google.cloud.asset.v1p7beta1.GcsDestination.Builder.class); } private int objectUriCase_ = 0; private java.lang.Object objectUri_; - public enum ObjectUriCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { URI(1), URI_PREFIX(2), OBJECTURI_NOT_SET(0); private final int value; - private ObjectUriCase(int value) { this.value = value; } @@ -145,30 +71,25 @@ public static ObjectUriCase valueOf(int value) { public static ObjectUriCase forNumber(int value) { switch (value) { - case 1: - return URI; - case 2: - return URI_PREFIX; - case 0: - return OBJECTURI_NOT_SET; - default: - return null; + case 1: return URI; + case 2: return URI_PREFIX; + case 0: return OBJECTURI_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ObjectUriCase getObjectUriCase() { - return ObjectUriCase.forNumber(objectUriCase_); + public ObjectUriCase + getObjectUriCase() { + return ObjectUriCase.forNumber( + objectUriCase_); } public static final int URI_FIELD_NUMBER = 1; /** - * - * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -178,15 +99,12 @@ public ObjectUriCase getObjectUriCase() {
        * 
    * * string uri = 1; - * * @return Whether the uri field is set. */ public boolean hasUri() { return objectUriCase_ == 1; } /** - * - * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -196,7 +114,6 @@ public boolean hasUri() {
        * 
    * * string uri = 1; - * * @return The uri. */ public java.lang.String getUri() { @@ -207,7 +124,8 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (objectUriCase_ == 1) { objectUri_ = s; @@ -216,8 +134,6 @@ public java.lang.String getUri() { } } /** - * - * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -227,17 +143,18 @@ public java.lang.String getUri() {
        * 
    * * string uri = 1; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = ""; if (objectUriCase_ == 1) { ref = objectUri_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (objectUriCase_ == 1) { objectUri_ = b; } @@ -249,8 +166,6 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int URI_PREFIX_FIELD_NUMBER = 2; /** - * - * *
        * The uri prefix of all generated Cloud Storage objects. Example:
        * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -264,15 +179,12 @@ public com.google.protobuf.ByteString getUriBytes() {
        * 
    * * string uri_prefix = 2; - * * @return Whether the uriPrefix field is set. */ public boolean hasUriPrefix() { return objectUriCase_ == 2; } /** - * - * *
        * The uri prefix of all generated Cloud Storage objects. Example:
        * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -286,7 +198,6 @@ public boolean hasUriPrefix() {
        * 
    * * string uri_prefix = 2; - * * @return The uriPrefix. */ public java.lang.String getUriPrefix() { @@ -297,7 +208,8 @@ public java.lang.String getUriPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (objectUriCase_ == 2) { objectUri_ = s; @@ -306,8 +218,6 @@ public java.lang.String getUriPrefix() { } } /** - * - * *
        * The uri prefix of all generated Cloud Storage objects. Example:
        * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -321,17 +231,18 @@ public java.lang.String getUriPrefix() {
        * 
    * * string uri_prefix = 2; - * * @return The bytes for uriPrefix. */ - public com.google.protobuf.ByteString getUriPrefixBytes() { + public com.google.protobuf.ByteString + getUriPrefixBytes() { java.lang.Object ref = ""; if (objectUriCase_ == 2) { ref = objectUri_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (objectUriCase_ == 2) { objectUri_ = b; } @@ -342,7 +253,6 @@ public com.google.protobuf.ByteString getUriPrefixBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -354,14 +264,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (objectUriCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, objectUri_); } if (objectUriCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, objectUri_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -376,7 +287,7 @@ public int getSerializedSize() { if (objectUriCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, objectUri_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -384,26 +295,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p7beta1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.asset.v1p7beta1.GcsDestination other = - (com.google.cloud.asset.v1p7beta1.GcsDestination) obj; + com.google.cloud.asset.v1p7beta1.GcsDestination other = (com.google.cloud.asset.v1p7beta1.GcsDestination) obj; if (!getObjectUriCase().equals(other.getObjectUriCase())) return false; switch (objectUriCase_) { case 1: - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; break; case 2: - if (!getUriPrefix().equals(other.getUriPrefix())) return false; + if (!getUriPrefix() + .equals(other.getUriPrefix())) return false; break; case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -426,148 +338,135 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1p7beta1.GcsDestination parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p7beta1.GcsDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.GcsDestination 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.asset.v1p7beta1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.GcsDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.GcsDestination parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.GcsDestination parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p7beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p7beta1.GcsDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * A Cloud Storage location.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.GcsDestination} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.GcsDestination) com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.GcsDestination.class, - com.google.cloud.asset.v1p7beta1.GcsDestination.Builder.class); + com.google.cloud.asset.v1p7beta1.GcsDestination.class, com.google.cloud.asset.v1p7beta1.GcsDestination.Builder.class); } // Construct using com.google.cloud.asset.v1p7beta1.GcsDestination.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -577,9 +476,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor; } @java.lang.Override @@ -598,8 +497,7 @@ public com.google.cloud.asset.v1p7beta1.GcsDestination build() { @java.lang.Override public com.google.cloud.asset.v1p7beta1.GcsDestination buildPartial() { - com.google.cloud.asset.v1p7beta1.GcsDestination result = - new com.google.cloud.asset.v1p7beta1.GcsDestination(this); + com.google.cloud.asset.v1p7beta1.GcsDestination result = new com.google.cloud.asset.v1p7beta1.GcsDestination(this); if (objectUriCase_ == 1) { result.objectUri_ = objectUri_; } @@ -615,39 +513,38 @@ public com.google.cloud.asset.v1p7beta1.GcsDestination buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p7beta1.GcsDestination) { - return mergeFrom((com.google.cloud.asset.v1p7beta1.GcsDestination) other); + return mergeFrom((com.google.cloud.asset.v1p7beta1.GcsDestination)other); } else { super.mergeFrom(other); return this; @@ -655,29 +552,25 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.GcsDestination other) { - if (other == com.google.cloud.asset.v1p7beta1.GcsDestination.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1p7beta1.GcsDestination.getDefaultInstance()) return this; switch (other.getObjectUriCase()) { - case URI: - { - objectUriCase_ = 1; - objectUri_ = other.objectUri_; - onChanged(); - break; - } - case URI_PREFIX: - { - objectUriCase_ = 2; - objectUri_ = other.objectUri_; - onChanged(); - break; - } - case OBJECTURI_NOT_SET: - { - break; - } + case URI: { + objectUriCase_ = 1; + objectUri_ = other.objectUri_; + onChanged(); + break; + } + case URI_PREFIX: { + objectUriCase_ = 2; + objectUri_ = other.objectUri_; + onChanged(); + break; + } + case OBJECTURI_NOT_SET: { + break; + } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -692,25 +585,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p7beta1.GcsDestination parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + objectUriCase_ = 1; + objectUri_ = s; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + objectUriCase_ = 2; + objectUri_ = s; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1p7beta1.GcsDestination) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int objectUriCase_ = 0; private java.lang.Object objectUri_; - - public ObjectUriCase getObjectUriCase() { - return ObjectUriCase.forNumber(objectUriCase_); + public ObjectUriCase + getObjectUriCase() { + return ObjectUriCase.forNumber( + objectUriCase_); } public Builder clearObjectUri() { @@ -720,9 +638,8 @@ public Builder clearObjectUri() { return this; } + /** - * - * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -732,7 +649,6 @@ public Builder clearObjectUri() {
          * 
    * * string uri = 1; - * * @return Whether the uri field is set. */ @java.lang.Override @@ -740,8 +656,6 @@ public boolean hasUri() { return objectUriCase_ == 1; } /** - * - * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -751,7 +665,6 @@ public boolean hasUri() {
          * 
    * * string uri = 1; - * * @return The uri. */ @java.lang.Override @@ -761,7 +674,8 @@ public java.lang.String getUri() { ref = objectUri_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (objectUriCase_ == 1) { objectUri_ = s; @@ -772,8 +686,6 @@ public java.lang.String getUri() { } } /** - * - * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -783,18 +695,19 @@ public java.lang.String getUri() {
          * 
    * * string uri = 1; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = ""; if (objectUriCase_ == 1) { ref = objectUri_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (objectUriCase_ == 1) { objectUri_ = b; } @@ -804,8 +717,6 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -815,22 +726,20 @@ public com.google.protobuf.ByteString getUriBytes() {
          * 
    * * string uri = 1; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - objectUriCase_ = 1; + throw new NullPointerException(); + } + objectUriCase_ = 1; objectUri_ = value; onChanged(); return this; } /** - * - * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -840,7 +749,6 @@ public Builder setUri(java.lang.String value) {
          * 
    * * string uri = 1; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -852,8 +760,6 @@ public Builder clearUri() { return this; } /** - * - * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -863,15 +769,15 @@ public Builder clearUri() {
          * 
    * * string uri = 1; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); objectUriCase_ = 1; objectUri_ = value; onChanged(); @@ -879,8 +785,6 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { } /** - * - * *
          * The uri prefix of all generated Cloud Storage objects. Example:
          * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -894,7 +798,6 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
          * 
    * * string uri_prefix = 2; - * * @return Whether the uriPrefix field is set. */ @java.lang.Override @@ -902,8 +805,6 @@ public boolean hasUriPrefix() { return objectUriCase_ == 2; } /** - * - * *
          * The uri prefix of all generated Cloud Storage objects. Example:
          * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -917,7 +818,6 @@ public boolean hasUriPrefix() {
          * 
    * * string uri_prefix = 2; - * * @return The uriPrefix. */ @java.lang.Override @@ -927,7 +827,8 @@ public java.lang.String getUriPrefix() { ref = objectUri_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (objectUriCase_ == 2) { objectUri_ = s; @@ -938,8 +839,6 @@ public java.lang.String getUriPrefix() { } } /** - * - * *
          * The uri prefix of all generated Cloud Storage objects. Example:
          * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -953,18 +852,19 @@ public java.lang.String getUriPrefix() {
          * 
    * * string uri_prefix = 2; - * * @return The bytes for uriPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString getUriPrefixBytes() { + public com.google.protobuf.ByteString + getUriPrefixBytes() { java.lang.Object ref = ""; if (objectUriCase_ == 2) { ref = objectUri_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (objectUriCase_ == 2) { objectUri_ = b; } @@ -974,8 +874,6 @@ public com.google.protobuf.ByteString getUriPrefixBytes() { } } /** - * - * *
          * The uri prefix of all generated Cloud Storage objects. Example:
          * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -989,22 +887,20 @@ public com.google.protobuf.ByteString getUriPrefixBytes() {
          * 
    * * string uri_prefix = 2; - * * @param value The uriPrefix to set. * @return This builder for chaining. */ - public Builder setUriPrefix(java.lang.String value) { + public Builder setUriPrefix( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - objectUriCase_ = 2; + throw new NullPointerException(); + } + objectUriCase_ = 2; objectUri_ = value; onChanged(); return this; } /** - * - * *
          * The uri prefix of all generated Cloud Storage objects. Example:
          * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -1018,7 +914,6 @@ public Builder setUriPrefix(java.lang.String value) {
          * 
    * * string uri_prefix = 2; - * * @return This builder for chaining. */ public Builder clearUriPrefix() { @@ -1030,8 +925,6 @@ public Builder clearUriPrefix() { return this; } /** - * - * *
          * The uri prefix of all generated Cloud Storage objects. Example:
          * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -1045,23 +938,23 @@ public Builder clearUriPrefix() {
          * 
    * * string uri_prefix = 2; - * * @param value The bytes for uriPrefix to set. * @return This builder for chaining. */ - public Builder setUriPrefixBytes(com.google.protobuf.ByteString value) { + public Builder setUriPrefixBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); objectUriCase_ = 2; objectUri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1071,12 +964,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.GcsDestination) private static final com.google.cloud.asset.v1p7beta1.GcsDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.GcsDestination(); } @@ -1085,16 +978,27 @@ public static com.google.cloud.asset.v1p7beta1.GcsDestination getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1109,4 +1013,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p7beta1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestinationOrBuilder.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestinationOrBuilder.java similarity index 82% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestinationOrBuilder.java rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestinationOrBuilder.java index 4196ea59b9f6..f9f91bc6a862 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestinationOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestinationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; -public interface GcsDestinationOrBuilder - extends +public interface GcsDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -35,13 +17,10 @@ public interface GcsDestinationOrBuilder
        * 
    * * string uri = 1; - * * @return Whether the uri field is set. */ boolean hasUri(); /** - * - * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -51,13 +30,10 @@ public interface GcsDestinationOrBuilder
        * 
    * * string uri = 1; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -67,14 +43,12 @@ public interface GcsDestinationOrBuilder
        * 
    * * string uri = 1; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
        * The uri prefix of all generated Cloud Storage objects. Example:
        * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -88,13 +62,10 @@ public interface GcsDestinationOrBuilder
        * 
    * * string uri_prefix = 2; - * * @return Whether the uriPrefix field is set. */ boolean hasUriPrefix(); /** - * - * *
        * The uri prefix of all generated Cloud Storage objects. Example:
        * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -108,13 +79,10 @@ public interface GcsDestinationOrBuilder
        * 
    * * string uri_prefix = 2; - * * @return The uriPrefix. */ java.lang.String getUriPrefix(); /** - * - * *
        * The uri prefix of all generated Cloud Storage objects. Example:
        * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -128,10 +96,10 @@ public interface GcsDestinationOrBuilder
        * 
    * * string uri_prefix = 2; - * * @return The bytes for uriPrefix. */ - com.google.protobuf.ByteString getUriPrefixBytes(); + com.google.protobuf.ByteString + getUriPrefixBytes(); public com.google.cloud.asset.v1p7beta1.GcsDestination.ObjectUriCase getObjectUriCase(); } diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResult.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResult.java similarity index 63% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResult.java rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResult.java index 9e5a05ad2a13..728194e1f02d 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResult.java +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResult.java @@ -1,167 +1,87 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; /** - * - * *
      * A Cloud Storage output result.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.GcsOutputResult} */ -public final class GcsOutputResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsOutputResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.GcsOutputResult) GcsOutputResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsOutputResult.newBuilder() to construct. private GcsOutputResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsOutputResult() { uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsOutputResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private GcsOutputResult( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - uris_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - uris_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - uris_ = uris_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.GcsOutputResult.class, - com.google.cloud.asset.v1p7beta1.GcsOutputResult.Builder.class); + com.google.cloud.asset.v1p7beta1.GcsOutputResult.class, com.google.cloud.asset.v1p7beta1.GcsOutputResult.Builder.class); } public static final int URIS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList uris_; /** - * - * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; - * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList getUrisList() { + public com.google.protobuf.ProtocolStringList + getUrisList() { return uris_; } /** - * - * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; - * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** - * - * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; - * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -169,24 +89,21 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** - * - * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString getUrisBytes(int index) { + public com.google.protobuf.ByteString + getUrisBytes(int index) { return uris_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,11 +115,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < uris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uris_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -219,7 +137,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getUrisList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -227,16 +145,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p7beta1.GcsOutputResult)) { return super.equals(obj); } - com.google.cloud.asset.v1p7beta1.GcsOutputResult other = - (com.google.cloud.asset.v1p7beta1.GcsOutputResult) obj; + com.google.cloud.asset.v1p7beta1.GcsOutputResult other = (com.google.cloud.asset.v1p7beta1.GcsOutputResult) obj; - if (!getUrisList().equals(other.getUrisList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUrisList() + .equals(other.getUrisList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -251,148 +169,135 @@ public int hashCode() { hash = (37 * hash) + URIS_FIELD_NUMBER; hash = (53 * hash) + getUrisList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.GcsOutputResult 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.asset.v1p7beta1.GcsOutputResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.GcsOutputResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * A Cloud Storage output result.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.GcsOutputResult} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.GcsOutputResult) com.google.cloud.asset.v1p7beta1.GcsOutputResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.GcsOutputResult.class, - com.google.cloud.asset.v1p7beta1.GcsOutputResult.Builder.class); + com.google.cloud.asset.v1p7beta1.GcsOutputResult.class, com.google.cloud.asset.v1p7beta1.GcsOutputResult.Builder.class); } // Construct using com.google.cloud.asset.v1p7beta1.GcsOutputResult.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -402,9 +307,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor; } @java.lang.Override @@ -423,8 +328,7 @@ public com.google.cloud.asset.v1p7beta1.GcsOutputResult build() { @java.lang.Override public com.google.cloud.asset.v1p7beta1.GcsOutputResult buildPartial() { - com.google.cloud.asset.v1p7beta1.GcsOutputResult result = - new com.google.cloud.asset.v1p7beta1.GcsOutputResult(this); + com.google.cloud.asset.v1p7beta1.GcsOutputResult result = new com.google.cloud.asset.v1p7beta1.GcsOutputResult(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { uris_ = uris_.getUnmodifiableView(); @@ -439,39 +343,38 @@ public com.google.cloud.asset.v1p7beta1.GcsOutputResult buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p7beta1.GcsOutputResult) { - return mergeFrom((com.google.cloud.asset.v1p7beta1.GcsOutputResult) other); + return mergeFrom((com.google.cloud.asset.v1p7beta1.GcsOutputResult)other); } else { super.mergeFrom(other); return this; @@ -479,8 +382,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.GcsOutputResult other) { - if (other == com.google.cloud.asset.v1p7beta1.GcsOutputResult.getDefaultInstance()) - return this; + if (other == com.google.cloud.asset.v1p7beta1.GcsOutputResult.getDefaultInstance()) return this; if (!other.uris_.isEmpty()) { if (uris_.isEmpty()) { uris_ = other.uris_; @@ -491,7 +393,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.GcsOutputResult other) } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -506,71 +408,79 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p7beta1.GcsOutputResult parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUrisIsMutable(); + uris_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1p7beta1.GcsOutputResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList uris_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUrisIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { uris_ = new com.google.protobuf.LazyStringArrayList(uris_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; - * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList getUrisList() { + public com.google.protobuf.ProtocolStringList + getUrisList() { return uris_.getUnmodifiableView(); } /** - * - * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; - * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** - * - * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; - * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -578,95 +488,85 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** - * - * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString getUrisBytes(int index) { + public com.google.protobuf.ByteString + getUrisBytes(int index) { return uris_.getByteString(index); } /** - * - * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; - * * @param index The index to set the value at. * @param value The uris to set. * @return This builder for chaining. */ - public Builder setUris(int index, java.lang.String value) { + public Builder setUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUrisIsMutable(); + throw new NullPointerException(); + } + ensureUrisIsMutable(); uris_.set(index, value); onChanged(); return this; } /** - * - * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; - * * @param value The uris to add. * @return This builder for chaining. */ - public Builder addUris(java.lang.String value) { + public Builder addUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUrisIsMutable(); + throw new NullPointerException(); + } + ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } /** - * - * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; - * * @param values The uris to add. * @return This builder for chaining. */ - public Builder addAllUris(java.lang.Iterable values) { + public Builder addAllUris( + java.lang.Iterable values) { ensureUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, uris_); onChanged(); return this; } /** - * - * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; - * * @return This builder for chaining. */ public Builder clearUris() { @@ -676,31 +576,29 @@ public Builder clearUris() { return this; } /** - * - * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; - * * @param value The bytes of the uris to add. * @return This builder for chaining. */ - public Builder addUrisBytes(com.google.protobuf.ByteString value) { + public Builder addUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -710,12 +608,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.GcsOutputResult) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.GcsOutputResult) private static final com.google.cloud.asset.v1p7beta1.GcsOutputResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.GcsOutputResult(); } @@ -724,16 +622,27 @@ public static com.google.cloud.asset.v1p7beta1.GcsOutputResult getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsOutputResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsOutputResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsOutputResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -748,4 +657,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p7beta1.GcsOutputResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResultOrBuilder.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResultOrBuilder.java similarity index 62% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResultOrBuilder.java rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResultOrBuilder.java index ec8eda32acf2..c163a99c673d 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResultOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResultOrBuilder.java @@ -1,80 +1,54 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; -public interface GcsOutputResultOrBuilder - extends +public interface GcsOutputResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.GcsOutputResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; - * * @return A list containing the uris. */ - java.util.List getUrisList(); + java.util.List + getUrisList(); /** - * - * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; - * * @return The count of uris. */ int getUrisCount(); /** - * - * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; - * * @param index The index of the element to return. * @return The uris at the given index. */ java.lang.String getUris(int index); /** - * - * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - com.google.protobuf.ByteString getUrisBytes(int index); + com.google.protobuf.ByteString + getUrisBytes(int index); } diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfig.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfig.java similarity index 65% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfig.java rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfig.java index 7caec96d9a6f..9875eff52713 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfig.java +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfig.java @@ -1,159 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; /** - * - * *
      * Output configuration for export assets destination.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.OutputConfig} */ -public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.OutputConfig) OutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private OutputConfig() {} + private OutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private OutputConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.asset.v1p7beta1.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = - ((com.google.cloud.asset.v1p7beta1.GcsDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.asset.v1p7beta1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 1; - break; - } - case 18: - { - com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder subBuilder = null; - if (destinationCase_ == 2) { - subBuilder = - ((com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_) - .toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.asset.v1p7beta1.BigQueryDestination.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 2; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.OutputConfig.class, - com.google.cloud.asset.v1p7beta1.OutputConfig.Builder.class); + com.google.cloud.asset.v1p7beta1.OutputConfig.class, com.google.cloud.asset.v1p7beta1.OutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), BIGQUERY_DESTINATION(2), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -169,36 +71,30 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 2: - return BIGQUERY_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 2: return BIGQUERY_DESTINATION; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** - * - * *
        * Destination on Cloud Storage.
        * 
    * * .google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -206,26 +102,21 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
        * Destination on Cloud Storage.
        * 
    * * .google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_; + return (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_; } return com.google.cloud.asset.v1p7beta1.GcsDestination.getDefaultInstance(); } /** - * - * *
        * Destination on Cloud Storage.
        * 
    @@ -235,22 +126,19 @@ public com.google.cloud.asset.v1p7beta1.GcsDestination getGcsDestination() { @java.lang.Override public com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_; + return (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_; } return com.google.cloud.asset.v1p7beta1.GcsDestination.getDefaultInstance(); } public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 2; /** - * - * *
        * Destination on BigQuery. The output table stores the fields in asset
        * proto as columns in BigQuery.
        * 
    * * .google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2; - * * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -258,27 +146,22 @@ public boolean hasBigqueryDestination() { return destinationCase_ == 2; } /** - * - * *
        * Destination on BigQuery. The output table stores the fields in asset
        * proto as columns in BigQuery.
        * 
    * * .google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2; - * * @return The bigqueryDestination. */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.BigQueryDestination getBigqueryDestination() { if (destinationCase_ == 2) { - return (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_; + return (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_; } return com.google.cloud.asset.v1p7beta1.BigQueryDestination.getDefaultInstance(); } /** - * - * *
        * Destination on BigQuery. The output table stores the fields in asset
        * proto as columns in BigQuery.
    @@ -287,16 +170,14 @@ public com.google.cloud.asset.v1p7beta1.BigQueryDestination getBigqueryDestinati
        * .google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2;
        */
       @java.lang.Override
    -  public com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder
    -      getBigqueryDestinationOrBuilder() {
    +  public com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() {
         if (destinationCase_ == 2) {
    -      return (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_;
    +       return (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_;
         }
         return com.google.cloud.asset.v1p7beta1.BigQueryDestination.getDefaultInstance();
       }
     
       private byte memoizedIsInitialized = -1;
    -
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -308,14 +189,15 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output)
    +                      throws java.io.IOException {
         if (destinationCase_ == 1) {
           output.writeMessage(1, (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_);
         }
         if (destinationCase_ == 2) {
           output.writeMessage(2, (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -325,16 +207,14 @@ public int getSerializedSize() {
     
         size = 0;
         if (destinationCase_ == 1) {
    -      size +=
    -          com.google.protobuf.CodedOutputStream.computeMessageSize(
    -              1, (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_);
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(1, (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_);
         }
         if (destinationCase_ == 2) {
    -      size +=
    -          com.google.protobuf.CodedOutputStream.computeMessageSize(
    -              2, (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_);
    +      size += com.google.protobuf.CodedOutputStream
    +        .computeMessageSize(2, (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -342,26 +222,27 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -      return true;
    +     return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1p7beta1.OutputConfig)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1p7beta1.OutputConfig other =
    -        (com.google.cloud.asset.v1p7beta1.OutputConfig) obj;
    +    com.google.cloud.asset.v1p7beta1.OutputConfig other = (com.google.cloud.asset.v1p7beta1.OutputConfig) obj;
     
         if (!getDestinationCase().equals(other.getDestinationCase())) return false;
         switch (destinationCase_) {
           case 1:
    -        if (!getGcsDestination().equals(other.getGcsDestination())) return false;
    +        if (!getGcsDestination()
    +            .equals(other.getGcsDestination())) return false;
             break;
           case 2:
    -        if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false;
    +        if (!getBigqueryDestination()
    +            .equals(other.getBigqueryDestination())) return false;
             break;
           case 0:
           default:
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -384,160 +265,153 @@ public int hashCode() {
           case 0:
           default:
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(
    +      java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(
    -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1p7beta1.OutputConfig 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.asset.v1p7beta1.OutputConfig parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    -
       public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(
    -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
    -
    -  public static com.google.cloud.asset.v1p7beta1.OutputConfig parseDelimitedFrom(
    -      java.io.InputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    +  public static com.google.cloud.asset.v1p7beta1.OutputConfig parseDelimitedFrom(java.io.InputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1p7beta1.OutputConfig parseDelimitedFrom(
    -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input,
    +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
       }
    -
       public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(
    -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input)
    +      throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input);
       }
    -
       public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    -        PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3
    +        .parseWithIOException(PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() {
    -    return newBuilder();
    -  }
    -
    +  public Builder newBuilderForType() { return newBuilder(); }
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    -
       public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.OutputConfig prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    -
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE
    +        ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(
    +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    -   *
    -   *
        * 
        * Output configuration for export assets destination.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.OutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.OutputConfig) com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.OutputConfig.class, - com.google.cloud.asset.v1p7beta1.OutputConfig.Builder.class); + com.google.cloud.asset.v1p7beta1.OutputConfig.class, com.google.cloud.asset.v1p7beta1.OutputConfig.Builder.class); } // Construct using com.google.cloud.asset.v1p7beta1.OutputConfig.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @java.lang.Override public Builder clear() { super.clear(); + if (gcsDestinationBuilder_ != null) { + gcsDestinationBuilder_.clear(); + } + if (bigqueryDestinationBuilder_ != null) { + bigqueryDestinationBuilder_.clear(); + } destinationCase_ = 0; destination_ = null; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor; } @java.lang.Override @@ -556,8 +430,7 @@ public com.google.cloud.asset.v1p7beta1.OutputConfig build() { @java.lang.Override public com.google.cloud.asset.v1p7beta1.OutputConfig buildPartial() { - com.google.cloud.asset.v1p7beta1.OutputConfig result = - new com.google.cloud.asset.v1p7beta1.OutputConfig(this); + com.google.cloud.asset.v1p7beta1.OutputConfig result = new com.google.cloud.asset.v1p7beta1.OutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -581,39 +454,38 @@ public com.google.cloud.asset.v1p7beta1.OutputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p7beta1.OutputConfig) { - return mergeFrom((com.google.cloud.asset.v1p7beta1.OutputConfig) other); + return mergeFrom((com.google.cloud.asset.v1p7beta1.OutputConfig)other); } else { super.mergeFrom(other); return this; @@ -623,22 +495,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.OutputConfig other) { if (other == com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case BIGQUERY_DESTINATION: - { - mergeBigqueryDestination(other.getBigqueryDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case BIGQUERY_DESTINATION: { + mergeBigqueryDestination(other.getBigqueryDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -653,25 +522,52 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p7beta1.OutputConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getGcsDestinationFieldBuilder().getBuilder(), + extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getBigqueryDestinationFieldBuilder().getBuilder(), + extensionRegistry); + destinationCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1p7beta1.OutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -681,20 +577,15 @@ public Builder clearDestination() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.GcsDestination, - com.google.cloud.asset.v1p7beta1.GcsDestination.Builder, - com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.asset.v1p7beta1.GcsDestination, com.google.cloud.asset.v1p7beta1.GcsDestination.Builder, com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
          * Destination on Cloud Storage.
          * 
    * * .google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -702,14 +593,11 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
          * Destination on Cloud Storage.
          * 
    * * .google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override @@ -727,8 +615,6 @@ public com.google.cloud.asset.v1p7beta1.GcsDestination getGcsDestination() { } } /** - * - * *
          * Destination on Cloud Storage.
          * 
    @@ -749,8 +635,6 @@ public Builder setGcsDestination(com.google.cloud.asset.v1p7beta1.GcsDestination return this; } /** - * - * *
          * Destination on Cloud Storage.
          * 
    @@ -769,8 +653,6 @@ public Builder setGcsDestination( return this; } /** - * - * *
          * Destination on Cloud Storage.
          * 
    @@ -779,14 +661,10 @@ public Builder setGcsDestination( */ public Builder mergeGcsDestination(com.google.cloud.asset.v1p7beta1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 - && destination_ - != com.google.cloud.asset.v1p7beta1.GcsDestination.getDefaultInstance()) { - destination_ = - com.google.cloud.asset.v1p7beta1.GcsDestination.newBuilder( - (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 1 && + destination_ != com.google.cloud.asset.v1p7beta1.GcsDestination.getDefaultInstance()) { + destination_ = com.google.cloud.asset.v1p7beta1.GcsDestination.newBuilder((com.google.cloud.asset.v1p7beta1.GcsDestination) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -802,8 +680,6 @@ public Builder mergeGcsDestination(com.google.cloud.asset.v1p7beta1.GcsDestinati return this; } /** - * - * *
          * Destination on Cloud Storage.
          * 
    @@ -827,8 +703,6 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
          * Destination on Cloud Storage.
          * 
    @@ -839,8 +713,6 @@ public com.google.cloud.asset.v1p7beta1.GcsDestination.Builder getGcsDestination return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
          * Destination on Cloud Storage.
          * 
    @@ -859,8 +731,6 @@ public com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder getGcsDestinatio } } /** - * - * *
          * Destination on Cloud Storage.
          * 
    @@ -868,45 +738,33 @@ public com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder getGcsDestinatio * .google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.GcsDestination, - com.google.cloud.asset.v1p7beta1.GcsDestination.Builder, - com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder> + com.google.cloud.asset.v1p7beta1.GcsDestination, com.google.cloud.asset.v1p7beta1.GcsDestination.Builder, com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.asset.v1p7beta1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.GcsDestination, - com.google.cloud.asset.v1p7beta1.GcsDestination.Builder, - com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p7beta1.GcsDestination, com.google.cloud.asset.v1p7beta1.GcsDestination.Builder, com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder>( (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 1; - onChanged(); - ; + onChanged();; return gcsDestinationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.BigQueryDestination, - com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder, - com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder> - bigqueryDestinationBuilder_; + com.google.cloud.asset.v1p7beta1.BigQueryDestination, com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder, com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder> bigqueryDestinationBuilder_; /** - * - * *
          * Destination on BigQuery. The output table stores the fields in asset
          * proto as columns in BigQuery.
          * 
    * * .google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2; - * * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -914,15 +772,12 @@ public boolean hasBigqueryDestination() { return destinationCase_ == 2; } /** - * - * *
          * Destination on BigQuery. The output table stores the fields in asset
          * proto as columns in BigQuery.
          * 
    * * .google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2; - * * @return The bigqueryDestination. */ @java.lang.Override @@ -940,8 +795,6 @@ public com.google.cloud.asset.v1p7beta1.BigQueryDestination getBigqueryDestinati } } /** - * - * *
          * Destination on BigQuery. The output table stores the fields in asset
          * proto as columns in BigQuery.
    @@ -949,8 +802,7 @@ public com.google.cloud.asset.v1p7beta1.BigQueryDestination getBigqueryDestinati
          *
          * .google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2;
          */
    -    public Builder setBigqueryDestination(
    -        com.google.cloud.asset.v1p7beta1.BigQueryDestination value) {
    +    public Builder setBigqueryDestination(com.google.cloud.asset.v1p7beta1.BigQueryDestination value) {
           if (bigqueryDestinationBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -964,8 +816,6 @@ public Builder setBigqueryDestination(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Destination on BigQuery. The output table stores the fields in asset
          * proto as columns in BigQuery.
    @@ -985,8 +835,6 @@ public Builder setBigqueryDestination(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Destination on BigQuery. The output table stores the fields in asset
          * proto as columns in BigQuery.
    @@ -994,17 +842,12 @@ public Builder setBigqueryDestination(
          *
          * .google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2;
          */
    -    public Builder mergeBigqueryDestination(
    -        com.google.cloud.asset.v1p7beta1.BigQueryDestination value) {
    +    public Builder mergeBigqueryDestination(com.google.cloud.asset.v1p7beta1.BigQueryDestination value) {
           if (bigqueryDestinationBuilder_ == null) {
    -        if (destinationCase_ == 2
    -            && destination_
    -                != com.google.cloud.asset.v1p7beta1.BigQueryDestination.getDefaultInstance()) {
    -          destination_ =
    -              com.google.cloud.asset.v1p7beta1.BigQueryDestination.newBuilder(
    -                      (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +        if (destinationCase_ == 2 &&
    +            destination_ != com.google.cloud.asset.v1p7beta1.BigQueryDestination.getDefaultInstance()) {
    +          destination_ = com.google.cloud.asset.v1p7beta1.BigQueryDestination.newBuilder((com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_)
    +              .mergeFrom(value).buildPartial();
             } else {
               destination_ = value;
             }
    @@ -1020,8 +863,6 @@ public Builder mergeBigqueryDestination(
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Destination on BigQuery. The output table stores the fields in asset
          * proto as columns in BigQuery.
    @@ -1046,8 +887,6 @@ public Builder clearBigqueryDestination() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * Destination on BigQuery. The output table stores the fields in asset
          * proto as columns in BigQuery.
    @@ -1055,13 +894,10 @@ public Builder clearBigqueryDestination() {
          *
          * .google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2;
          */
    -    public com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder
    -        getBigqueryDestinationBuilder() {
    +    public com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder getBigqueryDestinationBuilder() {
           return getBigqueryDestinationFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * Destination on BigQuery. The output table stores the fields in asset
          * proto as columns in BigQuery.
    @@ -1070,8 +906,7 @@ public Builder clearBigqueryDestination() {
          * .google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2;
          */
         @java.lang.Override
    -    public com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder
    -        getBigqueryDestinationOrBuilder() {
    +    public com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() {
           if ((destinationCase_ == 2) && (bigqueryDestinationBuilder_ != null)) {
             return bigqueryDestinationBuilder_.getMessageOrBuilder();
           } else {
    @@ -1082,8 +917,6 @@ public Builder clearBigqueryDestination() {
           }
         }
         /**
    -     *
    -     *
          * 
          * Destination on BigQuery. The output table stores the fields in asset
          * proto as columns in BigQuery.
    @@ -1092,32 +925,26 @@ public Builder clearBigqueryDestination() {
          * .google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1p7beta1.BigQueryDestination,
    -            com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder,
    -            com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder>
    +        com.google.cloud.asset.v1p7beta1.BigQueryDestination, com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder, com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder> 
             getBigqueryDestinationFieldBuilder() {
           if (bigqueryDestinationBuilder_ == null) {
             if (!(destinationCase_ == 2)) {
               destination_ = com.google.cloud.asset.v1p7beta1.BigQueryDestination.getDefaultInstance();
             }
    -        bigqueryDestinationBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.cloud.asset.v1p7beta1.BigQueryDestination,
    -                com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder,
    -                com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder>(
    +        bigqueryDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.cloud.asset.v1p7beta1.BigQueryDestination, com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder, com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder>(
                     (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_,
                     getParentForChildren(),
                     isClean());
             destination_ = null;
           }
           destinationCase_ = 2;
    -      onChanged();
    -      ;
    +      onChanged();;
           return bigqueryDestinationBuilder_;
         }
    -
         @java.lang.Override
    -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(
    +        final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -1127,12 +954,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    +
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.OutputConfig)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.OutputConfig)
       private static final com.google.cloud.asset.v1p7beta1.OutputConfig DEFAULT_INSTANCE;
    -
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.OutputConfig();
       }
    @@ -1141,16 +968,27 @@ public static com.google.cloud.asset.v1p7beta1.OutputConfig getDefaultInstance()
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser PARSER =
    -      new com.google.protobuf.AbstractParser() {
    -        @java.lang.Override
    -        public OutputConfig parsePartialFrom(
    -            com.google.protobuf.CodedInputStream input,
    -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -            throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new OutputConfig(input, extensionRegistry);
    -        }
    -      };
    +  private static final com.google.protobuf.Parser
    +      PARSER = new com.google.protobuf.AbstractParser() {
    +    @java.lang.Override
    +    public OutputConfig parsePartialFrom(
    +        com.google.protobuf.CodedInputStream input,
    +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        throws com.google.protobuf.InvalidProtocolBufferException {
    +      Builder builder = newBuilder();
    +      try {
    +        builder.mergeFrom(input, extensionRegistry);
    +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +        throw e.setUnfinishedMessage(builder.buildPartial());
    +      } catch (com.google.protobuf.UninitializedMessageException e) {
    +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +      } catch (java.io.IOException e) {
    +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +            .setUnfinishedMessage(builder.buildPartial());
    +      }
    +      return builder.buildPartial();
    +    }
    +  };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1165,4 +1003,6 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1p7beta1.OutputConfig getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    +
     }
    +
    diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfigOrBuilder.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfigOrBuilder.java
    similarity index 75%
    rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfigOrBuilder.java
    rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfigOrBuilder.java
    index 36a0629db410..0e59d14707ee 100644
    --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfigOrBuilder.java
    +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfigOrBuilder.java
    @@ -1,55 +1,31 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1p7beta1/asset_service.proto
     
     package com.google.cloud.asset.v1p7beta1;
     
    -public interface OutputConfigOrBuilder
    -    extends
    +public interface OutputConfigOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.OutputConfig)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    -   *
    -   *
        * 
        * Destination on Cloud Storage.
        * 
    * * .google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
        * Destination on Cloud Storage.
        * 
    * * .google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.asset.v1p7beta1.GcsDestination getGcsDestination(); /** - * - * *
        * Destination on Cloud Storage.
        * 
    @@ -59,34 +35,26 @@ public interface OutputConfigOrBuilder com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** - * - * *
        * Destination on BigQuery. The output table stores the fields in asset
        * proto as columns in BigQuery.
        * 
    * * .google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2; - * * @return Whether the bigqueryDestination field is set. */ boolean hasBigqueryDestination(); /** - * - * *
        * Destination on BigQuery. The output table stores the fields in asset
        * proto as columns in BigQuery.
        * 
    * * .google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2; - * * @return The bigqueryDestination. */ com.google.cloud.asset.v1p7beta1.BigQueryDestination getBigqueryDestination(); /** - * - * *
        * Destination on BigQuery. The output table stores the fields in asset
        * proto as columns in BigQuery.
    diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResult.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResult.java
    similarity index 63%
    rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResult.java
    rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResult.java
    index cc21d39b3317..7fa6ae7b16ca 100644
    --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResult.java
    +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResult.java
    @@ -1,137 +1,60 @@
    -/*
    - * Copyright 2020 Google LLC
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     https://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1p7beta1/asset_service.proto
     
     package com.google.cloud.asset.v1p7beta1;
     
     /**
    - *
    - *
      * 
      * Output result of export assets.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.OutputResult} */ -public final class OutputResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutputResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.OutputResult) OutputResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutputResult.newBuilder() to construct. private OutputResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private OutputResult() {} + private OutputResult() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutputResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private OutputResult( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.asset.v1p7beta1.GcsOutputResult.Builder subBuilder = null; - if (resultCase_ == 1) { - subBuilder = - ((com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_).toBuilder(); - } - result_ = - input.readMessage( - com.google.cloud.asset.v1p7beta1.GcsOutputResult.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_); - result_ = subBuilder.buildPartial(); - } - resultCase_ = 1; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_OutputResult_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_OutputResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.OutputResult.class, - com.google.cloud.asset.v1p7beta1.OutputResult.Builder.class); + com.google.cloud.asset.v1p7beta1.OutputResult.class, com.google.cloud.asset.v1p7beta1.OutputResult.Builder.class); } private int resultCase_ = 0; private java.lang.Object result_; - public enum ResultCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_RESULT(1), RESULT_NOT_SET(0); private final int value; - private ResultCase(int value) { this.value = value; } @@ -147,34 +70,29 @@ public static ResultCase valueOf(int value) { public static ResultCase forNumber(int value) { switch (value) { - case 1: - return GCS_RESULT; - case 0: - return RESULT_NOT_SET; - default: - return null; + case 1: return GCS_RESULT; + case 0: return RESULT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ResultCase getResultCase() { - return ResultCase.forNumber(resultCase_); + public ResultCase + getResultCase() { + return ResultCase.forNumber( + resultCase_); } public static final int GCS_RESULT_FIELD_NUMBER = 1; /** - * - * *
        * Export result on Cloud Storage.
        * 
    * * .google.cloud.asset.v1p7beta1.GcsOutputResult gcs_result = 1; - * * @return Whether the gcsResult field is set. */ @java.lang.Override @@ -182,26 +100,21 @@ public boolean hasGcsResult() { return resultCase_ == 1; } /** - * - * *
        * Export result on Cloud Storage.
        * 
    * * .google.cloud.asset.v1p7beta1.GcsOutputResult gcs_result = 1; - * * @return The gcsResult. */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.GcsOutputResult getGcsResult() { if (resultCase_ == 1) { - return (com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_; + return (com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_; } return com.google.cloud.asset.v1p7beta1.GcsOutputResult.getDefaultInstance(); } /** - * - * *
        * Export result on Cloud Storage.
        * 
    @@ -211,13 +124,12 @@ public com.google.cloud.asset.v1p7beta1.GcsOutputResult getGcsResult() { @java.lang.Override public com.google.cloud.asset.v1p7beta1.GcsOutputResultOrBuilder getGcsResultOrBuilder() { if (resultCase_ == 1) { - return (com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_; + return (com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_; } return com.google.cloud.asset.v1p7beta1.GcsOutputResult.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,11 +141,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (resultCase_ == 1) { output.writeMessage(1, (com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -243,11 +156,10 @@ public int getSerializedSize() { size = 0; if (resultCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -255,23 +167,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p7beta1.OutputResult)) { return super.equals(obj); } - com.google.cloud.asset.v1p7beta1.OutputResult other = - (com.google.cloud.asset.v1p7beta1.OutputResult) obj; + com.google.cloud.asset.v1p7beta1.OutputResult other = (com.google.cloud.asset.v1p7beta1.OutputResult) obj; if (!getResultCase().equals(other.getResultCase())) return false; switch (resultCase_) { case 1: - if (!getGcsResult().equals(other.getGcsResult())) return false; + if (!getGcsResult() + .equals(other.getGcsResult())) return false; break; case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -290,160 +202,150 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1p7beta1.OutputResult parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p7beta1.OutputResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.OutputResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.OutputResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.OutputResult 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.asset.v1p7beta1.OutputResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.OutputResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.OutputResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.OutputResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p7beta1.OutputResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p7beta1.OutputResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.OutputResult parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.OutputResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.OutputResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.OutputResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Output result of export assets.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.OutputResult} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.OutputResult) com.google.cloud.asset.v1p7beta1.OutputResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_OutputResult_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_OutputResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.OutputResult.class, - com.google.cloud.asset.v1p7beta1.OutputResult.Builder.class); + com.google.cloud.asset.v1p7beta1.OutputResult.class, com.google.cloud.asset.v1p7beta1.OutputResult.Builder.class); } // Construct using com.google.cloud.asset.v1p7beta1.OutputResult.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @java.lang.Override public Builder clear() { super.clear(); + if (gcsResultBuilder_ != null) { + gcsResultBuilder_.clear(); + } resultCase_ = 0; result_ = null; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor; } @java.lang.Override @@ -462,8 +364,7 @@ public com.google.cloud.asset.v1p7beta1.OutputResult build() { @java.lang.Override public com.google.cloud.asset.v1p7beta1.OutputResult buildPartial() { - com.google.cloud.asset.v1p7beta1.OutputResult result = - new com.google.cloud.asset.v1p7beta1.OutputResult(this); + com.google.cloud.asset.v1p7beta1.OutputResult result = new com.google.cloud.asset.v1p7beta1.OutputResult(this); if (resultCase_ == 1) { if (gcsResultBuilder_ == null) { result.result_ = result_; @@ -480,39 +381,38 @@ public com.google.cloud.asset.v1p7beta1.OutputResult buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p7beta1.OutputResult) { - return mergeFrom((com.google.cloud.asset.v1p7beta1.OutputResult) other); + return mergeFrom((com.google.cloud.asset.v1p7beta1.OutputResult)other); } else { super.mergeFrom(other); return this; @@ -522,17 +422,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.OutputResult other) { if (other == com.google.cloud.asset.v1p7beta1.OutputResult.getDefaultInstance()) return this; switch (other.getResultCase()) { - case GCS_RESULT: - { - mergeGcsResult(other.getGcsResult()); - break; - } - case RESULT_NOT_SET: - { - break; - } + case GCS_RESULT: { + mergeGcsResult(other.getGcsResult()); + break; + } + case RESULT_NOT_SET: { + break; + } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -547,25 +445,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p7beta1.OutputResult parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getGcsResultFieldBuilder().getBuilder(), + extensionRegistry); + resultCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1p7beta1.OutputResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int resultCase_ = 0; private java.lang.Object result_; - - public ResultCase getResultCase() { - return ResultCase.forNumber(resultCase_); + public ResultCase + getResultCase() { + return ResultCase.forNumber( + resultCase_); } public Builder clearResult() { @@ -575,20 +493,15 @@ public Builder clearResult() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.GcsOutputResult, - com.google.cloud.asset.v1p7beta1.GcsOutputResult.Builder, - com.google.cloud.asset.v1p7beta1.GcsOutputResultOrBuilder> - gcsResultBuilder_; + com.google.cloud.asset.v1p7beta1.GcsOutputResult, com.google.cloud.asset.v1p7beta1.GcsOutputResult.Builder, com.google.cloud.asset.v1p7beta1.GcsOutputResultOrBuilder> gcsResultBuilder_; /** - * - * *
          * Export result on Cloud Storage.
          * 
    * * .google.cloud.asset.v1p7beta1.GcsOutputResult gcs_result = 1; - * * @return Whether the gcsResult field is set. */ @java.lang.Override @@ -596,14 +509,11 @@ public boolean hasGcsResult() { return resultCase_ == 1; } /** - * - * *
          * Export result on Cloud Storage.
          * 
    * * .google.cloud.asset.v1p7beta1.GcsOutputResult gcs_result = 1; - * * @return The gcsResult. */ @java.lang.Override @@ -621,8 +531,6 @@ public com.google.cloud.asset.v1p7beta1.GcsOutputResult getGcsResult() { } } /** - * - * *
          * Export result on Cloud Storage.
          * 
    @@ -643,8 +551,6 @@ public Builder setGcsResult(com.google.cloud.asset.v1p7beta1.GcsOutputResult val return this; } /** - * - * *
          * Export result on Cloud Storage.
          * 
    @@ -663,8 +569,6 @@ public Builder setGcsResult( return this; } /** - * - * *
          * Export result on Cloud Storage.
          * 
    @@ -673,13 +577,10 @@ public Builder setGcsResult( */ public Builder mergeGcsResult(com.google.cloud.asset.v1p7beta1.GcsOutputResult value) { if (gcsResultBuilder_ == null) { - if (resultCase_ == 1 - && result_ != com.google.cloud.asset.v1p7beta1.GcsOutputResult.getDefaultInstance()) { - result_ = - com.google.cloud.asset.v1p7beta1.GcsOutputResult.newBuilder( - (com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_) - .mergeFrom(value) - .buildPartial(); + if (resultCase_ == 1 && + result_ != com.google.cloud.asset.v1p7beta1.GcsOutputResult.getDefaultInstance()) { + result_ = com.google.cloud.asset.v1p7beta1.GcsOutputResult.newBuilder((com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_) + .mergeFrom(value).buildPartial(); } else { result_ = value; } @@ -695,8 +596,6 @@ public Builder mergeGcsResult(com.google.cloud.asset.v1p7beta1.GcsOutputResult v return this; } /** - * - * *
          * Export result on Cloud Storage.
          * 
    @@ -720,8 +619,6 @@ public Builder clearGcsResult() { return this; } /** - * - * *
          * Export result on Cloud Storage.
          * 
    @@ -732,8 +629,6 @@ public com.google.cloud.asset.v1p7beta1.GcsOutputResult.Builder getGcsResultBuil return getGcsResultFieldBuilder().getBuilder(); } /** - * - * *
          * Export result on Cloud Storage.
          * 
    @@ -752,8 +647,6 @@ public com.google.cloud.asset.v1p7beta1.GcsOutputResultOrBuilder getGcsResultOrB } } /** - * - * *
          * Export result on Cloud Storage.
          * 
    @@ -761,32 +654,26 @@ public com.google.cloud.asset.v1p7beta1.GcsOutputResultOrBuilder getGcsResultOrB * .google.cloud.asset.v1p7beta1.GcsOutputResult gcs_result = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.GcsOutputResult, - com.google.cloud.asset.v1p7beta1.GcsOutputResult.Builder, - com.google.cloud.asset.v1p7beta1.GcsOutputResultOrBuilder> + com.google.cloud.asset.v1p7beta1.GcsOutputResult, com.google.cloud.asset.v1p7beta1.GcsOutputResult.Builder, com.google.cloud.asset.v1p7beta1.GcsOutputResultOrBuilder> getGcsResultFieldBuilder() { if (gcsResultBuilder_ == null) { if (!(resultCase_ == 1)) { result_ = com.google.cloud.asset.v1p7beta1.GcsOutputResult.getDefaultInstance(); } - gcsResultBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.GcsOutputResult, - com.google.cloud.asset.v1p7beta1.GcsOutputResult.Builder, - com.google.cloud.asset.v1p7beta1.GcsOutputResultOrBuilder>( + gcsResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p7beta1.GcsOutputResult, com.google.cloud.asset.v1p7beta1.GcsOutputResult.Builder, com.google.cloud.asset.v1p7beta1.GcsOutputResultOrBuilder>( (com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_, getParentForChildren(), isClean()); result_ = null; } resultCase_ = 1; - onChanged(); - ; + onChanged();; return gcsResultBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -796,12 +683,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.OutputResult) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.OutputResult) private static final com.google.cloud.asset.v1p7beta1.OutputResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.OutputResult(); } @@ -810,16 +697,27 @@ public static com.google.cloud.asset.v1p7beta1.OutputResult getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -834,4 +732,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p7beta1.OutputResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResultOrBuilder.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResultOrBuilder.java similarity index 61% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResultOrBuilder.java rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResultOrBuilder.java index ac917385440d..84f878583beb 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResultOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResultOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; -public interface OutputResultOrBuilder - extends +public interface OutputResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.OutputResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Export result on Cloud Storage.
        * 
    * * .google.cloud.asset.v1p7beta1.GcsOutputResult gcs_result = 1; - * * @return Whether the gcsResult field is set. */ boolean hasGcsResult(); /** - * - * *
        * Export result on Cloud Storage.
        * 
    * * .google.cloud.asset.v1p7beta1.GcsOutputResult gcs_result = 1; - * * @return The gcsResult. */ com.google.cloud.asset.v1p7beta1.GcsOutputResult getGcsResult(); /** - * - * *
        * Export result on Cloud Storage.
        * 
    diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpec.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpec.java similarity index 64% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpec.java rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpec.java index d1af80305d12..e2d4d06cecfd 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpec.java +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpec.java @@ -1,121 +1,54 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; /** - * - * *
      * Specifications of BigQuery partitioned table as export destination.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.PartitionSpec} */ -public final class PartitionSpec extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PartitionSpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.PartitionSpec) PartitionSpecOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PartitionSpec.newBuilder() to construct. private PartitionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PartitionSpec() { partitionKey_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PartitionSpec(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private PartitionSpec( - 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(); - - partitionKey_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.PartitionSpec.class, - com.google.cloud.asset.v1p7beta1.PartitionSpec.Builder.class); + com.google.cloud.asset.v1p7beta1.PartitionSpec.class, com.google.cloud.asset.v1p7beta1.PartitionSpec.Builder.class); } /** - * - * *
        * This enum is used to determine the partition key column when exporting
        * assets to BigQuery partitioned table(s). Note that, if the partition key is
    @@ -126,10 +59,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        *
        * Protobuf enum {@code google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey}
        */
    -  public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum {
    +  public enum PartitionKey
    +      implements com.google.protobuf.ProtocolMessageEnum {
         /**
    -     *
    -     *
          * 
          * Unspecified partition key. If used, it means using non-partitioned table.
          * 
    @@ -138,8 +70,6 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum { */ PARTITION_KEY_UNSPECIFIED(0), /** - * - * *
          * The time when the snapshot is taken. If specified as partition key, the
          * result table(s) is partitoned by the additional timestamp column,
    @@ -152,8 +82,6 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum {
          */
         READ_TIME(1),
         /**
    -     *
    -     *
          * 
          * The time when the request is received and started to be processed. If
          * specified as partition key, the result table(s) is partitoned by the
    @@ -168,8 +96,6 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum {
         ;
     
         /**
    -     *
    -     *
          * 
          * Unspecified partition key. If used, it means using non-partitioned table.
          * 
    @@ -178,8 +104,6 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PARTITION_KEY_UNSPECIFIED_VALUE = 0; /** - * - * *
          * The time when the snapshot is taken. If specified as partition key, the
          * result table(s) is partitoned by the additional timestamp column,
    @@ -192,8 +116,6 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum {
          */
         public static final int READ_TIME_VALUE = 1;
         /**
    -     *
    -     *
          * 
          * The time when the request is received and started to be processed. If
          * specified as partition key, the result table(s) is partitoned by the
    @@ -205,6 +127,7 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum {
          */
         public static final int REQUEST_TIME_VALUE = 2;
     
    +
         public final int getNumber() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalArgumentException(
    @@ -229,49 +152,49 @@ public static PartitionKey valueOf(int value) {
          */
         public static PartitionKey forNumber(int value) {
           switch (value) {
    -        case 0:
    -          return PARTITION_KEY_UNSPECIFIED;
    -        case 1:
    -          return READ_TIME;
    -        case 2:
    -          return REQUEST_TIME;
    -        default:
    -          return null;
    +        case 0: return PARTITION_KEY_UNSPECIFIED;
    +        case 1: return READ_TIME;
    +        case 2: return REQUEST_TIME;
    +        default: return null;
           }
         }
     
    -    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
    +    public static com.google.protobuf.Internal.EnumLiteMap
    +        internalGetValueMap() {
           return internalValueMap;
         }
    +    private static final com.google.protobuf.Internal.EnumLiteMap<
    +        PartitionKey> internalValueMap =
    +          new com.google.protobuf.Internal.EnumLiteMap() {
    +            public PartitionKey findValueByNumber(int number) {
    +              return PartitionKey.forNumber(number);
    +            }
    +          };
     
    -    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
    -        new com.google.protobuf.Internal.EnumLiteMap() {
    -          public PartitionKey findValueByNumber(int number) {
    -            return PartitionKey.forNumber(number);
    -          }
    -        };
    -
    -    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
    +    public final com.google.protobuf.Descriptors.EnumValueDescriptor
    +        getValueDescriptor() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalStateException(
                 "Can't get the descriptor of an unrecognized enum value.");
           }
           return getDescriptor().getValues().get(ordinal());
         }
    -
    -    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
    +    public final com.google.protobuf.Descriptors.EnumDescriptor
    +        getDescriptorForType() {
           return getDescriptor();
         }
    -
    -    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
    +    public static final com.google.protobuf.Descriptors.EnumDescriptor
    +        getDescriptor() {
           return com.google.cloud.asset.v1p7beta1.PartitionSpec.getDescriptor().getEnumTypes().get(0);
         }
     
         private static final PartitionKey[] VALUES = values();
     
    -    public static PartitionKey valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
    +    public static PartitionKey valueOf(
    +        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
           if (desc.getType() != getDescriptor()) {
    -        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
    +        throw new java.lang.IllegalArgumentException(
    +          "EnumValueDescriptor is not for this type.");
           }
           if (desc.getIndex() == -1) {
             return UNRECOGNIZED;
    @@ -291,43 +214,31 @@ private PartitionKey(int value) {
       public static final int PARTITION_KEY_FIELD_NUMBER = 1;
       private int partitionKey_;
       /**
    -   *
    -   *
        * 
        * The partition key for BigQuery partitioned table.
        * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey partition_key = 1; - * * @return The enum numeric value on the wire for partitionKey. */ - @java.lang.Override - public int getPartitionKeyValue() { + @java.lang.Override public int getPartitionKeyValue() { return partitionKey_; } /** - * - * *
        * The partition key for BigQuery partitioned table.
        * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey partition_key = 1; - * * @return The partitionKey. */ - @java.lang.Override - public com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey getPartitionKey() { + @java.lang.Override public com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey getPartitionKey() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey result = - com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey.valueOf(partitionKey_); - return result == null - ? com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey.UNRECOGNIZED - : result; + com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey result = com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey.valueOf(partitionKey_); + return result == null ? com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -339,13 +250,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (partitionKey_ - != com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey.PARTITION_KEY_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (partitionKey_ != com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey.PARTITION_KEY_UNSPECIFIED.getNumber()) { output.writeEnum(1, partitionKey_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -354,12 +264,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (partitionKey_ - != com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey.PARTITION_KEY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, partitionKey_); + if (partitionKey_ != com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey.PARTITION_KEY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, partitionKey_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -367,16 +276,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p7beta1.PartitionSpec)) { return super.equals(obj); } - com.google.cloud.asset.v1p7beta1.PartitionSpec other = - (com.google.cloud.asset.v1p7beta1.PartitionSpec) obj; + com.google.cloud.asset.v1p7beta1.PartitionSpec other = (com.google.cloud.asset.v1p7beta1.PartitionSpec) obj; if (partitionKey_ != other.partitionKey_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -389,148 +297,135 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_KEY_FIELD_NUMBER; hash = (53 * hash) + partitionKey_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1p7beta1.PartitionSpec parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p7beta1.PartitionSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.PartitionSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.PartitionSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.PartitionSpec 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.asset.v1p7beta1.PartitionSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.PartitionSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.PartitionSpec parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.PartitionSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p7beta1.PartitionSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p7beta1.PartitionSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.PartitionSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.PartitionSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.PartitionSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.PartitionSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * Specifications of BigQuery partitioned table as export destination.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.PartitionSpec} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.PartitionSpec) com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.PartitionSpec.class, - com.google.cloud.asset.v1p7beta1.PartitionSpec.Builder.class); + com.google.cloud.asset.v1p7beta1.PartitionSpec.class, com.google.cloud.asset.v1p7beta1.PartitionSpec.Builder.class); } // Construct using com.google.cloud.asset.v1p7beta1.PartitionSpec.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -540,9 +435,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto - .internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor; } @java.lang.Override @@ -561,8 +456,7 @@ public com.google.cloud.asset.v1p7beta1.PartitionSpec build() { @java.lang.Override public com.google.cloud.asset.v1p7beta1.PartitionSpec buildPartial() { - com.google.cloud.asset.v1p7beta1.PartitionSpec result = - new com.google.cloud.asset.v1p7beta1.PartitionSpec(this); + com.google.cloud.asset.v1p7beta1.PartitionSpec result = new com.google.cloud.asset.v1p7beta1.PartitionSpec(this); result.partitionKey_ = partitionKey_; onBuilt(); return result; @@ -572,39 +466,38 @@ public com.google.cloud.asset.v1p7beta1.PartitionSpec buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p7beta1.PartitionSpec) { - return mergeFrom((com.google.cloud.asset.v1p7beta1.PartitionSpec) other); + return mergeFrom((com.google.cloud.asset.v1p7beta1.PartitionSpec)other); } else { super.mergeFrom(other); return this; @@ -616,7 +509,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.PartitionSpec other) { if (other.partitionKey_ != 0) { setPartitionKeyValue(other.getPartitionKeyValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -631,116 +524,114 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p7beta1.PartitionSpec parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + partitionKey_ = input.readEnum(); + + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1p7beta1.PartitionSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int partitionKey_ = 0; /** - * - * *
          * The partition key for BigQuery partitioned table.
          * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey partition_key = 1; - * * @return The enum numeric value on the wire for partitionKey. */ - @java.lang.Override - public int getPartitionKeyValue() { + @java.lang.Override public int getPartitionKeyValue() { return partitionKey_; } /** - * - * *
          * The partition key for BigQuery partitioned table.
          * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey partition_key = 1; - * * @param value The enum numeric value on the wire for partitionKey to set. * @return This builder for chaining. */ public Builder setPartitionKeyValue(int value) { - + partitionKey_ = value; onChanged(); return this; } /** - * - * *
          * The partition key for BigQuery partitioned table.
          * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey partition_key = 1; - * * @return The partitionKey. */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey getPartitionKey() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey result = - com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey.valueOf(partitionKey_); - return result == null - ? com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey.UNRECOGNIZED - : result; + com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey result = com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey.valueOf(partitionKey_); + return result == null ? com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey.UNRECOGNIZED : result; } /** - * - * *
          * The partition key for BigQuery partitioned table.
          * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey partition_key = 1; - * * @param value The partitionKey to set. * @return This builder for chaining. */ - public Builder setPartitionKey( - com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey value) { + public Builder setPartitionKey(com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey value) { if (value == null) { throw new NullPointerException(); } - + partitionKey_ = value.getNumber(); onChanged(); return this; } /** - * - * *
          * The partition key for BigQuery partitioned table.
          * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey partition_key = 1; - * * @return This builder for chaining. */ public Builder clearPartitionKey() { - + partitionKey_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -750,12 +641,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.PartitionSpec) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.PartitionSpec) private static final com.google.cloud.asset.v1p7beta1.PartitionSpec DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.PartitionSpec(); } @@ -764,16 +655,27 @@ public static com.google.cloud.asset.v1p7beta1.PartitionSpec getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartitionSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PartitionSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartitionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -788,4 +690,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p7beta1.PartitionSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpecOrBuilder.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpecOrBuilder.java similarity index 56% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpecOrBuilder.java rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpecOrBuilder.java index 80414f9af8bd..0de671bc2e18 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpecOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpecOrBuilder.java @@ -1,49 +1,27 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; -public interface PartitionSpecOrBuilder - extends +public interface PartitionSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.PartitionSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The partition key for BigQuery partitioned table.
        * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey partition_key = 1; - * * @return The enum numeric value on the wire for partitionKey. */ int getPartitionKeyValue(); /** - * - * *
        * The partition key for BigQuery partitioned table.
        * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey partition_key = 1; - * * @return The partitionKey. */ com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey getPartitionKey(); diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAsset.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAsset.java similarity index 73% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAsset.java rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAsset.java index a1c69ec63a77..ec97b36c208f 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAsset.java +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAsset.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/assets.proto package com.google.cloud.asset.v1p7beta1; /** - * - * *
      * An asset identify in Google Cloud which contains its name, type and
      * ancestors. An asset can be any resource in the Google Cloud [resource
    @@ -34,16 +17,15 @@
      *
      * Protobuf type {@code google.cloud.asset.v1p7beta1.RelatedAsset}
      */
    -public final class RelatedAsset extends com.google.protobuf.GeneratedMessageV3
    -    implements
    +public final class RelatedAsset extends
    +    com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.RelatedAsset)
         RelatedAssetOrBuilder {
    -  private static final long serialVersionUID = 0L;
    +private static final long serialVersionUID = 0L;
       // Use RelatedAsset.newBuilder() to construct.
       private RelatedAsset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -
       private RelatedAsset() {
         asset_ = "";
         assetType_ = "";
    @@ -52,102 +34,32 @@ private RelatedAsset() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(
    +      UnusedPrivateParameter unused) {
         return new RelatedAsset();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet
    +  getUnknownFields() {
         return this.unknownFields;
       }
    -
    -  private RelatedAsset(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              asset_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              assetType_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                ancestors_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              ancestors_.add(s);
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        ancestors_ = ancestors_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
    -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.cloud.asset.v1p7beta1.AssetProto
    -        .internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor;
    +  public static final com.google.protobuf.Descriptors.Descriptor
    +      getDescriptor() {
    +    return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1p7beta1.AssetProto
    -        .internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_fieldAccessorTable
    +    return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1p7beta1.RelatedAsset.class,
    -            com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder.class);
    +            com.google.cloud.asset.v1p7beta1.RelatedAsset.class, com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder.class);
       }
     
       public static final int ASSET_FIELD_NUMBER = 1;
       private volatile java.lang.Object asset_;
       /**
    -   *
    -   *
        * 
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -157,7 +69,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } - * * @return The asset. */ @java.lang.Override @@ -166,15 +77,14 @@ public java.lang.String getAsset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); asset_ = s; return s; } } /** - * - * *
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -184,15 +94,16 @@ public java.lang.String getAsset() {
        * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for asset. */ @java.lang.Override - public com.google.protobuf.ByteString getAssetBytes() { + public com.google.protobuf.ByteString + getAssetBytes() { java.lang.Object ref = asset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); asset_ = b; return b; } else { @@ -203,8 +114,6 @@ public com.google.protobuf.ByteString getAssetBytes() { public static final int ASSET_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object assetType_; /** - * - * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -213,7 +122,6 @@ public com.google.protobuf.ByteString getAssetBytes() {
        * 
    * * string asset_type = 2; - * * @return The assetType. */ @java.lang.Override @@ -222,15 +130,14 @@ public java.lang.String getAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; } } /** - * - * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -239,15 +146,16 @@ public java.lang.String getAssetType() {
        * 
    * * string asset_type = 2; - * * @return The bytes for assetType. */ @java.lang.Override - public com.google.protobuf.ByteString getAssetTypeBytes() { + public com.google.protobuf.ByteString + getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetType_ = b; return b; } else { @@ -258,8 +166,6 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { public static final int ANCESTORS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList ancestors_; /** - * - * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -269,15 +175,13 @@ public com.google.protobuf.ByteString getAssetTypeBytes() {
        * 
    * * repeated string ancestors = 3; - * * @return A list containing the ancestors. */ - public com.google.protobuf.ProtocolStringList getAncestorsList() { + public com.google.protobuf.ProtocolStringList + getAncestorsList() { return ancestors_; } /** - * - * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -287,15 +191,12 @@ public com.google.protobuf.ProtocolStringList getAncestorsList() {
        * 
    * * repeated string ancestors = 3; - * * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); } /** - * - * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -305,7 +206,6 @@ public int getAncestorsCount() {
        * 
    * * repeated string ancestors = 3; - * * @param index The index of the element to return. * @return The ancestors at the given index. */ @@ -313,8 +213,6 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** - * - * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -324,16 +222,15 @@ public java.lang.String getAncestors(int index) {
        * 
    * * repeated string ancestors = 3; - * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - public com.google.protobuf.ByteString getAncestorsBytes(int index) { + public com.google.protobuf.ByteString + getAncestorsBytes(int index) { return ancestors_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -345,7 +242,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(asset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, asset_); } @@ -355,7 +253,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < ancestors_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ancestors_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -378,7 +276,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAncestorsList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -386,18 +284,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p7beta1.RelatedAsset)) { return super.equals(obj); } - com.google.cloud.asset.v1p7beta1.RelatedAsset other = - (com.google.cloud.asset.v1p7beta1.RelatedAsset) obj; - - if (!getAsset().equals(other.getAsset())) return false; - if (!getAssetType().equals(other.getAssetType())) return false; - if (!getAncestorsList().equals(other.getAncestorsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + com.google.cloud.asset.v1p7beta1.RelatedAsset other = (com.google.cloud.asset.v1p7beta1.RelatedAsset) obj; + + if (!getAsset() + .equals(other.getAsset())) return false; + if (!getAssetType() + .equals(other.getAssetType())) return false; + if (!getAncestorsList() + .equals(other.getAncestorsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -416,109 +316,102 @@ public int hashCode() { hash = (37 * hash) + ANCESTORS_FIELD_NUMBER; hash = (53 * hash) + getAncestorsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1p7beta1.RelatedAsset parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p7beta1.RelatedAsset parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.RelatedAsset parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.RelatedAsset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.RelatedAsset 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.asset.v1p7beta1.RelatedAsset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.RelatedAsset parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.RelatedAsset parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.RelatedAsset parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p7beta1.RelatedAsset parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p7beta1.RelatedAsset parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.RelatedAsset parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.RelatedAsset parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.RelatedAsset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.RelatedAsset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * An asset identify in Google Cloud which contains its name, type and
        * ancestors. An asset can be any resource in the Google Cloud [resource
    @@ -532,39 +425,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        * Protobuf type {@code google.cloud.asset.v1p7beta1.RelatedAsset}
        */
    -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    -      implements
    +  public static final class Builder extends
    +      com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.RelatedAsset)
           com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.cloud.asset.v1p7beta1.AssetProto
    -          .internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor
    +        getDescriptor() {
    +      return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1p7beta1.AssetProto
    -          .internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_fieldAccessorTable
    +      return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1p7beta1.RelatedAsset.class,
    -              com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder.class);
    +              com.google.cloud.asset.v1p7beta1.RelatedAsset.class, com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1p7beta1.RelatedAsset.newBuilder()
         private Builder() {
    -      maybeForceBuilderInitialization();
    +
         }
     
    -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    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();
    @@ -578,9 +465,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.cloud.asset.v1p7beta1.AssetProto
    -          .internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor
    +        getDescriptorForType() {
    +      return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor;
         }
     
         @java.lang.Override
    @@ -599,8 +486,7 @@ public com.google.cloud.asset.v1p7beta1.RelatedAsset build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1p7beta1.RelatedAsset buildPartial() {
    -      com.google.cloud.asset.v1p7beta1.RelatedAsset result =
    -          new com.google.cloud.asset.v1p7beta1.RelatedAsset(this);
    +      com.google.cloud.asset.v1p7beta1.RelatedAsset result = new com.google.cloud.asset.v1p7beta1.RelatedAsset(this);
           int from_bitField0_ = bitField0_;
           result.asset_ = asset_;
           result.assetType_ = assetType_;
    @@ -617,39 +503,38 @@ public com.google.cloud.asset.v1p7beta1.RelatedAsset buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    -
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1p7beta1.RelatedAsset) {
    -        return mergeFrom((com.google.cloud.asset.v1p7beta1.RelatedAsset) other);
    +        return mergeFrom((com.google.cloud.asset.v1p7beta1.RelatedAsset)other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -676,7 +561,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.RelatedAsset other) {
             }
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -691,26 +576,52 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p7beta1.RelatedAsset parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10: {
    +              asset_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 10
    +            case 18: {
    +              assetType_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 18
    +            case 26: {
    +              java.lang.String s = input.readStringRequireUtf8();
    +              ensureAncestorsIsMutable();
    +              ancestors_.add(s);
    +              break;
    +            } // case 26
    +            default: {
    +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                done = true; // was an endgroup tag
    +              }
    +              break;
    +            } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.cloud.asset.v1p7beta1.RelatedAsset) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
    -
         private int bitField0_;
     
         private java.lang.Object asset_ = "";
         /**
    -     *
    -     *
          * 
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -720,13 +631,13 @@ public Builder mergeFrom(
          * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } - * * @return The asset. */ public java.lang.String getAsset() { java.lang.Object ref = asset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); asset_ = s; return s; @@ -735,8 +646,6 @@ public java.lang.String getAsset() { } } /** - * - * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -746,14 +655,15 @@ public java.lang.String getAsset() {
          * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for asset. */ - public com.google.protobuf.ByteString getAssetBytes() { + public com.google.protobuf.ByteString + getAssetBytes() { java.lang.Object ref = asset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); asset_ = b; return b; } else { @@ -761,8 +671,6 @@ public com.google.protobuf.ByteString getAssetBytes() { } } /** - * - * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -772,22 +680,20 @@ public com.google.protobuf.ByteString getAssetBytes() {
          * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } - * * @param value The asset to set. * @return This builder for chaining. */ - public Builder setAsset(java.lang.String value) { + public Builder setAsset( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + asset_ = value; onChanged(); return this; } /** - * - * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -797,18 +703,15 @@ public Builder setAsset(java.lang.String value) {
          * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearAsset() { - + asset_ = getDefaultInstance().getAsset(); onChanged(); return this; } /** - * - * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -818,16 +721,16 @@ public Builder clearAsset() {
          * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for asset to set. * @return This builder for chaining. */ - public Builder setAssetBytes(com.google.protobuf.ByteString value) { + public Builder setAssetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + asset_ = value; onChanged(); return this; @@ -835,8 +738,6 @@ public Builder setAssetBytes(com.google.protobuf.ByteString value) { private java.lang.Object assetType_ = ""; /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -845,13 +746,13 @@ public Builder setAssetBytes(com.google.protobuf.ByteString value) {
          * 
    * * string asset_type = 2; - * * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; @@ -860,8 +761,6 @@ public java.lang.String getAssetType() { } } /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -870,14 +769,15 @@ public java.lang.String getAssetType() {
          * 
    * * string asset_type = 2; - * * @return The bytes for assetType. */ - public com.google.protobuf.ByteString getAssetTypeBytes() { + public com.google.protobuf.ByteString + getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); assetType_ = b; return b; } else { @@ -885,8 +785,6 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { } } /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -895,22 +793,20 @@ public com.google.protobuf.ByteString getAssetTypeBytes() {
          * 
    * * string asset_type = 2; - * * @param value The assetType to set. * @return This builder for chaining. */ - public Builder setAssetType(java.lang.String value) { + public Builder setAssetType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + assetType_ = value; onChanged(); return this; } /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -919,18 +815,15 @@ public Builder setAssetType(java.lang.String value) {
          * 
    * * string asset_type = 2; - * * @return This builder for chaining. */ public Builder clearAssetType() { - + assetType_ = getDefaultInstance().getAssetType(); onChanged(); return this; } /** - * - * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -939,33 +832,29 @@ public Builder clearAssetType() {
          * 
    * * string asset_type = 2; - * * @param value The bytes for assetType to set. * @return This builder for chaining. */ - public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { + public Builder setAssetTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList ancestors_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAncestorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ancestors_ = new com.google.protobuf.LazyStringArrayList(ancestors_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -975,15 +864,13 @@ private void ensureAncestorsIsMutable() {
          * 
    * * repeated string ancestors = 3; - * * @return A list containing the ancestors. */ - public com.google.protobuf.ProtocolStringList getAncestorsList() { + public com.google.protobuf.ProtocolStringList + getAncestorsList() { return ancestors_.getUnmodifiableView(); } /** - * - * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -993,15 +880,12 @@ public com.google.protobuf.ProtocolStringList getAncestorsList() {
          * 
    * * repeated string ancestors = 3; - * * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); } /** - * - * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1011,7 +895,6 @@ public int getAncestorsCount() {
          * 
    * * repeated string ancestors = 3; - * * @param index The index of the element to return. * @return The ancestors at the given index. */ @@ -1019,8 +902,6 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** - * - * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1030,16 +911,14 @@ public java.lang.String getAncestors(int index) {
          * 
    * * repeated string ancestors = 3; - * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - public com.google.protobuf.ByteString getAncestorsBytes(int index) { + public com.google.protobuf.ByteString + getAncestorsBytes(int index) { return ancestors_.getByteString(index); } /** - * - * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1049,23 +928,21 @@ public com.google.protobuf.ByteString getAncestorsBytes(int index) {
          * 
    * * repeated string ancestors = 3; - * * @param index The index to set the value at. * @param value The ancestors to set. * @return This builder for chaining. */ - public Builder setAncestors(int index, java.lang.String value) { + public Builder setAncestors( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAncestorsIsMutable(); + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); ancestors_.set(index, value); onChanged(); return this; } /** - * - * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1075,22 +952,20 @@ public Builder setAncestors(int index, java.lang.String value) {
          * 
    * * repeated string ancestors = 3; - * * @param value The ancestors to add. * @return This builder for chaining. */ - public Builder addAncestors(java.lang.String value) { + public Builder addAncestors( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAncestorsIsMutable(); + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); return this; } /** - * - * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1100,19 +975,18 @@ public Builder addAncestors(java.lang.String value) {
          * 
    * * repeated string ancestors = 3; - * * @param values The ancestors to add. * @return This builder for chaining. */ - public Builder addAllAncestors(java.lang.Iterable values) { + public Builder addAllAncestors( + java.lang.Iterable values) { ensureAncestorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ancestors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ancestors_); onChanged(); return this; } /** - * - * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1122,7 +996,6 @@ public Builder addAllAncestors(java.lang.Iterable values) {
          * 
    * * repeated string ancestors = 3; - * * @return This builder for chaining. */ public Builder clearAncestors() { @@ -1132,8 +1005,6 @@ public Builder clearAncestors() { return this; } /** - * - * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1143,23 +1014,23 @@ public Builder clearAncestors() {
          * 
    * * repeated string ancestors = 3; - * * @param value The bytes of the ancestors to add. * @return This builder for chaining. */ - public Builder addAncestorsBytes(com.google.protobuf.ByteString value) { + public Builder addAncestorsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1169,12 +1040,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.RelatedAsset) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.RelatedAsset) private static final com.google.cloud.asset.v1p7beta1.RelatedAsset DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.RelatedAsset(); } @@ -1183,16 +1054,27 @@ public static com.google.cloud.asset.v1p7beta1.RelatedAsset getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RelatedAsset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RelatedAsset(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelatedAsset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1207,4 +1089,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p7beta1.RelatedAsset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetOrBuilder.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetOrBuilder.java similarity index 80% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetOrBuilder.java rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetOrBuilder.java index 8e4a2d70e655..584ef775ccf2 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/assets.proto package com.google.cloud.asset.v1p7beta1; -public interface RelatedAssetOrBuilder - extends +public interface RelatedAssetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.RelatedAsset) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -35,13 +17,10 @@ public interface RelatedAssetOrBuilder
        * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } - * * @return The asset. */ java.lang.String getAsset(); /** - * - * *
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -51,14 +30,12 @@ public interface RelatedAssetOrBuilder
        * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for asset. */ - com.google.protobuf.ByteString getAssetBytes(); + com.google.protobuf.ByteString + getAssetBytes(); /** - * - * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -67,13 +44,10 @@ public interface RelatedAssetOrBuilder
        * 
    * * string asset_type = 2; - * * @return The assetType. */ java.lang.String getAssetType(); /** - * - * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -82,14 +56,12 @@ public interface RelatedAssetOrBuilder
        * 
    * * string asset_type = 2; - * * @return The bytes for assetType. */ - com.google.protobuf.ByteString getAssetTypeBytes(); + com.google.protobuf.ByteString + getAssetTypeBytes(); /** - * - * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -99,13 +71,11 @@ public interface RelatedAssetOrBuilder
        * 
    * * repeated string ancestors = 3; - * * @return A list containing the ancestors. */ - java.util.List getAncestorsList(); + java.util.List + getAncestorsList(); /** - * - * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -115,13 +85,10 @@ public interface RelatedAssetOrBuilder
        * 
    * * repeated string ancestors = 3; - * * @return The count of ancestors. */ int getAncestorsCount(); /** - * - * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -131,14 +98,11 @@ public interface RelatedAssetOrBuilder
        * 
    * * repeated string ancestors = 3; - * * @param index The index of the element to return. * @return The ancestors at the given index. */ java.lang.String getAncestors(int index); /** - * - * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -148,9 +112,9 @@ public interface RelatedAssetOrBuilder
        * 
    * * repeated string ancestors = 3; - * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - com.google.protobuf.ByteString getAncestorsBytes(int index); + com.google.protobuf.ByteString + getAncestorsBytes(int index); } diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssets.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssets.java similarity index 67% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssets.java rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssets.java index 6425e4f84ffc..c7d93b608764 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssets.java +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssets.java @@ -1,154 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/assets.proto package com.google.cloud.asset.v1p7beta1; /** - * - * *
      * The detailed related assets with the `relationship_type`.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.RelatedAssets} */ -public final class RelatedAssets extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RelatedAssets extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.RelatedAssets) RelatedAssetsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RelatedAssets.newBuilder() to construct. private RelatedAssets(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RelatedAssets() { assets_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RelatedAssets(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private RelatedAssets( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder subBuilder = null; - if (relationshipAttributes_ != null) { - subBuilder = relationshipAttributes_.toBuilder(); - } - relationshipAttributes_ = - input.readMessage( - com.google.cloud.asset.v1p7beta1.RelationshipAttributes.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(relationshipAttributes_); - relationshipAttributes_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - assets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - assets_.add( - input.readMessage( - com.google.cloud.asset.v1p7beta1.RelatedAsset.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - assets_ = java.util.Collections.unmodifiableList(assets_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetProto - .internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetProto - .internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.RelatedAssets.class, - com.google.cloud.asset.v1p7beta1.RelatedAssets.Builder.class); + com.google.cloud.asset.v1p7beta1.RelatedAssets.class, com.google.cloud.asset.v1p7beta1.RelatedAssets.Builder.class); } public static final int RELATIONSHIP_ATTRIBUTES_FIELD_NUMBER = 1; private com.google.cloud.asset.v1p7beta1.RelationshipAttributes relationshipAttributes_; /** - * - * *
        * The detailed relation attributes.
        * 
    * * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; - * * @return Whether the relationshipAttributes field is set. */ @java.lang.Override @@ -156,25 +63,18 @@ public boolean hasRelationshipAttributes() { return relationshipAttributes_ != null; } /** - * - * *
        * The detailed relation attributes.
        * 
    * * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; - * * @return The relationshipAttributes. */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.RelationshipAttributes getRelationshipAttributes() { - return relationshipAttributes_ == null - ? com.google.cloud.asset.v1p7beta1.RelationshipAttributes.getDefaultInstance() - : relationshipAttributes_; + return relationshipAttributes_ == null ? com.google.cloud.asset.v1p7beta1.RelationshipAttributes.getDefaultInstance() : relationshipAttributes_; } /** - * - * *
        * The detailed relation attributes.
        * 
    @@ -182,16 +82,13 @@ public com.google.cloud.asset.v1p7beta1.RelationshipAttributes getRelationshipAt * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; */ @java.lang.Override - public com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder - getRelationshipAttributesOrBuilder() { + public com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder getRelationshipAttributesOrBuilder() { return getRelationshipAttributes(); } public static final int ASSETS_FIELD_NUMBER = 2; private java.util.List assets_; /** - * - * *
        * The peer resources of the relationship.
        * 
    @@ -203,8 +100,6 @@ public java.util.List getAssetsLi return assets_; } /** - * - * *
        * The peer resources of the relationship.
        * 
    @@ -212,13 +107,11 @@ public java.util.List getAssetsLi * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ @java.lang.Override - public java.util.List + public java.util.List getAssetsOrBuilderList() { return assets_; } /** - * - * *
        * The peer resources of the relationship.
        * 
    @@ -230,8 +123,6 @@ public int getAssetsCount() { return assets_.size(); } /** - * - * *
        * The peer resources of the relationship.
        * 
    @@ -243,8 +134,6 @@ public com.google.cloud.asset.v1p7beta1.RelatedAsset getAssets(int index) { return assets_.get(index); } /** - * - * *
        * The peer resources of the relationship.
        * 
    @@ -252,12 +141,12 @@ public com.google.cloud.asset.v1p7beta1.RelatedAsset getAssets(int index) { * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ @java.lang.Override - public com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder getAssetsOrBuilder(int index) { + public com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder getAssetsOrBuilder( + int index) { return assets_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,14 +158,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (relationshipAttributes_ != null) { output.writeMessage(1, getRelationshipAttributes()); } for (int i = 0; i < assets_.size(); i++) { output.writeMessage(2, assets_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -286,13 +176,14 @@ public int getSerializedSize() { size = 0; if (relationshipAttributes_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRelationshipAttributes()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRelationshipAttributes()); } for (int i = 0; i < assets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, assets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, assets_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -300,20 +191,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p7beta1.RelatedAssets)) { return super.equals(obj); } - com.google.cloud.asset.v1p7beta1.RelatedAssets other = - (com.google.cloud.asset.v1p7beta1.RelatedAssets) obj; + com.google.cloud.asset.v1p7beta1.RelatedAssets other = (com.google.cloud.asset.v1p7beta1.RelatedAssets) obj; if (hasRelationshipAttributes() != other.hasRelationshipAttributes()) return false; if (hasRelationshipAttributes()) { - if (!getRelationshipAttributes().equals(other.getRelationshipAttributes())) return false; + if (!getRelationshipAttributes() + .equals(other.getRelationshipAttributes())) return false; } - if (!getAssetsList().equals(other.getAssetsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getAssetsList() + .equals(other.getAssetsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -332,150 +224,135 @@ public int hashCode() { hash = (37 * hash) + ASSETS_FIELD_NUMBER; hash = (53 * hash) + getAssetsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1p7beta1.RelatedAssets parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p7beta1.RelatedAssets parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.RelatedAssets parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.RelatedAssets parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.RelatedAssets 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.asset.v1p7beta1.RelatedAssets parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.RelatedAssets parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.RelatedAssets parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.RelatedAssets parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p7beta1.RelatedAssets parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p7beta1.RelatedAssets parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.RelatedAssets parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.RelatedAssets parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.RelatedAssets parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.RelatedAssets prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * The detailed related assets with the `relationship_type`.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.RelatedAssets} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.RelatedAssets) com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetProto - .internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetProto - .internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.RelatedAssets.class, - com.google.cloud.asset.v1p7beta1.RelatedAssets.Builder.class); + com.google.cloud.asset.v1p7beta1.RelatedAssets.class, com.google.cloud.asset.v1p7beta1.RelatedAssets.Builder.class); } // Construct using com.google.cloud.asset.v1p7beta1.RelatedAssets.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAssetsFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); @@ -487,17 +364,18 @@ public Builder clear() { } if (assetsBuilder_ == null) { assets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + assets_ = null; assetsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p7beta1.AssetProto - .internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor; } @java.lang.Override @@ -516,8 +394,7 @@ public com.google.cloud.asset.v1p7beta1.RelatedAssets build() { @java.lang.Override public com.google.cloud.asset.v1p7beta1.RelatedAssets buildPartial() { - com.google.cloud.asset.v1p7beta1.RelatedAssets result = - new com.google.cloud.asset.v1p7beta1.RelatedAssets(this); + com.google.cloud.asset.v1p7beta1.RelatedAssets result = new com.google.cloud.asset.v1p7beta1.RelatedAssets(this); int from_bitField0_ = bitField0_; if (relationshipAttributesBuilder_ == null) { result.relationshipAttributes_ = relationshipAttributes_; @@ -541,39 +418,38 @@ public com.google.cloud.asset.v1p7beta1.RelatedAssets buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p7beta1.RelatedAssets) { - return mergeFrom((com.google.cloud.asset.v1p7beta1.RelatedAssets) other); + return mergeFrom((com.google.cloud.asset.v1p7beta1.RelatedAssets)other); } else { super.mergeFrom(other); return this; @@ -603,16 +479,15 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.RelatedAssets other) { assetsBuilder_ = null; assets_ = other.assets_; bitField0_ = (bitField0_ & ~0x00000001); - assetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAssetsFieldBuilder() - : null; + assetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAssetsFieldBuilder() : null; } else { assetsBuilder_.addAllMessages(other.assets_); } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -627,76 +502,91 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p7beta1.RelatedAssets parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getRelationshipAttributesFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + com.google.cloud.asset.v1p7beta1.RelatedAsset m = + input.readMessage( + com.google.cloud.asset.v1p7beta1.RelatedAsset.parser(), + extensionRegistry); + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.add(m); + } else { + assetsBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1p7beta1.RelatedAssets) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private com.google.cloud.asset.v1p7beta1.RelationshipAttributes relationshipAttributes_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.RelationshipAttributes, - com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder, - com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder> - relationshipAttributesBuilder_; + com.google.cloud.asset.v1p7beta1.RelationshipAttributes, com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder, com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder> relationshipAttributesBuilder_; /** - * - * *
          * The detailed relation attributes.
          * 
    * - * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; - * - * + * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; * @return Whether the relationshipAttributes field is set. */ public boolean hasRelationshipAttributes() { return relationshipAttributesBuilder_ != null || relationshipAttributes_ != null; } /** - * - * *
          * The detailed relation attributes.
          * 
    * - * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; - * - * + * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; * @return The relationshipAttributes. */ public com.google.cloud.asset.v1p7beta1.RelationshipAttributes getRelationshipAttributes() { if (relationshipAttributesBuilder_ == null) { - return relationshipAttributes_ == null - ? com.google.cloud.asset.v1p7beta1.RelationshipAttributes.getDefaultInstance() - : relationshipAttributes_; + return relationshipAttributes_ == null ? com.google.cloud.asset.v1p7beta1.RelationshipAttributes.getDefaultInstance() : relationshipAttributes_; } else { return relationshipAttributesBuilder_.getMessage(); } } /** - * - * *
          * The detailed relation attributes.
          * 
    * - * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; - * + * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; */ - public Builder setRelationshipAttributes( - com.google.cloud.asset.v1p7beta1.RelationshipAttributes value) { + public Builder setRelationshipAttributes(com.google.cloud.asset.v1p7beta1.RelationshipAttributes value) { if (relationshipAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -710,14 +600,11 @@ public Builder setRelationshipAttributes( return this; } /** - * - * *
          * The detailed relation attributes.
          * 
    * - * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; - * + * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; */ public Builder setRelationshipAttributes( com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder builderForValue) { @@ -731,24 +618,17 @@ public Builder setRelationshipAttributes( return this; } /** - * - * *
          * The detailed relation attributes.
          * 
    * - * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; - * + * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; */ - public Builder mergeRelationshipAttributes( - com.google.cloud.asset.v1p7beta1.RelationshipAttributes value) { + public Builder mergeRelationshipAttributes(com.google.cloud.asset.v1p7beta1.RelationshipAttributes value) { if (relationshipAttributesBuilder_ == null) { if (relationshipAttributes_ != null) { relationshipAttributes_ = - com.google.cloud.asset.v1p7beta1.RelationshipAttributes.newBuilder( - relationshipAttributes_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.asset.v1p7beta1.RelationshipAttributes.newBuilder(relationshipAttributes_).mergeFrom(value).buildPartial(); } else { relationshipAttributes_ = value; } @@ -760,14 +640,11 @@ public Builder mergeRelationshipAttributes( return this; } /** - * - * *
          * The detailed relation attributes.
          * 
    * - * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; - * + * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; */ public Builder clearRelationshipAttributes() { if (relationshipAttributesBuilder_ == null) { @@ -781,87 +658,66 @@ public Builder clearRelationshipAttributes() { return this; } /** - * - * *
          * The detailed relation attributes.
          * 
    * - * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; - * + * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; */ - public com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder - getRelationshipAttributesBuilder() { - + public com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder getRelationshipAttributesBuilder() { + onChanged(); return getRelationshipAttributesFieldBuilder().getBuilder(); } /** - * - * *
          * The detailed relation attributes.
          * 
    * - * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; - * + * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; */ - public com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder - getRelationshipAttributesOrBuilder() { + public com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder getRelationshipAttributesOrBuilder() { if (relationshipAttributesBuilder_ != null) { return relationshipAttributesBuilder_.getMessageOrBuilder(); } else { - return relationshipAttributes_ == null - ? com.google.cloud.asset.v1p7beta1.RelationshipAttributes.getDefaultInstance() - : relationshipAttributes_; + return relationshipAttributes_ == null ? + com.google.cloud.asset.v1p7beta1.RelationshipAttributes.getDefaultInstance() : relationshipAttributes_; } } /** - * - * *
          * The detailed relation attributes.
          * 
    * - * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; - * + * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.RelationshipAttributes, - com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder, - com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder> + com.google.cloud.asset.v1p7beta1.RelationshipAttributes, com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder, com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder> getRelationshipAttributesFieldBuilder() { if (relationshipAttributesBuilder_ == null) { - relationshipAttributesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.RelationshipAttributes, - com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder, - com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder>( - getRelationshipAttributes(), getParentForChildren(), isClean()); + relationshipAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p7beta1.RelationshipAttributes, com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder, com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder>( + getRelationshipAttributes(), + getParentForChildren(), + isClean()); relationshipAttributes_ = null; } return relationshipAttributesBuilder_; } private java.util.List assets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAssetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assets_ = new java.util.ArrayList(assets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.RelatedAsset, - com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder, - com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder> - assetsBuilder_; + com.google.cloud.asset.v1p7beta1.RelatedAsset, com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder, com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder> assetsBuilder_; /** - * - * *
          * The peer resources of the relationship.
          * 
    @@ -876,8 +732,6 @@ public java.util.List getAssetsLi } } /** - * - * *
          * The peer resources of the relationship.
          * 
    @@ -892,8 +746,6 @@ public int getAssetsCount() { } } /** - * - * *
          * The peer resources of the relationship.
          * 
    @@ -908,15 +760,14 @@ public com.google.cloud.asset.v1p7beta1.RelatedAsset getAssets(int index) { } } /** - * - * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ - public Builder setAssets(int index, com.google.cloud.asset.v1p7beta1.RelatedAsset value) { + public Builder setAssets( + int index, com.google.cloud.asset.v1p7beta1.RelatedAsset value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -930,8 +781,6 @@ public Builder setAssets(int index, com.google.cloud.asset.v1p7beta1.RelatedAsse return this; } /** - * - * *
          * The peer resources of the relationship.
          * 
    @@ -950,8 +799,6 @@ public Builder setAssets( return this; } /** - * - * *
          * The peer resources of the relationship.
          * 
    @@ -972,15 +819,14 @@ public Builder addAssets(com.google.cloud.asset.v1p7beta1.RelatedAsset value) { return this; } /** - * - * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ - public Builder addAssets(int index, com.google.cloud.asset.v1p7beta1.RelatedAsset value) { + public Builder addAssets( + int index, com.google.cloud.asset.v1p7beta1.RelatedAsset value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -994,8 +840,6 @@ public Builder addAssets(int index, com.google.cloud.asset.v1p7beta1.RelatedAsse return this; } /** - * - * *
          * The peer resources of the relationship.
          * 
    @@ -1014,8 +858,6 @@ public Builder addAssets( return this; } /** - * - * *
          * The peer resources of the relationship.
          * 
    @@ -1034,8 +876,6 @@ public Builder addAssets( return this; } /** - * - * *
          * The peer resources of the relationship.
          * 
    @@ -1046,7 +886,8 @@ public Builder addAllAssets( java.lang.Iterable values) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, assets_); onChanged(); } else { assetsBuilder_.addAllMessages(values); @@ -1054,8 +895,6 @@ public Builder addAllAssets( return this; } /** - * - * *
          * The peer resources of the relationship.
          * 
    @@ -1073,8 +912,6 @@ public Builder clearAssets() { return this; } /** - * - * *
          * The peer resources of the relationship.
          * 
    @@ -1092,44 +929,39 @@ public Builder removeAssets(int index) { return this; } /** - * - * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ - public com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder getAssetsBuilder(int index) { + public com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder getAssetsBuilder( + int index) { return getAssetsFieldBuilder().getBuilder(index); } /** - * - * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ - public com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder getAssetsOrBuilder(int index) { + public com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder getAssetsOrBuilder( + int index) { if (assetsBuilder_ == null) { - return assets_.get(index); - } else { + return assets_.get(index); } else { return assetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ - public java.util.List - getAssetsOrBuilderList() { + public java.util.List + getAssetsOrBuilderList() { if (assetsBuilder_ != null) { return assetsBuilder_.getMessageOrBuilderList(); } else { @@ -1137,8 +969,6 @@ public com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder getAssetsOrBuilder } } /** - * - * *
          * The peer resources of the relationship.
          * 
    @@ -1146,55 +976,49 @@ public com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder getAssetsOrBuilder * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ public com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder addAssetsBuilder() { - return getAssetsFieldBuilder() - .addBuilder(com.google.cloud.asset.v1p7beta1.RelatedAsset.getDefaultInstance()); + return getAssetsFieldBuilder().addBuilder( + com.google.cloud.asset.v1p7beta1.RelatedAsset.getDefaultInstance()); } /** - * - * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ - public com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder addAssetsBuilder(int index) { - return getAssetsFieldBuilder() - .addBuilder(index, com.google.cloud.asset.v1p7beta1.RelatedAsset.getDefaultInstance()); + public com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder addAssetsBuilder( + int index) { + return getAssetsFieldBuilder().addBuilder( + index, com.google.cloud.asset.v1p7beta1.RelatedAsset.getDefaultInstance()); } /** - * - * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ - public java.util.List - getAssetsBuilderList() { + public java.util.List + getAssetsBuilderList() { return getAssetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.RelatedAsset, - com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder, - com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder> + com.google.cloud.asset.v1p7beta1.RelatedAsset, com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder, com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder> getAssetsFieldBuilder() { if (assetsBuilder_ == null) { - assetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.RelatedAsset, - com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder, - com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder>( - assets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + assetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1p7beta1.RelatedAsset, com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder, com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder>( + assets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); assets_ = null; } return assetsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1204,12 +1028,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.RelatedAssets) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.RelatedAssets) private static final com.google.cloud.asset.v1p7beta1.RelatedAssets DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.RelatedAssets(); } @@ -1218,16 +1042,27 @@ public static com.google.cloud.asset.v1p7beta1.RelatedAssets getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RelatedAssets parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RelatedAssets(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelatedAssets parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1242,4 +1077,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p7beta1.RelatedAssets getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetsOrBuilder.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetsOrBuilder.java similarity index 72% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetsOrBuilder.java rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetsOrBuilder.java index a3ac416cd3fc..209d5d21f46a 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetsOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetsOrBuilder.java @@ -1,77 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/assets.proto package com.google.cloud.asset.v1p7beta1; -public interface RelatedAssetsOrBuilder - extends +public interface RelatedAssetsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.RelatedAssets) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The detailed relation attributes.
        * 
    * * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; - * * @return Whether the relationshipAttributes field is set. */ boolean hasRelationshipAttributes(); /** - * - * *
        * The detailed relation attributes.
        * 
    * * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; - * * @return The relationshipAttributes. */ com.google.cloud.asset.v1p7beta1.RelationshipAttributes getRelationshipAttributes(); /** - * - * *
        * The detailed relation attributes.
        * 
    * * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; */ - com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder - getRelationshipAttributesOrBuilder(); + com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder getRelationshipAttributesOrBuilder(); /** - * - * *
        * The peer resources of the relationship.
        * 
    * * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ - java.util.List getAssetsList(); + java.util.List + getAssetsList(); /** - * - * *
        * The peer resources of the relationship.
        * 
    @@ -80,8 +52,6 @@ public interface RelatedAssetsOrBuilder */ com.google.cloud.asset.v1p7beta1.RelatedAsset getAssets(int index); /** - * - * *
        * The peer resources of the relationship.
        * 
    @@ -90,24 +60,21 @@ public interface RelatedAssetsOrBuilder */ int getAssetsCount(); /** - * - * *
        * The peer resources of the relationship.
        * 
    * * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ - java.util.List + java.util.List getAssetsOrBuilderList(); /** - * - * *
        * The peer resources of the relationship.
        * 
    * * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ - com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder getAssetsOrBuilder(int index); + com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder getAssetsOrBuilder( + int index); } diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributes.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributes.java similarity index 67% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributes.java rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributes.java index 927a7ae58ebb..decfb72d84d7 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributes.java +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributes.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/assets.proto package com.google.cloud.asset.v1p7beta1; /** - * - * *
      * The relationship attributes which include  `type`, `source_resource_type`,
      * `target_resource_type` and `action`.
    @@ -28,16 +11,15 @@
      *
      * Protobuf type {@code google.cloud.asset.v1p7beta1.RelationshipAttributes}
      */
    -public final class RelationshipAttributes extends com.google.protobuf.GeneratedMessageV3
    -    implements
    +public final class RelationshipAttributes extends
    +    com.google.protobuf.GeneratedMessageV3 implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.RelationshipAttributes)
         RelationshipAttributesOrBuilder {
    -  private static final long serialVersionUID = 0L;
    +private static final long serialVersionUID = 0L;
       // Use RelationshipAttributes.newBuilder() to construct.
       private RelationshipAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -
       private RelationshipAttributes() {
         type_ = "";
         sourceResourceType_ = "";
    @@ -47,109 +29,38 @@ private RelationshipAttributes() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(
    +      UnusedPrivateParameter unused) {
         return new RelationshipAttributes();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet
    +  getUnknownFields() {
         return this.unknownFields;
       }
    -
    -  private RelationshipAttributes(
    -      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();
    -
    -              sourceResourceType_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              targetResourceType_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              action_ = s;
    -              break;
    -            }
    -          case 34:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              type_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
    -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.cloud.asset.v1p7beta1.AssetProto
    -        .internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor;
    +  public static final com.google.protobuf.Descriptors.Descriptor
    +      getDescriptor() {
    +    return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1p7beta1.AssetProto
    -        .internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_fieldAccessorTable
    +    return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1p7beta1.RelationshipAttributes.class,
    -            com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder.class);
    +            com.google.cloud.asset.v1p7beta1.RelationshipAttributes.class, com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder.class);
       }
     
       public static final int TYPE_FIELD_NUMBER = 4;
       private volatile java.lang.Object type_;
       /**
    -   *
    -   *
        * 
        * The unique identifier of the relationship type. Example:
        * `INSTANCE_TO_INSTANCEGROUP`
        * 
    * * string type = 4; - * * @return The type. */ @java.lang.Override @@ -158,30 +69,30 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** - * - * *
        * The unique identifier of the relationship type. Example:
        * `INSTANCE_TO_INSTANCEGROUP`
        * 
    * * string type = 4; - * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -192,14 +103,11 @@ public com.google.protobuf.ByteString getTypeBytes() { public static final int SOURCE_RESOURCE_TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object sourceResourceType_; /** - * - * *
        * The source asset type. Example: `compute.googleapis.com/Instance`
        * 
    * * string source_resource_type = 1; - * * @return The sourceResourceType. */ @java.lang.Override @@ -208,29 +116,29 @@ public java.lang.String getSourceResourceType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceResourceType_ = s; return s; } } /** - * - * *
        * The source asset type. Example: `compute.googleapis.com/Instance`
        * 
    * * string source_resource_type = 1; - * * @return The bytes for sourceResourceType. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceResourceTypeBytes() { + public com.google.protobuf.ByteString + getSourceResourceTypeBytes() { java.lang.Object ref = sourceResourceType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceResourceType_ = b; return b; } else { @@ -241,14 +149,11 @@ public com.google.protobuf.ByteString getSourceResourceTypeBytes() { public static final int TARGET_RESOURCE_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object targetResourceType_; /** - * - * *
        * The target asset type. Example: `compute.googleapis.com/Disk`
        * 
    * * string target_resource_type = 2; - * * @return The targetResourceType. */ @java.lang.Override @@ -257,29 +162,29 @@ public java.lang.String getTargetResourceType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetResourceType_ = s; return s; } } /** - * - * *
        * The target asset type. Example: `compute.googleapis.com/Disk`
        * 
    * * string target_resource_type = 2; - * * @return The bytes for targetResourceType. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetResourceTypeBytes() { + public com.google.protobuf.ByteString + getTargetResourceTypeBytes() { java.lang.Object ref = targetResourceType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetResourceType_ = b; return b; } else { @@ -290,14 +195,11 @@ public com.google.protobuf.ByteString getTargetResourceTypeBytes() { public static final int ACTION_FIELD_NUMBER = 3; private volatile java.lang.Object action_; /** - * - * *
        * The detail of the relationship, e.g. `contains`, `attaches`
        * 
    * * string action = 3; - * * @return The action. */ @java.lang.Override @@ -306,29 +208,29 @@ public java.lang.String getAction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); action_ = s; return s; } } /** - * - * *
        * The detail of the relationship, e.g. `contains`, `attaches`
        * 
    * * string action = 3; - * * @return The bytes for action. */ @java.lang.Override - public com.google.protobuf.ByteString getActionBytes() { + public com.google.protobuf.ByteString + getActionBytes() { java.lang.Object ref = action_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); action_ = b; return b; } else { @@ -337,7 +239,6 @@ public com.google.protobuf.ByteString getActionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -349,7 +250,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceResourceType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceResourceType_); } @@ -362,7 +264,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, type_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -383,7 +285,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -391,19 +293,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p7beta1.RelationshipAttributes)) { return super.equals(obj); } - com.google.cloud.asset.v1p7beta1.RelationshipAttributes other = - (com.google.cloud.asset.v1p7beta1.RelationshipAttributes) obj; - - if (!getType().equals(other.getType())) return false; - if (!getSourceResourceType().equals(other.getSourceResourceType())) return false; - if (!getTargetResourceType().equals(other.getTargetResourceType())) return false; - if (!getAction().equals(other.getAction())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + com.google.cloud.asset.v1p7beta1.RelationshipAttributes other = (com.google.cloud.asset.v1p7beta1.RelationshipAttributes) obj; + + if (!getType() + .equals(other.getType())) return false; + if (!getSourceResourceType() + .equals(other.getSourceResourceType())) return false; + if (!getTargetResourceType() + .equals(other.getTargetResourceType())) return false; + if (!getAction() + .equals(other.getAction())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -422,110 +327,102 @@ public int hashCode() { hash = (53 * hash) + getTargetResourceType().hashCode(); hash = (37 * hash) + ACTION_FIELD_NUMBER; hash = (53 * hash) + getAction().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes 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.asset.v1p7beta1.RelationshipAttributes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.asset.v1p7beta1.RelationshipAttributes prototype) { + public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.RelationshipAttributes prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * The relationship attributes which include  `type`, `source_resource_type`,
        * `target_resource_type` and `action`.
    @@ -533,39 +430,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        * Protobuf type {@code google.cloud.asset.v1p7beta1.RelationshipAttributes}
        */
    -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    -      implements
    +  public static final class Builder extends
    +      com.google.protobuf.GeneratedMessageV3.Builder implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.RelationshipAttributes)
           com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.cloud.asset.v1p7beta1.AssetProto
    -          .internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor
    +        getDescriptor() {
    +      return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1p7beta1.AssetProto
    -          .internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_fieldAccessorTable
    +      return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1p7beta1.RelationshipAttributes.class,
    -              com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder.class);
    +              com.google.cloud.asset.v1p7beta1.RelationshipAttributes.class, com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1p7beta1.RelationshipAttributes.newBuilder()
         private Builder() {
    -      maybeForceBuilderInitialization();
    +
         }
     
    -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    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();
    @@ -581,9 +472,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.cloud.asset.v1p7beta1.AssetProto
    -          .internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor
    +        getDescriptorForType() {
    +      return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor;
         }
     
         @java.lang.Override
    @@ -602,8 +493,7 @@ public com.google.cloud.asset.v1p7beta1.RelationshipAttributes build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1p7beta1.RelationshipAttributes buildPartial() {
    -      com.google.cloud.asset.v1p7beta1.RelationshipAttributes result =
    -          new com.google.cloud.asset.v1p7beta1.RelationshipAttributes(this);
    +      com.google.cloud.asset.v1p7beta1.RelationshipAttributes result = new com.google.cloud.asset.v1p7beta1.RelationshipAttributes(this);
           result.type_ = type_;
           result.sourceResourceType_ = sourceResourceType_;
           result.targetResourceType_ = targetResourceType_;
    @@ -616,39 +506,38 @@ public com.google.cloud.asset.v1p7beta1.RelationshipAttributes buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    -
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1p7beta1.RelationshipAttributes) {
    -        return mergeFrom((com.google.cloud.asset.v1p7beta1.RelationshipAttributes) other);
    +        return mergeFrom((com.google.cloud.asset.v1p7beta1.RelationshipAttributes)other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -656,8 +545,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
         }
     
         public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.RelationshipAttributes other) {
    -      if (other == com.google.cloud.asset.v1p7beta1.RelationshipAttributes.getDefaultInstance())
    -        return this;
    +      if (other == com.google.cloud.asset.v1p7beta1.RelationshipAttributes.getDefaultInstance()) return this;
           if (!other.getType().isEmpty()) {
             type_ = other.type_;
             onChanged();
    @@ -674,7 +562,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.RelationshipAttributes
             action_ = other.action_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -689,38 +577,68 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.cloud.asset.v1p7beta1.RelationshipAttributes parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10: {
    +              sourceResourceType_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 10
    +            case 18: {
    +              targetResourceType_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 18
    +            case 26: {
    +              action_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 26
    +            case 34: {
    +              type_ = input.readStringRequireUtf8();
    +
    +              break;
    +            } // case 34
    +            default: {
    +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                done = true; // was an endgroup tag
    +              }
    +              break;
    +            } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.cloud.asset.v1p7beta1.RelationshipAttributes) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
         private java.lang.Object type_ = "";
         /**
    -     *
    -     *
          * 
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string type = 4; - * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -729,22 +647,21 @@ public java.lang.String getType() { } } /** - * - * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string type = 4; - * * @return The bytes for type. */ - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -752,64 +669,57 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string type = 4; - * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(java.lang.String value) { + public Builder setType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** - * - * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string type = 4; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** - * - * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string type = 4; - * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes(com.google.protobuf.ByteString value) { + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; @@ -817,20 +727,18 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceResourceType_ = ""; /** - * - * *
          * The source asset type. Example: `compute.googleapis.com/Instance`
          * 
    * * string source_resource_type = 1; - * * @return The sourceResourceType. */ public java.lang.String getSourceResourceType() { java.lang.Object ref = sourceResourceType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceResourceType_ = s; return s; @@ -839,21 +747,20 @@ public java.lang.String getSourceResourceType() { } } /** - * - * *
          * The source asset type. Example: `compute.googleapis.com/Instance`
          * 
    * * string source_resource_type = 1; - * * @return The bytes for sourceResourceType. */ - public com.google.protobuf.ByteString getSourceResourceTypeBytes() { + public com.google.protobuf.ByteString + getSourceResourceTypeBytes() { java.lang.Object ref = sourceResourceType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceResourceType_ = b; return b; } else { @@ -861,61 +768,54 @@ public com.google.protobuf.ByteString getSourceResourceTypeBytes() { } } /** - * - * *
          * The source asset type. Example: `compute.googleapis.com/Instance`
          * 
    * * string source_resource_type = 1; - * * @param value The sourceResourceType to set. * @return This builder for chaining. */ - public Builder setSourceResourceType(java.lang.String value) { + public Builder setSourceResourceType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceResourceType_ = value; onChanged(); return this; } /** - * - * *
          * The source asset type. Example: `compute.googleapis.com/Instance`
          * 
    * * string source_resource_type = 1; - * * @return This builder for chaining. */ public Builder clearSourceResourceType() { - + sourceResourceType_ = getDefaultInstance().getSourceResourceType(); onChanged(); return this; } /** - * - * *
          * The source asset type. Example: `compute.googleapis.com/Instance`
          * 
    * * string source_resource_type = 1; - * * @param value The bytes for sourceResourceType to set. * @return This builder for chaining. */ - public Builder setSourceResourceTypeBytes(com.google.protobuf.ByteString value) { + public Builder setSourceResourceTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceResourceType_ = value; onChanged(); return this; @@ -923,20 +823,18 @@ public Builder setSourceResourceTypeBytes(com.google.protobuf.ByteString value) private java.lang.Object targetResourceType_ = ""; /** - * - * *
          * The target asset type. Example: `compute.googleapis.com/Disk`
          * 
    * * string target_resource_type = 2; - * * @return The targetResourceType. */ public java.lang.String getTargetResourceType() { java.lang.Object ref = targetResourceType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetResourceType_ = s; return s; @@ -945,21 +843,20 @@ public java.lang.String getTargetResourceType() { } } /** - * - * *
          * The target asset type. Example: `compute.googleapis.com/Disk`
          * 
    * * string target_resource_type = 2; - * * @return The bytes for targetResourceType. */ - public com.google.protobuf.ByteString getTargetResourceTypeBytes() { + public com.google.protobuf.ByteString + getTargetResourceTypeBytes() { java.lang.Object ref = targetResourceType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetResourceType_ = b; return b; } else { @@ -967,61 +864,54 @@ public com.google.protobuf.ByteString getTargetResourceTypeBytes() { } } /** - * - * *
          * The target asset type. Example: `compute.googleapis.com/Disk`
          * 
    * * string target_resource_type = 2; - * * @param value The targetResourceType to set. * @return This builder for chaining. */ - public Builder setTargetResourceType(java.lang.String value) { + public Builder setTargetResourceType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetResourceType_ = value; onChanged(); return this; } /** - * - * *
          * The target asset type. Example: `compute.googleapis.com/Disk`
          * 
    * * string target_resource_type = 2; - * * @return This builder for chaining. */ public Builder clearTargetResourceType() { - + targetResourceType_ = getDefaultInstance().getTargetResourceType(); onChanged(); return this; } /** - * - * *
          * The target asset type. Example: `compute.googleapis.com/Disk`
          * 
    * * string target_resource_type = 2; - * * @param value The bytes for targetResourceType to set. * @return This builder for chaining. */ - public Builder setTargetResourceTypeBytes(com.google.protobuf.ByteString value) { + public Builder setTargetResourceTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetResourceType_ = value; onChanged(); return this; @@ -1029,20 +919,18 @@ public Builder setTargetResourceTypeBytes(com.google.protobuf.ByteString value) private java.lang.Object action_ = ""; /** - * - * *
          * The detail of the relationship, e.g. `contains`, `attaches`
          * 
    * * string action = 3; - * * @return The action. */ public java.lang.String getAction() { java.lang.Object ref = action_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); action_ = s; return s; @@ -1051,21 +939,20 @@ public java.lang.String getAction() { } } /** - * - * *
          * The detail of the relationship, e.g. `contains`, `attaches`
          * 
    * * string action = 3; - * * @return The bytes for action. */ - public com.google.protobuf.ByteString getActionBytes() { + public com.google.protobuf.ByteString + getActionBytes() { java.lang.Object ref = action_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); action_ = b; return b; } else { @@ -1073,68 +960,61 @@ public com.google.protobuf.ByteString getActionBytes() { } } /** - * - * *
          * The detail of the relationship, e.g. `contains`, `attaches`
          * 
    * * string action = 3; - * * @param value The action to set. * @return This builder for chaining. */ - public Builder setAction(java.lang.String value) { + public Builder setAction( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + action_ = value; onChanged(); return this; } /** - * - * *
          * The detail of the relationship, e.g. `contains`, `attaches`
          * 
    * * string action = 3; - * * @return This builder for chaining. */ public Builder clearAction() { - + action_ = getDefaultInstance().getAction(); onChanged(); return this; } /** - * - * *
          * The detail of the relationship, e.g. `contains`, `attaches`
          * 
    * * string action = 3; - * * @param value The bytes for action to set. * @return This builder for chaining. */ - public Builder setActionBytes(com.google.protobuf.ByteString value) { + public Builder setActionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + action_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1144,12 +1024,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.RelationshipAttributes) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.RelationshipAttributes) private static final com.google.cloud.asset.v1p7beta1.RelationshipAttributes DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.RelationshipAttributes(); } @@ -1158,16 +1038,27 @@ public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RelationshipAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RelationshipAttributes(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelationshipAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1182,4 +1073,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p7beta1.RelationshipAttributes getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributesOrBuilder.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributesOrBuilder.java similarity index 66% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributesOrBuilder.java rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributesOrBuilder.java index 8df443f22816..1f2a45eb68e5 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributesOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributesOrBuilder.java @@ -1,127 +1,91 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/assets.proto package com.google.cloud.asset.v1p7beta1; -public interface RelationshipAttributesOrBuilder - extends +public interface RelationshipAttributesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.RelationshipAttributes) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The unique identifier of the relationship type. Example:
        * `INSTANCE_TO_INSTANCEGROUP`
        * 
    * * string type = 4; - * * @return The type. */ java.lang.String getType(); /** - * - * *
        * The unique identifier of the relationship type. Example:
        * `INSTANCE_TO_INSTANCEGROUP`
        * 
    * * string type = 4; - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); /** - * - * *
        * The source asset type. Example: `compute.googleapis.com/Instance`
        * 
    * * string source_resource_type = 1; - * * @return The sourceResourceType. */ java.lang.String getSourceResourceType(); /** - * - * *
        * The source asset type. Example: `compute.googleapis.com/Instance`
        * 
    * * string source_resource_type = 1; - * * @return The bytes for sourceResourceType. */ - com.google.protobuf.ByteString getSourceResourceTypeBytes(); + com.google.protobuf.ByteString + getSourceResourceTypeBytes(); /** - * - * *
        * The target asset type. Example: `compute.googleapis.com/Disk`
        * 
    * * string target_resource_type = 2; - * * @return The targetResourceType. */ java.lang.String getTargetResourceType(); /** - * - * *
        * The target asset type. Example: `compute.googleapis.com/Disk`
        * 
    * * string target_resource_type = 2; - * * @return The bytes for targetResourceType. */ - com.google.protobuf.ByteString getTargetResourceTypeBytes(); + com.google.protobuf.ByteString + getTargetResourceTypeBytes(); /** - * - * *
        * The detail of the relationship, e.g. `contains`, `attaches`
        * 
    * * string action = 3; - * * @return The action. */ java.lang.String getAction(); /** - * - * *
        * The detail of the relationship, e.g. `contains`, `attaches`
        * 
    * * string action = 3; - * * @return The bytes for action. */ - com.google.protobuf.ByteString getActionBytes(); + com.google.protobuf.ByteString + getActionBytes(); } diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Resource.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Resource.java similarity index 74% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Resource.java rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Resource.java index c4bc5825f452..a4431102a272 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Resource.java +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Resource.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/assets.proto package com.google.cloud.asset.v1p7beta1; /** - * - * *
      * A representation of a Google Cloud resource.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.Resource} */ -public final class Resource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Resource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.Resource) ResourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Resource.newBuilder() to construct. private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Resource() { version_ = ""; discoveryDocumentUri_ = ""; @@ -48,136 +30,37 @@ private Resource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Resource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + 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(); - - version_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - discoveryDocumentUri_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - discoveryName_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - resourceUrl_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 50: - { - com.google.protobuf.Struct.Builder subBuilder = null; - if (data_ != null) { - subBuilder = data_.toBuilder(); - } - data_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(data_); - data_ = subBuilder.buildPartial(); - } - - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - location_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetProto - .internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetProto - .internal_static_google_cloud_asset_v1p7beta1_Resource_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.Resource.class, - com.google.cloud.asset.v1p7beta1.Resource.Builder.class); + com.google.cloud.asset.v1p7beta1.Resource.class, com.google.cloud.asset.v1p7beta1.Resource.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** - * - * *
        * The API version. Example: `v1`
        * 
    * * string version = 1; - * * @return The version. */ @java.lang.Override @@ -186,29 +69,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
        * The API version. Example: `v1`
        * 
    * * string version = 1; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -219,8 +102,6 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int DISCOVERY_DOCUMENT_URI_FIELD_NUMBER = 2; private volatile java.lang.Object discoveryDocumentUri_; /** - * - * *
        * The URL of the discovery document containing the resource's JSON schema.
        * Example:
    @@ -230,7 +111,6 @@ public com.google.protobuf.ByteString getVersionBytes() {
        * 
    * * string discovery_document_uri = 2; - * * @return The discoveryDocumentUri. */ @java.lang.Override @@ -239,15 +119,14 @@ public java.lang.String getDiscoveryDocumentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryDocumentUri_ = s; return s; } } /** - * - * *
        * The URL of the discovery document containing the resource's JSON schema.
        * Example:
    @@ -257,15 +136,16 @@ public java.lang.String getDiscoveryDocumentUri() {
        * 
    * * string discovery_document_uri = 2; - * * @return The bytes for discoveryDocumentUri. */ @java.lang.Override - public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { + public com.google.protobuf.ByteString + getDiscoveryDocumentUriBytes() { java.lang.Object ref = discoveryDocumentUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); discoveryDocumentUri_ = b; return b; } else { @@ -276,8 +156,6 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { public static final int DISCOVERY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object discoveryName_; /** - * - * *
        * The JSON schema name listed in the discovery document. Example:
        * `Project`
    @@ -286,7 +164,6 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() {
        * 
    * * string discovery_name = 3; - * * @return The discoveryName. */ @java.lang.Override @@ -295,15 +172,14 @@ public java.lang.String getDiscoveryName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryName_ = s; return s; } } /** - * - * *
        * The JSON schema name listed in the discovery document. Example:
        * `Project`
    @@ -312,15 +188,16 @@ public java.lang.String getDiscoveryName() {
        * 
    * * string discovery_name = 3; - * * @return The bytes for discoveryName. */ @java.lang.Override - public com.google.protobuf.ByteString getDiscoveryNameBytes() { + public com.google.protobuf.ByteString + getDiscoveryNameBytes() { java.lang.Object ref = discoveryName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); discoveryName_ = b; return b; } else { @@ -331,8 +208,6 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() { public static final int RESOURCE_URL_FIELD_NUMBER = 4; private volatile java.lang.Object resourceUrl_; /** - * - * *
        * The REST URL for accessing the resource. An HTTP `GET` request using this
        * URL returns the resource itself. Example:
    @@ -341,7 +216,6 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() {
        * 
    * * string resource_url = 4; - * * @return The resourceUrl. */ @java.lang.Override @@ -350,15 +224,14 @@ public java.lang.String getResourceUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; } } /** - * - * *
        * The REST URL for accessing the resource. An HTTP `GET` request using this
        * URL returns the resource itself. Example:
    @@ -367,15 +240,16 @@ public java.lang.String getResourceUrl() {
        * 
    * * string resource_url = 4; - * * @return The bytes for resourceUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceUrlBytes() { + public com.google.protobuf.ByteString + getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -386,8 +260,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { public static final int PARENT_FIELD_NUMBER = 5; private volatile java.lang.Object parent_; /** - * - * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -402,7 +274,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() {
        * 
    * * string parent = 5; - * * @return The parent. */ @java.lang.Override @@ -411,15 +282,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -434,15 +304,16 @@ public java.lang.String getParent() {
        * 
    * * string parent = 5; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -453,15 +324,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int DATA_FIELD_NUMBER = 6; private com.google.protobuf.Struct data_; /** - * - * *
        * The content of the resource, in which some sensitive fields are removed
        * and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; - * * @return Whether the data field is set. */ @java.lang.Override @@ -469,15 +337,12 @@ public boolean hasData() { return data_ != null; } /** - * - * *
        * The content of the resource, in which some sensitive fields are removed
        * and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; - * * @return The data. */ @java.lang.Override @@ -485,8 +350,6 @@ public com.google.protobuf.Struct getData() { return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_; } /** - * - * *
        * The content of the resource, in which some sensitive fields are removed
        * and may not be present.
    @@ -502,15 +365,12 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
       public static final int LOCATION_FIELD_NUMBER = 8;
       private volatile java.lang.Object location_;
       /**
    -   *
    -   *
        * 
        * The location of the resource in Google Cloud, such as its zone and region.
        * For more information, see https://cloud.google.com/about/locations/.
        * 
    * * string location = 8; - * * @return The location. */ @java.lang.Override @@ -519,30 +379,30 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** - * - * *
        * The location of the resource in Google Cloud, such as its zone and region.
        * For more information, see https://cloud.google.com/about/locations/.
        * 
    * * string location = 8; - * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -551,7 +411,6 @@ public com.google.protobuf.ByteString getLocationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -563,7 +422,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } @@ -585,7 +445,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, location_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -610,12 +470,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_); } if (data_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getData()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getData()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, location_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -623,25 +484,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p7beta1.Resource)) { return super.equals(obj); } - com.google.cloud.asset.v1p7beta1.Resource other = - (com.google.cloud.asset.v1p7beta1.Resource) obj; - - if (!getVersion().equals(other.getVersion())) return false; - if (!getDiscoveryDocumentUri().equals(other.getDiscoveryDocumentUri())) return false; - if (!getDiscoveryName().equals(other.getDiscoveryName())) return false; - if (!getResourceUrl().equals(other.getResourceUrl())) return false; - if (!getParent().equals(other.getParent())) return false; + com.google.cloud.asset.v1p7beta1.Resource other = (com.google.cloud.asset.v1p7beta1.Resource) obj; + + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getDiscoveryDocumentUri() + .equals(other.getDiscoveryDocumentUri())) return false; + if (!getDiscoveryName() + .equals(other.getDiscoveryName())) return false; + if (!getResourceUrl() + .equals(other.getResourceUrl())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasData() != other.hasData()) return false; if (hasData()) { - if (!getData().equals(other.getData())) return false; + if (!getData() + .equals(other.getData())) return false; } - if (!getLocation().equals(other.getLocation())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getLocation() + .equals(other.getLocation())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -668,148 +535,135 @@ public int hashCode() { } hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1p7beta1.Resource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p7beta1.Resource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.Resource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.Resource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.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.asset.v1p7beta1.Resource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1p7beta1.Resource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.Resource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.Resource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.asset.v1p7beta1.Resource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.asset.v1p7beta1.Resource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.Resource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.Resource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p7beta1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.Resource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
        * A representation of a Google Cloud resource.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.Resource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.Resource) com.google.cloud.asset.v1p7beta1.ResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetProto - .internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetProto - .internal_static_google_cloud_asset_v1p7beta1_Resource_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.Resource.class, - com.google.cloud.asset.v1p7beta1.Resource.Builder.class); + com.google.cloud.asset.v1p7beta1.Resource.class, com.google.cloud.asset.v1p7beta1.Resource.Builder.class); } // Construct using com.google.cloud.asset.v1p7beta1.Resource.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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(); @@ -835,9 +689,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.asset.v1p7beta1.AssetProto - .internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor; } @java.lang.Override @@ -856,8 +710,7 @@ public com.google.cloud.asset.v1p7beta1.Resource build() { @java.lang.Override public com.google.cloud.asset.v1p7beta1.Resource buildPartial() { - com.google.cloud.asset.v1p7beta1.Resource result = - new com.google.cloud.asset.v1p7beta1.Resource(this); + com.google.cloud.asset.v1p7beta1.Resource result = new com.google.cloud.asset.v1p7beta1.Resource(this); result.version_ = version_; result.discoveryDocumentUri_ = discoveryDocumentUri_; result.discoveryName_ = discoveryName_; @@ -877,39 +730,38 @@ public com.google.cloud.asset.v1p7beta1.Resource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p7beta1.Resource) { - return mergeFrom((com.google.cloud.asset.v1p7beta1.Resource) other); + return mergeFrom((com.google.cloud.asset.v1p7beta1.Resource)other); } else { super.mergeFrom(other); return this; @@ -945,7 +797,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.Resource other) { location_ = other.location_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -960,36 +812,84 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.asset.v1p7beta1.Resource parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + version_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + discoveryDocumentUri_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + discoveryName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + resourceUrl_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + input.readMessage( + getDataFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 50 + case 66: { + location_ = input.readStringRequireUtf8(); + + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.asset.v1p7beta1.Resource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object version_ = ""; /** - * - * *
          * The API version. Example: `v1`
          * 
    * * string version = 1; - * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -998,21 +898,20 @@ public java.lang.String getVersion() { } } /** - * - * *
          * The API version. Example: `v1`
          * 
    * * string version = 1; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -1020,61 +919,54 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
          * The API version. Example: `v1`
          * 
    * * string version = 1; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
          * The API version. Example: `v1`
          * 
    * * string version = 1; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
          * The API version. Example: `v1`
          * 
    * * string version = 1; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -1082,8 +974,6 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { private java.lang.Object discoveryDocumentUri_ = ""; /** - * - * *
          * The URL of the discovery document containing the resource's JSON schema.
          * Example:
    @@ -1093,13 +983,13 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) {
          * 
    * * string discovery_document_uri = 2; - * * @return The discoveryDocumentUri. */ public java.lang.String getDiscoveryDocumentUri() { java.lang.Object ref = discoveryDocumentUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryDocumentUri_ = s; return s; @@ -1108,8 +998,6 @@ public java.lang.String getDiscoveryDocumentUri() { } } /** - * - * *
          * The URL of the discovery document containing the resource's JSON schema.
          * Example:
    @@ -1119,14 +1007,15 @@ public java.lang.String getDiscoveryDocumentUri() {
          * 
    * * string discovery_document_uri = 2; - * * @return The bytes for discoveryDocumentUri. */ - public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { + public com.google.protobuf.ByteString + getDiscoveryDocumentUriBytes() { java.lang.Object ref = discoveryDocumentUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); discoveryDocumentUri_ = b; return b; } else { @@ -1134,8 +1023,6 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { } } /** - * - * *
          * The URL of the discovery document containing the resource's JSON schema.
          * Example:
    @@ -1145,22 +1032,20 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() {
          * 
    * * string discovery_document_uri = 2; - * * @param value The discoveryDocumentUri to set. * @return This builder for chaining. */ - public Builder setDiscoveryDocumentUri(java.lang.String value) { + public Builder setDiscoveryDocumentUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + discoveryDocumentUri_ = value; onChanged(); return this; } /** - * - * *
          * The URL of the discovery document containing the resource's JSON schema.
          * Example:
    @@ -1170,18 +1055,15 @@ public Builder setDiscoveryDocumentUri(java.lang.String value) {
          * 
    * * string discovery_document_uri = 2; - * * @return This builder for chaining. */ public Builder clearDiscoveryDocumentUri() { - + discoveryDocumentUri_ = getDefaultInstance().getDiscoveryDocumentUri(); onChanged(); return this; } /** - * - * *
          * The URL of the discovery document containing the resource's JSON schema.
          * Example:
    @@ -1191,16 +1073,16 @@ public Builder clearDiscoveryDocumentUri() {
          * 
    * * string discovery_document_uri = 2; - * * @param value The bytes for discoveryDocumentUri to set. * @return This builder for chaining. */ - public Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value) { + public Builder setDiscoveryDocumentUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + discoveryDocumentUri_ = value; onChanged(); return this; @@ -1208,8 +1090,6 @@ public Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value private java.lang.Object discoveryName_ = ""; /** - * - * *
          * The JSON schema name listed in the discovery document. Example:
          * `Project`
    @@ -1218,13 +1098,13 @@ public Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value
          * 
    * * string discovery_name = 3; - * * @return The discoveryName. */ public java.lang.String getDiscoveryName() { java.lang.Object ref = discoveryName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryName_ = s; return s; @@ -1233,8 +1113,6 @@ public java.lang.String getDiscoveryName() { } } /** - * - * *
          * The JSON schema name listed in the discovery document. Example:
          * `Project`
    @@ -1243,14 +1121,15 @@ public java.lang.String getDiscoveryName() {
          * 
    * * string discovery_name = 3; - * * @return The bytes for discoveryName. */ - public com.google.protobuf.ByteString getDiscoveryNameBytes() { + public com.google.protobuf.ByteString + getDiscoveryNameBytes() { java.lang.Object ref = discoveryName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); discoveryName_ = b; return b; } else { @@ -1258,8 +1137,6 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() { } } /** - * - * *
          * The JSON schema name listed in the discovery document. Example:
          * `Project`
    @@ -1268,22 +1145,20 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() {
          * 
    * * string discovery_name = 3; - * * @param value The discoveryName to set. * @return This builder for chaining. */ - public Builder setDiscoveryName(java.lang.String value) { + public Builder setDiscoveryName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + discoveryName_ = value; onChanged(); return this; } /** - * - * *
          * The JSON schema name listed in the discovery document. Example:
          * `Project`
    @@ -1292,18 +1167,15 @@ public Builder setDiscoveryName(java.lang.String value) {
          * 
    * * string discovery_name = 3; - * * @return This builder for chaining. */ public Builder clearDiscoveryName() { - + discoveryName_ = getDefaultInstance().getDiscoveryName(); onChanged(); return this; } /** - * - * *
          * The JSON schema name listed in the discovery document. Example:
          * `Project`
    @@ -1312,16 +1184,16 @@ public Builder clearDiscoveryName() {
          * 
    * * string discovery_name = 3; - * * @param value The bytes for discoveryName to set. * @return This builder for chaining. */ - public Builder setDiscoveryNameBytes(com.google.protobuf.ByteString value) { + public Builder setDiscoveryNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + discoveryName_ = value; onChanged(); return this; @@ -1329,8 +1201,6 @@ public Builder setDiscoveryNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceUrl_ = ""; /** - * - * *
          * The REST URL for accessing the resource. An HTTP `GET` request using this
          * URL returns the resource itself. Example:
    @@ -1339,13 +1209,13 @@ public Builder setDiscoveryNameBytes(com.google.protobuf.ByteString value) {
          * 
    * * string resource_url = 4; - * * @return The resourceUrl. */ public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; @@ -1354,8 +1224,6 @@ public java.lang.String getResourceUrl() { } } /** - * - * *
          * The REST URL for accessing the resource. An HTTP `GET` request using this
          * URL returns the resource itself. Example:
    @@ -1364,14 +1232,15 @@ public java.lang.String getResourceUrl() {
          * 
    * * string resource_url = 4; - * * @return The bytes for resourceUrl. */ - public com.google.protobuf.ByteString getResourceUrlBytes() { + public com.google.protobuf.ByteString + getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -1379,8 +1248,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { } } /** - * - * *
          * The REST URL for accessing the resource. An HTTP `GET` request using this
          * URL returns the resource itself. Example:
    @@ -1389,22 +1256,20 @@ public com.google.protobuf.ByteString getResourceUrlBytes() {
          * 
    * * string resource_url = 4; - * * @param value The resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrl(java.lang.String value) { + public Builder setResourceUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceUrl_ = value; onChanged(); return this; } /** - * - * *
          * The REST URL for accessing the resource. An HTTP `GET` request using this
          * URL returns the resource itself. Example:
    @@ -1413,18 +1278,15 @@ public Builder setResourceUrl(java.lang.String value) {
          * 
    * * string resource_url = 4; - * * @return This builder for chaining. */ public Builder clearResourceUrl() { - + resourceUrl_ = getDefaultInstance().getResourceUrl(); onChanged(); return this; } /** - * - * *
          * The REST URL for accessing the resource. An HTTP `GET` request using this
          * URL returns the resource itself. Example:
    @@ -1433,16 +1295,16 @@ public Builder clearResourceUrl() {
          * 
    * * string resource_url = 4; - * * @param value The bytes for resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { + public Builder setResourceUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceUrl_ = value; onChanged(); return this; @@ -1450,8 +1312,6 @@ public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object parent_ = ""; /** - * - * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1466,13 +1326,13 @@ public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) {
          * 
    * * string parent = 5; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1481,8 +1341,6 @@ public java.lang.String getParent() { } } /** - * - * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1497,14 +1355,15 @@ public java.lang.String getParent() {
          * 
    * * string parent = 5; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1512,8 +1371,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1528,22 +1385,20 @@ public com.google.protobuf.ByteString getParentBytes() {
          * 
    * * string parent = 5; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1558,18 +1413,15 @@ public Builder setParent(java.lang.String value) {
          * 
    * * string parent = 5; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1584,16 +1436,16 @@ public Builder clearParent() {
          * 
    * * string parent = 5; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1601,35 +1453,26 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Struct data_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - dataBuilder_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> dataBuilder_; /** - * - * *
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
          * 
    * * .google.protobuf.Struct data = 6; - * * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** - * - * *
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
          * 
    * * .google.protobuf.Struct data = 6; - * * @return The data. */ public com.google.protobuf.Struct getData() { @@ -1640,8 +1483,6 @@ public com.google.protobuf.Struct getData() { } } /** - * - * *
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1663,8 +1504,6 @@ public Builder setData(com.google.protobuf.Struct value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1672,7 +1511,8 @@ public Builder setData(com.google.protobuf.Struct value) {
          *
          * .google.protobuf.Struct data = 6;
          */
    -    public Builder setData(com.google.protobuf.Struct.Builder builderForValue) {
    +    public Builder setData(
    +        com.google.protobuf.Struct.Builder builderForValue) {
           if (dataBuilder_ == null) {
             data_ = builderForValue.build();
             onChanged();
    @@ -1683,8 +1523,6 @@ public Builder setData(com.google.protobuf.Struct.Builder builderForValue) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1695,7 +1533,8 @@ public Builder setData(com.google.protobuf.Struct.Builder builderForValue) {
         public Builder mergeData(com.google.protobuf.Struct value) {
           if (dataBuilder_ == null) {
             if (data_ != null) {
    -          data_ = com.google.protobuf.Struct.newBuilder(data_).mergeFrom(value).buildPartial();
    +          data_ =
    +            com.google.protobuf.Struct.newBuilder(data_).mergeFrom(value).buildPartial();
             } else {
               data_ = value;
             }
    @@ -1707,8 +1546,6 @@ public Builder mergeData(com.google.protobuf.Struct value) {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1728,8 +1565,6 @@ public Builder clearData() {
           return this;
         }
         /**
    -     *
    -     *
          * 
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1738,13 +1573,11 @@ public Builder clearData() {
          * .google.protobuf.Struct data = 6;
          */
         public com.google.protobuf.Struct.Builder getDataBuilder() {
    -
    +      
           onChanged();
           return getDataFieldBuilder().getBuilder();
         }
         /**
    -     *
    -     *
          * 
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1756,12 +1589,11 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
           if (dataBuilder_ != null) {
             return dataBuilder_.getMessageOrBuilder();
           } else {
    -        return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_;
    +        return data_ == null ?
    +            com.google.protobuf.Struct.getDefaultInstance() : data_;
           }
         }
         /**
    -     *
    -     *
          * 
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1770,16 +1602,14 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
          * .google.protobuf.Struct data = 6;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Struct,
    -            com.google.protobuf.Struct.Builder,
    -            com.google.protobuf.StructOrBuilder>
    +        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
             getDataFieldBuilder() {
           if (dataBuilder_ == null) {
    -        dataBuilder_ =
    -            new com.google.protobuf.SingleFieldBuilderV3<
    -                com.google.protobuf.Struct,
    -                com.google.protobuf.Struct.Builder,
    -                com.google.protobuf.StructOrBuilder>(getData(), getParentForChildren(), isClean());
    +        dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    +            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
    +                getData(),
    +                getParentForChildren(),
    +                isClean());
             data_ = null;
           }
           return dataBuilder_;
    @@ -1787,21 +1617,19 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
     
         private java.lang.Object location_ = "";
         /**
    -     *
    -     *
          * 
          * The location of the resource in Google Cloud, such as its zone and region.
          * For more information, see https://cloud.google.com/about/locations/.
          * 
    * * string location = 8; - * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -1810,22 +1638,21 @@ public java.lang.String getLocation() { } } /** - * - * *
          * The location of the resource in Google Cloud, such as its zone and region.
          * For more information, see https://cloud.google.com/about/locations/.
          * 
    * * string location = 8; - * * @return The bytes for location. */ - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -1833,71 +1660,64 @@ public com.google.protobuf.ByteString getLocationBytes() { } } /** - * - * *
          * The location of the resource in Google Cloud, such as its zone and region.
          * For more information, see https://cloud.google.com/about/locations/.
          * 
    * * string location = 8; - * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation(java.lang.String value) { + public Builder setLocation( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** - * - * *
          * The location of the resource in Google Cloud, such as its zone and region.
          * For more information, see https://cloud.google.com/about/locations/.
          * 
    * * string location = 8; - * * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** - * - * *
          * The location of the resource in Google Cloud, such as its zone and region.
          * For more information, see https://cloud.google.com/about/locations/.
          * 
    * * string location = 8; - * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1907,12 +1727,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.Resource) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.Resource) private static final com.google.cloud.asset.v1p7beta1.Resource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.Resource(); } @@ -1921,16 +1741,27 @@ public static com.google.cloud.asset.v1p7beta1.Resource getDefaultInstance() { return DEFAULT_INSTANCE; } - 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); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1945,4 +1776,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p7beta1.Resource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ResourceOrBuilder.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ResourceOrBuilder.java similarity index 82% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ResourceOrBuilder.java rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ResourceOrBuilder.java index d6250c22f274..18800a75a5f3 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ResourceOrBuilder.java +++ b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ResourceOrBuilder.java @@ -1,56 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/assets.proto package com.google.cloud.asset.v1p7beta1; -public interface ResourceOrBuilder - extends +public interface ResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.Resource) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The API version. Example: `v1`
        * 
    * * string version = 1; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
        * The API version. Example: `v1`
        * 
    * * string version = 1; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
        * The URL of the discovery document containing the resource's JSON schema.
        * Example:
    @@ -60,13 +37,10 @@ public interface ResourceOrBuilder
        * 
    * * string discovery_document_uri = 2; - * * @return The discoveryDocumentUri. */ java.lang.String getDiscoveryDocumentUri(); /** - * - * *
        * The URL of the discovery document containing the resource's JSON schema.
        * Example:
    @@ -76,14 +50,12 @@ public interface ResourceOrBuilder
        * 
    * * string discovery_document_uri = 2; - * * @return The bytes for discoveryDocumentUri. */ - com.google.protobuf.ByteString getDiscoveryDocumentUriBytes(); + com.google.protobuf.ByteString + getDiscoveryDocumentUriBytes(); /** - * - * *
        * The JSON schema name listed in the discovery document. Example:
        * `Project`
    @@ -92,13 +64,10 @@ public interface ResourceOrBuilder
        * 
    * * string discovery_name = 3; - * * @return The discoveryName. */ java.lang.String getDiscoveryName(); /** - * - * *
        * The JSON schema name listed in the discovery document. Example:
        * `Project`
    @@ -107,14 +76,12 @@ public interface ResourceOrBuilder
        * 
    * * string discovery_name = 3; - * * @return The bytes for discoveryName. */ - com.google.protobuf.ByteString getDiscoveryNameBytes(); + com.google.protobuf.ByteString + getDiscoveryNameBytes(); /** - * - * *
        * The REST URL for accessing the resource. An HTTP `GET` request using this
        * URL returns the resource itself. Example:
    @@ -123,13 +90,10 @@ public interface ResourceOrBuilder
        * 
    * * string resource_url = 4; - * * @return The resourceUrl. */ java.lang.String getResourceUrl(); /** - * - * *
        * The REST URL for accessing the resource. An HTTP `GET` request using this
        * URL returns the resource itself. Example:
    @@ -138,14 +102,12 @@ public interface ResourceOrBuilder
        * 
    * * string resource_url = 4; - * * @return The bytes for resourceUrl. */ - com.google.protobuf.ByteString getResourceUrlBytes(); + com.google.protobuf.ByteString + getResourceUrlBytes(); /** - * - * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -160,13 +122,10 @@ public interface ResourceOrBuilder
        * 
    * * string parent = 5; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -181,40 +140,32 @@ public interface ResourceOrBuilder
        * 
    * * string parent = 5; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
        * The content of the resource, in which some sensitive fields are removed
        * and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; - * * @return Whether the data field is set. */ boolean hasData(); /** - * - * *
        * The content of the resource, in which some sensitive fields are removed
        * and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; - * * @return The data. */ com.google.protobuf.Struct getData(); /** - * - * *
        * The content of the resource, in which some sensitive fields are removed
        * and may not be present.
    @@ -225,29 +176,24 @@ public interface ResourceOrBuilder
       com.google.protobuf.StructOrBuilder getDataOrBuilder();
     
       /**
    -   *
    -   *
        * 
        * The location of the resource in Google Cloud, such as its zone and region.
        * For more information, see https://cloud.google.com/about/locations/.
        * 
    * * string location = 8; - * * @return The location. */ java.lang.String getLocation(); /** - * - * *
        * The location of the resource in Google Cloud, such as its zone and region.
        * For more information, see https://cloud.google.com/about/locations/.
        * 
    * * string location = 8; - * * @return The bytes for location. */ - com.google.protobuf.ByteString getLocationBytes(); + com.google.protobuf.ByteString + getLocationBytes(); } diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/proto/google/cloud/asset/v1p7beta1/asset_service.proto b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/proto/google/cloud/asset/v1p7beta1/asset_service.proto similarity index 100% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/proto/google/cloud/asset/v1p7beta1/asset_service.proto rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/proto/google/cloud/asset/v1p7beta1/asset_service.proto diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/proto/google/cloud/asset/v1p7beta1/assets.proto b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/proto/google/cloud/asset/v1p7beta1/assets.proto similarity index 100% rename from java-asset/proto-google-cloud-asset-v1p7beta1/src/main/proto/google/cloud/asset/v1p7beta1/assets.proto rename to owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/proto/google/cloud/asset/v1p7beta1/assets.proto From d0482230eb2eb348f458eb892e39977681301ea5 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 6 Oct 2022 21:40:53 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- java-asset/README.md | 62 +- java-asset/google-cloud-asset-bom/pom.xml | 22 +- .../cloud/asset/v1/AssetServiceClient.java | 0 .../cloud/asset/v1/AssetServiceSettings.java | 1 - .../google/cloud/asset/v1/gapic_metadata.json | 0 .../google/cloud/asset/v1/package-info.java | 0 .../cloud/asset/v1/stub/AssetServiceStub.java | 0 .../v1/stub/AssetServiceStubSettings.java | 0 .../stub/GrpcAssetServiceCallableFactory.java | 0 .../asset/v1/stub/GrpcAssetServiceStub.java | 1 - .../HttpJsonAssetServiceCallableFactory.java | 0 .../v1/stub/HttpJsonAssetServiceStub.java | 1 - .../asset/v1p1beta1/AssetServiceClient.java | 0 .../asset/v1p1beta1/AssetServiceSettings.java | 1 - .../cloud/asset/v1p1beta1/gapic_metadata.json | 0 .../cloud/asset/v1p1beta1/package-info.java | 0 .../v1p1beta1/stub/AssetServiceStub.java | 0 .../stub/AssetServiceStubSettings.java | 0 .../stub/GrpcAssetServiceCallableFactory.java | 0 .../v1p1beta1/stub/GrpcAssetServiceStub.java | 1 - .../HttpJsonAssetServiceCallableFactory.java | 0 .../stub/HttpJsonAssetServiceStub.java | 0 .../asset/v1p2beta1/AssetServiceClient.java | 0 .../asset/v1p2beta1/AssetServiceSettings.java | 1 - .../cloud/asset/v1p2beta1/gapic_metadata.json | 0 .../cloud/asset/v1p2beta1/package-info.java | 0 .../v1p2beta1/stub/AssetServiceStub.java | 0 .../stub/AssetServiceStubSettings.java | 0 .../stub/GrpcAssetServiceCallableFactory.java | 0 .../v1p2beta1/stub/GrpcAssetServiceStub.java | 1 - .../HttpJsonAssetServiceCallableFactory.java | 0 .../stub/HttpJsonAssetServiceStub.java | 0 .../asset/v1p5beta1/AssetServiceClient.java | 0 .../asset/v1p5beta1/AssetServiceSettings.java | 1 - .../cloud/asset/v1p5beta1/gapic_metadata.json | 0 .../cloud/asset/v1p5beta1/package-info.java | 0 .../v1p5beta1/stub/AssetServiceStub.java | 0 .../stub/AssetServiceStubSettings.java | 0 .../stub/GrpcAssetServiceCallableFactory.java | 0 .../v1p5beta1/stub/GrpcAssetServiceStub.java | 1 - .../HttpJsonAssetServiceCallableFactory.java | 0 .../stub/HttpJsonAssetServiceStub.java | 0 .../asset/v1p7beta1/AssetServiceClient.java | 0 .../asset/v1p7beta1/AssetServiceSettings.java | 1 - .../cloud/asset/v1p7beta1/gapic_metadata.json | 0 .../cloud/asset/v1p7beta1/package-info.java | 0 .../v1p7beta1/stub/AssetServiceStub.java | 0 .../stub/AssetServiceStubSettings.java | 0 .../stub/GrpcAssetServiceCallableFactory.java | 0 .../v1p7beta1/stub/GrpcAssetServiceStub.java | 1 - .../v1/AssetServiceClientHttpJsonTest.java | 0 .../asset/v1/AssetServiceClientTest.java | 0 .../cloud/asset/v1/MockAssetService.java | 0 .../cloud/asset/v1/MockAssetServiceImpl.java | 0 .../AssetServiceClientHttpJsonTest.java | 0 .../v1p1beta1/AssetServiceClientTest.java | 0 .../asset/v1p1beta1/MockAssetService.java | 0 .../asset/v1p1beta1/MockAssetServiceImpl.java | 0 .../AssetServiceClientHttpJsonTest.java | 0 .../v1p2beta1/AssetServiceClientTest.java | 0 .../asset/v1p2beta1/MockAssetService.java | 0 .../asset/v1p2beta1/MockAssetServiceImpl.java | 0 .../AssetServiceClientHttpJsonTest.java | 0 .../v1p5beta1/AssetServiceClientTest.java | 0 .../asset/v1p5beta1/MockAssetService.java | 0 .../asset/v1p5beta1/MockAssetServiceImpl.java | 0 .../v1p7beta1/AssetServiceClientTest.java | 0 .../asset/v1p7beta1/MockAssetService.java | 0 .../asset/v1p7beta1/MockAssetServiceImpl.java | 0 .../cloud/asset/v1/AssetServiceGrpc.java | 2722 ++++++++++ .../asset/v1p1beta1/AssetServiceGrpc.java | 339 +- .../asset/v1p2beta1/AssetServiceGrpc.java | 799 +++ .../asset/v1p5beta1/AssetServiceGrpc.java | 222 +- .../asset/v1p7beta1/AssetServiceGrpc.java | 214 +- .../AnalyzeIamPolicyLongrunningMetadata.java | 393 +- ...IamPolicyLongrunningMetadataOrBuilder.java | 35 +- .../AnalyzeIamPolicyLongrunningRequest.java | 614 ++- ...eIamPolicyLongrunningRequestOrBuilder.java | 67 +- .../AnalyzeIamPolicyLongrunningResponse.java | 265 +- ...IamPolicyLongrunningResponseOrBuilder.java | 24 + .../asset/v1/AnalyzeIamPolicyRequest.java | 593 ++- .../v1/AnalyzeIamPolicyRequestOrBuilder.java | 67 +- .../asset/v1/AnalyzeIamPolicyResponse.java | 1509 ++++-- .../v1/AnalyzeIamPolicyResponseOrBuilder.java | 83 +- .../cloud/asset/v1/AnalyzeMoveRequest.java | 537 +- .../asset/v1/AnalyzeMoveRequestOrBuilder.java | 42 +- .../cloud/asset/v1/AnalyzeMoveResponse.java | 402 +- .../v1/AnalyzeMoveResponseOrBuilder.java | 36 +- .../java/com/google/cloud/asset/v1/Asset.java | 1574 ++++-- .../google/cloud/asset/v1/AssetOrBuilder.java | 164 +- .../com/google/cloud/asset/v1/AssetProto.java | 620 +++ .../cloud/asset/v1/AssetServiceProto.java | 1292 +++++ .../cloud/asset/v1/AttachedResource.java | 455 +- .../asset/v1/AttachedResourceOrBuilder.java | 45 +- .../v1/BatchGetAssetsHistoryRequest.java | 819 +-- ...BatchGetAssetsHistoryRequestOrBuilder.java | 105 +- .../v1/BatchGetAssetsHistoryResponse.java | 408 +- ...atchGetAssetsHistoryResponseOrBuilder.java | 36 +- .../BatchGetEffectiveIamPoliciesRequest.java | 526 +- ...tEffectiveIamPoliciesRequestOrBuilder.java | 69 +- .../BatchGetEffectiveIamPoliciesResponse.java | 1963 +++++--- ...EffectiveIamPoliciesResponseOrBuilder.java | 62 +- .../cloud/asset/v1/BigQueryDestination.java | 551 ++- .../v1/BigQueryDestinationOrBuilder.java | 50 +- .../cloud/asset/v1/ConditionEvaluation.java | 387 +- .../v1/ConditionEvaluationOrBuilder.java | 24 +- .../google/cloud/asset/v1/ContentType.java | 110 +- .../cloud/asset/v1/CreateFeedRequest.java | 471 +- .../asset/v1/CreateFeedRequestOrBuilder.java | 44 +- .../asset/v1/CreateSavedQueryRequest.java | 565 ++- .../v1/CreateSavedQueryRequestOrBuilder.java | 64 +- .../cloud/asset/v1/DeleteFeedRequest.java | 352 +- .../asset/v1/DeleteFeedRequestOrBuilder.java | 60 + .../asset/v1/DeleteSavedQueryRequest.java | 355 +- .../v1/DeleteSavedQueryRequestOrBuilder.java | 60 + .../cloud/asset/v1/ExportAssetsRequest.java | 837 ++-- .../v1/ExportAssetsRequestOrBuilder.java | 105 +- .../cloud/asset/v1/ExportAssetsResponse.java | 493 +- .../v1/ExportAssetsResponseOrBuilder.java | 42 +- .../java/com/google/cloud/asset/v1/Feed.java | 895 ++-- .../com/google/cloud/asset/v1/FeedName.java | 0 .../google/cloud/asset/v1/FeedOrBuilder.java | 115 +- .../cloud/asset/v1/FeedOutputConfig.java | 374 +- .../asset/v1/FeedOutputConfigOrBuilder.java | 26 +- .../com/google/cloud/asset/v1/FolderName.java | 0 .../google/cloud/asset/v1/GcsDestination.java | 473 +- .../asset/v1/GcsDestinationOrBuilder.java | 42 +- .../cloud/asset/v1/GcsOutputResult.java | 348 +- .../asset/v1/GcsOutputResultOrBuilder.java | 36 +- .../google/cloud/asset/v1/GetFeedRequest.java | 345 +- .../asset/v1/GetFeedRequestOrBuilder.java | 60 + .../cloud/asset/v1/GetSavedQueryRequest.java | 348 +- .../v1/GetSavedQueryRequestOrBuilder.java | 60 + .../v1/IamPolicyAnalysisOutputConfig.java | 1855 ++++--- ...amPolicyAnalysisOutputConfigOrBuilder.java | 67 +- .../asset/v1/IamPolicyAnalysisQuery.java | 3197 +++++++----- .../v1/IamPolicyAnalysisQueryOrBuilder.java | 139 +- .../asset/v1/IamPolicyAnalysisResult.java | 4404 +++++++++++------ .../v1/IamPolicyAnalysisResultOrBuilder.java | 91 +- .../asset/v1/IamPolicyAnalysisState.java | 377 +- .../v1/IamPolicyAnalysisStateOrBuilder.java | 33 +- .../cloud/asset/v1/IamPolicySearchResult.java | 1954 +++++--- .../v1/IamPolicySearchResultOrBuilder.java | 88 +- .../cloud/asset/v1/ListAssetsRequest.java | 814 +-- .../asset/v1/ListAssetsRequestOrBuilder.java | 97 +- .../cloud/asset/v1/ListAssetsResponse.java | 555 ++- .../asset/v1/ListAssetsResponseOrBuilder.java | 54 +- .../cloud/asset/v1/ListFeedsRequest.java | 320 +- .../asset/v1/ListFeedsRequestOrBuilder.java | 27 +- .../cloud/asset/v1/ListFeedsResponse.java | 407 +- .../asset/v1/ListFeedsResponseOrBuilder.java | 37 +- .../asset/v1/ListSavedQueriesRequest.java | 542 +- .../v1/ListSavedQueriesRequestOrBuilder.java | 56 +- .../asset/v1/ListSavedQueriesResponse.java | 486 +- .../v1/ListSavedQueriesResponseOrBuilder.java | 45 +- .../google/cloud/asset/v1/MoveAnalysis.java | 536 +- .../cloud/asset/v1/MoveAnalysisOrBuilder.java | 43 +- .../cloud/asset/v1/MoveAnalysisResult.java | 554 ++- .../asset/v1/MoveAnalysisResultOrBuilder.java | 54 +- .../com/google/cloud/asset/v1/MoveImpact.java | 313 +- .../cloud/asset/v1/MoveImpactOrBuilder.java | 50 + .../cloud/asset/v1/OrganizationName.java | 0 .../google/cloud/asset/v1/OutputConfig.java | 465 +- .../cloud/asset/v1/OutputConfigOrBuilder.java | 34 +- .../google/cloud/asset/v1/OutputResult.java | 369 +- .../cloud/asset/v1/OutputResultOrBuilder.java | 26 +- .../google/cloud/asset/v1/PartitionSpec.java | 374 +- .../asset/v1/PartitionSpecOrBuilder.java | 24 +- .../cloud/asset/v1/PubsubDestination.java | 320 +- .../asset/v1/PubsubDestinationOrBuilder.java | 27 +- .../asset/v1/QueryAssetsOutputConfig.java | 959 ++-- .../v1/QueryAssetsOutputConfigOrBuilder.java | 67 + .../cloud/asset/v1/QueryAssetsRequest.java | 1222 +++-- .../asset/v1/QueryAssetsRequestOrBuilder.java | 136 +- .../cloud/asset/v1/QueryAssetsResponse.java | 678 ++- .../v1/QueryAssetsResponseOrBuilder.java | 54 +- .../google/cloud/asset/v1/QueryResult.java | 598 ++- .../cloud/asset/v1/QueryResultOrBuilder.java | 57 +- .../google/cloud/asset/v1/RelatedAsset.java | 572 ++- .../cloud/asset/v1/RelatedAssetOrBuilder.java | 63 +- .../google/cloud/asset/v1/RelatedAssets.java | 497 +- .../asset/v1/RelatedAssetsOrBuilder.java | 45 +- .../cloud/asset/v1/RelatedResource.java | 399 +- .../asset/v1/RelatedResourceOrBuilder.java | 36 +- .../cloud/asset/v1/RelatedResources.java | 388 +- .../asset/v1/RelatedResourcesOrBuilder.java | 36 +- .../asset/v1/RelationshipAttributes.java | 559 ++- .../v1/RelationshipAttributesOrBuilder.java | 55 +- .../com/google/cloud/asset/v1/Resource.java | 785 +-- .../cloud/asset/v1/ResourceOrBuilder.java | 80 +- .../cloud/asset/v1/ResourceSearchResult.java | 2802 +++++++---- .../v1/ResourceSearchResultOrBuilder.java | 359 +- .../com/google/cloud/asset/v1/SavedQuery.java | 1532 +++--- .../google/cloud/asset/v1/SavedQueryName.java | 0 .../cloud/asset/v1/SavedQueryOrBuilder.java | 130 +- .../asset/v1/SearchAllIamPoliciesRequest.java | 701 +-- .../SearchAllIamPoliciesRequestOrBuilder.java | 75 +- .../v1/SearchAllIamPoliciesResponse.java | 487 +- ...SearchAllIamPoliciesResponseOrBuilder.java | 45 +- .../asset/v1/SearchAllResourcesRequest.java | 821 +-- .../SearchAllResourcesRequestOrBuilder.java | 92 +- .../asset/v1/SearchAllResourcesResponse.java | 483 +- .../SearchAllResourcesResponseOrBuilder.java | 45 +- .../cloud/asset/v1/TableFieldSchema.java | 630 ++- .../asset/v1/TableFieldSchemaOrBuilder.java | 63 +- .../google/cloud/asset/v1/TableSchema.java | 395 +- .../cloud/asset/v1/TableSchemaOrBuilder.java | 36 +- .../google/cloud/asset/v1/TemporalAsset.java | 674 ++- .../asset/v1/TemporalAssetOrBuilder.java | 51 +- .../com/google/cloud/asset/v1/TimeWindow.java | 391 +- .../cloud/asset/v1/TimeWindowOrBuilder.java | 34 +- .../cloud/asset/v1/UpdateFeedRequest.java | 437 +- .../asset/v1/UpdateFeedRequestOrBuilder.java | 43 +- .../asset/v1/UpdateSavedQueryRequest.java | 503 +- .../v1/UpdateSavedQueryRequestOrBuilder.java | 55 +- .../cloud/asset/v1/VersionedResource.java | 397 +- .../asset/v1/VersionedResourceOrBuilder.java | 35 +- .../google/cloud/asset/v1/asset_service.proto | 0 .../proto/google/cloud/asset/v1/assets.proto | 0 .../cloud/asset/v1p1beta1/AssetProto.java | 163 + .../asset/v1p1beta1/AssetServiceProto.java | 150 + .../v1p1beta1/IamPolicySearchResult.java | 1176 +++-- .../IamPolicySearchResultOrBuilder.java | 55 +- .../cloud/asset/v1p1beta1/Permissions.java | 348 +- .../asset/v1p1beta1/PermissionsOrBuilder.java | 36 +- .../SearchAllIamPoliciesRequest.java | 524 +- .../SearchAllIamPoliciesRequestOrBuilder.java | 48 +- .../SearchAllIamPoliciesResponse.java | 481 +- ...SearchAllIamPoliciesResponseOrBuilder.java | 45 +- .../v1p1beta1/SearchAllResourcesRequest.java | 701 +-- .../SearchAllResourcesRequestOrBuilder.java | 75 +- .../v1p1beta1/SearchAllResourcesResponse.java | 490 +- .../SearchAllResourcesResponseOrBuilder.java | 45 +- .../v1p1beta1/StandardResourceMetadata.java | 1199 +++-- .../StandardResourceMetadataOrBuilder.java | 139 +- .../cloud/asset/v1p1beta1/asset_service.proto | 0 .../google/cloud/asset/v1p1beta1/assets.proto | 0 .../google/cloud/asset/v1p2beta1/Asset.java | 665 ++- .../cloud/asset/v1p2beta1/AssetOrBuilder.java | 70 +- .../cloud/asset/v1p2beta1/AssetProto.java | 126 + .../asset/v1p2beta1/AssetServiceProto.java | 270 + .../cloud/asset/v1p2beta1/ContentType.java | 82 +- .../asset/v1p2beta1/CreateFeedRequest.java | 515 +- .../v1p2beta1/CreateFeedRequestOrBuilder.java | 53 +- .../asset/v1p2beta1/DeleteFeedRequest.java | 359 +- .../v1p2beta1/DeleteFeedRequestOrBuilder.java | 60 + .../google/cloud/asset/v1p2beta1/Feed.java | 723 ++- .../cloud/asset/v1p2beta1/FeedName.java | 0 .../cloud/asset/v1p2beta1/FeedOrBuilder.java | 89 +- .../asset/v1p2beta1/FeedOutputConfig.java | 394 +- .../v1p2beta1/FeedOutputConfigOrBuilder.java | 26 +- .../cloud/asset/v1p2beta1/GcsDestination.java | 380 +- .../v1p2beta1/GcsDestinationOrBuilder.java | 30 +- .../cloud/asset/v1p2beta1/GetFeedRequest.java | 351 +- .../v1p2beta1/GetFeedRequestOrBuilder.java | 60 + .../asset/v1p2beta1/ListFeedsRequest.java | 327 +- .../v1p2beta1/ListFeedsRequestOrBuilder.java | 27 +- .../asset/v1p2beta1/ListFeedsResponse.java | 409 +- .../v1p2beta1/ListFeedsResponseOrBuilder.java | 37 +- .../cloud/asset/v1p2beta1/OutputConfig.java | 374 +- .../v1p2beta1/OutputConfigOrBuilder.java | 26 +- .../asset/v1p2beta1/PubsubDestination.java | 327 +- .../v1p2beta1/PubsubDestinationOrBuilder.java | 27 +- .../cloud/asset/v1p2beta1/Resource.java | 715 +-- .../asset/v1p2beta1/ResourceOrBuilder.java | 71 +- .../cloud/asset/v1p2beta1/TemporalAsset.java | 450 +- .../v1p2beta1/TemporalAssetOrBuilder.java | 37 +- .../cloud/asset/v1p2beta1/TimeWindow.java | 398 +- .../asset/v1p2beta1/TimeWindowOrBuilder.java | 34 +- .../asset/v1p2beta1/UpdateFeedRequest.java | 481 +- .../v1p2beta1/UpdateFeedRequestOrBuilder.java | 52 +- .../cloud/asset/v1p2beta1/asset_service.proto | 0 .../google/cloud/asset/v1p2beta1/assets.proto | 0 .../google/cloud/asset/v1p5beta1/Asset.java | 1196 +++-- .../cloud/asset/v1p5beta1/AssetOrBuilder.java | 108 +- .../cloud/asset/v1p5beta1/AssetProto.java | 132 + .../asset/v1p5beta1/AssetServiceProto.java | 120 + .../cloud/asset/v1p5beta1/ContentType.java | 96 +- .../asset/v1p5beta1/ListAssetsRequest.java | 687 ++- .../v1p5beta1/ListAssetsRequestOrBuilder.java | 71 +- .../asset/v1p5beta1/ListAssetsResponse.java | 557 ++- .../ListAssetsResponseOrBuilder.java | 53 +- .../cloud/asset/v1p5beta1/Resource.java | 715 +-- .../asset/v1p5beta1/ResourceOrBuilder.java | 71 +- .../cloud/asset/v1p5beta1/asset_service.proto | 0 .../google/cloud/asset/v1p5beta1/assets.proto | 0 .../google/cloud/asset/v1p7beta1/Asset.java | 1373 +++-- .../cloud/asset/v1p7beta1/AssetOrBuilder.java | 134 +- .../cloud/asset/v1p7beta1/AssetProto.java | 196 + .../asset/v1p7beta1/AssetServiceProto.java | 230 + .../asset/v1p7beta1/BigQueryDestination.java | 558 ++- .../BigQueryDestinationOrBuilder.java | 50 +- .../cloud/asset/v1p7beta1/ContentType.java | 103 +- .../asset/v1p7beta1/ExportAssetsRequest.java | 841 ++-- .../ExportAssetsRequestOrBuilder.java | 105 +- .../asset/v1p7beta1/ExportAssetsResponse.java | 497 +- .../ExportAssetsResponseOrBuilder.java | 42 +- .../cloud/asset/v1p7beta1/GcsDestination.java | 479 +- .../v1p7beta1/GcsDestinationOrBuilder.java | 42 +- .../asset/v1p7beta1/GcsOutputResult.java | 355 +- .../v1p7beta1/GcsOutputResultOrBuilder.java | 36 +- .../cloud/asset/v1p7beta1/OutputConfig.java | 486 +- .../v1p7beta1/OutputConfigOrBuilder.java | 34 +- .../cloud/asset/v1p7beta1/OutputResult.java | 373 +- .../v1p7beta1/OutputResultOrBuilder.java | 26 +- .../cloud/asset/v1p7beta1/PartitionSpec.java | 380 +- .../v1p7beta1/PartitionSpecOrBuilder.java | 24 +- .../cloud/asset/v1p7beta1/RelatedAsset.java | 504 +- .../v1p7beta1/RelatedAssetOrBuilder.java | 54 +- .../cloud/asset/v1p7beta1/RelatedAssets.java | 525 +- .../v1p7beta1/RelatedAssetsOrBuilder.java | 47 +- .../v1p7beta1/RelationshipAttributes.java | 561 ++- .../RelationshipAttributesOrBuilder.java | 54 +- .../cloud/asset/v1p7beta1/Resource.java | 794 +-- .../asset/v1p7beta1/ResourceOrBuilder.java | 80 +- .../cloud/asset/v1p7beta1/asset_service.proto | 0 .../google/cloud/asset/v1p7beta1/assets.proto | 0 .../AsyncAnalyzeIamPolicy.java | 0 .../SyncAnalyzeIamPolicy.java | 0 .../AsyncAnalyzeIamPolicyLongrunning.java | 0 .../AsyncAnalyzeIamPolicyLongrunningLRO.java | 0 .../SyncAnalyzeIamPolicyLongrunning.java | 0 .../analyzemove/AsyncAnalyzeMove.java | 0 .../analyzemove/SyncAnalyzeMove.java | 0 .../AsyncBatchGetAssetsHistory.java | 0 .../SyncBatchGetAssetsHistory.java | 0 .../AsyncBatchGetEffectiveIamPolicies.java | 0 .../SyncBatchGetEffectiveIamPolicies.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createfeed/AsyncCreateFeed.java | 0 .../createfeed/SyncCreateFeed.java | 0 .../createfeed/SyncCreateFeedString.java | 0 .../AsyncCreateSavedQuery.java | 0 .../SyncCreateSavedQuery.java | 0 ...eSavedQueryFoldernameSavedqueryString.java | 0 ...QueryOrganizationnameSavedqueryString.java | 0 ...SavedQueryProjectnameSavedqueryString.java | 0 ...reateSavedQueryStringSavedqueryString.java | 0 .../deletefeed/AsyncDeleteFeed.java | 0 .../deletefeed/SyncDeleteFeed.java | 0 .../deletefeed/SyncDeleteFeedFeedname.java | 0 .../deletefeed/SyncDeleteFeedString.java | 0 .../AsyncDeleteSavedQuery.java | 0 .../SyncDeleteSavedQuery.java | 0 .../SyncDeleteSavedQuerySavedqueryname.java | 0 .../SyncDeleteSavedQueryString.java | 0 .../exportassets/AsyncExportAssets.java | 0 .../exportassets/AsyncExportAssetsLRO.java | 0 .../exportassets/SyncExportAssets.java | 0 .../getfeed/AsyncGetFeed.java | 0 .../getfeed/SyncGetFeed.java | 0 .../getfeed/SyncGetFeedFeedname.java | 0 .../getfeed/SyncGetFeedString.java | 0 .../getsavedquery/AsyncGetSavedQuery.java | 0 .../getsavedquery/SyncGetSavedQuery.java | 0 .../SyncGetSavedQuerySavedqueryname.java | 0 .../SyncGetSavedQueryString.java | 0 .../listassets/AsyncListAssets.java | 0 .../listassets/AsyncListAssetsPaged.java | 0 .../listassets/SyncListAssets.java | 0 .../SyncListAssetsResourcename.java | 0 .../listassets/SyncListAssetsString.java | 0 .../listfeeds/AsyncListFeeds.java | 0 .../listfeeds/SyncListFeeds.java | 0 .../listfeeds/SyncListFeedsString.java | 0 .../AsyncListSavedQueries.java | 0 .../AsyncListSavedQueriesPaged.java | 0 .../SyncListSavedQueries.java | 0 .../SyncListSavedQueriesFoldername.java | 0 .../SyncListSavedQueriesOrganizationname.java | 0 .../SyncListSavedQueriesProjectname.java | 0 .../SyncListSavedQueriesString.java | 0 .../queryassets/AsyncQueryAssets.java | 0 .../queryassets/SyncQueryAssets.java | 0 .../AsyncSearchAllIamPolicies.java | 0 .../AsyncSearchAllIamPoliciesPaged.java | 0 .../SyncSearchAllIamPolicies.java | 0 .../SyncSearchAllIamPoliciesStringString.java | 0 .../AsyncSearchAllResources.java | 0 .../AsyncSearchAllResourcesPaged.java | 0 .../SyncSearchAllResources.java | 0 ...rchAllResourcesStringStringListstring.java | 0 .../updatefeed/AsyncUpdateFeed.java | 0 .../updatefeed/SyncUpdateFeed.java | 0 .../updatefeed/SyncUpdateFeedFeed.java | 0 .../AsyncUpdateSavedQuery.java | 0 .../SyncUpdateSavedQuery.java | 0 ...ncUpdateSavedQuerySavedqueryFieldmask.java | 0 .../SyncBatchGetAssetsHistory.java | 0 .../SyncBatchGetAssetsHistory.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncSearchAllIamPolicies.java | 0 .../AsyncSearchAllIamPoliciesPaged.java | 0 .../SyncSearchAllIamPolicies.java | 0 .../SyncSearchAllIamPoliciesStringString.java | 0 .../AsyncSearchAllResources.java | 0 .../AsyncSearchAllResourcesPaged.java | 0 .../SyncSearchAllResources.java | 0 ...rchAllResourcesStringStringListstring.java | 0 .../SyncSearchAllResources.java | 0 .../SyncSearchAllResources.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createfeed/AsyncCreateFeed.java | 0 .../createfeed/SyncCreateFeed.java | 0 .../createfeed/SyncCreateFeedString.java | 0 .../deletefeed/AsyncDeleteFeed.java | 0 .../deletefeed/SyncDeleteFeed.java | 0 .../deletefeed/SyncDeleteFeedFeedname.java | 0 .../deletefeed/SyncDeleteFeedString.java | 0 .../getfeed/AsyncGetFeed.java | 0 .../getfeed/SyncGetFeed.java | 0 .../getfeed/SyncGetFeedFeedname.java | 0 .../getfeed/SyncGetFeedString.java | 0 .../listfeeds/AsyncListFeeds.java | 0 .../listfeeds/SyncListFeeds.java | 0 .../listfeeds/SyncListFeedsString.java | 0 .../updatefeed/AsyncUpdateFeed.java | 0 .../updatefeed/SyncUpdateFeed.java | 0 .../updatefeed/SyncUpdateFeedFeed.java | 0 .../createfeed/SyncCreateFeed.java | 0 .../createfeed/SyncCreateFeed.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../listassets/AsyncListAssets.java | 0 .../listassets/AsyncListAssetsPaged.java | 0 .../listassets/SyncListAssets.java | 0 .../listassets/SyncListAssets.java | 0 .../listassets/SyncListAssets.java | 0 .../cloud/asset/v1/AssetServiceGrpc.java | 2121 -------- ...IamPolicyLongrunningResponseOrBuilder.java | 9 - .../com/google/cloud/asset/v1/AssetProto.java | 505 -- .../cloud/asset/v1/AssetServiceProto.java | 1149 ----- .../asset/v1/DeleteFeedRequestOrBuilder.java | 35 - .../v1/DeleteSavedQueryRequestOrBuilder.java | 35 - .../asset/v1/GetFeedRequestOrBuilder.java | 35 - .../v1/GetSavedQueryRequestOrBuilder.java | 35 - .../cloud/asset/v1/MoveImpactOrBuilder.java | 29 - .../google/cloud/asset/v1/ProjectName.java | 168 - .../v1/QueryAssetsOutputConfigOrBuilder.java | 36 - .../cloud/asset/v1p1beta1/AssetProto.java | 129 - .../asset/v1p1beta1/AssetServiceProto.java | 132 - .../asset/v1p2beta1/AssetServiceGrpc.java | 651 --- .../cloud/asset/v1p2beta1/AssetProto.java | 108 - .../asset/v1p2beta1/AssetServiceProto.java | 245 - .../v1p2beta1/DeleteFeedRequestOrBuilder.java | 35 - .../v1p2beta1/GetFeedRequestOrBuilder.java | 35 - .../cloud/asset/v1p5beta1/AssetProto.java | 107 - .../asset/v1p5beta1/AssetServiceProto.java | 104 - .../cloud/asset/v1p7beta1/AssetProto.java | 160 - .../asset/v1p7beta1/AssetServiceProto.java | 203 - 457 files changed, 58443 insertions(+), 36456 deletions(-) rename {owl-bot-staging/java-asset/v1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceSettings.java (99%) rename {owl-bot-staging/java-asset/v1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/gapic_metadata.json (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/package-info.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStub.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java (99%) rename {owl-bot-staging/java-asset/v1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceCallableFactory.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java (99%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceClient.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceSettings.java (99%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/package-info.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStub.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStubSettings.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/GrpcAssetServiceCallableFactory.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/GrpcAssetServiceStub.java (99%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/HttpJsonAssetServiceCallableFactory.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/HttpJsonAssetServiceStub.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceClient.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceSettings.java (99%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/gapic_metadata.json (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/package-info.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStub.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStubSettings.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceCallableFactory.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceStub.java (99%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/HttpJsonAssetServiceCallableFactory.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/HttpJsonAssetServiceStub.java (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceClient.java (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceSettings.java (99%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/gapic_metadata.json (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/package-info.java (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStub.java (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStubSettings.java (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/GrpcAssetServiceCallableFactory.java (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/GrpcAssetServiceStub.java (99%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/HttpJsonAssetServiceCallableFactory.java (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/HttpJsonAssetServiceStub.java (100%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceClient.java (100%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceSettings.java (99%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/gapic_metadata.json (100%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/package-info.java (100%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStub.java (100%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStubSettings.java (100%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/GrpcAssetServiceCallableFactory.java (100%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/GrpcAssetServiceStub.java (99%) rename {owl-bot-staging/java-asset/v1 => java-asset}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientTest.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetService.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetServiceImpl.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/AssetServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/AssetServiceClientTest.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/MockAssetService.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/MockAssetServiceImpl.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/AssetServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/AssetServiceClientTest.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/MockAssetService.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/MockAssetServiceImpl.java (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/AssetServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/AssetServiceClientTest.java (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/MockAssetService.java (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/MockAssetServiceImpl.java (100%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/AssetServiceClientTest.java (100%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/MockAssetService.java (100%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/MockAssetServiceImpl.java (100%) create mode 100644 java-asset/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/grpc-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceGrpc.java (51%) create mode 100644 java-asset/grpc-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceGrpc.java rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/grpc-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceGrpc.java (50%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/grpc-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceGrpc.java (60%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadata.java (61%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadataOrBuilder.java (53%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequest.java (66%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequestOrBuilder.java (67%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponse.java (60%) create mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponseOrBuilder.java rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequest.java (71%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequestOrBuilder.java (75%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponse.java (72%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponseOrBuilder.java (58%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequest.java (72%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequestOrBuilder.java (77%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponse.java (73%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponseOrBuilder.java (69%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java (78%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetOrBuilder.java (89%) create mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java create mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResource.java (76%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResourceOrBuilder.java (76%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java (75%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequestOrBuilder.java (82%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponse.java (70%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponseOrBuilder.java (62%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequest.java (68%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequestOrBuilder.java (67%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponse.java (71%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponseOrBuilder.java (64%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java (82%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestinationOrBuilder.java (90%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluation.java (67%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluationOrBuilder.java (55%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ContentType.java (70%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java (74%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java (79%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequest.java (68%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequestOrBuilder.java (67%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequest.java (62%) create mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequestOrBuilder.java rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequest.java (63%) create mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequestOrBuilder.java rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java (79%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java (87%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java (73%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponseOrBuilder.java (81%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java (81%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedName.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java (89%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java (68%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfigOrBuilder.java (61%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FolderName.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestination.java (75%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestinationOrBuilder.java (84%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResult.java (67%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResultOrBuilder.java (62%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java (63%) create mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequestOrBuilder.java rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequest.java (64%) create mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequestOrBuilder.java rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfig.java (66%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfigOrBuilder.java (50%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQuery.java (71%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQueryOrBuilder.java (58%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResult.java (76%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResultOrBuilder.java (72%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisState.java (70%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisStateOrBuilder.java (67%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java (72%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResultOrBuilder.java (89%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequest.java (81%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequestOrBuilder.java (89%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponse.java (72%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponseOrBuilder.java (69%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequest.java (67%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequestOrBuilder.java (59%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponse.java (68%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponseOrBuilder.java (55%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequest.java (72%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequestOrBuilder.java (74%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponse.java (71%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponseOrBuilder.java (67%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysis.java (71%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisOrBuilder.java (73%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResult.java (77%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResultOrBuilder.java (79%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpact.java (64%) create mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpactOrBuilder.java rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OrganizationName.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfig.java (71%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfigOrBuilder.java (74%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResult.java (67%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResultOrBuilder.java (60%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpec.java (68%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpecOrBuilder.java (55%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java (65%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestinationOrBuilder.java (50%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfig.java (68%) create mode 100644 java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfigOrBuilder.java rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequest.java (74%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequestOrBuilder.java (81%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponse.java (73%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponseOrBuilder.java (79%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResult.java (71%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResultOrBuilder.java (71%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAsset.java (76%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetOrBuilder.java (80%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssets.java (71%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetsOrBuilder.java (71%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResource.java (68%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourceOrBuilder.java (60%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResources.java (72%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourcesOrBuilder.java (64%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributes.java (70%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributesOrBuilder.java (65%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java (76%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java (82%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResult.java (83%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResultOrBuilder.java (91%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQuery.java (69%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryName.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryOrBuilder.java (74%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequest.java (85%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequestOrBuilder.java (92%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponse.java (73%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponseOrBuilder.java (75%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequest.java (86%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequestOrBuilder.java (93%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponse.java (73%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponseOrBuilder.java (74%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchema.java (74%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchemaOrBuilder.java (76%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchema.java (70%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchemaOrBuilder.java (61%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java (72%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAssetOrBuilder.java (80%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java (70%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindowOrBuilder.java (70%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java (72%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java (76%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequest.java (66%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequestOrBuilder.java (65%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResource.java (75%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResourceOrBuilder.java (80%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto (100%) create mode 100644 java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetProto.java create mode 100644 java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceProto.java rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResult.java (70%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResultOrBuilder.java (82%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/Permissions.java (67%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/PermissionsOrBuilder.java (61%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequest.java (73%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequestOrBuilder.java (78%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponse.java (73%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponseOrBuilder.java (75%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequest.java (75%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequestOrBuilder.java (82%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponse.java (72%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponseOrBuilder.java (72%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadata.java (72%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadataOrBuilder.java (81%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/asset_service.proto (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/assets.proto (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Asset.java (75%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetOrBuilder.java (83%) create mode 100644 java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetProto.java create mode 100644 java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceProto.java rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ContentType.java (66%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequest.java (72%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequestOrBuilder.java (76%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequest.java (62%) create mode 100644 java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequestOrBuilder.java rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Feed.java (76%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedName.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOrBuilder.java (83%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfig.java (67%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfigOrBuilder.java (63%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestination.java (68%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestinationOrBuilder.java (68%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequest.java (63%) create mode 100644 java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequestOrBuilder.java rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequest.java (67%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequestOrBuilder.java (60%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponse.java (69%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponseOrBuilder.java (59%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfig.java (68%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfigOrBuilder.java (62%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestination.java (65%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestinationOrBuilder.java (51%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Resource.java (75%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ResourceOrBuilder.java (81%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAsset.java (68%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAssetOrBuilder.java (70%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindow.java (70%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindowOrBuilder.java (70%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequest.java (70%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequestOrBuilder.java (73%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/proto/google/cloud/asset/v1p2beta1/asset_service.proto (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/proto-google-cloud-asset-v1p2beta1/src/main/proto/google/cloud/asset/v1p2beta1/assets.proto (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Asset.java (74%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetOrBuilder.java (84%) create mode 100644 java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetProto.java create mode 100644 java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceProto.java rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ContentType.java (69%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequest.java (77%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequestOrBuilder.java (85%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponse.java (72%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponseOrBuilder.java (71%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Resource.java (75%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ResourceOrBuilder.java (81%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/proto-google-cloud-asset-v1p5beta1/src/main/proto/google/cloud/asset/v1p5beta1/asset_service.proto (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/proto-google-cloud-asset-v1p5beta1/src/main/proto/google/cloud/asset/v1p5beta1/assets.proto (100%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Asset.java (79%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetOrBuilder.java (90%) create mode 100644 java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetProto.java create mode 100644 java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceProto.java rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestination.java (81%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestinationOrBuilder.java (89%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ContentType.java (70%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequest.java (78%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequestOrBuilder.java (86%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponse.java (73%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponseOrBuilder.java (81%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestination.java (74%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestinationOrBuilder.java (82%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResult.java (67%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResultOrBuilder.java (62%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfig.java (70%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfigOrBuilder.java (75%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResult.java (67%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResultOrBuilder.java (61%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpec.java (68%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpecOrBuilder.java (56%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAsset.java (75%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetOrBuilder.java (80%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssets.java (70%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetsOrBuilder.java (72%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributes.java (69%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributesOrBuilder.java (66%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Resource.java (75%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ResourceOrBuilder.java (82%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/proto/google/cloud/asset/v1p7beta1/asset_service.proto (100%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/proto-google-cloud-asset-v1p7beta1/src/main/proto/google/cloud/asset/v1p7beta1/assets.proto (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AsyncAnalyzeIamPolicy.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/SyncAnalyzeIamPolicy.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AsyncAnalyzeMove.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzemove/SyncAnalyzeMove.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/AsyncBatchGetAssetsHistory.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/SyncBatchGetAssetsHistory.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgeteffectiveiampolicies/AsyncBatchGetEffectiveIamPolicies.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgeteffectiveiampolicies/SyncBatchGetEffectiveIamPolicies.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/AsyncCreateFeed.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeed.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeedString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/AsyncCreateSavedQuery.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQuery.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryFoldernameSavedqueryString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryOrganizationnameSavedqueryString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryProjectnameSavedqueryString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryStringSavedqueryString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/AsyncDeleteFeed.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeed.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/AsyncDeleteSavedQuery.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQuery.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQuerySavedqueryname.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQueryString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssets.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssetsLRO.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/SyncExportAssets.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/AsyncGetFeed.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeed.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedFeedname.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/AsyncGetSavedQuery.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQuery.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQuerySavedqueryname.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQueryString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssets.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssetsPaged.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssets.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsResourcename.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/AsyncListFeeds.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeeds.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeedsString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/AsyncListSavedQueries.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/AsyncListSavedQueriesPaged.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueries.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesFoldername.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesOrganizationname.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesProjectname.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/queryassets/AsyncQueryAssets.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/queryassets/SyncQueryAssets.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPolicies.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResources.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResources.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/AsyncUpdateFeed.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeed.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/AsyncUpdateSavedQuery.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/SyncUpdateSavedQuery.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/SyncUpdateSavedQuerySavedqueryFieldmask.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPolicies.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/AsyncSearchAllResources.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/SyncSearchAllResources.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservicesettings/searchallresources/SyncSearchAllResources.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/stub/assetservicestubsettings/searchallresources/SyncSearchAllResources.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/AsyncCreateFeed.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/SyncCreateFeed.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/SyncCreateFeedString.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/AsyncDeleteFeed.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeed.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeedString.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/AsyncGetFeed.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeed.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeedFeedname.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeedString.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/AsyncListFeeds.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/SyncListFeeds.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/SyncListFeedsString.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/AsyncUpdateFeed.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/SyncUpdateFeed.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservicesettings/createfeed/SyncCreateFeed.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/stub/assetservicestubsettings/createfeed/SyncCreateFeed.java (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/AsyncListAssets.java (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/AsyncListAssetsPaged.java (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/SyncListAssets.java (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservicesettings/listassets/SyncListAssets.java (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/stub/assetservicestubsettings/listassets/SyncListAssets.java (100%) delete mode 100644 owl-bot-staging/java-asset/v1/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java delete mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java delete mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java delete mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpactOrBuilder.java delete mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ProjectName.java delete mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfigOrBuilder.java delete mode 100644 owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetProto.java delete mode 100644 owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceProto.java delete mode 100644 owl-bot-staging/java-asset/v1p2beta1/grpc-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceGrpc.java delete mode 100644 owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetProto.java delete mode 100644 owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceProto.java delete mode 100644 owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetProto.java delete mode 100644 owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceProto.java delete mode 100644 owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetProto.java delete mode 100644 owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceProto.java diff --git a/java-asset/README.md b/java-asset/README.md index 5ac1601de848..ff515d7e1a5d 100644 --- a/java-asset/README.md +++ b/java-asset/README.md @@ -11,59 +11,28 @@ Java idiomatic client for [Cloud Asset Inventory][product-docs]. ## Quickstart -If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: -```xml - - - - com.google.cloud - libraries-bom - 26.1.2 - pom - import - - - - - - - com.google.cloud - google-cloud-asset - - - -``` - -If you are using Maven without BOM, add this to your dependencies: +If you are using Maven, add this to your pom.xml file: ```xml com.google.cloud google-cloud-asset - 3.6.0 + 3.7.0 - ``` -If you are using Gradle 5.x or later, add this to your dependencies: - -```Groovy -implementation platform('com.google.cloud:libraries-bom:26.1.2') - -implementation 'com.google.cloud:google-cloud-asset' -``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-asset:3.6.0' +implementation 'com.google.cloud:google-cloud-asset:3.7.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.6.0" +libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.7.0" ``` ## Authentication @@ -101,29 +70,6 @@ use this Cloud Asset Inventory Client Library. -## Samples - -Samples are in the [`samples/`](https://github.com/googleapis/java-asset/tree/main/samples) directory. - -| Sample | Source Code | Try it | -| --------------------------- | --------------------------------- | ------ | -| Analyze Iam Policy Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/AnalyzeIamPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/AnalyzeIamPolicyExample.java) | -| Analyze Iam Policy Longrunning Bigquery Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/AnalyzeIamPolicyLongrunningBigqueryExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/AnalyzeIamPolicyLongrunningBigqueryExample.java) | -| Analyze Iam Policy Longrunning Gcs Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/AnalyzeIamPolicyLongrunningGcsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/AnalyzeIamPolicyLongrunningGcsExample.java) | -| Batch Get Assets History Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/BatchGetAssetsHistoryExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/BatchGetAssetsHistoryExample.java) | -| Batch Get Effective Iam Policy Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/BatchGetEffectiveIamPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/BatchGetEffectiveIamPolicyExample.java) | -| Create Feed Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/CreateFeedExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/CreateFeedExample.java) | -| Delete Feed Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/DeleteFeedExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/DeleteFeedExample.java) | -| Export Assets Bigquery Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/ExportAssetsBigqueryExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/ExportAssetsBigqueryExample.java) | -| Export Assets Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/ExportAssetsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/ExportAssetsExample.java) | -| Get Feed Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/GetFeedExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/GetFeedExample.java) | -| List Assets Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/ListAssetsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/ListAssetsExample.java) | -| List Feeds Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/ListFeedsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/ListFeedsExample.java) | -| Search All Iam Policies Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/SearchAllIamPoliciesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/SearchAllIamPoliciesExample.java) | -| Search All Resources Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/SearchAllResourcesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/SearchAllResourcesExample.java) | -| Update Feed Example | [source code](https://github.com/googleapis/java-asset/blob/main/samples/snippets/src/main/java/com/example/asset/UpdateFeedExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-asset&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/asset/UpdateFeedExample.java) | - - ## Troubleshooting diff --git a/java-asset/google-cloud-asset-bom/pom.xml b/java-asset/google-cloud-asset-bom/pom.xml index 2c9aeb298a2e..466fecbbe733 100644 --- a/java-asset/google-cloud-asset-bom/pom.xml +++ b/java-asset/google-cloud-asset-bom/pom.xml @@ -53,57 +53,57 @@ com.google.cloud google-cloud-asset - 3.5.1-SNAPSHOT + 3.7.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1 - 3.5.1-SNAPSHOT + 3.7.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1p1beta1 - 0.105.1-SNAPSHOT + 0.107.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1p2beta1 - 0.105.1-SNAPSHOT + 0.107.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1p5beta1 - 0.105.1-SNAPSHOT + 0.107.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1p7beta1 - 3.5.1-SNAPSHOT + 3.7.1-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1 - 3.5.1-SNAPSHOT + 3.7.1-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1p1beta1 - 0.105.1-SNAPSHOT + 0.107.1-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1p2beta1 - 0.105.1-SNAPSHOT + 0.107.1-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1p5beta1 - 0.105.1-SNAPSHOT + 0.107.1-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1p7beta1 - 3.5.1-SNAPSHOT + 3.7.1-SNAPSHOT diff --git a/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java similarity index 100% rename from owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java diff --git a/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceSettings.java similarity index 99% rename from owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceSettings.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceSettings.java index 40c2557ae991..4deb1e8f7fa5 100644 --- a/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceSettings.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceSettings.java @@ -32,7 +32,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.asset.v1.stub.AssetServiceStubSettings; diff --git a/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/gapic_metadata.json b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/gapic_metadata.json rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/package-info.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/package-info.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/package-info.java diff --git a/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStub.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStub.java similarity index 100% rename from owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStub.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStub.java diff --git a/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java diff --git a/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java diff --git a/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java similarity index 99% rename from owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java index 808791245058..8f98dd2a00d2 100644 --- a/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java @@ -70,7 +70,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceCallableFactory.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceCallableFactory.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceCallableFactory.java diff --git a/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java similarity index 99% rename from owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java index a646b0278b52..c830efd835b6 100644 --- a/owl-bot-staging/java-asset/v1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java @@ -33,7 +33,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceClient.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceClient.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceClient.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceClient.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceSettings.java similarity index 99% rename from owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceSettings.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceSettings.java index dbfedba29787..5beaf30dedf5 100644 --- a/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceSettings.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.asset.v1p1beta1.stub.AssetServiceStubSettings; diff --git a/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/gapic_metadata.json b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/gapic_metadata.json rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/gapic_metadata.json diff --git a/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/package-info.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/package-info.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/package-info.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/package-info.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStub.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStub.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStub.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStub.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStubSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStubSettings.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/AssetServiceStubSettings.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/GrpcAssetServiceCallableFactory.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/GrpcAssetServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/GrpcAssetServiceCallableFactory.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/GrpcAssetServiceCallableFactory.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/GrpcAssetServiceStub.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/GrpcAssetServiceStub.java similarity index 99% rename from owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/GrpcAssetServiceStub.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/GrpcAssetServiceStub.java index 0f2e0b071dec..09ac21b20398 100644 --- a/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/GrpcAssetServiceStub.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/GrpcAssetServiceStub.java @@ -35,7 +35,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/HttpJsonAssetServiceCallableFactory.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/HttpJsonAssetServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/HttpJsonAssetServiceCallableFactory.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/HttpJsonAssetServiceCallableFactory.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/HttpJsonAssetServiceStub.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/HttpJsonAssetServiceStub.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/HttpJsonAssetServiceStub.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/HttpJsonAssetServiceStub.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceClient.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceClient.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceClient.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceClient.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceSettings.java similarity index 99% rename from owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceSettings.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceSettings.java index 48de67a431ff..0433130dafde 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceSettings.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceSettings.java @@ -25,7 +25,6 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.asset.v1p2beta1.stub.AssetServiceStubSettings; diff --git a/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/gapic_metadata.json b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/gapic_metadata.json rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/gapic_metadata.json diff --git a/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/package-info.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/package-info.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/package-info.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/package-info.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStub.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStub.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStub.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStub.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStubSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStubSettings.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/AssetServiceStubSettings.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceCallableFactory.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceCallableFactory.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceCallableFactory.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceStub.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceStub.java similarity index 99% rename from owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceStub.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceStub.java index 4c74edb92139..55c2f122f030 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceStub.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/GrpcAssetServiceStub.java @@ -36,7 +36,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/HttpJsonAssetServiceCallableFactory.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/HttpJsonAssetServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/HttpJsonAssetServiceCallableFactory.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/HttpJsonAssetServiceCallableFactory.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/HttpJsonAssetServiceStub.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/HttpJsonAssetServiceStub.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/HttpJsonAssetServiceStub.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/HttpJsonAssetServiceStub.java diff --git a/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceClient.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceClient.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceClient.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceClient.java diff --git a/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceSettings.java similarity index 99% rename from owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceSettings.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceSettings.java index 5ad8e0041dc1..29acd3f3aa4c 100644 --- a/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceSettings.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.asset.v1p5beta1.stub.AssetServiceStubSettings; diff --git a/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/gapic_metadata.json b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/gapic_metadata.json rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/gapic_metadata.json diff --git a/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/package-info.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/package-info.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/package-info.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/package-info.java diff --git a/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStub.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStub.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStub.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStub.java diff --git a/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStubSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStubSettings.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/AssetServiceStubSettings.java diff --git a/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/GrpcAssetServiceCallableFactory.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/GrpcAssetServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/GrpcAssetServiceCallableFactory.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/GrpcAssetServiceCallableFactory.java diff --git a/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/GrpcAssetServiceStub.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/GrpcAssetServiceStub.java similarity index 99% rename from owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/GrpcAssetServiceStub.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/GrpcAssetServiceStub.java index 9be0edcf03da..52ebbf4ba4b8 100644 --- a/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/GrpcAssetServiceStub.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/GrpcAssetServiceStub.java @@ -32,7 +32,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/HttpJsonAssetServiceCallableFactory.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/HttpJsonAssetServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/HttpJsonAssetServiceCallableFactory.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/HttpJsonAssetServiceCallableFactory.java diff --git a/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/HttpJsonAssetServiceStub.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/HttpJsonAssetServiceStub.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/HttpJsonAssetServiceStub.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/HttpJsonAssetServiceStub.java diff --git a/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceClient.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceClient.java similarity index 100% rename from owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceClient.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceClient.java diff --git a/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceSettings.java similarity index 99% rename from owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceSettings.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceSettings.java index 4300c24794e3..b962673d1b85 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceSettings.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceSettings.java @@ -25,7 +25,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.asset.v1p7beta1.stub.AssetServiceStubSettings; diff --git a/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/gapic_metadata.json b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/gapic_metadata.json rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/gapic_metadata.json diff --git a/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/package-info.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/package-info.java similarity index 100% rename from owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/package-info.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/package-info.java diff --git a/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStub.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStub.java similarity index 100% rename from owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStub.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStub.java diff --git a/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStubSettings.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStubSettings.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/AssetServiceStubSettings.java diff --git a/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/GrpcAssetServiceCallableFactory.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/GrpcAssetServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/GrpcAssetServiceCallableFactory.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/GrpcAssetServiceCallableFactory.java diff --git a/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/GrpcAssetServiceStub.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/GrpcAssetServiceStub.java similarity index 99% rename from owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/GrpcAssetServiceStub.java rename to java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/GrpcAssetServiceStub.java index 38f973b48370..7afbf3f79796 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/GrpcAssetServiceStub.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/GrpcAssetServiceStub.java @@ -32,7 +32,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-asset/v1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientHttpJsonTest.java b/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-asset/v1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientHttpJsonTest.java rename to java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-asset/v1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientTest.java b/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-asset/v1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientTest.java rename to java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientTest.java diff --git a/owl-bot-staging/java-asset/v1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetService.java b/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetService.java similarity index 100% rename from owl-bot-staging/java-asset/v1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetService.java rename to java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetService.java diff --git a/owl-bot-staging/java-asset/v1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetServiceImpl.java b/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetServiceImpl.java similarity index 100% rename from owl-bot-staging/java-asset/v1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetServiceImpl.java rename to java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetServiceImpl.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/AssetServiceClientHttpJsonTest.java b/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/AssetServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/AssetServiceClientHttpJsonTest.java rename to java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/AssetServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/AssetServiceClientTest.java b/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/AssetServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/AssetServiceClientTest.java rename to java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/AssetServiceClientTest.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/MockAssetService.java b/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/MockAssetService.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/MockAssetService.java rename to java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/MockAssetService.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/MockAssetServiceImpl.java b/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/MockAssetServiceImpl.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/MockAssetServiceImpl.java rename to java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/MockAssetServiceImpl.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/AssetServiceClientHttpJsonTest.java b/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/AssetServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/AssetServiceClientHttpJsonTest.java rename to java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/AssetServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/AssetServiceClientTest.java b/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/AssetServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/AssetServiceClientTest.java rename to java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/AssetServiceClientTest.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/MockAssetService.java b/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/MockAssetService.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/MockAssetService.java rename to java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/MockAssetService.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/MockAssetServiceImpl.java b/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/MockAssetServiceImpl.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/MockAssetServiceImpl.java rename to java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p2beta1/MockAssetServiceImpl.java diff --git a/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/AssetServiceClientHttpJsonTest.java b/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/AssetServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/AssetServiceClientHttpJsonTest.java rename to java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/AssetServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/AssetServiceClientTest.java b/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/AssetServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/AssetServiceClientTest.java rename to java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/AssetServiceClientTest.java diff --git a/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/MockAssetService.java b/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/MockAssetService.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/MockAssetService.java rename to java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/MockAssetService.java diff --git a/owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/MockAssetServiceImpl.java b/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/MockAssetServiceImpl.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/MockAssetServiceImpl.java rename to java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/MockAssetServiceImpl.java diff --git a/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/AssetServiceClientTest.java b/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/AssetServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/AssetServiceClientTest.java rename to java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/AssetServiceClientTest.java diff --git a/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/MockAssetService.java b/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/MockAssetService.java similarity index 100% rename from owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/MockAssetService.java rename to java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/MockAssetService.java diff --git a/owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/MockAssetServiceImpl.java b/java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/MockAssetServiceImpl.java similarity index 100% rename from owl-bot-staging/java-asset/v1p7beta1/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/MockAssetServiceImpl.java rename to java-asset/google-cloud-asset/src/test/java/com/google/cloud/asset/v1p7beta1/MockAssetServiceImpl.java diff --git a/java-asset/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java b/java-asset/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java new file mode 100644 index 000000000000..2c561052b420 --- /dev/null +++ b/java-asset/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java @@ -0,0 +1,2722 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.asset.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
    + * Asset service definition.
    + * 
    + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/asset/v1/asset_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AssetServiceGrpc { + + private AssetServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.asset.v1.AssetService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.ExportAssetsRequest, com.google.longrunning.Operation> + getExportAssetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportAssets", + requestType = com.google.cloud.asset.v1.ExportAssetsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.ExportAssetsRequest, com.google.longrunning.Operation> + getExportAssetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.ExportAssetsRequest, com.google.longrunning.Operation> + getExportAssetsMethod; + if ((getExportAssetsMethod = AssetServiceGrpc.getExportAssetsMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getExportAssetsMethod = AssetServiceGrpc.getExportAssetsMethod) == null) { + AssetServiceGrpc.getExportAssetsMethod = + getExportAssetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.ExportAssetsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ExportAssets")) + .build(); + } + } + } + return getExportAssetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.ListAssetsRequest, com.google.cloud.asset.v1.ListAssetsResponse> + getListAssetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAssets", + requestType = com.google.cloud.asset.v1.ListAssetsRequest.class, + responseType = com.google.cloud.asset.v1.ListAssetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.ListAssetsRequest, com.google.cloud.asset.v1.ListAssetsResponse> + getListAssetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.ListAssetsRequest, + com.google.cloud.asset.v1.ListAssetsResponse> + getListAssetsMethod; + if ((getListAssetsMethod = AssetServiceGrpc.getListAssetsMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getListAssetsMethod = AssetServiceGrpc.getListAssetsMethod) == null) { + AssetServiceGrpc.getListAssetsMethod = + getListAssetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.ListAssetsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.ListAssetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ListAssets")) + .build(); + } + } + } + return getListAssetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest, + com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse> + getBatchGetAssetsHistoryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchGetAssetsHistory", + requestType = com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.class, + responseType = com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest, + com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse> + getBatchGetAssetsHistoryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest, + com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse> + getBatchGetAssetsHistoryMethod; + if ((getBatchGetAssetsHistoryMethod = AssetServiceGrpc.getBatchGetAssetsHistoryMethod) + == null) { + synchronized (AssetServiceGrpc.class) { + if ((getBatchGetAssetsHistoryMethod = AssetServiceGrpc.getBatchGetAssetsHistoryMethod) + == null) { + AssetServiceGrpc.getBatchGetAssetsHistoryMethod = + getBatchGetAssetsHistoryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchGetAssetsHistory")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AssetServiceMethodDescriptorSupplier("BatchGetAssetsHistory")) + .build(); + } + } + } + return getBatchGetAssetsHistoryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.CreateFeedRequest, com.google.cloud.asset.v1.Feed> + getCreateFeedMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFeed", + requestType = com.google.cloud.asset.v1.CreateFeedRequest.class, + responseType = com.google.cloud.asset.v1.Feed.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.CreateFeedRequest, com.google.cloud.asset.v1.Feed> + getCreateFeedMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.CreateFeedRequest, com.google.cloud.asset.v1.Feed> + getCreateFeedMethod; + if ((getCreateFeedMethod = AssetServiceGrpc.getCreateFeedMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getCreateFeedMethod = AssetServiceGrpc.getCreateFeedMethod) == null) { + AssetServiceGrpc.getCreateFeedMethod = + getCreateFeedMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFeed")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.CreateFeedRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.Feed.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("CreateFeed")) + .build(); + } + } + } + return getCreateFeedMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.GetFeedRequest, com.google.cloud.asset.v1.Feed> + getGetFeedMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFeed", + requestType = com.google.cloud.asset.v1.GetFeedRequest.class, + responseType = com.google.cloud.asset.v1.Feed.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.GetFeedRequest, com.google.cloud.asset.v1.Feed> + getGetFeedMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.GetFeedRequest, com.google.cloud.asset.v1.Feed> + getGetFeedMethod; + if ((getGetFeedMethod = AssetServiceGrpc.getGetFeedMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getGetFeedMethod = AssetServiceGrpc.getGetFeedMethod) == null) { + AssetServiceGrpc.getGetFeedMethod = + getGetFeedMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFeed")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.GetFeedRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.Feed.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("GetFeed")) + .build(); + } + } + } + return getGetFeedMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.ListFeedsRequest, com.google.cloud.asset.v1.ListFeedsResponse> + getListFeedsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFeeds", + requestType = com.google.cloud.asset.v1.ListFeedsRequest.class, + responseType = com.google.cloud.asset.v1.ListFeedsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.ListFeedsRequest, com.google.cloud.asset.v1.ListFeedsResponse> + getListFeedsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.ListFeedsRequest, com.google.cloud.asset.v1.ListFeedsResponse> + getListFeedsMethod; + if ((getListFeedsMethod = AssetServiceGrpc.getListFeedsMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getListFeedsMethod = AssetServiceGrpc.getListFeedsMethod) == null) { + AssetServiceGrpc.getListFeedsMethod = + getListFeedsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFeeds")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.ListFeedsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.ListFeedsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ListFeeds")) + .build(); + } + } + } + return getListFeedsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.UpdateFeedRequest, com.google.cloud.asset.v1.Feed> + getUpdateFeedMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFeed", + requestType = com.google.cloud.asset.v1.UpdateFeedRequest.class, + responseType = com.google.cloud.asset.v1.Feed.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.UpdateFeedRequest, com.google.cloud.asset.v1.Feed> + getUpdateFeedMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.UpdateFeedRequest, com.google.cloud.asset.v1.Feed> + getUpdateFeedMethod; + if ((getUpdateFeedMethod = AssetServiceGrpc.getUpdateFeedMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getUpdateFeedMethod = AssetServiceGrpc.getUpdateFeedMethod) == null) { + AssetServiceGrpc.getUpdateFeedMethod = + getUpdateFeedMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFeed")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.UpdateFeedRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.Feed.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("UpdateFeed")) + .build(); + } + } + } + return getUpdateFeedMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.DeleteFeedRequest, com.google.protobuf.Empty> + getDeleteFeedMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFeed", + requestType = com.google.cloud.asset.v1.DeleteFeedRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.DeleteFeedRequest, com.google.protobuf.Empty> + getDeleteFeedMethod() { + io.grpc.MethodDescriptor + getDeleteFeedMethod; + if ((getDeleteFeedMethod = AssetServiceGrpc.getDeleteFeedMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getDeleteFeedMethod = AssetServiceGrpc.getDeleteFeedMethod) == null) { + AssetServiceGrpc.getDeleteFeedMethod = + getDeleteFeedMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFeed")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.DeleteFeedRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("DeleteFeed")) + .build(); + } + } + } + return getDeleteFeedMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.SearchAllResourcesRequest, + com.google.cloud.asset.v1.SearchAllResourcesResponse> + getSearchAllResourcesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchAllResources", + requestType = com.google.cloud.asset.v1.SearchAllResourcesRequest.class, + responseType = com.google.cloud.asset.v1.SearchAllResourcesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.SearchAllResourcesRequest, + com.google.cloud.asset.v1.SearchAllResourcesResponse> + getSearchAllResourcesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.SearchAllResourcesRequest, + com.google.cloud.asset.v1.SearchAllResourcesResponse> + getSearchAllResourcesMethod; + if ((getSearchAllResourcesMethod = AssetServiceGrpc.getSearchAllResourcesMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getSearchAllResourcesMethod = AssetServiceGrpc.getSearchAllResourcesMethod) == null) { + AssetServiceGrpc.getSearchAllResourcesMethod = + getSearchAllResourcesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchAllResources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.SearchAllResourcesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.SearchAllResourcesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AssetServiceMethodDescriptorSupplier("SearchAllResources")) + .build(); + } + } + } + return getSearchAllResourcesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.SearchAllIamPoliciesRequest, + com.google.cloud.asset.v1.SearchAllIamPoliciesResponse> + getSearchAllIamPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchAllIamPolicies", + requestType = com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.class, + responseType = com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.SearchAllIamPoliciesRequest, + com.google.cloud.asset.v1.SearchAllIamPoliciesResponse> + getSearchAllIamPoliciesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.SearchAllIamPoliciesRequest, + com.google.cloud.asset.v1.SearchAllIamPoliciesResponse> + getSearchAllIamPoliciesMethod; + if ((getSearchAllIamPoliciesMethod = AssetServiceGrpc.getSearchAllIamPoliciesMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getSearchAllIamPoliciesMethod = AssetServiceGrpc.getSearchAllIamPoliciesMethod) + == null) { + AssetServiceGrpc.getSearchAllIamPoliciesMethod = + getSearchAllIamPoliciesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SearchAllIamPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.SearchAllIamPoliciesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.SearchAllIamPoliciesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AssetServiceMethodDescriptorSupplier("SearchAllIamPolicies")) + .build(); + } + } + } + return getSearchAllIamPoliciesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.AnalyzeIamPolicyRequest, + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse> + getAnalyzeIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AnalyzeIamPolicy", + requestType = com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.class, + responseType = com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.AnalyzeIamPolicyRequest, + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse> + getAnalyzeIamPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.AnalyzeIamPolicyRequest, + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse> + getAnalyzeIamPolicyMethod; + if ((getAnalyzeIamPolicyMethod = AssetServiceGrpc.getAnalyzeIamPolicyMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getAnalyzeIamPolicyMethod = AssetServiceGrpc.getAnalyzeIamPolicyMethod) == null) { + AssetServiceGrpc.getAnalyzeIamPolicyMethod = + getAnalyzeIamPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnalyzeIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.AnalyzeIamPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AssetServiceMethodDescriptorSupplier("AnalyzeIamPolicy")) + .build(); + } + } + } + return getAnalyzeIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest, + com.google.longrunning.Operation> + getAnalyzeIamPolicyLongrunningMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AnalyzeIamPolicyLongrunning", + requestType = com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest, + com.google.longrunning.Operation> + getAnalyzeIamPolicyLongrunningMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest, + com.google.longrunning.Operation> + getAnalyzeIamPolicyLongrunningMethod; + if ((getAnalyzeIamPolicyLongrunningMethod = + AssetServiceGrpc.getAnalyzeIamPolicyLongrunningMethod) + == null) { + synchronized (AssetServiceGrpc.class) { + if ((getAnalyzeIamPolicyLongrunningMethod = + AssetServiceGrpc.getAnalyzeIamPolicyLongrunningMethod) + == null) { + AssetServiceGrpc.getAnalyzeIamPolicyLongrunningMethod = + getAnalyzeIamPolicyLongrunningMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "AnalyzeIamPolicyLongrunning")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AssetServiceMethodDescriptorSupplier("AnalyzeIamPolicyLongrunning")) + .build(); + } + } + } + return getAnalyzeIamPolicyLongrunningMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.AnalyzeMoveRequest, + com.google.cloud.asset.v1.AnalyzeMoveResponse> + getAnalyzeMoveMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AnalyzeMove", + requestType = com.google.cloud.asset.v1.AnalyzeMoveRequest.class, + responseType = com.google.cloud.asset.v1.AnalyzeMoveResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.AnalyzeMoveRequest, + com.google.cloud.asset.v1.AnalyzeMoveResponse> + getAnalyzeMoveMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.AnalyzeMoveRequest, + com.google.cloud.asset.v1.AnalyzeMoveResponse> + getAnalyzeMoveMethod; + if ((getAnalyzeMoveMethod = AssetServiceGrpc.getAnalyzeMoveMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getAnalyzeMoveMethod = AssetServiceGrpc.getAnalyzeMoveMethod) == null) { + AssetServiceGrpc.getAnalyzeMoveMethod = + getAnalyzeMoveMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnalyzeMove")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.AnalyzeMoveRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.AnalyzeMoveResponse.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("AnalyzeMove")) + .build(); + } + } + } + return getAnalyzeMoveMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.QueryAssetsRequest, + com.google.cloud.asset.v1.QueryAssetsResponse> + getQueryAssetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryAssets", + requestType = com.google.cloud.asset.v1.QueryAssetsRequest.class, + responseType = com.google.cloud.asset.v1.QueryAssetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.QueryAssetsRequest, + com.google.cloud.asset.v1.QueryAssetsResponse> + getQueryAssetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.QueryAssetsRequest, + com.google.cloud.asset.v1.QueryAssetsResponse> + getQueryAssetsMethod; + if ((getQueryAssetsMethod = AssetServiceGrpc.getQueryAssetsMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getQueryAssetsMethod = AssetServiceGrpc.getQueryAssetsMethod) == null) { + AssetServiceGrpc.getQueryAssetsMethod = + getQueryAssetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.QueryAssetsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.QueryAssetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("QueryAssets")) + .build(); + } + } + } + return getQueryAssetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.CreateSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery> + getCreateSavedQueryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSavedQuery", + requestType = com.google.cloud.asset.v1.CreateSavedQueryRequest.class, + responseType = com.google.cloud.asset.v1.SavedQuery.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.CreateSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery> + getCreateSavedQueryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.CreateSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery> + getCreateSavedQueryMethod; + if ((getCreateSavedQueryMethod = AssetServiceGrpc.getCreateSavedQueryMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getCreateSavedQueryMethod = AssetServiceGrpc.getCreateSavedQueryMethod) == null) { + AssetServiceGrpc.getCreateSavedQueryMethod = + getCreateSavedQueryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSavedQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.CreateSavedQueryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.SavedQuery.getDefaultInstance())) + .setSchemaDescriptor( + new AssetServiceMethodDescriptorSupplier("CreateSavedQuery")) + .build(); + } + } + } + return getCreateSavedQueryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.GetSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery> + getGetSavedQueryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSavedQuery", + requestType = com.google.cloud.asset.v1.GetSavedQueryRequest.class, + responseType = com.google.cloud.asset.v1.SavedQuery.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.GetSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery> + getGetSavedQueryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.GetSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery> + getGetSavedQueryMethod; + if ((getGetSavedQueryMethod = AssetServiceGrpc.getGetSavedQueryMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getGetSavedQueryMethod = AssetServiceGrpc.getGetSavedQueryMethod) == null) { + AssetServiceGrpc.getGetSavedQueryMethod = + getGetSavedQueryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSavedQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.GetSavedQueryRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.SavedQuery.getDefaultInstance())) + .setSchemaDescriptor( + new AssetServiceMethodDescriptorSupplier("GetSavedQuery")) + .build(); + } + } + } + return getGetSavedQueryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.ListSavedQueriesRequest, + com.google.cloud.asset.v1.ListSavedQueriesResponse> + getListSavedQueriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSavedQueries", + requestType = com.google.cloud.asset.v1.ListSavedQueriesRequest.class, + responseType = com.google.cloud.asset.v1.ListSavedQueriesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.ListSavedQueriesRequest, + com.google.cloud.asset.v1.ListSavedQueriesResponse> + getListSavedQueriesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.ListSavedQueriesRequest, + com.google.cloud.asset.v1.ListSavedQueriesResponse> + getListSavedQueriesMethod; + if ((getListSavedQueriesMethod = AssetServiceGrpc.getListSavedQueriesMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getListSavedQueriesMethod = AssetServiceGrpc.getListSavedQueriesMethod) == null) { + AssetServiceGrpc.getListSavedQueriesMethod = + getListSavedQueriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSavedQueries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.ListSavedQueriesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.ListSavedQueriesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AssetServiceMethodDescriptorSupplier("ListSavedQueries")) + .build(); + } + } + } + return getListSavedQueriesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.UpdateSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery> + getUpdateSavedQueryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSavedQuery", + requestType = com.google.cloud.asset.v1.UpdateSavedQueryRequest.class, + responseType = com.google.cloud.asset.v1.SavedQuery.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.UpdateSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery> + getUpdateSavedQueryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.UpdateSavedQueryRequest, com.google.cloud.asset.v1.SavedQuery> + getUpdateSavedQueryMethod; + if ((getUpdateSavedQueryMethod = AssetServiceGrpc.getUpdateSavedQueryMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getUpdateSavedQueryMethod = AssetServiceGrpc.getUpdateSavedQueryMethod) == null) { + AssetServiceGrpc.getUpdateSavedQueryMethod = + getUpdateSavedQueryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSavedQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.UpdateSavedQueryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.SavedQuery.getDefaultInstance())) + .setSchemaDescriptor( + new AssetServiceMethodDescriptorSupplier("UpdateSavedQuery")) + .build(); + } + } + } + return getUpdateSavedQueryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.DeleteSavedQueryRequest, com.google.protobuf.Empty> + getDeleteSavedQueryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSavedQuery", + requestType = com.google.cloud.asset.v1.DeleteSavedQueryRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.DeleteSavedQueryRequest, com.google.protobuf.Empty> + getDeleteSavedQueryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.DeleteSavedQueryRequest, com.google.protobuf.Empty> + getDeleteSavedQueryMethod; + if ((getDeleteSavedQueryMethod = AssetServiceGrpc.getDeleteSavedQueryMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getDeleteSavedQueryMethod = AssetServiceGrpc.getDeleteSavedQueryMethod) == null) { + AssetServiceGrpc.getDeleteSavedQueryMethod = + getDeleteSavedQueryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSavedQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.DeleteSavedQueryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AssetServiceMethodDescriptorSupplier("DeleteSavedQuery")) + .build(); + } + } + } + return getDeleteSavedQueryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse> + getBatchGetEffectiveIamPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchGetEffectiveIamPolicies", + requestType = com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.class, + responseType = com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse> + getBatchGetEffectiveIamPoliciesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse> + getBatchGetEffectiveIamPoliciesMethod; + if ((getBatchGetEffectiveIamPoliciesMethod = + AssetServiceGrpc.getBatchGetEffectiveIamPoliciesMethod) + == null) { + synchronized (AssetServiceGrpc.class) { + if ((getBatchGetEffectiveIamPoliciesMethod = + AssetServiceGrpc.getBatchGetEffectiveIamPoliciesMethod) + == null) { + AssetServiceGrpc.getBatchGetEffectiveIamPoliciesMethod = + getBatchGetEffectiveIamPoliciesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchGetEffectiveIamPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AssetServiceMethodDescriptorSupplier("BatchGetEffectiveIamPolicies")) + .build(); + } + } + } + return getBatchGetEffectiveIamPoliciesMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AssetServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceStub(channel, callOptions); + } + }; + return AssetServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AssetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceBlockingStub(channel, callOptions); + } + }; + return AssetServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AssetServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceFutureStub(channel, callOptions); + } + }; + return AssetServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
    +   * Asset service definition.
    +   * 
    + */ + public abstract static class AssetServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
    +     * Exports assets with time and resource types to a given Cloud Storage
    +     * location/BigQuery table. For Cloud Storage location destinations, the
    +     * output format is newline-delimited JSON. Each line represents a
    +     * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON format; for BigQuery table
    +     * destinations, the output table stores the fields in asset Protobuf as
    +     * columns. This API implements the [google.longrunning.Operation][google.longrunning.Operation] API,
    +     * which allows you to keep track of the export. We recommend intervals of at
    +     * least 2 seconds with exponential retry to poll the export operation result.
    +     * For regular-size resource parent, the export operation usually finishes
    +     * within 5 minutes.
    +     * 
    + */ + public void exportAssets( + com.google.cloud.asset.v1.ExportAssetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportAssetsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists assets with time and resource types and returns paged results in
    +     * response.
    +     * 
    + */ + public void listAssets( + com.google.cloud.asset.v1.ListAssetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAssetsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Batch gets the update history of assets that overlap a time window.
    +     * For IAM_POLICY content, this API outputs history when the asset and its
    +     * attached IAM POLICY both exist. This can create gaps in the output history.
    +     * Otherwise, this API outputs history with asset in both non-delete or
    +     * deleted status.
    +     * If a specified asset does not exist, this API returns an INVALID_ARGUMENT
    +     * error.
    +     * 
    + */ + public void batchGetAssetsHistory( + com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchGetAssetsHistoryMethod(), responseObserver); + } + + /** + * + * + *
    +     * Creates a feed in a parent project/folder/organization to listen to its
    +     * asset updates.
    +     * 
    + */ + public void createFeed( + com.google.cloud.asset.v1.CreateFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFeedMethod(), responseObserver); + } + + /** + * + * + *
    +     * Gets details about an asset feed.
    +     * 
    + */ + public void getFeed( + com.google.cloud.asset.v1.GetFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeedMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists all asset feeds in a parent project/folder/organization.
    +     * 
    + */ + public void listFeeds( + com.google.cloud.asset.v1.ListFeedsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFeedsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Updates an asset feed configuration.
    +     * 
    + */ + public void updateFeed( + com.google.cloud.asset.v1.UpdateFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFeedMethod(), responseObserver); + } + + /** + * + * + *
    +     * Deletes an asset feed.
    +     * 
    + */ + public void deleteFeed( + com.google.cloud.asset.v1.DeleteFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFeedMethod(), responseObserver); + } + + /** + * + * + *
    +     * Searches all Cloud resources within the specified scope, such as a project,
    +     * folder, or organization. The caller must be granted the
    +     * `cloudasset.assets.searchAllResources` permission on the desired scope,
    +     * otherwise the request will be rejected.
    +     * 
    + */ + public void searchAllResources( + com.google.cloud.asset.v1.SearchAllResourcesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchAllResourcesMethod(), responseObserver); + } + + /** + * + * + *
    +     * Searches all IAM policies within the specified scope, such as a project,
    +     * folder, or organization. The caller must be granted the
    +     * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
    +     * otherwise the request will be rejected.
    +     * 
    + */ + public void searchAllIamPolicies( + com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchAllIamPoliciesMethod(), responseObserver); + } + + /** + * + * + *
    +     * Analyzes IAM policies to answer which identities have what accesses on
    +     * which resources.
    +     * 
    + */ + public void analyzeIamPolicy( + com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAnalyzeIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
    +     * Analyzes IAM policies asynchronously to answer which identities have what
    +     * accesses on which resources, and writes the analysis results to a Google
    +     * Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
    +     * output format is the JSON format that represents a
    +     * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. This method implements the
    +     * [google.longrunning.Operation][google.longrunning.Operation], which allows you to track the operation
    +     * status. We recommend intervals of at least 2 seconds with exponential
    +     * backoff retry to poll the operation result. The metadata contains the
    +     * metadata for the long-running operation.
    +     * 
    + */ + public void analyzeIamPolicyLongrunning( + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAnalyzeIamPolicyLongrunningMethod(), responseObserver); + } + + /** + * + * + *
    +     * Analyze moving a resource to a specified destination without kicking off
    +     * the actual move. The analysis is best effort depending on the user's
    +     * permissions of viewing different hierarchical policies and configurations.
    +     * The policies and configuration are subject to change before the actual
    +     * resource migration takes place.
    +     * 
    + */ + public void analyzeMove( + com.google.cloud.asset.v1.AnalyzeMoveRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAnalyzeMoveMethod(), responseObserver); + } + + /** + * + * + *
    +     * Issue a job that queries assets using a SQL statement compatible with
    +     * [BigQuery Standard
    +     * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
    +     * If the query execution finishes within timeout and there's no pagination,
    +     * the full query results will be returned in the `QueryAssetsResponse`.
    +     * Otherwise, full query results can be obtained by issuing extra requests
    +     * with the `job_reference` from the a previous `QueryAssets` call.
    +     * Note, the query result has approximately 10 GB limitation enforced by
    +     * BigQuery
    +     * https://cloud.google.com/bigquery/docs/best-practices-performance-output,
    +     * queries return larger results will result in errors.
    +     * 
    + */ + public void queryAssets( + com.google.cloud.asset.v1.QueryAssetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryAssetsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Creates a saved query in a parent project/folder/organization.
    +     * 
    + */ + public void createSavedQuery( + com.google.cloud.asset.v1.CreateSavedQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSavedQueryMethod(), responseObserver); + } + + /** + * + * + *
    +     * Gets details about a saved query.
    +     * 
    + */ + public void getSavedQuery( + com.google.cloud.asset.v1.GetSavedQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSavedQueryMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists all saved queries in a parent project/folder/organization.
    +     * 
    + */ + public void listSavedQueries( + com.google.cloud.asset.v1.ListSavedQueriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSavedQueriesMethod(), responseObserver); + } + + /** + * + * + *
    +     * Updates a saved query.
    +     * 
    + */ + public void updateSavedQuery( + com.google.cloud.asset.v1.UpdateSavedQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSavedQueryMethod(), responseObserver); + } + + /** + * + * + *
    +     * Deletes a saved query.
    +     * 
    + */ + public void deleteSavedQuery( + com.google.cloud.asset.v1.DeleteSavedQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSavedQueryMethod(), responseObserver); + } + + /** + * + * + *
    +     * Gets effective IAM policies for a batch of resources.
    +     * 
    + */ + public void batchGetEffectiveIamPolicies( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchGetEffectiveIamPoliciesMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getExportAssetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.ExportAssetsRequest, + com.google.longrunning.Operation>(this, METHODID_EXPORT_ASSETS))) + .addMethod( + getListAssetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.ListAssetsRequest, + com.google.cloud.asset.v1.ListAssetsResponse>(this, METHODID_LIST_ASSETS))) + .addMethod( + getBatchGetAssetsHistoryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest, + com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse>( + this, METHODID_BATCH_GET_ASSETS_HISTORY))) + .addMethod( + getCreateFeedMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.CreateFeedRequest, com.google.cloud.asset.v1.Feed>( + this, METHODID_CREATE_FEED))) + .addMethod( + getGetFeedMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.GetFeedRequest, com.google.cloud.asset.v1.Feed>( + this, METHODID_GET_FEED))) + .addMethod( + getListFeedsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.ListFeedsRequest, + com.google.cloud.asset.v1.ListFeedsResponse>(this, METHODID_LIST_FEEDS))) + .addMethod( + getUpdateFeedMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.UpdateFeedRequest, com.google.cloud.asset.v1.Feed>( + this, METHODID_UPDATE_FEED))) + .addMethod( + getDeleteFeedMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.DeleteFeedRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_FEED))) + .addMethod( + getSearchAllResourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.SearchAllResourcesRequest, + com.google.cloud.asset.v1.SearchAllResourcesResponse>( + this, METHODID_SEARCH_ALL_RESOURCES))) + .addMethod( + getSearchAllIamPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.SearchAllIamPoliciesRequest, + com.google.cloud.asset.v1.SearchAllIamPoliciesResponse>( + this, METHODID_SEARCH_ALL_IAM_POLICIES))) + .addMethod( + getAnalyzeIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.AnalyzeIamPolicyRequest, + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse>( + this, METHODID_ANALYZE_IAM_POLICY))) + .addMethod( + getAnalyzeIamPolicyLongrunningMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest, + com.google.longrunning.Operation>( + this, METHODID_ANALYZE_IAM_POLICY_LONGRUNNING))) + .addMethod( + getAnalyzeMoveMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.AnalyzeMoveRequest, + com.google.cloud.asset.v1.AnalyzeMoveResponse>(this, METHODID_ANALYZE_MOVE))) + .addMethod( + getQueryAssetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.QueryAssetsRequest, + com.google.cloud.asset.v1.QueryAssetsResponse>(this, METHODID_QUERY_ASSETS))) + .addMethod( + getCreateSavedQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.CreateSavedQueryRequest, + com.google.cloud.asset.v1.SavedQuery>(this, METHODID_CREATE_SAVED_QUERY))) + .addMethod( + getGetSavedQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.GetSavedQueryRequest, + com.google.cloud.asset.v1.SavedQuery>(this, METHODID_GET_SAVED_QUERY))) + .addMethod( + getListSavedQueriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.ListSavedQueriesRequest, + com.google.cloud.asset.v1.ListSavedQueriesResponse>( + this, METHODID_LIST_SAVED_QUERIES))) + .addMethod( + getUpdateSavedQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.UpdateSavedQueryRequest, + com.google.cloud.asset.v1.SavedQuery>(this, METHODID_UPDATE_SAVED_QUERY))) + .addMethod( + getDeleteSavedQueryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.DeleteSavedQueryRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_SAVED_QUERY))) + .addMethod( + getBatchGetEffectiveIamPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse>( + this, METHODID_BATCH_GET_EFFECTIVE_IAM_POLICIES))) + .build(); + } + } + + /** + * + * + *
    +   * Asset service definition.
    +   * 
    + */ + public static final class AssetServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AssetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceStub(channel, callOptions); + } + + /** + * + * + *
    +     * Exports assets with time and resource types to a given Cloud Storage
    +     * location/BigQuery table. For Cloud Storage location destinations, the
    +     * output format is newline-delimited JSON. Each line represents a
    +     * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON format; for BigQuery table
    +     * destinations, the output table stores the fields in asset Protobuf as
    +     * columns. This API implements the [google.longrunning.Operation][google.longrunning.Operation] API,
    +     * which allows you to keep track of the export. We recommend intervals of at
    +     * least 2 seconds with exponential retry to poll the export operation result.
    +     * For regular-size resource parent, the export operation usually finishes
    +     * within 5 minutes.
    +     * 
    + */ + public void exportAssets( + com.google.cloud.asset.v1.ExportAssetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportAssetsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Lists assets with time and resource types and returns paged results in
    +     * response.
    +     * 
    + */ + public void listAssets( + com.google.cloud.asset.v1.ListAssetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAssetsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
    +     * Batch gets the update history of assets that overlap a time window.
    +     * For IAM_POLICY content, this API outputs history when the asset and its
    +     * attached IAM POLICY both exist. This can create gaps in the output history.
    +     * Otherwise, this API outputs history with asset in both non-delete or
    +     * deleted status.
    +     * If a specified asset does not exist, this API returns an INVALID_ARGUMENT
    +     * error.
    +     * 
    + */ + public void batchGetAssetsHistory( + com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchGetAssetsHistoryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Creates a feed in a parent project/folder/organization to listen to its
    +     * asset updates.
    +     * 
    + */ + public void createFeed( + com.google.cloud.asset.v1.CreateFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFeedMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
    +     * Gets details about an asset feed.
    +     * 
    + */ + public void getFeed( + com.google.cloud.asset.v1.GetFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFeedMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
    +     * Lists all asset feeds in a parent project/folder/organization.
    +     * 
    + */ + public void listFeeds( + com.google.cloud.asset.v1.ListFeedsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFeedsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
    +     * Updates an asset feed configuration.
    +     * 
    + */ + public void updateFeed( + com.google.cloud.asset.v1.UpdateFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFeedMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
    +     * Deletes an asset feed.
    +     * 
    + */ + public void deleteFeed( + com.google.cloud.asset.v1.DeleteFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFeedMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
    +     * Searches all Cloud resources within the specified scope, such as a project,
    +     * folder, or organization. The caller must be granted the
    +     * `cloudasset.assets.searchAllResources` permission on the desired scope,
    +     * otherwise the request will be rejected.
    +     * 
    + */ + public void searchAllResources( + com.google.cloud.asset.v1.SearchAllResourcesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchAllResourcesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Searches all IAM policies within the specified scope, such as a project,
    +     * folder, or organization. The caller must be granted the
    +     * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
    +     * otherwise the request will be rejected.
    +     * 
    + */ + public void searchAllIamPolicies( + com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchAllIamPoliciesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Analyzes IAM policies to answer which identities have what accesses on
    +     * which resources.
    +     * 
    + */ + public void analyzeIamPolicy( + com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAnalyzeIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Analyzes IAM policies asynchronously to answer which identities have what
    +     * accesses on which resources, and writes the analysis results to a Google
    +     * Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
    +     * output format is the JSON format that represents a
    +     * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. This method implements the
    +     * [google.longrunning.Operation][google.longrunning.Operation], which allows you to track the operation
    +     * status. We recommend intervals of at least 2 seconds with exponential
    +     * backoff retry to poll the operation result. The metadata contains the
    +     * metadata for the long-running operation.
    +     * 
    + */ + public void analyzeIamPolicyLongrunning( + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAnalyzeIamPolicyLongrunningMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Analyze moving a resource to a specified destination without kicking off
    +     * the actual move. The analysis is best effort depending on the user's
    +     * permissions of viewing different hierarchical policies and configurations.
    +     * The policies and configuration are subject to change before the actual
    +     * resource migration takes place.
    +     * 
    + */ + public void analyzeMove( + com.google.cloud.asset.v1.AnalyzeMoveRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAnalyzeMoveMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Issue a job that queries assets using a SQL statement compatible with
    +     * [BigQuery Standard
    +     * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
    +     * If the query execution finishes within timeout and there's no pagination,
    +     * the full query results will be returned in the `QueryAssetsResponse`.
    +     * Otherwise, full query results can be obtained by issuing extra requests
    +     * with the `job_reference` from the a previous `QueryAssets` call.
    +     * Note, the query result has approximately 10 GB limitation enforced by
    +     * BigQuery
    +     * https://cloud.google.com/bigquery/docs/best-practices-performance-output,
    +     * queries return larger results will result in errors.
    +     * 
    + */ + public void queryAssets( + com.google.cloud.asset.v1.QueryAssetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryAssetsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Creates a saved query in a parent project/folder/organization.
    +     * 
    + */ + public void createSavedQuery( + com.google.cloud.asset.v1.CreateSavedQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSavedQueryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Gets details about a saved query.
    +     * 
    + */ + public void getSavedQuery( + com.google.cloud.asset.v1.GetSavedQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSavedQueryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Lists all saved queries in a parent project/folder/organization.
    +     * 
    + */ + public void listSavedQueries( + com.google.cloud.asset.v1.ListSavedQueriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSavedQueriesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Updates a saved query.
    +     * 
    + */ + public void updateSavedQuery( + com.google.cloud.asset.v1.UpdateSavedQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSavedQueryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Deletes a saved query.
    +     * 
    + */ + public void deleteSavedQuery( + com.google.cloud.asset.v1.DeleteSavedQueryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSavedQueryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Gets effective IAM policies for a batch of resources.
    +     * 
    + */ + public void batchGetEffectiveIamPolicies( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchGetEffectiveIamPoliciesMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
    +   * Asset service definition.
    +   * 
    + */ + public static final class AssetServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AssetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssetServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
    +     * Exports assets with time and resource types to a given Cloud Storage
    +     * location/BigQuery table. For Cloud Storage location destinations, the
    +     * output format is newline-delimited JSON. Each line represents a
    +     * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON format; for BigQuery table
    +     * destinations, the output table stores the fields in asset Protobuf as
    +     * columns. This API implements the [google.longrunning.Operation][google.longrunning.Operation] API,
    +     * which allows you to keep track of the export. We recommend intervals of at
    +     * least 2 seconds with exponential retry to poll the export operation result.
    +     * For regular-size resource parent, the export operation usually finishes
    +     * within 5 minutes.
    +     * 
    + */ + public com.google.longrunning.Operation exportAssets( + com.google.cloud.asset.v1.ExportAssetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportAssetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists assets with time and resource types and returns paged results in
    +     * response.
    +     * 
    + */ + public com.google.cloud.asset.v1.ListAssetsResponse listAssets( + com.google.cloud.asset.v1.ListAssetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAssetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Batch gets the update history of assets that overlap a time window.
    +     * For IAM_POLICY content, this API outputs history when the asset and its
    +     * attached IAM POLICY both exist. This can create gaps in the output history.
    +     * Otherwise, this API outputs history with asset in both non-delete or
    +     * deleted status.
    +     * If a specified asset does not exist, this API returns an INVALID_ARGUMENT
    +     * error.
    +     * 
    + */ + public com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse batchGetAssetsHistory( + com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchGetAssetsHistoryMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Creates a feed in a parent project/folder/organization to listen to its
    +     * asset updates.
    +     * 
    + */ + public com.google.cloud.asset.v1.Feed createFeed( + com.google.cloud.asset.v1.CreateFeedRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFeedMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets details about an asset feed.
    +     * 
    + */ + public com.google.cloud.asset.v1.Feed getFeed( + com.google.cloud.asset.v1.GetFeedRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFeedMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists all asset feeds in a parent project/folder/organization.
    +     * 
    + */ + public com.google.cloud.asset.v1.ListFeedsResponse listFeeds( + com.google.cloud.asset.v1.ListFeedsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFeedsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Updates an asset feed configuration.
    +     * 
    + */ + public com.google.cloud.asset.v1.Feed updateFeed( + com.google.cloud.asset.v1.UpdateFeedRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFeedMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Deletes an asset feed.
    +     * 
    + */ + public com.google.protobuf.Empty deleteFeed( + com.google.cloud.asset.v1.DeleteFeedRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFeedMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Searches all Cloud resources within the specified scope, such as a project,
    +     * folder, or organization. The caller must be granted the
    +     * `cloudasset.assets.searchAllResources` permission on the desired scope,
    +     * otherwise the request will be rejected.
    +     * 
    + */ + public com.google.cloud.asset.v1.SearchAllResourcesResponse searchAllResources( + com.google.cloud.asset.v1.SearchAllResourcesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchAllResourcesMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Searches all IAM policies within the specified scope, such as a project,
    +     * folder, or organization. The caller must be granted the
    +     * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
    +     * otherwise the request will be rejected.
    +     * 
    + */ + public com.google.cloud.asset.v1.SearchAllIamPoliciesResponse searchAllIamPolicies( + com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchAllIamPoliciesMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Analyzes IAM policies to answer which identities have what accesses on
    +     * which resources.
    +     * 
    + */ + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse analyzeIamPolicy( + com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAnalyzeIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Analyzes IAM policies asynchronously to answer which identities have what
    +     * accesses on which resources, and writes the analysis results to a Google
    +     * Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
    +     * output format is the JSON format that represents a
    +     * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. This method implements the
    +     * [google.longrunning.Operation][google.longrunning.Operation], which allows you to track the operation
    +     * status. We recommend intervals of at least 2 seconds with exponential
    +     * backoff retry to poll the operation result. The metadata contains the
    +     * metadata for the long-running operation.
    +     * 
    + */ + public com.google.longrunning.Operation analyzeIamPolicyLongrunning( + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAnalyzeIamPolicyLongrunningMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Analyze moving a resource to a specified destination without kicking off
    +     * the actual move. The analysis is best effort depending on the user's
    +     * permissions of viewing different hierarchical policies and configurations.
    +     * The policies and configuration are subject to change before the actual
    +     * resource migration takes place.
    +     * 
    + */ + public com.google.cloud.asset.v1.AnalyzeMoveResponse analyzeMove( + com.google.cloud.asset.v1.AnalyzeMoveRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAnalyzeMoveMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Issue a job that queries assets using a SQL statement compatible with
    +     * [BigQuery Standard
    +     * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
    +     * If the query execution finishes within timeout and there's no pagination,
    +     * the full query results will be returned in the `QueryAssetsResponse`.
    +     * Otherwise, full query results can be obtained by issuing extra requests
    +     * with the `job_reference` from the a previous `QueryAssets` call.
    +     * Note, the query result has approximately 10 GB limitation enforced by
    +     * BigQuery
    +     * https://cloud.google.com/bigquery/docs/best-practices-performance-output,
    +     * queries return larger results will result in errors.
    +     * 
    + */ + public com.google.cloud.asset.v1.QueryAssetsResponse queryAssets( + com.google.cloud.asset.v1.QueryAssetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryAssetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Creates a saved query in a parent project/folder/organization.
    +     * 
    + */ + public com.google.cloud.asset.v1.SavedQuery createSavedQuery( + com.google.cloud.asset.v1.CreateSavedQueryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSavedQueryMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets details about a saved query.
    +     * 
    + */ + public com.google.cloud.asset.v1.SavedQuery getSavedQuery( + com.google.cloud.asset.v1.GetSavedQueryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSavedQueryMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists all saved queries in a parent project/folder/organization.
    +     * 
    + */ + public com.google.cloud.asset.v1.ListSavedQueriesResponse listSavedQueries( + com.google.cloud.asset.v1.ListSavedQueriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSavedQueriesMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Updates a saved query.
    +     * 
    + */ + public com.google.cloud.asset.v1.SavedQuery updateSavedQuery( + com.google.cloud.asset.v1.UpdateSavedQueryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSavedQueryMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Deletes a saved query.
    +     * 
    + */ + public com.google.protobuf.Empty deleteSavedQuery( + com.google.cloud.asset.v1.DeleteSavedQueryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSavedQueryMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets effective IAM policies for a batch of resources.
    +     * 
    + */ + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + batchGetEffectiveIamPolicies( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchGetEffectiveIamPoliciesMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
    +   * Asset service definition.
    +   * 
    + */ + public static final class AssetServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AssetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssetServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
    +     * Exports assets with time and resource types to a given Cloud Storage
    +     * location/BigQuery table. For Cloud Storage location destinations, the
    +     * output format is newline-delimited JSON. Each line represents a
    +     * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON format; for BigQuery table
    +     * destinations, the output table stores the fields in asset Protobuf as
    +     * columns. This API implements the [google.longrunning.Operation][google.longrunning.Operation] API,
    +     * which allows you to keep track of the export. We recommend intervals of at
    +     * least 2 seconds with exponential retry to poll the export operation result.
    +     * For regular-size resource parent, the export operation usually finishes
    +     * within 5 minutes.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + exportAssets(com.google.cloud.asset.v1.ExportAssetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportAssetsMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Lists assets with time and resource types and returns paged results in
    +     * response.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.asset.v1.ListAssetsResponse> + listAssets(com.google.cloud.asset.v1.ListAssetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAssetsMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Batch gets the update history of assets that overlap a time window.
    +     * For IAM_POLICY content, this API outputs history when the asset and its
    +     * attached IAM POLICY both exist. This can create gaps in the output history.
    +     * Otherwise, this API outputs history with asset in both non-delete or
    +     * deleted status.
    +     * If a specified asset does not exist, this API returns an INVALID_ARGUMENT
    +     * error.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse> + batchGetAssetsHistory(com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchGetAssetsHistoryMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Creates a feed in a parent project/folder/organization to listen to its
    +     * asset updates.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + createFeed(com.google.cloud.asset.v1.CreateFeedRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFeedMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Gets details about an asset feed.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + getFeed(com.google.cloud.asset.v1.GetFeedRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFeedMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Lists all asset feeds in a parent project/folder/organization.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.asset.v1.ListFeedsResponse> + listFeeds(com.google.cloud.asset.v1.ListFeedsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFeedsMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Updates an asset feed configuration.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + updateFeed(com.google.cloud.asset.v1.UpdateFeedRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFeedMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Deletes an asset feed.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture deleteFeed( + com.google.cloud.asset.v1.DeleteFeedRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFeedMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Searches all Cloud resources within the specified scope, such as a project,
    +     * folder, or organization. The caller must be granted the
    +     * `cloudasset.assets.searchAllResources` permission on the desired scope,
    +     * otherwise the request will be rejected.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.asset.v1.SearchAllResourcesResponse> + searchAllResources(com.google.cloud.asset.v1.SearchAllResourcesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchAllResourcesMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Searches all IAM policies within the specified scope, such as a project,
    +     * folder, or organization. The caller must be granted the
    +     * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
    +     * otherwise the request will be rejected.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.asset.v1.SearchAllIamPoliciesResponse> + searchAllIamPolicies(com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchAllIamPoliciesMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Analyzes IAM policies to answer which identities have what accesses on
    +     * which resources.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse> + analyzeIamPolicy(com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAnalyzeIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Analyzes IAM policies asynchronously to answer which identities have what
    +     * accesses on which resources, and writes the analysis results to a Google
    +     * Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
    +     * output format is the JSON format that represents a
    +     * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. This method implements the
    +     * [google.longrunning.Operation][google.longrunning.Operation], which allows you to track the operation
    +     * status. We recommend intervals of at least 2 seconds with exponential
    +     * backoff retry to poll the operation result. The metadata contains the
    +     * metadata for the long-running operation.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + analyzeIamPolicyLongrunning( + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAnalyzeIamPolicyLongrunningMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Analyze moving a resource to a specified destination without kicking off
    +     * the actual move. The analysis is best effort depending on the user's
    +     * permissions of viewing different hierarchical policies and configurations.
    +     * The policies and configuration are subject to change before the actual
    +     * resource migration takes place.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.asset.v1.AnalyzeMoveResponse> + analyzeMove(com.google.cloud.asset.v1.AnalyzeMoveRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAnalyzeMoveMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Issue a job that queries assets using a SQL statement compatible with
    +     * [BigQuery Standard
    +     * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
    +     * If the query execution finishes within timeout and there's no pagination,
    +     * the full query results will be returned in the `QueryAssetsResponse`.
    +     * Otherwise, full query results can be obtained by issuing extra requests
    +     * with the `job_reference` from the a previous `QueryAssets` call.
    +     * Note, the query result has approximately 10 GB limitation enforced by
    +     * BigQuery
    +     * https://cloud.google.com/bigquery/docs/best-practices-performance-output,
    +     * queries return larger results will result in errors.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.asset.v1.QueryAssetsResponse> + queryAssets(com.google.cloud.asset.v1.QueryAssetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryAssetsMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Creates a saved query in a parent project/folder/organization.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + createSavedQuery(com.google.cloud.asset.v1.CreateSavedQueryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSavedQueryMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Gets details about a saved query.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + getSavedQuery(com.google.cloud.asset.v1.GetSavedQueryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSavedQueryMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Lists all saved queries in a parent project/folder/organization.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.asset.v1.ListSavedQueriesResponse> + listSavedQueries(com.google.cloud.asset.v1.ListSavedQueriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSavedQueriesMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Updates a saved query.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + updateSavedQuery(com.google.cloud.asset.v1.UpdateSavedQueryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSavedQueryMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Deletes a saved query.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + deleteSavedQuery(com.google.cloud.asset.v1.DeleteSavedQueryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSavedQueryMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Gets effective IAM policies for a batch of resources.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse> + batchGetEffectiveIamPolicies( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchGetEffectiveIamPoliciesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_EXPORT_ASSETS = 0; + private static final int METHODID_LIST_ASSETS = 1; + private static final int METHODID_BATCH_GET_ASSETS_HISTORY = 2; + private static final int METHODID_CREATE_FEED = 3; + private static final int METHODID_GET_FEED = 4; + private static final int METHODID_LIST_FEEDS = 5; + private static final int METHODID_UPDATE_FEED = 6; + private static final int METHODID_DELETE_FEED = 7; + private static final int METHODID_SEARCH_ALL_RESOURCES = 8; + private static final int METHODID_SEARCH_ALL_IAM_POLICIES = 9; + private static final int METHODID_ANALYZE_IAM_POLICY = 10; + private static final int METHODID_ANALYZE_IAM_POLICY_LONGRUNNING = 11; + private static final int METHODID_ANALYZE_MOVE = 12; + private static final int METHODID_QUERY_ASSETS = 13; + private static final int METHODID_CREATE_SAVED_QUERY = 14; + private static final int METHODID_GET_SAVED_QUERY = 15; + private static final int METHODID_LIST_SAVED_QUERIES = 16; + private static final int METHODID_UPDATE_SAVED_QUERY = 17; + private static final int METHODID_DELETE_SAVED_QUERY = 18; + private static final int METHODID_BATCH_GET_EFFECTIVE_IAM_POLICIES = 19; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AssetServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AssetServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_EXPORT_ASSETS: + serviceImpl.exportAssets( + (com.google.cloud.asset.v1.ExportAssetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ASSETS: + serviceImpl.listAssets( + (com.google.cloud.asset.v1.ListAssetsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_BATCH_GET_ASSETS_HISTORY: + serviceImpl.batchGetAssetsHistory( + (com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_FEED: + serviceImpl.createFeed( + (com.google.cloud.asset.v1.CreateFeedRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_FEED: + serviceImpl.getFeed( + (com.google.cloud.asset.v1.GetFeedRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FEEDS: + serviceImpl.listFeeds( + (com.google.cloud.asset.v1.ListFeedsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_FEED: + serviceImpl.updateFeed( + (com.google.cloud.asset.v1.UpdateFeedRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FEED: + serviceImpl.deleteFeed( + (com.google.cloud.asset.v1.DeleteFeedRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEARCH_ALL_RESOURCES: + serviceImpl.searchAllResources( + (com.google.cloud.asset.v1.SearchAllResourcesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SEARCH_ALL_IAM_POLICIES: + serviceImpl.searchAllIamPolicies( + (com.google.cloud.asset.v1.SearchAllIamPoliciesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_ANALYZE_IAM_POLICY: + serviceImpl.analyzeIamPolicy( + (com.google.cloud.asset.v1.AnalyzeIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_ANALYZE_IAM_POLICY_LONGRUNNING: + serviceImpl.analyzeIamPolicyLongrunning( + (com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ANALYZE_MOVE: + serviceImpl.analyzeMove( + (com.google.cloud.asset.v1.AnalyzeMoveRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_QUERY_ASSETS: + serviceImpl.queryAssets( + (com.google.cloud.asset.v1.QueryAssetsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_SAVED_QUERY: + serviceImpl.createSavedQuery( + (com.google.cloud.asset.v1.CreateSavedQueryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SAVED_QUERY: + serviceImpl.getSavedQuery( + (com.google.cloud.asset.v1.GetSavedQueryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SAVED_QUERIES: + serviceImpl.listSavedQueries( + (com.google.cloud.asset.v1.ListSavedQueriesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_SAVED_QUERY: + serviceImpl.updateSavedQuery( + (com.google.cloud.asset.v1.UpdateSavedQueryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SAVED_QUERY: + serviceImpl.deleteSavedQuery( + (com.google.cloud.asset.v1.DeleteSavedQueryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_GET_EFFECTIVE_IAM_POLICIES: + serviceImpl.batchGetEffectiveIamPolicies( + (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class AssetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AssetServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AssetService"); + } + } + + private static final class AssetServiceFileDescriptorSupplier + extends AssetServiceBaseDescriptorSupplier { + AssetServiceFileDescriptorSupplier() {} + } + + private static final class AssetServiceMethodDescriptorSupplier + extends AssetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AssetServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AssetServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AssetServiceFileDescriptorSupplier()) + .addMethod(getExportAssetsMethod()) + .addMethod(getListAssetsMethod()) + .addMethod(getBatchGetAssetsHistoryMethod()) + .addMethod(getCreateFeedMethod()) + .addMethod(getGetFeedMethod()) + .addMethod(getListFeedsMethod()) + .addMethod(getUpdateFeedMethod()) + .addMethod(getDeleteFeedMethod()) + .addMethod(getSearchAllResourcesMethod()) + .addMethod(getSearchAllIamPoliciesMethod()) + .addMethod(getAnalyzeIamPolicyMethod()) + .addMethod(getAnalyzeIamPolicyLongrunningMethod()) + .addMethod(getAnalyzeMoveMethod()) + .addMethod(getQueryAssetsMethod()) + .addMethod(getCreateSavedQueryMethod()) + .addMethod(getGetSavedQueryMethod()) + .addMethod(getListSavedQueriesMethod()) + .addMethod(getUpdateSavedQueryMethod()) + .addMethod(getDeleteSavedQueryMethod()) + .addMethod(getBatchGetEffectiveIamPoliciesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-asset/v1p1beta1/grpc-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceGrpc.java b/java-asset/grpc-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceGrpc.java similarity index 51% rename from owl-bot-staging/java-asset/v1p1beta1/grpc-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceGrpc.java rename to java-asset/grpc-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceGrpc.java index 73fe8769d725..1190e5a9c825 100644 --- a/owl-bot-staging/java-asset/v1p1beta1/grpc-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceGrpc.java +++ b/java-asset/grpc-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.asset.v1p1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
      * Asset service definition.
      * 
    @@ -18,120 +35,155 @@ private AssetServiceGrpc() {} public static final String SERVICE_NAME = "google.cloud.asset.v1p1beta1.AssetService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getSearchAllResourcesMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest, + com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse> + getSearchAllResourcesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SearchAllResources", requestType = com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.class, responseType = com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSearchAllResourcesMethod() { - io.grpc.MethodDescriptor getSearchAllResourcesMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest, + com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse> + getSearchAllResourcesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest, + com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse> + getSearchAllResourcesMethod; if ((getSearchAllResourcesMethod = AssetServiceGrpc.getSearchAllResourcesMethod) == null) { synchronized (AssetServiceGrpc.class) { if ((getSearchAllResourcesMethod = AssetServiceGrpc.getSearchAllResourcesMethod) == null) { - AssetServiceGrpc.getSearchAllResourcesMethod = getSearchAllResourcesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchAllResources")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("SearchAllResources")) - .build(); + AssetServiceGrpc.getSearchAllResourcesMethod = + getSearchAllResourcesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchAllResources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AssetServiceMethodDescriptorSupplier("SearchAllResources")) + .build(); } } } return getSearchAllResourcesMethod; } - private static volatile io.grpc.MethodDescriptor getSearchAllIamPoliciesMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest, + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse> + getSearchAllIamPoliciesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SearchAllIamPolicies", requestType = com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.class, responseType = com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSearchAllIamPoliciesMethod() { - io.grpc.MethodDescriptor getSearchAllIamPoliciesMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest, + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse> + getSearchAllIamPoliciesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest, + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse> + getSearchAllIamPoliciesMethod; if ((getSearchAllIamPoliciesMethod = AssetServiceGrpc.getSearchAllIamPoliciesMethod) == null) { synchronized (AssetServiceGrpc.class) { - if ((getSearchAllIamPoliciesMethod = AssetServiceGrpc.getSearchAllIamPoliciesMethod) == null) { - AssetServiceGrpc.getSearchAllIamPoliciesMethod = getSearchAllIamPoliciesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchAllIamPolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("SearchAllIamPolicies")) - .build(); + if ((getSearchAllIamPoliciesMethod = AssetServiceGrpc.getSearchAllIamPoliciesMethod) + == null) { + AssetServiceGrpc.getSearchAllIamPoliciesMethod = + getSearchAllIamPoliciesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SearchAllIamPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AssetServiceMethodDescriptorSupplier("SearchAllIamPolicies")) + .build(); } } } return getSearchAllIamPoliciesMethod; } - /** - * Creates a new async stub that supports all call types for the service - */ + /** Creates a new async stub that supports all call types for the service */ public static AssetServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceStub(channel, callOptions); + } + }; return AssetServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static AssetServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { + public static AssetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceBlockingStub(channel, callOptions); + } + }; return AssetServiceBlockingStub.newStub(factory, channel); } - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static AssetServiceFutureStub newFutureStub( - io.grpc.Channel channel) { + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AssetServiceFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceFutureStub(channel, callOptions); + } + }; return AssetServiceFutureStub.newStub(factory, channel); } /** + * + * *
        * Asset service definition.
        * 
    */ - public static abstract class AssetServiceImplBase implements io.grpc.BindableService { + public abstract static class AssetServiceImplBase implements io.grpc.BindableService { /** + * + * *
          * Searches all the resources under a given accessible CRM scope
          * (project/folder/organization). This RPC gives callers
    @@ -141,12 +193,17 @@ public static abstract class AssetServiceImplBase implements io.grpc.BindableSer
          * scope, otherwise it will be rejected.
          * 
    */ - public void searchAllResources(com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchAllResourcesMethod(), responseObserver); + public void searchAllResources( + com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchAllResourcesMethod(), responseObserver); } /** + * + * *
          * Searches all the IAM policies under a given accessible CRM scope
          * (project/folder/organization). This RPC gives callers
    @@ -156,49 +213,56 @@ public void searchAllResources(com.google.cloud.asset.v1p1beta1.SearchAllResourc
          * requested scope, otherwise it will be rejected.
          * 
    */ - public void searchAllIamPolicies(com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchAllIamPoliciesMethod(), responseObserver); + public void searchAllIamPolicies( + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchAllIamPoliciesMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getSearchAllResourcesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest, - com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse>( - this, METHODID_SEARCH_ALL_RESOURCES))) + getSearchAllResourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest, + com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse>( + this, METHODID_SEARCH_ALL_RESOURCES))) .addMethod( - getSearchAllIamPoliciesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest, - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse>( - this, METHODID_SEARCH_ALL_IAM_POLICIES))) + getSearchAllIamPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest, + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse>( + this, METHODID_SEARCH_ALL_IAM_POLICIES))) .build(); } } /** + * + * *
        * Asset service definition.
        * 
    */ - public static final class AssetServiceStub extends io.grpc.stub.AbstractAsyncStub { - private AssetServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class AssetServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AssetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected AssetServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected AssetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AssetServiceStub(channel, callOptions); } /** + * + * *
          * Searches all the resources under a given accessible CRM scope
          * (project/folder/organization). This RPC gives callers
    @@ -208,13 +272,19 @@ protected AssetServiceStub build(
          * scope, otherwise it will be rejected.
          * 
    */ - public void searchAllResources(com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void searchAllResources( + com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchAllResourcesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getSearchAllResourcesMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
          * Searches all the IAM policies under a given accessible CRM scope
          * (project/folder/organization). This RPC gives callers
    @@ -224,21 +294,27 @@ public void searchAllResources(com.google.cloud.asset.v1p1beta1.SearchAllResourc
          * requested scope, otherwise it will be rejected.
          * 
    */ - public void searchAllIamPolicies(com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void searchAllIamPolicies( + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchAllIamPoliciesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getSearchAllIamPoliciesMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
        * Asset service definition.
        * 
    */ - public static final class AssetServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private AssetServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class AssetServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AssetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -249,6 +325,8 @@ protected AssetServiceBlockingStub build( } /** + * + * *
          * Searches all the resources under a given accessible CRM scope
          * (project/folder/organization). This RPC gives callers
    @@ -258,12 +336,15 @@ protected AssetServiceBlockingStub build(
          * scope, otherwise it will be rejected.
          * 
    */ - public com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse searchAllResources(com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest request) { + public com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse searchAllResources( + com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSearchAllResourcesMethod(), getCallOptions(), request); } /** + * + * *
          * Searches all the IAM policies under a given accessible CRM scope
          * (project/folder/organization). This RPC gives callers
    @@ -273,20 +354,23 @@ public com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse searchAllReso
          * requested scope, otherwise it will be rejected.
          * 
    */ - public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse searchAllIamPolicies(com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest request) { + public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse searchAllIamPolicies( + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSearchAllIamPoliciesMethod(), getCallOptions(), request); } } /** + * + * *
        * Asset service definition.
        * 
    */ - public static final class AssetServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private AssetServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class AssetServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AssetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -297,6 +381,8 @@ protected AssetServiceFutureStub build( } /** + * + * *
          * Searches all the resources under a given accessible CRM scope
          * (project/folder/organization). This RPC gives callers
    @@ -306,13 +392,16 @@ protected AssetServiceFutureStub build(
          * scope, otherwise it will be rejected.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture searchAllResources( - com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse> + searchAllResources(com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSearchAllResourcesMethod(), getCallOptions()), request); } /** + * + * *
          * Searches all the IAM policies under a given accessible CRM scope
          * (project/folder/organization). This RPC gives callers
    @@ -322,8 +411,9 @@ public com.google.common.util.concurrent.ListenableFuture
          */
    -    public com.google.common.util.concurrent.ListenableFuture searchAllIamPolicies(
    -        com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest request) {
    +    public com.google.common.util.concurrent.ListenableFuture<
    +            com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse>
    +        searchAllIamPolicies(com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest request) {
           return io.grpc.stub.ClientCalls.futureUnaryCall(
               getChannel().newCall(getSearchAllIamPoliciesMethod(), getCallOptions()), request);
         }
    @@ -332,11 +422,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
    -      io.grpc.stub.ServerCalls.UnaryMethod,
    -      io.grpc.stub.ServerCalls.ServerStreamingMethod,
    -      io.grpc.stub.ServerCalls.ClientStreamingMethod,
    -      io.grpc.stub.ServerCalls.BidiStreamingMethod {
    +  private static final class MethodHandlers
    +      implements io.grpc.stub.ServerCalls.UnaryMethod,
    +          io.grpc.stub.ServerCalls.ServerStreamingMethod,
    +          io.grpc.stub.ServerCalls.ClientStreamingMethod,
    +          io.grpc.stub.ServerCalls.BidiStreamingMethod {
         private final AssetServiceImplBase serviceImpl;
         private final int methodId;
     
    @@ -350,12 +440,18 @@ private static final class MethodHandlers implements
         public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
           switch (methodId) {
             case METHODID_SEARCH_ALL_RESOURCES:
    -          serviceImpl.searchAllResources((com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest) request,
    -              (io.grpc.stub.StreamObserver) responseObserver);
    +          serviceImpl.searchAllResources(
    +              (com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest) request,
    +              (io.grpc.stub.StreamObserver<
    +                      com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse>)
    +                  responseObserver);
               break;
             case METHODID_SEARCH_ALL_IAM_POLICIES:
    -          serviceImpl.searchAllIamPolicies((com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest) request,
    -              (io.grpc.stub.StreamObserver) responseObserver);
    +          serviceImpl.searchAllIamPolicies(
    +              (com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest) request,
    +              (io.grpc.stub.StreamObserver<
    +                      com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse>)
    +                  responseObserver);
               break;
             default:
               throw new AssertionError();
    @@ -373,8 +469,9 @@ public io.grpc.stub.StreamObserver invoke(
         }
       }
     
    -  private static abstract class AssetServiceBaseDescriptorSupplier
    -      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    +  private abstract static class AssetServiceBaseDescriptorSupplier
    +      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
    +          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
         AssetServiceBaseDescriptorSupplier() {}
     
         @java.lang.Override
    @@ -416,11 +513,13 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
           synchronized (AssetServiceGrpc.class) {
             result = serviceDescriptor;
             if (result == null) {
    -          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
    -              .setSchemaDescriptor(new AssetServiceFileDescriptorSupplier())
    -              .addMethod(getSearchAllResourcesMethod())
    -              .addMethod(getSearchAllIamPoliciesMethod())
    -              .build();
    +          serviceDescriptor =
    +              result =
    +                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
    +                      .setSchemaDescriptor(new AssetServiceFileDescriptorSupplier())
    +                      .addMethod(getSearchAllResourcesMethod())
    +                      .addMethod(getSearchAllIamPoliciesMethod())
    +                      .build();
             }
           }
         }
    diff --git a/java-asset/grpc-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceGrpc.java b/java-asset/grpc-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceGrpc.java
    new file mode 100644
    index 000000000000..c58318038531
    --- /dev/null
    +++ b/java-asset/grpc-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceGrpc.java
    @@ -0,0 +1,799 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +package com.google.cloud.asset.v1p2beta1;
    +
    +import static io.grpc.MethodDescriptor.generateFullMethodName;
    +
    +/**
    + *
    + *
    + * 
    + * Asset service definition.
    + * 
    + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/asset/v1p2beta1/asset_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AssetServiceGrpc { + + private AssetServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.asset.v1p2beta1.AssetService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p2beta1.CreateFeedRequest, com.google.cloud.asset.v1p2beta1.Feed> + getCreateFeedMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFeed", + requestType = com.google.cloud.asset.v1p2beta1.CreateFeedRequest.class, + responseType = com.google.cloud.asset.v1p2beta1.Feed.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p2beta1.CreateFeedRequest, com.google.cloud.asset.v1p2beta1.Feed> + getCreateFeedMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p2beta1.CreateFeedRequest, + com.google.cloud.asset.v1p2beta1.Feed> + getCreateFeedMethod; + if ((getCreateFeedMethod = AssetServiceGrpc.getCreateFeedMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getCreateFeedMethod = AssetServiceGrpc.getCreateFeedMethod) == null) { + AssetServiceGrpc.getCreateFeedMethod = + getCreateFeedMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFeed")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p2beta1.CreateFeedRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("CreateFeed")) + .build(); + } + } + } + return getCreateFeedMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p2beta1.GetFeedRequest, com.google.cloud.asset.v1p2beta1.Feed> + getGetFeedMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFeed", + requestType = com.google.cloud.asset.v1p2beta1.GetFeedRequest.class, + responseType = com.google.cloud.asset.v1p2beta1.Feed.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p2beta1.GetFeedRequest, com.google.cloud.asset.v1p2beta1.Feed> + getGetFeedMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p2beta1.GetFeedRequest, com.google.cloud.asset.v1p2beta1.Feed> + getGetFeedMethod; + if ((getGetFeedMethod = AssetServiceGrpc.getGetFeedMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getGetFeedMethod = AssetServiceGrpc.getGetFeedMethod) == null) { + AssetServiceGrpc.getGetFeedMethod = + getGetFeedMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFeed")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p2beta1.GetFeedRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("GetFeed")) + .build(); + } + } + } + return getGetFeedMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p2beta1.ListFeedsRequest, + com.google.cloud.asset.v1p2beta1.ListFeedsResponse> + getListFeedsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFeeds", + requestType = com.google.cloud.asset.v1p2beta1.ListFeedsRequest.class, + responseType = com.google.cloud.asset.v1p2beta1.ListFeedsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p2beta1.ListFeedsRequest, + com.google.cloud.asset.v1p2beta1.ListFeedsResponse> + getListFeedsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p2beta1.ListFeedsRequest, + com.google.cloud.asset.v1p2beta1.ListFeedsResponse> + getListFeedsMethod; + if ((getListFeedsMethod = AssetServiceGrpc.getListFeedsMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getListFeedsMethod = AssetServiceGrpc.getListFeedsMethod) == null) { + AssetServiceGrpc.getListFeedsMethod = + getListFeedsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFeeds")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p2beta1.ListFeedsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p2beta1.ListFeedsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ListFeeds")) + .build(); + } + } + } + return getListFeedsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p2beta1.UpdateFeedRequest, com.google.cloud.asset.v1p2beta1.Feed> + getUpdateFeedMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFeed", + requestType = com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.class, + responseType = com.google.cloud.asset.v1p2beta1.Feed.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p2beta1.UpdateFeedRequest, com.google.cloud.asset.v1p2beta1.Feed> + getUpdateFeedMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p2beta1.UpdateFeedRequest, + com.google.cloud.asset.v1p2beta1.Feed> + getUpdateFeedMethod; + if ((getUpdateFeedMethod = AssetServiceGrpc.getUpdateFeedMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getUpdateFeedMethod = AssetServiceGrpc.getUpdateFeedMethod) == null) { + AssetServiceGrpc.getUpdateFeedMethod = + getUpdateFeedMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFeed")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p2beta1.UpdateFeedRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("UpdateFeed")) + .build(); + } + } + } + return getUpdateFeedMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p2beta1.DeleteFeedRequest, com.google.protobuf.Empty> + getDeleteFeedMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFeed", + requestType = com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p2beta1.DeleteFeedRequest, com.google.protobuf.Empty> + getDeleteFeedMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p2beta1.DeleteFeedRequest, com.google.protobuf.Empty> + getDeleteFeedMethod; + if ((getDeleteFeedMethod = AssetServiceGrpc.getDeleteFeedMethod) == null) { + synchronized (AssetServiceGrpc.class) { + if ((getDeleteFeedMethod = AssetServiceGrpc.getDeleteFeedMethod) == null) { + AssetServiceGrpc.getDeleteFeedMethod = + getDeleteFeedMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFeed")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p2beta1.DeleteFeedRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("DeleteFeed")) + .build(); + } + } + } + return getDeleteFeedMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AssetServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceStub(channel, callOptions); + } + }; + return AssetServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AssetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceBlockingStub(channel, callOptions); + } + }; + return AssetServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AssetServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceFutureStub(channel, callOptions); + } + }; + return AssetServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
    +   * Asset service definition.
    +   * 
    + */ + public abstract static class AssetServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
    +     * Creates a feed in a parent project/folder/organization to listen to its
    +     * asset updates.
    +     * 
    + */ + public void createFeed( + com.google.cloud.asset.v1p2beta1.CreateFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFeedMethod(), responseObserver); + } + + /** + * + * + *
    +     * Gets details about an asset feed.
    +     * 
    + */ + public void getFeed( + com.google.cloud.asset.v1p2beta1.GetFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeedMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists all asset feeds in a parent project/folder/organization.
    +     * 
    + */ + public void listFeeds( + com.google.cloud.asset.v1p2beta1.ListFeedsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFeedsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Updates an asset feed configuration.
    +     * 
    + */ + public void updateFeed( + com.google.cloud.asset.v1p2beta1.UpdateFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFeedMethod(), responseObserver); + } + + /** + * + * + *
    +     * Deletes an asset feed.
    +     * 
    + */ + public void deleteFeed( + com.google.cloud.asset.v1p2beta1.DeleteFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFeedMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateFeedMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1p2beta1.CreateFeedRequest, + com.google.cloud.asset.v1p2beta1.Feed>(this, METHODID_CREATE_FEED))) + .addMethod( + getGetFeedMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1p2beta1.GetFeedRequest, + com.google.cloud.asset.v1p2beta1.Feed>(this, METHODID_GET_FEED))) + .addMethod( + getListFeedsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1p2beta1.ListFeedsRequest, + com.google.cloud.asset.v1p2beta1.ListFeedsResponse>( + this, METHODID_LIST_FEEDS))) + .addMethod( + getUpdateFeedMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1p2beta1.UpdateFeedRequest, + com.google.cloud.asset.v1p2beta1.Feed>(this, METHODID_UPDATE_FEED))) + .addMethod( + getDeleteFeedMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1p2beta1.DeleteFeedRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_FEED))) + .build(); + } + } + + /** + * + * + *
    +   * Asset service definition.
    +   * 
    + */ + public static final class AssetServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AssetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceStub(channel, callOptions); + } + + /** + * + * + *
    +     * Creates a feed in a parent project/folder/organization to listen to its
    +     * asset updates.
    +     * 
    + */ + public void createFeed( + com.google.cloud.asset.v1p2beta1.CreateFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFeedMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
    +     * Gets details about an asset feed.
    +     * 
    + */ + public void getFeed( + com.google.cloud.asset.v1p2beta1.GetFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFeedMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
    +     * Lists all asset feeds in a parent project/folder/organization.
    +     * 
    + */ + public void listFeeds( + com.google.cloud.asset.v1p2beta1.ListFeedsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFeedsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
    +     * Updates an asset feed configuration.
    +     * 
    + */ + public void updateFeed( + com.google.cloud.asset.v1p2beta1.UpdateFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFeedMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
    +     * Deletes an asset feed.
    +     * 
    + */ + public void deleteFeed( + com.google.cloud.asset.v1p2beta1.DeleteFeedRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFeedMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * + * + *
    +   * Asset service definition.
    +   * 
    + */ + public static final class AssetServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AssetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssetServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
    +     * Creates a feed in a parent project/folder/organization to listen to its
    +     * asset updates.
    +     * 
    + */ + public com.google.cloud.asset.v1p2beta1.Feed createFeed( + com.google.cloud.asset.v1p2beta1.CreateFeedRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFeedMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets details about an asset feed.
    +     * 
    + */ + public com.google.cloud.asset.v1p2beta1.Feed getFeed( + com.google.cloud.asset.v1p2beta1.GetFeedRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFeedMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists all asset feeds in a parent project/folder/organization.
    +     * 
    + */ + public com.google.cloud.asset.v1p2beta1.ListFeedsResponse listFeeds( + com.google.cloud.asset.v1p2beta1.ListFeedsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFeedsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Updates an asset feed configuration.
    +     * 
    + */ + public com.google.cloud.asset.v1p2beta1.Feed updateFeed( + com.google.cloud.asset.v1p2beta1.UpdateFeedRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFeedMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Deletes an asset feed.
    +     * 
    + */ + public com.google.protobuf.Empty deleteFeed( + com.google.cloud.asset.v1p2beta1.DeleteFeedRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFeedMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
    +   * Asset service definition.
    +   * 
    + */ + public static final class AssetServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AssetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssetServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
    +     * Creates a feed in a parent project/folder/organization to listen to its
    +     * asset updates.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + createFeed(com.google.cloud.asset.v1p2beta1.CreateFeedRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFeedMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Gets details about an asset feed.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + getFeed(com.google.cloud.asset.v1p2beta1.GetFeedRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFeedMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Lists all asset feeds in a parent project/folder/organization.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.asset.v1p2beta1.ListFeedsResponse> + listFeeds(com.google.cloud.asset.v1p2beta1.ListFeedsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFeedsMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Updates an asset feed configuration.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + updateFeed(com.google.cloud.asset.v1p2beta1.UpdateFeedRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFeedMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Deletes an asset feed.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture deleteFeed( + com.google.cloud.asset.v1p2beta1.DeleteFeedRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFeedMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_FEED = 0; + private static final int METHODID_GET_FEED = 1; + private static final int METHODID_LIST_FEEDS = 2; + private static final int METHODID_UPDATE_FEED = 3; + private static final int METHODID_DELETE_FEED = 4; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AssetServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AssetServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_FEED: + serviceImpl.createFeed( + (com.google.cloud.asset.v1p2beta1.CreateFeedRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_FEED: + serviceImpl.getFeed( + (com.google.cloud.asset.v1p2beta1.GetFeedRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_FEEDS: + serviceImpl.listFeeds( + (com.google.cloud.asset.v1p2beta1.ListFeedsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_FEED: + serviceImpl.updateFeed( + (com.google.cloud.asset.v1p2beta1.UpdateFeedRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_FEED: + serviceImpl.deleteFeed( + (com.google.cloud.asset.v1p2beta1.DeleteFeedRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class AssetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AssetServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AssetService"); + } + } + + private static final class AssetServiceFileDescriptorSupplier + extends AssetServiceBaseDescriptorSupplier { + AssetServiceFileDescriptorSupplier() {} + } + + private static final class AssetServiceMethodDescriptorSupplier + extends AssetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AssetServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AssetServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AssetServiceFileDescriptorSupplier()) + .addMethod(getCreateFeedMethod()) + .addMethod(getGetFeedMethod()) + .addMethod(getListFeedsMethod()) + .addMethod(getUpdateFeedMethod()) + .addMethod(getDeleteFeedMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-asset/v1p5beta1/grpc-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceGrpc.java b/java-asset/grpc-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceGrpc.java similarity index 50% rename from owl-bot-staging/java-asset/v1p5beta1/grpc-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceGrpc.java rename to java-asset/grpc-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceGrpc.java index f931499fa9d2..9172d7616ee4 100644 --- a/owl-bot-staging/java-asset/v1p5beta1/grpc-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceGrpc.java +++ b/java-asset/grpc-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.asset.v1p5beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
      * Asset service definition.
      * 
    @@ -18,150 +35,176 @@ private AssetServiceGrpc() {} public static final String SERVICE_NAME = "google.cloud.asset.v1p5beta1.AssetService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListAssetsMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p5beta1.ListAssetsRequest, + com.google.cloud.asset.v1p5beta1.ListAssetsResponse> + getListAssetsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListAssets", requestType = com.google.cloud.asset.v1p5beta1.ListAssetsRequest.class, responseType = com.google.cloud.asset.v1p5beta1.ListAssetsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListAssetsMethod() { - io.grpc.MethodDescriptor getListAssetsMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p5beta1.ListAssetsRequest, + com.google.cloud.asset.v1p5beta1.ListAssetsResponse> + getListAssetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p5beta1.ListAssetsRequest, + com.google.cloud.asset.v1p5beta1.ListAssetsResponse> + getListAssetsMethod; if ((getListAssetsMethod = AssetServiceGrpc.getListAssetsMethod) == null) { synchronized (AssetServiceGrpc.class) { if ((getListAssetsMethod = AssetServiceGrpc.getListAssetsMethod) == null) { - AssetServiceGrpc.getListAssetsMethod = getListAssetsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAssets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p5beta1.ListAssetsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p5beta1.ListAssetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ListAssets")) - .build(); + AssetServiceGrpc.getListAssetsMethod = + getListAssetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p5beta1.ListAssetsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p5beta1.ListAssetsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ListAssets")) + .build(); } } } return getListAssetsMethod; } - /** - * Creates a new async stub that supports all call types for the service - */ + /** Creates a new async stub that supports all call types for the service */ public static AssetServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceStub(channel, callOptions); + } + }; return AssetServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static AssetServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { + public static AssetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceBlockingStub(channel, callOptions); + } + }; return AssetServiceBlockingStub.newStub(factory, channel); } - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static AssetServiceFutureStub newFutureStub( - io.grpc.Channel channel) { + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AssetServiceFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceFutureStub(channel, callOptions); + } + }; return AssetServiceFutureStub.newStub(factory, channel); } /** + * + * *
        * Asset service definition.
        * 
    */ - public static abstract class AssetServiceImplBase implements io.grpc.BindableService { + public abstract static class AssetServiceImplBase implements io.grpc.BindableService { /** + * + * *
          * Lists assets with time and resource types and returns paged results in
          * response.
          * 
    */ - public void listAssets(com.google.cloud.asset.v1p5beta1.ListAssetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listAssets( + com.google.cloud.asset.v1p5beta1.ListAssetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAssetsMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListAssetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1p5beta1.ListAssetsRequest, - com.google.cloud.asset.v1p5beta1.ListAssetsResponse>( - this, METHODID_LIST_ASSETS))) + getListAssetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1p5beta1.ListAssetsRequest, + com.google.cloud.asset.v1p5beta1.ListAssetsResponse>( + this, METHODID_LIST_ASSETS))) .build(); } } /** + * + * *
        * Asset service definition.
        * 
    */ - public static final class AssetServiceStub extends io.grpc.stub.AbstractAsyncStub { - private AssetServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class AssetServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AssetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected AssetServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected AssetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AssetServiceStub(channel, callOptions); } /** + * + * *
          * Lists assets with time and resource types and returns paged results in
          * response.
          * 
    */ - public void listAssets(com.google.cloud.asset.v1p5beta1.ListAssetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listAssets( + com.google.cloud.asset.v1p5beta1.ListAssetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListAssetsMethod(), getCallOptions()), request, responseObserver); } } /** + * + * *
        * Asset service definition.
        * 
    */ - public static final class AssetServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private AssetServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class AssetServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AssetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -172,25 +215,30 @@ protected AssetServiceBlockingStub build( } /** + * + * *
          * Lists assets with time and resource types and returns paged results in
          * response.
          * 
    */ - public com.google.cloud.asset.v1p5beta1.ListAssetsResponse listAssets(com.google.cloud.asset.v1p5beta1.ListAssetsRequest request) { + public com.google.cloud.asset.v1p5beta1.ListAssetsResponse listAssets( + com.google.cloud.asset.v1p5beta1.ListAssetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListAssetsMethod(), getCallOptions(), request); } } /** + * + * *
        * Asset service definition.
        * 
    */ - public static final class AssetServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private AssetServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class AssetServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AssetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -201,13 +249,16 @@ protected AssetServiceFutureStub build( } /** + * + * *
          * Lists assets with time and resource types and returns paged results in
          * response.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture listAssets( - com.google.cloud.asset.v1p5beta1.ListAssetsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.asset.v1p5beta1.ListAssetsResponse> + listAssets(com.google.cloud.asset.v1p5beta1.ListAssetsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListAssetsMethod(), getCallOptions()), request); } @@ -215,11 +266,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AssetServiceImplBase serviceImpl; private final int methodId; @@ -233,8 +284,10 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_ASSETS: - serviceImpl.listAssets((com.google.cloud.asset.v1p5beta1.ListAssetsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listAssets( + (com.google.cloud.asset.v1p5beta1.ListAssetsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; default: throw new AssertionError(); @@ -252,8 +305,9 @@ public io.grpc.stub.StreamObserver invoke( } } - private static abstract class AssetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class AssetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { AssetServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -295,10 +349,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (AssetServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AssetServiceFileDescriptorSupplier()) - .addMethod(getListAssetsMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AssetServiceFileDescriptorSupplier()) + .addMethod(getListAssetsMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-asset/v1p7beta1/grpc-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceGrpc.java b/java-asset/grpc-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceGrpc.java similarity index 60% rename from owl-bot-staging/java-asset/v1p7beta1/grpc-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceGrpc.java rename to java-asset/grpc-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceGrpc.java index c443a291ea1f..b23942ff3872 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/grpc-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceGrpc.java +++ b/java-asset/grpc-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.asset.v1p7beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
      * Asset service definition.
      * 
    @@ -18,89 +35,101 @@ private AssetServiceGrpc() {} public static final String SERVICE_NAME = "google.cloud.asset.v1p7beta1.AssetService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getExportAssetsMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p7beta1.ExportAssetsRequest, com.google.longrunning.Operation> + getExportAssetsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ExportAssets", requestType = com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getExportAssetsMethod() { - io.grpc.MethodDescriptor getExportAssetsMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p7beta1.ExportAssetsRequest, com.google.longrunning.Operation> + getExportAssetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.asset.v1p7beta1.ExportAssetsRequest, com.google.longrunning.Operation> + getExportAssetsMethod; if ((getExportAssetsMethod = AssetServiceGrpc.getExportAssetsMethod) == null) { synchronized (AssetServiceGrpc.class) { if ((getExportAssetsMethod = AssetServiceGrpc.getExportAssetsMethod) == null) { - AssetServiceGrpc.getExportAssetsMethod = getExportAssetsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportAssets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ExportAssets")) - .build(); + AssetServiceGrpc.getExportAssetsMethod = + getExportAssetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.asset.v1p7beta1.ExportAssetsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ExportAssets")) + .build(); } } } return getExportAssetsMethod; } - /** - * Creates a new async stub that supports all call types for the service - */ + /** Creates a new async stub that supports all call types for the service */ public static AssetServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceStub(channel, callOptions); + } + }; return AssetServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static AssetServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { + public static AssetServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceBlockingStub(channel, callOptions); + } + }; return AssetServiceBlockingStub.newStub(factory, channel); } - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static AssetServiceFutureStub newFutureStub( - io.grpc.Channel channel) { + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AssetServiceFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssetServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceFutureStub(channel, callOptions); + } + }; return AssetServiceFutureStub.newStub(factory, channel); } /** + * + * *
        * Asset service definition.
        * 
    */ - public static abstract class AssetServiceImplBase implements io.grpc.BindableService { + public abstract static class AssetServiceImplBase implements io.grpc.BindableService { /** + * + * *
          * Exports assets with time and resource types to a given Cloud Storage
          * location/BigQuery table. For Cloud Storage location destinations, the
    @@ -115,42 +144,47 @@ public static abstract class AssetServiceImplBase implements io.grpc.BindableSer
          * 5 minutes.
          * 
    */ - public void exportAssets(com.google.cloud.asset.v1p7beta1.ExportAssetsRequest request, + public void exportAssets( + com.google.cloud.asset.v1p7beta1.ExportAssetsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportAssetsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportAssetsMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getExportAssetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1p7beta1.ExportAssetsRequest, - com.google.longrunning.Operation>( - this, METHODID_EXPORT_ASSETS))) + getExportAssetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.asset.v1p7beta1.ExportAssetsRequest, + com.google.longrunning.Operation>(this, METHODID_EXPORT_ASSETS))) .build(); } } /** + * + * *
        * Asset service definition.
        * 
    */ - public static final class AssetServiceStub extends io.grpc.stub.AbstractAsyncStub { - private AssetServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class AssetServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AssetServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected AssetServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected AssetServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AssetServiceStub(channel, callOptions); } /** + * + * *
          * Exports assets with time and resource types to a given Cloud Storage
          * location/BigQuery table. For Cloud Storage location destinations, the
    @@ -165,21 +199,26 @@ protected AssetServiceStub build(
          * 5 minutes.
          * 
    */ - public void exportAssets(com.google.cloud.asset.v1p7beta1.ExportAssetsRequest request, + public void exportAssets( + com.google.cloud.asset.v1p7beta1.ExportAssetsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportAssetsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getExportAssetsMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
        * Asset service definition.
        * 
    */ - public static final class AssetServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private AssetServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class AssetServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AssetServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -190,6 +229,8 @@ protected AssetServiceBlockingStub build( } /** + * + * *
          * Exports assets with time and resource types to a given Cloud Storage
          * location/BigQuery table. For Cloud Storage location destinations, the
    @@ -204,20 +245,23 @@ protected AssetServiceBlockingStub build(
          * 5 minutes.
          * 
    */ - public com.google.longrunning.Operation exportAssets(com.google.cloud.asset.v1p7beta1.ExportAssetsRequest request) { + public com.google.longrunning.Operation exportAssets( + com.google.cloud.asset.v1p7beta1.ExportAssetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getExportAssetsMethod(), getCallOptions(), request); } } /** + * + * *
        * Asset service definition.
        * 
    */ - public static final class AssetServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private AssetServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class AssetServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AssetServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -228,6 +272,8 @@ protected AssetServiceFutureStub build( } /** + * + * *
          * Exports assets with time and resource types to a given Cloud Storage
          * location/BigQuery table. For Cloud Storage location destinations, the
    @@ -242,8 +288,8 @@ protected AssetServiceFutureStub build(
          * 5 minutes.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture exportAssets( - com.google.cloud.asset.v1p7beta1.ExportAssetsRequest request) { + public com.google.common.util.concurrent.ListenableFuture + exportAssets(com.google.cloud.asset.v1p7beta1.ExportAssetsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExportAssetsMethod(), getCallOptions()), request); } @@ -251,11 +297,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AssetServiceImplBase serviceImpl; private final int methodId; @@ -269,7 +315,8 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_EXPORT_ASSETS: - serviceImpl.exportAssets((com.google.cloud.asset.v1p7beta1.ExportAssetsRequest) request, + serviceImpl.exportAssets( + (com.google.cloud.asset.v1p7beta1.ExportAssetsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -288,8 +335,9 @@ public io.grpc.stub.StreamObserver invoke( } } - private static abstract class AssetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class AssetServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { AssetServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -331,10 +379,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (AssetServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AssetServiceFileDescriptorSupplier()) - .addMethod(getExportAssetsMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AssetServiceFileDescriptorSupplier()) + .addMethod(getExportAssetsMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadata.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadata.java similarity index 61% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadata.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadata.java index 303d385ca7a2..71e8cf0b188d 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadata.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadata.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * Represents the metadata of the longrunning operation for the
      * AnalyzeIamPolicyLongrunning rpc.
    @@ -11,51 +28,58 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata}
      */
    -public final class AnalyzeIamPolicyLongrunningMetadata extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class AnalyzeIamPolicyLongrunningMetadata
    +    extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata)
         AnalyzeIamPolicyLongrunningMetadataOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use AnalyzeIamPolicyLongrunningMetadata.newBuilder() to construct.
    -  private AnalyzeIamPolicyLongrunningMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    +  private AnalyzeIamPolicyLongrunningMetadata(
    +      com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -  private AnalyzeIamPolicyLongrunningMetadata() {
    -  }
    +
    +  private AnalyzeIamPolicyLongrunningMetadata() {}
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(
    -      UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new AnalyzeIamPolicyLongrunningMetadata();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetServiceProto
    +        .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetServiceProto
    +        .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.class, com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.Builder.class);
    +            com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.class,
    +            com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.Builder.class);
       }
     
       public static final int CREATE_TIME_FIELD_NUMBER = 1;
       private com.google.protobuf.Timestamp createTime_;
       /**
    +   *
    +   *
        * 
        * Output only. The time the operation was created.
        * 
    * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -63,11 +87,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
        * Output only. The time the operation was created.
        * 
    * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -75,11 +103,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
        * Output only. The time the operation was created.
        * 
    * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -87,6 +118,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -98,8 +130,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -113,8 +144,7 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -124,17 +154,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata)) { return super.equals(obj); } - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata other = (com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata) obj; + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata other = + (com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -157,96 +187,104 @@ public int hashCode() { } public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata 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.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Represents the metadata of the longrunning operation for the
        * AnalyzeIamPolicyLongrunning rpc.
    @@ -254,33 +292,32 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata)
           com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadataOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetServiceProto
    +          .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetServiceProto
    +          .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.class, com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.Builder.class);
    +              com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.class,
    +              com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.newBuilder()
    -    private Builder() {
    -
    -    }
    +    private Builder() {}
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -294,13 +331,14 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetServiceProto
    +          .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor;
         }
     
         @java.lang.Override
    -    public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata getDefaultInstanceForType() {
    +    public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata
    +        getDefaultInstanceForType() {
           return com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.getDefaultInstance();
         }
     
    @@ -315,7 +353,8 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata buildPartial() {
    -      com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata result = new com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata(this);
    +      com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata result =
    +          new com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata(this);
           if (createTimeBuilder_ == null) {
             result.createTime_ = createTime_;
           } else {
    @@ -329,38 +368,39 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata buildPartia
         public Builder clone() {
           return super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.AnalyzeIamPolicyLongrunningMetadata) {
    -        return mergeFrom((com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata)other);
    +        return mergeFrom((com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -368,7 +408,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
         }
     
         public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata other) {
    -      if (other == com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.getDefaultInstance()) return this;
    +      if (other
    +          == com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.getDefaultInstance())
    +        return this;
           if (other.hasCreateTime()) {
             mergeCreateTime(other.getCreateTime());
           }
    @@ -398,19 +440,19 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
    -            case 10: {
    -              input.readMessage(
    -                  getCreateTimeFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -
    -              break;
    -            } // case 10
    -            default: {
    -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                done = true; // was an endgroup tag
    -              }
    -              break;
    -            } // default:
    +            case 10:
    +              {
    +                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -423,39 +465,58 @@ public Builder mergeFrom(
     
         private com.google.protobuf.Timestamp createTime_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
    +            com.google.protobuf.Timestamp,
    +            com.google.protobuf.Timestamp.Builder,
    +            com.google.protobuf.TimestampOrBuilder>
    +        createTimeBuilder_;
         /**
    +     *
    +     *
          * 
          * Output only. The time the operation was created.
          * 
    * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
          * Output only. The time the operation was created.
          * 
    * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
          * Output only. The time the operation was created.
          * 
    * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -471,14 +532,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * Output only. The time the operation was created.
          * 
    * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -489,17 +553,21 @@ public Builder setCreateTime( return this; } /** + * + * *
          * Output only. The time the operation was created.
          * 
    * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -511,11 +579,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * Output only. The time the operation was created.
          * 
    * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -529,55 +601,71 @@ public Builder clearCreateTime() { return this; } /** + * + * *
          * Output only. The time the operation was created.
          * 
    * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
          * Output only. The time the operation was created.
          * 
    * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
          * Output only. The time the operation was created.
          * 
    * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -587,12 +675,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata) - private static final com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata(); } @@ -601,27 +690,27 @@ public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnalyzeIamPolicyLongrunningMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnalyzeIamPolicyLongrunningMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -636,6 +725,4 @@ public com.google.protobuf.Parser getParser public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadataOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadataOrBuilder.java similarity index 53% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadataOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadataOrBuilder.java index a603612929d5..5b3153957535 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadataOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningMetadataOrBuilder.java @@ -1,36 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface AnalyzeIamPolicyLongrunningMetadataOrBuilder extends +public interface AnalyzeIamPolicyLongrunningMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Output only. The time the operation was created.
        * 
    * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
        * Output only. The time the operation was created.
        * 
    * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
        * Output only. The time the operation was created.
        * 
    * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequest.java similarity index 66% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequest.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequest.java index ee1691add12f..0c935ae74240 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequest.java @@ -1,61 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * A request message for [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
      * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest} */ -public final class AnalyzeIamPolicyLongrunningRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AnalyzeIamPolicyLongrunningRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest) AnalyzeIamPolicyLongrunningRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnalyzeIamPolicyLongrunningRequest.newBuilder() to construct. - private AnalyzeIamPolicyLongrunningRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AnalyzeIamPolicyLongrunningRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AnalyzeIamPolicyLongrunningRequest() { savedAnalysisQuery_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnalyzeIamPolicyLongrunningRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.class, com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.Builder.class); + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.class, + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.Builder.class); } public static final int ANALYSIS_QUERY_FIELD_NUMBER = 1; private com.google.cloud.asset.v1.IamPolicyAnalysisQuery analysisQuery_; /** + * + * *
        * Required. The request query.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the analysisQuery field is set. */ @java.lang.Override @@ -63,23 +88,34 @@ public boolean hasAnalysisQuery() { return analysisQuery_ != null; } /** + * + * *
        * Required. The request query.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The analysisQuery. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getAnalysisQuery() { - return analysisQuery_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() : analysisQuery_; + return analysisQuery_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() + : analysisQuery_; } /** + * + * *
        * Required. The request query.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQueryOrBuilder() { @@ -89,6 +125,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer public static final int SAVED_ANALYSIS_QUERY_FIELD_NUMBER = 3; private volatile java.lang.Object savedAnalysisQuery_; /** + * + * *
        * Optional. The name of a saved query, which must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -106,6 +144,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer
        * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The savedAnalysisQuery. */ @java.lang.Override @@ -114,14 +153,15 @@ public java.lang.String getSavedAnalysisQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); savedAnalysisQuery_ = s; return s; } } /** + * + * *
        * Optional. The name of a saved query, which must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -139,16 +179,15 @@ public java.lang.String getSavedAnalysisQuery() {
        * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for savedAnalysisQuery. */ @java.lang.Override - public com.google.protobuf.ByteString - getSavedAnalysisQueryBytes() { + public com.google.protobuf.ByteString getSavedAnalysisQueryBytes() { java.lang.Object ref = savedAnalysisQuery_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); savedAnalysisQuery_ = b; return b; } else { @@ -159,11 +198,16 @@ public java.lang.String getSavedAnalysisQuery() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig outputConfig_; /** + * + * *
        * Required. Output configuration indicating where the results will be output to.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -171,30 +215,43 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
        * Required. Output configuration indicating where the results will be output to.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
        * Required. Output configuration indicating where the results will be output to.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder + getOutputConfigOrBuilder() { return getOutputConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,8 +263,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (analysisQuery_ != null) { output.writeMessage(1, getAnalysisQuery()); } @@ -227,12 +283,10 @@ public int getSerializedSize() { size = 0; if (analysisQuery_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAnalysisQuery()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnalysisQuery()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedAnalysisQuery_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, savedAnalysisQuery_); @@ -245,24 +299,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest other = (com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest) obj; + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest other = + (com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest) obj; if (hasAnalysisQuery() != other.hasAnalysisQuery()) return false; if (hasAnalysisQuery()) { - if (!getAnalysisQuery() - .equals(other.getAnalysisQuery())) return false; + if (!getAnalysisQuery().equals(other.getAnalysisQuery())) return false; } - if (!getSavedAnalysisQuery() - .equals(other.getSavedAnalysisQuery())) return false; + if (!getSavedAnalysisQuery().equals(other.getSavedAnalysisQuery())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -291,129 +343,136 @@ public int hashCode() { } public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest 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.asset.v1.AnalyzeIamPolicyLongrunningRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * A request message for [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
        * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest) com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.class, com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.Builder.class); + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.class, + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,13 +494,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest getDefaultInstanceForType() { + public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest + getDefaultInstanceForType() { return com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.getDefaultInstance(); } @@ -456,7 +516,8 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest build() { @java.lang.Override public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest buildPartial() { - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest result = new com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest(this); + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest result = + new com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest(this); if (analysisQueryBuilder_ == null) { result.analysisQuery_ = analysisQuery_; } else { @@ -476,38 +537,39 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.AnalyzeIamPolicyLongrunningRequest) { - return mergeFrom((com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest)other); + return mergeFrom((com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest) other); } else { super.mergeFrom(other); return this; @@ -515,7 +577,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest other) { - if (other == com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.getDefaultInstance()) + return this; if (other.hasAnalysisQuery()) { mergeAnalysisQuery(other.getAnalysisQuery()); } @@ -552,31 +616,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getAnalysisQueryFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage(getAnalysisQueryFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 10 - case 18: { - input.readMessage( - getOutputConfigFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - case 26: { - savedAnalysisQuery_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: + { + savedAnalysisQuery_ = input.readStringRequireUtf8(); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -589,39 +653,58 @@ public Builder mergeFrom( private com.google.cloud.asset.v1.IamPolicyAnalysisQuery analysisQuery_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> analysisQueryBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> + analysisQueryBuilder_; /** + * + * *
          * Required. The request query.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the analysisQuery field is set. */ public boolean hasAnalysisQuery() { return analysisQueryBuilder_ != null || analysisQuery_ != null; } /** + * + * *
          * Required. The request query.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The analysisQuery. */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getAnalysisQuery() { if (analysisQueryBuilder_ == null) { - return analysisQuery_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() : analysisQuery_; + return analysisQuery_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() + : analysisQuery_; } else { return analysisQueryBuilder_.getMessage(); } } /** + * + * *
          * Required. The request query.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery value) { if (analysisQueryBuilder_ == null) { @@ -637,11 +720,15 @@ public Builder setAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery return this; } /** + * + * *
          * Required. The request query.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAnalysisQuery( com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder builderForValue) { @@ -655,17 +742,23 @@ public Builder setAnalysisQuery( return this; } /** + * + * *
          * Required. The request query.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery value) { if (analysisQueryBuilder_ == null) { if (analysisQuery_ != null) { analysisQuery_ = - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.newBuilder(analysisQuery_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.newBuilder(analysisQuery_) + .mergeFrom(value) + .buildPartial(); } else { analysisQuery_ = value; } @@ -677,11 +770,15 @@ public Builder mergeAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQue return this; } /** + * + * *
          * Required. The request query.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAnalysisQuery() { if (analysisQueryBuilder_ == null) { @@ -695,48 +792,64 @@ public Builder clearAnalysisQuery() { return this; } /** + * + * *
          * Required. The request query.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder getAnalysisQueryBuilder() { - + onChanged(); return getAnalysisQueryFieldBuilder().getBuilder(); } /** + * + * *
          * Required. The request query.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQueryOrBuilder() { if (analysisQueryBuilder_ != null) { return analysisQueryBuilder_.getMessageOrBuilder(); } else { - return analysisQuery_ == null ? - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() : analysisQuery_; + return analysisQuery_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() + : analysisQuery_; } } /** + * + * *
          * Required. The request query.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisQuery, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> getAnalysisQueryFieldBuilder() { if (analysisQueryBuilder_ == null) { - analysisQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder>( - getAnalysisQuery(), - getParentForChildren(), - isClean()); + analysisQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisQuery, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder>( + getAnalysisQuery(), getParentForChildren(), isClean()); analysisQuery_ = null; } return analysisQueryBuilder_; @@ -744,6 +857,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer private java.lang.Object savedAnalysisQuery_ = ""; /** + * + * *
          * Optional. The name of a saved query, which must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -761,13 +876,13 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer
          * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The savedAnalysisQuery. */ public java.lang.String getSavedAnalysisQuery() { java.lang.Object ref = savedAnalysisQuery_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); savedAnalysisQuery_ = s; return s; @@ -776,6 +891,8 @@ public java.lang.String getSavedAnalysisQuery() { } } /** + * + * *
          * Optional. The name of a saved query, which must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -793,15 +910,14 @@ public java.lang.String getSavedAnalysisQuery() {
          * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for savedAnalysisQuery. */ - public com.google.protobuf.ByteString - getSavedAnalysisQueryBytes() { + public com.google.protobuf.ByteString getSavedAnalysisQueryBytes() { java.lang.Object ref = savedAnalysisQuery_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); savedAnalysisQuery_ = b; return b; } else { @@ -809,6 +925,8 @@ public java.lang.String getSavedAnalysisQuery() { } } /** + * + * *
          * Optional. The name of a saved query, which must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -826,20 +944,22 @@ public java.lang.String getSavedAnalysisQuery() {
          * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The savedAnalysisQuery to set. * @return This builder for chaining. */ - public Builder setSavedAnalysisQuery( - java.lang.String value) { + public Builder setSavedAnalysisQuery(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + savedAnalysisQuery_ = value; onChanged(); return this; } /** + * + * *
          * Optional. The name of a saved query, which must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -857,15 +977,18 @@ public Builder setSavedAnalysisQuery(
          * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSavedAnalysisQuery() { - + savedAnalysisQuery_ = getDefaultInstance().getSavedAnalysisQuery(); onChanged(); return this; } /** + * + * *
          * Optional. The name of a saved query, which must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -883,16 +1006,16 @@ public Builder clearSavedAnalysisQuery() {
          * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for savedAnalysisQuery to set. * @return This builder for chaining. */ - public Builder setSavedAnalysisQueryBytes( - com.google.protobuf.ByteString value) { + public Builder setSavedAnalysisQueryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + savedAnalysisQuery_ = value; onChanged(); return this; @@ -900,39 +1023,58 @@ public Builder setSavedAnalysisQueryBytes( private com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig, + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
          * Required. Output configuration indicating where the results will be output to.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
          * Required. Output configuration indicating where the results will be output to.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
          * Required. Output configuration indicating where the results will be output to.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -948,11 +1090,15 @@ public Builder setOutputConfig(com.google.cloud.asset.v1.IamPolicyAnalysisOutput return this; } /** + * + * *
          * Required. Output configuration indicating where the results will be output to.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder builderForValue) { @@ -966,17 +1112,24 @@ public Builder setOutputConfig( return this; } /** + * + * *
          * Required. Output configuration indicating where the results will be output to.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeOutputConfig(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig value) { + public Builder mergeOutputConfig( + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -988,11 +1141,15 @@ public Builder mergeOutputConfig(com.google.cloud.asset.v1.IamPolicyAnalysisOutp return this; } /** + * + * *
          * Required. Output configuration indicating where the results will be output to.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1006,55 +1163,73 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
          * Required. Output configuration indicating where the results will be output to.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder getOutputConfigBuilder() { - + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder + getOutputConfigBuilder() { + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
          * Required. Output configuration indicating where the results will be output to.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder + getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
          * Required. Output configuration indicating where the results will be output to.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig, + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig, + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1064,12 +1239,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest) - private static final com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest DEFAULT_INSTANCE; + private static final com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest(); } @@ -1078,27 +1254,27 @@ public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnalyzeIamPolicyLongrunningRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnalyzeIamPolicyLongrunningRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1113,6 +1289,4 @@ public com.google.protobuf.Parser getParserF public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequestOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequestOrBuilder.java index d1b985662c72..68668cfee79e 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningRequestOrBuilder.java @@ -1,40 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface AnalyzeIamPolicyLongrunningRequestOrBuilder extends +public interface AnalyzeIamPolicyLongrunningRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The request query.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the analysisQuery field is set. */ boolean hasAnalysisQuery(); /** + * + * *
        * Required. The request query.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The analysisQuery. */ com.google.cloud.asset.v1.IamPolicyAnalysisQuery getAnalysisQuery(); /** + * + * *
        * Required. The request query.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQueryOrBuilder(); /** + * + * *
        * Optional. The name of a saved query, which must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -52,10 +84,13 @@ public interface AnalyzeIamPolicyLongrunningRequestOrBuilder extends
        * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The savedAnalysisQuery. */ java.lang.String getSavedAnalysisQuery(); /** + * + * *
        * Optional. The name of a saved query, which must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -73,35 +108,49 @@ public interface AnalyzeIamPolicyLongrunningRequestOrBuilder extends
        * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for savedAnalysisQuery. */ - com.google.protobuf.ByteString - getSavedAnalysisQueryBytes(); + com.google.protobuf.ByteString getSavedAnalysisQueryBytes(); /** + * + * *
        * Required. Output configuration indicating where the results will be output to.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
        * Required. Output configuration indicating where the results will be output to.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig getOutputConfig(); /** + * + * *
        * Required. Output configuration indicating where the results will be output to.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder getOutputConfigOrBuilder(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponse.java similarity index 60% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponse.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponse.java index 0ab3d2c77b35..3670a53f2871 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponse.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponse.java @@ -1,53 +1,74 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * A response message for [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
      * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse} */ -public final class AnalyzeIamPolicyLongrunningResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AnalyzeIamPolicyLongrunningResponse + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse) AnalyzeIamPolicyLongrunningResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnalyzeIamPolicyLongrunningResponse.newBuilder() to construct. - private AnalyzeIamPolicyLongrunningResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AnalyzeIamPolicyLongrunningResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnalyzeIamPolicyLongrunningResponse() { - } + + private AnalyzeIamPolicyLongrunningResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnalyzeIamPolicyLongrunningResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.class, com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.Builder.class); + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.class, + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -59,8 +80,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -78,12 +98,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse other = (com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse) obj; + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse other = + (com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -102,129 +123,136 @@ public int hashCode() { } public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse 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.asset.v1.AnalyzeIamPolicyLongrunningResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * A response message for [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].
        * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse) com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.class, com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.Builder.class); + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.class, + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.Builder.class); } // Construct using com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -232,13 +260,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse getDefaultInstanceForType() { + public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse + getDefaultInstanceForType() { return com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.getDefaultInstance(); } @@ -253,7 +282,8 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse build() { @java.lang.Override public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse buildPartial() { - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse result = new com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse(this); + com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse result = + new com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse(this); onBuilt(); return result; } @@ -262,38 +292,39 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.AnalyzeIamPolicyLongrunningResponse) { - return mergeFrom((com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse)other); + return mergeFrom((com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse) other); } else { super.mergeFrom(other); return this; @@ -301,7 +332,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse other) { - if (other == com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -328,12 +361,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -343,9 +377,9 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -355,12 +389,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse) - private static final com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse DEFAULT_INSTANCE; + private static final com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse(); } @@ -369,27 +404,27 @@ public static com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnalyzeIamPolicyLongrunningResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnalyzeIamPolicyLongrunningResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -404,6 +439,4 @@ public com.google.protobuf.Parser getParser public com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponseOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponseOrBuilder.java new file mode 100644 index 000000000000..6d3510e8230e --- /dev/null +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface AnalyzeIamPolicyLongrunningResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequest.java similarity index 71% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequest.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequest.java index 344f180f5f6d..a844cf105db1 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequest.java @@ -1,61 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * A request message for [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
      * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyRequest} */ -public final class AnalyzeIamPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AnalyzeIamPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzeIamPolicyRequest) AnalyzeIamPolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnalyzeIamPolicyRequest.newBuilder() to construct. private AnalyzeIamPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AnalyzeIamPolicyRequest() { savedAnalysisQuery_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnalyzeIamPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.class, com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.Builder.class); + com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.class, + com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.Builder.class); } public static final int ANALYSIS_QUERY_FIELD_NUMBER = 1; private com.google.cloud.asset.v1.IamPolicyAnalysisQuery analysisQuery_; /** + * + * *
        * Required. The request query.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the analysisQuery field is set. */ @java.lang.Override @@ -63,23 +87,34 @@ public boolean hasAnalysisQuery() { return analysisQuery_ != null; } /** + * + * *
        * Required. The request query.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The analysisQuery. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getAnalysisQuery() { - return analysisQuery_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() : analysisQuery_; + return analysisQuery_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() + : analysisQuery_; } /** + * + * *
        * Required. The request query.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQueryOrBuilder() { @@ -89,6 +124,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer public static final int SAVED_ANALYSIS_QUERY_FIELD_NUMBER = 3; private volatile java.lang.Object savedAnalysisQuery_; /** + * + * *
        * Optional. The name of a saved query, which must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -106,6 +143,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer
        * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The savedAnalysisQuery. */ @java.lang.Override @@ -114,14 +152,15 @@ public java.lang.String getSavedAnalysisQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); savedAnalysisQuery_ = s; return s; } } /** + * + * *
        * Optional. The name of a saved query, which must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -139,16 +178,15 @@ public java.lang.String getSavedAnalysisQuery() {
        * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for savedAnalysisQuery. */ @java.lang.Override - public com.google.protobuf.ByteString - getSavedAnalysisQueryBytes() { + public com.google.protobuf.ByteString getSavedAnalysisQueryBytes() { java.lang.Object ref = savedAnalysisQuery_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); savedAnalysisQuery_ = b; return b; } else { @@ -159,6 +197,8 @@ public java.lang.String getSavedAnalysisQuery() { public static final int EXECUTION_TIMEOUT_FIELD_NUMBER = 2; private com.google.protobuf.Duration executionTimeout_; /** + * + * *
        * Optional. Amount of time executable has to complete.  See JSON representation of
        * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
    @@ -170,7 +210,10 @@ public java.lang.String getSavedAnalysisQuery() {
        * Default is empty.
        * 
    * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the executionTimeout field is set. */ @java.lang.Override @@ -178,6 +221,8 @@ public boolean hasExecutionTimeout() { return executionTimeout_ != null; } /** + * + * *
        * Optional. Amount of time executable has to complete.  See JSON representation of
        * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
    @@ -189,14 +234,21 @@ public boolean hasExecutionTimeout() {
        * Default is empty.
        * 
    * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The executionTimeout. */ @java.lang.Override public com.google.protobuf.Duration getExecutionTimeout() { - return executionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : executionTimeout_; + return executionTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : executionTimeout_; } /** + * + * *
        * Optional. Amount of time executable has to complete.  See JSON representation of
        * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
    @@ -208,7 +260,9 @@ public com.google.protobuf.Duration getExecutionTimeout() {
        * Default is empty.
        * 
    * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { @@ -216,6 +270,7 @@ public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +282,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (analysisQuery_ != null) { output.writeMessage(1, getAnalysisQuery()); } @@ -248,12 +302,10 @@ public int getSerializedSize() { size = 0; if (analysisQuery_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAnalysisQuery()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnalysisQuery()); } if (executionTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExecutionTimeout()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExecutionTimeout()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedAnalysisQuery_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, savedAnalysisQuery_); @@ -266,24 +318,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.AnalyzeIamPolicyRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.AnalyzeIamPolicyRequest other = (com.google.cloud.asset.v1.AnalyzeIamPolicyRequest) obj; + com.google.cloud.asset.v1.AnalyzeIamPolicyRequest other = + (com.google.cloud.asset.v1.AnalyzeIamPolicyRequest) obj; if (hasAnalysisQuery() != other.hasAnalysisQuery()) return false; if (hasAnalysisQuery()) { - if (!getAnalysisQuery() - .equals(other.getAnalysisQuery())) return false; + if (!getAnalysisQuery().equals(other.getAnalysisQuery())) return false; } - if (!getSavedAnalysisQuery() - .equals(other.getSavedAnalysisQuery())) return false; + if (!getSavedAnalysisQuery().equals(other.getSavedAnalysisQuery())) return false; if (hasExecutionTimeout() != other.hasExecutionTimeout()) return false; if (hasExecutionTimeout()) { - if (!getExecutionTimeout() - .equals(other.getExecutionTimeout())) return false; + if (!getExecutionTimeout().equals(other.getExecutionTimeout())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -312,129 +362,135 @@ public int hashCode() { } public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest 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.asset.v1.AnalyzeIamPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.AnalyzeIamPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * A request message for [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
        * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzeIamPolicyRequest) com.google.cloud.asset.v1.AnalyzeIamPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.class, com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.Builder.class); + com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.class, + com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -456,9 +512,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_descriptor; } @java.lang.Override @@ -477,7 +533,8 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyRequest build() { @java.lang.Override public com.google.cloud.asset.v1.AnalyzeIamPolicyRequest buildPartial() { - com.google.cloud.asset.v1.AnalyzeIamPolicyRequest result = new com.google.cloud.asset.v1.AnalyzeIamPolicyRequest(this); + com.google.cloud.asset.v1.AnalyzeIamPolicyRequest result = + new com.google.cloud.asset.v1.AnalyzeIamPolicyRequest(this); if (analysisQueryBuilder_ == null) { result.analysisQuery_ = analysisQuery_; } else { @@ -497,38 +554,39 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.AnalyzeIamPolicyRequest) { - return mergeFrom((com.google.cloud.asset.v1.AnalyzeIamPolicyRequest)other); + return mergeFrom((com.google.cloud.asset.v1.AnalyzeIamPolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -536,7 +594,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyRequest other) { - if (other == com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.getDefaultInstance()) + return this; if (other.hasAnalysisQuery()) { mergeAnalysisQuery(other.getAnalysisQuery()); } @@ -573,31 +632,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getAnalysisQueryFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage(getAnalysisQueryFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 10 - case 18: { - input.readMessage( - getExecutionTimeoutFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage( + getExecutionTimeoutFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - case 26: { - savedAnalysisQuery_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: + { + savedAnalysisQuery_ = input.readStringRequireUtf8(); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -610,39 +670,58 @@ public Builder mergeFrom( private com.google.cloud.asset.v1.IamPolicyAnalysisQuery analysisQuery_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> analysisQueryBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> + analysisQueryBuilder_; /** + * + * *
          * Required. The request query.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the analysisQuery field is set. */ public boolean hasAnalysisQuery() { return analysisQueryBuilder_ != null || analysisQuery_ != null; } /** + * + * *
          * Required. The request query.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The analysisQuery. */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getAnalysisQuery() { if (analysisQueryBuilder_ == null) { - return analysisQuery_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() : analysisQuery_; + return analysisQuery_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() + : analysisQuery_; } else { return analysisQueryBuilder_.getMessage(); } } /** + * + * *
          * Required. The request query.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery value) { if (analysisQueryBuilder_ == null) { @@ -658,11 +737,15 @@ public Builder setAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery return this; } /** + * + * *
          * Required. The request query.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAnalysisQuery( com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder builderForValue) { @@ -676,17 +759,23 @@ public Builder setAnalysisQuery( return this; } /** + * + * *
          * Required. The request query.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery value) { if (analysisQueryBuilder_ == null) { if (analysisQuery_ != null) { analysisQuery_ = - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.newBuilder(analysisQuery_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.newBuilder(analysisQuery_) + .mergeFrom(value) + .buildPartial(); } else { analysisQuery_ = value; } @@ -698,11 +787,15 @@ public Builder mergeAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQue return this; } /** + * + * *
          * Required. The request query.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAnalysisQuery() { if (analysisQueryBuilder_ == null) { @@ -716,48 +809,64 @@ public Builder clearAnalysisQuery() { return this; } /** + * + * *
          * Required. The request query.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder getAnalysisQueryBuilder() { - + onChanged(); return getAnalysisQueryFieldBuilder().getBuilder(); } /** + * + * *
          * Required. The request query.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQueryOrBuilder() { if (analysisQueryBuilder_ != null) { return analysisQueryBuilder_.getMessageOrBuilder(); } else { - return analysisQuery_ == null ? - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() : analysisQuery_; + return analysisQuery_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() + : analysisQuery_; } } /** + * + * *
          * Required. The request query.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisQuery, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> getAnalysisQueryFieldBuilder() { if (analysisQueryBuilder_ == null) { - analysisQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder>( - getAnalysisQuery(), - getParentForChildren(), - isClean()); + analysisQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisQuery, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder>( + getAnalysisQuery(), getParentForChildren(), isClean()); analysisQuery_ = null; } return analysisQueryBuilder_; @@ -765,6 +874,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer private java.lang.Object savedAnalysisQuery_ = ""; /** + * + * *
          * Optional. The name of a saved query, which must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -782,13 +893,13 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer
          * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The savedAnalysisQuery. */ public java.lang.String getSavedAnalysisQuery() { java.lang.Object ref = savedAnalysisQuery_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); savedAnalysisQuery_ = s; return s; @@ -797,6 +908,8 @@ public java.lang.String getSavedAnalysisQuery() { } } /** + * + * *
          * Optional. The name of a saved query, which must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -814,15 +927,14 @@ public java.lang.String getSavedAnalysisQuery() {
          * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for savedAnalysisQuery. */ - public com.google.protobuf.ByteString - getSavedAnalysisQueryBytes() { + public com.google.protobuf.ByteString getSavedAnalysisQueryBytes() { java.lang.Object ref = savedAnalysisQuery_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); savedAnalysisQuery_ = b; return b; } else { @@ -830,6 +942,8 @@ public java.lang.String getSavedAnalysisQuery() { } } /** + * + * *
          * Optional. The name of a saved query, which must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -847,20 +961,22 @@ public java.lang.String getSavedAnalysisQuery() {
          * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The savedAnalysisQuery to set. * @return This builder for chaining. */ - public Builder setSavedAnalysisQuery( - java.lang.String value) { + public Builder setSavedAnalysisQuery(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + savedAnalysisQuery_ = value; onChanged(); return this; } /** + * + * *
          * Optional. The name of a saved query, which must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -878,15 +994,18 @@ public Builder setSavedAnalysisQuery(
          * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSavedAnalysisQuery() { - + savedAnalysisQuery_ = getDefaultInstance().getSavedAnalysisQuery(); onChanged(); return this; } /** + * + * *
          * Optional. The name of a saved query, which must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -904,16 +1023,16 @@ public Builder clearSavedAnalysisQuery() {
          * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for savedAnalysisQuery to set. * @return This builder for chaining. */ - public Builder setSavedAnalysisQueryBytes( - com.google.protobuf.ByteString value) { + public Builder setSavedAnalysisQueryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + savedAnalysisQuery_ = value; onChanged(); return this; @@ -921,8 +1040,13 @@ public Builder setSavedAnalysisQueryBytes( private com.google.protobuf.Duration executionTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> executionTimeoutBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + executionTimeoutBuilder_; /** + * + * *
          * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
    @@ -934,13 +1058,18 @@ public Builder setSavedAnalysisQueryBytes(
          * Default is empty.
          * 
    * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the executionTimeout field is set. */ public boolean hasExecutionTimeout() { return executionTimeoutBuilder_ != null || executionTimeout_ != null; } /** + * + * *
          * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
    @@ -952,17 +1081,24 @@ public boolean hasExecutionTimeout() {
          * Default is empty.
          * 
    * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The executionTimeout. */ public com.google.protobuf.Duration getExecutionTimeout() { if (executionTimeoutBuilder_ == null) { - return executionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : executionTimeout_; + return executionTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : executionTimeout_; } else { return executionTimeoutBuilder_.getMessage(); } } /** + * + * *
          * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
    @@ -974,7 +1110,9 @@ public com.google.protobuf.Duration getExecutionTimeout() {
          * Default is empty.
          * 
    * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setExecutionTimeout(com.google.protobuf.Duration value) { if (executionTimeoutBuilder_ == null) { @@ -990,6 +1128,8 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
          * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
    @@ -1001,10 +1141,11 @@ public Builder setExecutionTimeout(com.google.protobuf.Duration value) {
          * Default is empty.
          * 
    * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setExecutionTimeout( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setExecutionTimeout(com.google.protobuf.Duration.Builder builderForValue) { if (executionTimeoutBuilder_ == null) { executionTimeout_ = builderForValue.build(); onChanged(); @@ -1015,6 +1156,8 @@ public Builder setExecutionTimeout( return this; } /** + * + * *
          * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
    @@ -1026,13 +1169,17 @@ public Builder setExecutionTimeout(
          * Default is empty.
          * 
    * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { if (executionTimeoutBuilder_ == null) { if (executionTimeout_ != null) { executionTimeout_ = - com.google.protobuf.Duration.newBuilder(executionTimeout_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(executionTimeout_) + .mergeFrom(value) + .buildPartial(); } else { executionTimeout_ = value; } @@ -1044,6 +1191,8 @@ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
          * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
    @@ -1055,7 +1204,9 @@ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) {
          * Default is empty.
          * 
    * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearExecutionTimeout() { if (executionTimeoutBuilder_ == null) { @@ -1069,6 +1220,8 @@ public Builder clearExecutionTimeout() { return this; } /** + * + * *
          * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
    @@ -1080,14 +1233,18 @@ public Builder clearExecutionTimeout() {
          * Default is empty.
          * 
    * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getExecutionTimeoutBuilder() { - + onChanged(); return getExecutionTimeoutFieldBuilder().getBuilder(); } /** + * + * *
          * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
    @@ -1099,17 +1256,22 @@ public com.google.protobuf.Duration.Builder getExecutionTimeoutBuilder() {
          * Default is empty.
          * 
    * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { if (executionTimeoutBuilder_ != null) { return executionTimeoutBuilder_.getMessageOrBuilder(); } else { - return executionTimeout_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : executionTimeout_; + return executionTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : executionTimeout_; } } /** + * + * *
          * Optional. Amount of time executable has to complete.  See JSON representation of
          * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
    @@ -1121,24 +1283,29 @@ public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() {
          * Default is empty.
          * 
    * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getExecutionTimeoutFieldBuilder() { if (executionTimeoutBuilder_ == null) { - executionTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getExecutionTimeout(), - getParentForChildren(), - isClean()); + executionTimeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getExecutionTimeout(), getParentForChildren(), isClean()); executionTimeout_ = null; } return executionTimeoutBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1148,12 +1315,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.AnalyzeIamPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzeIamPolicyRequest) private static final com.google.cloud.asset.v1.AnalyzeIamPolicyRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.AnalyzeIamPolicyRequest(); } @@ -1162,27 +1329,27 @@ public static com.google.cloud.asset.v1.AnalyzeIamPolicyRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnalyzeIamPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnalyzeIamPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1197,6 +1364,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.AnalyzeIamPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequestOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequestOrBuilder.java index ab4e24138d0b..412e3af762ac 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyRequestOrBuilder.java @@ -1,40 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface AnalyzeIamPolicyRequestOrBuilder extends +public interface AnalyzeIamPolicyRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzeIamPolicyRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The request query.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the analysisQuery field is set. */ boolean hasAnalysisQuery(); /** + * + * *
        * Required. The request query.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The analysisQuery. */ com.google.cloud.asset.v1.IamPolicyAnalysisQuery getAnalysisQuery(); /** + * + * *
        * Required. The request query.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQueryOrBuilder(); /** + * + * *
        * Optional. The name of a saved query, which must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -52,10 +84,13 @@ public interface AnalyzeIamPolicyRequestOrBuilder extends
        * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The savedAnalysisQuery. */ java.lang.String getSavedAnalysisQuery(); /** + * + * *
        * Optional. The name of a saved query, which must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -73,12 +108,14 @@ public interface AnalyzeIamPolicyRequestOrBuilder extends
        * 
    * * string saved_analysis_query = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for savedAnalysisQuery. */ - com.google.protobuf.ByteString - getSavedAnalysisQueryBytes(); + com.google.protobuf.ByteString getSavedAnalysisQueryBytes(); /** + * + * *
        * Optional. Amount of time executable has to complete.  See JSON representation of
        * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
    @@ -90,11 +127,16 @@ public interface AnalyzeIamPolicyRequestOrBuilder extends
        * Default is empty.
        * 
    * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the executionTimeout field is set. */ boolean hasExecutionTimeout(); /** + * + * *
        * Optional. Amount of time executable has to complete.  See JSON representation of
        * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
    @@ -106,11 +148,16 @@ public interface AnalyzeIamPolicyRequestOrBuilder extends
        * Default is empty.
        * 
    * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The executionTimeout. */ com.google.protobuf.Duration getExecutionTimeout(); /** + * + * *
        * Optional. Amount of time executable has to complete.  See JSON representation of
        * [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
    @@ -122,7 +169,9 @@ public interface AnalyzeIamPolicyRequestOrBuilder extends
        * Default is empty.
        * 
    * - * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration execution_timeout = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponse.java similarity index 72% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponse.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponse.java index f8c581c8c184..06bef67dc804 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponse.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponse.java @@ -1,76 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * A response message for [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
      * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyResponse} */ -public final class AnalyzeIamPolicyResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AnalyzeIamPolicyResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzeIamPolicyResponse) AnalyzeIamPolicyResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnalyzeIamPolicyResponse.newBuilder() to construct. private AnalyzeIamPolicyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AnalyzeIamPolicyResponse() { serviceAccountImpersonationAnalysis_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnalyzeIamPolicyResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.class, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.Builder.class); + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.class, + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.Builder.class); } - public interface IamPolicyAnalysisOrBuilder extends + public interface IamPolicyAnalysisOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * The analysis query.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1; + * * @return Whether the analysisQuery field is set. */ boolean hasAnalysisQuery(); /** + * + * *
          * The analysis query.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1; + * * @return The analysisQuery. */ com.google.cloud.asset.v1.IamPolicyAnalysisQuery getAnalysisQuery(); /** + * + * *
          * The analysis query.
          * 
    @@ -80,6 +108,8 @@ public interface IamPolicyAnalysisOrBuilder extends com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQueryOrBuilder(); /** + * + * *
          * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
          * empty if no result is found.
    @@ -87,9 +117,10 @@ public interface IamPolicyAnalysisOrBuilder extends
          *
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;
          */
    -    java.util.List 
    -        getAnalysisResultsList();
    +    java.util.List getAnalysisResultsList();
         /**
    +     *
    +     *
          * 
          * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
          * empty if no result is found.
    @@ -99,6 +130,8 @@ public interface IamPolicyAnalysisOrBuilder extends
          */
         com.google.cloud.asset.v1.IamPolicyAnalysisResult getAnalysisResults(int index);
         /**
    +     *
    +     *
          * 
          * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
          * empty if no result is found.
    @@ -108,6 +141,8 @@ public interface IamPolicyAnalysisOrBuilder extends
          */
         int getAnalysisResultsCount();
         /**
    +     *
    +     *
          * 
          * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
          * empty if no result is found.
    @@ -115,9 +150,11 @@ public interface IamPolicyAnalysisOrBuilder extends
          *
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;
          */
    -    java.util.List 
    +    java.util.List
             getAnalysisResultsOrBuilderList();
         /**
    +     *
    +     *
          * 
          * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
          * empty if no result is found.
    @@ -129,26 +166,32 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder getAnalysisResultsOrB
             int index);
     
         /**
    +     *
    +     *
          * 
          * Represents whether all entries in the [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] have been
          * fully explored to answer the query.
          * 
    * * bool fully_explored = 3; + * * @return The fullyExplored. */ boolean getFullyExplored(); /** + * + * *
          * A list of non-critical errors happened during the query handling.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ - java.util.List - getNonCriticalErrorsList(); + java.util.List getNonCriticalErrorsList(); /** + * + * *
          * A list of non-critical errors happened during the query handling.
          * 
    @@ -157,6 +200,8 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder getAnalysisResultsOrB */ com.google.cloud.asset.v1.IamPolicyAnalysisState getNonCriticalErrors(int index); /** + * + * *
          * A list of non-critical errors happened during the query handling.
          * 
    @@ -165,15 +210,19 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder getAnalysisResultsOrB */ int getNonCriticalErrorsCount(); /** + * + * *
          * A list of non-critical errors happened during the query handling.
          * 
    * * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ - java.util.List + java.util.List getNonCriticalErrorsOrBuilderList(); /** + * + * *
          * A list of non-critical errors happened during the query handling.
          * 
    @@ -184,21 +233,24 @@ com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getNonCriticalErrorsOr int index); } /** + * + * *
        * An analysis message to group the query and results.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis} */ - public static final class IamPolicyAnalysis extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class IamPolicyAnalysis extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) IamPolicyAnalysisOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IamPolicyAnalysis.newBuilder() to construct. private IamPolicyAnalysis(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private IamPolicyAnalysis() { analysisResults_ = java.util.Collections.emptyList(); nonCriticalErrors_ = java.util.Collections.emptyList(); @@ -206,37 +258,41 @@ private IamPolicyAnalysis() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IamPolicyAnalysis(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.class, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder.class); + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.class, + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder.class); } public static final int ANALYSIS_QUERY_FIELD_NUMBER = 1; private com.google.cloud.asset.v1.IamPolicyAnalysisQuery analysisQuery_; /** + * + * *
          * The analysis query.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1; + * * @return Whether the analysisQuery field is set. */ @java.lang.Override @@ -244,18 +300,25 @@ public boolean hasAnalysisQuery() { return analysisQuery_ != null; } /** + * + * *
          * The analysis query.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1; + * * @return The analysisQuery. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getAnalysisQuery() { - return analysisQuery_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() : analysisQuery_; + return analysisQuery_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() + : analysisQuery_; } /** + * + * *
          * The analysis query.
          * 
    @@ -270,6 +333,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer public static final int ANALYSIS_RESULTS_FIELD_NUMBER = 2; private java.util.List analysisResults_; /** + * + * *
          * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
          * empty if no result is found.
    @@ -278,10 +343,13 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;
          */
         @java.lang.Override
    -    public java.util.List getAnalysisResultsList() {
    +    public java.util.List
    +        getAnalysisResultsList() {
           return analysisResults_;
         }
         /**
    +     *
    +     *
          * 
          * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
          * empty if no result is found.
    @@ -290,11 +358,13 @@ public java.util.List getAnal
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;
          */
         @java.lang.Override
    -    public java.util.List 
    +    public java.util.List
             getAnalysisResultsOrBuilderList() {
           return analysisResults_;
         }
         /**
    +     *
    +     *
          * 
          * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
          * empty if no result is found.
    @@ -307,6 +377,8 @@ public int getAnalysisResultsCount() {
           return analysisResults_.size();
         }
         /**
    +     *
    +     *
          * 
          * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
          * empty if no result is found.
    @@ -319,6 +391,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult getAnalysisResults(int
           return analysisResults_.get(index);
         }
         /**
    +     *
    +     *
          * 
          * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
          * empty if no result is found.
    @@ -335,12 +409,15 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder getAnalysisRes
         public static final int FULLY_EXPLORED_FIELD_NUMBER = 3;
         private boolean fullyExplored_;
         /**
    +     *
    +     *
          * 
          * Represents whether all entries in the [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] have been
          * fully explored to answer the query.
          * 
    * * bool fully_explored = 3; + * * @return The fullyExplored. */ @java.lang.Override @@ -351,6 +428,8 @@ public boolean getFullyExplored() { public static final int NON_CRITICAL_ERRORS_FIELD_NUMBER = 5; private java.util.List nonCriticalErrors_; /** + * + * *
          * A list of non-critical errors happened during the query handling.
          * 
    @@ -358,10 +437,13 @@ public boolean getFullyExplored() { * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ @java.lang.Override - public java.util.List getNonCriticalErrorsList() { + public java.util.List + getNonCriticalErrorsList() { return nonCriticalErrors_; } /** + * + * *
          * A list of non-critical errors happened during the query handling.
          * 
    @@ -369,11 +451,13 @@ public java.util.List getNonCr * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; */ @java.lang.Override - public java.util.List + public java.util.List getNonCriticalErrorsOrBuilderList() { return nonCriticalErrors_; } /** + * + * *
          * A list of non-critical errors happened during the query handling.
          * 
    @@ -385,6 +469,8 @@ public int getNonCriticalErrorsCount() { return nonCriticalErrors_.size(); } /** + * + * *
          * A list of non-critical errors happened during the query handling.
          * 
    @@ -396,6 +482,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisState getNonCriticalErrors(int return nonCriticalErrors_.get(index); } /** + * + * *
          * A list of non-critical errors happened during the query handling.
          * 
    @@ -409,6 +497,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getNonCriticalE } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -420,8 +509,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (analysisQuery_ != null) { output.writeMessage(1, getAnalysisQuery()); } @@ -444,20 +532,18 @@ public int getSerializedSize() { size = 0; if (analysisQuery_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAnalysisQuery()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnalysisQuery()); } for (int i = 0; i < analysisResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, analysisResults_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, analysisResults_.get(i)); } if (fullyExplored_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, fullyExplored_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, fullyExplored_); } for (int i = 0; i < nonCriticalErrors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, nonCriticalErrors_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, nonCriticalErrors_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -467,24 +553,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis)) { return super.equals(obj); } - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis other = (com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) obj; + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis other = + (com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) obj; if (hasAnalysisQuery() != other.hasAnalysisQuery()) return false; if (hasAnalysisQuery()) { - if (!getAnalysisQuery() - .equals(other.getAnalysisQuery())) return false; - } - if (!getAnalysisResultsList() - .equals(other.getAnalysisResultsList())) return false; - if (getFullyExplored() - != other.getFullyExplored()) return false; - if (!getNonCriticalErrorsList() - .equals(other.getNonCriticalErrorsList())) return false; + if (!getAnalysisQuery().equals(other.getAnalysisQuery())) return false; + } + if (!getAnalysisResultsList().equals(other.getAnalysisResultsList())) return false; + if (getFullyExplored() != other.getFullyExplored()) return false; + if (!getNonCriticalErrorsList().equals(other.getNonCriticalErrorsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -505,8 +588,7 @@ public int hashCode() { hash = (53 * hash) + getAnalysisResultsList().hashCode(); } hash = (37 * hash) + FULLY_EXPLORED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFullyExplored()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFullyExplored()); if (getNonCriticalErrorsCount() > 0) { hash = (37 * hash) + NON_CRITICAL_ERRORS_FIELD_NUMBER; hash = (53 * hash) + getNonCriticalErrorsList().hashCode(); @@ -517,87 +599,95 @@ public int hashCode() { } public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis 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.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis 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.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis + 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.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -607,39 +697,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * An analysis message to group the query and results.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.class, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder.class); + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.class, + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder.class); } - // Construct using com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -669,19 +762,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getDefaultInstanceForType() { - return com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.getDefaultInstance(); + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis + getDefaultInstanceForType() { + return com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis build() { - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis result = buildPartial(); + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -690,7 +786,8 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis buil @java.lang.Override public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis buildPartial() { - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis result = new com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis(this); + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis result = + new com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis(this); int from_bitField0_ = bitField0_; if (analysisQueryBuilder_ == null) { result.analysisQuery_ = analysisQuery_; @@ -724,46 +821,53 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis buil public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) { - return mergeFrom((com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis)other); + return mergeFrom( + (com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis other) { - if (other == com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis other) { + if (other + == com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis + .getDefaultInstance()) return this; if (other.hasAnalysisQuery()) { mergeAnalysisQuery(other.getAnalysisQuery()); } @@ -785,9 +889,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamP analysisResultsBuilder_ = null; analysisResults_ = other.analysisResults_; bitField0_ = (bitField0_ & ~0x00000001); - analysisResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAnalysisResultsFieldBuilder() : null; + analysisResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAnalysisResultsFieldBuilder() + : null; } else { analysisResultsBuilder_.addAllMessages(other.analysisResults_); } @@ -814,9 +919,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamP nonCriticalErrorsBuilder_ = null; nonCriticalErrors_ = other.nonCriticalErrors_; bitField0_ = (bitField0_ & ~0x00000002); - nonCriticalErrorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNonCriticalErrorsFieldBuilder() : null; + nonCriticalErrorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNonCriticalErrorsFieldBuilder() + : null; } else { nonCriticalErrorsBuilder_.addAllMessages(other.nonCriticalErrors_); } @@ -848,50 +954,53 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getAnalysisQueryFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 18: { - com.google.cloud.asset.v1.IamPolicyAnalysisResult m = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.parser(), - extensionRegistry); - if (analysisResultsBuilder_ == null) { - ensureAnalysisResultsIsMutable(); - analysisResults_.add(m); - } else { - analysisResultsBuilder_.addMessage(m); - } - break; - } // case 18 - case 24: { - fullyExplored_ = input.readBool(); - - break; - } // case 24 - case 42: { - com.google.cloud.asset.v1.IamPolicyAnalysisState m = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisState.parser(), - extensionRegistry); - if (nonCriticalErrorsBuilder_ == null) { - ensureNonCriticalErrorsIsMutable(); - nonCriticalErrors_.add(m); - } else { - nonCriticalErrorsBuilder_.addMessage(m); - } - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getAnalysisQueryFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + com.google.cloud.asset.v1.IamPolicyAnalysisResult m = + input.readMessage( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.parser(), + extensionRegistry); + if (analysisResultsBuilder_ == null) { + ensureAnalysisResultsIsMutable(); + analysisResults_.add(m); + } else { + analysisResultsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: + { + fullyExplored_ = input.readBool(); + + break; + } // case 24 + case 42: + { + com.google.cloud.asset.v1.IamPolicyAnalysisState m = + input.readMessage( + com.google.cloud.asset.v1.IamPolicyAnalysisState.parser(), + extensionRegistry); + if (nonCriticalErrorsBuilder_ == null) { + ensureNonCriticalErrorsIsMutable(); + nonCriticalErrors_.add(m); + } else { + nonCriticalErrorsBuilder_.addMessage(m); + } + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -901,38 +1010,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.asset.v1.IamPolicyAnalysisQuery analysisQuery_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> analysisQueryBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> + analysisQueryBuilder_; /** + * + * *
            * The analysis query.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1; + * * @return Whether the analysisQuery field is set. */ public boolean hasAnalysisQuery() { return analysisQueryBuilder_ != null || analysisQuery_ != null; } /** + * + * *
            * The analysis query.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1; + * * @return The analysisQuery. */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getAnalysisQuery() { if (analysisQueryBuilder_ == null) { - return analysisQuery_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() : analysisQuery_; + return analysisQuery_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() + : analysisQuery_; } else { return analysisQueryBuilder_.getMessage(); } } /** + * + * *
            * The analysis query.
            * 
    @@ -953,6 +1076,8 @@ public Builder setAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery return this; } /** + * + * *
            * The analysis query.
            * 
    @@ -971,6 +1096,8 @@ public Builder setAnalysisQuery( return this; } /** + * + * *
            * The analysis query.
            * 
    @@ -981,7 +1108,9 @@ public Builder mergeAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQue if (analysisQueryBuilder_ == null) { if (analysisQuery_ != null) { analysisQuery_ = - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.newBuilder(analysisQuery_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.newBuilder(analysisQuery_) + .mergeFrom(value) + .buildPartial(); } else { analysisQuery_ = value; } @@ -993,6 +1122,8 @@ public Builder mergeAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQue return this; } /** + * + * *
            * The analysis query.
            * 
    @@ -1011,6 +1142,8 @@ public Builder clearAnalysisQuery() { return this; } /** + * + * *
            * The analysis query.
            * 
    @@ -1018,11 +1151,13 @@ public Builder clearAnalysisQuery() { * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1; */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder getAnalysisQueryBuilder() { - + onChanged(); return getAnalysisQueryFieldBuilder().getBuilder(); } /** + * + * *
            * The analysis query.
            * 
    @@ -1033,11 +1168,14 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer if (analysisQueryBuilder_ != null) { return analysisQueryBuilder_.getMessageOrBuilder(); } else { - return analysisQuery_ == null ? - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() : analysisQuery_; + return analysisQuery_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance() + : analysisQuery_; } } /** + * + * *
            * The analysis query.
            * 
    @@ -1045,32 +1183,43 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQuer * .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisQuery, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> getAnalysisQueryFieldBuilder() { if (analysisQueryBuilder_ == null) { - analysisQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder>( - getAnalysisQuery(), - getParentForChildren(), - isClean()); + analysisQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisQuery, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder>( + getAnalysisQuery(), getParentForChildren(), isClean()); analysisQuery_ = null; } return analysisQueryBuilder_; } private java.util.List analysisResults_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAnalysisResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - analysisResults_ = new java.util.ArrayList(analysisResults_); + analysisResults_ = + new java.util.ArrayList( + analysisResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder> analysisResultsBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisResult, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder> + analysisResultsBuilder_; /** + * + * *
            * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
            * empty if no result is found.
    @@ -1078,7 +1227,8 @@ private void ensureAnalysisResultsIsMutable() {
            *
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;
            */
    -      public java.util.List getAnalysisResultsList() {
    +      public java.util.List
    +          getAnalysisResultsList() {
             if (analysisResultsBuilder_ == null) {
               return java.util.Collections.unmodifiableList(analysisResults_);
             } else {
    @@ -1086,6 +1236,8 @@ public java.util.List getAnal
             }
           }
           /**
    +       *
    +       *
            * 
            * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
            * empty if no result is found.
    @@ -1101,6 +1253,8 @@ public int getAnalysisResultsCount() {
             }
           }
           /**
    +       *
    +       *
            * 
            * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
            * empty if no result is found.
    @@ -1116,6 +1270,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult getAnalysisResults(int
             }
           }
           /**
    +       *
    +       *
            * 
            * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
            * empty if no result is found.
    @@ -1138,6 +1294,8 @@ public Builder setAnalysisResults(
             return this;
           }
           /**
    +       *
    +       *
            * 
            * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
            * empty if no result is found.
    @@ -1157,6 +1315,8 @@ public Builder setAnalysisResults(
             return this;
           }
           /**
    +       *
    +       *
            * 
            * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
            * empty if no result is found.
    @@ -1178,6 +1338,8 @@ public Builder addAnalysisResults(com.google.cloud.asset.v1.IamPolicyAnalysisRes
             return this;
           }
           /**
    +       *
    +       *
            * 
            * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
            * empty if no result is found.
    @@ -1200,6 +1362,8 @@ public Builder addAnalysisResults(
             return this;
           }
           /**
    +       *
    +       *
            * 
            * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
            * empty if no result is found.
    @@ -1219,6 +1383,8 @@ public Builder addAnalysisResults(
             return this;
           }
           /**
    +       *
    +       *
            * 
            * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
            * empty if no result is found.
    @@ -1238,6 +1404,8 @@ public Builder addAnalysisResults(
             return this;
           }
           /**
    +       *
    +       *
            * 
            * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
            * empty if no result is found.
    @@ -1249,8 +1417,7 @@ public Builder addAllAnalysisResults(
               java.lang.Iterable values) {
             if (analysisResultsBuilder_ == null) {
               ensureAnalysisResultsIsMutable();
    -          com.google.protobuf.AbstractMessageLite.Builder.addAll(
    -              values, analysisResults_);
    +          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, analysisResults_);
               onChanged();
             } else {
               analysisResultsBuilder_.addAllMessages(values);
    @@ -1258,6 +1425,8 @@ public Builder addAllAnalysisResults(
             return this;
           }
           /**
    +       *
    +       *
            * 
            * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
            * empty if no result is found.
    @@ -1276,6 +1445,8 @@ public Builder clearAnalysisResults() {
             return this;
           }
           /**
    +       *
    +       *
            * 
            * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
            * empty if no result is found.
    @@ -1294,6 +1465,8 @@ public Builder removeAnalysisResults(int index) {
             return this;
           }
           /**
    +       *
    +       *
            * 
            * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
            * empty if no result is found.
    @@ -1306,6 +1479,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder getAnalysisResu
             return getAnalysisResultsFieldBuilder().getBuilder(index);
           }
           /**
    +       *
    +       *
            * 
            * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
            * empty if no result is found.
    @@ -1316,11 +1491,14 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder getAnalysisResu
           public com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder getAnalysisResultsOrBuilder(
               int index) {
             if (analysisResultsBuilder_ == null) {
    -          return analysisResults_.get(index);  } else {
    +          return analysisResults_.get(index);
    +        } else {
               return analysisResultsBuilder_.getMessageOrBuilder(index);
             }
           }
           /**
    +       *
    +       *
            * 
            * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
            * empty if no result is found.
    @@ -1328,8 +1506,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder getAnalysisRes
            *
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;
            */
    -      public java.util.List 
    -           getAnalysisResultsOrBuilderList() {
    +      public java.util.List
    +          getAnalysisResultsOrBuilderList() {
             if (analysisResultsBuilder_ != null) {
               return analysisResultsBuilder_.getMessageOrBuilderList();
             } else {
    @@ -1337,6 +1515,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder getAnalysisRes
             }
           }
           /**
    +       *
    +       *
            * 
            * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
            * empty if no result is found.
    @@ -1345,10 +1525,12 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder getAnalysisRes
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;
            */
           public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder addAnalysisResultsBuilder() {
    -        return getAnalysisResultsFieldBuilder().addBuilder(
    -            com.google.cloud.asset.v1.IamPolicyAnalysisResult.getDefaultInstance());
    +        return getAnalysisResultsFieldBuilder()
    +            .addBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisResult.getDefaultInstance());
           }
           /**
    +       *
    +       *
            * 
            * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
            * empty if no result is found.
    @@ -1358,10 +1540,13 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder addAnalysisResu
            */
           public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder addAnalysisResultsBuilder(
               int index) {
    -        return getAnalysisResultsFieldBuilder().addBuilder(
    -            index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.getDefaultInstance());
    +        return getAnalysisResultsFieldBuilder()
    +            .addBuilder(
    +                index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.getDefaultInstance());
           }
           /**
    +       *
    +       *
            * 
            * A list of [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult] that matches the analysis query, or
            * empty if no result is found.
    @@ -1369,16 +1554,22 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder addAnalysisResu
            *
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;
            */
    -      public java.util.List 
    -           getAnalysisResultsBuilderList() {
    +      public java.util.List
    +          getAnalysisResultsBuilderList() {
             return getAnalysisResultsFieldBuilder().getBuilderList();
           }
    +
           private com.google.protobuf.RepeatedFieldBuilderV3<
    -          com.google.cloud.asset.v1.IamPolicyAnalysisResult, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder> 
    +              com.google.cloud.asset.v1.IamPolicyAnalysisResult,
    +              com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder,
    +              com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder>
               getAnalysisResultsFieldBuilder() {
             if (analysisResultsBuilder_ == null) {
    -          analysisResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    -              com.google.cloud.asset.v1.IamPolicyAnalysisResult, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder>(
    +          analysisResultsBuilder_ =
    +              new com.google.protobuf.RepeatedFieldBuilderV3<
    +                  com.google.cloud.asset.v1.IamPolicyAnalysisResult,
    +                  com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder,
    +                  com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder>(
                       analysisResults_,
                       ((bitField0_ & 0x00000001) != 0),
                       getParentForChildren(),
    @@ -1388,14 +1579,17 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder addAnalysisResu
             return analysisResultsBuilder_;
           }
     
    -      private boolean fullyExplored_ ;
    +      private boolean fullyExplored_;
           /**
    +       *
    +       *
            * 
            * Represents whether all entries in the [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] have been
            * fully explored to answer the query.
            * 
    * * bool fully_explored = 3; + * * @return The fullyExplored. */ @java.lang.Override @@ -1403,57 +1597,73 @@ public boolean getFullyExplored() { return fullyExplored_; } /** + * + * *
            * Represents whether all entries in the [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] have been
            * fully explored to answer the query.
            * 
    * * bool fully_explored = 3; + * * @param value The fullyExplored to set. * @return This builder for chaining. */ public Builder setFullyExplored(boolean value) { - + fullyExplored_ = value; onChanged(); return this; } /** + * + * *
            * Represents whether all entries in the [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results] have been
            * fully explored to answer the query.
            * 
    * * bool fully_explored = 3; + * * @return This builder for chaining. */ public Builder clearFullyExplored() { - + fullyExplored_ = false; onChanged(); return this; } private java.util.List nonCriticalErrors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNonCriticalErrorsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - nonCriticalErrors_ = new java.util.ArrayList(nonCriticalErrors_); + nonCriticalErrors_ = + new java.util.ArrayList( + nonCriticalErrors_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisState, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> nonCriticalErrorsBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisState, + com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> + nonCriticalErrorsBuilder_; /** + * + * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * */ - public java.util.List getNonCriticalErrorsList() { + public java.util.List + getNonCriticalErrorsList() { if (nonCriticalErrorsBuilder_ == null) { return java.util.Collections.unmodifiableList(nonCriticalErrors_); } else { @@ -1461,11 +1671,14 @@ public java.util.List getNonCr } } /** + * + * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * */ public int getNonCriticalErrorsCount() { if (nonCriticalErrorsBuilder_ == null) { @@ -1475,11 +1688,14 @@ public int getNonCriticalErrorsCount() { } } /** + * + * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * */ public com.google.cloud.asset.v1.IamPolicyAnalysisState getNonCriticalErrors(int index) { if (nonCriticalErrorsBuilder_ == null) { @@ -1489,11 +1705,14 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisState getNonCriticalErrors(int } } /** + * + * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * */ public Builder setNonCriticalErrors( int index, com.google.cloud.asset.v1.IamPolicyAnalysisState value) { @@ -1510,11 +1729,14 @@ public Builder setNonCriticalErrors( return this; } /** + * + * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * */ public Builder setNonCriticalErrors( int index, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder builderForValue) { @@ -1528,11 +1750,14 @@ public Builder setNonCriticalErrors( return this; } /** + * + * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * */ public Builder addNonCriticalErrors(com.google.cloud.asset.v1.IamPolicyAnalysisState value) { if (nonCriticalErrorsBuilder_ == null) { @@ -1548,11 +1773,14 @@ public Builder addNonCriticalErrors(com.google.cloud.asset.v1.IamPolicyAnalysisS return this; } /** + * + * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * */ public Builder addNonCriticalErrors( int index, com.google.cloud.asset.v1.IamPolicyAnalysisState value) { @@ -1569,11 +1797,14 @@ public Builder addNonCriticalErrors( return this; } /** + * + * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * */ public Builder addNonCriticalErrors( com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder builderForValue) { @@ -1587,11 +1818,14 @@ public Builder addNonCriticalErrors( return this; } /** + * + * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * */ public Builder addNonCriticalErrors( int index, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder builderForValue) { @@ -1605,18 +1839,20 @@ public Builder addNonCriticalErrors( return this; } /** + * + * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * */ public Builder addAllNonCriticalErrors( java.lang.Iterable values) { if (nonCriticalErrorsBuilder_ == null) { ensureNonCriticalErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nonCriticalErrors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nonCriticalErrors_); onChanged(); } else { nonCriticalErrorsBuilder_.addAllMessages(values); @@ -1624,11 +1860,14 @@ public Builder addAllNonCriticalErrors( return this; } /** + * + * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * */ public Builder clearNonCriticalErrors() { if (nonCriticalErrorsBuilder_ == null) { @@ -1641,11 +1880,14 @@ public Builder clearNonCriticalErrors() { return this; } /** + * + * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * */ public Builder removeNonCriticalErrors(int index) { if (nonCriticalErrorsBuilder_ == null) { @@ -1658,39 +1900,49 @@ public Builder removeNonCriticalErrors(int index) { return this; } /** + * + * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * */ public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder getNonCriticalErrorsBuilder( int index) { return getNonCriticalErrorsFieldBuilder().getBuilder(index); } /** + * + * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getNonCriticalErrorsOrBuilder( - int index) { + public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder + getNonCriticalErrorsOrBuilder(int index) { if (nonCriticalErrorsBuilder_ == null) { - return nonCriticalErrors_.get(index); } else { + return nonCriticalErrors_.get(index); + } else { return nonCriticalErrorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * */ - public java.util.List - getNonCriticalErrorsOrBuilderList() { + public java.util.List + getNonCriticalErrorsOrBuilderList() { if (nonCriticalErrorsBuilder_ != null) { return nonCriticalErrorsBuilder_.getMessageOrBuilderList(); } else { @@ -1698,45 +1950,62 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getNonCriticalE } } /** + * + * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder addNonCriticalErrorsBuilder() { - return getNonCriticalErrorsFieldBuilder().addBuilder( - com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()); + public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder + addNonCriticalErrorsBuilder() { + return getNonCriticalErrorsFieldBuilder() + .addBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()); } /** + * + * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * */ public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder addNonCriticalErrorsBuilder( int index) { - return getNonCriticalErrorsFieldBuilder().addBuilder( - index, com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()); + return getNonCriticalErrorsFieldBuilder() + .addBuilder( + index, com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()); } /** + * + * *
            * A list of non-critical errors happened during the query handling.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; + * */ - public java.util.List - getNonCriticalErrorsBuilderList() { + public java.util.List + getNonCriticalErrorsBuilderList() { return getNonCriticalErrorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisState, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisState, + com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> getNonCriticalErrorsFieldBuilder() { if (nonCriticalErrorsBuilder_ == null) { - nonCriticalErrorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisState, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>( + nonCriticalErrorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisState, + com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>( nonCriticalErrors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1745,6 +2014,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder addNonCriticalEr } return nonCriticalErrorsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1757,41 +2027,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) - private static final com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis DEFAULT_INSTANCE; + private static final com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis(); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getDefaultInstance() { + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IamPolicyAnalysis parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IamPolicyAnalysis parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1803,20 +2076,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getDefaultInstanceForType() { + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int MAIN_ANALYSIS_FIELD_NUMBER = 1; private com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis mainAnalysis_; /** + * + * *
        * The main analysis that matches the original request.
        * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * + * * @return Whether the mainAnalysis field is set. */ @java.lang.Override @@ -1824,102 +2101,138 @@ public boolean hasMainAnalysis() { return mainAnalysis_ != null; } /** + * + * *
        * The main analysis that matches the original request.
        * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * + * * @return The mainAnalysis. */ @java.lang.Override public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getMainAnalysis() { - return mainAnalysis_ == null ? com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.getDefaultInstance() : mainAnalysis_; + return mainAnalysis_ == null + ? com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.getDefaultInstance() + : mainAnalysis_; } /** + * + * *
        * The main analysis that matches the original request.
        * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * */ @java.lang.Override - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder getMainAnalysisOrBuilder() { + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder + getMainAnalysisOrBuilder() { return getMainAnalysis(); } public static final int SERVICE_ACCOUNT_IMPERSONATION_ANALYSIS_FIELD_NUMBER = 2; - private java.util.List serviceAccountImpersonationAnalysis_; + private java.util.List + serviceAccountImpersonationAnalysis_; /** + * + * *
        * The service account impersonation analysis if
        * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
        * enabled.
        * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ @java.lang.Override - public java.util.List getServiceAccountImpersonationAnalysisList() { + public java.util.List + getServiceAccountImpersonationAnalysisList() { return serviceAccountImpersonationAnalysis_; } /** + * + * *
        * The service account impersonation analysis if
        * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
        * enabled.
        * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> getServiceAccountImpersonationAnalysisOrBuilderList() { return serviceAccountImpersonationAnalysis_; } /** + * + * *
        * The service account impersonation analysis if
        * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
        * enabled.
        * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ @java.lang.Override public int getServiceAccountImpersonationAnalysisCount() { return serviceAccountImpersonationAnalysis_.size(); } /** + * + * *
        * The service account impersonation analysis if
        * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
        * enabled.
        * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ @java.lang.Override - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getServiceAccountImpersonationAnalysis(int index) { + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis + getServiceAccountImpersonationAnalysis(int index) { return serviceAccountImpersonationAnalysis_.get(index); } /** + * + * *
        * The service account impersonation analysis if
        * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
        * enabled.
        * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ @java.lang.Override - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder getServiceAccountImpersonationAnalysisOrBuilder( - int index) { + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder + getServiceAccountImpersonationAnalysisOrBuilder(int index) { return serviceAccountImpersonationAnalysis_.get(index); } public static final int FULLY_EXPLORED_FIELD_NUMBER = 3; private boolean fullyExplored_; /** + * + * *
        * Represents whether all entries in the [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] and
        * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] have been fully explored to
    @@ -1927,6 +2240,7 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBui
        * 
    * * bool fully_explored = 3; + * * @return The fullyExplored. */ @java.lang.Override @@ -1935,6 +2249,7 @@ public boolean getFullyExplored() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1946,8 +2261,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (mainAnalysis_ != null) { output.writeMessage(1, getMainAnalysis()); } @@ -1967,16 +2281,15 @@ public int getSerializedSize() { size = 0; if (mainAnalysis_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMainAnalysis()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMainAnalysis()); } for (int i = 0; i < serviceAccountImpersonationAnalysis_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, serviceAccountImpersonationAnalysis_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, serviceAccountImpersonationAnalysis_.get(i)); } if (fullyExplored_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, fullyExplored_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, fullyExplored_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1986,22 +2299,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.AnalyzeIamPolicyResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse other = (com.google.cloud.asset.v1.AnalyzeIamPolicyResponse) obj; + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse other = + (com.google.cloud.asset.v1.AnalyzeIamPolicyResponse) obj; if (hasMainAnalysis() != other.hasMainAnalysis()) return false; if (hasMainAnalysis()) { - if (!getMainAnalysis() - .equals(other.getMainAnalysis())) return false; + if (!getMainAnalysis().equals(other.getMainAnalysis())) return false; } if (!getServiceAccountImpersonationAnalysisList() .equals(other.getServiceAccountImpersonationAnalysisList())) return false; - if (getFullyExplored() - != other.getFullyExplored()) return false; + if (getFullyExplored() != other.getFullyExplored()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2022,137 +2334,142 @@ public int hashCode() { hash = (53 * hash) + getServiceAccountImpersonationAnalysisList().hashCode(); } hash = (37 * hash) + FULLY_EXPLORED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFullyExplored()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFullyExplored()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse 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.asset.v1.AnalyzeIamPolicyResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * A response message for [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
        * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzeIamPolicyResponse) com.google.cloud.asset.v1.AnalyzeIamPolicyResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.class, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.Builder.class); + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.class, + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.Builder.class); } // Construct using com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2175,9 +2492,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor; } @java.lang.Override @@ -2196,7 +2513,8 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse build() { @java.lang.Override public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse buildPartial() { - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse result = new com.google.cloud.asset.v1.AnalyzeIamPolicyResponse(this); + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse result = + new com.google.cloud.asset.v1.AnalyzeIamPolicyResponse(this); int from_bitField0_ = bitField0_; if (mainAnalysisBuilder_ == null) { result.mainAnalysis_ = mainAnalysis_; @@ -2205,12 +2523,14 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse buildPartial() { } if (serviceAccountImpersonationAnalysisBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - serviceAccountImpersonationAnalysis_ = java.util.Collections.unmodifiableList(serviceAccountImpersonationAnalysis_); + serviceAccountImpersonationAnalysis_ = + java.util.Collections.unmodifiableList(serviceAccountImpersonationAnalysis_); bitField0_ = (bitField0_ & ~0x00000001); } result.serviceAccountImpersonationAnalysis_ = serviceAccountImpersonationAnalysis_; } else { - result.serviceAccountImpersonationAnalysis_ = serviceAccountImpersonationAnalysisBuilder_.build(); + result.serviceAccountImpersonationAnalysis_ = + serviceAccountImpersonationAnalysisBuilder_.build(); } result.fullyExplored_ = fullyExplored_; onBuilt(); @@ -2221,38 +2541,39 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.AnalyzeIamPolicyResponse) { - return mergeFrom((com.google.cloud.asset.v1.AnalyzeIamPolicyResponse)other); + return mergeFrom((com.google.cloud.asset.v1.AnalyzeIamPolicyResponse) other); } else { super.mergeFrom(other); return this; @@ -2260,7 +2581,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse other) { - if (other == com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.getDefaultInstance()) + return this; if (other.hasMainAnalysis()) { mergeMainAnalysis(other.getMainAnalysis()); } @@ -2282,11 +2604,13 @@ public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse othe serviceAccountImpersonationAnalysisBuilder_ = null; serviceAccountImpersonationAnalysis_ = other.serviceAccountImpersonationAnalysis_; bitField0_ = (bitField0_ & ~0x00000001); - serviceAccountImpersonationAnalysisBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getServiceAccountImpersonationAnalysisFieldBuilder() : null; + serviceAccountImpersonationAnalysisBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getServiceAccountImpersonationAnalysisFieldBuilder() + : null; } else { - serviceAccountImpersonationAnalysisBuilder_.addAllMessages(other.serviceAccountImpersonationAnalysis_); + serviceAccountImpersonationAnalysisBuilder_.addAllMessages( + other.serviceAccountImpersonationAnalysis_); } } } @@ -2319,37 +2643,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getMainAnalysisFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage(getMainAnalysisFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 10 - case 18: { - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis m = - input.readMessage( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.parser(), - extensionRegistry); - if (serviceAccountImpersonationAnalysisBuilder_ == null) { - ensureServiceAccountImpersonationAnalysisIsMutable(); - serviceAccountImpersonationAnalysis_.add(m); - } else { - serviceAccountImpersonationAnalysisBuilder_.addMessage(m); - } - break; - } // case 18 - case 24: { - fullyExplored_ = input.readBool(); + break; + } // case 10 + case 18: + { + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis m = + input.readMessage( + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis + .parser(), + extensionRegistry); + if (serviceAccountImpersonationAnalysisBuilder_ == null) { + ensureServiceAccountImpersonationAnalysisIsMutable(); + serviceAccountImpersonationAnalysis_.add(m); + } else { + serviceAccountImpersonationAnalysisBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: + { + fullyExplored_ = input.readBool(); - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2359,45 +2686,64 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis mainAnalysis_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> mainAnalysisBuilder_; + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> + mainAnalysisBuilder_; /** + * + * *
          * The main analysis that matches the original request.
          * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * + * * @return Whether the mainAnalysis field is set. */ public boolean hasMainAnalysis() { return mainAnalysisBuilder_ != null || mainAnalysis_ != null; } /** + * + * *
          * The main analysis that matches the original request.
          * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * + * * @return The mainAnalysis. */ public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getMainAnalysis() { if (mainAnalysisBuilder_ == null) { - return mainAnalysis_ == null ? com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.getDefaultInstance() : mainAnalysis_; + return mainAnalysis_ == null + ? com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis + .getDefaultInstance() + : mainAnalysis_; } else { return mainAnalysisBuilder_.getMessage(); } } /** + * + * *
          * The main analysis that matches the original request.
          * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * */ - public Builder setMainAnalysis(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) { + public Builder setMainAnalysis( + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) { if (mainAnalysisBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2411,14 +2757,18 @@ public Builder setMainAnalysis(com.google.cloud.asset.v1.AnalyzeIamPolicyRespons return this; } /** + * + * *
          * The main analysis that matches the original request.
          * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * */ public Builder setMainAnalysis( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder builderForValue) { + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder + builderForValue) { if (mainAnalysisBuilder_ == null) { mainAnalysis_ = builderForValue.build(); onChanged(); @@ -2429,17 +2779,24 @@ public Builder setMainAnalysis( return this; } /** + * + * *
          * The main analysis that matches the original request.
          * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * */ - public Builder mergeMainAnalysis(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) { + public Builder mergeMainAnalysis( + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) { if (mainAnalysisBuilder_ == null) { if (mainAnalysis_ != null) { mainAnalysis_ = - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.newBuilder(mainAnalysis_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.newBuilder( + mainAnalysis_) + .mergeFrom(value) + .buildPartial(); } else { mainAnalysis_ = value; } @@ -2451,11 +2808,14 @@ public Builder mergeMainAnalysis(com.google.cloud.asset.v1.AnalyzeIamPolicyRespo return this; } /** + * + * *
          * The main analysis that matches the original request.
          * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * */ public Builder clearMainAnalysis() { if (mainAnalysisBuilder_ == null) { @@ -2469,75 +2829,103 @@ public Builder clearMainAnalysis() { return this; } /** + * + * *
          * The main analysis that matches the original request.
          * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * */ - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder getMainAnalysisBuilder() { - + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder + getMainAnalysisBuilder() { + onChanged(); return getMainAnalysisFieldBuilder().getBuilder(); } /** + * + * *
          * The main analysis that matches the original request.
          * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * */ - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder getMainAnalysisOrBuilder() { + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder + getMainAnalysisOrBuilder() { if (mainAnalysisBuilder_ != null) { return mainAnalysisBuilder_.getMessageOrBuilder(); } else { - return mainAnalysis_ == null ? - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.getDefaultInstance() : mainAnalysis_; + return mainAnalysis_ == null + ? com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis + .getDefaultInstance() + : mainAnalysis_; } } /** + * + * *
          * The main analysis that matches the original request.
          * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> getMainAnalysisFieldBuilder() { if (mainAnalysisBuilder_ == null) { - mainAnalysisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder>( - getMainAnalysis(), - getParentForChildren(), - isClean()); + mainAnalysisBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder>( + getMainAnalysis(), getParentForChildren(), isClean()); mainAnalysis_ = null; } return mainAnalysisBuilder_; } - private java.util.List serviceAccountImpersonationAnalysis_ = - java.util.Collections.emptyList(); + private java.util.List + serviceAccountImpersonationAnalysis_ = java.util.Collections.emptyList(); + private void ensureServiceAccountImpersonationAnalysisIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - serviceAccountImpersonationAnalysis_ = new java.util.ArrayList(serviceAccountImpersonationAnalysis_); + serviceAccountImpersonationAnalysis_ = + new java.util.ArrayList< + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis>( + serviceAccountImpersonationAnalysis_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> serviceAccountImpersonationAnalysisBuilder_; + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> + serviceAccountImpersonationAnalysisBuilder_; /** + * + * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ - public java.util.List getServiceAccountImpersonationAnalysisList() { + public java.util.List + getServiceAccountImpersonationAnalysisList() { if (serviceAccountImpersonationAnalysisBuilder_ == null) { return java.util.Collections.unmodifiableList(serviceAccountImpersonationAnalysis_); } else { @@ -2545,13 +2933,17 @@ public java.util.List * The service account impersonation analysis if * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is * enabled. *
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ public int getServiceAccountImpersonationAnalysisCount() { if (serviceAccountImpersonationAnalysisBuilder_ == null) { @@ -2561,15 +2953,20 @@ public int getServiceAccountImpersonationAnalysisCount() { } } /** + * + * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getServiceAccountImpersonationAnalysis(int index) { + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis + getServiceAccountImpersonationAnalysis(int index) { if (serviceAccountImpersonationAnalysisBuilder_ == null) { return serviceAccountImpersonationAnalysis_.get(index); } else { @@ -2577,13 +2974,17 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getS } } /** + * + * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ public Builder setServiceAccountImpersonationAnalysis( int index, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) { @@ -2600,16 +3001,22 @@ public Builder setServiceAccountImpersonationAnalysis( return this; } /** + * + * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ public Builder setServiceAccountImpersonationAnalysis( - int index, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder builderForValue) { + int index, + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder + builderForValue) { if (serviceAccountImpersonationAnalysisBuilder_ == null) { ensureServiceAccountImpersonationAnalysisIsMutable(); serviceAccountImpersonationAnalysis_.set(index, builderForValue.build()); @@ -2620,15 +3027,20 @@ public Builder setServiceAccountImpersonationAnalysis( return this; } /** + * + * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ - public Builder addServiceAccountImpersonationAnalysis(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) { + public Builder addServiceAccountImpersonationAnalysis( + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) { if (serviceAccountImpersonationAnalysisBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2642,13 +3054,17 @@ public Builder addServiceAccountImpersonationAnalysis(com.google.cloud.asset.v1. return this; } /** + * + * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ public Builder addServiceAccountImpersonationAnalysis( int index, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) { @@ -2665,16 +3081,21 @@ public Builder addServiceAccountImpersonationAnalysis( return this; } /** + * + * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ public Builder addServiceAccountImpersonationAnalysis( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder builderForValue) { + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder + builderForValue) { if (serviceAccountImpersonationAnalysisBuilder_ == null) { ensureServiceAccountImpersonationAnalysisIsMutable(); serviceAccountImpersonationAnalysis_.add(builderForValue.build()); @@ -2685,16 +3106,22 @@ public Builder addServiceAccountImpersonationAnalysis( return this; } /** + * + * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ public Builder addServiceAccountImpersonationAnalysis( - int index, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder builderForValue) { + int index, + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder + builderForValue) { if (serviceAccountImpersonationAnalysisBuilder_ == null) { ensureServiceAccountImpersonationAnalysisIsMutable(); serviceAccountImpersonationAnalysis_.add(index, builderForValue.build()); @@ -2705,16 +3132,22 @@ public Builder addServiceAccountImpersonationAnalysis( return this; } /** + * + * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ public Builder addAllServiceAccountImpersonationAnalysis( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis> + values) { if (serviceAccountImpersonationAnalysisBuilder_ == null) { ensureServiceAccountImpersonationAnalysisIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -2726,13 +3159,17 @@ public Builder addAllServiceAccountImpersonationAnalysis( return this; } /** + * + * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ public Builder clearServiceAccountImpersonationAnalysis() { if (serviceAccountImpersonationAnalysisBuilder_ == null) { @@ -2745,13 +3182,17 @@ public Builder clearServiceAccountImpersonationAnalysis() { return this; } /** + * + * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ public Builder removeServiceAccountImpersonationAnalysis(int index) { if (serviceAccountImpersonationAnalysisBuilder_ == null) { @@ -2764,45 +3205,59 @@ public Builder removeServiceAccountImpersonationAnalysis(int index) { return this; } /** + * + * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder getServiceAccountImpersonationAnalysisBuilder( - int index) { + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder + getServiceAccountImpersonationAnalysisBuilder(int index) { return getServiceAccountImpersonationAnalysisFieldBuilder().getBuilder(index); } /** + * + * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder getServiceAccountImpersonationAnalysisOrBuilder( - int index) { + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder + getServiceAccountImpersonationAnalysisOrBuilder(int index) { if (serviceAccountImpersonationAnalysisBuilder_ == null) { - return serviceAccountImpersonationAnalysis_.get(index); } else { + return serviceAccountImpersonationAnalysis_.get(index); + } else { return serviceAccountImpersonationAnalysisBuilder_.getMessageOrBuilder(index); } } /** + * + * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ - public java.util.List - getServiceAccountImpersonationAnalysisOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> + getServiceAccountImpersonationAnalysisOrBuilderList() { if (serviceAccountImpersonationAnalysisBuilder_ != null) { return serviceAccountImpersonationAnalysisBuilder_.getMessageOrBuilderList(); } else { @@ -2810,51 +3265,76 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBui } } /** + * + * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder addServiceAccountImpersonationAnalysisBuilder() { - return getServiceAccountImpersonationAnalysisFieldBuilder().addBuilder( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.getDefaultInstance()); + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder + addServiceAccountImpersonationAnalysisBuilder() { + return getServiceAccountImpersonationAnalysisFieldBuilder() + .addBuilder( + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis + .getDefaultInstance()); } /** + * + * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder addServiceAccountImpersonationAnalysisBuilder( - int index) { - return getServiceAccountImpersonationAnalysisFieldBuilder().addBuilder( - index, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.getDefaultInstance()); + public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder + addServiceAccountImpersonationAnalysisBuilder(int index) { + return getServiceAccountImpersonationAnalysisFieldBuilder() + .addBuilder( + index, + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis + .getDefaultInstance()); } /** + * + * *
          * The service account impersonation analysis if
          * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
          * enabled.
          * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ - public java.util.List - getServiceAccountImpersonationAnalysisBuilderList() { + public java.util.List< + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder> + getServiceAccountImpersonationAnalysisBuilderList() { return getServiceAccountImpersonationAnalysisFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> getServiceAccountImpersonationAnalysisFieldBuilder() { if (serviceAccountImpersonationAnalysisBuilder_ == null) { - serviceAccountImpersonationAnalysisBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder>( + serviceAccountImpersonationAnalysisBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis, + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder, + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder>( serviceAccountImpersonationAnalysis_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2864,8 +3344,10 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Buil return serviceAccountImpersonationAnalysisBuilder_; } - private boolean fullyExplored_ ; + private boolean fullyExplored_; /** + * + * *
          * Represents whether all entries in the [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] and
          * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] have been fully explored to
    @@ -2873,6 +3355,7 @@ public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Buil
          * 
    * * bool fully_explored = 3; + * * @return The fullyExplored. */ @java.lang.Override @@ -2880,6 +3363,8 @@ public boolean getFullyExplored() { return fullyExplored_; } /** + * + * *
          * Represents whether all entries in the [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] and
          * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] have been fully explored to
    @@ -2887,16 +3372,19 @@ public boolean getFullyExplored() {
          * 
    * * bool fully_explored = 3; + * * @param value The fullyExplored to set. * @return This builder for chaining. */ public Builder setFullyExplored(boolean value) { - + fullyExplored_ = value; onChanged(); return this; } /** + * + * *
          * Represents whether all entries in the [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] and
          * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] have been fully explored to
    @@ -2904,17 +3392,18 @@ public Builder setFullyExplored(boolean value) {
          * 
    * * bool fully_explored = 3; + * * @return This builder for chaining. */ public Builder clearFullyExplored() { - + fullyExplored_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2924,12 +3413,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.AnalyzeIamPolicyResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzeIamPolicyResponse) private static final com.google.cloud.asset.v1.AnalyzeIamPolicyResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.AnalyzeIamPolicyResponse(); } @@ -2938,27 +3427,27 @@ public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnalyzeIamPolicyResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnalyzeIamPolicyResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2973,6 +3462,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponseOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponseOrBuilder.java similarity index 58% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponseOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponseOrBuilder.java index 4181ac820e89..d55dcdf9ccf0 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponseOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyResponseOrBuilder.java @@ -1,94 +1,146 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface AnalyzeIamPolicyResponseOrBuilder extends +public interface AnalyzeIamPolicyResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzeIamPolicyResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The main analysis that matches the original request.
        * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * + * * @return Whether the mainAnalysis field is set. */ boolean hasMainAnalysis(); /** + * + * *
        * The main analysis that matches the original request.
        * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * + * * @return The mainAnalysis. */ com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getMainAnalysis(); /** + * + * *
        * The main analysis that matches the original request.
        * 
    * - * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; + * */ - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder getMainAnalysisOrBuilder(); + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder + getMainAnalysisOrBuilder(); /** + * + * *
        * The service account impersonation analysis if
        * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
        * enabled.
        * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ - java.util.List + java.util.List getServiceAccountImpersonationAnalysisList(); /** + * + * *
        * The service account impersonation analysis if
        * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
        * enabled.
        * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getServiceAccountImpersonationAnalysis(int index); + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis + getServiceAccountImpersonationAnalysis(int index); /** + * + * *
        * The service account impersonation analysis if
        * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
        * enabled.
        * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ int getServiceAccountImpersonationAnalysisCount(); /** + * + * *
        * The service account impersonation analysis if
        * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
        * enabled.
        * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> getServiceAccountImpersonationAnalysisOrBuilderList(); /** + * + * *
        * The service account impersonation analysis if
        * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
        * enabled.
        * 
    * - * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * + * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; + * */ - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder getServiceAccountImpersonationAnalysisOrBuilder( - int index); + com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder + getServiceAccountImpersonationAnalysisOrBuilder(int index); /** + * + * *
        * Represents whether all entries in the [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis] and
        * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis] have been fully explored to
    @@ -96,6 +148,7 @@ com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder ge
        * 
    * * bool fully_explored = 3; + * * @return The fullyExplored. */ boolean getFullyExplored(); diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequest.java similarity index 72% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequest.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequest.java index 6545e57819bf..ea3940ed5c9a 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * The request message for performing resource move analysis.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeMoveRequest} */ -public final class AnalyzeMoveRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AnalyzeMoveRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzeMoveRequest) AnalyzeMoveRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnalyzeMoveRequest.newBuilder() to construct. private AnalyzeMoveRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AnalyzeMoveRequest() { resource_ = ""; destinationParent_ = ""; @@ -27,39 +45,43 @@ private AnalyzeMoveRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnalyzeMoveRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeMoveRequest.class, com.google.cloud.asset.v1.AnalyzeMoveRequest.Builder.class); + com.google.cloud.asset.v1.AnalyzeMoveRequest.class, + com.google.cloud.asset.v1.AnalyzeMoveRequest.Builder.class); } /** + * + * *
        * View enum for supporting partial analysis responses.
        * 
    * * Protobuf enum {@code google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView} */ - public enum AnalysisView - implements com.google.protobuf.ProtocolMessageEnum { + public enum AnalysisView implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
          * The default/unset value.
          * The API will default to the FULL view.
    @@ -69,6 +91,8 @@ public enum AnalysisView
          */
         ANALYSIS_VIEW_UNSPECIFIED(0),
         /**
    +     *
    +     *
          * 
          * Full analysis including all level of impacts of the specified resource
          * move.
    @@ -78,6 +102,8 @@ public enum AnalysisView
          */
         FULL(1),
         /**
    +     *
    +     *
          * 
          * Basic analysis only including blockers which will prevent the specified
          * resource move at runtime.
    @@ -90,6 +116,8 @@ public enum AnalysisView
         ;
     
         /**
    +     *
    +     *
          * 
          * The default/unset value.
          * The API will default to the FULL view.
    @@ -99,6 +127,8 @@ public enum AnalysisView
          */
         public static final int ANALYSIS_VIEW_UNSPECIFIED_VALUE = 0;
         /**
    +     *
    +     *
          * 
          * Full analysis including all level of impacts of the specified resource
          * move.
    @@ -108,6 +138,8 @@ public enum AnalysisView
          */
         public static final int FULL_VALUE = 1;
         /**
    +     *
    +     *
          * 
          * Basic analysis only including blockers which will prevent the specified
          * resource move at runtime.
    @@ -117,7 +149,6 @@ public enum AnalysisView
          */
         public static final int BASIC_VALUE = 2;
     
    -
         public final int getNumber() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalArgumentException(
    @@ -142,49 +173,49 @@ public static AnalysisView valueOf(int value) {
          */
         public static AnalysisView forNumber(int value) {
           switch (value) {
    -        case 0: return ANALYSIS_VIEW_UNSPECIFIED;
    -        case 1: return FULL;
    -        case 2: return BASIC;
    -        default: return null;
    +        case 0:
    +          return ANALYSIS_VIEW_UNSPECIFIED;
    +        case 1:
    +          return FULL;
    +        case 2:
    +          return BASIC;
    +        default:
    +          return null;
           }
         }
     
    -    public static com.google.protobuf.Internal.EnumLiteMap
    -        internalGetValueMap() {
    +    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
           return internalValueMap;
         }
    -    private static final com.google.protobuf.Internal.EnumLiteMap<
    -        AnalysisView> internalValueMap =
    -          new com.google.protobuf.Internal.EnumLiteMap() {
    -            public AnalysisView findValueByNumber(int number) {
    -              return AnalysisView.forNumber(number);
    -            }
    -          };
    -
    -    public final com.google.protobuf.Descriptors.EnumValueDescriptor
    -        getValueDescriptor() {
    +
    +    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
    +        new com.google.protobuf.Internal.EnumLiteMap() {
    +          public AnalysisView findValueByNumber(int number) {
    +            return AnalysisView.forNumber(number);
    +          }
    +        };
    +
    +    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalStateException(
                 "Can't get the descriptor of an unrecognized enum value.");
           }
           return getDescriptor().getValues().get(ordinal());
         }
    -    public final com.google.protobuf.Descriptors.EnumDescriptor
    -        getDescriptorForType() {
    +
    +    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
           return getDescriptor();
         }
    -    public static final com.google.protobuf.Descriptors.EnumDescriptor
    -        getDescriptor() {
    +
    +    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
           return com.google.cloud.asset.v1.AnalyzeMoveRequest.getDescriptor().getEnumTypes().get(0);
         }
     
         private static final AnalysisView[] VALUES = values();
     
    -    public static AnalysisView valueOf(
    -        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
    +    public static AnalysisView valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
           if (desc.getType() != getDescriptor()) {
    -        throw new java.lang.IllegalArgumentException(
    -          "EnumValueDescriptor is not for this type.");
    +        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
           }
           if (desc.getIndex() == -1) {
             return UNRECOGNIZED;
    @@ -204,6 +235,8 @@ private AnalysisView(int value) {
       public static final int RESOURCE_FIELD_NUMBER = 1;
       private volatile java.lang.Object resource_;
       /**
    +   *
    +   *
        * 
        * Required. Name of the resource to perform the analysis against.
        * Only GCP Project are supported as of today. Hence, this can only be Project
    @@ -212,6 +245,7 @@ private AnalysisView(int value) {
        * 
    * * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The resource. */ @java.lang.Override @@ -220,14 +254,15 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** + * + * *
        * Required. Name of the resource to perform the analysis against.
        * Only GCP Project are supported as of today. Hence, this can only be Project
    @@ -236,16 +271,15 @@ public java.lang.String getResource() {
        * 
    * * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -256,6 +290,8 @@ public java.lang.String getResource() { public static final int DESTINATION_PARENT_FIELD_NUMBER = 2; private volatile java.lang.Object destinationParent_; /** + * + * *
        * Required. Name of the GCP Folder or Organization to reparent the target
        * resource. The analysis will be performed against hypothetically moving the
    @@ -265,6 +301,7 @@ public java.lang.String getResource() {
        * 
    * * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The destinationParent. */ @java.lang.Override @@ -273,14 +310,15 @@ public java.lang.String getDestinationParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationParent_ = s; return s; } } /** + * + * *
        * Required. Name of the GCP Folder or Organization to reparent the target
        * resource. The analysis will be performed against hypothetically moving the
    @@ -290,16 +328,15 @@ public java.lang.String getDestinationParent() {
        * 
    * * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for destinationParent. */ @java.lang.Override - public com.google.protobuf.ByteString - getDestinationParentBytes() { + public com.google.protobuf.ByteString getDestinationParentBytes() { java.lang.Object ref = destinationParent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destinationParent_ = b; return b; } else { @@ -310,33 +347,45 @@ public java.lang.String getDestinationParent() { public static final int VIEW_FIELD_NUMBER = 3; private int view_; /** + * + * *
        * Analysis view indicating what information should be included in the
        * analysis response. If unspecified, the default view is FULL.
        * 
    * * .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3; + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
        * Analysis view indicating what information should be included in the
        * analysis response. If unspecified, the default view is FULL.
        * 
    * * .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3; + * * @return The view. */ - @java.lang.Override public com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView getView() { + @java.lang.Override + public com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView getView() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView result = com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView.valueOf(view_); - return result == null ? com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView.UNRECOGNIZED : result; + com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView result = + com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView.valueOf(view_); + return result == null + ? com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -348,15 +397,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationParent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, destinationParent_); } - if (view_ != com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView.ANALYSIS_VIEW_UNSPECIFIED.getNumber()) { + if (view_ + != com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView.ANALYSIS_VIEW_UNSPECIFIED + .getNumber()) { output.writeEnum(3, view_); } getUnknownFields().writeTo(output); @@ -374,9 +424,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationParent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, destinationParent_); } - if (view_ != com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView.ANALYSIS_VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, view_); + if (view_ + != com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView.ANALYSIS_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, view_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -386,17 +437,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.AnalyzeMoveRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.AnalyzeMoveRequest other = (com.google.cloud.asset.v1.AnalyzeMoveRequest) obj; + com.google.cloud.asset.v1.AnalyzeMoveRequest other = + (com.google.cloud.asset.v1.AnalyzeMoveRequest) obj; - if (!getResource() - .equals(other.getResource())) return false; - if (!getDestinationParent() - .equals(other.getDestinationParent())) return false; + if (!getResource().equals(other.getResource())) return false; + if (!getDestinationParent().equals(other.getDestinationParent())) return false; if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -420,130 +470,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.AnalyzeMoveRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.AnalyzeMoveRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.AnalyzeMoveRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.AnalyzeMoveRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.AnalyzeMoveRequest 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.asset.v1.AnalyzeMoveRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.AnalyzeMoveRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.AnalyzeMoveRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.AnalyzeMoveRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.AnalyzeMoveRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.AnalyzeMoveRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.AnalyzeMoveRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.AnalyzeMoveRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.AnalyzeMoveRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.AnalyzeMoveRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * The request message for performing resource move analysis.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeMoveRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzeMoveRequest) com.google.cloud.asset.v1.AnalyzeMoveRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeMoveRequest.class, com.google.cloud.asset.v1.AnalyzeMoveRequest.Builder.class); + com.google.cloud.asset.v1.AnalyzeMoveRequest.class, + com.google.cloud.asset.v1.AnalyzeMoveRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.AnalyzeMoveRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -557,9 +613,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_descriptor; } @java.lang.Override @@ -578,7 +634,8 @@ public com.google.cloud.asset.v1.AnalyzeMoveRequest build() { @java.lang.Override public com.google.cloud.asset.v1.AnalyzeMoveRequest buildPartial() { - com.google.cloud.asset.v1.AnalyzeMoveRequest result = new com.google.cloud.asset.v1.AnalyzeMoveRequest(this); + com.google.cloud.asset.v1.AnalyzeMoveRequest result = + new com.google.cloud.asset.v1.AnalyzeMoveRequest(this); result.resource_ = resource_; result.destinationParent_ = destinationParent_; result.view_ = view_; @@ -590,38 +647,39 @@ public com.google.cloud.asset.v1.AnalyzeMoveRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.AnalyzeMoveRequest) { - return mergeFrom((com.google.cloud.asset.v1.AnalyzeMoveRequest)other); + return mergeFrom((com.google.cloud.asset.v1.AnalyzeMoveRequest) other); } else { super.mergeFrom(other); return this; @@ -667,27 +725,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - resource_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - destinationParent_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - view_ = input.readEnum(); - - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + resource_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + destinationParent_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + view_ = input.readEnum(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -700,6 +762,8 @@ public Builder mergeFrom( private java.lang.Object resource_ = ""; /** + * + * *
          * Required. Name of the resource to perform the analysis against.
          * Only GCP Project are supported as of today. Hence, this can only be Project
    @@ -708,13 +772,13 @@ public Builder mergeFrom(
          * 
    * * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -723,6 +787,8 @@ public java.lang.String getResource() { } } /** + * + * *
          * Required. Name of the resource to perform the analysis against.
          * Only GCP Project are supported as of today. Hence, this can only be Project
    @@ -731,15 +797,14 @@ public java.lang.String getResource() {
          * 
    * * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for resource. */ - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -747,6 +812,8 @@ public java.lang.String getResource() { } } /** + * + * *
          * Required. Name of the resource to perform the analysis against.
          * Only GCP Project are supported as of today. Hence, this can only be Project
    @@ -755,20 +822,22 @@ public java.lang.String getResource() {
          * 
    * * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource( - java.lang.String value) { + public Builder setResource(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** + * + * *
          * Required. Name of the resource to perform the analysis against.
          * Only GCP Project are supported as of today. Hence, this can only be Project
    @@ -777,15 +846,18 @@ public Builder setResource(
          * 
    * * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** + * + * *
          * Required. Name of the resource to perform the analysis against.
          * Only GCP Project are supported as of today. Hence, this can only be Project
    @@ -794,16 +866,16 @@ public Builder clearResource() {
          * 
    * * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; @@ -811,6 +883,8 @@ public Builder setResourceBytes( private java.lang.Object destinationParent_ = ""; /** + * + * *
          * Required. Name of the GCP Folder or Organization to reparent the target
          * resource. The analysis will be performed against hypothetically moving the
    @@ -820,13 +894,13 @@ public Builder setResourceBytes(
          * 
    * * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The destinationParent. */ public java.lang.String getDestinationParent() { java.lang.Object ref = destinationParent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationParent_ = s; return s; @@ -835,6 +909,8 @@ public java.lang.String getDestinationParent() { } } /** + * + * *
          * Required. Name of the GCP Folder or Organization to reparent the target
          * resource. The analysis will be performed against hypothetically moving the
    @@ -844,15 +920,14 @@ public java.lang.String getDestinationParent() {
          * 
    * * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for destinationParent. */ - public com.google.protobuf.ByteString - getDestinationParentBytes() { + public com.google.protobuf.ByteString getDestinationParentBytes() { java.lang.Object ref = destinationParent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destinationParent_ = b; return b; } else { @@ -860,6 +935,8 @@ public java.lang.String getDestinationParent() { } } /** + * + * *
          * Required. Name of the GCP Folder or Organization to reparent the target
          * resource. The analysis will be performed against hypothetically moving the
    @@ -869,20 +946,22 @@ public java.lang.String getDestinationParent() {
          * 
    * * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The destinationParent to set. * @return This builder for chaining. */ - public Builder setDestinationParent( - java.lang.String value) { + public Builder setDestinationParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + destinationParent_ = value; onChanged(); return this; } /** + * + * *
          * Required. Name of the GCP Folder or Organization to reparent the target
          * resource. The analysis will be performed against hypothetically moving the
    @@ -892,15 +971,18 @@ public Builder setDestinationParent(
          * 
    * * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDestinationParent() { - + destinationParent_ = getDefaultInstance().getDestinationParent(); onChanged(); return this; } /** + * + * *
          * Required. Name of the GCP Folder or Organization to reparent the target
          * resource. The analysis will be performed against hypothetically moving the
    @@ -910,16 +992,16 @@ public Builder clearDestinationParent() {
          * 
    * * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for destinationParent to set. * @return This builder for chaining. */ - public Builder setDestinationParentBytes( - com.google.protobuf.ByteString value) { + public Builder setDestinationParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationParent_ = value; onChanged(); return this; @@ -927,55 +1009,71 @@ public Builder setDestinationParentBytes( private int view_ = 0; /** + * + * *
          * Analysis view indicating what information should be included in the
          * analysis response. If unspecified, the default view is FULL.
          * 
    * * .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3; + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
          * Analysis view indicating what information should be included in the
          * analysis response. If unspecified, the default view is FULL.
          * 
    * * .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3; + * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ public Builder setViewValue(int value) { - + view_ = value; onChanged(); return this; } /** + * + * *
          * Analysis view indicating what information should be included in the
          * analysis response. If unspecified, the default view is FULL.
          * 
    * * .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3; + * * @return The view. */ @java.lang.Override public com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView getView() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView result = com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView.valueOf(view_); - return result == null ? com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView.UNRECOGNIZED : result; + com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView result = + com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView.valueOf(view_); + return result == null + ? com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView.UNRECOGNIZED + : result; } /** + * + * *
          * Analysis view indicating what information should be included in the
          * analysis response. If unspecified, the default view is FULL.
          * 
    * * .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3; + * * @param value The view to set. * @return This builder for chaining. */ @@ -983,29 +1081,32 @@ public Builder setView(com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView if (value == null) { throw new NullPointerException(); } - + view_ = value.getNumber(); onChanged(); return this; } /** + * + * *
          * Analysis view indicating what information should be included in the
          * analysis response. If unspecified, the default view is FULL.
          * 
    * * .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3; + * * @return This builder for chaining. */ public Builder clearView() { - + view_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1015,12 +1116,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.AnalyzeMoveRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzeMoveRequest) private static final com.google.cloud.asset.v1.AnalyzeMoveRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.AnalyzeMoveRequest(); } @@ -1029,27 +1130,27 @@ public static com.google.cloud.asset.v1.AnalyzeMoveRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnalyzeMoveRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnalyzeMoveRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1064,6 +1165,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.AnalyzeMoveRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequestOrBuilder.java similarity index 77% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequestOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequestOrBuilder.java index 9823f3719da8..5b4a1f5fd05a 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface AnalyzeMoveRequestOrBuilder extends +public interface AnalyzeMoveRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzeMoveRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. Name of the resource to perform the analysis against.
        * Only GCP Project are supported as of today. Hence, this can only be Project
    @@ -16,10 +34,13 @@ public interface AnalyzeMoveRequestOrBuilder extends
        * 
    * * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The resource. */ java.lang.String getResource(); /** + * + * *
        * Required. Name of the resource to perform the analysis against.
        * Only GCP Project are supported as of today. Hence, this can only be Project
    @@ -28,12 +49,14 @@ public interface AnalyzeMoveRequestOrBuilder extends
        * 
    * * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for resource. */ - com.google.protobuf.ByteString - getResourceBytes(); + com.google.protobuf.ByteString getResourceBytes(); /** + * + * *
        * Required. Name of the GCP Folder or Organization to reparent the target
        * resource. The analysis will be performed against hypothetically moving the
    @@ -43,10 +66,13 @@ public interface AnalyzeMoveRequestOrBuilder extends
        * 
    * * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The destinationParent. */ java.lang.String getDestinationParent(); /** + * + * *
        * Required. Name of the GCP Folder or Organization to reparent the target
        * resource. The analysis will be performed against hypothetically moving the
    @@ -56,28 +82,34 @@ public interface AnalyzeMoveRequestOrBuilder extends
        * 
    * * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for destinationParent. */ - com.google.protobuf.ByteString - getDestinationParentBytes(); + com.google.protobuf.ByteString getDestinationParentBytes(); /** + * + * *
        * Analysis view indicating what information should be included in the
        * analysis response. If unspecified, the default view is FULL.
        * 
    * * .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3; + * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** + * + * *
        * Analysis view indicating what information should be included in the
        * analysis response. If unspecified, the default view is FULL.
        * 
    * * .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3; + * * @return The view. */ com.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView getView(); diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponse.java similarity index 73% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponse.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponse.java index e972159d75b7..4a0685f15acb 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponse.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponse.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * The response message for resource move analysis.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeMoveResponse} */ -public final class AnalyzeMoveResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AnalyzeMoveResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzeMoveResponse) AnalyzeMoveResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnalyzeMoveResponse.newBuilder() to construct. private AnalyzeMoveResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AnalyzeMoveResponse() { moveAnalysis_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnalyzeMoveResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeMoveResponse.class, com.google.cloud.asset.v1.AnalyzeMoveResponse.Builder.class); + com.google.cloud.asset.v1.AnalyzeMoveResponse.class, + com.google.cloud.asset.v1.AnalyzeMoveResponse.Builder.class); } public static final int MOVE_ANALYSIS_FIELD_NUMBER = 1; private java.util.List moveAnalysis_; /** + * + * *
        * The list of analyses returned from performing the intended resource move
        * analysis. The analysis is grouped by different Cloud services.
    @@ -63,6 +84,8 @@ public java.util.List getMoveAnalysisLis
         return moveAnalysis_;
       }
       /**
    +   *
    +   *
        * 
        * The list of analyses returned from performing the intended resource move
        * analysis. The analysis is grouped by different Cloud services.
    @@ -71,11 +94,13 @@ public java.util.List getMoveAnalysisLis
        * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
        */
       @java.lang.Override
    -  public java.util.List 
    +  public java.util.List
           getMoveAnalysisOrBuilderList() {
         return moveAnalysis_;
       }
       /**
    +   *
    +   *
        * 
        * The list of analyses returned from performing the intended resource move
        * analysis. The analysis is grouped by different Cloud services.
    @@ -88,6 +113,8 @@ public int getMoveAnalysisCount() {
         return moveAnalysis_.size();
       }
       /**
    +   *
    +   *
        * 
        * The list of analyses returned from performing the intended resource move
        * analysis. The analysis is grouped by different Cloud services.
    @@ -100,6 +127,8 @@ public com.google.cloud.asset.v1.MoveAnalysis getMoveAnalysis(int index) {
         return moveAnalysis_.get(index);
       }
       /**
    +   *
    +   *
        * 
        * The list of analyses returned from performing the intended resource move
        * analysis. The analysis is grouped by different Cloud services.
    @@ -108,12 +137,12 @@ public com.google.cloud.asset.v1.MoveAnalysis getMoveAnalysis(int index) {
        * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
        */
       @java.lang.Override
    -  public com.google.cloud.asset.v1.MoveAnalysisOrBuilder getMoveAnalysisOrBuilder(
    -      int index) {
    +  public com.google.cloud.asset.v1.MoveAnalysisOrBuilder getMoveAnalysisOrBuilder(int index) {
         return moveAnalysis_.get(index);
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -125,8 +154,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         for (int i = 0; i < moveAnalysis_.size(); i++) {
           output.writeMessage(1, moveAnalysis_.get(i));
         }
    @@ -140,8 +168,7 @@ public int getSerializedSize() {
     
         size = 0;
         for (int i = 0; i < moveAnalysis_.size(); i++) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(1, moveAnalysis_.get(i));
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, moveAnalysis_.get(i));
         }
         size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
    @@ -151,15 +178,15 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1.AnalyzeMoveResponse)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1.AnalyzeMoveResponse other = (com.google.cloud.asset.v1.AnalyzeMoveResponse) obj;
    +    com.google.cloud.asset.v1.AnalyzeMoveResponse other =
    +        (com.google.cloud.asset.v1.AnalyzeMoveResponse) obj;
     
    -    if (!getMoveAnalysisList()
    -        .equals(other.getMoveAnalysisList())) return false;
    +    if (!getMoveAnalysisList().equals(other.getMoveAnalysisList())) return false;
         if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
    @@ -180,130 +207,136 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1.AnalyzeMoveResponse parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1.AnalyzeMoveResponse parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.AnalyzeMoveResponse parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.AnalyzeMoveResponse parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.AnalyzeMoveResponse 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.asset.v1.AnalyzeMoveResponse parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.AnalyzeMoveResponse parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.AnalyzeMoveResponse parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.AnalyzeMoveResponse parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.cloud.asset.v1.AnalyzeMoveResponse parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.cloud.asset.v1.AnalyzeMoveResponse parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.AnalyzeMoveResponse parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.AnalyzeMoveResponse parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.AnalyzeMoveResponse parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.cloud.asset.v1.AnalyzeMoveResponse prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * The response message for resource move analysis.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.AnalyzeMoveResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzeMoveResponse) com.google.cloud.asset.v1.AnalyzeMoveResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.AnalyzeMoveResponse.class, com.google.cloud.asset.v1.AnalyzeMoveResponse.Builder.class); + com.google.cloud.asset.v1.AnalyzeMoveResponse.class, + com.google.cloud.asset.v1.AnalyzeMoveResponse.Builder.class); } // Construct using com.google.cloud.asset.v1.AnalyzeMoveResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -318,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_descriptor; } @java.lang.Override @@ -339,7 +372,8 @@ public com.google.cloud.asset.v1.AnalyzeMoveResponse build() { @java.lang.Override public com.google.cloud.asset.v1.AnalyzeMoveResponse buildPartial() { - com.google.cloud.asset.v1.AnalyzeMoveResponse result = new com.google.cloud.asset.v1.AnalyzeMoveResponse(this); + com.google.cloud.asset.v1.AnalyzeMoveResponse result = + new com.google.cloud.asset.v1.AnalyzeMoveResponse(this); int from_bitField0_ = bitField0_; if (moveAnalysisBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -358,38 +392,39 @@ public com.google.cloud.asset.v1.AnalyzeMoveResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.AnalyzeMoveResponse) { - return mergeFrom((com.google.cloud.asset.v1.AnalyzeMoveResponse)other); + return mergeFrom((com.google.cloud.asset.v1.AnalyzeMoveResponse) other); } else { super.mergeFrom(other); return this; @@ -416,9 +451,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeMoveResponse other) { moveAnalysisBuilder_ = null; moveAnalysis_ = other.moveAnalysis_; bitField0_ = (bitField0_ & ~0x00000001); - moveAnalysisBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMoveAnalysisFieldBuilder() : null; + moveAnalysisBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMoveAnalysisFieldBuilder() + : null; } else { moveAnalysisBuilder_.addAllMessages(other.moveAnalysis_); } @@ -450,25 +486,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.asset.v1.MoveAnalysis m = - input.readMessage( - com.google.cloud.asset.v1.MoveAnalysis.parser(), - extensionRegistry); - if (moveAnalysisBuilder_ == null) { - ensureMoveAnalysisIsMutable(); - moveAnalysis_.add(m); - } else { - moveAnalysisBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.asset.v1.MoveAnalysis m = + input.readMessage( + com.google.cloud.asset.v1.MoveAnalysis.parser(), extensionRegistry); + if (moveAnalysisBuilder_ == null) { + ensureMoveAnalysisIsMutable(); + moveAnalysis_.add(m); + } else { + moveAnalysisBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -478,21 +515,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List moveAnalysis_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMoveAnalysisIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - moveAnalysis_ = new java.util.ArrayList(moveAnalysis_); + moveAnalysis_ = + new java.util.ArrayList(moveAnalysis_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.MoveAnalysis, com.google.cloud.asset.v1.MoveAnalysis.Builder, com.google.cloud.asset.v1.MoveAnalysisOrBuilder> moveAnalysisBuilder_; + com.google.cloud.asset.v1.MoveAnalysis, + com.google.cloud.asset.v1.MoveAnalysis.Builder, + com.google.cloud.asset.v1.MoveAnalysisOrBuilder> + moveAnalysisBuilder_; /** + * + * *
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -508,6 +553,8 @@ public java.util.List getMoveAnalysisLis
           }
         }
         /**
    +     *
    +     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -523,6 +570,8 @@ public int getMoveAnalysisCount() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -538,6 +587,8 @@ public com.google.cloud.asset.v1.MoveAnalysis getMoveAnalysis(int index) {
           }
         }
         /**
    +     *
    +     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -545,8 +596,7 @@ public com.google.cloud.asset.v1.MoveAnalysis getMoveAnalysis(int index) {
          *
          * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
          */
    -    public Builder setMoveAnalysis(
    -        int index, com.google.cloud.asset.v1.MoveAnalysis value) {
    +    public Builder setMoveAnalysis(int index, com.google.cloud.asset.v1.MoveAnalysis value) {
           if (moveAnalysisBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -560,6 +610,8 @@ public Builder setMoveAnalysis(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -579,6 +631,8 @@ public Builder setMoveAnalysis(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -600,6 +654,8 @@ public Builder addMoveAnalysis(com.google.cloud.asset.v1.MoveAnalysis value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -607,8 +663,7 @@ public Builder addMoveAnalysis(com.google.cloud.asset.v1.MoveAnalysis value) {
          *
          * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
          */
    -    public Builder addMoveAnalysis(
    -        int index, com.google.cloud.asset.v1.MoveAnalysis value) {
    +    public Builder addMoveAnalysis(int index, com.google.cloud.asset.v1.MoveAnalysis value) {
           if (moveAnalysisBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -622,6 +677,8 @@ public Builder addMoveAnalysis(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -629,8 +686,7 @@ public Builder addMoveAnalysis(
          *
          * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
          */
    -    public Builder addMoveAnalysis(
    -        com.google.cloud.asset.v1.MoveAnalysis.Builder builderForValue) {
    +    public Builder addMoveAnalysis(com.google.cloud.asset.v1.MoveAnalysis.Builder builderForValue) {
           if (moveAnalysisBuilder_ == null) {
             ensureMoveAnalysisIsMutable();
             moveAnalysis_.add(builderForValue.build());
    @@ -641,6 +697,8 @@ public Builder addMoveAnalysis(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -660,6 +718,8 @@ public Builder addMoveAnalysis(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -671,8 +731,7 @@ public Builder addAllMoveAnalysis(
             java.lang.Iterable values) {
           if (moveAnalysisBuilder_ == null) {
             ensureMoveAnalysisIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    -            values, moveAnalysis_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, moveAnalysis_);
             onChanged();
           } else {
             moveAnalysisBuilder_.addAllMessages(values);
    @@ -680,6 +739,8 @@ public Builder addAllMoveAnalysis(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -698,6 +759,8 @@ public Builder clearMoveAnalysis() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -716,6 +779,8 @@ public Builder removeMoveAnalysis(int index) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -723,11 +788,12 @@ public Builder removeMoveAnalysis(int index) {
          *
          * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
          */
    -    public com.google.cloud.asset.v1.MoveAnalysis.Builder getMoveAnalysisBuilder(
    -        int index) {
    +    public com.google.cloud.asset.v1.MoveAnalysis.Builder getMoveAnalysisBuilder(int index) {
           return getMoveAnalysisFieldBuilder().getBuilder(index);
         }
         /**
    +     *
    +     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -735,14 +801,16 @@ public com.google.cloud.asset.v1.MoveAnalysis.Builder getMoveAnalysisBuilder(
          *
          * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
          */
    -    public com.google.cloud.asset.v1.MoveAnalysisOrBuilder getMoveAnalysisOrBuilder(
    -        int index) {
    +    public com.google.cloud.asset.v1.MoveAnalysisOrBuilder getMoveAnalysisOrBuilder(int index) {
           if (moveAnalysisBuilder_ == null) {
    -        return moveAnalysis_.get(index);  } else {
    +        return moveAnalysis_.get(index);
    +      } else {
             return moveAnalysisBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    +     *
    +     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -750,8 +818,8 @@ public com.google.cloud.asset.v1.MoveAnalysisOrBuilder getMoveAnalysisOrBuilder(
          *
          * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
          */
    -    public java.util.List 
    -         getMoveAnalysisOrBuilderList() {
    +    public java.util.List
    +        getMoveAnalysisOrBuilderList() {
           if (moveAnalysisBuilder_ != null) {
             return moveAnalysisBuilder_.getMessageOrBuilderList();
           } else {
    @@ -759,6 +827,8 @@ public com.google.cloud.asset.v1.MoveAnalysisOrBuilder getMoveAnalysisOrBuilder(
           }
         }
         /**
    +     *
    +     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -767,10 +837,12 @@ public com.google.cloud.asset.v1.MoveAnalysisOrBuilder getMoveAnalysisOrBuilder(
          * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
          */
         public com.google.cloud.asset.v1.MoveAnalysis.Builder addMoveAnalysisBuilder() {
    -      return getMoveAnalysisFieldBuilder().addBuilder(
    -          com.google.cloud.asset.v1.MoveAnalysis.getDefaultInstance());
    +      return getMoveAnalysisFieldBuilder()
    +          .addBuilder(com.google.cloud.asset.v1.MoveAnalysis.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -778,12 +850,13 @@ public com.google.cloud.asset.v1.MoveAnalysis.Builder addMoveAnalysisBuilder() {
          *
          * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
          */
    -    public com.google.cloud.asset.v1.MoveAnalysis.Builder addMoveAnalysisBuilder(
    -        int index) {
    -      return getMoveAnalysisFieldBuilder().addBuilder(
    -          index, com.google.cloud.asset.v1.MoveAnalysis.getDefaultInstance());
    +    public com.google.cloud.asset.v1.MoveAnalysis.Builder addMoveAnalysisBuilder(int index) {
    +      return getMoveAnalysisFieldBuilder()
    +          .addBuilder(index, com.google.cloud.asset.v1.MoveAnalysis.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * The list of analyses returned from performing the intended resource move
          * analysis. The analysis is grouped by different Cloud services.
    @@ -791,27 +864,30 @@ public com.google.cloud.asset.v1.MoveAnalysis.Builder addMoveAnalysisBuilder(
          *
          * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
          */
    -    public java.util.List 
    -         getMoveAnalysisBuilderList() {
    +    public java.util.List
    +        getMoveAnalysisBuilderList() {
           return getMoveAnalysisFieldBuilder().getBuilderList();
         }
    +
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -        com.google.cloud.asset.v1.MoveAnalysis, com.google.cloud.asset.v1.MoveAnalysis.Builder, com.google.cloud.asset.v1.MoveAnalysisOrBuilder> 
    +            com.google.cloud.asset.v1.MoveAnalysis,
    +            com.google.cloud.asset.v1.MoveAnalysis.Builder,
    +            com.google.cloud.asset.v1.MoveAnalysisOrBuilder>
             getMoveAnalysisFieldBuilder() {
           if (moveAnalysisBuilder_ == null) {
    -        moveAnalysisBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.asset.v1.MoveAnalysis, com.google.cloud.asset.v1.MoveAnalysis.Builder, com.google.cloud.asset.v1.MoveAnalysisOrBuilder>(
    -                moveAnalysis_,
    -                ((bitField0_ & 0x00000001) != 0),
    -                getParentForChildren(),
    -                isClean());
    +        moveAnalysisBuilder_ =
    +            new com.google.protobuf.RepeatedFieldBuilderV3<
    +                com.google.cloud.asset.v1.MoveAnalysis,
    +                com.google.cloud.asset.v1.MoveAnalysis.Builder,
    +                com.google.cloud.asset.v1.MoveAnalysisOrBuilder>(
    +                moveAnalysis_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
             moveAnalysis_ = null;
           }
           return moveAnalysisBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -821,12 +897,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.AnalyzeMoveResponse)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzeMoveResponse)
       private static final com.google.cloud.asset.v1.AnalyzeMoveResponse DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1.AnalyzeMoveResponse();
       }
    @@ -835,27 +911,27 @@ public static com.google.cloud.asset.v1.AnalyzeMoveResponse getDefaultInstance()
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public AnalyzeMoveResponse parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      Builder builder = newBuilder();
    -      try {
    -        builder.mergeFrom(input, extensionRegistry);
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(builder.buildPartial());
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    -            .setUnfinishedMessage(builder.buildPartial());
    -      }
    -      return builder.buildPartial();
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public AnalyzeMoveResponse parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -870,6 +946,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1.AnalyzeMoveResponse getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponseOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponseOrBuilder.java
    similarity index 69%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponseOrBuilder.java
    rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponseOrBuilder.java
    index 7fea545cedd3..ee10b893d292 100644
    --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponseOrBuilder.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponseOrBuilder.java
    @@ -1,13 +1,31 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
    -public interface AnalyzeMoveResponseOrBuilder extends
    +public interface AnalyzeMoveResponseOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzeMoveResponse)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The list of analyses returned from performing the intended resource move
        * analysis. The analysis is grouped by different Cloud services.
    @@ -15,9 +33,10 @@ public interface AnalyzeMoveResponseOrBuilder extends
        *
        * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
        */
    -  java.util.List 
    -      getMoveAnalysisList();
    +  java.util.List getMoveAnalysisList();
       /**
    +   *
    +   *
        * 
        * The list of analyses returned from performing the intended resource move
        * analysis. The analysis is grouped by different Cloud services.
    @@ -27,6 +46,8 @@ public interface AnalyzeMoveResponseOrBuilder extends
        */
       com.google.cloud.asset.v1.MoveAnalysis getMoveAnalysis(int index);
       /**
    +   *
    +   *
        * 
        * The list of analyses returned from performing the intended resource move
        * analysis. The analysis is grouped by different Cloud services.
    @@ -36,6 +57,8 @@ public interface AnalyzeMoveResponseOrBuilder extends
        */
       int getMoveAnalysisCount();
       /**
    +   *
    +   *
        * 
        * The list of analyses returned from performing the intended resource move
        * analysis. The analysis is grouped by different Cloud services.
    @@ -43,9 +66,11 @@ public interface AnalyzeMoveResponseOrBuilder extends
        *
        * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
        */
    -  java.util.List 
    +  java.util.List
           getMoveAnalysisOrBuilderList();
       /**
    +   *
    +   *
        * 
        * The list of analyses returned from performing the intended resource move
        * analysis. The analysis is grouped by different Cloud services.
    @@ -53,6 +78,5 @@ public interface AnalyzeMoveResponseOrBuilder extends
        *
        * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1;
        */
    -  com.google.cloud.asset.v1.MoveAnalysisOrBuilder getMoveAnalysisOrBuilder(
    -      int index);
    +  com.google.cloud.asset.v1.MoveAnalysisOrBuilder getMoveAnalysisOrBuilder(int index);
     }
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java
    similarity index 78%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java
    rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java
    index 7a8943041092..a9d87f9f995b 100644
    --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java
    @@ -1,9 +1,26 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/assets.proto
     
     package com.google.cloud.asset.v1;
     
     /**
    + *
    + *
      * 
      * An asset in Google Cloud. An asset can be any resource in the Google Cloud
      * [resource
    @@ -18,15 +35,16 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.Asset}
      */
    -public final class Asset extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class Asset extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.Asset)
         AssetOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use Asset.newBuilder() to construct.
       private Asset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private Asset() {
         name_ = "";
         assetType_ = "";
    @@ -36,39 +54,42 @@ private Asset() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(
    -      UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new Asset();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_Asset_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetProto
    +        .internal_static_google_cloud_asset_v1_Asset_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_Asset_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetProto
    +        .internal_static_google_cloud_asset_v1_Asset_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
                 com.google.cloud.asset.v1.Asset.class, com.google.cloud.asset.v1.Asset.Builder.class);
       }
     
       private int accessContextPolicyCase_ = 0;
       private java.lang.Object accessContextPolicy_;
    +
       public enum AccessContextPolicyCase
    -      implements com.google.protobuf.Internal.EnumLite,
    +      implements
    +          com.google.protobuf.Internal.EnumLite,
               com.google.protobuf.AbstractMessage.InternalOneOfEnum {
         ACCESS_POLICY(7),
         ACCESS_LEVEL(8),
         SERVICE_PERIMETER(9),
         ACCESSCONTEXTPOLICY_NOT_SET(0);
         private final int value;
    +
         private AccessContextPolicyCase(int value) {
           this.value = value;
         }
    @@ -84,33 +105,40 @@ public static AccessContextPolicyCase valueOf(int value) {
     
         public static AccessContextPolicyCase forNumber(int value) {
           switch (value) {
    -        case 7: return ACCESS_POLICY;
    -        case 8: return ACCESS_LEVEL;
    -        case 9: return SERVICE_PERIMETER;
    -        case 0: return ACCESSCONTEXTPOLICY_NOT_SET;
    -        default: return null;
    +        case 7:
    +          return ACCESS_POLICY;
    +        case 8:
    +          return ACCESS_LEVEL;
    +        case 9:
    +          return SERVICE_PERIMETER;
    +        case 0:
    +          return ACCESSCONTEXTPOLICY_NOT_SET;
    +        default:
    +          return null;
           }
         }
    +
         public int getNumber() {
           return this.value;
         }
       };
     
    -  public AccessContextPolicyCase
    -  getAccessContextPolicyCase() {
    -    return AccessContextPolicyCase.forNumber(
    -        accessContextPolicyCase_);
    +  public AccessContextPolicyCase getAccessContextPolicyCase() {
    +    return AccessContextPolicyCase.forNumber(accessContextPolicyCase_);
       }
     
       public static final int UPDATE_TIME_FIELD_NUMBER = 11;
       private com.google.protobuf.Timestamp updateTime_;
       /**
    +   *
    +   *
        * 
        * The last update timestamp of an asset. update_time is updated when
        * create/update/delete operation is performed.
        * 
    * * .google.protobuf.Timestamp update_time = 11; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -118,12 +146,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
        * The last update timestamp of an asset. update_time is updated when
        * create/update/delete operation is performed.
        * 
    * * .google.protobuf.Timestamp update_time = 11; + * * @return The updateTime. */ @java.lang.Override @@ -131,6 +162,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
        * The last update timestamp of an asset. update_time is updated when
        * create/update/delete operation is performed.
    @@ -146,6 +179,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
       public static final int NAME_FIELD_NUMBER = 1;
       private volatile java.lang.Object name_;
       /**
    +   *
    +   *
        * 
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -155,6 +190,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
        * 
    * * string name = 1; + * * @return The name. */ @java.lang.Override @@ -163,14 +199,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -180,16 +217,15 @@ public java.lang.String getName() {
        * 
    * * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -200,6 +236,8 @@ public java.lang.String getName() { public static final int ASSET_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object assetType_; /** + * + * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -208,6 +246,7 @@ public java.lang.String getName() {
        * 
    * * string asset_type = 2; + * * @return The assetType. */ @java.lang.Override @@ -216,14 +255,15 @@ public java.lang.String getAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; } } /** + * + * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -232,16 +272,15 @@ public java.lang.String getAssetType() {
        * 
    * * string asset_type = 2; + * * @return The bytes for assetType. */ @java.lang.Override - public com.google.protobuf.ByteString - getAssetTypeBytes() { + public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetType_ = b; return b; } else { @@ -252,11 +291,14 @@ public java.lang.String getAssetType() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.asset.v1.Resource resource_; /** + * + * *
        * A representation of the resource.
        * 
    * * .google.cloud.asset.v1.Resource resource = 3; + * * @return Whether the resource field is set. */ @java.lang.Override @@ -264,11 +306,14 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
        * A representation of the resource.
        * 
    * * .google.cloud.asset.v1.Resource resource = 3; + * * @return The resource. */ @java.lang.Override @@ -276,6 +321,8 @@ public com.google.cloud.asset.v1.Resource getResource() { return resource_ == null ? com.google.cloud.asset.v1.Resource.getDefaultInstance() : resource_; } /** + * + * *
        * A representation of the resource.
        * 
    @@ -290,6 +337,8 @@ public com.google.cloud.asset.v1.ResourceOrBuilder getResourceOrBuilder() { public static final int IAM_POLICY_FIELD_NUMBER = 4; private com.google.iam.v1.Policy iamPolicy_; /** + * + * *
        * A representation of the Cloud IAM policy set on a Google Cloud resource.
        * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -303,6 +352,7 @@ public com.google.cloud.asset.v1.ResourceOrBuilder getResourceOrBuilder() {
        * 
    * * .google.iam.v1.Policy iam_policy = 4; + * * @return Whether the iamPolicy field is set. */ @java.lang.Override @@ -310,6 +360,8 @@ public boolean hasIamPolicy() { return iamPolicy_ != null; } /** + * + * *
        * A representation of the Cloud IAM policy set on a Google Cloud resource.
        * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -323,6 +375,7 @@ public boolean hasIamPolicy() {
        * 
    * * .google.iam.v1.Policy iam_policy = 4; + * * @return The iamPolicy. */ @java.lang.Override @@ -330,6 +383,8 @@ public com.google.iam.v1.Policy getIamPolicy() { return iamPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_; } /** + * + * *
        * A representation of the Cloud IAM policy set on a Google Cloud resource.
        * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -352,6 +407,8 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
       public static final int ORG_POLICY_FIELD_NUMBER = 6;
       private java.util.List orgPolicy_;
       /**
    +   *
    +   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -366,6 +423,8 @@ public java.util.List getOrgPolicyList() {
         return orgPolicy_;
       }
       /**
    +   *
    +   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -376,11 +435,13 @@ public java.util.List getOrgPolicyList() {
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
       @java.lang.Override
    -  public java.util.List 
    +  public java.util.List
           getOrgPolicyOrBuilderList() {
         return orgPolicy_;
       }
       /**
    +   *
    +   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -395,6 +456,8 @@ public int getOrgPolicyCount() {
         return orgPolicy_.size();
       }
       /**
    +   *
    +   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -409,6 +472,8 @@ public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) {
         return orgPolicy_.get(index);
       }
       /**
    +   *
    +   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -419,19 +484,21 @@ public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) {
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
       @java.lang.Override
    -  public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
    -      int index) {
    +  public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int index) {
         return orgPolicy_.get(index);
       }
     
       public static final int ACCESS_POLICY_FIELD_NUMBER = 7;
       /**
    +   *
    +   *
        * 
        * Please also refer to the [access policy user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; + * * @return Whether the accessPolicy field is set. */ @java.lang.Override @@ -439,22 +506,27 @@ public boolean hasAccessPolicy() { return accessContextPolicyCase_ == 7; } /** + * + * *
        * Please also refer to the [access policy user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; + * * @return The accessPolicy. */ @java.lang.Override public com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy() { if (accessContextPolicyCase_ == 7) { - return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_; + return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_; } return com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance(); } /** + * + * *
        * Please also refer to the [access policy user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -463,21 +535,25 @@ public com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy(
        * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
        */
       @java.lang.Override
    -  public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAccessPolicyOrBuilder() {
    +  public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder
    +      getAccessPolicyOrBuilder() {
         if (accessContextPolicyCase_ == 7) {
    -       return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_;
    +      return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_;
         }
         return com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance();
       }
     
       public static final int ACCESS_LEVEL_FIELD_NUMBER = 8;
       /**
    +   *
    +   *
        * 
        * Please also refer to the [access level user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; + * * @return Whether the accessLevel field is set. */ @java.lang.Override @@ -485,22 +561,27 @@ public boolean hasAccessLevel() { return accessContextPolicyCase_ == 8; } /** + * + * *
        * Please also refer to the [access level user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; + * * @return The accessLevel. */ @java.lang.Override public com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel() { if (accessContextPolicyCase_ == 8) { - return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_; + return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_; } return com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance(); } /** + * + * *
        * Please also refer to the [access level user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -509,21 +590,25 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel()
        * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
        */
       @java.lang.Override
    -  public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAccessLevelOrBuilder() {
    +  public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder
    +      getAccessLevelOrBuilder() {
         if (accessContextPolicyCase_ == 8) {
    -       return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_;
    +      return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_;
         }
         return com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance();
       }
     
       public static final int SERVICE_PERIMETER_FIELD_NUMBER = 9;
       /**
    +   *
    +   *
        * 
        * Please also refer to the [service perimeter user
        * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
        * 
    * * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + * * @return Whether the servicePerimeter field is set. */ @java.lang.Override @@ -531,22 +616,27 @@ public boolean hasServicePerimeter() { return accessContextPolicyCase_ == 9; } /** + * + * *
        * Please also refer to the [service perimeter user
        * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
        * 
    * * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + * * @return The servicePerimeter. */ @java.lang.Override public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter() { if (accessContextPolicyCase_ == 9) { - return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_; + return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_; } return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance(); } /** + * + * *
        * Please also refer to the [service perimeter user
        * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -555,9 +645,10 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePe
        * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
        */
       @java.lang.Override
    -  public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder getServicePerimeterOrBuilder() {
    +  public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder
    +      getServicePerimeterOrBuilder() {
         if (accessContextPolicyCase_ == 9) {
    -       return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_;
    +      return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_;
         }
         return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
       }
    @@ -565,6 +656,8 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder get
       public static final int OS_INVENTORY_FIELD_NUMBER = 12;
       private com.google.cloud.osconfig.v1.Inventory osInventory_;
       /**
    +   *
    +   *
        * 
        * A representation of runtime OS Inventory information. See [this
        * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -572,6 +665,7 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder get
        * 
    * * .google.cloud.osconfig.v1.Inventory os_inventory = 12; + * * @return Whether the osInventory field is set. */ @java.lang.Override @@ -579,6 +673,8 @@ public boolean hasOsInventory() { return osInventory_ != null; } /** + * + * *
        * A representation of runtime OS Inventory information. See [this
        * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -586,13 +682,18 @@ public boolean hasOsInventory() {
        * 
    * * .google.cloud.osconfig.v1.Inventory os_inventory = 12; + * * @return The osInventory. */ @java.lang.Override public com.google.cloud.osconfig.v1.Inventory getOsInventory() { - return osInventory_ == null ? com.google.cloud.osconfig.v1.Inventory.getDefaultInstance() : osInventory_; + return osInventory_ == null + ? com.google.cloud.osconfig.v1.Inventory.getDefaultInstance() + : osInventory_; } /** + * + * *
        * A representation of runtime OS Inventory information. See [this
        * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -609,6 +710,8 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
       public static final int RELATED_ASSETS_FIELD_NUMBER = 13;
       private com.google.cloud.asset.v1.RelatedAssets relatedAssets_;
       /**
    +   *
    +   *
        * 
        * DEPRECATED. This field only presents for the purpose of
        * backward-compatibility. The server will never generate responses with this
    @@ -618,15 +721,19 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
        * 
    * * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true]; - * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. - * See google/cloud/asset/v1/assets.proto;l=166 + * + * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. See + * google/cloud/asset/v1/assets.proto;l=166 * @return Whether the relatedAssets field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasRelatedAssets() { + @java.lang.Deprecated + public boolean hasRelatedAssets() { return relatedAssets_ != null; } /** + * + * *
        * DEPRECATED. This field only presents for the purpose of
        * backward-compatibility. The server will never generate responses with this
    @@ -636,15 +743,21 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
        * 
    * * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true]; - * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. - * See google/cloud/asset/v1/assets.proto;l=166 + * + * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. See + * google/cloud/asset/v1/assets.proto;l=166 * @return The relatedAssets. */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.asset.v1.RelatedAssets getRelatedAssets() { - return relatedAssets_ == null ? com.google.cloud.asset.v1.RelatedAssets.getDefaultInstance() : relatedAssets_; + @java.lang.Deprecated + public com.google.cloud.asset.v1.RelatedAssets getRelatedAssets() { + return relatedAssets_ == null + ? com.google.cloud.asset.v1.RelatedAssets.getDefaultInstance() + : relatedAssets_; } /** + * + * *
        * DEPRECATED. This field only presents for the purpose of
        * backward-compatibility. The server will never generate responses with this
    @@ -656,18 +769,22 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
        * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
        */
       @java.lang.Override
    -  @java.lang.Deprecated public com.google.cloud.asset.v1.RelatedAssetsOrBuilder getRelatedAssetsOrBuilder() {
    +  @java.lang.Deprecated
    +  public com.google.cloud.asset.v1.RelatedAssetsOrBuilder getRelatedAssetsOrBuilder() {
         return getRelatedAssets();
       }
     
       public static final int RELATED_ASSET_FIELD_NUMBER = 15;
       private com.google.cloud.asset.v1.RelatedAsset relatedAsset_;
       /**
    +   *
    +   *
        * 
        * One related asset of the current asset.
        * 
    * * .google.cloud.asset.v1.RelatedAsset related_asset = 15; + * * @return Whether the relatedAsset field is set. */ @java.lang.Override @@ -675,18 +792,25 @@ public boolean hasRelatedAsset() { return relatedAsset_ != null; } /** + * + * *
        * One related asset of the current asset.
        * 
    * * .google.cloud.asset.v1.RelatedAsset related_asset = 15; + * * @return The relatedAsset. */ @java.lang.Override public com.google.cloud.asset.v1.RelatedAsset getRelatedAsset() { - return relatedAsset_ == null ? com.google.cloud.asset.v1.RelatedAsset.getDefaultInstance() : relatedAsset_; + return relatedAsset_ == null + ? com.google.cloud.asset.v1.RelatedAsset.getDefaultInstance() + : relatedAsset_; } /** + * + * *
        * One related asset of the current asset.
        * 
    @@ -701,6 +825,8 @@ public com.google.cloud.asset.v1.RelatedAssetOrBuilder getRelatedAssetOrBuilder( public static final int ANCESTORS_FIELD_NUMBER = 10; private com.google.protobuf.LazyStringList ancestors_; /** + * + * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -712,13 +838,15 @@ public com.google.cloud.asset.v1.RelatedAssetOrBuilder getRelatedAssetOrBuilder(
        * 
    * * repeated string ancestors = 10; + * * @return A list containing the ancestors. */ - public com.google.protobuf.ProtocolStringList - getAncestorsList() { + public com.google.protobuf.ProtocolStringList getAncestorsList() { return ancestors_; } /** + * + * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -730,12 +858,15 @@ public com.google.cloud.asset.v1.RelatedAssetOrBuilder getRelatedAssetOrBuilder(
        * 
    * * repeated string ancestors = 10; + * * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); } /** + * + * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -747,6 +878,7 @@ public int getAncestorsCount() {
        * 
    * * repeated string ancestors = 10; + * * @param index The index of the element to return. * @return The ancestors at the given index. */ @@ -754,6 +886,8 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** + * + * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -765,15 +899,16 @@ public java.lang.String getAncestors(int index) {
        * 
    * * repeated string ancestors = 10; + * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - public com.google.protobuf.ByteString - getAncestorsBytes(int index) { + public com.google.protobuf.ByteString getAncestorsBytes(int index) { return ancestors_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -785,8 +920,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -803,13 +937,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(6, orgPolicy_.get(i)); } if (accessContextPolicyCase_ == 7) { - output.writeMessage(7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); + output.writeMessage( + 7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); } if (accessContextPolicyCase_ == 8) { - output.writeMessage(8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); + output.writeMessage( + 8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); } if (accessContextPolicyCase_ == 9) { - output.writeMessage(9, (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); + output.writeMessage( + 9, (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); } for (int i = 0; i < ancestors_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, ancestors_.getRaw(i)); @@ -842,28 +979,29 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, assetType_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } if (iamPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getIamPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIamPolicy()); } for (int i = 0; i < orgPolicy_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, orgPolicy_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, orgPolicy_.get(i)); } if (accessContextPolicyCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); } if (accessContextPolicyCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); } if (accessContextPolicyCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, + (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); } { int dataSize = 0; @@ -874,20 +1012,16 @@ public int getSerializedSize() { size += 1 * getAncestorsList().size(); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getUpdateTime()); } if (osInventory_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getOsInventory()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getOsInventory()); } if (relatedAssets_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getRelatedAssets()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getRelatedAssets()); } if (relatedAsset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getRelatedAsset()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getRelatedAsset()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -897,7 +1031,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.Asset)) { return super.equals(obj); @@ -906,55 +1040,42 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!getName() - .equals(other.getName())) return false; - if (!getAssetType() - .equals(other.getAssetType())) return false; + if (!getName().equals(other.getName())) return false; + if (!getAssetType().equals(other.getAssetType())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; } if (hasIamPolicy() != other.hasIamPolicy()) return false; if (hasIamPolicy()) { - if (!getIamPolicy() - .equals(other.getIamPolicy())) return false; + if (!getIamPolicy().equals(other.getIamPolicy())) return false; } - if (!getOrgPolicyList() - .equals(other.getOrgPolicyList())) return false; + if (!getOrgPolicyList().equals(other.getOrgPolicyList())) return false; if (hasOsInventory() != other.hasOsInventory()) return false; if (hasOsInventory()) { - if (!getOsInventory() - .equals(other.getOsInventory())) return false; + if (!getOsInventory().equals(other.getOsInventory())) return false; } if (hasRelatedAssets() != other.hasRelatedAssets()) return false; if (hasRelatedAssets()) { - if (!getRelatedAssets() - .equals(other.getRelatedAssets())) return false; + if (!getRelatedAssets().equals(other.getRelatedAssets())) return false; } if (hasRelatedAsset() != other.hasRelatedAsset()) return false; if (hasRelatedAsset()) { - if (!getRelatedAsset() - .equals(other.getRelatedAsset())) return false; + if (!getRelatedAsset().equals(other.getRelatedAsset())) return false; } - if (!getAncestorsList() - .equals(other.getAncestorsList())) return false; + if (!getAncestorsList().equals(other.getAncestorsList())) return false; if (!getAccessContextPolicyCase().equals(other.getAccessContextPolicyCase())) return false; switch (accessContextPolicyCase_) { case 7: - if (!getAccessPolicy() - .equals(other.getAccessPolicy())) return false; + if (!getAccessPolicy().equals(other.getAccessPolicy())) return false; break; case 8: - if (!getAccessLevel() - .equals(other.getAccessLevel())) return false; + if (!getAccessLevel().equals(other.getAccessLevel())) return false; break; case 9: - if (!getServicePerimeter() - .equals(other.getServicePerimeter())) return false; + if (!getServicePerimeter().equals(other.getServicePerimeter())) return false; break; case 0: default: @@ -1027,97 +1148,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.Asset parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.Asset parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.Asset parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.Asset parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.asset.v1.Asset parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.Asset 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.asset.v1.Asset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.Asset parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.Asset parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.Asset parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.Asset parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.Asset parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.Asset parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.Asset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.Asset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * An asset in Google Cloud. An asset can be any resource in the Google Cloud
        * [resource
    @@ -1132,33 +1259,31 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.asset.v1.Asset}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.Asset)
           com.google.cloud.asset.v1.AssetOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_Asset_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_Asset_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_Asset_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_Asset_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
                   com.google.cloud.asset.v1.Asset.class, com.google.cloud.asset.v1.Asset.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.Asset.newBuilder()
    -    private Builder() {
    -
    -    }
    +    private Builder() {}
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -1226,9 +1351,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_Asset_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_Asset_descriptor;
         }
     
         @java.lang.Override
    @@ -1325,38 +1450,39 @@ public com.google.cloud.asset.v1.Asset buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.Asset) {
    -        return mergeFrom((com.google.cloud.asset.v1.Asset)other);
    +        return mergeFrom((com.google.cloud.asset.v1.Asset) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -1400,9 +1526,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.Asset other) {
                 orgPolicyBuilder_ = null;
                 orgPolicy_ = other.orgPolicy_;
                 bitField0_ = (bitField0_ & ~0x00000001);
    -            orgPolicyBuilder_ = 
    -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
    -                 getOrgPolicyFieldBuilder() : null;
    +            orgPolicyBuilder_ =
    +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
    +                    ? getOrgPolicyFieldBuilder()
    +                    : null;
               } else {
                 orgPolicyBuilder_.addAllMessages(other.orgPolicy_);
               }
    @@ -1428,21 +1555,25 @@ public Builder mergeFrom(com.google.cloud.asset.v1.Asset other) {
             onChanged();
           }
           switch (other.getAccessContextPolicyCase()) {
    -        case ACCESS_POLICY: {
    -          mergeAccessPolicy(other.getAccessPolicy());
    -          break;
    -        }
    -        case ACCESS_LEVEL: {
    -          mergeAccessLevel(other.getAccessLevel());
    -          break;
    -        }
    -        case SERVICE_PERIMETER: {
    -          mergeServicePerimeter(other.getServicePerimeter());
    -          break;
    -        }
    -        case ACCESSCONTEXTPOLICY_NOT_SET: {
    -          break;
    -        }
    +        case ACCESS_POLICY:
    +          {
    +            mergeAccessPolicy(other.getAccessPolicy());
    +            break;
    +          }
    +        case ACCESS_LEVEL:
    +          {
    +            mergeAccessLevel(other.getAccessLevel());
    +            break;
    +          }
    +        case SERVICE_PERIMETER:
    +          {
    +            mergeServicePerimeter(other.getServicePerimeter());
    +            break;
    +          }
    +        case ACCESSCONTEXTPOLICY_NOT_SET:
    +          {
    +            break;
    +          }
           }
           this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
    @@ -1470,104 +1601,100 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
    -            case 10: {
    -              name_ = input.readStringRequireUtf8();
    +            case 10:
    +              {
    +                name_ = input.readStringRequireUtf8();
     
    -              break;
    -            } // case 10
    -            case 18: {
    -              assetType_ = input.readStringRequireUtf8();
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                assetType_ = input.readStringRequireUtf8();
     
    -              break;
    -            } // case 18
    -            case 26: {
    -              input.readMessage(
    -                  getResourceFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry);
     
    -              break;
    -            } // case 26
    -            case 34: {
    -              input.readMessage(
    -                  getIamPolicyFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                input.readMessage(getIamPolicyFieldBuilder().getBuilder(), extensionRegistry);
     
    -              break;
    -            } // case 34
    -            case 50: {
    -              com.google.cloud.orgpolicy.v1.Policy m =
    -                  input.readMessage(
    -                      com.google.cloud.orgpolicy.v1.Policy.parser(),
    -                      extensionRegistry);
    -              if (orgPolicyBuilder_ == null) {
    -                ensureOrgPolicyIsMutable();
    -                orgPolicy_.add(m);
    -              } else {
    -                orgPolicyBuilder_.addMessage(m);
    -              }
    -              break;
    -            } // case 50
    -            case 58: {
    -              input.readMessage(
    -                  getAccessPolicyFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -              accessContextPolicyCase_ = 7;
    -              break;
    -            } // case 58
    -            case 66: {
    -              input.readMessage(
    -                  getAccessLevelFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -              accessContextPolicyCase_ = 8;
    -              break;
    -            } // case 66
    -            case 74: {
    -              input.readMessage(
    -                  getServicePerimeterFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -              accessContextPolicyCase_ = 9;
    -              break;
    -            } // case 74
    -            case 82: {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              ensureAncestorsIsMutable();
    -              ancestors_.add(s);
    -              break;
    -            } // case 82
    -            case 90: {
    -              input.readMessage(
    -                  getUpdateTimeFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    +                break;
    +              } // case 34
    +            case 50:
    +              {
    +                com.google.cloud.orgpolicy.v1.Policy m =
    +                    input.readMessage(
    +                        com.google.cloud.orgpolicy.v1.Policy.parser(), extensionRegistry);
    +                if (orgPolicyBuilder_ == null) {
    +                  ensureOrgPolicyIsMutable();
    +                  orgPolicy_.add(m);
    +                } else {
    +                  orgPolicyBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 50
    +            case 58:
    +              {
    +                input.readMessage(getAccessPolicyFieldBuilder().getBuilder(), extensionRegistry);
    +                accessContextPolicyCase_ = 7;
    +                break;
    +              } // case 58
    +            case 66:
    +              {
    +                input.readMessage(getAccessLevelFieldBuilder().getBuilder(), extensionRegistry);
    +                accessContextPolicyCase_ = 8;
    +                break;
    +              } // case 66
    +            case 74:
    +              {
    +                input.readMessage(
    +                    getServicePerimeterFieldBuilder().getBuilder(), extensionRegistry);
    +                accessContextPolicyCase_ = 9;
    +                break;
    +              } // case 74
    +            case 82:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAncestorsIsMutable();
    +                ancestors_.add(s);
    +                break;
    +              } // case 82
    +            case 90:
    +              {
    +                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
     
    -              break;
    -            } // case 90
    -            case 98: {
    -              input.readMessage(
    -                  getOsInventoryFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    +                break;
    +              } // case 90
    +            case 98:
    +              {
    +                input.readMessage(getOsInventoryFieldBuilder().getBuilder(), extensionRegistry);
     
    -              break;
    -            } // case 98
    -            case 106: {
    -              input.readMessage(
    -                  getRelatedAssetsFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    +                break;
    +              } // case 98
    +            case 106:
    +              {
    +                input.readMessage(getRelatedAssetsFieldBuilder().getBuilder(), extensionRegistry);
     
    -              break;
    -            } // case 106
    -            case 122: {
    -              input.readMessage(
    -                  getRelatedAssetFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    +                break;
    +              } // case 106
    +            case 122:
    +              {
    +                input.readMessage(getRelatedAssetFieldBuilder().getBuilder(), extensionRegistry);
     
    -              break;
    -            } // case 122
    -            default: {
    -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                done = true; // was an endgroup tag
    -              }
    -              break;
    -            } // default:
    +                break;
    +              } // case 122
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -1577,12 +1704,12 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
    +
         private int accessContextPolicyCase_ = 0;
         private java.lang.Object accessContextPolicy_;
    -    public AccessContextPolicyCase
    -        getAccessContextPolicyCase() {
    -      return AccessContextPolicyCase.forNumber(
    -          accessContextPolicyCase_);
    +
    +    public AccessContextPolicyCase getAccessContextPolicyCase() {
    +      return AccessContextPolicyCase.forNumber(accessContextPolicyCase_);
         }
     
         public Builder clearAccessContextPolicy() {
    @@ -1596,36 +1723,49 @@ public Builder clearAccessContextPolicy() {
     
         private com.google.protobuf.Timestamp updateTime_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_;
    +            com.google.protobuf.Timestamp,
    +            com.google.protobuf.Timestamp.Builder,
    +            com.google.protobuf.TimestampOrBuilder>
    +        updateTimeBuilder_;
         /**
    +     *
    +     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
          * 
    * * .google.protobuf.Timestamp update_time = 11; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
          * 
    * * .google.protobuf.Timestamp update_time = 11; + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1647,6 +1787,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1654,8 +1796,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
          *
          * .google.protobuf.Timestamp update_time = 11;
          */
    -    public Builder setUpdateTime(
    -        com.google.protobuf.Timestamp.Builder builderForValue) {
    +    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
           if (updateTimeBuilder_ == null) {
             updateTime_ = builderForValue.build();
             onChanged();
    @@ -1666,6 +1807,8 @@ public Builder setUpdateTime(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1677,7 +1820,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
           if (updateTimeBuilder_ == null) {
             if (updateTime_ != null) {
               updateTime_ =
    -            com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
    +              com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
             } else {
               updateTime_ = value;
             }
    @@ -1689,6 +1832,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1708,6 +1853,8 @@ public Builder clearUpdateTime() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1716,11 +1863,13 @@ public Builder clearUpdateTime() {
          * .google.protobuf.Timestamp update_time = 11;
          */
         public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
    -      
    +
           onChanged();
           return getUpdateTimeFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1732,11 +1881,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
           if (updateTimeBuilder_ != null) {
             return updateTimeBuilder_.getMessageOrBuilder();
           } else {
    -        return updateTime_ == null ?
    -            com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
    +        return updateTime_ == null
    +            ? com.google.protobuf.Timestamp.getDefaultInstance()
    +            : updateTime_;
           }
         }
         /**
    +     *
    +     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1745,14 +1897,17 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
          * .google.protobuf.Timestamp update_time = 11;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
    +            com.google.protobuf.Timestamp,
    +            com.google.protobuf.Timestamp.Builder,
    +            com.google.protobuf.TimestampOrBuilder>
             getUpdateTimeFieldBuilder() {
           if (updateTimeBuilder_ == null) {
    -        updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    -                getUpdateTime(),
    -                getParentForChildren(),
    -                isClean());
    +        updateTimeBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.Timestamp,
    +                com.google.protobuf.Timestamp.Builder,
    +                com.google.protobuf.TimestampOrBuilder>(
    +                getUpdateTime(), getParentForChildren(), isClean());
             updateTime_ = null;
           }
           return updateTimeBuilder_;
    @@ -1760,6 +1915,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
     
         private java.lang.Object name_ = "";
         /**
    +     *
    +     *
          * 
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -1769,13 +1926,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
          * 
    * * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1784,6 +1941,8 @@ public java.lang.String getName() { } } /** + * + * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -1793,15 +1952,14 @@ public java.lang.String getName() {
          * 
    * * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1809,6 +1967,8 @@ public java.lang.String getName() { } } /** + * + * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -1818,20 +1978,22 @@ public java.lang.String getName() {
          * 
    * * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -1841,15 +2003,18 @@ public Builder setName(
          * 
    * * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -1859,16 +2024,16 @@ public Builder clearName() {
          * 
    * * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1876,6 +2041,8 @@ public Builder setNameBytes( private java.lang.Object assetType_ = ""; /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -1884,13 +2051,13 @@ public Builder setNameBytes(
          * 
    * * string asset_type = 2; + * * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; @@ -1899,6 +2066,8 @@ public java.lang.String getAssetType() { } } /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -1907,15 +2076,14 @@ public java.lang.String getAssetType() {
          * 
    * * string asset_type = 2; + * * @return The bytes for assetType. */ - public com.google.protobuf.ByteString - getAssetTypeBytes() { + public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetType_ = b; return b; } else { @@ -1923,6 +2091,8 @@ public java.lang.String getAssetType() { } } /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -1931,20 +2101,22 @@ public java.lang.String getAssetType() {
          * 
    * * string asset_type = 2; + * * @param value The assetType to set. * @return This builder for chaining. */ - public Builder setAssetType( - java.lang.String value) { + public Builder setAssetType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + assetType_ = value; onChanged(); return this; } /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -1953,15 +2125,18 @@ public Builder setAssetType(
          * 
    * * string asset_type = 2; + * * @return This builder for chaining. */ public Builder clearAssetType() { - + assetType_ = getDefaultInstance().getAssetType(); onChanged(); return this; } /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -1970,16 +2145,16 @@ public Builder clearAssetType() {
          * 
    * * string asset_type = 2; + * * @param value The bytes for assetType to set. * @return This builder for chaining. */ - public Builder setAssetTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; onChanged(); return this; @@ -1987,34 +2162,47 @@ public Builder setAssetTypeBytes( private com.google.cloud.asset.v1.Resource resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.Resource, com.google.cloud.asset.v1.Resource.Builder, com.google.cloud.asset.v1.ResourceOrBuilder> resourceBuilder_; + com.google.cloud.asset.v1.Resource, + com.google.cloud.asset.v1.Resource.Builder, + com.google.cloud.asset.v1.ResourceOrBuilder> + resourceBuilder_; /** + * + * *
          * A representation of the resource.
          * 
    * * .google.cloud.asset.v1.Resource resource = 3; + * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** + * + * *
          * A representation of the resource.
          * 
    * * .google.cloud.asset.v1.Resource resource = 3; + * * @return The resource. */ public com.google.cloud.asset.v1.Resource getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.cloud.asset.v1.Resource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.asset.v1.Resource.getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
          * A representation of the resource.
          * 
    @@ -2035,14 +2223,15 @@ public Builder setResource(com.google.cloud.asset.v1.Resource value) { return this; } /** + * + * *
          * A representation of the resource.
          * 
    * * .google.cloud.asset.v1.Resource resource = 3; */ - public Builder setResource( - com.google.cloud.asset.v1.Resource.Builder builderForValue) { + public Builder setResource(com.google.cloud.asset.v1.Resource.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -2053,6 +2242,8 @@ public Builder setResource( return this; } /** + * + * *
          * A representation of the resource.
          * 
    @@ -2063,7 +2254,9 @@ public Builder mergeResource(com.google.cloud.asset.v1.Resource value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.asset.v1.Resource.newBuilder(resource_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.Resource.newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); } else { resource_ = value; } @@ -2075,6 +2268,8 @@ public Builder mergeResource(com.google.cloud.asset.v1.Resource value) { return this; } /** + * + * *
          * A representation of the resource.
          * 
    @@ -2093,6 +2288,8 @@ public Builder clearResource() { return this; } /** + * + * *
          * A representation of the resource.
          * 
    @@ -2100,11 +2297,13 @@ public Builder clearResource() { * .google.cloud.asset.v1.Resource resource = 3; */ public com.google.cloud.asset.v1.Resource.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** + * + * *
          * A representation of the resource.
          * 
    @@ -2115,11 +2314,14 @@ public com.google.cloud.asset.v1.ResourceOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null ? - com.google.cloud.asset.v1.Resource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.asset.v1.Resource.getDefaultInstance() + : resource_; } } /** + * + * *
          * A representation of the resource.
          * 
    @@ -2127,14 +2329,17 @@ public com.google.cloud.asset.v1.ResourceOrBuilder getResourceOrBuilder() { * .google.cloud.asset.v1.Resource resource = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.Resource, com.google.cloud.asset.v1.Resource.Builder, com.google.cloud.asset.v1.ResourceOrBuilder> + com.google.cloud.asset.v1.Resource, + com.google.cloud.asset.v1.Resource.Builder, + com.google.cloud.asset.v1.ResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.Resource, com.google.cloud.asset.v1.Resource.Builder, com.google.cloud.asset.v1.ResourceOrBuilder>( - getResource(), - getParentForChildren(), - isClean()); + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.Resource, + com.google.cloud.asset.v1.Resource.Builder, + com.google.cloud.asset.v1.ResourceOrBuilder>( + getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; @@ -2142,8 +2347,13 @@ public com.google.cloud.asset.v1.ResourceOrBuilder getResourceOrBuilder() { private com.google.iam.v1.Policy iamPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> iamPolicyBuilder_; + com.google.iam.v1.Policy, + com.google.iam.v1.Policy.Builder, + com.google.iam.v1.PolicyOrBuilder> + iamPolicyBuilder_; /** + * + * *
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2157,12 +2367,15 @@ public com.google.cloud.asset.v1.ResourceOrBuilder getResourceOrBuilder() {
          * 
    * * .google.iam.v1.Policy iam_policy = 4; + * * @return Whether the iamPolicy field is set. */ public boolean hasIamPolicy() { return iamPolicyBuilder_ != null || iamPolicy_ != null; } /** + * + * *
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2176,6 +2389,7 @@ public boolean hasIamPolicy() {
          * 
    * * .google.iam.v1.Policy iam_policy = 4; + * * @return The iamPolicy. */ public com.google.iam.v1.Policy getIamPolicy() { @@ -2186,6 +2400,8 @@ public com.google.iam.v1.Policy getIamPolicy() { } } /** + * + * *
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2214,6 +2430,8 @@ public Builder setIamPolicy(com.google.iam.v1.Policy value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2228,8 +2446,7 @@ public Builder setIamPolicy(com.google.iam.v1.Policy value) {
          *
          * .google.iam.v1.Policy iam_policy = 4;
          */
    -    public Builder setIamPolicy(
    -        com.google.iam.v1.Policy.Builder builderForValue) {
    +    public Builder setIamPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
           if (iamPolicyBuilder_ == null) {
             iamPolicy_ = builderForValue.build();
             onChanged();
    @@ -2240,6 +2457,8 @@ public Builder setIamPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2258,7 +2477,7 @@ public Builder mergeIamPolicy(com.google.iam.v1.Policy value) {
           if (iamPolicyBuilder_ == null) {
             if (iamPolicy_ != null) {
               iamPolicy_ =
    -            com.google.iam.v1.Policy.newBuilder(iamPolicy_).mergeFrom(value).buildPartial();
    +              com.google.iam.v1.Policy.newBuilder(iamPolicy_).mergeFrom(value).buildPartial();
             } else {
               iamPolicy_ = value;
             }
    @@ -2270,6 +2489,8 @@ public Builder mergeIamPolicy(com.google.iam.v1.Policy value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2296,6 +2517,8 @@ public Builder clearIamPolicy() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2311,11 +2534,13 @@ public Builder clearIamPolicy() {
          * .google.iam.v1.Policy iam_policy = 4;
          */
         public com.google.iam.v1.Policy.Builder getIamPolicyBuilder() {
    -      
    +
           onChanged();
           return getIamPolicyFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2334,11 +2559,12 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
           if (iamPolicyBuilder_ != null) {
             return iamPolicyBuilder_.getMessageOrBuilder();
           } else {
    -        return iamPolicy_ == null ?
    -            com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_;
    +        return iamPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_;
           }
         }
         /**
    +     *
    +     *
          * 
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2354,32 +2580,41 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
          * .google.iam.v1.Policy iam_policy = 4;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> 
    +            com.google.iam.v1.Policy,
    +            com.google.iam.v1.Policy.Builder,
    +            com.google.iam.v1.PolicyOrBuilder>
             getIamPolicyFieldBuilder() {
           if (iamPolicyBuilder_ == null) {
    -        iamPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>(
    -                getIamPolicy(),
    -                getParentForChildren(),
    -                isClean());
    +        iamPolicyBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.iam.v1.Policy,
    +                com.google.iam.v1.Policy.Builder,
    +                com.google.iam.v1.PolicyOrBuilder>(
    +                getIamPolicy(), getParentForChildren(), isClean());
             iamPolicy_ = null;
           }
           return iamPolicyBuilder_;
         }
     
         private java.util.List orgPolicy_ =
    -      java.util.Collections.emptyList();
    +        java.util.Collections.emptyList();
    +
         private void ensureOrgPolicyIsMutable() {
           if (!((bitField0_ & 0x00000001) != 0)) {
             orgPolicy_ = new java.util.ArrayList(orgPolicy_);
             bitField0_ |= 0x00000001;
    -       }
    +      }
         }
     
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -        com.google.cloud.orgpolicy.v1.Policy, com.google.cloud.orgpolicy.v1.Policy.Builder, com.google.cloud.orgpolicy.v1.PolicyOrBuilder> orgPolicyBuilder_;
    +            com.google.cloud.orgpolicy.v1.Policy,
    +            com.google.cloud.orgpolicy.v1.Policy.Builder,
    +            com.google.cloud.orgpolicy.v1.PolicyOrBuilder>
    +        orgPolicyBuilder_;
     
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2397,6 +2632,8 @@ public java.util.List getOrgPolicyList() {
           }
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2414,6 +2651,8 @@ public int getOrgPolicyCount() {
           }
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2431,6 +2670,8 @@ public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) {
           }
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2440,8 +2681,7 @@ public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) {
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public Builder setOrgPolicy(
    -        int index, com.google.cloud.orgpolicy.v1.Policy value) {
    +    public Builder setOrgPolicy(int index, com.google.cloud.orgpolicy.v1.Policy value) {
           if (orgPolicyBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -2455,6 +2695,8 @@ public Builder setOrgPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2476,6 +2718,8 @@ public Builder setOrgPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2499,6 +2743,8 @@ public Builder addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2508,8 +2754,7 @@ public Builder addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy value) {
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public Builder addOrgPolicy(
    -        int index, com.google.cloud.orgpolicy.v1.Policy value) {
    +    public Builder addOrgPolicy(int index, com.google.cloud.orgpolicy.v1.Policy value) {
           if (orgPolicyBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -2523,6 +2768,8 @@ public Builder addOrgPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2532,8 +2779,7 @@ public Builder addOrgPolicy(
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public Builder addOrgPolicy(
    -        com.google.cloud.orgpolicy.v1.Policy.Builder builderForValue) {
    +    public Builder addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy.Builder builderForValue) {
           if (orgPolicyBuilder_ == null) {
             ensureOrgPolicyIsMutable();
             orgPolicy_.add(builderForValue.build());
    @@ -2544,6 +2790,8 @@ public Builder addOrgPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2565,6 +2813,8 @@ public Builder addOrgPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2578,8 +2828,7 @@ public Builder addAllOrgPolicy(
             java.lang.Iterable values) {
           if (orgPolicyBuilder_ == null) {
             ensureOrgPolicyIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    -            values, orgPolicy_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, orgPolicy_);
             onChanged();
           } else {
             orgPolicyBuilder_.addAllMessages(values);
    @@ -2587,6 +2836,8 @@ public Builder addAllOrgPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2607,6 +2858,8 @@ public Builder clearOrgPolicy() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2627,6 +2880,8 @@ public Builder removeOrgPolicy(int index) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2636,11 +2891,12 @@ public Builder removeOrgPolicy(int index) {
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public com.google.cloud.orgpolicy.v1.Policy.Builder getOrgPolicyBuilder(
    -        int index) {
    +    public com.google.cloud.orgpolicy.v1.Policy.Builder getOrgPolicyBuilder(int index) {
           return getOrgPolicyFieldBuilder().getBuilder(index);
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2650,14 +2906,16 @@ public com.google.cloud.orgpolicy.v1.Policy.Builder getOrgPolicyBuilder(
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
    -        int index) {
    +    public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int index) {
           if (orgPolicyBuilder_ == null) {
    -        return orgPolicy_.get(index);  } else {
    +        return orgPolicy_.get(index);
    +      } else {
             return orgPolicyBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2667,8 +2925,8 @@ public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public java.util.List 
    -         getOrgPolicyOrBuilderList() {
    +    public java.util.List
    +        getOrgPolicyOrBuilderList() {
           if (orgPolicyBuilder_ != null) {
             return orgPolicyBuilder_.getMessageOrBuilderList();
           } else {
    @@ -2676,6 +2934,8 @@ public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
           }
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2686,10 +2946,12 @@ public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
         public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder() {
    -      return getOrgPolicyFieldBuilder().addBuilder(
    -          com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance());
    +      return getOrgPolicyFieldBuilder()
    +          .addBuilder(com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2699,12 +2961,13 @@ public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder() {
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder(
    -        int index) {
    -      return getOrgPolicyFieldBuilder().addBuilder(
    -          index, com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance());
    +    public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder(int index) {
    +      return getOrgPolicyFieldBuilder()
    +          .addBuilder(index, com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2714,34 +2977,42 @@ public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder(
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public java.util.List 
    -         getOrgPolicyBuilderList() {
    +    public java.util.List getOrgPolicyBuilderList() {
           return getOrgPolicyFieldBuilder().getBuilderList();
         }
    +
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -        com.google.cloud.orgpolicy.v1.Policy, com.google.cloud.orgpolicy.v1.Policy.Builder, com.google.cloud.orgpolicy.v1.PolicyOrBuilder> 
    +            com.google.cloud.orgpolicy.v1.Policy,
    +            com.google.cloud.orgpolicy.v1.Policy.Builder,
    +            com.google.cloud.orgpolicy.v1.PolicyOrBuilder>
             getOrgPolicyFieldBuilder() {
           if (orgPolicyBuilder_ == null) {
    -        orgPolicyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.orgpolicy.v1.Policy, com.google.cloud.orgpolicy.v1.Policy.Builder, com.google.cloud.orgpolicy.v1.PolicyOrBuilder>(
    -                orgPolicy_,
    -                ((bitField0_ & 0x00000001) != 0),
    -                getParentForChildren(),
    -                isClean());
    +        orgPolicyBuilder_ =
    +            new com.google.protobuf.RepeatedFieldBuilderV3<
    +                com.google.cloud.orgpolicy.v1.Policy,
    +                com.google.cloud.orgpolicy.v1.Policy.Builder,
    +                com.google.cloud.orgpolicy.v1.PolicyOrBuilder>(
    +                orgPolicy_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
             orgPolicy_ = null;
           }
           return orgPolicyBuilder_;
         }
     
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.identity.accesscontextmanager.v1.AccessPolicy, com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder, com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder> accessPolicyBuilder_;
    +            com.google.identity.accesscontextmanager.v1.AccessPolicy,
    +            com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder,
    +            com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>
    +        accessPolicyBuilder_;
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
          * 
    * * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; + * * @return Whether the accessPolicy field is set. */ @java.lang.Override @@ -2749,12 +3020,15 @@ public boolean hasAccessPolicy() { return accessContextPolicyCase_ == 7; } /** + * + * *
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
          * 
    * * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; + * * @return The accessPolicy. */ @java.lang.Override @@ -2772,6 +3046,8 @@ public com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy( } } /** + * + * *
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -2793,6 +3069,8 @@ public Builder setAccessPolicy(com.google.identity.accesscontextmanager.v1.Acces
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -2812,6 +3090,8 @@ public Builder setAccessPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -2819,12 +3099,18 @@ public Builder setAccessPolicy(
          *
          * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
          */
    -    public Builder mergeAccessPolicy(com.google.identity.accesscontextmanager.v1.AccessPolicy value) {
    +    public Builder mergeAccessPolicy(
    +        com.google.identity.accesscontextmanager.v1.AccessPolicy value) {
           if (accessPolicyBuilder_ == null) {
    -        if (accessContextPolicyCase_ == 7 &&
    -            accessContextPolicy_ != com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance()) {
    -          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.AccessPolicy.newBuilder((com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_)
    -              .mergeFrom(value).buildPartial();
    +        if (accessContextPolicyCase_ == 7
    +            && accessContextPolicy_
    +                != com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance()) {
    +          accessContextPolicy_ =
    +              com.google.identity.accesscontextmanager.v1.AccessPolicy.newBuilder(
    +                      (com.google.identity.accesscontextmanager.v1.AccessPolicy)
    +                          accessContextPolicy_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               accessContextPolicy_ = value;
             }
    @@ -2840,6 +3126,8 @@ public Builder mergeAccessPolicy(com.google.identity.accesscontextmanager.v1.Acc
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -2864,6 +3152,8 @@ public Builder clearAccessPolicy() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -2871,10 +3161,13 @@ public Builder clearAccessPolicy() {
          *
          * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
          */
    -    public com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder getAccessPolicyBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder
    +        getAccessPolicyBuilder() {
           return getAccessPolicyFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -2883,7 +3176,8 @@ public com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder getAcces
          * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
          */
         @java.lang.Override
    -    public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAccessPolicyOrBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder
    +        getAccessPolicyOrBuilder() {
           if ((accessContextPolicyCase_ == 7) && (accessPolicyBuilder_ != null)) {
             return accessPolicyBuilder_.getMessageOrBuilder();
           } else {
    @@ -2894,6 +3188,8 @@ public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAcce
           }
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -2902,33 +3198,46 @@ public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAcce
          * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.identity.accesscontextmanager.v1.AccessPolicy, com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder, com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder> 
    +            com.google.identity.accesscontextmanager.v1.AccessPolicy,
    +            com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder,
    +            com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>
             getAccessPolicyFieldBuilder() {
           if (accessPolicyBuilder_ == null) {
             if (!(accessContextPolicyCase_ == 7)) {
    -          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance();
    +          accessContextPolicy_ =
    +              com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance();
             }
    -        accessPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.AccessPolicy, com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder, com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>(
    +        accessPolicyBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.identity.accesscontextmanager.v1.AccessPolicy,
    +                com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder,
    +                com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>(
                     (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_,
                     getParentForChildren(),
                     isClean());
             accessContextPolicy_ = null;
           }
           accessContextPolicyCase_ = 7;
    -      onChanged();;
    +      onChanged();
    +      ;
           return accessPolicyBuilder_;
         }
     
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.identity.accesscontextmanager.v1.AccessLevel, com.google.identity.accesscontextmanager.v1.AccessLevel.Builder, com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder> accessLevelBuilder_;
    +            com.google.identity.accesscontextmanager.v1.AccessLevel,
    +            com.google.identity.accesscontextmanager.v1.AccessLevel.Builder,
    +            com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>
    +        accessLevelBuilder_;
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
          * 
    * * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; + * * @return Whether the accessLevel field is set. */ @java.lang.Override @@ -2936,12 +3245,15 @@ public boolean hasAccessLevel() { return accessContextPolicyCase_ == 8; } /** + * + * *
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
          * 
    * * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; + * * @return The accessLevel. */ @java.lang.Override @@ -2959,6 +3271,8 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel() } } /** + * + * *
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -2980,6 +3294,8 @@ public Builder setAccessLevel(com.google.identity.accesscontextmanager.v1.Access
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -2999,6 +3315,8 @@ public Builder setAccessLevel(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -3008,10 +3326,15 @@ public Builder setAccessLevel(
          */
         public Builder mergeAccessLevel(com.google.identity.accesscontextmanager.v1.AccessLevel value) {
           if (accessLevelBuilder_ == null) {
    -        if (accessContextPolicyCase_ == 8 &&
    -            accessContextPolicy_ != com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance()) {
    -          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.AccessLevel.newBuilder((com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_)
    -              .mergeFrom(value).buildPartial();
    +        if (accessContextPolicyCase_ == 8
    +            && accessContextPolicy_
    +                != com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance()) {
    +          accessContextPolicy_ =
    +              com.google.identity.accesscontextmanager.v1.AccessLevel.newBuilder(
    +                      (com.google.identity.accesscontextmanager.v1.AccessLevel)
    +                          accessContextPolicy_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               accessContextPolicy_ = value;
             }
    @@ -3027,6 +3350,8 @@ public Builder mergeAccessLevel(com.google.identity.accesscontextmanager.v1.Acce
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -3051,6 +3376,8 @@ public Builder clearAccessLevel() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -3062,6 +3389,8 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel.Builder getAccess
           return getAccessLevelFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -3070,7 +3399,8 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel.Builder getAccess
          * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
          */
         @java.lang.Override
    -    public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAccessLevelOrBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder
    +        getAccessLevelOrBuilder() {
           if ((accessContextPolicyCase_ == 8) && (accessLevelBuilder_ != null)) {
             return accessLevelBuilder_.getMessageOrBuilder();
           } else {
    @@ -3081,6 +3411,8 @@ public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAcces
           }
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -3089,33 +3421,46 @@ public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAcces
          * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.identity.accesscontextmanager.v1.AccessLevel, com.google.identity.accesscontextmanager.v1.AccessLevel.Builder, com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder> 
    +            com.google.identity.accesscontextmanager.v1.AccessLevel,
    +            com.google.identity.accesscontextmanager.v1.AccessLevel.Builder,
    +            com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>
             getAccessLevelFieldBuilder() {
           if (accessLevelBuilder_ == null) {
             if (!(accessContextPolicyCase_ == 8)) {
    -          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance();
    +          accessContextPolicy_ =
    +              com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance();
             }
    -        accessLevelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.AccessLevel, com.google.identity.accesscontextmanager.v1.AccessLevel.Builder, com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>(
    +        accessLevelBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.identity.accesscontextmanager.v1.AccessLevel,
    +                com.google.identity.accesscontextmanager.v1.AccessLevel.Builder,
    +                com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>(
                     (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_,
                     getParentForChildren(),
                     isClean());
             accessContextPolicy_ = null;
           }
           accessContextPolicyCase_ = 8;
    -      onChanged();;
    +      onChanged();
    +      ;
           return accessLevelBuilder_;
         }
     
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.identity.accesscontextmanager.v1.ServicePerimeter, com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder, com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder> servicePerimeterBuilder_;
    +            com.google.identity.accesscontextmanager.v1.ServicePerimeter,
    +            com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder,
    +            com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>
    +        servicePerimeterBuilder_;
         /**
    +     *
    +     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
          * 
    * * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + * * @return Whether the servicePerimeter field is set. */ @java.lang.Override @@ -3123,19 +3468,23 @@ public boolean hasServicePerimeter() { return accessContextPolicyCase_ == 9; } /** + * + * *
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
          * 
    * * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + * * @return The servicePerimeter. */ @java.lang.Override public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter() { if (servicePerimeterBuilder_ == null) { if (accessContextPolicyCase_ == 9) { - return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_; + return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) + accessContextPolicy_; } return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance(); } else { @@ -3146,6 +3495,8 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePe } } /** + * + * *
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3153,7 +3504,8 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePe
          *
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
    -    public Builder setServicePerimeter(com.google.identity.accesscontextmanager.v1.ServicePerimeter value) {
    +    public Builder setServicePerimeter(
    +        com.google.identity.accesscontextmanager.v1.ServicePerimeter value) {
           if (servicePerimeterBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -3167,6 +3519,8 @@ public Builder setServicePerimeter(com.google.identity.accesscontextmanager.v1.S
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3186,6 +3540,8 @@ public Builder setServicePerimeter(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3193,12 +3549,19 @@ public Builder setServicePerimeter(
          *
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
    -    public Builder mergeServicePerimeter(com.google.identity.accesscontextmanager.v1.ServicePerimeter value) {
    +    public Builder mergeServicePerimeter(
    +        com.google.identity.accesscontextmanager.v1.ServicePerimeter value) {
           if (servicePerimeterBuilder_ == null) {
    -        if (accessContextPolicyCase_ == 9 &&
    -            accessContextPolicy_ != com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance()) {
    -          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.ServicePerimeter.newBuilder((com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_)
    -              .mergeFrom(value).buildPartial();
    +        if (accessContextPolicyCase_ == 9
    +            && accessContextPolicy_
    +                != com.google.identity.accesscontextmanager.v1.ServicePerimeter
    +                    .getDefaultInstance()) {
    +          accessContextPolicy_ =
    +              com.google.identity.accesscontextmanager.v1.ServicePerimeter.newBuilder(
    +                      (com.google.identity.accesscontextmanager.v1.ServicePerimeter)
    +                          accessContextPolicy_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               accessContextPolicy_ = value;
             }
    @@ -3214,6 +3577,8 @@ public Builder mergeServicePerimeter(com.google.identity.accesscontextmanager.v1
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3238,6 +3603,8 @@ public Builder clearServicePerimeter() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3245,10 +3612,13 @@ public Builder clearServicePerimeter() {
          *
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
    -    public com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder getServicePerimeterBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder
    +        getServicePerimeterBuilder() {
           return getServicePerimeterFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3257,17 +3627,21 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder getS
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
         @java.lang.Override
    -    public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder getServicePerimeterOrBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder
    +        getServicePerimeterOrBuilder() {
           if ((accessContextPolicyCase_ == 9) && (servicePerimeterBuilder_ != null)) {
             return servicePerimeterBuilder_.getMessageOrBuilder();
           } else {
             if (accessContextPolicyCase_ == 9) {
    -          return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_;
    +          return (com.google.identity.accesscontextmanager.v1.ServicePerimeter)
    +              accessContextPolicy_;
             }
             return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
           }
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3276,28 +3650,40 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder get
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.identity.accesscontextmanager.v1.ServicePerimeter, com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder, com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder> 
    +            com.google.identity.accesscontextmanager.v1.ServicePerimeter,
    +            com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder,
    +            com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>
             getServicePerimeterFieldBuilder() {
           if (servicePerimeterBuilder_ == null) {
             if (!(accessContextPolicyCase_ == 9)) {
    -          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
    +          accessContextPolicy_ =
    +              com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
             }
    -        servicePerimeterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.ServicePerimeter, com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder, com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>(
    +        servicePerimeterBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.identity.accesscontextmanager.v1.ServicePerimeter,
    +                com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder,
    +                com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>(
                     (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_,
                     getParentForChildren(),
                     isClean());
             accessContextPolicy_ = null;
           }
           accessContextPolicyCase_ = 9;
    -      onChanged();;
    +      onChanged();
    +      ;
           return servicePerimeterBuilder_;
         }
     
         private com.google.cloud.osconfig.v1.Inventory osInventory_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.osconfig.v1.Inventory, com.google.cloud.osconfig.v1.Inventory.Builder, com.google.cloud.osconfig.v1.InventoryOrBuilder> osInventoryBuilder_;
    +            com.google.cloud.osconfig.v1.Inventory,
    +            com.google.cloud.osconfig.v1.Inventory.Builder,
    +            com.google.cloud.osconfig.v1.InventoryOrBuilder>
    +        osInventoryBuilder_;
         /**
    +     *
    +     *
          * 
          * A representation of runtime OS Inventory information. See [this
          * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -3305,12 +3691,15 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder get
          * 
    * * .google.cloud.osconfig.v1.Inventory os_inventory = 12; + * * @return Whether the osInventory field is set. */ public boolean hasOsInventory() { return osInventoryBuilder_ != null || osInventory_ != null; } /** + * + * *
          * A representation of runtime OS Inventory information. See [this
          * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -3318,16 +3707,21 @@ public boolean hasOsInventory() {
          * 
    * * .google.cloud.osconfig.v1.Inventory os_inventory = 12; + * * @return The osInventory. */ public com.google.cloud.osconfig.v1.Inventory getOsInventory() { if (osInventoryBuilder_ == null) { - return osInventory_ == null ? com.google.cloud.osconfig.v1.Inventory.getDefaultInstance() : osInventory_; + return osInventory_ == null + ? com.google.cloud.osconfig.v1.Inventory.getDefaultInstance() + : osInventory_; } else { return osInventoryBuilder_.getMessage(); } } /** + * + * *
          * A representation of runtime OS Inventory information. See [this
          * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -3350,6 +3744,8 @@ public Builder setOsInventory(com.google.cloud.osconfig.v1.Inventory value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of runtime OS Inventory information. See [this
          * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -3358,8 +3754,7 @@ public Builder setOsInventory(com.google.cloud.osconfig.v1.Inventory value) {
          *
          * .google.cloud.osconfig.v1.Inventory os_inventory = 12;
          */
    -    public Builder setOsInventory(
    -        com.google.cloud.osconfig.v1.Inventory.Builder builderForValue) {
    +    public Builder setOsInventory(com.google.cloud.osconfig.v1.Inventory.Builder builderForValue) {
           if (osInventoryBuilder_ == null) {
             osInventory_ = builderForValue.build();
             onChanged();
    @@ -3370,6 +3765,8 @@ public Builder setOsInventory(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of runtime OS Inventory information. See [this
          * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -3382,7 +3779,9 @@ public Builder mergeOsInventory(com.google.cloud.osconfig.v1.Inventory value) {
           if (osInventoryBuilder_ == null) {
             if (osInventory_ != null) {
               osInventory_ =
    -            com.google.cloud.osconfig.v1.Inventory.newBuilder(osInventory_).mergeFrom(value).buildPartial();
    +              com.google.cloud.osconfig.v1.Inventory.newBuilder(osInventory_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               osInventory_ = value;
             }
    @@ -3394,6 +3793,8 @@ public Builder mergeOsInventory(com.google.cloud.osconfig.v1.Inventory value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of runtime OS Inventory information. See [this
          * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -3414,6 +3815,8 @@ public Builder clearOsInventory() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of runtime OS Inventory information. See [this
          * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -3423,11 +3826,13 @@ public Builder clearOsInventory() {
          * .google.cloud.osconfig.v1.Inventory os_inventory = 12;
          */
         public com.google.cloud.osconfig.v1.Inventory.Builder getOsInventoryBuilder() {
    -      
    +
           onChanged();
           return getOsInventoryFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * A representation of runtime OS Inventory information. See [this
          * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -3440,11 +3845,14 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
           if (osInventoryBuilder_ != null) {
             return osInventoryBuilder_.getMessageOrBuilder();
           } else {
    -        return osInventory_ == null ?
    -            com.google.cloud.osconfig.v1.Inventory.getDefaultInstance() : osInventory_;
    +        return osInventory_ == null
    +            ? com.google.cloud.osconfig.v1.Inventory.getDefaultInstance()
    +            : osInventory_;
           }
         }
         /**
    +     *
    +     *
          * 
          * A representation of runtime OS Inventory information. See [this
          * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -3454,14 +3862,17 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
          * .google.cloud.osconfig.v1.Inventory os_inventory = 12;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.osconfig.v1.Inventory, com.google.cloud.osconfig.v1.Inventory.Builder, com.google.cloud.osconfig.v1.InventoryOrBuilder> 
    +            com.google.cloud.osconfig.v1.Inventory,
    +            com.google.cloud.osconfig.v1.Inventory.Builder,
    +            com.google.cloud.osconfig.v1.InventoryOrBuilder>
             getOsInventoryFieldBuilder() {
           if (osInventoryBuilder_ == null) {
    -        osInventoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.osconfig.v1.Inventory, com.google.cloud.osconfig.v1.Inventory.Builder, com.google.cloud.osconfig.v1.InventoryOrBuilder>(
    -                getOsInventory(),
    -                getParentForChildren(),
    -                isClean());
    +        osInventoryBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.cloud.osconfig.v1.Inventory,
    +                com.google.cloud.osconfig.v1.Inventory.Builder,
    +                com.google.cloud.osconfig.v1.InventoryOrBuilder>(
    +                getOsInventory(), getParentForChildren(), isClean());
             osInventory_ = null;
           }
           return osInventoryBuilder_;
    @@ -3469,8 +3880,13 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
     
         private com.google.cloud.asset.v1.RelatedAssets relatedAssets_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1.RelatedAssets, com.google.cloud.asset.v1.RelatedAssets.Builder, com.google.cloud.asset.v1.RelatedAssetsOrBuilder> relatedAssetsBuilder_;
    +            com.google.cloud.asset.v1.RelatedAssets,
    +            com.google.cloud.asset.v1.RelatedAssets.Builder,
    +            com.google.cloud.asset.v1.RelatedAssetsOrBuilder>
    +        relatedAssetsBuilder_;
         /**
    +     *
    +     *
          * 
          * DEPRECATED. This field only presents for the purpose of
          * backward-compatibility. The server will never generate responses with this
    @@ -3480,14 +3896,18 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
          * 
    * * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true]; - * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. - * See google/cloud/asset/v1/assets.proto;l=166 + * + * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. See + * google/cloud/asset/v1/assets.proto;l=166 * @return Whether the relatedAssets field is set. */ - @java.lang.Deprecated public boolean hasRelatedAssets() { + @java.lang.Deprecated + public boolean hasRelatedAssets() { return relatedAssetsBuilder_ != null || relatedAssets_ != null; } /** + * + * *
          * DEPRECATED. This field only presents for the purpose of
          * backward-compatibility. The server will never generate responses with this
    @@ -3497,18 +3917,24 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
          * 
    * * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true]; - * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. - * See google/cloud/asset/v1/assets.proto;l=166 + * + * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. See + * google/cloud/asset/v1/assets.proto;l=166 * @return The relatedAssets. */ - @java.lang.Deprecated public com.google.cloud.asset.v1.RelatedAssets getRelatedAssets() { + @java.lang.Deprecated + public com.google.cloud.asset.v1.RelatedAssets getRelatedAssets() { if (relatedAssetsBuilder_ == null) { - return relatedAssets_ == null ? com.google.cloud.asset.v1.RelatedAssets.getDefaultInstance() : relatedAssets_; + return relatedAssets_ == null + ? com.google.cloud.asset.v1.RelatedAssets.getDefaultInstance() + : relatedAssets_; } else { return relatedAssetsBuilder_.getMessage(); } } /** + * + * *
          * DEPRECATED. This field only presents for the purpose of
          * backward-compatibility. The server will never generate responses with this
    @@ -3519,7 +3945,8 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
          *
          * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
          */
    -    @java.lang.Deprecated public Builder setRelatedAssets(com.google.cloud.asset.v1.RelatedAssets value) {
    +    @java.lang.Deprecated
    +    public Builder setRelatedAssets(com.google.cloud.asset.v1.RelatedAssets value) {
           if (relatedAssetsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -3533,6 +3960,8 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
           return this;
         }
         /**
    +     *
    +     *
          * 
          * DEPRECATED. This field only presents for the purpose of
          * backward-compatibility. The server will never generate responses with this
    @@ -3543,7 +3972,8 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
          *
          * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
          */
    -    @java.lang.Deprecated public Builder setRelatedAssets(
    +    @java.lang.Deprecated
    +    public Builder setRelatedAssets(
             com.google.cloud.asset.v1.RelatedAssets.Builder builderForValue) {
           if (relatedAssetsBuilder_ == null) {
             relatedAssets_ = builderForValue.build();
    @@ -3555,6 +3985,8 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
           return this;
         }
         /**
    +     *
    +     *
          * 
          * DEPRECATED. This field only presents for the purpose of
          * backward-compatibility. The server will never generate responses with this
    @@ -3565,11 +3997,14 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
          *
          * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
          */
    -    @java.lang.Deprecated public Builder mergeRelatedAssets(com.google.cloud.asset.v1.RelatedAssets value) {
    +    @java.lang.Deprecated
    +    public Builder mergeRelatedAssets(com.google.cloud.asset.v1.RelatedAssets value) {
           if (relatedAssetsBuilder_ == null) {
             if (relatedAssets_ != null) {
               relatedAssets_ =
    -            com.google.cloud.asset.v1.RelatedAssets.newBuilder(relatedAssets_).mergeFrom(value).buildPartial();
    +              com.google.cloud.asset.v1.RelatedAssets.newBuilder(relatedAssets_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               relatedAssets_ = value;
             }
    @@ -3581,6 +4016,8 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
           return this;
         }
         /**
    +     *
    +     *
          * 
          * DEPRECATED. This field only presents for the purpose of
          * backward-compatibility. The server will never generate responses with this
    @@ -3591,7 +4028,8 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
          *
          * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
          */
    -    @java.lang.Deprecated public Builder clearRelatedAssets() {
    +    @java.lang.Deprecated
    +    public Builder clearRelatedAssets() {
           if (relatedAssetsBuilder_ == null) {
             relatedAssets_ = null;
             onChanged();
    @@ -3603,6 +4041,8 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
           return this;
         }
         /**
    +     *
    +     *
          * 
          * DEPRECATED. This field only presents for the purpose of
          * backward-compatibility. The server will never generate responses with this
    @@ -3613,12 +4053,15 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
          *
          * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
          */
    -    @java.lang.Deprecated public com.google.cloud.asset.v1.RelatedAssets.Builder getRelatedAssetsBuilder() {
    -      
    +    @java.lang.Deprecated
    +    public com.google.cloud.asset.v1.RelatedAssets.Builder getRelatedAssetsBuilder() {
    +
           onChanged();
           return getRelatedAssetsFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * DEPRECATED. This field only presents for the purpose of
          * backward-compatibility. The server will never generate responses with this
    @@ -3629,15 +4072,19 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
          *
          * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
          */
    -    @java.lang.Deprecated public com.google.cloud.asset.v1.RelatedAssetsOrBuilder getRelatedAssetsOrBuilder() {
    +    @java.lang.Deprecated
    +    public com.google.cloud.asset.v1.RelatedAssetsOrBuilder getRelatedAssetsOrBuilder() {
           if (relatedAssetsBuilder_ != null) {
             return relatedAssetsBuilder_.getMessageOrBuilder();
           } else {
    -        return relatedAssets_ == null ?
    -            com.google.cloud.asset.v1.RelatedAssets.getDefaultInstance() : relatedAssets_;
    +        return relatedAssets_ == null
    +            ? com.google.cloud.asset.v1.RelatedAssets.getDefaultInstance()
    +            : relatedAssets_;
           }
         }
         /**
    +     *
    +     *
          * 
          * DEPRECATED. This field only presents for the purpose of
          * backward-compatibility. The server will never generate responses with this
    @@ -3649,14 +4096,17 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
          * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1.RelatedAssets, com.google.cloud.asset.v1.RelatedAssets.Builder, com.google.cloud.asset.v1.RelatedAssetsOrBuilder> 
    +            com.google.cloud.asset.v1.RelatedAssets,
    +            com.google.cloud.asset.v1.RelatedAssets.Builder,
    +            com.google.cloud.asset.v1.RelatedAssetsOrBuilder>
             getRelatedAssetsFieldBuilder() {
           if (relatedAssetsBuilder_ == null) {
    -        relatedAssetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.RelatedAssets, com.google.cloud.asset.v1.RelatedAssets.Builder, com.google.cloud.asset.v1.RelatedAssetsOrBuilder>(
    -                getRelatedAssets(),
    -                getParentForChildren(),
    -                isClean());
    +        relatedAssetsBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.cloud.asset.v1.RelatedAssets,
    +                com.google.cloud.asset.v1.RelatedAssets.Builder,
    +                com.google.cloud.asset.v1.RelatedAssetsOrBuilder>(
    +                getRelatedAssets(), getParentForChildren(), isClean());
             relatedAssets_ = null;
           }
           return relatedAssetsBuilder_;
    @@ -3664,34 +4114,47 @@ public com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder()
     
         private com.google.cloud.asset.v1.RelatedAsset relatedAsset_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1.RelatedAsset, com.google.cloud.asset.v1.RelatedAsset.Builder, com.google.cloud.asset.v1.RelatedAssetOrBuilder> relatedAssetBuilder_;
    +            com.google.cloud.asset.v1.RelatedAsset,
    +            com.google.cloud.asset.v1.RelatedAsset.Builder,
    +            com.google.cloud.asset.v1.RelatedAssetOrBuilder>
    +        relatedAssetBuilder_;
         /**
    +     *
    +     *
          * 
          * One related asset of the current asset.
          * 
    * * .google.cloud.asset.v1.RelatedAsset related_asset = 15; + * * @return Whether the relatedAsset field is set. */ public boolean hasRelatedAsset() { return relatedAssetBuilder_ != null || relatedAsset_ != null; } /** + * + * *
          * One related asset of the current asset.
          * 
    * * .google.cloud.asset.v1.RelatedAsset related_asset = 15; + * * @return The relatedAsset. */ public com.google.cloud.asset.v1.RelatedAsset getRelatedAsset() { if (relatedAssetBuilder_ == null) { - return relatedAsset_ == null ? com.google.cloud.asset.v1.RelatedAsset.getDefaultInstance() : relatedAsset_; + return relatedAsset_ == null + ? com.google.cloud.asset.v1.RelatedAsset.getDefaultInstance() + : relatedAsset_; } else { return relatedAssetBuilder_.getMessage(); } } /** + * + * *
          * One related asset of the current asset.
          * 
    @@ -3712,14 +4175,15 @@ public Builder setRelatedAsset(com.google.cloud.asset.v1.RelatedAsset value) { return this; } /** + * + * *
          * One related asset of the current asset.
          * 
    * * .google.cloud.asset.v1.RelatedAsset related_asset = 15; */ - public Builder setRelatedAsset( - com.google.cloud.asset.v1.RelatedAsset.Builder builderForValue) { + public Builder setRelatedAsset(com.google.cloud.asset.v1.RelatedAsset.Builder builderForValue) { if (relatedAssetBuilder_ == null) { relatedAsset_ = builderForValue.build(); onChanged(); @@ -3730,6 +4194,8 @@ public Builder setRelatedAsset( return this; } /** + * + * *
          * One related asset of the current asset.
          * 
    @@ -3740,7 +4206,9 @@ public Builder mergeRelatedAsset(com.google.cloud.asset.v1.RelatedAsset value) { if (relatedAssetBuilder_ == null) { if (relatedAsset_ != null) { relatedAsset_ = - com.google.cloud.asset.v1.RelatedAsset.newBuilder(relatedAsset_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.RelatedAsset.newBuilder(relatedAsset_) + .mergeFrom(value) + .buildPartial(); } else { relatedAsset_ = value; } @@ -3752,6 +4220,8 @@ public Builder mergeRelatedAsset(com.google.cloud.asset.v1.RelatedAsset value) { return this; } /** + * + * *
          * One related asset of the current asset.
          * 
    @@ -3770,6 +4240,8 @@ public Builder clearRelatedAsset() { return this; } /** + * + * *
          * One related asset of the current asset.
          * 
    @@ -3777,11 +4249,13 @@ public Builder clearRelatedAsset() { * .google.cloud.asset.v1.RelatedAsset related_asset = 15; */ public com.google.cloud.asset.v1.RelatedAsset.Builder getRelatedAssetBuilder() { - + onChanged(); return getRelatedAssetFieldBuilder().getBuilder(); } /** + * + * *
          * One related asset of the current asset.
          * 
    @@ -3792,11 +4266,14 @@ public com.google.cloud.asset.v1.RelatedAssetOrBuilder getRelatedAssetOrBuilder( if (relatedAssetBuilder_ != null) { return relatedAssetBuilder_.getMessageOrBuilder(); } else { - return relatedAsset_ == null ? - com.google.cloud.asset.v1.RelatedAsset.getDefaultInstance() : relatedAsset_; + return relatedAsset_ == null + ? com.google.cloud.asset.v1.RelatedAsset.getDefaultInstance() + : relatedAsset_; } } /** + * + * *
          * One related asset of the current asset.
          * 
    @@ -3804,27 +4281,34 @@ public com.google.cloud.asset.v1.RelatedAssetOrBuilder getRelatedAssetOrBuilder( * .google.cloud.asset.v1.RelatedAsset related_asset = 15; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.RelatedAsset, com.google.cloud.asset.v1.RelatedAsset.Builder, com.google.cloud.asset.v1.RelatedAssetOrBuilder> + com.google.cloud.asset.v1.RelatedAsset, + com.google.cloud.asset.v1.RelatedAsset.Builder, + com.google.cloud.asset.v1.RelatedAssetOrBuilder> getRelatedAssetFieldBuilder() { if (relatedAssetBuilder_ == null) { - relatedAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.RelatedAsset, com.google.cloud.asset.v1.RelatedAsset.Builder, com.google.cloud.asset.v1.RelatedAssetOrBuilder>( - getRelatedAsset(), - getParentForChildren(), - isClean()); + relatedAssetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.RelatedAsset, + com.google.cloud.asset.v1.RelatedAsset.Builder, + com.google.cloud.asset.v1.RelatedAssetOrBuilder>( + getRelatedAsset(), getParentForChildren(), isClean()); relatedAsset_ = null; } return relatedAssetBuilder_; } - private com.google.protobuf.LazyStringList ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList ancestors_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAncestorsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { ancestors_ = new com.google.protobuf.LazyStringArrayList(ancestors_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3836,13 +4320,15 @@ private void ensureAncestorsIsMutable() {
          * 
    * * repeated string ancestors = 10; + * * @return A list containing the ancestors. */ - public com.google.protobuf.ProtocolStringList - getAncestorsList() { + public com.google.protobuf.ProtocolStringList getAncestorsList() { return ancestors_.getUnmodifiableView(); } /** + * + * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3854,12 +4340,15 @@ private void ensureAncestorsIsMutable() {
          * 
    * * repeated string ancestors = 10; + * * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); } /** + * + * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3871,6 +4360,7 @@ public int getAncestorsCount() {
          * 
    * * repeated string ancestors = 10; + * * @param index The index of the element to return. * @return The ancestors at the given index. */ @@ -3878,6 +4368,8 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** + * + * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3889,14 +4381,16 @@ public java.lang.String getAncestors(int index) {
          * 
    * * repeated string ancestors = 10; + * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - public com.google.protobuf.ByteString - getAncestorsBytes(int index) { + public com.google.protobuf.ByteString getAncestorsBytes(int index) { return ancestors_.getByteString(index); } /** + * + * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3908,21 +4402,23 @@ public java.lang.String getAncestors(int index) {
          * 
    * * repeated string ancestors = 10; + * * @param index The index to set the value at. * @param value The ancestors to set. * @return This builder for chaining. */ - public Builder setAncestors( - int index, java.lang.String value) { + public Builder setAncestors(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAncestorsIsMutable(); + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); ancestors_.set(index, value); onChanged(); return this; } /** + * + * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3934,20 +4430,22 @@ public Builder setAncestors(
          * 
    * * repeated string ancestors = 10; + * * @param value The ancestors to add. * @return This builder for chaining. */ - public Builder addAncestors( - java.lang.String value) { + public Builder addAncestors(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAncestorsIsMutable(); + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); return this; } /** + * + * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3959,18 +4457,19 @@ public Builder addAncestors(
          * 
    * * repeated string ancestors = 10; + * * @param values The ancestors to add. * @return This builder for chaining. */ - public Builder addAllAncestors( - java.lang.Iterable values) { + public Builder addAllAncestors(java.lang.Iterable values) { ensureAncestorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ancestors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ancestors_); onChanged(); return this; } /** + * + * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3982,6 +4481,7 @@ public Builder addAllAncestors(
          * 
    * * repeated string ancestors = 10; + * * @return This builder for chaining. */ public Builder clearAncestors() { @@ -3991,6 +4491,8 @@ public Builder clearAncestors() { return this; } /** + * + * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -4002,23 +4504,23 @@ public Builder clearAncestors() {
          * 
    * * repeated string ancestors = 10; + * * @param value The bytes of the ancestors to add. * @return This builder for chaining. */ - public Builder addAncestorsBytes( - com.google.protobuf.ByteString value) { + public Builder addAncestorsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4028,12 +4530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.Asset) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.Asset) private static final com.google.cloud.asset.v1.Asset DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.Asset(); } @@ -4042,27 +4544,27 @@ public static com.google.cloud.asset.v1.Asset getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Asset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Asset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4077,6 +4579,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.Asset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetOrBuilder.java similarity index 89% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetOrBuilder.java index 24d40ac71917..ece56a5d149b 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; -public interface AssetOrBuilder extends +public interface AssetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.Asset) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The last update timestamp of an asset. update_time is updated when
        * create/update/delete operation is performed.
        * 
    * * .google.protobuf.Timestamp update_time = 11; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
        * The last update timestamp of an asset. update_time is updated when
        * create/update/delete operation is performed.
        * 
    * * .google.protobuf.Timestamp update_time = 11; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
        * The last update timestamp of an asset. update_time is updated when
        * create/update/delete operation is performed.
    @@ -38,6 +62,8 @@ public interface AssetOrBuilder extends
       com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -47,10 +73,13 @@ public interface AssetOrBuilder extends
        * 
    * * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -60,12 +89,14 @@ public interface AssetOrBuilder extends
        * 
    * * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -74,10 +105,13 @@ public interface AssetOrBuilder extends
        * 
    * * string asset_type = 2; + * * @return The assetType. */ java.lang.String getAssetType(); /** + * + * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -86,30 +120,38 @@ public interface AssetOrBuilder extends
        * 
    * * string asset_type = 2; + * * @return The bytes for assetType. */ - com.google.protobuf.ByteString - getAssetTypeBytes(); + com.google.protobuf.ByteString getAssetTypeBytes(); /** + * + * *
        * A representation of the resource.
        * 
    * * .google.cloud.asset.v1.Resource resource = 3; + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
        * A representation of the resource.
        * 
    * * .google.cloud.asset.v1.Resource resource = 3; + * * @return The resource. */ com.google.cloud.asset.v1.Resource getResource(); /** + * + * *
        * A representation of the resource.
        * 
    @@ -119,6 +161,8 @@ public interface AssetOrBuilder extends com.google.cloud.asset.v1.ResourceOrBuilder getResourceOrBuilder(); /** + * + * *
        * A representation of the Cloud IAM policy set on a Google Cloud resource.
        * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -132,10 +176,13 @@ public interface AssetOrBuilder extends
        * 
    * * .google.iam.v1.Policy iam_policy = 4; + * * @return Whether the iamPolicy field is set. */ boolean hasIamPolicy(); /** + * + * *
        * A representation of the Cloud IAM policy set on a Google Cloud resource.
        * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -149,10 +196,13 @@ public interface AssetOrBuilder extends
        * 
    * * .google.iam.v1.Policy iam_policy = 4; + * * @return The iamPolicy. */ com.google.iam.v1.Policy getIamPolicy(); /** + * + * *
        * A representation of the Cloud IAM policy set on a Google Cloud resource.
        * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -170,6 +220,8 @@ public interface AssetOrBuilder extends
       com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -179,9 +231,10 @@ public interface AssetOrBuilder extends
        *
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
    -  java.util.List 
    -      getOrgPolicyList();
    +  java.util.List getOrgPolicyList();
       /**
    +   *
    +   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -193,6 +246,8 @@ public interface AssetOrBuilder extends
        */
       com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index);
       /**
    +   *
    +   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -204,6 +259,8 @@ public interface AssetOrBuilder extends
        */
       int getOrgPolicyCount();
       /**
    +   *
    +   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -213,9 +270,11 @@ public interface AssetOrBuilder extends
        *
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
    -  java.util.List 
    +  java.util.List
           getOrgPolicyOrBuilderList();
       /**
    +   *
    +   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -225,30 +284,37 @@ public interface AssetOrBuilder extends
        *
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
    -  com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
    -      int index);
    +  com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int index);
     
       /**
    +   *
    +   *
        * 
        * Please also refer to the [access policy user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; + * * @return Whether the accessPolicy field is set. */ boolean hasAccessPolicy(); /** + * + * *
        * Please also refer to the [access policy user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; + * * @return The accessPolicy. */ com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy(); /** + * + * *
        * Please also refer to the [access policy user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -259,26 +325,34 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
       com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAccessPolicyOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * Please also refer to the [access level user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; + * * @return Whether the accessLevel field is set. */ boolean hasAccessLevel(); /** + * + * *
        * Please also refer to the [access level user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; + * * @return The accessLevel. */ com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel(); /** + * + * *
        * Please also refer to the [access level user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -289,26 +363,34 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
       com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAccessLevelOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * Please also refer to the [service perimeter user
        * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
        * 
    * * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + * * @return Whether the servicePerimeter field is set. */ boolean hasServicePerimeter(); /** + * + * *
        * Please also refer to the [service perimeter user
        * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
        * 
    * * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + * * @return The servicePerimeter. */ com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter(); /** + * + * *
        * Please also refer to the [service perimeter user
        * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -316,9 +398,12 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
        *
        * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
        */
    -  com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder getServicePerimeterOrBuilder();
    +  com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder
    +      getServicePerimeterOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * A representation of runtime OS Inventory information. See [this
        * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -326,10 +411,13 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
        * 
    * * .google.cloud.osconfig.v1.Inventory os_inventory = 12; + * * @return Whether the osInventory field is set. */ boolean hasOsInventory(); /** + * + * *
        * A representation of runtime OS Inventory information. See [this
        * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -337,10 +425,13 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
        * 
    * * .google.cloud.osconfig.v1.Inventory os_inventory = 12; + * * @return The osInventory. */ com.google.cloud.osconfig.v1.Inventory getOsInventory(); /** + * + * *
        * A representation of runtime OS Inventory information. See [this
        * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
    @@ -352,6 +443,8 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
       com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * DEPRECATED. This field only presents for the purpose of
        * backward-compatibility. The server will never generate responses with this
    @@ -361,12 +454,16 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
        * 
    * * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true]; - * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. - * See google/cloud/asset/v1/assets.proto;l=166 + * + * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. See + * google/cloud/asset/v1/assets.proto;l=166 * @return Whether the relatedAssets field is set. */ - @java.lang.Deprecated boolean hasRelatedAssets(); + @java.lang.Deprecated + boolean hasRelatedAssets(); /** + * + * *
        * DEPRECATED. This field only presents for the purpose of
        * backward-compatibility. The server will never generate responses with this
    @@ -376,12 +473,16 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
        * 
    * * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true]; - * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. - * See google/cloud/asset/v1/assets.proto;l=166 + * + * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. See + * google/cloud/asset/v1/assets.proto;l=166 * @return The relatedAssets. */ - @java.lang.Deprecated com.google.cloud.asset.v1.RelatedAssets getRelatedAssets(); + @java.lang.Deprecated + com.google.cloud.asset.v1.RelatedAssets getRelatedAssets(); /** + * + * *
        * DEPRECATED. This field only presents for the purpose of
        * backward-compatibility. The server will never generate responses with this
    @@ -392,27 +493,36 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
        *
        * .google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];
        */
    -  @java.lang.Deprecated com.google.cloud.asset.v1.RelatedAssetsOrBuilder getRelatedAssetsOrBuilder();
    +  @java.lang.Deprecated
    +  com.google.cloud.asset.v1.RelatedAssetsOrBuilder getRelatedAssetsOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * One related asset of the current asset.
        * 
    * * .google.cloud.asset.v1.RelatedAsset related_asset = 15; + * * @return Whether the relatedAsset field is set. */ boolean hasRelatedAsset(); /** + * + * *
        * One related asset of the current asset.
        * 
    * * .google.cloud.asset.v1.RelatedAsset related_asset = 15; + * * @return The relatedAsset. */ com.google.cloud.asset.v1.RelatedAsset getRelatedAsset(); /** + * + * *
        * One related asset of the current asset.
        * 
    @@ -422,6 +532,8 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder( com.google.cloud.asset.v1.RelatedAssetOrBuilder getRelatedAssetOrBuilder(); /** + * + * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -433,11 +545,13 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
        * 
    * * repeated string ancestors = 10; + * * @return A list containing the ancestors. */ - java.util.List - getAncestorsList(); + java.util.List getAncestorsList(); /** + * + * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -449,10 +563,13 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
        * 
    * * repeated string ancestors = 10; + * * @return The count of ancestors. */ int getAncestorsCount(); /** + * + * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -464,11 +581,14 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
        * 
    * * repeated string ancestors = 10; + * * @param index The index of the element to return. * @return The ancestors at the given index. */ java.lang.String getAncestors(int index); /** + * + * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -480,11 +600,11 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
        * 
    * * repeated string ancestors = 10; + * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - com.google.protobuf.ByteString - getAncestorsBytes(int index); + com.google.protobuf.ByteString getAncestorsBytes(int index); public com.google.cloud.asset.v1.Asset.AccessContextPolicyCase getAccessContextPolicyCase(); } diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java new file mode 100644 index 000000000000..8b4f37133004 --- /dev/null +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java @@ -0,0 +1,620 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/assets.proto + +package com.google.cloud.asset.v1; + +public final class AssetProto { + private AssetProto() {} + + 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_asset_v1_TemporalAsset_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_TemporalAsset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_TimeWindow_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_TimeWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_Asset_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_Asset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_Resource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_Resource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_RelatedAssets_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_RelatedAssets_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_RelationshipAttributes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_RelatedAsset_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_RelatedAsset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ResourceSearchResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ResourceSearchResult_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ResourceSearchResult_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ResourceSearchResult_RelationshipsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ResourceSearchResult_RelationshipsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_VersionedResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_VersionedResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_AttachedResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_AttachedResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_RelatedResources_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_RelatedResources_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_RelatedResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_RelatedResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicySearchResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ConditionEvaluation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\"google/cloud/asset/v1/assets.proto\022\025go" + + "ogle.cloud.asset.v1\032\037google/api/field_be" + + "havior.proto\032\031google/api/resource.proto\032" + + ")google/cloud/orgpolicy/v1/orgpolicy.pro" + + "to\032(google/cloud/osconfig/v1/inventory.p" + + "roto\032\032google/iam/v1/policy.proto\032:google" + + "/identity/accesscontextmanager/v1/access" + + "_level.proto\032;google/identity/accesscont" + + "extmanager/v1/access_policy.proto\032?googl" + + "e/identity/accesscontextmanager/v1/servi" + + "ce_perimeter.proto\032\034google/protobuf/stru" + + "ct.proto\032\037google/protobuf/timestamp.prot" + + "o\032\025google/rpc/code.proto\"\365\002\n\rTemporalAss" + + "et\0221\n\006window\030\001 \001(\0132!.google.cloud.asset." + + "v1.TimeWindow\022\017\n\007deleted\030\002 \001(\010\022+\n\005asset\030" + + "\003 \001(\0132\034.google.cloud.asset.v1.Asset\022O\n\021p" + + "rior_asset_state\030\004 \001(\01624.google.cloud.as" + + "set.v1.TemporalAsset.PriorAssetState\0221\n\013" + + "prior_asset\030\005 \001(\0132\034.google.cloud.asset.v" + + "1.Asset\"o\n\017PriorAssetState\022!\n\035PRIOR_ASSE" + + "T_STATE_UNSPECIFIED\020\000\022\013\n\007PRESENT\020\001\022\013\n\007IN" + + "VALID\020\002\022\022\n\016DOES_NOT_EXIST\020\003\022\013\n\007DELETED\020\004" + + "\"j\n\nTimeWindow\022.\n\nstart_time\030\001 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\022,\n\010end_time\030\002 \001(\013" + + "2\032.google.protobuf.Timestamp\"\363\005\n\005Asset\022/" + + "\n\013update_time\030\013 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022\014\n\004name\030\001 \001(\t\022\022\n\nasset_type\030\002 \001(" + + "\t\0221\n\010resource\030\003 \001(\0132\037.google.cloud.asset" + + ".v1.Resource\022)\n\niam_policy\030\004 \001(\0132\025.googl" + + "e.iam.v1.Policy\0225\n\norg_policy\030\006 \003(\0132!.go" + + "ogle.cloud.orgpolicy.v1.Policy\022N\n\raccess" + + "_policy\030\007 \001(\01325.google.identity.accessco" + + "ntextmanager.v1.AccessPolicyH\000\022L\n\014access" + + "_level\030\010 \001(\01324.google.identity.accesscon" + + "textmanager.v1.AccessLevelH\000\022V\n\021service_" + + "perimeter\030\t \001(\01329.google.identity.access" + + "contextmanager.v1.ServicePerimeterH\000\0229\n\014" + + "os_inventory\030\014 \001(\0132#.google.cloud.osconf" + + "ig.v1.Inventory\022@\n\016related_assets\030\r \001(\0132" + + "$.google.cloud.asset.v1.RelatedAssetsB\002\030" + + "\001\022:\n\rrelated_asset\030\017 \001(\0132#.google.cloud." + + "asset.v1.RelatedAsset\022\021\n\tancestors\030\n \003(\t" + + ":\'\352A$\n\037cloudasset.googleapis.com/Asset\022\001" + + "*B\027\n\025access_context_policy\"\262\001\n\010Resource\022" + + "\017\n\007version\030\001 \001(\t\022\036\n\026discovery_document_u" + + "ri\030\002 \001(\t\022\026\n\016discovery_name\030\003 \001(\t\022\024\n\014reso" + + "urce_url\030\004 \001(\t\022\016\n\006parent\030\005 \001(\t\022%\n\004data\030\006" + + " \001(\0132\027.google.protobuf.Struct\022\020\n\010locatio" + + "n\030\010 \001(\t\"\230\001\n\rRelatedAssets\022N\n\027relationshi" + + "p_attributes\030\001 \001(\0132-.google.cloud.asset." + + "v1.RelationshipAttributes\0223\n\006assets\030\002 \003(" + + "\0132#.google.cloud.asset.v1.RelatedAsset:\002" + + "\030\001\"v\n\026RelationshipAttributes\022\014\n\004type\030\004 \001" + + "(\t\022\034\n\024source_resource_type\030\001 \001(\t\022\034\n\024targ" + + "et_resource_type\030\002 \001(\t\022\016\n\006action\030\003 \001(\t:\002" + + "\030\001\"\205\001\n\014RelatedAsset\0223\n\005asset\030\001 \001(\tB$\372A!\n" + + "\037cloudasset.googleapis.com/Asset\022\022\n\nasse" + + "t_type\030\002 \001(\t\022\021\n\tancestors\030\003 \003(\t\022\031\n\021relat" + + "ionship_type\030\004 \001(\t\"\310\007\n\024ResourceSearchRes" + + "ult\022\014\n\004name\030\001 \001(\t\022\022\n\nasset_type\030\002 \001(\t\022\017\n" + + "\007project\030\003 \001(\t\022\017\n\007folders\030\021 \003(\t\022\024\n\014organ" + + "ization\030\022 \001(\t\022\024\n\014display_name\030\004 \001(\t\022\023\n\013d" + + "escription\030\005 \001(\t\022\020\n\010location\030\006 \001(\t\022G\n\006la" + + "bels\030\007 \003(\01327.google.cloud.asset.v1.Resou" + + "rceSearchResult.LabelsEntry\022\024\n\014network_t" + + "ags\030\010 \003(\t\022\023\n\007kms_key\030\n \001(\tB\002\030\001\022\020\n\010kms_ke" + + "ys\030\034 \003(\t\022/\n\013create_time\030\013 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022/\n\013update_time\030\014 \001(\0132\032" + + ".google.protobuf.Timestamp\022\r\n\005state\030\r \001(" + + "\t\0226\n\025additional_attributes\030\t \001(\0132\027.googl" + + "e.protobuf.Struct\022!\n\031parent_full_resourc" + + "e_name\030\023 \001(\t\022E\n\023versioned_resources\030\020 \003(" + + "\0132(.google.cloud.asset.v1.VersionedResou" + + "rce\022C\n\022attached_resources\030\024 \003(\0132\'.google" + + ".cloud.asset.v1.AttachedResource\022U\n\rrela" + + "tionships\030\025 \003(\0132>.google.cloud.asset.v1." + + "ResourceSearchResult.RelationshipsEntry\022" + + "\020\n\010tag_keys\030\027 \003(\t\022\022\n\ntag_values\030\031 \003(\t\022\025\n" + + "\rtag_value_ids\030\032 \003(\t\022\031\n\021parent_asset_typ" + + "e\030g \001(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\032]\n\022RelationshipsEntry\022\013\n\003" + + "key\030\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.google.cloud." + + "asset.v1.RelatedResources:\0028\001\"O\n\021Version" + + "edResource\022\017\n\007version\030\001 \001(\t\022)\n\010resource\030" + + "\002 \001(\0132\027.google.protobuf.Struct\"m\n\020Attach" + + "edResource\022\022\n\nasset_type\030\001 \001(\t\022E\n\023versio" + + "ned_resources\030\003 \003(\0132(.google.cloud.asset" + + ".v1.VersionedResource\"U\n\020RelatedResource" + + "s\022A\n\021related_resources\030\001 \003(\0132&.google.cl" + + "oud.asset.v1.RelatedResource\"A\n\017RelatedR" + + "esource\022\022\n\nasset_type\030\001 \001(\t\022\032\n\022full_reso" + + "urce_name\030\002 \001(\t\"\217\004\n\025IamPolicySearchResul" + + "t\022\020\n\010resource\030\001 \001(\t\022\022\n\nasset_type\030\005 \001(\t\022" + + "\017\n\007project\030\002 \001(\t\022\017\n\007folders\030\006 \003(\t\022\024\n\014org" + + "anization\030\007 \001(\t\022%\n\006policy\030\003 \001(\0132\025.google" + + ".iam.v1.Policy\022M\n\013explanation\030\004 \001(\01328.go" + + "ogle.cloud.asset.v1.IamPolicySearchResul" + + "t.Explanation\032\241\002\n\013Explanation\022m\n\023matched" + + "_permissions\030\001 \003(\0132P.google.cloud.asset." + + "v1.IamPolicySearchResult.Explanation.Mat" + + "chedPermissionsEntry\032\"\n\013Permissions\022\023\n\013p" + + "ermissions\030\001 \003(\t\032\177\n\027MatchedPermissionsEn" + + "try\022\013\n\003key\030\001 \001(\t\022S\n\005value\030\002 \001(\0132D.google" + + ".cloud.asset.v1.IamPolicySearchResult.Ex" + + "planation.Permissions:\0028\001\"G\n\026IamPolicyAn" + + "alysisState\022\036\n\004code\030\001 \001(\0162\020.google.rpc.C" + + "ode\022\r\n\005cause\030\002 \001(\t\"\306\001\n\023ConditionEvaluati" + + "on\022T\n\020evaluation_value\030\001 \001(\0162:.google.cl" + + "oud.asset.v1.ConditionEvaluation.Evaluat" + + "ionValue\"Y\n\017EvaluationValue\022 \n\034EVALUATIO" + + "N_VALUE_UNSPECIFIED\020\000\022\010\n\004TRUE\020\001\022\t\n\005FALSE" + + "\020\002\022\017\n\013CONDITIONAL\020\003\"\253\t\n\027IamPolicyAnalysi" + + "sResult\022#\n\033attached_resource_full_name\030\001" + + " \001(\t\022+\n\013iam_binding\030\002 \001(\0132\026.google.iam.v" + + "1.Binding\022^\n\024access_control_lists\030\003 \003(\0132" + + "@.google.cloud.asset.v1.IamPolicyAnalysi" + + "sResult.AccessControlList\022R\n\ridentity_li" + + "st\030\004 \001(\0132;.google.cloud.asset.v1.IamPoli" + + "cyAnalysisResult.IdentityList\022\026\n\016fully_e" + + "xplored\030\005 \001(\010\032m\n\010Resource\022\032\n\022full_resour" + + "ce_name\030\001 \001(\t\022E\n\016analysis_state\030\002 \001(\0132-." + + "google.cloud.asset.v1.IamPolicyAnalysisS" + + "tate\032\205\001\n\006Access\022\016\n\004role\030\001 \001(\tH\000\022\024\n\npermi" + + "ssion\030\002 \001(\tH\000\022E\n\016analysis_state\030\003 \001(\0132-." + + "google.cloud.asset.v1.IamPolicyAnalysisS" + + "tateB\016\n\014oneof_access\032_\n\010Identity\022\014\n\004name" + + "\030\001 \001(\t\022E\n\016analysis_state\030\002 \001(\0132-.google." + + "cloud.asset.v1.IamPolicyAnalysisState\0320\n" + + "\004Edge\022\023\n\013source_node\030\001 \001(\t\022\023\n\013target_nod" + + "e\030\002 \001(\t\032\277\002\n\021AccessControlList\022J\n\tresourc" + + "es\030\001 \003(\01327.google.cloud.asset.v1.IamPoli" + + "cyAnalysisResult.Resource\022G\n\010accesses\030\002 " + + "\003(\01325.google.cloud.asset.v1.IamPolicyAna" + + "lysisResult.Access\022K\n\016resource_edges\030\003 \003" + + "(\01323.google.cloud.asset.v1.IamPolicyAnal" + + "ysisResult.Edge\022H\n\024condition_evaluation\030" + + "\004 \001(\0132*.google.cloud.asset.v1.ConditionE" + + "valuation\032\245\001\n\014IdentityList\022K\n\nidentities" + + "\030\001 \003(\01327.google.cloud.asset.v1.IamPolicy" + + "AnalysisResult.Identity\022H\n\013group_edges\030\002" + + " \003(\01323.google.cloud.asset.v1.IamPolicyAn" + + "alysisResult.EdgeB\230\001\n\031com.google.cloud.a" + + "sset.v1B\nAssetProtoP\001Z:google.golang.org" + + "/genproto/googleapis/cloud/asset/v1;asse" + + "t\370\001\001\252\002\025Google.Cloud.Asset.V1\312\002\025Google\\Cl" + + "oud\\Asset\\V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(), + com.google.cloud.osconfig.v1.Inventories.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(), + com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(), + com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.CodeProto.getDescriptor(), + }); + internal_static_google_cloud_asset_v1_TemporalAsset_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_asset_v1_TemporalAsset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_TemporalAsset_descriptor, + new java.lang.String[] { + "Window", "Deleted", "Asset", "PriorAssetState", "PriorAsset", + }); + internal_static_google_cloud_asset_v1_TimeWindow_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_asset_v1_TimeWindow_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_TimeWindow_descriptor, + new java.lang.String[] { + "StartTime", "EndTime", + }); + internal_static_google_cloud_asset_v1_Asset_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_asset_v1_Asset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_Asset_descriptor, + new java.lang.String[] { + "UpdateTime", + "Name", + "AssetType", + "Resource", + "IamPolicy", + "OrgPolicy", + "AccessPolicy", + "AccessLevel", + "ServicePerimeter", + "OsInventory", + "RelatedAssets", + "RelatedAsset", + "Ancestors", + "AccessContextPolicy", + }); + internal_static_google_cloud_asset_v1_Resource_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_asset_v1_Resource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_Resource_descriptor, + new java.lang.String[] { + "Version", + "DiscoveryDocumentUri", + "DiscoveryName", + "ResourceUrl", + "Parent", + "Data", + "Location", + }); + internal_static_google_cloud_asset_v1_RelatedAssets_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_asset_v1_RelatedAssets_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_RelatedAssets_descriptor, + new java.lang.String[] { + "RelationshipAttributes", "Assets", + }); + internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_asset_v1_RelationshipAttributes_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor, + new java.lang.String[] { + "Type", "SourceResourceType", "TargetResourceType", "Action", + }); + internal_static_google_cloud_asset_v1_RelatedAsset_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_asset_v1_RelatedAsset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_RelatedAsset_descriptor, + new java.lang.String[] { + "Asset", "AssetType", "Ancestors", "RelationshipType", + }); + internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_asset_v1_ResourceSearchResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor, + new java.lang.String[] { + "Name", + "AssetType", + "Project", + "Folders", + "Organization", + "DisplayName", + "Description", + "Location", + "Labels", + "NetworkTags", + "KmsKey", + "KmsKeys", + "CreateTime", + "UpdateTime", + "State", + "AdditionalAttributes", + "ParentFullResourceName", + "VersionedResources", + "AttachedResources", + "Relationships", + "TagKeys", + "TagValues", + "TagValueIds", + "ParentAssetType", + }); + internal_static_google_cloud_asset_v1_ResourceSearchResult_LabelsEntry_descriptor = + internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_asset_v1_ResourceSearchResult_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ResourceSearchResult_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_asset_v1_ResourceSearchResult_RelationshipsEntry_descriptor = + internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_asset_v1_ResourceSearchResult_RelationshipsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ResourceSearchResult_RelationshipsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_asset_v1_VersionedResource_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_asset_v1_VersionedResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_VersionedResource_descriptor, + new java.lang.String[] { + "Version", "Resource", + }); + internal_static_google_cloud_asset_v1_AttachedResource_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_asset_v1_AttachedResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_AttachedResource_descriptor, + new java.lang.String[] { + "AssetType", "VersionedResources", + }); + internal_static_google_cloud_asset_v1_RelatedResources_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_asset_v1_RelatedResources_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_RelatedResources_descriptor, + new java.lang.String[] { + "RelatedResources", + }); + internal_static_google_cloud_asset_v1_RelatedResource_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_asset_v1_RelatedResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_RelatedResource_descriptor, + new java.lang.String[] { + "AssetType", "FullResourceName", + }); + internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_asset_v1_IamPolicySearchResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor, + new java.lang.String[] { + "Resource", + "AssetType", + "Project", + "Folders", + "Organization", + "Policy", + "Explanation", + }); + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor = + internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor, + new java.lang.String[] { + "MatchedPermissions", + }); + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor = + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor, + new java.lang.String[] { + "Permissions", + }); + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor = + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor, + new java.lang.String[] { + "Code", "Cause", + }); + internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_asset_v1_ConditionEvaluation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor, + new java.lang.String[] { + "EvaluationValue", + }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor, + new java.lang.String[] { + "AttachedResourceFullName", + "IamBinding", + "AccessControlLists", + "IdentityList", + "FullyExplored", + }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor, + new java.lang.String[] { + "FullResourceName", "AnalysisState", + }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor, + new java.lang.String[] { + "Role", "Permission", "AnalysisState", "OneofAccess", + }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor, + new java.lang.String[] { + "Name", "AnalysisState", + }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor, + new java.lang.String[] { + "SourceNode", "TargetNode", + }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor + .getNestedTypes() + .get(4); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor, + new java.lang.String[] { + "Resources", "Accesses", "ResourceEdges", "ConditionEvaluation", + }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor + .getNestedTypes() + .get(5); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor, + new java.lang.String[] { + "Identities", "GroupEdges", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(); + com.google.cloud.osconfig.v1.Inventories.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(); + com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(); + com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.CodeProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java new file mode 100644 index 000000000000..29eee5e6e28f --- /dev/null +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java @@ -0,0 +1,1292 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public final class AssetServiceProto { + private AssetServiceProto() {} + + 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_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ExportAssetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ExportAssetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ListAssetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ListAssetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ListAssetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ListAssetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_CreateFeedRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_GetFeedRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ListFeedsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ListFeedsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_UpdateFeedRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_DeleteFeedRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_OutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_OutputResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_OutputResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_GcsOutputResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_GcsDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_BigQueryDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_PartitionSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_PartitionSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_PubsubDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_PubsubDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_FeedOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_Feed_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_Feed_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_SavedQuery_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_SavedQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_SavedQuery_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_SavedQuery_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_GetSavedQueryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_GetSavedQueryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_MoveAnalysis_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_MoveAnalysis_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_MoveAnalysisResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_MoveAnalysisResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_MoveImpact_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_MoveImpact_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_QueryAssetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_QueryAssetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_QueryAssetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_QueryAssetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_QueryResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_QueryResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_TableSchema_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_TableSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_TableFieldSchema_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_TableFieldSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/asset/v1/asset_service.pr" + + "oto\022\025google.cloud.asset.v1\032\034google/api/a" + + "nnotations.proto\032\027google/api/client.prot" + + "o\032\037google/api/field_behavior.proto\032\031goog" + + "le/api/resource.proto\032\"google/cloud/asse" + + "t/v1/assets.proto\032\032google/iam/v1/policy." + + "proto\032#google/longrunning/operations.pro" + + "to\032\036google/protobuf/duration.proto\032\033goog" + + "le/protobuf/empty.proto\032 google/protobuf" + + "/field_mask.proto\032\034google/protobuf/struc" + + "t.proto\032\037google/protobuf/timestamp.proto" + + "\032\027google/rpc/status.proto\032\026google/type/e" + + "xpr.proto\"[\n#AnalyzeIamPolicyLongrunning" + + "Metadata\0224\n\013create_time\030\001 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\"\251\002\n\023ExportAssetsR" + + "equest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037cloudass" + + "et.googleapis.com/Asset\022-\n\tread_time\030\002 \001" + + "(\0132\032.google.protobuf.Timestamp\022\023\n\013asset_" + + "types\030\003 \003(\t\0228\n\014content_type\030\004 \001(\0162\".goog" + + "le.cloud.asset.v1.ContentType\022?\n\routput_" + + "config\030\005 \001(\0132#.google.cloud.asset.v1.Out" + + "putConfigB\003\340A\002\022\032\n\022relationship_types\030\006 \003" + + "(\t\"\275\001\n\024ExportAssetsResponse\022-\n\tread_time" + + "\030\001 \001(\0132\032.google.protobuf.Timestamp\022:\n\rou" + + "tput_config\030\002 \001(\0132#.google.cloud.asset.v" + + "1.OutputConfig\022:\n\routput_result\030\003 \001(\0132#." + + "google.cloud.asset.v1.OutputResult\"\215\002\n\021L" + + "istAssetsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!" + + "\022\037cloudasset.googleapis.com/Asset\022-\n\trea" + + "d_time\030\002 \001(\0132\032.google.protobuf.Timestamp" + + "\022\023\n\013asset_types\030\003 \003(\t\0228\n\014content_type\030\004 " + + "\001(\0162\".google.cloud.asset.v1.ContentType\022" + + "\021\n\tpage_size\030\005 \001(\005\022\022\n\npage_token\030\006 \001(\t\022\032" + + "\n\022relationship_types\030\007 \003(\t\"\212\001\n\022ListAsset" + + "sResponse\022-\n\tread_time\030\001 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022,\n\006assets\030\002 \003(\0132\034.googl" + + "e.cloud.asset.v1.Asset\022\027\n\017next_page_toke" + + "n\030\003 \001(\t\"\216\002\n\034BatchGetAssetsHistoryRequest" + + "\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037cloudasset.goo" + + "gleapis.com/Asset\022\023\n\013asset_names\030\002 \003(\t\022=" + + "\n\014content_type\030\003 \001(\0162\".google.cloud.asse" + + "t.v1.ContentTypeB\003\340A\001\022@\n\020read_time_windo" + + "w\030\004 \001(\0132!.google.cloud.asset.v1.TimeWind" + + "owB\003\340A\001\022\037\n\022relationship_types\030\005 \003(\tB\003\340A\001" + + "\"U\n\035BatchGetAssetsHistoryResponse\0224\n\006ass" + + "ets\030\001 \003(\0132$.google.cloud.asset.v1.Tempor" + + "alAsset\"n\n\021CreateFeedRequest\022\023\n\006parent\030\001" + + " \001(\tB\003\340A\002\022\024\n\007feed_id\030\002 \001(\tB\003\340A\002\022.\n\004feed\030" + + "\003 \001(\0132\033.google.cloud.asset.v1.FeedB\003\340A\002\"" + + "F\n\016GetFeedRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036cloudasset.googleapis.com/Feed\"\'\n\020ListF" + + "eedsRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\"?\n\021List" + + "FeedsResponse\022*\n\005feeds\030\001 \003(\0132\033.google.cl" + + "oud.asset.v1.Feed\"y\n\021UpdateFeedRequest\022." + + "\n\004feed\030\001 \001(\0132\033.google.cloud.asset.v1.Fee" + + "dB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.pro" + + "tobuf.FieldMaskB\003\340A\002\"I\n\021DeleteFeedReques" + + "t\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036cloudasset.goog" + + "leapis.com/Feed\"\253\001\n\014OutputConfig\022@\n\017gcs_" + + "destination\030\001 \001(\0132%.google.cloud.asset.v" + + "1.GcsDestinationH\000\022J\n\024bigquery_destinati" + + "on\030\002 \001(\0132*.google.cloud.asset.v1.BigQuer" + + "yDestinationH\000B\r\n\013destination\"V\n\014OutputR" + + "esult\022<\n\ngcs_result\030\001 \001(\0132&.google.cloud" + + ".asset.v1.GcsOutputResultH\000B\010\n\006result\"\037\n" + + "\017GcsOutputResult\022\014\n\004uris\030\001 \003(\t\"C\n\016GcsDes" + + "tination\022\r\n\003uri\030\001 \001(\tH\000\022\024\n\nuri_prefix\030\002 " + + "\001(\tH\000B\014\n\nobject_uri\"\264\001\n\023BigQueryDestinat" + + "ion\022\024\n\007dataset\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\t" + + "B\003\340A\002\022\r\n\005force\030\003 \001(\010\022<\n\016partition_spec\030\004" + + " \001(\0132$.google.cloud.asset.v1.PartitionSp" + + "ec\022&\n\036separate_tables_per_asset_type\030\005 \001" + + "(\010\"\251\001\n\rPartitionSpec\022H\n\rpartition_key\030\001 " + + "\001(\01621.google.cloud.asset.v1.PartitionSpe" + + "c.PartitionKey\"N\n\014PartitionKey\022\035\n\031PARTIT" + + "ION_KEY_UNSPECIFIED\020\000\022\r\n\tREAD_TIME\020\001\022\020\n\014" + + "REQUEST_TIME\020\002\"\"\n\021PubsubDestination\022\r\n\005t" + + "opic\030\001 \001(\t\"i\n\020FeedOutputConfig\022F\n\022pubsub" + + "_destination\030\001 \001(\0132(.google.cloud.asset." + + "v1.PubsubDestinationH\000B\r\n\013destination\"\235\003" + + "\n\004Feed\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\013asset_names" + + "\030\002 \003(\t\022\023\n\013asset_types\030\003 \003(\t\0228\n\014content_t" + + "ype\030\004 \001(\0162\".google.cloud.asset.v1.Conten" + + "tType\022H\n\022feed_output_config\030\005 \001(\0132\'.goog" + + "le.cloud.asset.v1.FeedOutputConfigB\003\340A\002\022" + + "$\n\tcondition\030\006 \001(\0132\021.google.type.Expr\022\032\n" + + "\022relationship_types\030\007 \003(\t:\221\001\352A\215\001\n\036clouda" + + "sset.googleapis.com/Feed\022\037projects/{proj" + + "ect}/feeds/{feed}\022\035folders/{folder}/feed" + + "s/{feed}\022)organizations/{organization}/f" + + "eeds/{feed} \001\"\331\001\n\031SearchAllResourcesRequ" + + "est\022\022\n\005scope\030\001 \001(\tB\003\340A\002\022\022\n\005query\030\002 \001(\tB\003" + + "\340A\001\022\030\n\013asset_types\030\003 \003(\tB\003\340A\001\022\026\n\tpage_si" + + "ze\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005 \001(\tB\003\340A\001\022\025" + + "\n\010order_by\030\006 \001(\tB\003\340A\001\0222\n\tread_mask\030\010 \001(\013" + + "2\032.google.protobuf.FieldMaskB\003\340A\001\"s\n\032Sea" + + "rchAllResourcesResponse\022<\n\007results\030\001 \003(\013" + + "2+.google.cloud.asset.v1.ResourceSearchR" + + "esult\022\027\n\017next_page_token\030\002 \001(\t\"\247\001\n\033Searc" + + "hAllIamPoliciesRequest\022\022\n\005scope\030\001 \001(\tB\003\340" + + "A\002\022\022\n\005query\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(" + + "\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\022\030\n\013asset" + + "_types\030\005 \003(\tB\003\340A\001\022\025\n\010order_by\030\007 \001(\tB\003\340A\001" + + "\"v\n\034SearchAllIamPoliciesResponse\022=\n\007resu" + + "lts\030\001 \003(\0132,.google.cloud.asset.v1.IamPol" + + "icySearchResult\022\027\n\017next_page_token\030\002 \001(\t" + + "\"\306\007\n\026IamPolicyAnalysisQuery\022\022\n\005scope\030\001 \001" + + "(\tB\003\340A\002\022^\n\021resource_selector\030\002 \001(\0132>.goo" + + "gle.cloud.asset.v1.IamPolicyAnalysisQuer" + + "y.ResourceSelectorB\003\340A\001\022^\n\021identity_sele" + + "ctor\030\003 \001(\0132>.google.cloud.asset.v1.IamPo" + + "licyAnalysisQuery.IdentitySelectorB\003\340A\001\022" + + "Z\n\017access_selector\030\004 \001(\0132<.google.cloud." + + "asset.v1.IamPolicyAnalysisQuery.AccessSe" + + "lectorB\003\340A\001\022K\n\007options\030\005 \001(\01325.google.cl" + + "oud.asset.v1.IamPolicyAnalysisQuery.Opti" + + "onsB\003\340A\001\022^\n\021condition_context\030\006 \001(\0132>.go" + + "ogle.cloud.asset.v1.IamPolicyAnalysisQue" + + "ry.ConditionContextB\003\340A\001\0323\n\020ResourceSele" + + "ctor\022\037\n\022full_resource_name\030\001 \001(\tB\003\340A\002\032)\n" + + "\020IdentitySelector\022\025\n\010identity\030\001 \001(\tB\003\340A\002" + + "\032>\n\016AccessSelector\022\022\n\005roles\030\001 \003(\tB\003\340A\001\022\030" + + "\n\013permissions\030\002 \003(\tB\003\340A\001\032\330\001\n\007Options\022\032\n\r" + + "expand_groups\030\001 \001(\010B\003\340A\001\022\031\n\014expand_roles" + + "\030\002 \001(\010B\003\340A\001\022\035\n\020expand_resources\030\003 \001(\010B\003\340" + + "A\001\022\"\n\025output_resource_edges\030\004 \001(\010B\003\340A\001\022\037" + + "\n\022output_group_edges\030\005 \001(\010B\003\340A\001\0222\n%analy" + + "ze_service_account_impersonation\030\006 \001(\010B\003" + + "\340A\001\032T\n\020ConditionContext\0221\n\013access_time\030\001" + + " \001(\0132\032.google.protobuf.TimestampH\000B\r\n\013Ti" + + "meContext\"\303\001\n\027AnalyzeIamPolicyRequest\022J\n" + + "\016analysis_query\030\001 \001(\0132-.google.cloud.ass" + + "et.v1.IamPolicyAnalysisQueryB\003\340A\002\022!\n\024sav" + + "ed_analysis_query\030\003 \001(\tB\003\340A\001\0229\n\021executio" + + "n_timeout\030\002 \001(\0132\031.google.protobuf.Durati" + + "onB\003\340A\001\"\212\004\n\030AnalyzeIamPolicyResponse\022X\n\r" + + "main_analysis\030\001 \001(\0132A.google.cloud.asset" + + ".v1.AnalyzeIamPolicyResponse.IamPolicyAn" + + "alysis\022q\n&service_account_impersonation_" + + "analysis\030\002 \003(\0132A.google.cloud.asset.v1.A" + + "nalyzeIamPolicyResponse.IamPolicyAnalysi" + + "s\022\026\n\016fully_explored\030\003 \001(\010\032\210\002\n\021IamPolicyA" + + "nalysis\022E\n\016analysis_query\030\001 \001(\0132-.google" + + ".cloud.asset.v1.IamPolicyAnalysisQuery\022H" + + "\n\020analysis_results\030\002 \003(\0132..google.cloud." + + "asset.v1.IamPolicyAnalysisResult\022\026\n\016full" + + "y_explored\030\003 \001(\010\022J\n\023non_critical_errors\030" + + "\005 \003(\0132-.google.cloud.asset.v1.IamPolicyA" + + "nalysisState\"\264\004\n\035IamPolicyAnalysisOutput" + + "Config\022^\n\017gcs_destination\030\001 \001(\0132C.google" + + ".cloud.asset.v1.IamPolicyAnalysisOutputC" + + "onfig.GcsDestinationH\000\022h\n\024bigquery_desti" + + "nation\030\002 \001(\0132H.google.cloud.asset.v1.Iam" + + "PolicyAnalysisOutputConfig.BigQueryDesti" + + "nationH\000\032\"\n\016GcsDestination\022\020\n\003uri\030\001 \001(\tB" + + "\003\340A\002\032\225\002\n\023BigQueryDestination\022\024\n\007dataset\030" + + "\001 \001(\tB\003\340A\002\022\031\n\014table_prefix\030\002 \001(\tB\003\340A\002\022l\n" + + "\rpartition_key\030\003 \001(\0162U.google.cloud.asse" + + "t.v1.IamPolicyAnalysisOutputConfig.BigQu" + + "eryDestination.PartitionKey\022\036\n\021write_dis" + + "position\030\004 \001(\tB\003\340A\001\"?\n\014PartitionKey\022\035\n\031P" + + "ARTITION_KEY_UNSPECIFIED\020\000\022\020\n\014REQUEST_TI" + + "ME\020\001B\r\n\013destination\"\345\001\n\"AnalyzeIamPolicy" + + "LongrunningRequest\022J\n\016analysis_query\030\001 \001" + + "(\0132-.google.cloud.asset.v1.IamPolicyAnal" + + "ysisQueryB\003\340A\002\022!\n\024saved_analysis_query\030\003" + + " \001(\tB\003\340A\001\022P\n\routput_config\030\002 \001(\01324.googl" + + "e.cloud.asset.v1.IamPolicyAnalysisOutput" + + "ConfigB\003\340A\002\"%\n#AnalyzeIamPolicyLongrunni" + + "ngResponse\"\267\005\n\nSavedQuery\022\014\n\004name\030\001 \001(\t\022" + + "\023\n\013description\030\002 \001(\t\0224\n\013create_time\030\003 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022\024\n\007cr" + + "eator\030\004 \001(\tB\003\340A\003\0229\n\020last_update_time\030\005 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022\031\n\014l" + + "ast_updater\030\006 \001(\tB\003\340A\003\022=\n\006labels\030\007 \003(\0132-" + + ".google.cloud.asset.v1.SavedQuery.Labels" + + "Entry\022?\n\007content\030\010 \001(\0132..google.cloud.as" + + "set.v1.SavedQuery.QueryContent\032s\n\014QueryC" + + "ontent\022R\n\031iam_policy_analysis_query\030\001 \001(" + + "\0132-.google.cloud.asset.v1.IamPolicyAnaly" + + "sisQueryH\000B\017\n\rquery_content\032-\n\013LabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\277\001\352A\273" + + "\001\n$cloudasset.googleapis.com/SavedQuery\022" + + "-projects/{project}/savedQueries/{saved_" + + "query}\022+folders/{folder}/savedQueries/{s" + + "aved_query}\0227organizations/{organization" + + "}/savedQueries/{saved_query}\"\261\001\n\027CreateS" + + "avedQueryRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&" + + "\022$cloudasset.googleapis.com/SavedQuery\022;" + + "\n\013saved_query\030\002 \001(\0132!.google.cloud.asset" + + ".v1.SavedQueryB\003\340A\002\022\033\n\016saved_query_id\030\003 " + + "\001(\tB\003\340A\002\"R\n\024GetSavedQueryRequest\022:\n\004name" + + "\030\001 \001(\tB,\340A\002\372A&\n$cloudasset.googleapis.co" + + "m/SavedQuery\"\235\001\n\027ListSavedQueriesRequest" + + "\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$cloudasset.goo" + + "gleapis.com/SavedQuery\022\023\n\006filter\030\004 \001(\tB\003" + + "\340A\001\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_toke" + + "n\030\003 \001(\tB\003\340A\001\"m\n\030ListSavedQueriesResponse" + + "\0228\n\rsaved_queries\030\001 \003(\0132!.google.cloud.a" + + "sset.v1.SavedQuery\022\027\n\017next_page_token\030\002 " + + "\001(\t\"\214\001\n\027UpdateSavedQueryRequest\022;\n\013saved" + + "_query\030\001 \001(\0132!.google.cloud.asset.v1.Sav" + + "edQueryB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.goog" + + "le.protobuf.FieldMaskB\003\340A\002\"U\n\027DeleteSave" + + "dQueryRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$clo" + + "udasset.googleapis.com/SavedQuery\"\326\001\n\022An" + + "alyzeMoveRequest\022\025\n\010resource\030\001 \001(\tB\003\340A\002\022" + + "\037\n\022destination_parent\030\002 \001(\tB\003\340A\002\022D\n\004view" + + "\030\003 \001(\01626.google.cloud.asset.v1.AnalyzeMo" + + "veRequest.AnalysisView\"B\n\014AnalysisView\022\035" + + "\n\031ANALYSIS_VIEW_UNSPECIFIED\020\000\022\010\n\004FULL\020\001\022" + + "\t\n\005BASIC\020\002\"Q\n\023AnalyzeMoveResponse\022:\n\rmov" + + "e_analysis\030\001 \003(\0132#.google.cloud.asset.v1" + + ".MoveAnalysis\"\222\001\n\014MoveAnalysis\022\024\n\014displa" + + "y_name\030\001 \001(\t\022=\n\010analysis\030\002 \001(\0132).google." + + "cloud.asset.v1.MoveAnalysisResultH\000\022#\n\005e" + + "rror\030\003 \001(\0132\022.google.rpc.StatusH\000B\010\n\006resu" + + "lt\"~\n\022MoveAnalysisResult\0223\n\010blockers\030\001 \003" + + "(\0132!.google.cloud.asset.v1.MoveImpact\0223\n" + + "\010warnings\030\002 \003(\0132!.google.cloud.asset.v1." + + "MoveImpact\"\034\n\nMoveImpact\022\016\n\006detail\030\001 \001(\t" + + "\"\327\001\n\027QueryAssetsOutputConfig\022`\n\024bigquery" + + "_destination\030\001 \001(\0132B.google.cloud.asset." + + "v1.QueryAssetsOutputConfig.BigQueryDesti" + + "nation\032Z\n\023BigQueryDestination\022\024\n\007dataset" + + "\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\tB\003\340A\002\022\031\n\021write" + + "_disposition\030\003 \001(\t\"\276\003\n\022QueryAssetsReques" + + "t\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037cloudasset.go" + + "ogleapis.com/Asset\022\030\n\tstatement\030\002 \001(\tB\003\340" + + "A\001H\000\022\034\n\rjob_reference\030\003 \001(\tB\003\340A\001H\000\022\026\n\tpa" + + "ge_size\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005 \001(\tB\003" + + "\340A\001\022/\n\007timeout\030\006 \001(\0132\031.google.protobuf.D" + + "urationB\003\340A\001\022B\n\020read_time_window\030\007 \001(\0132!" + + ".google.cloud.asset.v1.TimeWindowB\003\340A\001H\001" + + "\0224\n\tread_time\030\010 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\001H\001\022J\n\routput_config\030\t \001(\0132.." + + "google.cloud.asset.v1.QueryAssetsOutputC" + + "onfigB\003\340A\001B\007\n\005queryB\006\n\004time\"\360\001\n\023QueryAss" + + "etsResponse\022\025\n\rjob_reference\030\001 \001(\t\022\014\n\004do" + + "ne\030\002 \001(\010\022#\n\005error\030\003 \001(\0132\022.google.rpc.Sta" + + "tusH\000\022:\n\014query_result\030\004 \001(\0132\".google.clo" + + "ud.asset.v1.QueryResultH\000\022G\n\routput_conf" + + "ig\030\005 \001(\0132..google.cloud.asset.v1.QueryAs" + + "setsOutputConfigH\000B\n\n\010response\"\225\001\n\013Query" + + "Result\022%\n\004rows\030\001 \003(\0132\027.google.protobuf.S" + + "truct\0222\n\006schema\030\002 \001(\0132\".google.cloud.ass" + + "et.v1.TableSchema\022\027\n\017next_page_token\030\003 \001" + + "(\t\022\022\n\ntotal_rows\030\004 \001(\003\"F\n\013TableSchema\0227\n" + + "\006fields\030\001 \003(\0132\'.google.cloud.asset.v1.Ta" + + "bleFieldSchema\"v\n\020TableFieldSchema\022\r\n\005fi" + + "eld\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\022\014\n\004mode\030\003 \001(\t\0227\n" + + "\006fields\030\004 \003(\0132\'.google.cloud.asset.v1.Ta" + + "bleFieldSchema\"Y\n#BatchGetEffectiveIamPo" + + "liciesRequest\022\030\n\005scope\030\001 \001(\tB\t\340A\002\372A\003\022\001*\022" + + "\030\n\005names\030\003 \003(\tB\t\340A\002\372A\003\n\001*\"\376\002\n$BatchGetEf" + + "fectiveIamPoliciesResponse\022f\n\016policy_res" + + "ults\030\002 \003(\0132N.google.cloud.asset.v1.Batch" + + "GetEffectiveIamPoliciesResponse.Effectiv" + + "eIamPolicy\032\355\001\n\022EffectiveIamPolicy\022\032\n\022ful" + + "l_resource_name\030\001 \001(\t\022k\n\010policies\030\002 \003(\0132" + + "Y.google.cloud.asset.v1.BatchGetEffectiv" + + "eIamPoliciesResponse.EffectiveIamPolicy." + + "PolicyInfo\032N\n\nPolicyInfo\022\031\n\021attached_res" + + "ource\030\001 \001(\t\022%\n\006policy\030\002 \001(\0132\025.google.iam" + + ".v1.Policy*\220\001\n\013ContentType\022\034\n\030CONTENT_TY" + + "PE_UNSPECIFIED\020\000\022\014\n\010RESOURCE\020\001\022\016\n\nIAM_PO" + + "LICY\020\002\022\016\n\nORG_POLICY\020\004\022\021\n\rACCESS_POLICY\020" + + "\005\022\020\n\014OS_INVENTORY\020\006\022\020\n\014RELATIONSHIP\020\0072\233\033" + + "\n\014AssetService\022\336\001\n\014ExportAssets\022*.google" + + ".cloud.asset.v1.ExportAssetsRequest\032\035.go" + + "ogle.longrunning.Operation\"\202\001\202\323\344\223\002\"\"\035/v1" + + "/{parent=*/*}:exportAssets:\001*\312AW\n*google" + + ".cloud.asset.v1.ExportAssetsResponse\022)go" + + "ogle.cloud.asset.v1.ExportAssetsRequest\022" + + "\213\001\n\nListAssets\022(.google.cloud.asset.v1.L" + + "istAssetsRequest\032).google.cloud.asset.v1" + + ".ListAssetsResponse\"(\202\323\344\223\002\031\022\027/v1/{parent" + + "=*/*}/assets\332A\006parent\022\262\001\n\025BatchGetAssets" + + "History\0223.google.cloud.asset.v1.BatchGet" + + "AssetsHistoryRequest\0324.google.cloud.asse" + + "t.v1.BatchGetAssetsHistoryResponse\".\202\323\344\223" + + "\002(\022&/v1/{parent=*/*}:batchGetAssetsHisto" + + "ry\022\177\n\nCreateFeed\022(.google.cloud.asset.v1" + + ".CreateFeedRequest\032\033.google.cloud.asset." + + "v1.Feed\"*\202\323\344\223\002\033\"\026/v1/{parent=*/*}/feeds:" + + "\001*\332A\006parent\022t\n\007GetFeed\022%.google.cloud.as" + + "set.v1.GetFeedRequest\032\033.google.cloud.ass" + + "et.v1.Feed\"%\202\323\344\223\002\030\022\026/v1/{name=*/*/feeds/" + + "*}\332A\004name\022\207\001\n\tListFeeds\022\'.google.cloud.a" + + "sset.v1.ListFeedsRequest\032(.google.cloud." + + "asset.v1.ListFeedsResponse\"\'\202\323\344\223\002\030\022\026/v1/" + + "{parent=*/*}/feeds\332A\006parent\022\202\001\n\nUpdateFe" + + "ed\022(.google.cloud.asset.v1.UpdateFeedReq" + + "uest\032\033.google.cloud.asset.v1.Feed\"-\202\323\344\223\002" + + " 2\033/v1/{feed.name=*/*/feeds/*}:\001*\332A\004feed" + + "\022u\n\nDeleteFeed\022(.google.cloud.asset.v1.D" + + "eleteFeedRequest\032\026.google.protobuf.Empty" + + "\"%\202\323\344\223\002\030*\026/v1/{name=*/*/feeds/*}\332A\004name\022" + + "\277\001\n\022SearchAllResources\0220.google.cloud.as" + + "set.v1.SearchAllResourcesRequest\0321.googl" + + "e.cloud.asset.v1.SearchAllResourcesRespo" + + "nse\"D\202\323\344\223\002$\022\"/v1/{scope=*/*}:searchAllRe" + + "sources\332A\027scope,query,asset_types\022\273\001\n\024Se" + + "archAllIamPolicies\0222.google.cloud.asset." + + "v1.SearchAllIamPoliciesRequest\0323.google." + + "cloud.asset.v1.SearchAllIamPoliciesRespo" + + "nse\":\202\323\344\223\002&\022$/v1/{scope=*/*}:searchAllIa" + + "mPolicies\332A\013scope,query\022\254\001\n\020AnalyzeIamPo" + + "licy\022..google.cloud.asset.v1.AnalyzeIamP" + + "olicyRequest\032/.google.cloud.asset.v1.Ana" + + "lyzeIamPolicyResponse\"7\202\323\344\223\0021\022//v1/{anal" + + "ysis_query.scope=*/*}:analyzeIamPolicy\022\270" + + "\002\n\033AnalyzeIamPolicyLongrunning\0229.google." + + "cloud.asset.v1.AnalyzeIamPolicyLongrunni" + + "ngRequest\032\035.google.longrunning.Operation" + + "\"\276\001\202\323\344\223\002?\":/v1/{analysis_query.scope=*/*" + + "}:analyzeIamPolicyLongrunning:\001*\312Av\n9goo" + + "gle.cloud.asset.v1.AnalyzeIamPolicyLongr" + + "unningResponse\0229google.cloud.asset.v1.An" + + "alyzeIamPolicyLongrunningMetadata\022\214\001\n\013An" + + "alyzeMove\022).google.cloud.asset.v1.Analyz" + + "eMoveRequest\032*.google.cloud.asset.v1.Ana" + + "lyzeMoveResponse\"&\202\323\344\223\002 \022\036/v1/{resource=" + + "*/*}:analyzeMove\022\215\001\n\013QueryAssets\022).googl" + + "e.cloud.asset.v1.QueryAssetsRequest\032*.go" + + "ogle.cloud.asset.v1.QueryAssetsResponse\"" + + "\'\202\323\344\223\002!\"\034/v1/{parent=*/*}:queryAssets:\001*" + + "\022\275\001\n\020CreateSavedQuery\022..google.cloud.ass" + + "et.v1.CreateSavedQueryRequest\032!.google.c" + + "loud.asset.v1.SavedQuery\"V\202\323\344\223\002,\"\035/v1/{p" + + "arent=*/*}/savedQueries:\013saved_query\332A!p" + + "arent,saved_query,saved_query_id\022\215\001\n\rGet" + + "SavedQuery\022+.google.cloud.asset.v1.GetSa" + + "vedQueryRequest\032!.google.cloud.asset.v1." + + "SavedQuery\",\202\323\344\223\002\037\022\035/v1/{name=*/*/savedQ" + + "ueries/*}\332A\004name\022\243\001\n\020ListSavedQueries\022.." + + "google.cloud.asset.v1.ListSavedQueriesRe" + + "quest\032/.google.cloud.asset.v1.ListSavedQ" + + "ueriesResponse\".\202\323\344\223\002\037\022\035/v1/{parent=*/*}" + + "/savedQueries\332A\006parent\022\277\001\n\020UpdateSavedQu" + + "ery\022..google.cloud.asset.v1.UpdateSavedQ" + + "ueryRequest\032!.google.cloud.asset.v1.Save" + + "dQuery\"X\202\323\344\223\00282)/v1/{saved_query.name=*/" + + "*/savedQueries/*}:\013saved_query\332A\027saved_q" + + "uery,update_mask\022\210\001\n\020DeleteSavedQuery\022.." + + "google.cloud.asset.v1.DeleteSavedQueryRe" + + "quest\032\026.google.protobuf.Empty\",\202\323\344\223\002\037*\035/" + + "v1/{name=*/*/savedQueries/*}\332A\004name\022\316\001\n\034" + + "BatchGetEffectiveIamPolicies\022:.google.cl" + + "oud.asset.v1.BatchGetEffectiveIamPolicie" + + "sRequest\032;.google.cloud.asset.v1.BatchGe" + + "tEffectiveIamPoliciesResponse\"5\202\323\344\223\002/\022-/" + + "v1/{scope=*/*}/effectiveIamPolicies:batc" + + "hGet\032M\312A\031cloudasset.googleapis.com\322A.htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "ormB\234\001\n\031com.google.cloud.asset.v1B\021Asset" + + "ServiceProtoP\001Z:google.golang.org/genpro" + + "to/googleapis/cloud/asset/v1;asset\252\002\025Goo" + + "gle.Cloud.Asset.V1\312\002\025Google\\Cloud\\Asset\\" + + "V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.asset.v1.AssetProto.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(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.type.ExprProto.getDescriptor(), + }); + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + }); + internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_asset_v1_ExportAssetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor, + new java.lang.String[] { + "Parent", + "ReadTime", + "AssetTypes", + "ContentType", + "OutputConfig", + "RelationshipTypes", + }); + internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_asset_v1_ExportAssetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor, + new java.lang.String[] { + "ReadTime", "OutputConfig", "OutputResult", + }); + internal_static_google_cloud_asset_v1_ListAssetsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_asset_v1_ListAssetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ListAssetsRequest_descriptor, + new java.lang.String[] { + "Parent", + "ReadTime", + "AssetTypes", + "ContentType", + "PageSize", + "PageToken", + "RelationshipTypes", + }); + internal_static_google_cloud_asset_v1_ListAssetsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_asset_v1_ListAssetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ListAssetsResponse_descriptor, + new java.lang.String[] { + "ReadTime", "Assets", "NextPageToken", + }); + internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor, + new java.lang.String[] { + "Parent", "AssetNames", "ContentType", "ReadTimeWindow", "RelationshipTypes", + }); + internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor, + new java.lang.String[] { + "Assets", + }); + internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_asset_v1_CreateFeedRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor, + new java.lang.String[] { + "Parent", "FeedId", "Feed", + }); + internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_asset_v1_GetFeedRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_asset_v1_ListFeedsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor, + new java.lang.String[] { + "Parent", + }); + internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_asset_v1_ListFeedsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor, + new java.lang.String[] { + "Feeds", + }); + internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_asset_v1_UpdateFeedRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor, + new java.lang.String[] { + "Feed", "UpdateMask", + }); + internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_asset_v1_DeleteFeedRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_asset_v1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_asset_v1_OutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_OutputConfig_descriptor, + new java.lang.String[] { + "GcsDestination", "BigqueryDestination", "Destination", + }); + internal_static_google_cloud_asset_v1_OutputResult_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_asset_v1_OutputResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_OutputResult_descriptor, + new java.lang.String[] { + "GcsResult", "Result", + }); + internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_asset_v1_GcsOutputResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor, + new java.lang.String[] { + "Uris", + }); + internal_static_google_cloud_asset_v1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_asset_v1_GcsDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_GcsDestination_descriptor, + new java.lang.String[] { + "Uri", "UriPrefix", "ObjectUri", + }); + internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_asset_v1_BigQueryDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor, + new java.lang.String[] { + "Dataset", "Table", "Force", "PartitionSpec", "SeparateTablesPerAssetType", + }); + internal_static_google_cloud_asset_v1_PartitionSpec_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_asset_v1_PartitionSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_PartitionSpec_descriptor, + new java.lang.String[] { + "PartitionKey", + }); + internal_static_google_cloud_asset_v1_PubsubDestination_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_asset_v1_PubsubDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_PubsubDestination_descriptor, + new java.lang.String[] { + "Topic", + }); + internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_asset_v1_FeedOutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor, + new java.lang.String[] { + "PubsubDestination", "Destination", + }); + internal_static_google_cloud_asset_v1_Feed_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_asset_v1_Feed_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_Feed_descriptor, + new java.lang.String[] { + "Name", + "AssetNames", + "AssetTypes", + "ContentType", + "FeedOutputConfig", + "Condition", + "RelationshipTypes", + }); + internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor, + new java.lang.String[] { + "Scope", "Query", "AssetTypes", "PageSize", "PageToken", "OrderBy", "ReadMask", + }); + internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor, + new java.lang.String[] { + "Results", "NextPageToken", + }); + internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor, + new java.lang.String[] { + "Scope", "Query", "PageSize", "PageToken", "AssetTypes", "OrderBy", + }); + internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor, + new java.lang.String[] { + "Results", "NextPageToken", + }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor, + new java.lang.String[] { + "Scope", + "ResourceSelector", + "IdentitySelector", + "AccessSelector", + "Options", + "ConditionContext", + }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_descriptor, + new java.lang.String[] { + "FullResourceName", + }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_descriptor, + new java.lang.String[] { + "Identity", + }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_descriptor, + new java.lang.String[] { + "Roles", "Permissions", + }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_descriptor, + new java.lang.String[] { + "ExpandGroups", + "ExpandRoles", + "ExpandResources", + "OutputResourceEdges", + "OutputGroupEdges", + "AnalyzeServiceAccountImpersonation", + }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor + .getNestedTypes() + .get(4); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_descriptor, + new java.lang.String[] { + "AccessTime", "TimeContext", + }); + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_descriptor, + new java.lang.String[] { + "AnalysisQuery", "SavedAnalysisQuery", "ExecutionTimeout", + }); + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor, + new java.lang.String[] { + "MainAnalysis", "ServiceAccountImpersonationAnalysis", "FullyExplored", + }); + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor = + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor, + new java.lang.String[] { + "AnalysisQuery", "AnalysisResults", "FullyExplored", "NonCriticalErrors", + }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor, + new java.lang.String[] { + "GcsDestination", "BigqueryDestination", "Destination", + }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor, + new java.lang.String[] { + "Uri", + }); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor = + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor, + new java.lang.String[] { + "Dataset", "TablePrefix", "PartitionKey", "WriteDisposition", + }); + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_descriptor, + new java.lang.String[] { + "AnalysisQuery", "SavedAnalysisQuery", "OutputConfig", + }); + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_asset_v1_SavedQuery_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_asset_v1_SavedQuery_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_SavedQuery_descriptor, + new java.lang.String[] { + "Name", + "Description", + "CreateTime", + "Creator", + "LastUpdateTime", + "LastUpdater", + "Labels", + "Content", + }); + internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_descriptor = + internal_static_google_cloud_asset_v1_SavedQuery_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_descriptor, + new java.lang.String[] { + "IamPolicyAnalysisQuery", "QueryContent", + }); + internal_static_google_cloud_asset_v1_SavedQuery_LabelsEntry_descriptor = + internal_static_google_cloud_asset_v1_SavedQuery_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_asset_v1_SavedQuery_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_SavedQuery_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_descriptor, + new java.lang.String[] { + "Parent", "SavedQuery", "SavedQueryId", + }); + internal_static_google_cloud_asset_v1_GetSavedQueryRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_asset_v1_GetSavedQueryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_GetSavedQueryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", + }); + internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_descriptor, + new java.lang.String[] { + "SavedQueries", "NextPageToken", + }); + internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_descriptor, + new java.lang.String[] { + "SavedQuery", "UpdateMask", + }); + internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_descriptor, + new java.lang.String[] { + "Resource", "DestinationParent", "View", + }); + internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_descriptor, + new java.lang.String[] { + "MoveAnalysis", + }); + internal_static_google_cloud_asset_v1_MoveAnalysis_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_cloud_asset_v1_MoveAnalysis_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_MoveAnalysis_descriptor, + new java.lang.String[] { + "DisplayName", "Analysis", "Error", "Result", + }); + internal_static_google_cloud_asset_v1_MoveAnalysisResult_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_cloud_asset_v1_MoveAnalysisResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_MoveAnalysisResult_descriptor, + new java.lang.String[] { + "Blockers", "Warnings", + }); + internal_static_google_cloud_asset_v1_MoveImpact_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_cloud_asset_v1_MoveImpact_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_MoveImpact_descriptor, + new java.lang.String[] { + "Detail", + }); + internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor, + new java.lang.String[] { + "BigqueryDestination", + }); + internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_descriptor = + internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_descriptor, + new java.lang.String[] { + "Dataset", "Table", "WriteDisposition", + }); + internal_static_google_cloud_asset_v1_QueryAssetsRequest_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_cloud_asset_v1_QueryAssetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_QueryAssetsRequest_descriptor, + new java.lang.String[] { + "Parent", + "Statement", + "JobReference", + "PageSize", + "PageToken", + "Timeout", + "ReadTimeWindow", + "ReadTime", + "OutputConfig", + "Query", + "Time", + }); + internal_static_google_cloud_asset_v1_QueryAssetsResponse_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_cloud_asset_v1_QueryAssetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_QueryAssetsResponse_descriptor, + new java.lang.String[] { + "JobReference", "Done", "Error", "QueryResult", "OutputConfig", "Response", + }); + internal_static_google_cloud_asset_v1_QueryResult_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_cloud_asset_v1_QueryResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_QueryResult_descriptor, + new java.lang.String[] { + "Rows", "Schema", "NextPageToken", "TotalRows", + }); + internal_static_google_cloud_asset_v1_TableSchema_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_google_cloud_asset_v1_TableSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_TableSchema_descriptor, + new java.lang.String[] { + "Fields", + }); + internal_static_google_cloud_asset_v1_TableFieldSchema_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_google_cloud_asset_v1_TableFieldSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_TableFieldSchema_descriptor, + new java.lang.String[] { + "Field", "Type", "Mode", "Fields", + }); + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_descriptor = + getDescriptor().getMessageTypes().get(50); + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_descriptor, + new java.lang.String[] { + "Scope", "Names", + }); + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor, + new java.lang.String[] { + "PolicyResults", + }); + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor = + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor, + new java.lang.String[] { + "FullResourceName", "Policies", + }); + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor = + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor, + new java.lang.String[] { + "AttachedResource", "Policy", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.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.asset.v1.AssetProto.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(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.type.ExprProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResource.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResource.java similarity index 76% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResource.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResource.java index 853fe14ee973..59d205474785 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResource.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResource.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** + * + * *
      * Attached resource representation, which is defined by the corresponding
      * service provider. It represents an attached resource's payload.
    @@ -11,15 +28,16 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.AttachedResource}
      */
    -public final class AttachedResource extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class AttachedResource extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AttachedResource)
         AttachedResourceOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use AttachedResource.newBuilder() to construct.
       private AttachedResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private AttachedResource() {
         assetType_ = "";
         versionedResources_ = java.util.Collections.emptyList();
    @@ -27,32 +45,35 @@ private AttachedResource() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(
    -      UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new AttachedResource();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_AttachedResource_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetProto
    +        .internal_static_google_cloud_asset_v1_AttachedResource_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_AttachedResource_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetProto
    +        .internal_static_google_cloud_asset_v1_AttachedResource_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1.AttachedResource.class, com.google.cloud.asset.v1.AttachedResource.Builder.class);
    +            com.google.cloud.asset.v1.AttachedResource.class,
    +            com.google.cloud.asset.v1.AttachedResource.Builder.class);
       }
     
       public static final int ASSET_TYPE_FIELD_NUMBER = 1;
       private volatile java.lang.Object assetType_;
       /**
    +   *
    +   *
        * 
        * The type of this attached resource.
        * Example: `osconfig.googleapis.com/Inventory`
    @@ -62,6 +83,7 @@ protected java.lang.Object newInstance(
        * 
    * * string asset_type = 1; + * * @return The assetType. */ @java.lang.Override @@ -70,14 +92,15 @@ public java.lang.String getAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; } } /** + * + * *
        * The type of this attached resource.
        * Example: `osconfig.googleapis.com/Inventory`
    @@ -87,16 +110,15 @@ public java.lang.String getAssetType() {
        * 
    * * string asset_type = 1; + * * @return The bytes for assetType. */ @java.lang.Override - public com.google.protobuf.ByteString - getAssetTypeBytes() { + public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetType_ = b; return b; } else { @@ -107,6 +129,8 @@ public java.lang.String getAssetType() { public static final int VERSIONED_RESOURCES_FIELD_NUMBER = 3; private java.util.List versionedResources_; /** + * + * *
        * Versioned resource representations of this attached resource. This is
        * repeated because there could be multiple versions of the attached resource
    @@ -120,6 +144,8 @@ public java.util.List getVersionedR
         return versionedResources_;
       }
       /**
    +   *
    +   *
        * 
        * Versioned resource representations of this attached resource. This is
        * repeated because there could be multiple versions of the attached resource
    @@ -129,11 +155,13 @@ public java.util.List getVersionedR
        * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;
        */
       @java.lang.Override
    -  public java.util.List 
    +  public java.util.List
           getVersionedResourcesOrBuilderList() {
         return versionedResources_;
       }
       /**
    +   *
    +   *
        * 
        * Versioned resource representations of this attached resource. This is
        * repeated because there could be multiple versions of the attached resource
    @@ -147,6 +175,8 @@ public int getVersionedResourcesCount() {
         return versionedResources_.size();
       }
       /**
    +   *
    +   *
        * 
        * Versioned resource representations of this attached resource. This is
        * repeated because there could be multiple versions of the attached resource
    @@ -160,6 +190,8 @@ public com.google.cloud.asset.v1.VersionedResource getVersionedResources(int ind
         return versionedResources_.get(index);
       }
       /**
    +   *
    +   *
        * 
        * Versioned resource representations of this attached resource. This is
        * repeated because there could be multiple versions of the attached resource
    @@ -175,6 +207,7 @@ public com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResource
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -186,8 +219,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetType_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, assetType_);
         }
    @@ -207,8 +239,8 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, assetType_);
         }
         for (int i = 0; i < versionedResources_.size(); i++) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(3, versionedResources_.get(i));
    +      size +=
    +          com.google.protobuf.CodedOutputStream.computeMessageSize(3, versionedResources_.get(i));
         }
         size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
    @@ -218,17 +250,16 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1.AttachedResource)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1.AttachedResource other = (com.google.cloud.asset.v1.AttachedResource) obj;
    +    com.google.cloud.asset.v1.AttachedResource other =
    +        (com.google.cloud.asset.v1.AttachedResource) obj;
     
    -    if (!getAssetType()
    -        .equals(other.getAssetType())) return false;
    -    if (!getVersionedResourcesList()
    -        .equals(other.getVersionedResourcesList())) return false;
    +    if (!getAssetType().equals(other.getAssetType())) return false;
    +    if (!getVersionedResourcesList().equals(other.getVersionedResourcesList())) return false;
         if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
    @@ -251,97 +282,104 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1.AttachedResource parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1.AttachedResource parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.AttachedResource parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.AttachedResource parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.AttachedResource 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.asset.v1.AttachedResource parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.AttachedResource parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.AttachedResource parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.AttachedResource parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.cloud.asset.v1.AttachedResource parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.cloud.asset.v1.AttachedResource parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.AttachedResource parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.AttachedResource parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.AttachedResource parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.cloud.asset.v1.AttachedResource prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Attached resource representation, which is defined by the corresponding
        * service provider. It represents an attached resource's payload.
    @@ -349,33 +387,32 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.asset.v1.AttachedResource}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AttachedResource)
           com.google.cloud.asset.v1.AttachedResourceOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_AttachedResource_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_AttachedResource_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_AttachedResource_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_AttachedResource_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.AttachedResource.class, com.google.cloud.asset.v1.AttachedResource.Builder.class);
    +              com.google.cloud.asset.v1.AttachedResource.class,
    +              com.google.cloud.asset.v1.AttachedResource.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.AttachedResource.newBuilder()
    -    private Builder() {
    -
    -    }
    +    private Builder() {}
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -392,9 +429,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_AttachedResource_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_AttachedResource_descriptor;
         }
     
         @java.lang.Override
    @@ -413,7 +450,8 @@ public com.google.cloud.asset.v1.AttachedResource build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1.AttachedResource buildPartial() {
    -      com.google.cloud.asset.v1.AttachedResource result = new com.google.cloud.asset.v1.AttachedResource(this);
    +      com.google.cloud.asset.v1.AttachedResource result =
    +          new com.google.cloud.asset.v1.AttachedResource(this);
           int from_bitField0_ = bitField0_;
           result.assetType_ = assetType_;
           if (versionedResourcesBuilder_ == null) {
    @@ -433,38 +471,39 @@ public com.google.cloud.asset.v1.AttachedResource buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.AttachedResource) {
    -        return mergeFrom((com.google.cloud.asset.v1.AttachedResource)other);
    +        return mergeFrom((com.google.cloud.asset.v1.AttachedResource) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -495,9 +534,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.AttachedResource other) {
                 versionedResourcesBuilder_ = null;
                 versionedResources_ = other.versionedResources_;
                 bitField0_ = (bitField0_ & ~0x00000001);
    -            versionedResourcesBuilder_ = 
    -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
    -                 getVersionedResourcesFieldBuilder() : null;
    +            versionedResourcesBuilder_ =
    +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
    +                    ? getVersionedResourcesFieldBuilder()
    +                    : null;
               } else {
                 versionedResourcesBuilder_.addAllMessages(other.versionedResources_);
               }
    @@ -529,30 +569,32 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
    -            case 10: {
    -              assetType_ = input.readStringRequireUtf8();
    +            case 10:
    +              {
    +                assetType_ = input.readStringRequireUtf8();
     
    -              break;
    -            } // case 10
    -            case 26: {
    -              com.google.cloud.asset.v1.VersionedResource m =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.VersionedResource.parser(),
    -                      extensionRegistry);
    -              if (versionedResourcesBuilder_ == null) {
    -                ensureVersionedResourcesIsMutable();
    -                versionedResources_.add(m);
    -              } else {
    -                versionedResourcesBuilder_.addMessage(m);
    -              }
    -              break;
    -            } // case 26
    -            default: {
    -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                done = true; // was an endgroup tag
    -              }
    -              break;
    -            } // default:
    +                break;
    +              } // case 10
    +            case 26:
    +              {
    +                com.google.cloud.asset.v1.VersionedResource m =
    +                    input.readMessage(
    +                        com.google.cloud.asset.v1.VersionedResource.parser(), extensionRegistry);
    +                if (versionedResourcesBuilder_ == null) {
    +                  ensureVersionedResourcesIsMutable();
    +                  versionedResources_.add(m);
    +                } else {
    +                  versionedResourcesBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 26
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -562,10 +604,13 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
    +
         private int bitField0_;
     
         private java.lang.Object assetType_ = "";
         /**
    +     *
    +     *
          * 
          * The type of this attached resource.
          * Example: `osconfig.googleapis.com/Inventory`
    @@ -575,13 +620,13 @@ public Builder mergeFrom(
          * 
    * * string asset_type = 1; + * * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; @@ -590,6 +635,8 @@ public java.lang.String getAssetType() { } } /** + * + * *
          * The type of this attached resource.
          * Example: `osconfig.googleapis.com/Inventory`
    @@ -599,15 +646,14 @@ public java.lang.String getAssetType() {
          * 
    * * string asset_type = 1; + * * @return The bytes for assetType. */ - public com.google.protobuf.ByteString - getAssetTypeBytes() { + public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetType_ = b; return b; } else { @@ -615,6 +661,8 @@ public java.lang.String getAssetType() { } } /** + * + * *
          * The type of this attached resource.
          * Example: `osconfig.googleapis.com/Inventory`
    @@ -624,20 +672,22 @@ public java.lang.String getAssetType() {
          * 
    * * string asset_type = 1; + * * @param value The assetType to set. * @return This builder for chaining. */ - public Builder setAssetType( - java.lang.String value) { + public Builder setAssetType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + assetType_ = value; onChanged(); return this; } /** + * + * *
          * The type of this attached resource.
          * Example: `osconfig.googleapis.com/Inventory`
    @@ -647,15 +697,18 @@ public Builder setAssetType(
          * 
    * * string asset_type = 1; + * * @return This builder for chaining. */ public Builder clearAssetType() { - + assetType_ = getDefaultInstance().getAssetType(); onChanged(); return this; } /** + * + * *
          * The type of this attached resource.
          * Example: `osconfig.googleapis.com/Inventory`
    @@ -665,34 +718,42 @@ public Builder clearAssetType() {
          * 
    * * string asset_type = 1; + * * @param value The bytes for assetType to set. * @return This builder for chaining. */ - public Builder setAssetTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; onChanged(); return this; } private java.util.List versionedResources_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureVersionedResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - versionedResources_ = new java.util.ArrayList(versionedResources_); + versionedResources_ = + new java.util.ArrayList( + versionedResources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.VersionedResource, com.google.cloud.asset.v1.VersionedResource.Builder, com.google.cloud.asset.v1.VersionedResourceOrBuilder> versionedResourcesBuilder_; + com.google.cloud.asset.v1.VersionedResource, + com.google.cloud.asset.v1.VersionedResource.Builder, + com.google.cloud.asset.v1.VersionedResourceOrBuilder> + versionedResourcesBuilder_; /** + * + * *
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -709,6 +770,8 @@ public java.util.List getVersionedR
           }
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -725,6 +788,8 @@ public int getVersionedResourcesCount() {
           }
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -741,6 +806,8 @@ public com.google.cloud.asset.v1.VersionedResource getVersionedResources(int ind
           }
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -764,6 +831,8 @@ public Builder setVersionedResources(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -784,6 +853,8 @@ public Builder setVersionedResources(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -806,6 +877,8 @@ public Builder addVersionedResources(com.google.cloud.asset.v1.VersionedResource
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -829,6 +902,8 @@ public Builder addVersionedResources(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -849,6 +924,8 @@ public Builder addVersionedResources(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -869,6 +946,8 @@ public Builder addVersionedResources(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -881,8 +960,7 @@ public Builder addAllVersionedResources(
             java.lang.Iterable values) {
           if (versionedResourcesBuilder_ == null) {
             ensureVersionedResourcesIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    -            values, versionedResources_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, versionedResources_);
             onChanged();
           } else {
             versionedResourcesBuilder_.addAllMessages(values);
    @@ -890,6 +968,8 @@ public Builder addAllVersionedResources(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -909,6 +989,8 @@ public Builder clearVersionedResources() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -928,6 +1010,8 @@ public Builder removeVersionedResources(int index) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -941,6 +1025,8 @@ public com.google.cloud.asset.v1.VersionedResource.Builder getVersionedResources
           return getVersionedResourcesFieldBuilder().getBuilder(index);
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -952,11 +1038,14 @@ public com.google.cloud.asset.v1.VersionedResource.Builder getVersionedResources
         public com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResourcesOrBuilder(
             int index) {
           if (versionedResourcesBuilder_ == null) {
    -        return versionedResources_.get(index);  } else {
    +        return versionedResources_.get(index);
    +      } else {
             return versionedResourcesBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -965,8 +1054,8 @@ public com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResource
          *
          * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;
          */
    -    public java.util.List 
    -         getVersionedResourcesOrBuilderList() {
    +    public java.util.List
    +        getVersionedResourcesOrBuilderList() {
           if (versionedResourcesBuilder_ != null) {
             return versionedResourcesBuilder_.getMessageOrBuilderList();
           } else {
    @@ -974,6 +1063,8 @@ public com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResource
           }
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -983,10 +1074,12 @@ public com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResource
          * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;
          */
         public com.google.cloud.asset.v1.VersionedResource.Builder addVersionedResourcesBuilder() {
    -      return getVersionedResourcesFieldBuilder().addBuilder(
    -          com.google.cloud.asset.v1.VersionedResource.getDefaultInstance());
    +      return getVersionedResourcesFieldBuilder()
    +          .addBuilder(com.google.cloud.asset.v1.VersionedResource.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -997,10 +1090,12 @@ public com.google.cloud.asset.v1.VersionedResource.Builder addVersionedResources
          */
         public com.google.cloud.asset.v1.VersionedResource.Builder addVersionedResourcesBuilder(
             int index) {
    -      return getVersionedResourcesFieldBuilder().addBuilder(
    -          index, com.google.cloud.asset.v1.VersionedResource.getDefaultInstance());
    +      return getVersionedResourcesFieldBuilder()
    +          .addBuilder(index, com.google.cloud.asset.v1.VersionedResource.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this attached resource. This is
          * repeated because there could be multiple versions of the attached resource
    @@ -1009,16 +1104,22 @@ public com.google.cloud.asset.v1.VersionedResource.Builder addVersionedResources
          *
          * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;
          */
    -    public java.util.List 
    -         getVersionedResourcesBuilderList() {
    +    public java.util.List
    +        getVersionedResourcesBuilderList() {
           return getVersionedResourcesFieldBuilder().getBuilderList();
         }
    +
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -        com.google.cloud.asset.v1.VersionedResource, com.google.cloud.asset.v1.VersionedResource.Builder, com.google.cloud.asset.v1.VersionedResourceOrBuilder> 
    +            com.google.cloud.asset.v1.VersionedResource,
    +            com.google.cloud.asset.v1.VersionedResource.Builder,
    +            com.google.cloud.asset.v1.VersionedResourceOrBuilder>
             getVersionedResourcesFieldBuilder() {
           if (versionedResourcesBuilder_ == null) {
    -        versionedResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.asset.v1.VersionedResource, com.google.cloud.asset.v1.VersionedResource.Builder, com.google.cloud.asset.v1.VersionedResourceOrBuilder>(
    +        versionedResourcesBuilder_ =
    +            new com.google.protobuf.RepeatedFieldBuilderV3<
    +                com.google.cloud.asset.v1.VersionedResource,
    +                com.google.cloud.asset.v1.VersionedResource.Builder,
    +                com.google.cloud.asset.v1.VersionedResourceOrBuilder>(
                     versionedResources_,
                     ((bitField0_ & 0x00000001) != 0),
                     getParentForChildren(),
    @@ -1027,9 +1128,9 @@ public com.google.cloud.asset.v1.VersionedResource.Builder addVersionedResources
           }
           return versionedResourcesBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -1039,12 +1140,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.AttachedResource)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AttachedResource)
       private static final com.google.cloud.asset.v1.AttachedResource DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1.AttachedResource();
       }
    @@ -1053,27 +1154,27 @@ public static com.google.cloud.asset.v1.AttachedResource getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public AttachedResource parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      Builder builder = newBuilder();
    -      try {
    -        builder.mergeFrom(input, extensionRegistry);
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(builder.buildPartial());
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    -            .setUnfinishedMessage(builder.buildPartial());
    -      }
    -      return builder.buildPartial();
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public AttachedResource parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1088,6 +1189,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1.AttachedResource getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResourceOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResourceOrBuilder.java
    similarity index 76%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResourceOrBuilder.java
    rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResourceOrBuilder.java
    index 15fc2826e2e8..3b927c8731fc 100644
    --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResourceOrBuilder.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AttachedResourceOrBuilder.java
    @@ -1,13 +1,31 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/assets.proto
     
     package com.google.cloud.asset.v1;
     
    -public interface AttachedResourceOrBuilder extends
    +public interface AttachedResourceOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AttachedResource)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The type of this attached resource.
        * Example: `osconfig.googleapis.com/Inventory`
    @@ -17,10 +35,13 @@ public interface AttachedResourceOrBuilder extends
        * 
    * * string asset_type = 1; + * * @return The assetType. */ java.lang.String getAssetType(); /** + * + * *
        * The type of this attached resource.
        * Example: `osconfig.googleapis.com/Inventory`
    @@ -30,12 +51,14 @@ public interface AttachedResourceOrBuilder extends
        * 
    * * string asset_type = 1; + * * @return The bytes for assetType. */ - com.google.protobuf.ByteString - getAssetTypeBytes(); + com.google.protobuf.ByteString getAssetTypeBytes(); /** + * + * *
        * Versioned resource representations of this attached resource. This is
        * repeated because there could be multiple versions of the attached resource
    @@ -44,9 +67,10 @@ public interface AttachedResourceOrBuilder extends
        *
        * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;
        */
    -  java.util.List 
    -      getVersionedResourcesList();
    +  java.util.List getVersionedResourcesList();
       /**
    +   *
    +   *
        * 
        * Versioned resource representations of this attached resource. This is
        * repeated because there could be multiple versions of the attached resource
    @@ -57,6 +81,8 @@ public interface AttachedResourceOrBuilder extends
        */
       com.google.cloud.asset.v1.VersionedResource getVersionedResources(int index);
       /**
    +   *
    +   *
        * 
        * Versioned resource representations of this attached resource. This is
        * repeated because there could be multiple versions of the attached resource
    @@ -67,6 +93,8 @@ public interface AttachedResourceOrBuilder extends
        */
       int getVersionedResourcesCount();
       /**
    +   *
    +   *
        * 
        * Versioned resource representations of this attached resource. This is
        * repeated because there could be multiple versions of the attached resource
    @@ -75,9 +103,11 @@ public interface AttachedResourceOrBuilder extends
        *
        * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;
        */
    -  java.util.List 
    +  java.util.List
           getVersionedResourcesOrBuilderList();
       /**
    +   *
    +   *
        * 
        * Versioned resource representations of this attached resource. This is
        * repeated because there could be multiple versions of the attached resource
    @@ -86,6 +116,5 @@ public interface AttachedResourceOrBuilder extends
        *
        * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;
        */
    -  com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResourcesOrBuilder(
    -      int index);
    +  com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResourcesOrBuilder(int index);
     }
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java
    similarity index 75%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java
    rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java
    index d3927d3aa48b..3d8acb44b532 100644
    --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequest.java
    @@ -1,24 +1,42 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
     /**
    + *
    + *
      * 
      * Batch get assets history request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.BatchGetAssetsHistoryRequest} */ -public final class BatchGetAssetsHistoryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchGetAssetsHistoryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.BatchGetAssetsHistoryRequest) BatchGetAssetsHistoryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchGetAssetsHistoryRequest.newBuilder() to construct. private BatchGetAssetsHistoryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchGetAssetsHistoryRequest() { parent_ = ""; assetNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -28,39 +46,45 @@ private BatchGetAssetsHistoryRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchGetAssetsHistoryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.class, com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.Builder.class); + com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.class, + com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
        * Required. The relative name of the root asset. It can only be an
        * organization number (such as "organizations/123"), a project ID (such as
        * "projects/my-project-id")", or a project number (such as "projects/12345").
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -69,31 +93,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
        * Required. The relative name of the root asset. It can only be an
        * organization number (such as "organizations/123"), a project ID (such as
        * "projects/my-project-id")", or a project number (such as "projects/12345").
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -104,6 +130,8 @@ public java.lang.String getParent() { public static final int ASSET_NAMES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList assetNames_; /** + * + * *
        * A list of the full names of the assets.
        * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -114,13 +142,15 @@ public java.lang.String getParent() {
        * 
    * * repeated string asset_names = 2; + * * @return A list containing the assetNames. */ - public com.google.protobuf.ProtocolStringList - getAssetNamesList() { + public com.google.protobuf.ProtocolStringList getAssetNamesList() { return assetNames_; } /** + * + * *
        * A list of the full names of the assets.
        * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -131,12 +161,15 @@ public java.lang.String getParent() {
        * 
    * * repeated string asset_names = 2; + * * @return The count of assetNames. */ public int getAssetNamesCount() { return assetNames_.size(); } /** + * + * *
        * A list of the full names of the assets.
        * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -147,6 +180,7 @@ public int getAssetNamesCount() {
        * 
    * * repeated string asset_names = 2; + * * @param index The index of the element to return. * @return The assetNames at the given index. */ @@ -154,6 +188,8 @@ public java.lang.String getAssetNames(int index) { return assetNames_.get(index); } /** + * + * *
        * A list of the full names of the assets.
        * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -164,44 +200,59 @@ public java.lang.String getAssetNames(int index) {
        * 
    * * repeated string asset_names = 2; + * * @param index The index of the value to return. * @return The bytes of the assetNames at the given index. */ - public com.google.protobuf.ByteString - getAssetNamesBytes(int index) { + public com.google.protobuf.ByteString getAssetNamesBytes(int index) { return assetNames_.getByteString(index); } public static final int CONTENT_TYPE_FIELD_NUMBER = 3; private int contentType_; /** + * + * *
        * Optional. The content type.
        * 
    * - * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override public int getContentTypeValue() { + @java.lang.Override + public int getContentTypeValue() { return contentType_; } /** + * + * *
        * Optional. The content type.
        * 
    * - * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The contentType. */ - @java.lang.Override public com.google.cloud.asset.v1.ContentType getContentType() { + @java.lang.Override + public com.google.cloud.asset.v1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.ContentType result = com.google.cloud.asset.v1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1.ContentType result = + com.google.cloud.asset.v1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1.ContentType.UNRECOGNIZED : result; } public static final int READ_TIME_WINDOW_FIELD_NUMBER = 4; private com.google.cloud.asset.v1.TimeWindow readTimeWindow_; /** + * + * *
        * Optional. The time window for the asset history. Both start_time and
        * end_time are optional and if set, it must be after the current time minus
    @@ -211,7 +262,10 @@ public java.lang.String getAssetNames(int index) {
        * window overlap with read_time_window.
        * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readTimeWindow field is set. */ @java.lang.Override @@ -219,6 +273,8 @@ public boolean hasReadTimeWindow() { return readTimeWindow_ != null; } /** + * + * *
        * Optional. The time window for the asset history. Both start_time and
        * end_time are optional and if set, it must be after the current time minus
    @@ -228,14 +284,21 @@ public boolean hasReadTimeWindow() {
        * window overlap with read_time_window.
        * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readTimeWindow. */ @java.lang.Override public com.google.cloud.asset.v1.TimeWindow getReadTimeWindow() { - return readTimeWindow_ == null ? com.google.cloud.asset.v1.TimeWindow.getDefaultInstance() : readTimeWindow_; + return readTimeWindow_ == null + ? com.google.cloud.asset.v1.TimeWindow.getDefaultInstance() + : readTimeWindow_; } /** + * + * *
        * Optional. The time window for the asset history. Both start_time and
        * end_time are optional and if set, it must be after the current time minus
    @@ -245,7 +308,9 @@ public com.google.cloud.asset.v1.TimeWindow getReadTimeWindow() {
        * window overlap with read_time_window.
        * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder() { @@ -255,6 +320,8 @@ public com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder( public static final int RELATIONSHIP_TYPES_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList relationshipTypes_; /** + * + * *
        * Optional. A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -275,13 +342,15 @@ public com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder(
        * 
    * * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the relationshipTypes. */ - public com.google.protobuf.ProtocolStringList - getRelationshipTypesList() { + public com.google.protobuf.ProtocolStringList getRelationshipTypesList() { return relationshipTypes_; } /** + * + * *
        * Optional. A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -302,12 +371,15 @@ public com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder(
        * 
    * * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of relationshipTypes. */ public int getRelationshipTypesCount() { return relationshipTypes_.size(); } /** + * + * *
        * Optional. A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -328,6 +400,7 @@ public int getRelationshipTypesCount() {
        * 
    * * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -335,6 +408,8 @@ public java.lang.String getRelationshipTypes(int index) { return relationshipTypes_.get(index); } /** + * + * *
        * Optional. A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -355,15 +430,16 @@ public java.lang.String getRelationshipTypes(int index) {
        * 
    * * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - public com.google.protobuf.ByteString - getRelationshipTypesBytes(int index) { + public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) { return relationshipTypes_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -375,15 +451,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } for (int i = 0; i < assetNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, assetNames_.getRaw(i)); } - if (contentType_ != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + if (contentType_ + != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(3, contentType_); } if (readTimeWindow_ != null) { @@ -412,13 +488,12 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAssetNamesList().size(); } - if (contentType_ != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, contentType_); + if (contentType_ + != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, contentType_); } if (readTimeWindow_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getReadTimeWindow()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadTimeWindow()); } { int dataSize = 0; @@ -436,25 +511,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest other = (com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest) obj; + com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest other = + (com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getAssetNamesList() - .equals(other.getAssetNamesList())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getAssetNamesList().equals(other.getAssetNamesList())) return false; if (contentType_ != other.contentType_) return false; if (hasReadTimeWindow() != other.hasReadTimeWindow()) return false; if (hasReadTimeWindow()) { - if (!getReadTimeWindow() - .equals(other.getReadTimeWindow())) return false; + if (!getReadTimeWindow().equals(other.getReadTimeWindow())) return false; } - if (!getRelationshipTypesList() - .equals(other.getRelationshipTypesList())) return false; + if (!getRelationshipTypesList().equals(other.getRelationshipTypesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -488,129 +560,136 @@ public int hashCode() { } public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest 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.asset.v1.BatchGetAssetsHistoryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Batch get assets history request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.BatchGetAssetsHistoryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.BatchGetAssetsHistoryRequest) com.google.cloud.asset.v1.BatchGetAssetsHistoryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.class, com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.Builder.class); + com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.class, + com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -632,9 +711,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor; } @java.lang.Override @@ -653,7 +732,8 @@ public com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest build() { @java.lang.Override public com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest buildPartial() { - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest result = new com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest(this); + com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest result = + new com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (((bitField0_ & 0x00000001) != 0)) { @@ -680,38 +760,39 @@ public com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.BatchGetAssetsHistoryRequest) { - return mergeFrom((com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest)other); + return mergeFrom((com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest) other); } else { super.mergeFrom(other); return this; @@ -719,7 +800,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest other) { - if (other == com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -776,41 +858,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAssetNamesIsMutable(); - assetNames_.add(s); - break; - } // case 18 - case 24: { - contentType_ = input.readEnum(); + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAssetNamesIsMutable(); + assetNames_.add(s); + break; + } // case 18 + case 24: + { + contentType_ = input.readEnum(); - break; - } // case 24 - case 34: { - input.readMessage( - getReadTimeWindowFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 24 + case 34: + { + input.readMessage(getReadTimeWindowFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 34 - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - ensureRelationshipTypesIsMutable(); - relationshipTypes_.add(s); - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRelationshipTypesIsMutable(); + relationshipTypes_.add(s); + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -820,24 +906,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
          * Required. The relative name of the root asset. It can only be an
          * organization number (such as "organizations/123"), a project ID (such as
          * "projects/my-project-id")", or a project number (such as "projects/12345").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -846,22 +937,25 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. The relative name of the root asset. It can only be an
          * organization number (such as "organizations/123"), a project ID (such as
          * "projects/my-project-id")", or a project number (such as "projects/12345").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -869,73 +963,90 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. The relative name of the root asset. It can only be an
          * organization number (such as "organizations/123"), a project ID (such as
          * "projects/my-project-id")", or a project number (such as "projects/12345").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
          * Required. The relative name of the root asset. It can only be an
          * organization number (such as "organizations/123"), a project ID (such as
          * "projects/my-project-id")", or a project number (such as "projects/12345").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
          * Required. The relative name of the root asset. It can only be an
          * organization number (such as "organizations/123"), a project ID (such as
          * "projects/my-project-id")", or a project number (such as "projects/12345").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList assetNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList assetNames_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAssetNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assetNames_ = new com.google.protobuf.LazyStringArrayList(assetNames_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
          * A list of the full names of the assets.
          * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -946,13 +1057,15 @@ private void ensureAssetNamesIsMutable() {
          * 
    * * repeated string asset_names = 2; + * * @return A list containing the assetNames. */ - public com.google.protobuf.ProtocolStringList - getAssetNamesList() { + public com.google.protobuf.ProtocolStringList getAssetNamesList() { return assetNames_.getUnmodifiableView(); } /** + * + * *
          * A list of the full names of the assets.
          * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -963,12 +1076,15 @@ private void ensureAssetNamesIsMutable() {
          * 
    * * repeated string asset_names = 2; + * * @return The count of assetNames. */ public int getAssetNamesCount() { return assetNames_.size(); } /** + * + * *
          * A list of the full names of the assets.
          * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -979,6 +1095,7 @@ public int getAssetNamesCount() {
          * 
    * * repeated string asset_names = 2; + * * @param index The index of the element to return. * @return The assetNames at the given index. */ @@ -986,6 +1103,8 @@ public java.lang.String getAssetNames(int index) { return assetNames_.get(index); } /** + * + * *
          * A list of the full names of the assets.
          * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -996,14 +1115,16 @@ public java.lang.String getAssetNames(int index) {
          * 
    * * repeated string asset_names = 2; + * * @param index The index of the value to return. * @return The bytes of the assetNames at the given index. */ - public com.google.protobuf.ByteString - getAssetNamesBytes(int index) { + public com.google.protobuf.ByteString getAssetNamesBytes(int index) { return assetNames_.getByteString(index); } /** + * + * *
          * A list of the full names of the assets.
          * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -1014,21 +1135,23 @@ public java.lang.String getAssetNames(int index) {
          * 
    * * repeated string asset_names = 2; + * * @param index The index to set the value at. * @param value The assetNames to set. * @return This builder for chaining. */ - public Builder setAssetNames( - int index, java.lang.String value) { + public Builder setAssetNames(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetNamesIsMutable(); + throw new NullPointerException(); + } + ensureAssetNamesIsMutable(); assetNames_.set(index, value); onChanged(); return this; } /** + * + * *
          * A list of the full names of the assets.
          * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -1039,20 +1162,22 @@ public Builder setAssetNames(
          * 
    * * repeated string asset_names = 2; + * * @param value The assetNames to add. * @return This builder for chaining. */ - public Builder addAssetNames( - java.lang.String value) { + public Builder addAssetNames(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetNamesIsMutable(); + throw new NullPointerException(); + } + ensureAssetNamesIsMutable(); assetNames_.add(value); onChanged(); return this; } /** + * + * *
          * A list of the full names of the assets.
          * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -1063,18 +1188,19 @@ public Builder addAssetNames(
          * 
    * * repeated string asset_names = 2; + * * @param values The assetNames to add. * @return This builder for chaining. */ - public Builder addAllAssetNames( - java.lang.Iterable values) { + public Builder addAllAssetNames(java.lang.Iterable values) { ensureAssetNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, assetNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetNames_); onChanged(); return this; } /** + * + * *
          * A list of the full names of the assets.
          * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -1085,6 +1211,7 @@ public Builder addAllAssetNames(
          * 
    * * repeated string asset_names = 2; + * * @return This builder for chaining. */ public Builder clearAssetNames() { @@ -1094,6 +1221,8 @@ public Builder clearAssetNames() { return this; } /** + * + * *
          * A list of the full names of the assets.
          * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -1104,15 +1233,15 @@ public Builder clearAssetNames() {
          * 
    * * repeated string asset_names = 2; + * * @param value The bytes of the assetNames to add. * @return This builder for chaining. */ - public Builder addAssetNamesBytes( - com.google.protobuf.ByteString value) { + public Builder addAssetNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssetNamesIsMutable(); assetNames_.add(value); onChanged(); @@ -1121,51 +1250,73 @@ public Builder addAssetNamesBytes( private int contentType_ = 0; /** + * + * *
          * Optional. The content type.
          * 
    * - * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override public int getContentTypeValue() { + @java.lang.Override + public int getContentTypeValue() { return contentType_; } /** + * + * *
          * Optional. The content type.
          * 
    * - * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for contentType to set. * @return This builder for chaining. */ public Builder setContentTypeValue(int value) { - + contentType_ = value; onChanged(); return this; } /** + * + * *
          * Optional. The content type.
          * 
    * - * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The contentType. */ @java.lang.Override public com.google.cloud.asset.v1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.ContentType result = com.google.cloud.asset.v1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1.ContentType result = + com.google.cloud.asset.v1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1.ContentType.UNRECOGNIZED : result; } /** + * + * *
          * Optional. The content type.
          * 
    * - * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The contentType to set. * @return This builder for chaining. */ @@ -1173,21 +1324,26 @@ public Builder setContentType(com.google.cloud.asset.v1.ContentType value) { if (value == null) { throw new NullPointerException(); } - + contentType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
          * Optional. The content type.
          * 
    * - * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearContentType() { - + contentType_ = 0; onChanged(); return this; @@ -1195,8 +1351,13 @@ public Builder clearContentType() { private com.google.cloud.asset.v1.TimeWindow readTimeWindow_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.TimeWindow, com.google.cloud.asset.v1.TimeWindow.Builder, com.google.cloud.asset.v1.TimeWindowOrBuilder> readTimeWindowBuilder_; + com.google.cloud.asset.v1.TimeWindow, + com.google.cloud.asset.v1.TimeWindow.Builder, + com.google.cloud.asset.v1.TimeWindowOrBuilder> + readTimeWindowBuilder_; /** + * + * *
          * Optional. The time window for the asset history. Both start_time and
          * end_time are optional and if set, it must be after the current time minus
    @@ -1206,13 +1367,18 @@ public Builder clearContentType() {
          * window overlap with read_time_window.
          * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readTimeWindow field is set. */ public boolean hasReadTimeWindow() { return readTimeWindowBuilder_ != null || readTimeWindow_ != null; } /** + * + * *
          * Optional. The time window for the asset history. Both start_time and
          * end_time are optional and if set, it must be after the current time minus
    @@ -1222,17 +1388,24 @@ public boolean hasReadTimeWindow() {
          * window overlap with read_time_window.
          * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readTimeWindow. */ public com.google.cloud.asset.v1.TimeWindow getReadTimeWindow() { if (readTimeWindowBuilder_ == null) { - return readTimeWindow_ == null ? com.google.cloud.asset.v1.TimeWindow.getDefaultInstance() : readTimeWindow_; + return readTimeWindow_ == null + ? com.google.cloud.asset.v1.TimeWindow.getDefaultInstance() + : readTimeWindow_; } else { return readTimeWindowBuilder_.getMessage(); } } /** + * + * *
          * Optional. The time window for the asset history. Both start_time and
          * end_time are optional and if set, it must be after the current time minus
    @@ -1242,7 +1415,9 @@ public com.google.cloud.asset.v1.TimeWindow getReadTimeWindow() {
          * window overlap with read_time_window.
          * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReadTimeWindow(com.google.cloud.asset.v1.TimeWindow value) { if (readTimeWindowBuilder_ == null) { @@ -1258,6 +1433,8 @@ public Builder setReadTimeWindow(com.google.cloud.asset.v1.TimeWindow value) { return this; } /** + * + * *
          * Optional. The time window for the asset history. Both start_time and
          * end_time are optional and if set, it must be after the current time minus
    @@ -1267,10 +1444,11 @@ public Builder setReadTimeWindow(com.google.cloud.asset.v1.TimeWindow value) {
          * window overlap with read_time_window.
          * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setReadTimeWindow( - com.google.cloud.asset.v1.TimeWindow.Builder builderForValue) { + public Builder setReadTimeWindow(com.google.cloud.asset.v1.TimeWindow.Builder builderForValue) { if (readTimeWindowBuilder_ == null) { readTimeWindow_ = builderForValue.build(); onChanged(); @@ -1281,6 +1459,8 @@ public Builder setReadTimeWindow( return this; } /** + * + * *
          * Optional. The time window for the asset history. Both start_time and
          * end_time are optional and if set, it must be after the current time minus
    @@ -1290,13 +1470,17 @@ public Builder setReadTimeWindow(
          * window overlap with read_time_window.
          * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeReadTimeWindow(com.google.cloud.asset.v1.TimeWindow value) { if (readTimeWindowBuilder_ == null) { if (readTimeWindow_ != null) { readTimeWindow_ = - com.google.cloud.asset.v1.TimeWindow.newBuilder(readTimeWindow_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.TimeWindow.newBuilder(readTimeWindow_) + .mergeFrom(value) + .buildPartial(); } else { readTimeWindow_ = value; } @@ -1308,6 +1492,8 @@ public Builder mergeReadTimeWindow(com.google.cloud.asset.v1.TimeWindow value) { return this; } /** + * + * *
          * Optional. The time window for the asset history. Both start_time and
          * end_time are optional and if set, it must be after the current time minus
    @@ -1317,7 +1503,9 @@ public Builder mergeReadTimeWindow(com.google.cloud.asset.v1.TimeWindow value) {
          * window overlap with read_time_window.
          * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearReadTimeWindow() { if (readTimeWindowBuilder_ == null) { @@ -1331,6 +1519,8 @@ public Builder clearReadTimeWindow() { return this; } /** + * + * *
          * Optional. The time window for the asset history. Both start_time and
          * end_time are optional and if set, it must be after the current time minus
    @@ -1340,14 +1530,18 @@ public Builder clearReadTimeWindow() {
          * window overlap with read_time_window.
          * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.asset.v1.TimeWindow.Builder getReadTimeWindowBuilder() { - + onChanged(); return getReadTimeWindowFieldBuilder().getBuilder(); } /** + * + * *
          * Optional. The time window for the asset history. Both start_time and
          * end_time are optional and if set, it must be after the current time minus
    @@ -1357,17 +1551,22 @@ public com.google.cloud.asset.v1.TimeWindow.Builder getReadTimeWindowBuilder() {
          * window overlap with read_time_window.
          * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder() { if (readTimeWindowBuilder_ != null) { return readTimeWindowBuilder_.getMessageOrBuilder(); } else { - return readTimeWindow_ == null ? - com.google.cloud.asset.v1.TimeWindow.getDefaultInstance() : readTimeWindow_; + return readTimeWindow_ == null + ? com.google.cloud.asset.v1.TimeWindow.getDefaultInstance() + : readTimeWindow_; } } /** + * + * *
          * Optional. The time window for the asset history. Both start_time and
          * end_time are optional and if set, it must be after the current time minus
    @@ -1377,30 +1576,39 @@ public com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder(
          * window overlap with read_time_window.
          * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.TimeWindow, com.google.cloud.asset.v1.TimeWindow.Builder, com.google.cloud.asset.v1.TimeWindowOrBuilder> + com.google.cloud.asset.v1.TimeWindow, + com.google.cloud.asset.v1.TimeWindow.Builder, + com.google.cloud.asset.v1.TimeWindowOrBuilder> getReadTimeWindowFieldBuilder() { if (readTimeWindowBuilder_ == null) { - readTimeWindowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.TimeWindow, com.google.cloud.asset.v1.TimeWindow.Builder, com.google.cloud.asset.v1.TimeWindowOrBuilder>( - getReadTimeWindow(), - getParentForChildren(), - isClean()); + readTimeWindowBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.TimeWindow, + com.google.cloud.asset.v1.TimeWindow.Builder, + com.google.cloud.asset.v1.TimeWindowOrBuilder>( + getReadTimeWindow(), getParentForChildren(), isClean()); readTimeWindow_ = null; } return readTimeWindowBuilder_; } - private com.google.protobuf.LazyStringList relationshipTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList relationshipTypes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRelationshipTypesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { relationshipTypes_ = new com.google.protobuf.LazyStringArrayList(relationshipTypes_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
          * Optional. A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1420,14 +1628,17 @@ private void ensureRelationshipTypesIsMutable() {
          * supported asset types and relationship types.
          * 
    * - * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the relationshipTypes. */ - public com.google.protobuf.ProtocolStringList - getRelationshipTypesList() { + public com.google.protobuf.ProtocolStringList getRelationshipTypesList() { return relationshipTypes_.getUnmodifiableView(); } /** + * + * *
          * Optional. A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1447,13 +1658,17 @@ private void ensureRelationshipTypesIsMutable() {
          * supported asset types and relationship types.
          * 
    * - * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of relationshipTypes. */ public int getRelationshipTypesCount() { return relationshipTypes_.size(); } /** + * + * *
          * Optional. A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1473,7 +1688,9 @@ public int getRelationshipTypesCount() {
          * supported asset types and relationship types.
          * 
    * - * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -1481,6 +1698,8 @@ public java.lang.String getRelationshipTypes(int index) { return relationshipTypes_.get(index); } /** + * + * *
          * Optional. A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1500,15 +1719,18 @@ public java.lang.String getRelationshipTypes(int index) {
          * supported asset types and relationship types.
          * 
    * - * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - public com.google.protobuf.ByteString - getRelationshipTypesBytes(int index) { + public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) { return relationshipTypes_.getByteString(index); } /** + * + * *
          * Optional. A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1528,22 +1750,25 @@ public java.lang.String getRelationshipTypes(int index) {
          * supported asset types and relationship types.
          * 
    * - * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The relationshipTypes to set. * @return This builder for chaining. */ - public Builder setRelationshipTypes( - int index, java.lang.String value) { + public Builder setRelationshipTypes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRelationshipTypesIsMutable(); + throw new NullPointerException(); + } + ensureRelationshipTypesIsMutable(); relationshipTypes_.set(index, value); onChanged(); return this; } /** + * + * *
          * Optional. A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1563,21 +1788,24 @@ public Builder setRelationshipTypes(
          * supported asset types and relationship types.
          * 
    * - * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The relationshipTypes to add. * @return This builder for chaining. */ - public Builder addRelationshipTypes( - java.lang.String value) { + public Builder addRelationshipTypes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRelationshipTypesIsMutable(); + throw new NullPointerException(); + } + ensureRelationshipTypesIsMutable(); relationshipTypes_.add(value); onChanged(); return this; } /** + * + * *
          * Optional. A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1597,19 +1825,21 @@ public Builder addRelationshipTypes(
          * supported asset types and relationship types.
          * 
    * - * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The relationshipTypes to add. * @return This builder for chaining. */ - public Builder addAllRelationshipTypes( - java.lang.Iterable values) { + public Builder addAllRelationshipTypes(java.lang.Iterable values) { ensureRelationshipTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, relationshipTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relationshipTypes_); onChanged(); return this; } /** + * + * *
          * Optional. A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1629,7 +1859,9 @@ public Builder addAllRelationshipTypes(
          * supported asset types and relationship types.
          * 
    * - * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearRelationshipTypes() { @@ -1639,6 +1871,8 @@ public Builder clearRelationshipTypes() { return this; } /** + * + * *
          * Optional. A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1658,24 +1892,25 @@ public Builder clearRelationshipTypes() {
          * supported asset types and relationship types.
          * 
    * - * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the relationshipTypes to add. * @return This builder for chaining. */ - public Builder addRelationshipTypesBytes( - com.google.protobuf.ByteString value) { + public Builder addRelationshipTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureRelationshipTypesIsMutable(); relationshipTypes_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1685,12 +1920,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.BatchGetAssetsHistoryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.BatchGetAssetsHistoryRequest) private static final com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest(); } @@ -1699,27 +1934,27 @@ public static com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchGetAssetsHistoryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchGetAssetsHistoryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1734,6 +1969,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequestOrBuilder.java similarity index 82% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequestOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequestOrBuilder.java index cfc137961ccd..eec14316902c 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface BatchGetAssetsHistoryRequestOrBuilder extends +public interface BatchGetAssetsHistoryRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.BatchGetAssetsHistoryRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The relative name of the root asset. It can only be an
        * organization number (such as "organizations/123"), a project ID (such as
        * "projects/my-project-id")", or a project number (such as "projects/12345").
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
        * Required. The relative name of the root asset. It can only be an
        * organization number (such as "organizations/123"), a project ID (such as
        * "projects/my-project-id")", or a project number (such as "projects/12345").
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
        * A list of the full names of the assets.
        * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -42,11 +69,13 @@ public interface BatchGetAssetsHistoryRequestOrBuilder extends
        * 
    * * repeated string asset_names = 2; + * * @return A list containing the assetNames. */ - java.util.List - getAssetNamesList(); + java.util.List getAssetNamesList(); /** + * + * *
        * A list of the full names of the assets.
        * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -57,10 +86,13 @@ public interface BatchGetAssetsHistoryRequestOrBuilder extends
        * 
    * * repeated string asset_names = 2; + * * @return The count of assetNames. */ int getAssetNamesCount(); /** + * + * *
        * A list of the full names of the assets.
        * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -71,11 +103,14 @@ public interface BatchGetAssetsHistoryRequestOrBuilder extends
        * 
    * * repeated string asset_names = 2; + * * @param index The index of the element to return. * @return The assetNames at the given index. */ java.lang.String getAssetNames(int index); /** + * + * *
        * A list of the full names of the assets.
        * See: https://cloud.google.com/asset-inventory/docs/resource-name-format
    @@ -86,32 +121,44 @@ public interface BatchGetAssetsHistoryRequestOrBuilder extends
        * 
    * * repeated string asset_names = 2; + * * @param index The index of the value to return. * @return The bytes of the assetNames at the given index. */ - com.google.protobuf.ByteString - getAssetNamesBytes(int index); + com.google.protobuf.ByteString getAssetNamesBytes(int index); /** + * + * *
        * Optional. The content type.
        * 
    * - * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for contentType. */ int getContentTypeValue(); /** + * + * *
        * Optional. The content type.
        * 
    * - * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The contentType. */ com.google.cloud.asset.v1.ContentType getContentType(); /** + * + * *
        * Optional. The time window for the asset history. Both start_time and
        * end_time are optional and if set, it must be after the current time minus
    @@ -121,11 +168,16 @@ public interface BatchGetAssetsHistoryRequestOrBuilder extends
        * window overlap with read_time_window.
        * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readTimeWindow field is set. */ boolean hasReadTimeWindow(); /** + * + * *
        * Optional. The time window for the asset history. Both start_time and
        * end_time are optional and if set, it must be after the current time minus
    @@ -135,11 +187,16 @@ public interface BatchGetAssetsHistoryRequestOrBuilder extends
        * window overlap with read_time_window.
        * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readTimeWindow. */ com.google.cloud.asset.v1.TimeWindow getReadTimeWindow(); /** + * + * *
        * Optional. The time window for the asset history. Both start_time and
        * end_time are optional and if set, it must be after the current time minus
    @@ -149,11 +206,15 @@ public interface BatchGetAssetsHistoryRequestOrBuilder extends
        * window overlap with read_time_window.
        * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder(); /** + * + * *
        * Optional. A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -174,11 +235,13 @@ public interface BatchGetAssetsHistoryRequestOrBuilder extends
        * 
    * * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the relationshipTypes. */ - java.util.List - getRelationshipTypesList(); + java.util.List getRelationshipTypesList(); /** + * + * *
        * Optional. A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -199,10 +262,13 @@ public interface BatchGetAssetsHistoryRequestOrBuilder extends
        * 
    * * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of relationshipTypes. */ int getRelationshipTypesCount(); /** + * + * *
        * Optional. A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -223,11 +289,14 @@ public interface BatchGetAssetsHistoryRequestOrBuilder extends
        * 
    * * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ java.lang.String getRelationshipTypes(int index); /** + * + * *
        * Optional. A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -248,9 +317,9 @@ public interface BatchGetAssetsHistoryRequestOrBuilder extends
        * 
    * * repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - com.google.protobuf.ByteString - getRelationshipTypesBytes(int index); + com.google.protobuf.ByteString getRelationshipTypesBytes(int index); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponse.java similarity index 70% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponse.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponse.java index 4bbb183f5d77..3b12b5200907 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponse.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponse.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * Batch get assets history response.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.BatchGetAssetsHistoryResponse} */ -public final class BatchGetAssetsHistoryResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchGetAssetsHistoryResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.BatchGetAssetsHistoryResponse) BatchGetAssetsHistoryResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchGetAssetsHistoryResponse.newBuilder() to construct. private BatchGetAssetsHistoryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchGetAssetsHistoryResponse() { assets_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchGetAssetsHistoryResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.class, com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.Builder.class); + com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.class, + com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.Builder.class); } public static final int ASSETS_FIELD_NUMBER = 1; private java.util.List assets_; /** + * + * *
        * A list of assets with valid time windows.
        * 
    @@ -62,6 +83,8 @@ public java.util.List getAssetsList() { return assets_; } /** + * + * *
        * A list of assets with valid time windows.
        * 
    @@ -69,11 +92,13 @@ public java.util.List getAssetsList() { * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getAssetsOrBuilderList() { return assets_; } /** + * + * *
        * A list of assets with valid time windows.
        * 
    @@ -85,6 +110,8 @@ public int getAssetsCount() { return assets_.size(); } /** + * + * *
        * A list of assets with valid time windows.
        * 
    @@ -96,6 +123,8 @@ public com.google.cloud.asset.v1.TemporalAsset getAssets(int index) { return assets_.get(index); } /** + * + * *
        * A list of assets with valid time windows.
        * 
    @@ -103,12 +132,12 @@ public com.google.cloud.asset.v1.TemporalAsset getAssets(int index) { * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ @java.lang.Override - public com.google.cloud.asset.v1.TemporalAssetOrBuilder getAssetsOrBuilder( - int index) { + public com.google.cloud.asset.v1.TemporalAssetOrBuilder getAssetsOrBuilder(int index) { return assets_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +149,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < assets_.size(); i++) { output.writeMessage(1, assets_.get(i)); } @@ -135,8 +163,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < assets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, assets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, assets_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -146,15 +173,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse other = (com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse) obj; + com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse other = + (com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse) obj; - if (!getAssetsList() - .equals(other.getAssetsList())) return false; + if (!getAssetsList().equals(other.getAssetsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -176,129 +203,136 @@ public int hashCode() { } public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse 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.asset.v1.BatchGetAssetsHistoryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Batch get assets history response.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.BatchGetAssetsHistoryResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.BatchGetAssetsHistoryResponse) com.google.cloud.asset.v1.BatchGetAssetsHistoryResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.class, com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.Builder.class); + com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.class, + com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.Builder.class); } // Construct using com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -313,9 +347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor; } @java.lang.Override @@ -334,7 +368,8 @@ public com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse build() { @java.lang.Override public com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse buildPartial() { - com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse result = new com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse(this); + com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse result = + new com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse(this); int from_bitField0_ = bitField0_; if (assetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -353,38 +388,39 @@ public com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.BatchGetAssetsHistoryResponse) { - return mergeFrom((com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse)other); + return mergeFrom((com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse) other); } else { super.mergeFrom(other); return this; @@ -392,7 +428,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse other) { - if (other == com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.getDefaultInstance()) + return this; if (assetsBuilder_ == null) { if (!other.assets_.isEmpty()) { if (assets_.isEmpty()) { @@ -411,9 +448,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse assetsBuilder_ = null; assets_ = other.assets_; bitField0_ = (bitField0_ & ~0x00000001); - assetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAssetsFieldBuilder() : null; + assetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAssetsFieldBuilder() + : null; } else { assetsBuilder_.addAllMessages(other.assets_); } @@ -445,25 +483,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.asset.v1.TemporalAsset m = - input.readMessage( - com.google.cloud.asset.v1.TemporalAsset.parser(), - extensionRegistry); - if (assetsBuilder_ == null) { - ensureAssetsIsMutable(); - assets_.add(m); - } else { - assetsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.asset.v1.TemporalAsset m = + input.readMessage( + com.google.cloud.asset.v1.TemporalAsset.parser(), extensionRegistry); + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.add(m); + } else { + assetsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -473,21 +512,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List assets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAssetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assets_ = new java.util.ArrayList(assets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.TemporalAsset, com.google.cloud.asset.v1.TemporalAsset.Builder, com.google.cloud.asset.v1.TemporalAssetOrBuilder> assetsBuilder_; + com.google.cloud.asset.v1.TemporalAsset, + com.google.cloud.asset.v1.TemporalAsset.Builder, + com.google.cloud.asset.v1.TemporalAssetOrBuilder> + assetsBuilder_; /** + * + * *
          * A list of assets with valid time windows.
          * 
    @@ -502,6 +548,8 @@ public java.util.List getAssetsList() { } } /** + * + * *
          * A list of assets with valid time windows.
          * 
    @@ -516,6 +564,8 @@ public int getAssetsCount() { } } /** + * + * *
          * A list of assets with valid time windows.
          * 
    @@ -530,14 +580,15 @@ public com.google.cloud.asset.v1.TemporalAsset getAssets(int index) { } } /** + * + * *
          * A list of assets with valid time windows.
          * 
    * * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ - public Builder setAssets( - int index, com.google.cloud.asset.v1.TemporalAsset value) { + public Builder setAssets(int index, com.google.cloud.asset.v1.TemporalAsset value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -551,6 +602,8 @@ public Builder setAssets( return this; } /** + * + * *
          * A list of assets with valid time windows.
          * 
    @@ -569,6 +622,8 @@ public Builder setAssets( return this; } /** + * + * *
          * A list of assets with valid time windows.
          * 
    @@ -589,14 +644,15 @@ public Builder addAssets(com.google.cloud.asset.v1.TemporalAsset value) { return this; } /** + * + * *
          * A list of assets with valid time windows.
          * 
    * * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ - public Builder addAssets( - int index, com.google.cloud.asset.v1.TemporalAsset value) { + public Builder addAssets(int index, com.google.cloud.asset.v1.TemporalAsset value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -610,14 +666,15 @@ public Builder addAssets( return this; } /** + * + * *
          * A list of assets with valid time windows.
          * 
    * * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ - public Builder addAssets( - com.google.cloud.asset.v1.TemporalAsset.Builder builderForValue) { + public Builder addAssets(com.google.cloud.asset.v1.TemporalAsset.Builder builderForValue) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.add(builderForValue.build()); @@ -628,6 +685,8 @@ public Builder addAssets( return this; } /** + * + * *
          * A list of assets with valid time windows.
          * 
    @@ -646,6 +705,8 @@ public Builder addAssets( return this; } /** + * + * *
          * A list of assets with valid time windows.
          * 
    @@ -656,8 +717,7 @@ public Builder addAllAssets( java.lang.Iterable values) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, assets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assets_); onChanged(); } else { assetsBuilder_.addAllMessages(values); @@ -665,6 +725,8 @@ public Builder addAllAssets( return this; } /** + * + * *
          * A list of assets with valid time windows.
          * 
    @@ -682,6 +744,8 @@ public Builder clearAssets() { return this; } /** + * + * *
          * A list of assets with valid time windows.
          * 
    @@ -699,39 +763,44 @@ public Builder removeAssets(int index) { return this; } /** + * + * *
          * A list of assets with valid time windows.
          * 
    * * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ - public com.google.cloud.asset.v1.TemporalAsset.Builder getAssetsBuilder( - int index) { + public com.google.cloud.asset.v1.TemporalAsset.Builder getAssetsBuilder(int index) { return getAssetsFieldBuilder().getBuilder(index); } /** + * + * *
          * A list of assets with valid time windows.
          * 
    * * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ - public com.google.cloud.asset.v1.TemporalAssetOrBuilder getAssetsOrBuilder( - int index) { + public com.google.cloud.asset.v1.TemporalAssetOrBuilder getAssetsOrBuilder(int index) { if (assetsBuilder_ == null) { - return assets_.get(index); } else { + return assets_.get(index); + } else { return assetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
          * A list of assets with valid time windows.
          * 
    * * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ - public java.util.List - getAssetsOrBuilderList() { + public java.util.List + getAssetsOrBuilderList() { if (assetsBuilder_ != null) { return assetsBuilder_.getMessageOrBuilderList(); } else { @@ -739,6 +808,8 @@ public com.google.cloud.asset.v1.TemporalAssetOrBuilder getAssetsOrBuilder( } } /** + * + * *
          * A list of assets with valid time windows.
          * 
    @@ -746,49 +817,54 @@ public com.google.cloud.asset.v1.TemporalAssetOrBuilder getAssetsOrBuilder( * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ public com.google.cloud.asset.v1.TemporalAsset.Builder addAssetsBuilder() { - return getAssetsFieldBuilder().addBuilder( - com.google.cloud.asset.v1.TemporalAsset.getDefaultInstance()); + return getAssetsFieldBuilder() + .addBuilder(com.google.cloud.asset.v1.TemporalAsset.getDefaultInstance()); } /** + * + * *
          * A list of assets with valid time windows.
          * 
    * * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ - public com.google.cloud.asset.v1.TemporalAsset.Builder addAssetsBuilder( - int index) { - return getAssetsFieldBuilder().addBuilder( - index, com.google.cloud.asset.v1.TemporalAsset.getDefaultInstance()); + public com.google.cloud.asset.v1.TemporalAsset.Builder addAssetsBuilder(int index) { + return getAssetsFieldBuilder() + .addBuilder(index, com.google.cloud.asset.v1.TemporalAsset.getDefaultInstance()); } /** + * + * *
          * A list of assets with valid time windows.
          * 
    * * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ - public java.util.List - getAssetsBuilderList() { + public java.util.List getAssetsBuilderList() { return getAssetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.TemporalAsset, com.google.cloud.asset.v1.TemporalAsset.Builder, com.google.cloud.asset.v1.TemporalAssetOrBuilder> + com.google.cloud.asset.v1.TemporalAsset, + com.google.cloud.asset.v1.TemporalAsset.Builder, + com.google.cloud.asset.v1.TemporalAssetOrBuilder> getAssetsFieldBuilder() { if (assetsBuilder_ == null) { - assetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.TemporalAsset, com.google.cloud.asset.v1.TemporalAsset.Builder, com.google.cloud.asset.v1.TemporalAssetOrBuilder>( - assets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + assetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.TemporalAsset, + com.google.cloud.asset.v1.TemporalAsset.Builder, + com.google.cloud.asset.v1.TemporalAssetOrBuilder>( + assets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); assets_ = null; } return assetsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -798,12 +874,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.BatchGetAssetsHistoryResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.BatchGetAssetsHistoryResponse) private static final com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse(); } @@ -812,27 +888,27 @@ public static com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchGetAssetsHistoryResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchGetAssetsHistoryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -847,6 +923,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponseOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponseOrBuilder.java similarity index 62% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponseOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponseOrBuilder.java index 70e9d55a250e..22976e616b9e 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponseOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface BatchGetAssetsHistoryResponseOrBuilder extends +public interface BatchGetAssetsHistoryResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.BatchGetAssetsHistoryResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * A list of assets with valid time windows.
        * 
    * * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ - java.util.List - getAssetsList(); + java.util.List getAssetsList(); /** + * + * *
        * A list of assets with valid time windows.
        * 
    @@ -25,6 +44,8 @@ public interface BatchGetAssetsHistoryResponseOrBuilder extends */ com.google.cloud.asset.v1.TemporalAsset getAssets(int index); /** + * + * *
        * A list of assets with valid time windows.
        * 
    @@ -33,21 +54,24 @@ public interface BatchGetAssetsHistoryResponseOrBuilder extends */ int getAssetsCount(); /** + * + * *
        * A list of assets with valid time windows.
        * 
    * * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ - java.util.List + java.util.List getAssetsOrBuilderList(); /** + * + * *
        * A list of assets with valid time windows.
        * 
    * * repeated .google.cloud.asset.v1.TemporalAsset assets = 1; */ - com.google.cloud.asset.v1.TemporalAssetOrBuilder getAssetsOrBuilder( - int index); + com.google.cloud.asset.v1.TemporalAssetOrBuilder getAssetsOrBuilder(int index); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequest.java similarity index 68% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequest.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequest.java index bebd9583df73..0862a32b34fd 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequest.java @@ -1,24 +1,44 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * A request message for [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
      * 
    * * Protobuf type {@code google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest} */ -public final class BatchGetEffectiveIamPoliciesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchGetEffectiveIamPoliciesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest) BatchGetEffectiveIamPoliciesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchGetEffectiveIamPoliciesRequest.newBuilder() to construct. - private BatchGetEffectiveIamPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchGetEffectiveIamPoliciesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchGetEffectiveIamPoliciesRequest() { scope_ = ""; names_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -26,32 +46,35 @@ private BatchGetEffectiveIamPoliciesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchGetEffectiveIamPoliciesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.class, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.Builder.class); + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.class, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.Builder.class); } public static final int SCOPE_FIELD_NUMBER = 1; private volatile java.lang.Object scope_; /** + * + * *
        * Required. Only IAM policies on or below the scope will be returned.
        * This can only be an organization number (such as "organizations/123"), a
    @@ -63,7 +86,10 @@ protected java.lang.Object newInstance(
        * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
        * 
    * - * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The scope. */ @java.lang.Override @@ -72,14 +98,15 @@ public java.lang.String getScope() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; } } /** + * + * *
        * Required. Only IAM policies on or below the scope will be returned.
        * This can only be an organization number (such as "organizations/123"), a
    @@ -91,17 +118,18 @@ public java.lang.String getScope() {
        * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
        * 
    * - * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for scope. */ @java.lang.Override - public com.google.protobuf.ByteString - getScopeBytes() { + public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); scope_ = b; return b; } else { @@ -112,6 +140,8 @@ public java.lang.String getScope() { public static final int NAMES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList names_; /** + * + * *
        * Required. The names refer to the [full_resource_names]
        * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -120,14 +150,18 @@ public java.lang.String getScope() {
        * A maximum of 20 resources' effective policies can be retrieved in a batch.
        * 
    * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the names. */ - public com.google.protobuf.ProtocolStringList - getNamesList() { + public com.google.protobuf.ProtocolStringList getNamesList() { return names_; } /** + * + * *
        * Required. The names refer to the [full_resource_names]
        * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -136,13 +170,18 @@ public java.lang.String getScope() {
        * A maximum of 20 resources' effective policies can be retrieved in a batch.
        * 
    * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The count of names. */ public int getNamesCount() { return names_.size(); } /** + * + * *
        * Required. The names refer to the [full_resource_names]
        * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -151,7 +190,10 @@ public int getNamesCount() {
        * A maximum of 20 resources' effective policies can be retrieved in a batch.
        * 
    * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The names at the given index. */ @@ -159,6 +201,8 @@ public java.lang.String getNames(int index) { return names_.get(index); } /** + * + * *
        * Required. The names refer to the [full_resource_names]
        * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -167,16 +211,19 @@ public java.lang.String getNames(int index) {
        * A maximum of 20 resources' effective policies can be retrieved in a batch.
        * 
    * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the names at the given index. */ - public com.google.protobuf.ByteString - getNamesBytes(int index) { + public com.google.protobuf.ByteString getNamesBytes(int index) { return names_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,8 +235,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scope_); } @@ -224,17 +270,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest other = (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest) obj; + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest other = + (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest) obj; - if (!getScope() - .equals(other.getScope())) return false; - if (!getNamesList() - .equals(other.getNamesList())) return false; + if (!getScope().equals(other.getScope())) return false; + if (!getNamesList().equals(other.getNamesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -258,129 +303,136 @@ public int hashCode() { } public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest 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.asset.v1.BatchGetEffectiveIamPoliciesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * A request message for [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
        * 
    * * Protobuf type {@code google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest) com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.class, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.Builder.class); + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.class, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -392,13 +444,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest getDefaultInstanceForType() { + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest + getDefaultInstanceForType() { return com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.getDefaultInstance(); } @@ -413,7 +466,8 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest build() { @java.lang.Override public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest buildPartial() { - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest result = new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest(this); + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest result = + new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest(this); int from_bitField0_ = bitField0_; result.scope_ = scope_; if (((bitField0_ & 0x00000001) != 0)) { @@ -429,38 +483,39 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.BatchGetEffectiveIamPoliciesRequest) { - return mergeFrom((com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest)other); + return mergeFrom((com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest) other); } else { super.mergeFrom(other); return this; @@ -468,7 +523,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest other) { - if (other == com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.getDefaultInstance()) + return this; if (!other.getScope().isEmpty()) { scope_ = other.scope_; onChanged(); @@ -509,23 +566,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - scope_ = input.readStringRequireUtf8(); + case 10: + { + scope_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureNamesIsMutable(); - names_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 10 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -535,10 +595,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object scope_ = ""; /** + * + * *
          * Required. Only IAM policies on or below the scope will be returned.
          * This can only be an organization number (such as "organizations/123"), a
    @@ -550,14 +613,16 @@ public Builder mergeFrom(
          * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
          * 
    * - * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The scope. */ public java.lang.String getScope() { java.lang.Object ref = scope_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; @@ -566,6 +631,8 @@ public java.lang.String getScope() { } } /** + * + * *
          * Required. Only IAM policies on or below the scope will be returned.
          * This can only be an organization number (such as "organizations/123"), a
    @@ -577,16 +644,17 @@ public java.lang.String getScope() {
          * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
          * 
    * - * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for scope. */ - public com.google.protobuf.ByteString - getScopeBytes() { + public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); scope_ = b; return b; } else { @@ -594,6 +662,8 @@ public java.lang.String getScope() { } } /** + * + * *
          * Required. Only IAM policies on or below the scope will be returned.
          * This can only be an organization number (such as "organizations/123"), a
    @@ -605,21 +675,25 @@ public java.lang.String getScope() {
          * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
          * 
    * - * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The scope to set. * @return This builder for chaining. */ - public Builder setScope( - java.lang.String value) { + public Builder setScope(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + scope_ = value; onChanged(); return this; } /** + * + * *
          * Required. Only IAM policies on or below the scope will be returned.
          * This can only be an organization number (such as "organizations/123"), a
    @@ -631,16 +705,21 @@ public Builder setScope(
          * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
          * 
    * - * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearScope() { - + scope_ = getDefaultInstance().getScope(); onChanged(); return this; } /** + * + * *
          * Required. Only IAM policies on or below the scope will be returned.
          * This can only be an organization number (such as "organizations/123"), a
    @@ -652,30 +731,36 @@ public Builder clearScope() {
          * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
          * 
    * - * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for scope to set. * @return This builder for chaining. */ - public Builder setScopeBytes( - com.google.protobuf.ByteString value) { + public Builder setScopeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scope_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList names_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList names_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { names_ = new com.google.protobuf.LazyStringArrayList(names_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
          * Required. The names refer to the [full_resource_names]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -684,14 +769,18 @@ private void ensureNamesIsMutable() {
          * A maximum of 20 resources' effective policies can be retrieved in a batch.
          * 
    * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the names. */ - public com.google.protobuf.ProtocolStringList - getNamesList() { + public com.google.protobuf.ProtocolStringList getNamesList() { return names_.getUnmodifiableView(); } /** + * + * *
          * Required. The names refer to the [full_resource_names]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -700,13 +789,18 @@ private void ensureNamesIsMutable() {
          * A maximum of 20 resources' effective policies can be retrieved in a batch.
          * 
    * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The count of names. */ public int getNamesCount() { return names_.size(); } /** + * + * *
          * Required. The names refer to the [full_resource_names]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -715,7 +809,10 @@ public int getNamesCount() {
          * A maximum of 20 resources' effective policies can be retrieved in a batch.
          * 
    * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The names at the given index. */ @@ -723,6 +820,8 @@ public java.lang.String getNames(int index) { return names_.get(index); } /** + * + * *
          * Required. The names refer to the [full_resource_names]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -731,15 +830,19 @@ public java.lang.String getNames(int index) {
          * A maximum of 20 resources' effective policies can be retrieved in a batch.
          * 
    * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the names at the given index. */ - public com.google.protobuf.ByteString - getNamesBytes(int index) { + public com.google.protobuf.ByteString getNamesBytes(int index) { return names_.getByteString(index); } /** + * + * *
          * Required. The names refer to the [full_resource_names]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -748,22 +851,26 @@ public java.lang.String getNames(int index) {
          * A maximum of 20 resources' effective policies can be retrieved in a batch.
          * 
    * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param index The index to set the value at. * @param value The names to set. * @return This builder for chaining. */ - public Builder setNames( - int index, java.lang.String value) { + public Builder setNames(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNamesIsMutable(); + throw new NullPointerException(); + } + ensureNamesIsMutable(); names_.set(index, value); onChanged(); return this; } /** + * + * *
          * Required. The names refer to the [full_resource_names]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -772,21 +879,25 @@ public Builder setNames(
          * A maximum of 20 resources' effective policies can be retrieved in a batch.
          * 
    * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The names to add. * @return This builder for chaining. */ - public Builder addNames( - java.lang.String value) { + public Builder addNames(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNamesIsMutable(); + throw new NullPointerException(); + } + ensureNamesIsMutable(); names_.add(value); onChanged(); return this; } /** + * + * *
          * Required. The names refer to the [full_resource_names]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -795,19 +906,22 @@ public Builder addNames(
          * A maximum of 20 resources' effective policies can be retrieved in a batch.
          * 
    * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param values The names to add. * @return This builder for chaining. */ - public Builder addAllNames( - java.lang.Iterable values) { + public Builder addAllNames(java.lang.Iterable values) { ensureNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, names_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); onChanged(); return this; } /** + * + * *
          * Required. The names refer to the [full_resource_names]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -816,7 +930,10 @@ public Builder addAllNames(
          * A maximum of 20 resources' effective policies can be retrieved in a batch.
          * 
    * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearNames() { @@ -826,6 +943,8 @@ public Builder clearNames() { return this; } /** + * + * *
          * Required. The names refer to the [full_resource_names]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -834,24 +953,26 @@ public Builder clearNames() {
          * A maximum of 20 resources' effective policies can be retrieved in a batch.
          * 
    * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes of the names to add. * @return This builder for chaining. */ - public Builder addNamesBytes( - com.google.protobuf.ByteString value) { + public Builder addNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureNamesIsMutable(); names_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -861,12 +982,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest) - private static final com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest(); } @@ -875,27 +997,27 @@ public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchGetEffectiveIamPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchGetEffectiveIamPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -910,6 +1032,4 @@ public com.google.protobuf.Parser getParser public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequestOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequestOrBuilder.java index f75a8b07cda0..90bbc28f3afd 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface BatchGetEffectiveIamPoliciesRequestOrBuilder extends +public interface BatchGetEffectiveIamPoliciesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. Only IAM policies on or below the scope will be returned.
        * This can only be an organization number (such as "organizations/123"), a
    @@ -19,11 +37,16 @@ public interface BatchGetEffectiveIamPoliciesRequestOrBuilder extends
        * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
        * 
    * - * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The scope. */ java.lang.String getScope(); /** + * + * *
        * Required. Only IAM policies on or below the scope will be returned.
        * This can only be an organization number (such as "organizations/123"), a
    @@ -35,13 +58,17 @@ public interface BatchGetEffectiveIamPoliciesRequestOrBuilder extends
        * ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
        * 
    * - * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for scope. */ - com.google.protobuf.ByteString - getScopeBytes(); + com.google.protobuf.ByteString getScopeBytes(); /** + * + * *
        * Required. The names refer to the [full_resource_names]
        * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -50,12 +77,16 @@ public interface BatchGetEffectiveIamPoliciesRequestOrBuilder extends
        * A maximum of 20 resources' effective policies can be retrieved in a batch.
        * 
    * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the names. */ - java.util.List - getNamesList(); + java.util.List getNamesList(); /** + * + * *
        * Required. The names refer to the [full_resource_names]
        * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -64,11 +95,16 @@ public interface BatchGetEffectiveIamPoliciesRequestOrBuilder extends
        * A maximum of 20 resources' effective policies can be retrieved in a batch.
        * 
    * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The count of names. */ int getNamesCount(); /** + * + * *
        * Required. The names refer to the [full_resource_names]
        * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -77,12 +113,17 @@ public interface BatchGetEffectiveIamPoliciesRequestOrBuilder extends
        * A maximum of 20 resources' effective policies can be retrieved in a batch.
        * 
    * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The names at the given index. */ java.lang.String getNames(int index); /** + * + * *
        * Required. The names refer to the [full_resource_names]
        * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -91,10 +132,12 @@ public interface BatchGetEffectiveIamPoliciesRequestOrBuilder extends
        * A maximum of 20 resources' effective policies can be retrieved in a batch.
        * 
    * - * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string names = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the names at the given index. */ - com.google.protobuf.ByteString - getNamesBytes(int index); + com.google.protobuf.ByteString getNamesBytes(int index); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponse.java similarity index 71% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponse.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponse.java index 3b35f780f8a5..ff1d176cab29 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponse.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponse.java @@ -1,58 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * A response message for [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
      * 
    * * Protobuf type {@code google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse} */ -public final class BatchGetEffectiveIamPoliciesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchGetEffectiveIamPoliciesResponse + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse) BatchGetEffectiveIamPoliciesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchGetEffectiveIamPoliciesResponse.newBuilder() to construct. - private BatchGetEffectiveIamPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchGetEffectiveIamPoliciesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchGetEffectiveIamPoliciesResponse() { policyResults_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchGetEffectiveIamPoliciesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.class, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.Builder.class); + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.class, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.Builder.class); } - public interface EffectiveIamPolicyOrBuilder extends + public interface EffectiveIamPolicyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * The [full_resource_name]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -62,10 +86,13 @@ public interface EffectiveIamPolicyOrBuilder extends
          * 
    * * string full_resource_name = 1; + * * @return The fullResourceName. */ java.lang.String getFullResourceName(); /** + * + * *
          * The [full_resource_name]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -75,12 +102,14 @@ public interface EffectiveIamPolicyOrBuilder extends
          * 
    * * string full_resource_name = 1; + * * @return The bytes for fullResourceName. */ - com.google.protobuf.ByteString - getFullResourceNameBytes(); + com.google.protobuf.ByteString getFullResourceNameBytes(); /** + * + * *
          * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
          * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -95,11 +124,17 @@ public interface EffectiveIamPolicyOrBuilder extends
          * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ - java.util.List + java.util.List< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo> getPoliciesList(); /** + * + * *
          * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
          * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -114,10 +149,15 @@ public interface EffectiveIamPolicyOrBuilder extends
          * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo getPolicies(int index); + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo + getPolicies(int index); /** + * + * *
          * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
          * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -132,10 +172,14 @@ public interface EffectiveIamPolicyOrBuilder extends
          * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ int getPoliciesCount(); /** + * + * *
          * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
          * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -150,11 +194,18 @@ public interface EffectiveIamPolicyOrBuilder extends
          * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfoOrBuilder> getPoliciesOrBuilderList(); /** + * + * *
          * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
          * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -169,27 +220,34 @@ public interface EffectiveIamPolicyOrBuilder extends
          * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfoOrBuilder getPoliciesOrBuilder( - int index); + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfoOrBuilder + getPoliciesOrBuilder(int index); } /** + * + * *
        * The effective IAM policies on one resource.
        * 
    * - * Protobuf type {@code google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy} + * Protobuf type {@code + * google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy} */ - public static final class EffectiveIamPolicy extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class EffectiveIamPolicy extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) EffectiveIamPolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EffectiveIamPolicy.newBuilder() to construct. private EffectiveIamPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EffectiveIamPolicy() { fullResourceName_ = ""; policies_ = java.util.Collections.emptyList(); @@ -197,72 +255,89 @@ private EffectiveIamPolicy() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EffectiveIamPolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.class, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder.class); + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .class, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .Builder.class); } - public interface PolicyInfoOrBuilder extends + public interface PolicyInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
            * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
            * 
    * * string attached_resource = 1; + * * @return The attachedResource. */ java.lang.String getAttachedResource(); /** + * + * *
            * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
            * 
    * * string attached_resource = 1; + * * @return The bytes for attachedResource. */ - com.google.protobuf.ByteString - getAttachedResourceBytes(); + com.google.protobuf.ByteString getAttachedResourceBytes(); /** + * + * *
            * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
            * 
    * * .google.iam.v1.Policy policy = 2; + * * @return Whether the policy field is set. */ boolean hasPolicy(); /** + * + * *
            * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
            * 
    * * .google.iam.v1.Policy policy = 2; + * * @return The policy. */ com.google.iam.v1.Policy getPolicy(); /** + * + * *
            * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
            * 
    @@ -272,58 +347,68 @@ public interface PolicyInfoOrBuilder extends com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder(); } /** + * + * *
          * The IAM policy and its attached resource.
          * 
    * - * Protobuf type {@code google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo} + * Protobuf type {@code + * google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo} */ - public static final class PolicyInfo extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class PolicyInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo) PolicyInfoOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PolicyInfo.newBuilder() to construct. private PolicyInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PolicyInfo() { attachedResource_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PolicyInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.class, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.Builder.class); + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo.class, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo.Builder.class); } public static final int ATTACHED_RESOURCE_FIELD_NUMBER = 1; private volatile java.lang.Object attachedResource_; /** + * + * *
            * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
            * 
    * * string attached_resource = 1; + * * @return The attachedResource. */ @java.lang.Override @@ -332,29 +417,29 @@ public java.lang.String getAttachedResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attachedResource_ = s; return s; } } /** + * + * *
            * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
            * 
    * * string attached_resource = 1; + * * @return The bytes for attachedResource. */ @java.lang.Override - public com.google.protobuf.ByteString - getAttachedResourceBytes() { + public com.google.protobuf.ByteString getAttachedResourceBytes() { java.lang.Object ref = attachedResource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); attachedResource_ = b; return b; } else { @@ -365,11 +450,14 @@ public java.lang.String getAttachedResource() { public static final int POLICY_FIELD_NUMBER = 2; private com.google.iam.v1.Policy policy_; /** + * + * *
            * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
            * 
    * * .google.iam.v1.Policy policy = 2; + * * @return Whether the policy field is set. */ @java.lang.Override @@ -377,11 +465,14 @@ public boolean hasPolicy() { return policy_ != null; } /** + * + * *
            * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
            * 
    * * .google.iam.v1.Policy policy = 2; + * * @return The policy. */ @java.lang.Override @@ -389,6 +480,8 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** + * + * *
            * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
            * 
    @@ -401,6 +494,7 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -412,8 +506,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attachedResource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attachedResource_); } @@ -433,8 +526,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, attachedResource_); } if (policy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -444,19 +536,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo)) { + if (!(obj + instanceof + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo)) { return super.equals(obj); } - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo other = (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo) obj; + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo + other = + (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo) + obj; - if (!getAttachedResource() - .equals(other.getAttachedResource())) return false; + if (!getAttachedResource().equals(other.getAttachedResource())) return false; if (hasPolicy() != other.hasPolicy()) return false; if (hasPolicy()) { - if (!getPolicy() - .equals(other.getPolicy())) return false; + if (!getPolicy().equals(other.getPolicy())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -480,88 +577,117 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicy.PolicyInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicy.PolicyInfo + 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicy.PolicyInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicy.PolicyInfo + 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicy.PolicyInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicy.PolicyInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicy.PolicyInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo 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.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicy.PolicyInfo + 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicy.PolicyInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo 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.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicy.PolicyInfo + 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicy.PolicyInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicy.PolicyInfo + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -571,39 +697,46 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
            * The IAM policy and its attached resource.
            * 
    * - * Protobuf type {@code google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo} + * Protobuf type {@code + * google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo) - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor; + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.class, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.Builder.class); + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo.class, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo.Builder.class); } - // Construct using com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -619,19 +752,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo getDefaultInstanceForType() { - return com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.getDefaultInstance(); + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo + getDefaultInstanceForType() { + return com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo build() { - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo result = buildPartial(); + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo + build() { + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -639,8 +779,14 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI } @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo buildPartial() { - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo result = new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo(this); + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo + buildPartial() { + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo + result = + new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicy.PolicyInfo(this); result.attachedResource_ = attachedResource_; if (policyBuilder_ == null) { result.policy_ = policy_; @@ -655,46 +801,60 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo) { - return mergeFrom((com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo)other); + if (other + instanceof + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo) { + return mergeFrom( + (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo other) { - if (other == com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo + other) { + if (other + == com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo.getDefaultInstance()) return this; if (!other.getAttachedResource().isEmpty()) { attachedResource_ = other.attachedResource_; onChanged(); @@ -728,24 +888,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - attachedResource_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getPolicyFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + attachedResource_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -758,18 +919,20 @@ public Builder mergeFrom( private java.lang.Object attachedResource_ = ""; /** + * + * *
              * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
              * 
    * * string attached_resource = 1; + * * @return The attachedResource. */ public java.lang.String getAttachedResource() { java.lang.Object ref = attachedResource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attachedResource_ = s; return s; @@ -778,20 +941,21 @@ public java.lang.String getAttachedResource() { } } /** + * + * *
              * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
              * 
    * * string attached_resource = 1; + * * @return The bytes for attachedResource. */ - public com.google.protobuf.ByteString - getAttachedResourceBytes() { + public com.google.protobuf.ByteString getAttachedResourceBytes() { java.lang.Object ref = attachedResource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); attachedResource_ = b; return b; } else { @@ -799,54 +963,61 @@ public java.lang.String getAttachedResource() { } } /** + * + * *
              * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
              * 
    * * string attached_resource = 1; + * * @param value The attachedResource to set. * @return This builder for chaining. */ - public Builder setAttachedResource( - java.lang.String value) { + public Builder setAttachedResource(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + attachedResource_ = value; onChanged(); return this; } /** + * + * *
              * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
              * 
    * * string attached_resource = 1; + * * @return This builder for chaining. */ public Builder clearAttachedResource() { - + attachedResource_ = getDefaultInstance().getAttachedResource(); onChanged(); return this; } /** + * + * *
              * The full resource name the [policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.policy] is directly attached to.
              * 
    * * string attached_resource = 1; + * * @param value The bytes for attachedResource to set. * @return This builder for chaining. */ - public Builder setAttachedResourceBytes( - com.google.protobuf.ByteString value) { + public Builder setAttachedResourceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attachedResource_ = value; onChanged(); return this; @@ -854,24 +1025,33 @@ public Builder setAttachedResourceBytes( private com.google.iam.v1.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> policyBuilder_; + com.google.iam.v1.Policy, + com.google.iam.v1.Policy.Builder, + com.google.iam.v1.PolicyOrBuilder> + policyBuilder_; /** + * + * *
              * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
              * 
    * * .google.iam.v1.Policy policy = 2; + * * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || policy_ != null; } /** + * + * *
              * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
              * 
    * * .google.iam.v1.Policy policy = 2; + * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -882,6 +1062,8 @@ public com.google.iam.v1.Policy getPolicy() { } } /** + * + * *
              * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
              * 
    @@ -902,14 +1084,15 @@ public Builder setPolicy(com.google.iam.v1.Policy value) { return this; } /** + * + * *
              * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
              * 
    * * .google.iam.v1.Policy policy = 2; */ - public Builder setPolicy( - com.google.iam.v1.Policy.Builder builderForValue) { + public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) { if (policyBuilder_ == null) { policy_ = builderForValue.build(); onChanged(); @@ -920,6 +1103,8 @@ public Builder setPolicy( return this; } /** + * + * *
              * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
              * 
    @@ -930,7 +1115,7 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) { if (policyBuilder_ == null) { if (policy_ != null) { policy_ = - com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial(); + com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial(); } else { policy_ = value; } @@ -942,6 +1127,8 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) { return this; } /** + * + * *
              * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
              * 
    @@ -960,6 +1147,8 @@ public Builder clearPolicy() { return this; } /** + * + * *
              * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
              * 
    @@ -967,11 +1156,13 @@ public Builder clearPolicy() { * .google.iam.v1.Policy policy = 2; */ public com.google.iam.v1.Policy.Builder getPolicyBuilder() { - + onChanged(); return getPolicyFieldBuilder().getBuilder(); } /** + * + * *
              * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
              * 
    @@ -982,11 +1173,12 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { if (policyBuilder_ != null) { return policyBuilder_.getMessageOrBuilder(); } else { - return policy_ == null ? - com.google.iam.v1.Policy.getDefaultInstance() : policy_; + return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } } /** + * + * *
              * The IAM policy that's directly attached to the [attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource].
              * 
    @@ -994,18 +1186,22 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() { * .google.iam.v1.Policy policy = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> + com.google.iam.v1.Policy, + com.google.iam.v1.Policy.Builder, + com.google.iam.v1.PolicyOrBuilder> getPolicyFieldBuilder() { if (policyBuilder_ == null) { - policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>( - getPolicy(), - getParentForChildren(), - isClean()); + policyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.iam.v1.Policy, + com.google.iam.v1.Policy.Builder, + com.google.iam.v1.PolicyOrBuilder>( + getPolicy(), getParentForChildren(), isClean()); policy_ = null; } return policyBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1018,41 +1214,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo) - private static final com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo DEFAULT_INSTANCE; + private static final com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicy.PolicyInfo + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo(); + DEFAULT_INSTANCE = + new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo(); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo getDefaultInstance() { + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicy.PolicyInfo + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1064,15 +1267,18 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo getDefaultInstanceForType() { + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int FULL_RESOURCE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object fullResourceName_; /** + * + * *
          * The [full_resource_name]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -1082,6 +1288,7 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI
          * 
    * * string full_resource_name = 1; + * * @return The fullResourceName. */ @java.lang.Override @@ -1090,14 +1297,15 @@ public java.lang.String getFullResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fullResourceName_ = s; return s; } } /** + * + * *
          * The [full_resource_name]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -1107,16 +1315,15 @@ public java.lang.String getFullResourceName() {
          * 
    * * string full_resource_name = 1; + * * @return The bytes for fullResourceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getFullResourceNameBytes() { + public com.google.protobuf.ByteString getFullResourceNameBytes() { java.lang.Object ref = fullResourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fullResourceName_ = b; return b; } else { @@ -1125,8 +1332,13 @@ public java.lang.String getFullResourceName() { } public static final int POLICIES_FIELD_NUMBER = 2; - private java.util.List policies_; + private java.util.List< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo> + policies_; /** + * + * *
          * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
          * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -1141,13 +1353,20 @@ public java.lang.String getFullResourceName() {
          * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ @java.lang.Override - public java.util.List getPoliciesList() { + public java.util.List< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo> + getPoliciesList() { return policies_; } /** + * + * *
          * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
          * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -1162,14 +1381,21 @@ public java.util.List
          *
    -     * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2;
    +     * 
    +     * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2;
    +     * 
          */
         @java.lang.Override
    -    public java.util.List 
    +    public java.util.List<
    +            ? extends
    +                com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy
    +                    .PolicyInfoOrBuilder>
             getPoliciesOrBuilderList() {
           return policies_;
         }
         /**
    +     *
    +     *
          * 
          * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
          * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -1184,13 +1410,17 @@ public java.util.List
          *
    -     * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2;
    +     * 
    +     * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2;
    +     * 
          */
         @java.lang.Override
         public int getPoliciesCount() {
           return policies_.size();
         }
         /**
    +     *
    +     *
          * 
          * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
          * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -1205,13 +1435,19 @@ public int getPoliciesCount() {
          * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo getPolicies(int index) { + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo + getPolicies(int index) { return policies_.get(index); } /** + * + * *
          * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
          * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -1226,15 +1462,19 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI
          * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfoOrBuilder getPoliciesOrBuilder( - int index) { + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfoOrBuilder + getPoliciesOrBuilder(int index) { return policies_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1246,8 +1486,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fullResourceName_); } @@ -1267,8 +1506,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fullResourceName_); } for (int i = 0; i < policies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, policies_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, policies_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1278,17 +1516,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy)) { + if (!(obj + instanceof + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy)) { return super.equals(obj); } - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy other = (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) obj; + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy other = + (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) obj; - if (!getFullResourceName() - .equals(other.getFullResourceName())) return false; - if (!getPoliciesList() - .equals(other.getPoliciesList())) return false; + if (!getFullResourceName().equals(other.getFullResourceName())) return false; + if (!getPoliciesList().equals(other.getPoliciesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1311,88 +1550,102 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1402,39 +1655,45 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * The effective IAM policies on one resource.
          * 
    * - * Protobuf type {@code google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy} + * Protobuf type {@code + * google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.class, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder.class); + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .class, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .Builder.class); } - // Construct using com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1451,19 +1710,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy getDefaultInstanceForType() { - return com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.getDefaultInstance(); + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + getDefaultInstanceForType() { + return com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy build() { - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy result = buildPartial(); + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + build() { + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1471,8 +1734,11 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI } @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy buildPartial() { - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy result = new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy(this); + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + buildPartial() { + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy result = + new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy( + this); int from_bitField0_ = bitField0_; result.fullResourceName_ = fullResourceName_; if (policiesBuilder_ == null) { @@ -1492,46 +1758,56 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) { - return mergeFrom((com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy)other); + if (other + instanceof + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) { + return mergeFrom( + (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy other) { - if (other == com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy other) { + if (other + == com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .getDefaultInstance()) return this; if (!other.getFullResourceName().isEmpty()) { fullResourceName_ = other.fullResourceName_; onChanged(); @@ -1554,9 +1830,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesR policiesBuilder_ = null; policies_ = other.policies_; bitField0_ = (bitField0_ & ~0x00000001); - policiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPoliciesFieldBuilder() : null; + policiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPoliciesFieldBuilder() + : null; } else { policiesBuilder_.addAllMessages(other.policies_); } @@ -1588,30 +1865,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - fullResourceName_ = input.readStringRequireUtf8(); + case 10: + { + fullResourceName_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo m = - input.readMessage( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.parser(), - extensionRegistry); - if (policiesBuilder_ == null) { - ensurePoliciesIsMutable(); - policies_.add(m); - } else { - policiesBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 10 + case 18: + { + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo + m = + input.readMessage( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicy.PolicyInfo.parser(), + extensionRegistry); + if (policiesBuilder_ == null) { + ensurePoliciesIsMutable(); + policies_.add(m); + } else { + policiesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1621,10 +1904,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object fullResourceName_ = ""; /** + * + * *
            * The [full_resource_name]
            * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -1634,13 +1920,13 @@ public Builder mergeFrom(
            * 
    * * string full_resource_name = 1; + * * @return The fullResourceName. */ public java.lang.String getFullResourceName() { java.lang.Object ref = fullResourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fullResourceName_ = s; return s; @@ -1649,6 +1935,8 @@ public java.lang.String getFullResourceName() { } } /** + * + * *
            * The [full_resource_name]
            * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -1658,15 +1946,14 @@ public java.lang.String getFullResourceName() {
            * 
    * * string full_resource_name = 1; + * * @return The bytes for fullResourceName. */ - public com.google.protobuf.ByteString - getFullResourceNameBytes() { + public com.google.protobuf.ByteString getFullResourceNameBytes() { java.lang.Object ref = fullResourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fullResourceName_ = b; return b; } else { @@ -1674,6 +1961,8 @@ public java.lang.String getFullResourceName() { } } /** + * + * *
            * The [full_resource_name]
            * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -1683,20 +1972,22 @@ public java.lang.String getFullResourceName() {
            * 
    * * string full_resource_name = 1; + * * @param value The fullResourceName to set. * @return This builder for chaining. */ - public Builder setFullResourceName( - java.lang.String value) { + public Builder setFullResourceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fullResourceName_ = value; onChanged(); return this; } /** + * + * *
            * The [full_resource_name]
            * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -1706,15 +1997,18 @@ public Builder setFullResourceName(
            * 
    * * string full_resource_name = 1; + * * @return This builder for chaining. */ public Builder clearFullResourceName() { - + fullResourceName_ = getDefaultInstance().getFullResourceName(); onChanged(); return this; } /** + * + * *
            * The [full_resource_name]
            * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -1724,34 +2018,48 @@ public Builder clearFullResourceName() {
            * 
    * * string full_resource_name = 1; + * * @param value The bytes for fullResourceName to set. * @return This builder for chaining. */ - public Builder setFullResourceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setFullResourceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fullResourceName_ = value; onChanged(); return this; } - private java.util.List policies_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo> + policies_ = java.util.Collections.emptyList(); + private void ensurePoliciesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - policies_ = new java.util.ArrayList(policies_); + policies_ = + new java.util.ArrayList< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo>(policies_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.Builder, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfoOrBuilder> policiesBuilder_; + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo.Builder, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfoOrBuilder> + policiesBuilder_; /** + * + * *
            * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -1766,9 +2074,14 @@ private void ensurePoliciesIsMutable() {
            * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ - public java.util.List getPoliciesList() { + public java.util.List< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo> + getPoliciesList() { if (policiesBuilder_ == null) { return java.util.Collections.unmodifiableList(policies_); } else { @@ -1776,6 +2089,8 @@ public java.util.List * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]. * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and @@ -1790,7 +2105,9 @@ public java.util.List * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ public int getPoliciesCount() { if (policiesBuilder_ == null) { @@ -1800,6 +2117,8 @@ public int getPoliciesCount() { } } /** + * + * *
            * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -1814,9 +2133,13 @@ public int getPoliciesCount() {
            * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo getPolicies(int index) { + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo + getPolicies(int index) { if (policiesBuilder_ == null) { return policies_.get(index); } else { @@ -1824,6 +2147,8 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI } } /** + * + * *
            * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -1838,10 +2163,15 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI
            * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ public Builder setPolicies( - int index, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo value) { + int index, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo + value) { if (policiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1855,6 +2185,8 @@ public Builder setPolicies( return this; } /** + * + * *
            * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -1869,10 +2201,15 @@ public Builder setPolicies(
            * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ public Builder setPolicies( - int index, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.Builder builderForValue) { + int index, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo.Builder + builderForValue) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); policies_.set(index, builderForValue.build()); @@ -1883,6 +2220,8 @@ public Builder setPolicies( return this; } /** + * + * *
            * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -1897,9 +2236,14 @@ public Builder setPolicies(
            * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ - public Builder addPolicies(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo value) { + public Builder addPolicies( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo + value) { if (policiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1913,6 +2257,8 @@ public Builder addPolicies(com.google.cloud.asset.v1.BatchGetEffectiveIamPolicie return this; } /** + * + * *
            * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -1927,10 +2273,15 @@ public Builder addPolicies(com.google.cloud.asset.v1.BatchGetEffectiveIamPolicie
            * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ public Builder addPolicies( - int index, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo value) { + int index, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo + value) { if (policiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1944,6 +2295,8 @@ public Builder addPolicies( return this; } /** + * + * *
            * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -1958,10 +2311,14 @@ public Builder addPolicies(
            * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ public Builder addPolicies( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.Builder builderForValue) { + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo.Builder + builderForValue) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); policies_.add(builderForValue.build()); @@ -1972,6 +2329,8 @@ public Builder addPolicies( return this; } /** + * + * *
            * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -1986,10 +2345,15 @@ public Builder addPolicies(
            * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ public Builder addPolicies( - int index, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.Builder builderForValue) { + int index, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo.Builder + builderForValue) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); policies_.add(index, builderForValue.build()); @@ -2000,6 +2364,8 @@ public Builder addPolicies( return this; } /** + * + * *
            * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -2014,14 +2380,19 @@ public Builder addPolicies(
            * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ public Builder addAllPolicies( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicy.PolicyInfo> + values) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, policies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policies_); onChanged(); } else { policiesBuilder_.addAllMessages(values); @@ -2029,6 +2400,8 @@ public Builder addAllPolicies( return this; } /** + * + * *
            * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -2043,7 +2416,9 @@ public Builder addAllPolicies(
            * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ public Builder clearPolicies() { if (policiesBuilder_ == null) { @@ -2056,6 +2431,8 @@ public Builder clearPolicies() { return this; } /** + * + * *
            * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -2070,7 +2447,9 @@ public Builder clearPolicies() {
            * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ public Builder removePolicies(int index) { if (policiesBuilder_ == null) { @@ -2083,6 +2462,8 @@ public Builder removePolicies(int index) { return this; } /** + * + * *
            * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -2097,13 +2478,18 @@ public Builder removePolicies(int index) {
            * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.Builder getPoliciesBuilder( - int index) { + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo.Builder + getPoliciesBuilder(int index) { return getPoliciesFieldBuilder().getBuilder(index); } /** + * + * *
            * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -2118,16 +2504,22 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI
            * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfoOrBuilder getPoliciesOrBuilder( - int index) { + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfoOrBuilder + getPoliciesOrBuilder(int index) { if (policiesBuilder_ == null) { - return policies_.get(index); } else { + return policies_.get(index); + } else { return policiesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
            * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -2142,10 +2534,15 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI
            * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ - public java.util.List - getPoliciesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfoOrBuilder> + getPoliciesOrBuilderList() { if (policiesBuilder_ != null) { return policiesBuilder_.getMessageOrBuilderList(); } else { @@ -2153,6 +2550,8 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI } } /** + * + * *
            * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -2167,13 +2566,21 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI
            * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.Builder addPoliciesBuilder() { - return getPoliciesFieldBuilder().addBuilder( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.getDefaultInstance()); + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo.Builder + addPoliciesBuilder() { + return getPoliciesFieldBuilder() + .addBuilder( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo.getDefaultInstance()); } /** + * + * *
            * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -2188,14 +2595,22 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI
            * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.Builder addPoliciesBuilder( - int index) { - return getPoliciesFieldBuilder().addBuilder( - index, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.getDefaultInstance()); + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo.Builder + addPoliciesBuilder(int index) { + return getPoliciesFieldBuilder() + .addBuilder( + index, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo.getDefaultInstance()); } /** + * + * *
            * The effective policies for the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name].
            * These policies include the policy set on the [full_resource_name][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource_name] and
    @@ -2210,26 +2625,40 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI
            * [PolicyInfo.attached_resource][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached_resource], if policies[i+1] exists.
            * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; + * */ - public java.util.List - getPoliciesBuilderList() { + public java.util.List< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo.Builder> + getPoliciesBuilderList() { return getPoliciesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.Builder, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfoOrBuilder> + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo.Builder, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfoOrBuilder> getPoliciesFieldBuilder() { if (policiesBuilder_ == null) { - policiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.Builder, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfoOrBuilder>( - policies_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + policiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfo.Builder, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .PolicyInfoOrBuilder>( + policies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); policies_ = null; } return policiesBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2242,41 +2671,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy) - private static final com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy DEFAULT_INSTANCE; + private static final com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicy + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy(); + DEFAULT_INSTANCE = + new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy(); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy getDefaultInstance() { + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EffectiveIamPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EffectiveIamPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2288,15 +2722,19 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy getDefaultInstanceForType() { + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int POLICY_RESULTS_FIELD_NUMBER = 2; - private java.util.List policyResults_; + private java.util.List< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy> + policyResults_; /** + * + * *
        * The effective policies for a batch of resources. Note that the results
        * order is the same as the order of
    @@ -2305,13 +2743,19 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI
        * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
        * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ @java.lang.Override - public java.util.List getPolicyResultsList() { + public java.util.List< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy> + getPolicyResultsList() { return policyResults_; } /** + * + * *
        * The effective policies for a batch of resources. Note that the results
        * order is the same as the order of
    @@ -2320,14 +2764,21 @@ public java.util.List
        *
    -   * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2;
    +   * 
    +   * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2;
    +   * 
        */
       @java.lang.Override
    -  public java.util.List 
    +  public java.util.List<
    +          ? extends
    +              com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse
    +                  .EffectiveIamPolicyOrBuilder>
           getPolicyResultsOrBuilderList() {
         return policyResults_;
       }
       /**
    +   *
    +   *
        * 
        * The effective policies for a batch of resources. Note that the results
        * order is the same as the order of
    @@ -2336,13 +2787,17 @@ public java.util.List
        *
    -   * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2;
    +   * 
    +   * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2;
    +   * 
        */
       @java.lang.Override
       public int getPolicyResultsCount() {
         return policyResults_.size();
       }
       /**
    +   *
    +   *
        * 
        * The effective policies for a batch of resources. Note that the results
        * order is the same as the order of
    @@ -2351,13 +2806,18 @@ public int getPolicyResultsCount() {
        * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
        * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy getPolicyResults(int index) { + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + getPolicyResults(int index) { return policyResults_.get(index); } /** + * + * *
        * The effective policies for a batch of resources. Note that the results
        * order is the same as the order of
    @@ -2366,15 +2826,18 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI
        * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
        * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicyOrBuilder getPolicyResultsOrBuilder( - int index) { + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicyOrBuilder + getPolicyResultsOrBuilder(int index) { return policyResults_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2386,8 +2849,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < policyResults_.size(); i++) { output.writeMessage(2, policyResults_.get(i)); } @@ -2401,8 +2863,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < policyResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, policyResults_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, policyResults_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2412,15 +2873,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse other = (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse) obj; + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse other = + (com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse) obj; - if (!getPolicyResultsList() - .equals(other.getPolicyResultsList())) return false; + if (!getPolicyResultsList().equals(other.getPolicyResultsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2442,129 +2903,136 @@ public int hashCode() { } public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse 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.asset.v1.BatchGetEffectiveIamPoliciesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * A response message for [AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
        * 
    * * Protobuf type {@code google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse) com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.class, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.Builder.class); + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.class, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.Builder.class); } // Construct using com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2579,13 +3047,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse getDefaultInstanceForType() { + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + getDefaultInstanceForType() { return com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.getDefaultInstance(); } @@ -2600,7 +3069,8 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse build() { @java.lang.Override public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse buildPartial() { - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse result = new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse(this); + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse result = + new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse(this); int from_bitField0_ = bitField0_; if (policyResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -2619,38 +3089,39 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.BatchGetEffectiveIamPoliciesResponse) { - return mergeFrom((com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse)other); + return mergeFrom((com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse) other); } else { super.mergeFrom(other); return this; @@ -2658,7 +3129,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse other) { - if (other == com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.getDefaultInstance()) + return this; if (policyResultsBuilder_ == null) { if (!other.policyResults_.isEmpty()) { if (policyResults_.isEmpty()) { @@ -2677,9 +3150,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesR policyResultsBuilder_ = null; policyResults_ = other.policyResults_; bitField0_ = (bitField0_ & ~0x00000001); - policyResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPolicyResultsFieldBuilder() : null; + policyResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPolicyResultsFieldBuilder() + : null; } else { policyResultsBuilder_.addAllMessages(other.policyResults_); } @@ -2711,25 +3185,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy m = - input.readMessage( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.parser(), - extensionRegistry); - if (policyResultsBuilder_ == null) { - ensurePolicyResultsIsMutable(); - policyResults_.add(m); - } else { - policyResultsBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + m = + input.readMessage( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicy.parser(), + extensionRegistry); + if (policyResultsBuilder_ == null) { + ensurePolicyResultsIsMutable(); + policyResults_.add(m); + } else { + policyResultsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2739,21 +3217,34 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List policyResults_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy> + policyResults_ = java.util.Collections.emptyList(); + private void ensurePolicyResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - policyResults_ = new java.util.ArrayList(policyResults_); + policyResults_ = + new java.util.ArrayList< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy>( + policyResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicyOrBuilder> policyResultsBuilder_; + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .Builder, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicyOrBuilder> + policyResultsBuilder_; /** + * + * *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    @@ -2762,9 +3253,13 @@ private void ensurePolicyResultsIsMutable() {
          * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ - public java.util.List getPolicyResultsList() { + public java.util.List< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy> + getPolicyResultsList() { if (policyResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(policyResults_); } else { @@ -2772,6 +3267,8 @@ public java.util.List * The effective policies for a batch of resources. Note that the results * order is the same as the order of @@ -2780,7 +3277,9 @@ public java.util.List * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ public int getPolicyResultsCount() { if (policyResultsBuilder_ == null) { @@ -2790,6 +3289,8 @@ public int getPolicyResultsCount() { } } /** + * + * *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    @@ -2798,9 +3299,12 @@ public int getPolicyResultsCount() {
          * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy getPolicyResults(int index) { + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + getPolicyResults(int index) { if (policyResultsBuilder_ == null) { return policyResults_.get(index); } else { @@ -2808,6 +3312,8 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI } } /** + * + * *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    @@ -2816,10 +3322,13 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI
          * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ public Builder setPolicyResults( - int index, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy value) { + int index, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy value) { if (policyResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2833,6 +3342,8 @@ public Builder setPolicyResults( return this; } /** + * + * *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    @@ -2841,10 +3352,14 @@ public Builder setPolicyResults(
          * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ public Builder setPolicyResults( - int index, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder builderForValue) { + int index, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder + builderForValue) { if (policyResultsBuilder_ == null) { ensurePolicyResultsIsMutable(); policyResults_.set(index, builderForValue.build()); @@ -2855,6 +3370,8 @@ public Builder setPolicyResults( return this; } /** + * + * *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    @@ -2863,9 +3380,12 @@ public Builder setPolicyResults(
          * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ - public Builder addPolicyResults(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy value) { + public Builder addPolicyResults( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy value) { if (policyResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2879,6 +3399,8 @@ public Builder addPolicyResults(com.google.cloud.asset.v1.BatchGetEffectiveIamPo return this; } /** + * + * *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    @@ -2887,10 +3409,13 @@ public Builder addPolicyResults(com.google.cloud.asset.v1.BatchGetEffectiveIamPo
          * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ public Builder addPolicyResults( - int index, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy value) { + int index, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy value) { if (policyResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2904,6 +3429,8 @@ public Builder addPolicyResults( return this; } /** + * + * *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    @@ -2912,10 +3439,13 @@ public Builder addPolicyResults(
          * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ public Builder addPolicyResults( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder builderForValue) { + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder + builderForValue) { if (policyResultsBuilder_ == null) { ensurePolicyResultsIsMutable(); policyResults_.add(builderForValue.build()); @@ -2926,6 +3456,8 @@ public Builder addPolicyResults( return this; } /** + * + * *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    @@ -2934,10 +3466,14 @@ public Builder addPolicyResults(
          * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ public Builder addPolicyResults( - int index, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder builderForValue) { + int index, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder + builderForValue) { if (policyResultsBuilder_ == null) { ensurePolicyResultsIsMutable(); policyResults_.add(index, builderForValue.build()); @@ -2948,6 +3484,8 @@ public Builder addPolicyResults( return this; } /** + * + * *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    @@ -2956,14 +3494,19 @@ public Builder addPolicyResults(
          * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ public Builder addAllPolicyResults( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicy> + values) { if (policyResultsBuilder_ == null) { ensurePolicyResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, policyResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyResults_); onChanged(); } else { policyResultsBuilder_.addAllMessages(values); @@ -2971,6 +3514,8 @@ public Builder addAllPolicyResults( return this; } /** + * + * *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    @@ -2979,7 +3524,9 @@ public Builder addAllPolicyResults(
          * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ public Builder clearPolicyResults() { if (policyResultsBuilder_ == null) { @@ -2992,6 +3539,8 @@ public Builder clearPolicyResults() { return this; } /** + * + * *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    @@ -3000,7 +3549,9 @@ public Builder clearPolicyResults() {
          * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ public Builder removePolicyResults(int index) { if (policyResultsBuilder_ == null) { @@ -3013,6 +3564,8 @@ public Builder removePolicyResults(int index) { return this; } /** + * + * *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    @@ -3021,13 +3574,17 @@ public Builder removePolicyResults(int index) {
          * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder getPolicyResultsBuilder( - int index) { + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder + getPolicyResultsBuilder(int index) { return getPolicyResultsFieldBuilder().getBuilder(index); } /** + * + * *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    @@ -3036,16 +3593,22 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI
          * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicyOrBuilder getPolicyResultsOrBuilder( - int index) { + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicyOrBuilder + getPolicyResultsOrBuilder(int index) { if (policyResultsBuilder_ == null) { - return policyResults_.get(index); } else { + return policyResults_.get(index); + } else { return policyResultsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    @@ -3054,10 +3617,15 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI
          * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ - public java.util.List - getPolicyResultsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicyOrBuilder> + getPolicyResultsOrBuilderList() { if (policyResultsBuilder_ != null) { return policyResultsBuilder_.getMessageOrBuilderList(); } else { @@ -3065,6 +3633,8 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI } } /** + * + * *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    @@ -3073,13 +3643,20 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI
          * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder addPolicyResultsBuilder() { - return getPolicyResultsFieldBuilder().addBuilder( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.getDefaultInstance()); + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder + addPolicyResultsBuilder() { + return getPolicyResultsFieldBuilder() + .addBuilder( + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .getDefaultInstance()); } /** + * + * *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    @@ -3088,14 +3665,21 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI
          * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder addPolicyResultsBuilder( - int index) { - return getPolicyResultsFieldBuilder().addBuilder( - index, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.getDefaultInstance()); + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder + addPolicyResultsBuilder(int index) { + return getPolicyResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .getDefaultInstance()); } /** + * + * *
          * The effective policies for a batch of resources. Note that the results
          * order is the same as the order of
    @@ -3104,18 +3688,32 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI
          * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
          * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ - public java.util.List - getPolicyResultsBuilderList() { + public java.util.List< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .Builder> + getPolicyResultsBuilderList() { return getPolicyResultsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicyOrBuilder> + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .Builder, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicyOrBuilder> getPolicyResultsFieldBuilder() { if (policyResultsBuilder_ == null) { - policyResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.Builder, com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicyOrBuilder>( + policyResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + .Builder, + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicyOrBuilder>( policyResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3124,9 +3722,9 @@ public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI } return policyResultsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3136,41 +3734,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse) - private static final com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse(); } - public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse getDefaultInstance() { + public static com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchGetEffectiveIamPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchGetEffectiveIamPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3182,9 +3782,8 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse getDefaultInstanceForType() { + public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponseOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponseOrBuilder.java similarity index 64% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponseOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponseOrBuilder.java index 9bbe167a0d70..e78508e772f7 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponseOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface BatchGetEffectiveIamPoliciesResponseOrBuilder extends +public interface BatchGetEffectiveIamPoliciesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The effective policies for a batch of resources. Note that the results
        * order is the same as the order of
    @@ -16,11 +34,15 @@ public interface BatchGetEffectiveIamPoliciesResponseOrBuilder extends
        * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
        * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ - java.util.List + java.util.List getPolicyResultsList(); /** + * + * *
        * The effective policies for a batch of resources. Note that the results
        * order is the same as the order of
    @@ -29,10 +51,15 @@ public interface BatchGetEffectiveIamPoliciesResponseOrBuilder extends
        * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
        * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy getPolicyResults(int index); + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy + getPolicyResults(int index); /** + * + * *
        * The effective policies for a batch of resources. Note that the results
        * order is the same as the order of
    @@ -41,10 +68,14 @@ public interface BatchGetEffectiveIamPoliciesResponseOrBuilder extends
        * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
        * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ int getPolicyResultsCount(); /** + * + * *
        * The effective policies for a batch of resources. Note that the results
        * order is the same as the order of
    @@ -53,11 +84,18 @@ public interface BatchGetEffectiveIamPoliciesResponseOrBuilder extends
        * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
        * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse + .EffectiveIamPolicyOrBuilder> getPolicyResultsOrBuilderList(); /** + * + * *
        * The effective policies for a batch of resources. Note that the results
        * order is the same as the order of
    @@ -66,8 +104,10 @@ public interface BatchGetEffectiveIamPoliciesResponseOrBuilder extends
        * contain empty [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.policies].
        * 
    * - * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * + * repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; + * */ - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicyOrBuilder getPolicyResultsOrBuilder( - int index); + com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicyOrBuilder + getPolicyResultsOrBuilder(int index); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java similarity index 82% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java index 4f042fb3a83d..2e4697a0b82e 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestination.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * A BigQuery destination for exporting assets to.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.BigQueryDestination} */ -public final class BigQueryDestination extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BigQueryDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.BigQueryDestination) BigQueryDestinationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BigQueryDestination.newBuilder() to construct. private BigQueryDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BigQueryDestination() { dataset_ = ""; table_ = ""; @@ -26,32 +44,35 @@ private BigQueryDestination() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BigQueryDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BigQueryDestination_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BigQueryDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BigQueryDestination.class, com.google.cloud.asset.v1.BigQueryDestination.Builder.class); + com.google.cloud.asset.v1.BigQueryDestination.class, + com.google.cloud.asset.v1.BigQueryDestination.Builder.class); } public static final int DATASET_FIELD_NUMBER = 1; private volatile java.lang.Object dataset_; /** + * + * *
        * Required. The BigQuery dataset in format
        * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -64,6 +85,7 @@ protected java.lang.Object newInstance(
        * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The dataset. */ @java.lang.Override @@ -72,14 +94,15 @@ public java.lang.String getDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; } } /** + * + * *
        * Required. The BigQuery dataset in format
        * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -92,16 +115,15 @@ public java.lang.String getDataset() {
        * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for dataset. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatasetBytes() { + public com.google.protobuf.ByteString getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataset_ = b; return b; } else { @@ -112,6 +134,8 @@ public java.lang.String getDataset() { public static final int TABLE_FIELD_NUMBER = 2; private volatile java.lang.Object table_; /** + * + * *
        * Required. The BigQuery table to which the snapshot result should be
        * written. If this table does not exist, a new table with the given name
    @@ -119,6 +143,7 @@ public java.lang.String getDataset() {
        * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The table. */ @java.lang.Override @@ -127,14 +152,15 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** + * + * *
        * Required. The BigQuery table to which the snapshot result should be
        * written. If this table does not exist, a new table with the given name
    @@ -142,16 +168,15 @@ public java.lang.String getTable() {
        * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString - getTableBytes() { + public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); table_ = b; return b; } else { @@ -162,6 +187,8 @@ public java.lang.String getTable() { public static final int FORCE_FIELD_NUMBER = 3; private boolean force_; /** + * + * *
        * If the destination table already exists and this flag is `TRUE`, the
        * table will be overwritten by the contents of assets snapshot. If the flag
    @@ -170,6 +197,7 @@ public java.lang.String getTable() {
        * 
    * * bool force = 3; + * * @return The force. */ @java.lang.Override @@ -180,6 +208,8 @@ public boolean getForce() { public static final int PARTITION_SPEC_FIELD_NUMBER = 4; private com.google.cloud.asset.v1.PartitionSpec partitionSpec_; /** + * + * *
        * [partition_spec] determines whether to export to partitioned table(s) and
        * how to partition the data.
    @@ -199,6 +229,7 @@ public boolean getForce() {
        * 
    * * .google.cloud.asset.v1.PartitionSpec partition_spec = 4; + * * @return Whether the partitionSpec field is set. */ @java.lang.Override @@ -206,6 +237,8 @@ public boolean hasPartitionSpec() { return partitionSpec_ != null; } /** + * + * *
        * [partition_spec] determines whether to export to partitioned table(s) and
        * how to partition the data.
    @@ -225,13 +258,18 @@ public boolean hasPartitionSpec() {
        * 
    * * .google.cloud.asset.v1.PartitionSpec partition_spec = 4; + * * @return The partitionSpec. */ @java.lang.Override public com.google.cloud.asset.v1.PartitionSpec getPartitionSpec() { - return partitionSpec_ == null ? com.google.cloud.asset.v1.PartitionSpec.getDefaultInstance() : partitionSpec_; + return partitionSpec_ == null + ? com.google.cloud.asset.v1.PartitionSpec.getDefaultInstance() + : partitionSpec_; } /** + * + * *
        * [partition_spec] determines whether to export to partitioned table(s) and
        * how to partition the data.
    @@ -260,6 +298,8 @@ public com.google.cloud.asset.v1.PartitionSpecOrBuilder getPartitionSpecOrBuilde
       public static final int SEPARATE_TABLES_PER_ASSET_TYPE_FIELD_NUMBER = 5;
       private boolean separateTablesPerAssetType_;
       /**
    +   *
    +   *
        * 
        * If this flag is `TRUE`, the snapshot results will be written to one or
        * multiple tables, each of which contains results of one asset type. The
    @@ -288,6 +328,7 @@ public com.google.cloud.asset.v1.PartitionSpecOrBuilder getPartitionSpecOrBuilde
        * 
    * * bool separate_tables_per_asset_type = 5; + * * @return The separateTablesPerAssetType. */ @java.lang.Override @@ -296,6 +337,7 @@ public boolean getSeparateTablesPerAssetType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -307,8 +349,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); } @@ -340,16 +381,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, table_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); } if (partitionSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getPartitionSpec()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPartitionSpec()); } if (separateTablesPerAssetType_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, separateTablesPerAssetType_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, separateTablesPerAssetType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -359,26 +397,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.BigQueryDestination)) { return super.equals(obj); } - com.google.cloud.asset.v1.BigQueryDestination other = (com.google.cloud.asset.v1.BigQueryDestination) obj; + com.google.cloud.asset.v1.BigQueryDestination other = + (com.google.cloud.asset.v1.BigQueryDestination) obj; - if (!getDataset() - .equals(other.getDataset())) return false; - if (!getTable() - .equals(other.getTable())) return false; - if (getForce() - != other.getForce()) return false; + if (!getDataset().equals(other.getDataset())) return false; + if (!getTable().equals(other.getTable())) return false; + if (getForce() != other.getForce()) return false; if (hasPartitionSpec() != other.hasPartitionSpec()) return false; if (hasPartitionSpec()) { - if (!getPartitionSpec() - .equals(other.getPartitionSpec())) return false; + if (!getPartitionSpec().equals(other.getPartitionSpec())) return false; } - if (getSeparateTablesPerAssetType() - != other.getSeparateTablesPerAssetType()) return false; + if (getSeparateTablesPerAssetType() != other.getSeparateTablesPerAssetType()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -395,144 +429,148 @@ public int hashCode() { hash = (37 * hash) + TABLE_FIELD_NUMBER; hash = (53 * hash) + getTable().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); if (hasPartitionSpec()) { hash = (37 * hash) + PARTITION_SPEC_FIELD_NUMBER; hash = (53 * hash) + getPartitionSpec().hashCode(); } hash = (37 * hash) + SEPARATE_TABLES_PER_ASSET_TYPE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSeparateTablesPerAssetType()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSeparateTablesPerAssetType()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.BigQueryDestination parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.BigQueryDestination parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.BigQueryDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.BigQueryDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.BigQueryDestination 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.asset.v1.BigQueryDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.BigQueryDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.BigQueryDestination parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.BigQueryDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.BigQueryDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.BigQueryDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.BigQueryDestination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.BigQueryDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.BigQueryDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.BigQueryDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * A BigQuery destination for exporting assets to.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.BigQueryDestination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.BigQueryDestination) com.google.cloud.asset.v1.BigQueryDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BigQueryDestination_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BigQueryDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.BigQueryDestination.class, com.google.cloud.asset.v1.BigQueryDestination.Builder.class); + com.google.cloud.asset.v1.BigQueryDestination.class, + com.google.cloud.asset.v1.BigQueryDestination.Builder.class); } // Construct using com.google.cloud.asset.v1.BigQueryDestination.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -554,9 +592,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor; } @java.lang.Override @@ -575,7 +613,8 @@ public com.google.cloud.asset.v1.BigQueryDestination build() { @java.lang.Override public com.google.cloud.asset.v1.BigQueryDestination buildPartial() { - com.google.cloud.asset.v1.BigQueryDestination result = new com.google.cloud.asset.v1.BigQueryDestination(this); + com.google.cloud.asset.v1.BigQueryDestination result = + new com.google.cloud.asset.v1.BigQueryDestination(this); result.dataset_ = dataset_; result.table_ = table_; result.force_ = force_; @@ -593,38 +632,39 @@ public com.google.cloud.asset.v1.BigQueryDestination buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.BigQueryDestination) { - return mergeFrom((com.google.cloud.asset.v1.BigQueryDestination)other); + return mergeFrom((com.google.cloud.asset.v1.BigQueryDestination) other); } else { super.mergeFrom(other); return this; @@ -676,39 +716,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - dataset_ = input.readStringRequireUtf8(); + case 10: + { + dataset_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - table_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + table_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 24: { - force_ = input.readBool(); + break; + } // case 18 + case 24: + { + force_ = input.readBool(); - break; - } // case 24 - case 34: { - input.readMessage( - getPartitionSpecFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 24 + case 34: + { + input.readMessage(getPartitionSpecFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 34 - case 40: { - separateTablesPerAssetType_ = input.readBool(); + break; + } // case 34 + case 40: + { + separateTablesPerAssetType_ = input.readBool(); - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -721,6 +765,8 @@ public Builder mergeFrom( private java.lang.Object dataset_ = ""; /** + * + * *
          * Required. The BigQuery dataset in format
          * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -733,13 +779,13 @@ public Builder mergeFrom(
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The dataset. */ public java.lang.String getDataset() { java.lang.Object ref = dataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; @@ -748,6 +794,8 @@ public java.lang.String getDataset() { } } /** + * + * *
          * Required. The BigQuery dataset in format
          * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -760,15 +808,14 @@ public java.lang.String getDataset() {
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for dataset. */ - public com.google.protobuf.ByteString - getDatasetBytes() { + public com.google.protobuf.ByteString getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataset_ = b; return b; } else { @@ -776,6 +823,8 @@ public java.lang.String getDataset() { } } /** + * + * *
          * Required. The BigQuery dataset in format
          * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -788,20 +837,22 @@ public java.lang.String getDataset() {
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The dataset to set. * @return This builder for chaining. */ - public Builder setDataset( - java.lang.String value) { + public Builder setDataset(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataset_ = value; onChanged(); return this; } /** + * + * *
          * Required. The BigQuery dataset in format
          * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -814,15 +865,18 @@ public Builder setDataset(
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDataset() { - + dataset_ = getDefaultInstance().getDataset(); onChanged(); return this; } /** + * + * *
          * Required. The BigQuery dataset in format
          * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -835,16 +889,16 @@ public Builder clearDataset() {
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for dataset to set. * @return This builder for chaining. */ - public Builder setDatasetBytes( - com.google.protobuf.ByteString value) { + public Builder setDatasetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; onChanged(); return this; @@ -852,6 +906,8 @@ public Builder setDatasetBytes( private java.lang.Object table_ = ""; /** + * + * *
          * Required. The BigQuery table to which the snapshot result should be
          * written. If this table does not exist, a new table with the given name
    @@ -859,13 +915,13 @@ public Builder setDatasetBytes(
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -874,6 +930,8 @@ public java.lang.String getTable() { } } /** + * + * *
          * Required. The BigQuery table to which the snapshot result should be
          * written. If this table does not exist, a new table with the given name
    @@ -881,15 +939,14 @@ public java.lang.String getTable() {
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for table. */ - public com.google.protobuf.ByteString - getTableBytes() { + public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); table_ = b; return b; } else { @@ -897,6 +954,8 @@ public java.lang.String getTable() { } } /** + * + * *
          * Required. The BigQuery table to which the snapshot result should be
          * written. If this table does not exist, a new table with the given name
    @@ -904,20 +963,22 @@ public java.lang.String getTable() {
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable( - java.lang.String value) { + public Builder setTable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + table_ = value; onChanged(); return this; } /** + * + * *
          * Required. The BigQuery table to which the snapshot result should be
          * written. If this table does not exist, a new table with the given name
    @@ -925,15 +986,18 @@ public Builder setTable(
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTable() { - + table_ = getDefaultInstance().getTable(); onChanged(); return this; } /** + * + * *
          * Required. The BigQuery table to which the snapshot result should be
          * written. If this table does not exist, a new table with the given name
    @@ -941,23 +1005,25 @@ public Builder clearTable() {
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for table to set. * @return This builder for chaining. */ - public Builder setTableBytes( - com.google.protobuf.ByteString value) { + public Builder setTableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + table_ = value; onChanged(); return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
          * If the destination table already exists and this flag is `TRUE`, the
          * table will be overwritten by the contents of assets snapshot. If the flag
    @@ -966,6 +1032,7 @@ public Builder setTableBytes(
          * 
    * * bool force = 3; + * * @return The force. */ @java.lang.Override @@ -973,6 +1040,8 @@ public boolean getForce() { return force_; } /** + * + * *
          * If the destination table already exists and this flag is `TRUE`, the
          * table will be overwritten by the contents of assets snapshot. If the flag
    @@ -981,16 +1050,19 @@ public boolean getForce() {
          * 
    * * bool force = 3; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** + * + * *
          * If the destination table already exists and this flag is `TRUE`, the
          * table will be overwritten by the contents of assets snapshot. If the flag
    @@ -999,10 +1071,11 @@ public Builder setForce(boolean value) {
          * 
    * * bool force = 3; + * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; @@ -1010,8 +1083,13 @@ public Builder clearForce() { private com.google.cloud.asset.v1.PartitionSpec partitionSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.PartitionSpec, com.google.cloud.asset.v1.PartitionSpec.Builder, com.google.cloud.asset.v1.PartitionSpecOrBuilder> partitionSpecBuilder_; + com.google.cloud.asset.v1.PartitionSpec, + com.google.cloud.asset.v1.PartitionSpec.Builder, + com.google.cloud.asset.v1.PartitionSpecOrBuilder> + partitionSpecBuilder_; /** + * + * *
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1031,12 +1109,15 @@ public Builder clearForce() {
          * 
    * * .google.cloud.asset.v1.PartitionSpec partition_spec = 4; + * * @return Whether the partitionSpec field is set. */ public boolean hasPartitionSpec() { return partitionSpecBuilder_ != null || partitionSpec_ != null; } /** + * + * *
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1056,16 +1137,21 @@ public boolean hasPartitionSpec() {
          * 
    * * .google.cloud.asset.v1.PartitionSpec partition_spec = 4; + * * @return The partitionSpec. */ public com.google.cloud.asset.v1.PartitionSpec getPartitionSpec() { if (partitionSpecBuilder_ == null) { - return partitionSpec_ == null ? com.google.cloud.asset.v1.PartitionSpec.getDefaultInstance() : partitionSpec_; + return partitionSpec_ == null + ? com.google.cloud.asset.v1.PartitionSpec.getDefaultInstance() + : partitionSpec_; } else { return partitionSpecBuilder_.getMessage(); } } /** + * + * *
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1100,6 +1186,8 @@ public Builder setPartitionSpec(com.google.cloud.asset.v1.PartitionSpec value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1132,6 +1220,8 @@ public Builder setPartitionSpec(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1156,7 +1246,9 @@ public Builder mergePartitionSpec(com.google.cloud.asset.v1.PartitionSpec value)
           if (partitionSpecBuilder_ == null) {
             if (partitionSpec_ != null) {
               partitionSpec_ =
    -            com.google.cloud.asset.v1.PartitionSpec.newBuilder(partitionSpec_).mergeFrom(value).buildPartial();
    +              com.google.cloud.asset.v1.PartitionSpec.newBuilder(partitionSpec_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               partitionSpec_ = value;
             }
    @@ -1168,6 +1260,8 @@ public Builder mergePartitionSpec(com.google.cloud.asset.v1.PartitionSpec value)
           return this;
         }
         /**
    +     *
    +     *
          * 
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1200,6 +1294,8 @@ public Builder clearPartitionSpec() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1221,11 +1317,13 @@ public Builder clearPartitionSpec() {
          * .google.cloud.asset.v1.PartitionSpec partition_spec = 4;
          */
         public com.google.cloud.asset.v1.PartitionSpec.Builder getPartitionSpecBuilder() {
    -      
    +
           onChanged();
           return getPartitionSpecFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1250,11 +1348,14 @@ public com.google.cloud.asset.v1.PartitionSpecOrBuilder getPartitionSpecOrBuilde
           if (partitionSpecBuilder_ != null) {
             return partitionSpecBuilder_.getMessageOrBuilder();
           } else {
    -        return partitionSpec_ == null ?
    -            com.google.cloud.asset.v1.PartitionSpec.getDefaultInstance() : partitionSpec_;
    +        return partitionSpec_ == null
    +            ? com.google.cloud.asset.v1.PartitionSpec.getDefaultInstance()
    +            : partitionSpec_;
           }
         }
         /**
    +     *
    +     *
          * 
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1276,21 +1377,26 @@ public com.google.cloud.asset.v1.PartitionSpecOrBuilder getPartitionSpecOrBuilde
          * .google.cloud.asset.v1.PartitionSpec partition_spec = 4;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1.PartitionSpec, com.google.cloud.asset.v1.PartitionSpec.Builder, com.google.cloud.asset.v1.PartitionSpecOrBuilder> 
    +            com.google.cloud.asset.v1.PartitionSpec,
    +            com.google.cloud.asset.v1.PartitionSpec.Builder,
    +            com.google.cloud.asset.v1.PartitionSpecOrBuilder>
             getPartitionSpecFieldBuilder() {
           if (partitionSpecBuilder_ == null) {
    -        partitionSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.PartitionSpec, com.google.cloud.asset.v1.PartitionSpec.Builder, com.google.cloud.asset.v1.PartitionSpecOrBuilder>(
    -                getPartitionSpec(),
    -                getParentForChildren(),
    -                isClean());
    +        partitionSpecBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.cloud.asset.v1.PartitionSpec,
    +                com.google.cloud.asset.v1.PartitionSpec.Builder,
    +                com.google.cloud.asset.v1.PartitionSpecOrBuilder>(
    +                getPartitionSpec(), getParentForChildren(), isClean());
             partitionSpec_ = null;
           }
           return partitionSpecBuilder_;
         }
     
    -    private boolean separateTablesPerAssetType_ ;
    +    private boolean separateTablesPerAssetType_;
         /**
    +     *
    +     *
          * 
          * If this flag is `TRUE`, the snapshot results will be written to one or
          * multiple tables, each of which contains results of one asset type. The
    @@ -1319,6 +1425,7 @@ public com.google.cloud.asset.v1.PartitionSpecOrBuilder getPartitionSpecOrBuilde
          * 
    * * bool separate_tables_per_asset_type = 5; + * * @return The separateTablesPerAssetType. */ @java.lang.Override @@ -1326,6 +1433,8 @@ public boolean getSeparateTablesPerAssetType() { return separateTablesPerAssetType_; } /** + * + * *
          * If this flag is `TRUE`, the snapshot results will be written to one or
          * multiple tables, each of which contains results of one asset type. The
    @@ -1354,16 +1463,19 @@ public boolean getSeparateTablesPerAssetType() {
          * 
    * * bool separate_tables_per_asset_type = 5; + * * @param value The separateTablesPerAssetType to set. * @return This builder for chaining. */ public Builder setSeparateTablesPerAssetType(boolean value) { - + separateTablesPerAssetType_ = value; onChanged(); return this; } /** + * + * *
          * If this flag is `TRUE`, the snapshot results will be written to one or
          * multiple tables, each of which contains results of one asset type. The
    @@ -1392,17 +1504,18 @@ public Builder setSeparateTablesPerAssetType(boolean value) {
          * 
    * * bool separate_tables_per_asset_type = 5; + * * @return This builder for chaining. */ public Builder clearSeparateTablesPerAssetType() { - + separateTablesPerAssetType_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1412,12 +1525,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.BigQueryDestination) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.BigQueryDestination) private static final com.google.cloud.asset.v1.BigQueryDestination DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.BigQueryDestination(); } @@ -1426,27 +1539,27 @@ public static com.google.cloud.asset.v1.BigQueryDestination getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1461,6 +1574,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.BigQueryDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestinationOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestinationOrBuilder.java similarity index 90% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestinationOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestinationOrBuilder.java index 2b70f211fc51..b5571d295fbd 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestinationOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestinationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface BigQueryDestinationOrBuilder extends +public interface BigQueryDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.BigQueryDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The BigQuery dataset in format
        * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -20,10 +38,13 @@ public interface BigQueryDestinationOrBuilder extends
        * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The dataset. */ java.lang.String getDataset(); /** + * + * *
        * Required. The BigQuery dataset in format
        * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -36,12 +57,14 @@ public interface BigQueryDestinationOrBuilder extends
        * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for dataset. */ - com.google.protobuf.ByteString - getDatasetBytes(); + com.google.protobuf.ByteString getDatasetBytes(); /** + * + * *
        * Required. The BigQuery table to which the snapshot result should be
        * written. If this table does not exist, a new table with the given name
    @@ -49,10 +72,13 @@ public interface BigQueryDestinationOrBuilder extends
        * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The table. */ java.lang.String getTable(); /** + * + * *
        * Required. The BigQuery table to which the snapshot result should be
        * written. If this table does not exist, a new table with the given name
    @@ -60,12 +86,14 @@ public interface BigQueryDestinationOrBuilder extends
        * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for table. */ - com.google.protobuf.ByteString - getTableBytes(); + com.google.protobuf.ByteString getTableBytes(); /** + * + * *
        * If the destination table already exists and this flag is `TRUE`, the
        * table will be overwritten by the contents of assets snapshot. If the flag
    @@ -74,11 +102,14 @@ public interface BigQueryDestinationOrBuilder extends
        * 
    * * bool force = 3; + * * @return The force. */ boolean getForce(); /** + * + * *
        * [partition_spec] determines whether to export to partitioned table(s) and
        * how to partition the data.
    @@ -98,10 +129,13 @@ public interface BigQueryDestinationOrBuilder extends
        * 
    * * .google.cloud.asset.v1.PartitionSpec partition_spec = 4; + * * @return Whether the partitionSpec field is set. */ boolean hasPartitionSpec(); /** + * + * *
        * [partition_spec] determines whether to export to partitioned table(s) and
        * how to partition the data.
    @@ -121,10 +155,13 @@ public interface BigQueryDestinationOrBuilder extends
        * 
    * * .google.cloud.asset.v1.PartitionSpec partition_spec = 4; + * * @return The partitionSpec. */ com.google.cloud.asset.v1.PartitionSpec getPartitionSpec(); /** + * + * *
        * [partition_spec] determines whether to export to partitioned table(s) and
        * how to partition the data.
    @@ -148,6 +185,8 @@ public interface BigQueryDestinationOrBuilder extends
       com.google.cloud.asset.v1.PartitionSpecOrBuilder getPartitionSpecOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * If this flag is `TRUE`, the snapshot results will be written to one or
        * multiple tables, each of which contains results of one asset type. The
    @@ -176,6 +215,7 @@ public interface BigQueryDestinationOrBuilder extends
        * 
    * * bool separate_tables_per_asset_type = 5; + * * @return The separateTablesPerAssetType. */ boolean getSeparateTablesPerAssetType(); diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluation.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluation.java similarity index 67% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluation.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluation.java index f8b38612e299..efe98417713b 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluation.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluation.java @@ -1,63 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** + * + * *
      * The Condition evaluation.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.ConditionEvaluation} */ -public final class ConditionEvaluation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ConditionEvaluation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.ConditionEvaluation) ConditionEvaluationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConditionEvaluation.newBuilder() to construct. private ConditionEvaluation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ConditionEvaluation() { evaluationValue_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConditionEvaluation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_ConditionEvaluation_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_ConditionEvaluation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ConditionEvaluation.class, com.google.cloud.asset.v1.ConditionEvaluation.Builder.class); + com.google.cloud.asset.v1.ConditionEvaluation.class, + com.google.cloud.asset.v1.ConditionEvaluation.Builder.class); } /** + * + * *
        * Value of this expression.
        * 
    * * Protobuf enum {@code google.cloud.asset.v1.ConditionEvaluation.EvaluationValue} */ - public enum EvaluationValue - implements com.google.protobuf.ProtocolMessageEnum { + public enum EvaluationValue implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
          * Reserved for future use.
          * 
    @@ -66,6 +88,8 @@ public enum EvaluationValue */ EVALUATION_VALUE_UNSPECIFIED(0), /** + * + * *
          * The evaluation result is `true`.
          * 
    @@ -74,6 +98,8 @@ public enum EvaluationValue */ TRUE(1), /** + * + * *
          * The evaluation result is `false`.
          * 
    @@ -82,6 +108,8 @@ public enum EvaluationValue */ FALSE(2), /** + * + * *
          * The evaluation result is `conditional` when the condition expression
          * contains variables that are either missing input values or have not been
    @@ -95,6 +123,8 @@ public enum EvaluationValue
         ;
     
         /**
    +     *
    +     *
          * 
          * Reserved for future use.
          * 
    @@ -103,6 +133,8 @@ public enum EvaluationValue */ public static final int EVALUATION_VALUE_UNSPECIFIED_VALUE = 0; /** + * + * *
          * The evaluation result is `true`.
          * 
    @@ -111,6 +143,8 @@ public enum EvaluationValue */ public static final int TRUE_VALUE = 1; /** + * + * *
          * The evaluation result is `false`.
          * 
    @@ -119,6 +153,8 @@ public enum EvaluationValue */ public static final int FALSE_VALUE = 2; /** + * + * *
          * The evaluation result is `conditional` when the condition expression
          * contains variables that are either missing input values or have not been
    @@ -129,7 +165,6 @@ public enum EvaluationValue
          */
         public static final int CONDITIONAL_VALUE = 3;
     
    -
         public final int getNumber() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalArgumentException(
    @@ -154,40 +189,44 @@ public static EvaluationValue valueOf(int value) {
          */
         public static EvaluationValue forNumber(int value) {
           switch (value) {
    -        case 0: return EVALUATION_VALUE_UNSPECIFIED;
    -        case 1: return TRUE;
    -        case 2: return FALSE;
    -        case 3: return CONDITIONAL;
    -        default: return null;
    +        case 0:
    +          return EVALUATION_VALUE_UNSPECIFIED;
    +        case 1:
    +          return TRUE;
    +        case 2:
    +          return FALSE;
    +        case 3:
    +          return CONDITIONAL;
    +        default:
    +          return null;
           }
         }
     
    -    public static com.google.protobuf.Internal.EnumLiteMap
    -        internalGetValueMap() {
    +    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
           return internalValueMap;
         }
    -    private static final com.google.protobuf.Internal.EnumLiteMap<
    -        EvaluationValue> internalValueMap =
    -          new com.google.protobuf.Internal.EnumLiteMap() {
    -            public EvaluationValue findValueByNumber(int number) {
    -              return EvaluationValue.forNumber(number);
    -            }
    -          };
     
    -    public final com.google.protobuf.Descriptors.EnumValueDescriptor
    -        getValueDescriptor() {
    +    private static final com.google.protobuf.Internal.EnumLiteMap
    +        internalValueMap =
    +            new com.google.protobuf.Internal.EnumLiteMap() {
    +              public EvaluationValue findValueByNumber(int number) {
    +                return EvaluationValue.forNumber(number);
    +              }
    +            };
    +
    +    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalStateException(
                 "Can't get the descriptor of an unrecognized enum value.");
           }
           return getDescriptor().getValues().get(ordinal());
         }
    -    public final com.google.protobuf.Descriptors.EnumDescriptor
    -        getDescriptorForType() {
    +
    +    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
           return getDescriptor();
         }
    -    public static final com.google.protobuf.Descriptors.EnumDescriptor
    -        getDescriptor() {
    +
    +    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
           return com.google.cloud.asset.v1.ConditionEvaluation.getDescriptor().getEnumTypes().get(0);
         }
     
    @@ -196,8 +235,7 @@ public EvaluationValue findValueByNumber(int number) {
         public static EvaluationValue valueOf(
             com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
           if (desc.getType() != getDescriptor()) {
    -        throw new java.lang.IllegalArgumentException(
    -          "EnumValueDescriptor is not for this type.");
    +        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
           }
           if (desc.getIndex() == -1) {
             return UNRECOGNIZED;
    @@ -217,31 +255,43 @@ private EvaluationValue(int value) {
       public static final int EVALUATION_VALUE_FIELD_NUMBER = 1;
       private int evaluationValue_;
       /**
    +   *
    +   *
        * 
        * The evaluation result.
        * 
    * * .google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1; + * * @return The enum numeric value on the wire for evaluationValue. */ - @java.lang.Override public int getEvaluationValueValue() { + @java.lang.Override + public int getEvaluationValueValue() { return evaluationValue_; } /** + * + * *
        * The evaluation result.
        * 
    * * .google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1; + * * @return The evaluationValue. */ - @java.lang.Override public com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue getEvaluationValue() { + @java.lang.Override + public com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue getEvaluationValue() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue result = com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue.valueOf(evaluationValue_); - return result == null ? com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue.UNRECOGNIZED : result; + com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue result = + com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue.valueOf(evaluationValue_); + return result == null + ? com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,9 +303,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (evaluationValue_ != com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue.EVALUATION_VALUE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (evaluationValue_ + != com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue + .EVALUATION_VALUE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, evaluationValue_); } getUnknownFields().writeTo(output); @@ -267,9 +319,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (evaluationValue_ != com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue.EVALUATION_VALUE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, evaluationValue_); + if (evaluationValue_ + != com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue + .EVALUATION_VALUE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, evaluationValue_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -279,12 +333,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.ConditionEvaluation)) { return super.equals(obj); } - com.google.cloud.asset.v1.ConditionEvaluation other = (com.google.cloud.asset.v1.ConditionEvaluation) obj; + com.google.cloud.asset.v1.ConditionEvaluation other = + (com.google.cloud.asset.v1.ConditionEvaluation) obj; if (evaluationValue_ != other.evaluationValue_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -305,130 +360,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ConditionEvaluation 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.asset.v1.ConditionEvaluation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.ConditionEvaluation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.ConditionEvaluation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ConditionEvaluation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.ConditionEvaluation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * The Condition evaluation.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.ConditionEvaluation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.ConditionEvaluation) com.google.cloud.asset.v1.ConditionEvaluationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_ConditionEvaluation_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_ConditionEvaluation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ConditionEvaluation.class, com.google.cloud.asset.v1.ConditionEvaluation.Builder.class); + com.google.cloud.asset.v1.ConditionEvaluation.class, + com.google.cloud.asset.v1.ConditionEvaluation.Builder.class); } // Construct using com.google.cloud.asset.v1.ConditionEvaluation.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -438,9 +499,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor; } @java.lang.Override @@ -459,7 +520,8 @@ public com.google.cloud.asset.v1.ConditionEvaluation build() { @java.lang.Override public com.google.cloud.asset.v1.ConditionEvaluation buildPartial() { - com.google.cloud.asset.v1.ConditionEvaluation result = new com.google.cloud.asset.v1.ConditionEvaluation(this); + com.google.cloud.asset.v1.ConditionEvaluation result = + new com.google.cloud.asset.v1.ConditionEvaluation(this); result.evaluationValue_ = evaluationValue_; onBuilt(); return result; @@ -469,38 +531,39 @@ public com.google.cloud.asset.v1.ConditionEvaluation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.ConditionEvaluation) { - return mergeFrom((com.google.cloud.asset.v1.ConditionEvaluation)other); + return mergeFrom((com.google.cloud.asset.v1.ConditionEvaluation) other); } else { super.mergeFrom(other); return this; @@ -538,17 +601,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - evaluationValue_ = input.readEnum(); - - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + evaluationValue_ = input.readEnum(); + + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -561,80 +626,100 @@ public Builder mergeFrom( private int evaluationValue_ = 0; /** + * + * *
          * The evaluation result.
          * 
    * * .google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1; + * * @return The enum numeric value on the wire for evaluationValue. */ - @java.lang.Override public int getEvaluationValueValue() { + @java.lang.Override + public int getEvaluationValueValue() { return evaluationValue_; } /** + * + * *
          * The evaluation result.
          * 
    * * .google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1; + * * @param value The enum numeric value on the wire for evaluationValue to set. * @return This builder for chaining. */ public Builder setEvaluationValueValue(int value) { - + evaluationValue_ = value; onChanged(); return this; } /** + * + * *
          * The evaluation result.
          * 
    * * .google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1; + * * @return The evaluationValue. */ @java.lang.Override public com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue getEvaluationValue() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue result = com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue.valueOf(evaluationValue_); - return result == null ? com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue.UNRECOGNIZED : result; + com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue result = + com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue.valueOf(evaluationValue_); + return result == null + ? com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue.UNRECOGNIZED + : result; } /** + * + * *
          * The evaluation result.
          * 
    * * .google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1; + * * @param value The evaluationValue to set. * @return This builder for chaining. */ - public Builder setEvaluationValue(com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue value) { + public Builder setEvaluationValue( + com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue value) { if (value == null) { throw new NullPointerException(); } - + evaluationValue_ = value.getNumber(); onChanged(); return this; } /** + * + * *
          * The evaluation result.
          * 
    * * .google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1; + * * @return This builder for chaining. */ public Builder clearEvaluationValue() { - + evaluationValue_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -644,12 +729,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.ConditionEvaluation) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.ConditionEvaluation) private static final com.google.cloud.asset.v1.ConditionEvaluation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.ConditionEvaluation(); } @@ -658,27 +743,27 @@ public static com.google.cloud.asset.v1.ConditionEvaluation getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConditionEvaluation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConditionEvaluation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -693,6 +778,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.ConditionEvaluation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluationOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluationOrBuilder.java similarity index 55% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluationOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluationOrBuilder.java index 999084a21084..316a06ba4cd8 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluationOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluationOrBuilder.java @@ -1,27 +1,49 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; -public interface ConditionEvaluationOrBuilder extends +public interface ConditionEvaluationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.ConditionEvaluation) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The evaluation result.
        * 
    * * .google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1; + * * @return The enum numeric value on the wire for evaluationValue. */ int getEvaluationValueValue(); /** + * + * *
        * The evaluation result.
        * 
    * * .google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1; + * * @return The evaluationValue. */ com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue getEvaluationValue(); diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ContentType.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ContentType.java similarity index 70% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ContentType.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ContentType.java index 9838b22f41bb..973207d8905d 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ContentType.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ContentType.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * Asset content type.
      * 
    * * Protobuf enum {@code google.cloud.asset.v1.ContentType} */ -public enum ContentType - implements com.google.protobuf.ProtocolMessageEnum { +public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unspecified content type.
        * 
    @@ -21,6 +39,8 @@ public enum ContentType */ CONTENT_TYPE_UNSPECIFIED(0), /** + * + * *
        * Resource metadata.
        * 
    @@ -29,6 +49,8 @@ public enum ContentType */ RESOURCE(1), /** + * + * *
        * The actual IAM policy set on a resource.
        * 
    @@ -37,6 +59,8 @@ public enum ContentType */ IAM_POLICY(2), /** + * + * *
        * The Cloud Organization Policy set on an asset.
        * 
    @@ -45,6 +69,8 @@ public enum ContentType */ ORG_POLICY(4), /** + * + * *
        * The Cloud Access context manager Policy set on an asset.
        * 
    @@ -53,6 +79,8 @@ public enum ContentType */ ACCESS_POLICY(5), /** + * + * *
        * The runtime OS Inventory information.
        * 
    @@ -61,6 +89,8 @@ public enum ContentType */ OS_INVENTORY(6), /** + * + * *
        * The related resources.
        * 
    @@ -72,6 +102,8 @@ public enum ContentType ; /** + * + * *
        * Unspecified content type.
        * 
    @@ -80,6 +112,8 @@ public enum ContentType */ public static final int CONTENT_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Resource metadata.
        * 
    @@ -88,6 +122,8 @@ public enum ContentType */ public static final int RESOURCE_VALUE = 1; /** + * + * *
        * The actual IAM policy set on a resource.
        * 
    @@ -96,6 +132,8 @@ public enum ContentType */ public static final int IAM_POLICY_VALUE = 2; /** + * + * *
        * The Cloud Organization Policy set on an asset.
        * 
    @@ -104,6 +142,8 @@ public enum ContentType */ public static final int ORG_POLICY_VALUE = 4; /** + * + * *
        * The Cloud Access context manager Policy set on an asset.
        * 
    @@ -112,6 +152,8 @@ public enum ContentType */ public static final int ACCESS_POLICY_VALUE = 5; /** + * + * *
        * The runtime OS Inventory information.
        * 
    @@ -120,6 +162,8 @@ public enum ContentType */ public static final int OS_INVENTORY_VALUE = 6; /** + * + * *
        * The related resources.
        * 
    @@ -128,7 +172,6 @@ public enum ContentType */ public static final int RELATIONSHIP_VALUE = 7; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -153,53 +196,57 @@ public static ContentType valueOf(int value) { */ public static ContentType forNumber(int value) { switch (value) { - case 0: return CONTENT_TYPE_UNSPECIFIED; - case 1: return RESOURCE; - case 2: return IAM_POLICY; - case 4: return ORG_POLICY; - case 5: return ACCESS_POLICY; - case 6: return OS_INVENTORY; - case 7: return RELATIONSHIP; - default: return null; + case 0: + return CONTENT_TYPE_UNSPECIFIED; + case 1: + return RESOURCE; + case 2: + return IAM_POLICY; + case 4: + return ORG_POLICY; + case 5: + return ACCESS_POLICY; + case 6: + return OS_INVENTORY; + case 7: + return RELATIONSHIP; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ContentType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ContentType findValueByNumber(int number) { - return ContentType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ContentType findValueByNumber(int number) { + return ContentType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.asset.v1.AssetServiceProto.getDescriptor().getEnumTypes().get(0); } private static final ContentType[] VALUES = values(); - public static ContentType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ContentType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -215,4 +262,3 @@ private ContentType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.asset.v1.ContentType) } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java similarity index 74% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java index 93fd3c3cb30c..2c455c809c7f 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * Create asset feed request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.CreateFeedRequest} */ -public final class CreateFeedRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateFeedRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.CreateFeedRequest) CreateFeedRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateFeedRequest.newBuilder() to construct. private CreateFeedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateFeedRequest() { parent_ = ""; feedId_ = ""; @@ -26,32 +44,35 @@ private CreateFeedRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateFeedRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_CreateFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_CreateFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.CreateFeedRequest.class, com.google.cloud.asset.v1.CreateFeedRequest.Builder.class); + com.google.cloud.asset.v1.CreateFeedRequest.class, + com.google.cloud.asset.v1.CreateFeedRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
        * Required. The name of the project/folder/organization where this feed
        * should be created in. It can only be an organization number (such as
    @@ -61,6 +82,7 @@ protected java.lang.Object newInstance(
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -69,14 +91,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
        * Required. The name of the project/folder/organization where this feed
        * should be created in. It can only be an organization number (such as
    @@ -86,16 +109,15 @@ public java.lang.String getParent() {
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -106,12 +128,15 @@ public java.lang.String getParent() { public static final int FEED_ID_FIELD_NUMBER = 2; private volatile java.lang.Object feedId_; /** + * + * *
        * Required. This is the client-assigned asset feed identifier and it needs to
        * be unique under a specific parent project/folder/organization.
        * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The feedId. */ @java.lang.Override @@ -120,30 +145,30 @@ public java.lang.String getFeedId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); feedId_ = s; return s; } } /** + * + * *
        * Required. This is the client-assigned asset feed identifier and it needs to
        * be unique under a specific parent project/folder/organization.
        * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for feedId. */ @java.lang.Override - public com.google.protobuf.ByteString - getFeedIdBytes() { + public com.google.protobuf.ByteString getFeedIdBytes() { java.lang.Object ref = feedId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); feedId_ = b; return b; } else { @@ -154,6 +179,8 @@ public java.lang.String getFeedId() { public static final int FEED_FIELD_NUMBER = 3; private com.google.cloud.asset.v1.Feed feed_; /** + * + * *
        * Required. The feed details. The field `name` must be empty and it will be generated
        * in the format of:
    @@ -163,6 +190,7 @@ public java.lang.String getFeedId() {
        * 
    * * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the feed field is set. */ @java.lang.Override @@ -170,6 +198,8 @@ public boolean hasFeed() { return feed_ != null; } /** + * + * *
        * Required. The feed details. The field `name` must be empty and it will be generated
        * in the format of:
    @@ -179,6 +209,7 @@ public boolean hasFeed() {
        * 
    * * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The feed. */ @java.lang.Override @@ -186,6 +217,8 @@ public com.google.cloud.asset.v1.Feed getFeed() { return feed_ == null ? com.google.cloud.asset.v1.Feed.getDefaultInstance() : feed_; } /** + * + * *
        * Required. The feed details. The field `name` must be empty and it will be generated
        * in the format of:
    @@ -202,6 +235,7 @@ public com.google.cloud.asset.v1.FeedOrBuilder getFeedOrBuilder() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -213,8 +247,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
         }
    @@ -240,8 +273,7 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, feedId_);
         }
         if (feed_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(3, getFeed());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFeed());
         }
         size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
    @@ -251,21 +283,19 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1.CreateFeedRequest)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1.CreateFeedRequest other = (com.google.cloud.asset.v1.CreateFeedRequest) obj;
    +    com.google.cloud.asset.v1.CreateFeedRequest other =
    +        (com.google.cloud.asset.v1.CreateFeedRequest) obj;
     
    -    if (!getParent()
    -        .equals(other.getParent())) return false;
    -    if (!getFeedId()
    -        .equals(other.getFeedId())) return false;
    +    if (!getParent().equals(other.getParent())) return false;
    +    if (!getFeedId().equals(other.getFeedId())) return false;
         if (hasFeed() != other.hasFeed()) return false;
         if (hasFeed()) {
    -      if (!getFeed()
    -          .equals(other.getFeed())) return false;
    +      if (!getFeed().equals(other.getFeed())) return false;
         }
         if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
    @@ -291,130 +321,136 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.CreateFeedRequest 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.asset.v1.CreateFeedRequest parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.cloud.asset.v1.CreateFeedRequest parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.cloud.asset.v1.CreateFeedRequest parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.CreateFeedRequest parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.CreateFeedRequest parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.cloud.asset.v1.CreateFeedRequest prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Create asset feed request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.CreateFeedRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.CreateFeedRequest) com.google.cloud.asset.v1.CreateFeedRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_CreateFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_CreateFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.CreateFeedRequest.class, com.google.cloud.asset.v1.CreateFeedRequest.Builder.class); + com.google.cloud.asset.v1.CreateFeedRequest.class, + com.google.cloud.asset.v1.CreateFeedRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.CreateFeedRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -432,9 +468,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor; } @java.lang.Override @@ -453,7 +489,8 @@ public com.google.cloud.asset.v1.CreateFeedRequest build() { @java.lang.Override public com.google.cloud.asset.v1.CreateFeedRequest buildPartial() { - com.google.cloud.asset.v1.CreateFeedRequest result = new com.google.cloud.asset.v1.CreateFeedRequest(this); + com.google.cloud.asset.v1.CreateFeedRequest result = + new com.google.cloud.asset.v1.CreateFeedRequest(this); result.parent_ = parent_; result.feedId_ = feedId_; if (feedBuilder_ == null) { @@ -469,38 +506,39 @@ public com.google.cloud.asset.v1.CreateFeedRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.CreateFeedRequest) { - return mergeFrom((com.google.cloud.asset.v1.CreateFeedRequest)other); + return mergeFrom((com.google.cloud.asset.v1.CreateFeedRequest) other); } else { super.mergeFrom(other); return this; @@ -546,29 +584,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - feedId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + feedId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - input.readMessage( - getFeedFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getFeedFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -581,6 +621,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
          * Required. The name of the project/folder/organization where this feed
          * should be created in. It can only be an organization number (such as
    @@ -590,13 +632,13 @@ public Builder mergeFrom(
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -605,6 +647,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. The name of the project/folder/organization where this feed
          * should be created in. It can only be an organization number (such as
    @@ -614,15 +658,14 @@ public java.lang.String getParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -630,6 +673,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. The name of the project/folder/organization where this feed
          * should be created in. It can only be an organization number (such as
    @@ -639,20 +684,22 @@ public java.lang.String getParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
          * Required. The name of the project/folder/organization where this feed
          * should be created in. It can only be an organization number (such as
    @@ -662,15 +709,18 @@ public Builder setParent(
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
          * Required. The name of the project/folder/organization where this feed
          * should be created in. It can only be an organization number (such as
    @@ -680,16 +730,16 @@ public Builder clearParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -697,19 +747,21 @@ public Builder setParentBytes( private java.lang.Object feedId_ = ""; /** + * + * *
          * Required. This is the client-assigned asset feed identifier and it needs to
          * be unique under a specific parent project/folder/organization.
          * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The feedId. */ public java.lang.String getFeedId() { java.lang.Object ref = feedId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); feedId_ = s; return s; @@ -718,21 +770,22 @@ public java.lang.String getFeedId() { } } /** + * + * *
          * Required. This is the client-assigned asset feed identifier and it needs to
          * be unique under a specific parent project/folder/organization.
          * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for feedId. */ - public com.google.protobuf.ByteString - getFeedIdBytes() { + public com.google.protobuf.ByteString getFeedIdBytes() { java.lang.Object ref = feedId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); feedId_ = b; return b; } else { @@ -740,57 +793,64 @@ public java.lang.String getFeedId() { } } /** + * + * *
          * Required. This is the client-assigned asset feed identifier and it needs to
          * be unique under a specific parent project/folder/organization.
          * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The feedId to set. * @return This builder for chaining. */ - public Builder setFeedId( - java.lang.String value) { + public Builder setFeedId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + feedId_ = value; onChanged(); return this; } /** + * + * *
          * Required. This is the client-assigned asset feed identifier and it needs to
          * be unique under a specific parent project/folder/organization.
          * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFeedId() { - + feedId_ = getDefaultInstance().getFeedId(); onChanged(); return this; } /** + * + * *
          * Required. This is the client-assigned asset feed identifier and it needs to
          * be unique under a specific parent project/folder/organization.
          * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for feedId to set. * @return This builder for chaining. */ - public Builder setFeedIdBytes( - com.google.protobuf.ByteString value) { + public Builder setFeedIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + feedId_ = value; onChanged(); return this; @@ -798,8 +858,13 @@ public Builder setFeedIdBytes( private com.google.cloud.asset.v1.Feed feed_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.Feed, com.google.cloud.asset.v1.Feed.Builder, com.google.cloud.asset.v1.FeedOrBuilder> feedBuilder_; + com.google.cloud.asset.v1.Feed, + com.google.cloud.asset.v1.Feed.Builder, + com.google.cloud.asset.v1.FeedOrBuilder> + feedBuilder_; /** + * + * *
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -809,12 +874,15 @@ public Builder setFeedIdBytes(
          * 
    * * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the feed field is set. */ public boolean hasFeed() { return feedBuilder_ != null || feed_ != null; } /** + * + * *
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -824,6 +892,7 @@ public boolean hasFeed() {
          * 
    * * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The feed. */ public com.google.cloud.asset.v1.Feed getFeed() { @@ -834,6 +903,8 @@ public com.google.cloud.asset.v1.Feed getFeed() { } } /** + * + * *
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -858,6 +929,8 @@ public Builder setFeed(com.google.cloud.asset.v1.Feed value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -868,8 +941,7 @@ public Builder setFeed(com.google.cloud.asset.v1.Feed value) {
          *
          * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED];
          */
    -    public Builder setFeed(
    -        com.google.cloud.asset.v1.Feed.Builder builderForValue) {
    +    public Builder setFeed(com.google.cloud.asset.v1.Feed.Builder builderForValue) {
           if (feedBuilder_ == null) {
             feed_ = builderForValue.build();
             onChanged();
    @@ -880,6 +952,8 @@ public Builder setFeed(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -893,8 +967,7 @@ public Builder setFeed(
         public Builder mergeFeed(com.google.cloud.asset.v1.Feed value) {
           if (feedBuilder_ == null) {
             if (feed_ != null) {
    -          feed_ =
    -            com.google.cloud.asset.v1.Feed.newBuilder(feed_).mergeFrom(value).buildPartial();
    +          feed_ = com.google.cloud.asset.v1.Feed.newBuilder(feed_).mergeFrom(value).buildPartial();
             } else {
               feed_ = value;
             }
    @@ -906,6 +979,8 @@ public Builder mergeFeed(com.google.cloud.asset.v1.Feed value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -928,6 +1003,8 @@ public Builder clearFeed() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -939,11 +1016,13 @@ public Builder clearFeed() {
          * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED];
          */
         public com.google.cloud.asset.v1.Feed.Builder getFeedBuilder() {
    -      
    +
           onChanged();
           return getFeedFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -958,11 +1037,12 @@ public com.google.cloud.asset.v1.FeedOrBuilder getFeedOrBuilder() {
           if (feedBuilder_ != null) {
             return feedBuilder_.getMessageOrBuilder();
           } else {
    -        return feed_ == null ?
    -            com.google.cloud.asset.v1.Feed.getDefaultInstance() : feed_;
    +        return feed_ == null ? com.google.cloud.asset.v1.Feed.getDefaultInstance() : feed_;
           }
         }
         /**
    +     *
    +     *
          * 
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -974,21 +1054,24 @@ public com.google.cloud.asset.v1.FeedOrBuilder getFeedOrBuilder() {
          * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED];
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1.Feed, com.google.cloud.asset.v1.Feed.Builder, com.google.cloud.asset.v1.FeedOrBuilder> 
    +            com.google.cloud.asset.v1.Feed,
    +            com.google.cloud.asset.v1.Feed.Builder,
    +            com.google.cloud.asset.v1.FeedOrBuilder>
             getFeedFieldBuilder() {
           if (feedBuilder_ == null) {
    -        feedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.Feed, com.google.cloud.asset.v1.Feed.Builder, com.google.cloud.asset.v1.FeedOrBuilder>(
    -                getFeed(),
    -                getParentForChildren(),
    -                isClean());
    +        feedBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.cloud.asset.v1.Feed,
    +                com.google.cloud.asset.v1.Feed.Builder,
    +                com.google.cloud.asset.v1.FeedOrBuilder>(
    +                getFeed(), getParentForChildren(), isClean());
             feed_ = null;
           }
           return feedBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -998,12 +1081,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.CreateFeedRequest)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.CreateFeedRequest)
       private static final com.google.cloud.asset.v1.CreateFeedRequest DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1.CreateFeedRequest();
       }
    @@ -1012,27 +1095,27 @@ public static com.google.cloud.asset.v1.CreateFeedRequest getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public CreateFeedRequest parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      Builder builder = newBuilder();
    -      try {
    -        builder.mergeFrom(input, extensionRegistry);
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(builder.buildPartial());
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    -            .setUnfinishedMessage(builder.buildPartial());
    -      }
    -      return builder.buildPartial();
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public CreateFeedRequest parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1047,6 +1130,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1.CreateFeedRequest getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java
    similarity index 79%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java
    rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java
    index e8371de16d32..50a62037baab 100644
    --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequestOrBuilder.java
    @@ -1,13 +1,31 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
    -public interface CreateFeedRequestOrBuilder extends
    +public interface CreateFeedRequestOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.CreateFeedRequest)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * Required. The name of the project/folder/organization where this feed
        * should be created in. It can only be an organization number (such as
    @@ -17,10 +35,13 @@ public interface CreateFeedRequestOrBuilder extends
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
        * Required. The name of the project/folder/organization where this feed
        * should be created in. It can only be an organization number (such as
    @@ -30,34 +51,41 @@ public interface CreateFeedRequestOrBuilder extends
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
        * Required. This is the client-assigned asset feed identifier and it needs to
        * be unique under a specific parent project/folder/organization.
        * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The feedId. */ java.lang.String getFeedId(); /** + * + * *
        * Required. This is the client-assigned asset feed identifier and it needs to
        * be unique under a specific parent project/folder/organization.
        * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for feedId. */ - com.google.protobuf.ByteString - getFeedIdBytes(); + com.google.protobuf.ByteString getFeedIdBytes(); /** + * + * *
        * Required. The feed details. The field `name` must be empty and it will be generated
        * in the format of:
    @@ -67,10 +95,13 @@ public interface CreateFeedRequestOrBuilder extends
        * 
    * * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the feed field is set. */ boolean hasFeed(); /** + * + * *
        * Required. The feed details. The field `name` must be empty and it will be generated
        * in the format of:
    @@ -80,10 +111,13 @@ public interface CreateFeedRequestOrBuilder extends
        * 
    * * .google.cloud.asset.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The feed. */ com.google.cloud.asset.v1.Feed getFeed(); /** + * + * *
        * Required. The feed details. The field `name` must be empty and it will be generated
        * in the format of:
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequest.java
    similarity index 68%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequest.java
    rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequest.java
    index 2d7bcbf3e098..fdd1bd238ee0 100644
    --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequest.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequest.java
    @@ -1,24 +1,42 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
     /**
    + *
    + *
      * 
      * Request to create a saved query.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.CreateSavedQueryRequest} */ -public final class CreateSavedQueryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateSavedQueryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.CreateSavedQueryRequest) CreateSavedQueryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateSavedQueryRequest.newBuilder() to construct. private CreateSavedQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateSavedQueryRequest() { parent_ = ""; savedQueryId_ = ""; @@ -26,32 +44,35 @@ private CreateSavedQueryRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateSavedQueryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.CreateSavedQueryRequest.class, com.google.cloud.asset.v1.CreateSavedQueryRequest.Builder.class); + com.google.cloud.asset.v1.CreateSavedQueryRequest.class, + com.google.cloud.asset.v1.CreateSavedQueryRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
        * Required. The name of the project/folder/organization where this saved_query
        * should be created in. It can only be an organization number (such as
    @@ -60,7 +81,10 @@ protected java.lang.Object newInstance(
        * "projects/12345").
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -69,14 +93,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
        * Required. The name of the project/folder/organization where this saved_query
        * should be created in. It can only be an organization number (such as
    @@ -85,17 +110,18 @@ public java.lang.String getParent() {
        * "projects/12345").
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -106,12 +132,17 @@ public java.lang.String getParent() { public static final int SAVED_QUERY_FIELD_NUMBER = 2; private com.google.cloud.asset.v1.SavedQuery savedQuery_; /** + * + * *
        * Required. The saved_query details. The `name` field must be empty as it will be
        * generated based on the parent and saved_query_id.
        * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the savedQuery field is set. */ @java.lang.Override @@ -119,25 +150,36 @@ public boolean hasSavedQuery() { return savedQuery_ != null; } /** + * + * *
        * Required. The saved_query details. The `name` field must be empty as it will be
        * generated based on the parent and saved_query_id.
        * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The savedQuery. */ @java.lang.Override public com.google.cloud.asset.v1.SavedQuery getSavedQuery() { - return savedQuery_ == null ? com.google.cloud.asset.v1.SavedQuery.getDefaultInstance() : savedQuery_; + return savedQuery_ == null + ? com.google.cloud.asset.v1.SavedQuery.getDefaultInstance() + : savedQuery_; } /** + * + * *
        * Required. The saved_query details. The `name` field must be empty as it will be
        * generated based on the parent and saved_query_id.
        * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() { @@ -147,6 +189,8 @@ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() { public static final int SAVED_QUERY_ID_FIELD_NUMBER = 3; private volatile java.lang.Object savedQueryId_; /** + * + * *
        * Required. The ID to use for the saved query, which must be unique in the specified
        * parent. It will become the final component of the saved query's resource
    @@ -158,6 +202,7 @@ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() {
        * 
    * * string saved_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The savedQueryId. */ @java.lang.Override @@ -166,14 +211,15 @@ public java.lang.String getSavedQueryId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); savedQueryId_ = s; return s; } } /** + * + * *
        * Required. The ID to use for the saved query, which must be unique in the specified
        * parent. It will become the final component of the saved query's resource
    @@ -185,16 +231,15 @@ public java.lang.String getSavedQueryId() {
        * 
    * * string saved_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for savedQueryId. */ @java.lang.Override - public com.google.protobuf.ByteString - getSavedQueryIdBytes() { + public com.google.protobuf.ByteString getSavedQueryIdBytes() { java.lang.Object ref = savedQueryId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); savedQueryId_ = b; return b; } else { @@ -203,6 +248,7 @@ public java.lang.String getSavedQueryId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,8 +260,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -238,8 +283,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (savedQuery_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSavedQuery()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSavedQuery()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedQueryId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, savedQueryId_); @@ -252,22 +296,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.CreateSavedQueryRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.CreateSavedQueryRequest other = (com.google.cloud.asset.v1.CreateSavedQueryRequest) obj; + com.google.cloud.asset.v1.CreateSavedQueryRequest other = + (com.google.cloud.asset.v1.CreateSavedQueryRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasSavedQuery() != other.hasSavedQuery()) return false; if (hasSavedQuery()) { - if (!getSavedQuery() - .equals(other.getSavedQuery())) return false; + if (!getSavedQuery().equals(other.getSavedQuery())) return false; } - if (!getSavedQueryId() - .equals(other.getSavedQueryId())) return false; + if (!getSavedQueryId().equals(other.getSavedQueryId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -293,129 +335,135 @@ public int hashCode() { } public static com.google.cloud.asset.v1.CreateSavedQueryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.CreateSavedQueryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.CreateSavedQueryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.CreateSavedQueryRequest 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.asset.v1.CreateSavedQueryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.CreateSavedQueryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.CreateSavedQueryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.CreateSavedQueryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.CreateSavedQueryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.CreateSavedQueryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.CreateSavedQueryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.CreateSavedQueryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.CreateSavedQueryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.CreateSavedQueryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.CreateSavedQueryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Request to create a saved query.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.CreateSavedQueryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.CreateSavedQueryRequest) com.google.cloud.asset.v1.CreateSavedQueryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.CreateSavedQueryRequest.class, com.google.cloud.asset.v1.CreateSavedQueryRequest.Builder.class); + com.google.cloud.asset.v1.CreateSavedQueryRequest.class, + com.google.cloud.asset.v1.CreateSavedQueryRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.CreateSavedQueryRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -433,9 +481,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_descriptor; } @java.lang.Override @@ -454,7 +502,8 @@ public com.google.cloud.asset.v1.CreateSavedQueryRequest build() { @java.lang.Override public com.google.cloud.asset.v1.CreateSavedQueryRequest buildPartial() { - com.google.cloud.asset.v1.CreateSavedQueryRequest result = new com.google.cloud.asset.v1.CreateSavedQueryRequest(this); + com.google.cloud.asset.v1.CreateSavedQueryRequest result = + new com.google.cloud.asset.v1.CreateSavedQueryRequest(this); result.parent_ = parent_; if (savedQueryBuilder_ == null) { result.savedQuery_ = savedQuery_; @@ -470,38 +519,39 @@ public com.google.cloud.asset.v1.CreateSavedQueryRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.CreateSavedQueryRequest) { - return mergeFrom((com.google.cloud.asset.v1.CreateSavedQueryRequest)other); + return mergeFrom((com.google.cloud.asset.v1.CreateSavedQueryRequest) other); } else { super.mergeFrom(other); return this; @@ -509,7 +559,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.CreateSavedQueryRequest other) { - if (other == com.google.cloud.asset.v1.CreateSavedQueryRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1.CreateSavedQueryRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -547,29 +598,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - input.readMessage( - getSavedQueryFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getSavedQueryFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - case 26: { - savedQueryId_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: + { + savedQueryId_ = input.readStringRequireUtf8(); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -582,6 +635,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
          * Required. The name of the project/folder/organization where this saved_query
          * should be created in. It can only be an organization number (such as
    @@ -590,14 +645,16 @@ public Builder mergeFrom(
          * "projects/12345").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -606,6 +663,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. The name of the project/folder/organization where this saved_query
          * should be created in. It can only be an organization number (such as
    @@ -614,16 +673,17 @@ public java.lang.String getParent() {
          * "projects/12345").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -631,6 +691,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. The name of the project/folder/organization where this saved_query
          * should be created in. It can only be an organization number (such as
    @@ -639,21 +701,25 @@ public java.lang.String getParent() {
          * "projects/12345").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
          * Required. The name of the project/folder/organization where this saved_query
          * should be created in. It can only be an organization number (such as
    @@ -662,16 +728,21 @@ public Builder setParent(
          * "projects/12345").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
          * Required. The name of the project/folder/organization where this saved_query
          * should be created in. It can only be an organization number (such as
    @@ -680,17 +751,19 @@ public Builder clearParent() {
          * "projects/12345").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -698,42 +771,61 @@ public Builder setParentBytes( private com.google.cloud.asset.v1.SavedQuery savedQuery_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.SavedQuery, com.google.cloud.asset.v1.SavedQuery.Builder, com.google.cloud.asset.v1.SavedQueryOrBuilder> savedQueryBuilder_; + com.google.cloud.asset.v1.SavedQuery, + com.google.cloud.asset.v1.SavedQuery.Builder, + com.google.cloud.asset.v1.SavedQueryOrBuilder> + savedQueryBuilder_; /** + * + * *
          * Required. The saved_query details. The `name` field must be empty as it will be
          * generated based on the parent and saved_query_id.
          * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the savedQuery field is set. */ public boolean hasSavedQuery() { return savedQueryBuilder_ != null || savedQuery_ != null; } /** + * + * *
          * Required. The saved_query details. The `name` field must be empty as it will be
          * generated based on the parent and saved_query_id.
          * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The savedQuery. */ public com.google.cloud.asset.v1.SavedQuery getSavedQuery() { if (savedQueryBuilder_ == null) { - return savedQuery_ == null ? com.google.cloud.asset.v1.SavedQuery.getDefaultInstance() : savedQuery_; + return savedQuery_ == null + ? com.google.cloud.asset.v1.SavedQuery.getDefaultInstance() + : savedQuery_; } else { return savedQueryBuilder_.getMessage(); } } /** + * + * *
          * Required. The saved_query details. The `name` field must be empty as it will be
          * generated based on the parent and saved_query_id.
          * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSavedQuery(com.google.cloud.asset.v1.SavedQuery value) { if (savedQueryBuilder_ == null) { @@ -749,15 +841,18 @@ public Builder setSavedQuery(com.google.cloud.asset.v1.SavedQuery value) { return this; } /** + * + * *
          * Required. The saved_query details. The `name` field must be empty as it will be
          * generated based on the parent and saved_query_id.
          * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSavedQuery( - com.google.cloud.asset.v1.SavedQuery.Builder builderForValue) { + public Builder setSavedQuery(com.google.cloud.asset.v1.SavedQuery.Builder builderForValue) { if (savedQueryBuilder_ == null) { savedQuery_ = builderForValue.build(); onChanged(); @@ -768,18 +863,24 @@ public Builder setSavedQuery( return this; } /** + * + * *
          * Required. The saved_query details. The `name` field must be empty as it will be
          * generated based on the parent and saved_query_id.
          * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSavedQuery(com.google.cloud.asset.v1.SavedQuery value) { if (savedQueryBuilder_ == null) { if (savedQuery_ != null) { savedQuery_ = - com.google.cloud.asset.v1.SavedQuery.newBuilder(savedQuery_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.SavedQuery.newBuilder(savedQuery_) + .mergeFrom(value) + .buildPartial(); } else { savedQuery_ = value; } @@ -791,12 +892,16 @@ public Builder mergeSavedQuery(com.google.cloud.asset.v1.SavedQuery value) { return this; } /** + * + * *
          * Required. The saved_query details. The `name` field must be empty as it will be
          * generated based on the parent and saved_query_id.
          * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSavedQuery() { if (savedQueryBuilder_ == null) { @@ -810,51 +915,67 @@ public Builder clearSavedQuery() { return this; } /** + * + * *
          * Required. The saved_query details. The `name` field must be empty as it will be
          * generated based on the parent and saved_query_id.
          * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.asset.v1.SavedQuery.Builder getSavedQueryBuilder() { - + onChanged(); return getSavedQueryFieldBuilder().getBuilder(); } /** + * + * *
          * Required. The saved_query details. The `name` field must be empty as it will be
          * generated based on the parent and saved_query_id.
          * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() { if (savedQueryBuilder_ != null) { return savedQueryBuilder_.getMessageOrBuilder(); } else { - return savedQuery_ == null ? - com.google.cloud.asset.v1.SavedQuery.getDefaultInstance() : savedQuery_; + return savedQuery_ == null + ? com.google.cloud.asset.v1.SavedQuery.getDefaultInstance() + : savedQuery_; } } /** + * + * *
          * Required. The saved_query details. The `name` field must be empty as it will be
          * generated based on the parent and saved_query_id.
          * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.SavedQuery, com.google.cloud.asset.v1.SavedQuery.Builder, com.google.cloud.asset.v1.SavedQueryOrBuilder> + com.google.cloud.asset.v1.SavedQuery, + com.google.cloud.asset.v1.SavedQuery.Builder, + com.google.cloud.asset.v1.SavedQueryOrBuilder> getSavedQueryFieldBuilder() { if (savedQueryBuilder_ == null) { - savedQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.SavedQuery, com.google.cloud.asset.v1.SavedQuery.Builder, com.google.cloud.asset.v1.SavedQueryOrBuilder>( - getSavedQuery(), - getParentForChildren(), - isClean()); + savedQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.SavedQuery, + com.google.cloud.asset.v1.SavedQuery.Builder, + com.google.cloud.asset.v1.SavedQueryOrBuilder>( + getSavedQuery(), getParentForChildren(), isClean()); savedQuery_ = null; } return savedQueryBuilder_; @@ -862,6 +983,8 @@ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() { private java.lang.Object savedQueryId_ = ""; /** + * + * *
          * Required. The ID to use for the saved query, which must be unique in the specified
          * parent. It will become the final component of the saved query's resource
    @@ -873,13 +996,13 @@ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() {
          * 
    * * string saved_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The savedQueryId. */ public java.lang.String getSavedQueryId() { java.lang.Object ref = savedQueryId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); savedQueryId_ = s; return s; @@ -888,6 +1011,8 @@ public java.lang.String getSavedQueryId() { } } /** + * + * *
          * Required. The ID to use for the saved query, which must be unique in the specified
          * parent. It will become the final component of the saved query's resource
    @@ -899,15 +1024,14 @@ public java.lang.String getSavedQueryId() {
          * 
    * * string saved_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for savedQueryId. */ - public com.google.protobuf.ByteString - getSavedQueryIdBytes() { + public com.google.protobuf.ByteString getSavedQueryIdBytes() { java.lang.Object ref = savedQueryId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); savedQueryId_ = b; return b; } else { @@ -915,6 +1039,8 @@ public java.lang.String getSavedQueryId() { } } /** + * + * *
          * Required. The ID to use for the saved query, which must be unique in the specified
          * parent. It will become the final component of the saved query's resource
    @@ -926,20 +1052,22 @@ public java.lang.String getSavedQueryId() {
          * 
    * * string saved_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The savedQueryId to set. * @return This builder for chaining. */ - public Builder setSavedQueryId( - java.lang.String value) { + public Builder setSavedQueryId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + savedQueryId_ = value; onChanged(); return this; } /** + * + * *
          * Required. The ID to use for the saved query, which must be unique in the specified
          * parent. It will become the final component of the saved query's resource
    @@ -951,15 +1079,18 @@ public Builder setSavedQueryId(
          * 
    * * string saved_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSavedQueryId() { - + savedQueryId_ = getDefaultInstance().getSavedQueryId(); onChanged(); return this; } /** + * + * *
          * Required. The ID to use for the saved query, which must be unique in the specified
          * parent. It will become the final component of the saved query's resource
    @@ -971,23 +1102,23 @@ public Builder clearSavedQueryId() {
          * 
    * * string saved_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for savedQueryId to set. * @return This builder for chaining. */ - public Builder setSavedQueryIdBytes( - com.google.protobuf.ByteString value) { + public Builder setSavedQueryIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + savedQueryId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -997,12 +1128,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.CreateSavedQueryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.CreateSavedQueryRequest) private static final com.google.cloud.asset.v1.CreateSavedQueryRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.CreateSavedQueryRequest(); } @@ -1011,27 +1142,27 @@ public static com.google.cloud.asset.v1.CreateSavedQueryRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSavedQueryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSavedQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1046,6 +1177,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.CreateSavedQueryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequestOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequestOrBuilder.java index df53fe88f574..1d42d61f934b 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateSavedQueryRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface CreateSavedQueryRequestOrBuilder extends +public interface CreateSavedQueryRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.CreateSavedQueryRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The name of the project/folder/organization where this saved_query
        * should be created in. It can only be an organization number (such as
    @@ -16,11 +34,16 @@ public interface CreateSavedQueryRequestOrBuilder extends
        * "projects/12345").
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
        * Required. The name of the project/folder/organization where this saved_query
        * should be created in. It can only be an organization number (such as
    @@ -29,43 +52,61 @@ public interface CreateSavedQueryRequestOrBuilder extends
        * "projects/12345").
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
        * Required. The saved_query details. The `name` field must be empty as it will be
        * generated based on the parent and saved_query_id.
        * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the savedQuery field is set. */ boolean hasSavedQuery(); /** + * + * *
        * Required. The saved_query details. The `name` field must be empty as it will be
        * generated based on the parent and saved_query_id.
        * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The savedQuery. */ com.google.cloud.asset.v1.SavedQuery getSavedQuery(); /** + * + * *
        * Required. The saved_query details. The `name` field must be empty as it will be
        * generated based on the parent and saved_query_id.
        * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder(); /** + * + * *
        * Required. The ID to use for the saved query, which must be unique in the specified
        * parent. It will become the final component of the saved query's resource
    @@ -77,10 +118,13 @@ public interface CreateSavedQueryRequestOrBuilder extends
        * 
    * * string saved_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The savedQueryId. */ java.lang.String getSavedQueryId(); /** + * + * *
        * Required. The ID to use for the saved query, which must be unique in the specified
        * parent. It will become the final component of the saved query's resource
    @@ -92,8 +136,8 @@ public interface CreateSavedQueryRequestOrBuilder extends
        * 
    * * string saved_query_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for savedQueryId. */ - com.google.protobuf.ByteString - getSavedQueryIdBytes(); + com.google.protobuf.ByteString getSavedQueryIdBytes(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequest.java similarity index 62% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequest.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequest.java index 2c456818072a..8383be811420 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequest.java @@ -1,52 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -/** - * Protobuf type {@code google.cloud.asset.v1.DeleteFeedRequest} - */ -public final class DeleteFeedRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.asset.v1.DeleteFeedRequest} */ +public final class DeleteFeedRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.DeleteFeedRequest) DeleteFeedRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteFeedRequest.newBuilder() to construct. private DeleteFeedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteFeedRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteFeedRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_DeleteFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_DeleteFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.DeleteFeedRequest.class, com.google.cloud.asset.v1.DeleteFeedRequest.Builder.class); + com.google.cloud.asset.v1.DeleteFeedRequest.class, + com.google.cloud.asset.v1.DeleteFeedRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
        * Required. The name of the feed and it must be in the format of:
        * projects/project_number/feeds/feed_id
    @@ -54,7 +71,10 @@ protected java.lang.Object newInstance(
        * organizations/organization_number/feeds/feed_id
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -63,14 +83,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
        * Required. The name of the feed and it must be in the format of:
        * projects/project_number/feeds/feed_id
    @@ -78,17 +99,18 @@ public java.lang.String getName() {
        * organizations/organization_number/feeds/feed_id
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -97,6 +119,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +131,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -133,15 +155,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.DeleteFeedRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.DeleteFeedRequest other = (com.google.cloud.asset.v1.DeleteFeedRequest) obj; + com.google.cloud.asset.v1.DeleteFeedRequest other = + (com.google.cloud.asset.v1.DeleteFeedRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,126 +182,128 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.DeleteFeedRequest 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.asset.v1.DeleteFeedRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.DeleteFeedRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.DeleteFeedRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.DeleteFeedRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.DeleteFeedRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.DeleteFeedRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.asset.v1.DeleteFeedRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.asset.v1.DeleteFeedRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.DeleteFeedRequest) com.google.cloud.asset.v1.DeleteFeedRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_DeleteFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_DeleteFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.DeleteFeedRequest.class, com.google.cloud.asset.v1.DeleteFeedRequest.Builder.class); + com.google.cloud.asset.v1.DeleteFeedRequest.class, + com.google.cloud.asset.v1.DeleteFeedRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.DeleteFeedRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,9 +313,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor; } @java.lang.Override @@ -310,7 +334,8 @@ public com.google.cloud.asset.v1.DeleteFeedRequest build() { @java.lang.Override public com.google.cloud.asset.v1.DeleteFeedRequest buildPartial() { - com.google.cloud.asset.v1.DeleteFeedRequest result = new com.google.cloud.asset.v1.DeleteFeedRequest(this); + com.google.cloud.asset.v1.DeleteFeedRequest result = + new com.google.cloud.asset.v1.DeleteFeedRequest(this); result.name_ = name_; onBuilt(); return result; @@ -320,38 +345,39 @@ public com.google.cloud.asset.v1.DeleteFeedRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.DeleteFeedRequest) { - return mergeFrom((com.google.cloud.asset.v1.DeleteFeedRequest)other); + return mergeFrom((com.google.cloud.asset.v1.DeleteFeedRequest) other); } else { super.mergeFrom(other); return this; @@ -390,17 +416,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -413,6 +441,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
          * Required. The name of the feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -420,14 +450,16 @@ public Builder mergeFrom(
          * organizations/organization_number/feeds/feed_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -436,6 +468,8 @@ public java.lang.String getName() { } } /** + * + * *
          * Required. The name of the feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -443,16 +477,17 @@ public java.lang.String getName() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -460,6 +495,8 @@ public java.lang.String getName() { } } /** + * + * *
          * Required. The name of the feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -467,21 +504,25 @@ public java.lang.String getName() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
          * Required. The name of the feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -489,16 +530,21 @@ public Builder setName(
          * organizations/organization_number/feeds/feed_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
          * Required. The name of the feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -506,24 +552,26 @@ public Builder clearName() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -533,12 +581,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.DeleteFeedRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.DeleteFeedRequest) private static final com.google.cloud.asset.v1.DeleteFeedRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.DeleteFeedRequest(); } @@ -547,27 +595,27 @@ public static com.google.cloud.asset.v1.DeleteFeedRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteFeedRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFeedRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -582,6 +630,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.DeleteFeedRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequestOrBuilder.java new file mode 100644 index 000000000000..8212768a5565 --- /dev/null +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface DeleteFeedRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.DeleteFeedRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the feed and it must be in the format of:
    +   * projects/project_number/feeds/feed_id
    +   * folders/folder_number/feeds/feed_id
    +   * organizations/organization_number/feeds/feed_id
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. The name of the feed and it must be in the format of:
    +   * projects/project_number/feeds/feed_id
    +   * folders/folder_number/feeds/feed_id
    +   * organizations/organization_number/feeds/feed_id
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequest.java similarity index 63% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequest.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequest.java index 1943d533f0e4..684f9e751bfc 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequest.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * Request to delete a saved query.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.DeleteSavedQueryRequest} */ -public final class DeleteSavedQueryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteSavedQueryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.DeleteSavedQueryRequest) DeleteSavedQueryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteSavedQueryRequest.newBuilder() to construct. private DeleteSavedQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteSavedQueryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteSavedQueryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.DeleteSavedQueryRequest.class, com.google.cloud.asset.v1.DeleteSavedQueryRequest.Builder.class); + com.google.cloud.asset.v1.DeleteSavedQueryRequest.class, + com.google.cloud.asset.v1.DeleteSavedQueryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
        * Required. The name of the saved query to delete. It must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -58,7 +79,10 @@ protected java.lang.Object newInstance(
        * * organizations/organization_number/savedQueries/saved_query_id
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -67,14 +91,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
        * Required. The name of the saved query to delete. It must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -82,17 +107,18 @@ public java.lang.String getName() {
        * * organizations/organization_number/savedQueries/saved_query_id
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -101,6 +127,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -112,8 +139,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -137,15 +163,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.DeleteSavedQueryRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.DeleteSavedQueryRequest other = (com.google.cloud.asset.v1.DeleteSavedQueryRequest) obj; + com.google.cloud.asset.v1.DeleteSavedQueryRequest other = + (com.google.cloud.asset.v1.DeleteSavedQueryRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -165,129 +191,135 @@ public int hashCode() { } public static com.google.cloud.asset.v1.DeleteSavedQueryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.DeleteSavedQueryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.DeleteSavedQueryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.DeleteSavedQueryRequest 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.asset.v1.DeleteSavedQueryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.DeleteSavedQueryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.DeleteSavedQueryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.DeleteSavedQueryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.DeleteSavedQueryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.DeleteSavedQueryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.DeleteSavedQueryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.DeleteSavedQueryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.DeleteSavedQueryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.DeleteSavedQueryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.DeleteSavedQueryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Request to delete a saved query.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.DeleteSavedQueryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.DeleteSavedQueryRequest) com.google.cloud.asset.v1.DeleteSavedQueryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.DeleteSavedQueryRequest.class, com.google.cloud.asset.v1.DeleteSavedQueryRequest.Builder.class); + com.google.cloud.asset.v1.DeleteSavedQueryRequest.class, + com.google.cloud.asset.v1.DeleteSavedQueryRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.DeleteSavedQueryRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -297,9 +329,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_descriptor; } @java.lang.Override @@ -318,7 +350,8 @@ public com.google.cloud.asset.v1.DeleteSavedQueryRequest build() { @java.lang.Override public com.google.cloud.asset.v1.DeleteSavedQueryRequest buildPartial() { - com.google.cloud.asset.v1.DeleteSavedQueryRequest result = new com.google.cloud.asset.v1.DeleteSavedQueryRequest(this); + com.google.cloud.asset.v1.DeleteSavedQueryRequest result = + new com.google.cloud.asset.v1.DeleteSavedQueryRequest(this); result.name_ = name_; onBuilt(); return result; @@ -328,38 +361,39 @@ public com.google.cloud.asset.v1.DeleteSavedQueryRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.DeleteSavedQueryRequest) { - return mergeFrom((com.google.cloud.asset.v1.DeleteSavedQueryRequest)other); + return mergeFrom((com.google.cloud.asset.v1.DeleteSavedQueryRequest) other); } else { super.mergeFrom(other); return this; @@ -367,7 +401,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.DeleteSavedQueryRequest other) { - if (other == com.google.cloud.asset.v1.DeleteSavedQueryRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1.DeleteSavedQueryRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -398,17 +433,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,6 +458,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
          * Required. The name of the saved query to delete. It must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -428,14 +467,16 @@ public Builder mergeFrom(
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -444,6 +485,8 @@ public java.lang.String getName() { } } /** + * + * *
          * Required. The name of the saved query to delete. It must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -451,16 +494,17 @@ public java.lang.String getName() {
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -468,6 +512,8 @@ public java.lang.String getName() { } } /** + * + * *
          * Required. The name of the saved query to delete. It must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -475,21 +521,25 @@ public java.lang.String getName() {
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
          * Required. The name of the saved query to delete. It must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -497,16 +547,21 @@ public Builder setName(
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
          * Required. The name of the saved query to delete. It must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -514,24 +569,26 @@ public Builder clearName() {
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -541,12 +598,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.DeleteSavedQueryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.DeleteSavedQueryRequest) private static final com.google.cloud.asset.v1.DeleteSavedQueryRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.DeleteSavedQueryRequest(); } @@ -555,27 +612,27 @@ public static com.google.cloud.asset.v1.DeleteSavedQueryRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSavedQueryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSavedQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.DeleteSavedQueryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequestOrBuilder.java new file mode 100644 index 000000000000..ba108d449445 --- /dev/null +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface DeleteSavedQueryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.DeleteSavedQueryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the saved query to delete. It must be in the format of:
    +   * * projects/project_number/savedQueries/saved_query_id
    +   * * folders/folder_number/savedQueries/saved_query_id
    +   * * organizations/organization_number/savedQueries/saved_query_id
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. The name of the saved query to delete. It must be in the format of:
    +   * * projects/project_number/savedQueries/saved_query_id
    +   * * folders/folder_number/savedQueries/saved_query_id
    +   * * organizations/organization_number/savedQueries/saved_query_id
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java similarity index 79% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java index 38f15b5d0769..6dc1302b7995 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * Export asset request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.ExportAssetsRequest} */ -public final class ExportAssetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ExportAssetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.ExportAssetsRequest) ExportAssetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExportAssetsRequest.newBuilder() to construct. private ExportAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ExportAssetsRequest() { parent_ = ""; assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -28,32 +46,35 @@ private ExportAssetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExportAssetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ExportAssetsRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ExportAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ExportAssetsRequest.class, com.google.cloud.asset.v1.ExportAssetsRequest.Builder.class); + com.google.cloud.asset.v1.ExportAssetsRequest.class, + com.google.cloud.asset.v1.ExportAssetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
        * Required. The relative name of the root asset. This can only be an
        * organization number (such as "organizations/123"), a project ID (such as
    @@ -61,7 +82,10 @@ protected java.lang.Object newInstance(
        * or a folder number (such as "folders/123").
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -70,14 +94,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
        * Required. The relative name of the root asset. This can only be an
        * organization number (such as "organizations/123"), a project ID (such as
    @@ -85,17 +110,18 @@ public java.lang.String getParent() {
        * or a folder number (such as "folders/123").
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -106,6 +132,8 @@ public java.lang.String getParent() { public static final int READ_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp readTime_; /** + * + * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -115,6 +143,7 @@ public java.lang.String getParent() {
        * 
    * * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -122,6 +151,8 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -131,6 +162,7 @@ public boolean hasReadTime() {
        * 
    * * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ @java.lang.Override @@ -138,6 +170,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -156,6 +190,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       public static final int ASSET_TYPES_FIELD_NUMBER = 3;
       private com.google.protobuf.LazyStringList assetTypes_;
       /**
    +   *
    +   *
        * 
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -174,13 +210,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
        * 
    * * repeated string asset_types = 3; + * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList - getAssetTypesList() { + public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_; } /** + * + * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -199,12 +237,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
        * 
    * * repeated string asset_types = 3; + * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** + * + * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -223,6 +264,7 @@ public int getAssetTypesCount() {
        * 
    * * repeated string asset_types = 3; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -230,6 +272,8 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** + * + * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -248,51 +292,65 @@ public java.lang.String getAssetTypes(int index) {
        * 
    * * repeated string asset_types = 3; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString - getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } public static final int CONTENT_TYPE_FIELD_NUMBER = 4; private int contentType_; /** + * + * *
        * Asset content type. If not specified, no content but the asset name will be
        * returned.
        * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override public int getContentTypeValue() { + @java.lang.Override + public int getContentTypeValue() { return contentType_; } /** + * + * *
        * Asset content type. If not specified, no content but the asset name will be
        * returned.
        * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @return The contentType. */ - @java.lang.Override public com.google.cloud.asset.v1.ContentType getContentType() { + @java.lang.Override + public com.google.cloud.asset.v1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.ContentType result = com.google.cloud.asset.v1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1.ContentType result = + com.google.cloud.asset.v1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1.ContentType.UNRECOGNIZED : result; } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.asset.v1.OutputConfig outputConfig_; /** + * + * *
        * Required. Output configuration indicating where the results will be output to.
        * 
    * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -300,23 +358,34 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
        * Required. Output configuration indicating where the results will be output to.
        * 
    * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.asset.v1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.asset.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.asset.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
        * Required. Output configuration indicating where the results will be output to.
        * 
    * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -326,6 +395,8 @@ public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder( public static final int RELATIONSHIP_TYPES_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList relationshipTypes_; /** + * + * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -345,13 +416,15 @@ public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(
        * 
    * * repeated string relationship_types = 6; + * * @return A list containing the relationshipTypes. */ - public com.google.protobuf.ProtocolStringList - getRelationshipTypesList() { + public com.google.protobuf.ProtocolStringList getRelationshipTypesList() { return relationshipTypes_; } /** + * + * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -371,12 +444,15 @@ public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(
        * 
    * * repeated string relationship_types = 6; + * * @return The count of relationshipTypes. */ public int getRelationshipTypesCount() { return relationshipTypes_.size(); } /** + * + * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -396,6 +472,7 @@ public int getRelationshipTypesCount() {
        * 
    * * repeated string relationship_types = 6; + * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -403,6 +480,8 @@ public java.lang.String getRelationshipTypes(int index) { return relationshipTypes_.get(index); } /** + * + * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -422,15 +501,16 @@ public java.lang.String getRelationshipTypes(int index) {
        * 
    * * repeated string relationship_types = 6; + * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - public com.google.protobuf.ByteString - getRelationshipTypesBytes(int index) { + public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) { return relationshipTypes_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -442,8 +522,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -453,7 +532,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < assetTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, assetTypes_.getRaw(i)); } - if (contentType_ != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + if (contentType_ + != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, contentType_); } if (outputConfig_ != null) { @@ -475,8 +555,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); } { int dataSize = 0; @@ -486,13 +565,12 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAssetTypesList().size(); } - if (contentType_ != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, contentType_); + if (contentType_ + != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, contentType_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputConfig()); } { int dataSize = 0; @@ -510,30 +588,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.ExportAssetsRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.ExportAssetsRequest other = (com.google.cloud.asset.v1.ExportAssetsRequest) obj; + com.google.cloud.asset.v1.ExportAssetsRequest other = + (com.google.cloud.asset.v1.ExportAssetsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } - if (!getAssetTypesList() - .equals(other.getAssetTypesList())) return false; + if (!getAssetTypesList().equals(other.getAssetTypesList())) return false; if (contentType_ != other.contentType_) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } - if (!getRelationshipTypesList() - .equals(other.getRelationshipTypesList())) return false; + if (!getRelationshipTypesList().equals(other.getRelationshipTypesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -570,130 +644,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ExportAssetsRequest 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.asset.v1.ExportAssetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.ExportAssetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.ExportAssetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ExportAssetsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.ExportAssetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Export asset request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.ExportAssetsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.ExportAssetsRequest) com.google.cloud.asset.v1.ExportAssetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ExportAssetsRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ExportAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ExportAssetsRequest.class, com.google.cloud.asset.v1.ExportAssetsRequest.Builder.class); + com.google.cloud.asset.v1.ExportAssetsRequest.class, + com.google.cloud.asset.v1.ExportAssetsRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.ExportAssetsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -721,9 +801,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor; } @java.lang.Override @@ -742,7 +822,8 @@ public com.google.cloud.asset.v1.ExportAssetsRequest build() { @java.lang.Override public com.google.cloud.asset.v1.ExportAssetsRequest buildPartial() { - com.google.cloud.asset.v1.ExportAssetsRequest result = new com.google.cloud.asset.v1.ExportAssetsRequest(this); + com.google.cloud.asset.v1.ExportAssetsRequest result = + new com.google.cloud.asset.v1.ExportAssetsRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (readTimeBuilder_ == null) { @@ -774,38 +855,39 @@ public com.google.cloud.asset.v1.ExportAssetsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.ExportAssetsRequest) { - return mergeFrom((com.google.cloud.asset.v1.ExportAssetsRequest)other); + return mergeFrom((com.google.cloud.asset.v1.ExportAssetsRequest) other); } else { super.mergeFrom(other); return this; @@ -873,48 +955,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getReadTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAssetTypesIsMutable(); - assetTypes_.add(s); - break; - } // case 26 - case 32: { - contentType_ = input.readEnum(); - - break; - } // case 32 - case 42: { - input.readMessage( - getOutputConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - ensureRelationshipTypesIsMutable(); - relationshipTypes_.add(s); - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getReadTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAssetTypesIsMutable(); + assetTypes_.add(s); + break; + } // case 26 + case 32: + { + contentType_ = input.readEnum(); + + break; + } // case 32 + case 42: + { + input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRelationshipTypesIsMutable(); + relationshipTypes_.add(s); + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -924,10 +1009,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -935,14 +1023,16 @@ public Builder mergeFrom(
          * or a folder number (such as "folders/123").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -951,6 +1041,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -958,16 +1050,17 @@ public java.lang.String getParent() {
          * or a folder number (such as "folders/123").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -975,6 +1068,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -982,21 +1077,25 @@ public java.lang.String getParent() {
          * or a folder number (such as "folders/123").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -1004,16 +1103,21 @@ public Builder setParent(
          * or a folder number (such as "folders/123").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -1021,17 +1125,19 @@ public Builder clearParent() {
          * or a folder number (such as "folders/123").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1039,8 +1145,13 @@ public Builder setParentBytes( private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1050,12 +1161,15 @@ public Builder setParentBytes(
          * 
    * * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1065,6 +1179,7 @@ public boolean hasReadTime() {
          * 
    * * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1075,6 +1190,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1099,6 +1216,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1109,8 +1228,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
          *
          * .google.protobuf.Timestamp read_time = 2;
          */
    -    public Builder setReadTime(
    -        com.google.protobuf.Timestamp.Builder builderForValue) {
    +    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
           if (readTimeBuilder_ == null) {
             readTime_ = builderForValue.build();
             onChanged();
    @@ -1121,6 +1239,8 @@ public Builder setReadTime(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1135,7 +1255,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
           if (readTimeBuilder_ == null) {
             if (readTime_ != null) {
               readTime_ =
    -            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
    +              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
             } else {
               readTime_ = value;
             }
    @@ -1147,6 +1267,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1169,6 +1291,8 @@ public Builder clearReadTime() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1180,11 +1304,13 @@ public Builder clearReadTime() {
          * .google.protobuf.Timestamp read_time = 2;
          */
         public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
    -      
    +
           onChanged();
           return getReadTimeFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1199,11 +1325,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
           if (readTimeBuilder_ != null) {
             return readTimeBuilder_.getMessageOrBuilder();
           } else {
    -        return readTime_ == null ?
    -            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
    +        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
           }
         }
         /**
    +     *
    +     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1215,27 +1342,34 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
          * .google.protobuf.Timestamp read_time = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
    +            com.google.protobuf.Timestamp,
    +            com.google.protobuf.Timestamp.Builder,
    +            com.google.protobuf.TimestampOrBuilder>
             getReadTimeFieldBuilder() {
           if (readTimeBuilder_ == null) {
    -        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    -                getReadTime(),
    -                getParentForChildren(),
    -                isClean());
    +        readTimeBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.Timestamp,
    +                com.google.protobuf.Timestamp.Builder,
    +                com.google.protobuf.TimestampOrBuilder>(
    +                getReadTime(), getParentForChildren(), isClean());
             readTime_ = null;
           }
           return readTimeBuilder_;
         }
     
    -    private com.google.protobuf.LazyStringList assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    +    private com.google.protobuf.LazyStringList assetTypes_ =
    +        com.google.protobuf.LazyStringArrayList.EMPTY;
    +
         private void ensureAssetTypesIsMutable() {
           if (!((bitField0_ & 0x00000001) != 0)) {
             assetTypes_ = new com.google.protobuf.LazyStringArrayList(assetTypes_);
             bitField0_ |= 0x00000001;
    -       }
    +      }
         }
         /**
    +     *
    +     *
          * 
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1254,13 +1388,15 @@ private void ensureAssetTypesIsMutable() {
          * 
    * * repeated string asset_types = 3; + * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList - getAssetTypesList() { + public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_.getUnmodifiableView(); } /** + * + * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1279,12 +1415,15 @@ private void ensureAssetTypesIsMutable() {
          * 
    * * repeated string asset_types = 3; + * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** + * + * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1303,6 +1442,7 @@ public int getAssetTypesCount() {
          * 
    * * repeated string asset_types = 3; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -1310,6 +1450,8 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** + * + * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1328,14 +1470,16 @@ public java.lang.String getAssetTypes(int index) {
          * 
    * * repeated string asset_types = 3; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString - getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } /** + * + * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1354,21 +1498,23 @@ public java.lang.String getAssetTypes(int index) {
          * 
    * * repeated string asset_types = 3; + * * @param index The index to set the value at. * @param value The assetTypes to set. * @return This builder for chaining. */ - public Builder setAssetTypes( - int index, java.lang.String value) { + public Builder setAssetTypes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.set(index, value); onChanged(); return this; } /** + * + * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1387,20 +1533,22 @@ public Builder setAssetTypes(
          * 
    * * repeated string asset_types = 3; + * * @param value The assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypes( - java.lang.String value) { + public Builder addAssetTypes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); return this; } /** + * + * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1419,18 +1567,19 @@ public Builder addAssetTypes(
          * 
    * * repeated string asset_types = 3; + * * @param values The assetTypes to add. * @return This builder for chaining. */ - public Builder addAllAssetTypes( - java.lang.Iterable values) { + public Builder addAllAssetTypes(java.lang.Iterable values) { ensureAssetTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, assetTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetTypes_); onChanged(); return this; } /** + * + * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1449,6 +1598,7 @@ public Builder addAllAssetTypes(
          * 
    * * repeated string asset_types = 3; + * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1458,6 +1608,8 @@ public Builder clearAssetTypes() { return this; } /** + * + * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1476,15 +1628,15 @@ public Builder clearAssetTypes() {
          * 
    * * repeated string asset_types = 3; + * * @param value The bytes of the assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypesBytes( - com.google.protobuf.ByteString value) { + public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); @@ -1493,55 +1645,69 @@ public Builder addAssetTypesBytes( private int contentType_ = 0; /** + * + * *
          * Asset content type. If not specified, no content but the asset name will be
          * returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override public int getContentTypeValue() { + @java.lang.Override + public int getContentTypeValue() { return contentType_; } /** + * + * *
          * Asset content type. If not specified, no content but the asset name will be
          * returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @param value The enum numeric value on the wire for contentType to set. * @return This builder for chaining. */ public Builder setContentTypeValue(int value) { - + contentType_ = value; onChanged(); return this; } /** + * + * *
          * Asset content type. If not specified, no content but the asset name will be
          * returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @return The contentType. */ @java.lang.Override public com.google.cloud.asset.v1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.ContentType result = com.google.cloud.asset.v1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1.ContentType result = + com.google.cloud.asset.v1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1.ContentType.UNRECOGNIZED : result; } /** + * + * *
          * Asset content type. If not specified, no content but the asset name will be
          * returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @param value The contentType to set. * @return This builder for chaining. */ @@ -1549,22 +1715,25 @@ public Builder setContentType(com.google.cloud.asset.v1.ContentType value) { if (value == null) { throw new NullPointerException(); } - + contentType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
          * Asset content type. If not specified, no content but the asset name will be
          * returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @return This builder for chaining. */ public Builder clearContentType() { - + contentType_ = 0; onChanged(); return this; @@ -1572,39 +1741,58 @@ public Builder clearContentType() { private com.google.cloud.asset.v1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.OutputConfig, com.google.cloud.asset.v1.OutputConfig.Builder, com.google.cloud.asset.v1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.asset.v1.OutputConfig, + com.google.cloud.asset.v1.OutputConfig.Builder, + com.google.cloud.asset.v1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
          * Required. Output configuration indicating where the results will be output to.
          * 
    * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
          * Required. Output configuration indicating where the results will be output to.
          * 
    * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.asset.v1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.asset.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.asset.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
          * Required. Output configuration indicating where the results will be output to.
          * 
    * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig(com.google.cloud.asset.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1620,14 +1808,17 @@ public Builder setOutputConfig(com.google.cloud.asset.v1.OutputConfig value) { return this; } /** + * + * *
          * Required. Output configuration indicating where the results will be output to.
          * 
    * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setOutputConfig( - com.google.cloud.asset.v1.OutputConfig.Builder builderForValue) { + public Builder setOutputConfig(com.google.cloud.asset.v1.OutputConfig.Builder builderForValue) { if (outputConfigBuilder_ == null) { outputConfig_ = builderForValue.build(); onChanged(); @@ -1638,17 +1829,23 @@ public Builder setOutputConfig( return this; } /** + * + * *
          * Required. Output configuration indicating where the results will be output to.
          * 
    * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeOutputConfig(com.google.cloud.asset.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.asset.v1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1660,11 +1857,15 @@ public Builder mergeOutputConfig(com.google.cloud.asset.v1.OutputConfig value) { return this; } /** + * + * *
          * Required. Output configuration indicating where the results will be output to.
          * 
    * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1678,61 +1879,81 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
          * Required. Output configuration indicating where the results will be output to.
          * 
    * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.asset.v1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
          * Required. Output configuration indicating where the results will be output to.
          * 
    * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.asset.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.asset.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
          * Required. Output configuration indicating where the results will be output to.
          * 
    * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.OutputConfig, com.google.cloud.asset.v1.OutputConfig.Builder, com.google.cloud.asset.v1.OutputConfigOrBuilder> + com.google.cloud.asset.v1.OutputConfig, + com.google.cloud.asset.v1.OutputConfig.Builder, + com.google.cloud.asset.v1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.OutputConfig, com.google.cloud.asset.v1.OutputConfig.Builder, com.google.cloud.asset.v1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.OutputConfig, + com.google.cloud.asset.v1.OutputConfig.Builder, + com.google.cloud.asset.v1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - private com.google.protobuf.LazyStringList relationshipTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList relationshipTypes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRelationshipTypesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { relationshipTypes_ = new com.google.protobuf.LazyStringArrayList(relationshipTypes_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1752,13 +1973,15 @@ private void ensureRelationshipTypesIsMutable() {
          * 
    * * repeated string relationship_types = 6; + * * @return A list containing the relationshipTypes. */ - public com.google.protobuf.ProtocolStringList - getRelationshipTypesList() { + public com.google.protobuf.ProtocolStringList getRelationshipTypesList() { return relationshipTypes_.getUnmodifiableView(); } /** + * + * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1778,12 +2001,15 @@ private void ensureRelationshipTypesIsMutable() {
          * 
    * * repeated string relationship_types = 6; + * * @return The count of relationshipTypes. */ public int getRelationshipTypesCount() { return relationshipTypes_.size(); } /** + * + * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1803,6 +2029,7 @@ public int getRelationshipTypesCount() {
          * 
    * * repeated string relationship_types = 6; + * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -1810,6 +2037,8 @@ public java.lang.String getRelationshipTypes(int index) { return relationshipTypes_.get(index); } /** + * + * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1829,14 +2058,16 @@ public java.lang.String getRelationshipTypes(int index) {
          * 
    * * repeated string relationship_types = 6; + * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - public com.google.protobuf.ByteString - getRelationshipTypesBytes(int index) { + public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) { return relationshipTypes_.getByteString(index); } /** + * + * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1856,21 +2087,23 @@ public java.lang.String getRelationshipTypes(int index) {
          * 
    * * repeated string relationship_types = 6; + * * @param index The index to set the value at. * @param value The relationshipTypes to set. * @return This builder for chaining. */ - public Builder setRelationshipTypes( - int index, java.lang.String value) { + public Builder setRelationshipTypes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRelationshipTypesIsMutable(); + throw new NullPointerException(); + } + ensureRelationshipTypesIsMutable(); relationshipTypes_.set(index, value); onChanged(); return this; } /** + * + * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1890,20 +2123,22 @@ public Builder setRelationshipTypes(
          * 
    * * repeated string relationship_types = 6; + * * @param value The relationshipTypes to add. * @return This builder for chaining. */ - public Builder addRelationshipTypes( - java.lang.String value) { + public Builder addRelationshipTypes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRelationshipTypesIsMutable(); + throw new NullPointerException(); + } + ensureRelationshipTypesIsMutable(); relationshipTypes_.add(value); onChanged(); return this; } /** + * + * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1923,18 +2158,19 @@ public Builder addRelationshipTypes(
          * 
    * * repeated string relationship_types = 6; + * * @param values The relationshipTypes to add. * @return This builder for chaining. */ - public Builder addAllRelationshipTypes( - java.lang.Iterable values) { + public Builder addAllRelationshipTypes(java.lang.Iterable values) { ensureRelationshipTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, relationshipTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relationshipTypes_); onChanged(); return this; } /** + * + * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1954,6 +2190,7 @@ public Builder addAllRelationshipTypes(
          * 
    * * repeated string relationship_types = 6; + * * @return This builder for chaining. */ public Builder clearRelationshipTypes() { @@ -1963,6 +2200,8 @@ public Builder clearRelationshipTypes() { return this; } /** + * + * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1982,23 +2221,23 @@ public Builder clearRelationshipTypes() {
          * 
    * * repeated string relationship_types = 6; + * * @param value The bytes of the relationshipTypes to add. * @return This builder for chaining. */ - public Builder addRelationshipTypesBytes( - com.google.protobuf.ByteString value) { + public Builder addRelationshipTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureRelationshipTypesIsMutable(); relationshipTypes_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2008,12 +2247,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.ExportAssetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.ExportAssetsRequest) private static final com.google.cloud.asset.v1.ExportAssetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.ExportAssetsRequest(); } @@ -2022,27 +2261,27 @@ public static com.google.cloud.asset.v1.ExportAssetsRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportAssetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2057,6 +2296,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.ExportAssetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java similarity index 87% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java index 642b7864f94e..870a0fdc933d 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface ExportAssetsRequestOrBuilder extends +public interface ExportAssetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.ExportAssetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The relative name of the root asset. This can only be an
        * organization number (such as "organizations/123"), a project ID (such as
    @@ -15,11 +33,16 @@ public interface ExportAssetsRequestOrBuilder extends
        * or a folder number (such as "folders/123").
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
        * Required. The relative name of the root asset. This can only be an
        * organization number (such as "organizations/123"), a project ID (such as
    @@ -27,13 +50,17 @@ public interface ExportAssetsRequestOrBuilder extends
        * or a folder number (such as "folders/123").
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -43,10 +70,13 @@ public interface ExportAssetsRequestOrBuilder extends
        * 
    * * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -56,10 +86,13 @@ public interface ExportAssetsRequestOrBuilder extends
        * 
    * * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -73,6 +106,8 @@ public interface ExportAssetsRequestOrBuilder extends
       com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -91,11 +126,13 @@ public interface ExportAssetsRequestOrBuilder extends
        * 
    * * repeated string asset_types = 3; + * * @return A list containing the assetTypes. */ - java.util.List - getAssetTypesList(); + java.util.List getAssetTypesList(); /** + * + * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -114,10 +151,13 @@ public interface ExportAssetsRequestOrBuilder extends
        * 
    * * repeated string asset_types = 3; + * * @return The count of assetTypes. */ int getAssetTypesCount(); /** + * + * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -136,11 +176,14 @@ public interface ExportAssetsRequestOrBuilder extends
        * 
    * * repeated string asset_types = 3; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ java.lang.String getAssetTypes(int index); /** + * + * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -159,61 +202,83 @@ public interface ExportAssetsRequestOrBuilder extends
        * 
    * * repeated string asset_types = 3; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - com.google.protobuf.ByteString - getAssetTypesBytes(int index); + com.google.protobuf.ByteString getAssetTypesBytes(int index); /** + * + * *
        * Asset content type. If not specified, no content but the asset name will be
        * returned.
        * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @return The enum numeric value on the wire for contentType. */ int getContentTypeValue(); /** + * + * *
        * Asset content type. If not specified, no content but the asset name will be
        * returned.
        * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @return The contentType. */ com.google.cloud.asset.v1.ContentType getContentType(); /** + * + * *
        * Required. Output configuration indicating where the results will be output to.
        * 
    * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
        * Required. Output configuration indicating where the results will be output to.
        * 
    * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ com.google.cloud.asset.v1.OutputConfig getOutputConfig(); /** + * + * *
        * Required. Output configuration indicating where the results will be output to.
        * 
    * - * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** + * + * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -233,11 +298,13 @@ public interface ExportAssetsRequestOrBuilder extends
        * 
    * * repeated string relationship_types = 6; + * * @return A list containing the relationshipTypes. */ - java.util.List - getRelationshipTypesList(); + java.util.List getRelationshipTypesList(); /** + * + * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -257,10 +324,13 @@ public interface ExportAssetsRequestOrBuilder extends
        * 
    * * repeated string relationship_types = 6; + * * @return The count of relationshipTypes. */ int getRelationshipTypesCount(); /** + * + * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -280,11 +350,14 @@ public interface ExportAssetsRequestOrBuilder extends
        * 
    * * repeated string relationship_types = 6; + * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ java.lang.String getRelationshipTypes(int index); /** + * + * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -304,9 +377,9 @@ public interface ExportAssetsRequestOrBuilder extends
        * 
    * * repeated string relationship_types = 6; + * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - com.google.protobuf.ByteString - getRelationshipTypesBytes(int index); + com.google.protobuf.ByteString getRelationshipTypesBytes(int index); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java similarity index 73% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java index 880e308cc9e7..7c1e531947dd 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * The export asset response. This message is returned by the
      * [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation] method in the returned
    @@ -12,51 +29,55 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.ExportAssetsResponse}
      */
    -public final class ExportAssetsResponse extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class ExportAssetsResponse extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.ExportAssetsResponse)
         ExportAssetsResponseOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use ExportAssetsResponse.newBuilder() to construct.
       private ExportAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -  private ExportAssetsResponse() {
    -  }
    +
    +  private ExportAssetsResponse() {}
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(
    -      UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new ExportAssetsResponse();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetServiceProto
    +        .internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ExportAssetsResponse_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetServiceProto
    +        .internal_static_google_cloud_asset_v1_ExportAssetsResponse_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1.ExportAssetsResponse.class, com.google.cloud.asset.v1.ExportAssetsResponse.Builder.class);
    +            com.google.cloud.asset.v1.ExportAssetsResponse.class,
    +            com.google.cloud.asset.v1.ExportAssetsResponse.Builder.class);
       }
     
       public static final int READ_TIME_FIELD_NUMBER = 1;
       private com.google.protobuf.Timestamp readTime_;
       /**
    +   *
    +   *
        * 
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -64,11 +85,14 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; + * * @return The readTime. */ @java.lang.Override @@ -76,6 +100,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
        * Time the snapshot was taken.
        * 
    @@ -90,11 +116,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.asset.v1.OutputConfig outputConfig_; /** + * + * *
        * Output configuration indicating where the results were output to.
        * 
    * * .google.cloud.asset.v1.OutputConfig output_config = 2; + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -102,18 +131,25 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
        * Output configuration indicating where the results were output to.
        * 
    * * .google.cloud.asset.v1.OutputConfig output_config = 2; + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.asset.v1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.asset.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.asset.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
        * Output configuration indicating where the results were output to.
        * 
    @@ -128,6 +164,8 @@ public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder( public static final int OUTPUT_RESULT_FIELD_NUMBER = 3; private com.google.cloud.asset.v1.OutputResult outputResult_; /** + * + * *
        * Output result indicating where the assets were exported to. For example, a
        * set of actual Google Cloud Storage object uris where the assets are
    @@ -137,6 +175,7 @@ public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(
        * 
    * * .google.cloud.asset.v1.OutputResult output_result = 3; + * * @return Whether the outputResult field is set. */ @java.lang.Override @@ -144,6 +183,8 @@ public boolean hasOutputResult() { return outputResult_ != null; } /** + * + * *
        * Output result indicating where the assets were exported to. For example, a
        * set of actual Google Cloud Storage object uris where the assets are
    @@ -153,13 +194,18 @@ public boolean hasOutputResult() {
        * 
    * * .google.cloud.asset.v1.OutputResult output_result = 3; + * * @return The outputResult. */ @java.lang.Override public com.google.cloud.asset.v1.OutputResult getOutputResult() { - return outputResult_ == null ? com.google.cloud.asset.v1.OutputResult.getDefaultInstance() : outputResult_; + return outputResult_ == null + ? com.google.cloud.asset.v1.OutputResult.getDefaultInstance() + : outputResult_; } /** + * + * *
        * Output result indicating where the assets were exported to. For example, a
        * set of actual Google Cloud Storage object uris where the assets are
    @@ -176,6 +222,7 @@ public com.google.cloud.asset.v1.OutputResultOrBuilder getOutputResultOrBuilder(
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -187,8 +234,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (readTime_ != null) {
           output.writeMessage(1, getReadTime());
         }
    @@ -208,16 +254,13 @@ public int getSerializedSize() {
     
         size = 0;
         if (readTime_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(1, getReadTime());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReadTime());
         }
         if (outputConfig_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(2, getOutputConfig());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputConfig());
         }
         if (outputResult_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(3, getOutputResult());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputResult());
         }
         size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
    @@ -227,27 +270,25 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1.ExportAssetsResponse)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1.ExportAssetsResponse other = (com.google.cloud.asset.v1.ExportAssetsResponse) obj;
    +    com.google.cloud.asset.v1.ExportAssetsResponse other =
    +        (com.google.cloud.asset.v1.ExportAssetsResponse) obj;
     
         if (hasReadTime() != other.hasReadTime()) return false;
         if (hasReadTime()) {
    -      if (!getReadTime()
    -          .equals(other.getReadTime())) return false;
    +      if (!getReadTime().equals(other.getReadTime())) return false;
         }
         if (hasOutputConfig() != other.hasOutputConfig()) return false;
         if (hasOutputConfig()) {
    -      if (!getOutputConfig()
    -          .equals(other.getOutputConfig())) return false;
    +      if (!getOutputConfig().equals(other.getOutputConfig())) return false;
         }
         if (hasOutputResult() != other.hasOutputResult()) return false;
         if (hasOutputResult()) {
    -      if (!getOutputResult()
    -          .equals(other.getOutputResult())) return false;
    +      if (!getOutputResult().equals(other.getOutputResult())) return false;
         }
         if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
    @@ -277,97 +318,104 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1.ExportAssetsResponse parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1.ExportAssetsResponse parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.ExportAssetsResponse parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.ExportAssetsResponse parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.ExportAssetsResponse 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.asset.v1.ExportAssetsResponse parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.ExportAssetsResponse parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.ExportAssetsResponse parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.ExportAssetsResponse parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.cloud.asset.v1.ExportAssetsResponse parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.cloud.asset.v1.ExportAssetsResponse parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.ExportAssetsResponse parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.ExportAssetsResponse parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.ExportAssetsResponse parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.cloud.asset.v1.ExportAssetsResponse prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * The export asset response. This message is returned by the
        * [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation] method in the returned
    @@ -376,33 +424,32 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.asset.v1.ExportAssetsResponse}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.ExportAssetsResponse)
           com.google.cloud.asset.v1.ExportAssetsResponseOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetServiceProto
    +          .internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ExportAssetsResponse_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetServiceProto
    +          .internal_static_google_cloud_asset_v1_ExportAssetsResponse_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.ExportAssetsResponse.class, com.google.cloud.asset.v1.ExportAssetsResponse.Builder.class);
    +              com.google.cloud.asset.v1.ExportAssetsResponse.class,
    +              com.google.cloud.asset.v1.ExportAssetsResponse.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.ExportAssetsResponse.newBuilder()
    -    private Builder() {
    -
    -    }
    +    private Builder() {}
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -428,9 +475,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetServiceProto
    +          .internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor;
         }
     
         @java.lang.Override
    @@ -449,7 +496,8 @@ public com.google.cloud.asset.v1.ExportAssetsResponse build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1.ExportAssetsResponse buildPartial() {
    -      com.google.cloud.asset.v1.ExportAssetsResponse result = new com.google.cloud.asset.v1.ExportAssetsResponse(this);
    +      com.google.cloud.asset.v1.ExportAssetsResponse result =
    +          new com.google.cloud.asset.v1.ExportAssetsResponse(this);
           if (readTimeBuilder_ == null) {
             result.readTime_ = readTime_;
           } else {
    @@ -473,38 +521,39 @@ public com.google.cloud.asset.v1.ExportAssetsResponse buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.ExportAssetsResponse) {
    -        return mergeFrom((com.google.cloud.asset.v1.ExportAssetsResponse)other);
    +        return mergeFrom((com.google.cloud.asset.v1.ExportAssetsResponse) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -548,33 +597,31 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
    -            case 10: {
    -              input.readMessage(
    -                  getReadTimeFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    +            case 10:
    +              {
    +                input.readMessage(getReadTimeFieldBuilder().getBuilder(), extensionRegistry);
     
    -              break;
    -            } // case 10
    -            case 18: {
    -              input.readMessage(
    -                  getOutputConfigFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
     
    -              break;
    -            } // case 18
    -            case 26: {
    -              input.readMessage(
    -                  getOutputResultFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                input.readMessage(getOutputResultFieldBuilder().getBuilder(), extensionRegistry);
     
    -              break;
    -            } // case 26
    -            default: {
    -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                done = true; // was an endgroup tag
    -              }
    -              break;
    -            } // default:
    +                break;
    +              } // case 26
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -587,24 +634,33 @@ public Builder mergeFrom(
     
         private com.google.protobuf.Timestamp readTime_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_;
    +            com.google.protobuf.Timestamp,
    +            com.google.protobuf.Timestamp.Builder,
    +            com.google.protobuf.TimestampOrBuilder>
    +        readTimeBuilder_;
         /**
    +     *
    +     *
          * 
          * Time the snapshot was taken.
          * 
    * * .google.protobuf.Timestamp read_time = 1; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
          * Time the snapshot was taken.
          * 
    * * .google.protobuf.Timestamp read_time = 1; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -615,6 +671,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
          * Time the snapshot was taken.
          * 
    @@ -635,14 +693,15 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * Time the snapshot was taken.
          * 
    * * .google.protobuf.Timestamp read_time = 1; */ - public Builder setReadTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -653,6 +712,8 @@ public Builder setReadTime( return this; } /** + * + * *
          * Time the snapshot was taken.
          * 
    @@ -663,7 +724,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -675,6 +736,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * Time the snapshot was taken.
          * 
    @@ -693,6 +756,8 @@ public Builder clearReadTime() { return this; } /** + * + * *
          * Time the snapshot was taken.
          * 
    @@ -700,11 +765,13 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 1; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** + * + * *
          * Time the snapshot was taken.
          * 
    @@ -715,11 +782,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** + * + * *
          * Time the snapshot was taken.
          * 
    @@ -727,14 +795,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getReadTime(), - getParentForChildren(), - isClean()); + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); readTime_ = null; } return readTimeBuilder_; @@ -742,34 +813,47 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private com.google.cloud.asset.v1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.OutputConfig, com.google.cloud.asset.v1.OutputConfig.Builder, com.google.cloud.asset.v1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.asset.v1.OutputConfig, + com.google.cloud.asset.v1.OutputConfig.Builder, + com.google.cloud.asset.v1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
          * Output configuration indicating where the results were output to.
          * 
    * * .google.cloud.asset.v1.OutputConfig output_config = 2; + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
          * Output configuration indicating where the results were output to.
          * 
    * * .google.cloud.asset.v1.OutputConfig output_config = 2; + * * @return The outputConfig. */ public com.google.cloud.asset.v1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.asset.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.asset.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -790,14 +874,15 @@ public Builder setOutputConfig(com.google.cloud.asset.v1.OutputConfig value) { return this; } /** + * + * *
          * Output configuration indicating where the results were output to.
          * 
    * * .google.cloud.asset.v1.OutputConfig output_config = 2; */ - public Builder setOutputConfig( - com.google.cloud.asset.v1.OutputConfig.Builder builderForValue) { + public Builder setOutputConfig(com.google.cloud.asset.v1.OutputConfig.Builder builderForValue) { if (outputConfigBuilder_ == null) { outputConfig_ = builderForValue.build(); onChanged(); @@ -808,6 +893,8 @@ public Builder setOutputConfig( return this; } /** + * + * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -818,7 +905,9 @@ public Builder mergeOutputConfig(com.google.cloud.asset.v1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.asset.v1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -830,6 +919,8 @@ public Builder mergeOutputConfig(com.google.cloud.asset.v1.OutputConfig value) { return this; } /** + * + * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -848,6 +939,8 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -855,11 +948,13 @@ public Builder clearOutputConfig() { * .google.cloud.asset.v1.OutputConfig output_config = 2; */ public com.google.cloud.asset.v1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -870,11 +965,14 @@ public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder( if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.asset.v1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.asset.v1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -882,14 +980,17 @@ public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder( * .google.cloud.asset.v1.OutputConfig output_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.OutputConfig, com.google.cloud.asset.v1.OutputConfig.Builder, com.google.cloud.asset.v1.OutputConfigOrBuilder> + com.google.cloud.asset.v1.OutputConfig, + com.google.cloud.asset.v1.OutputConfig.Builder, + com.google.cloud.asset.v1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.OutputConfig, com.google.cloud.asset.v1.OutputConfig.Builder, com.google.cloud.asset.v1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.OutputConfig, + com.google.cloud.asset.v1.OutputConfig.Builder, + com.google.cloud.asset.v1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; @@ -897,8 +998,13 @@ public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder( private com.google.cloud.asset.v1.OutputResult outputResult_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.OutputResult, com.google.cloud.asset.v1.OutputResult.Builder, com.google.cloud.asset.v1.OutputResultOrBuilder> outputResultBuilder_; + com.google.cloud.asset.v1.OutputResult, + com.google.cloud.asset.v1.OutputResult.Builder, + com.google.cloud.asset.v1.OutputResultOrBuilder> + outputResultBuilder_; /** + * + * *
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -908,12 +1014,15 @@ public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(
          * 
    * * .google.cloud.asset.v1.OutputResult output_result = 3; + * * @return Whether the outputResult field is set. */ public boolean hasOutputResult() { return outputResultBuilder_ != null || outputResult_ != null; } /** + * + * *
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -923,16 +1032,21 @@ public boolean hasOutputResult() {
          * 
    * * .google.cloud.asset.v1.OutputResult output_result = 3; + * * @return The outputResult. */ public com.google.cloud.asset.v1.OutputResult getOutputResult() { if (outputResultBuilder_ == null) { - return outputResult_ == null ? com.google.cloud.asset.v1.OutputResult.getDefaultInstance() : outputResult_; + return outputResult_ == null + ? com.google.cloud.asset.v1.OutputResult.getDefaultInstance() + : outputResult_; } else { return outputResultBuilder_.getMessage(); } } /** + * + * *
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -957,6 +1071,8 @@ public Builder setOutputResult(com.google.cloud.asset.v1.OutputResult value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -967,8 +1083,7 @@ public Builder setOutputResult(com.google.cloud.asset.v1.OutputResult value) {
          *
          * .google.cloud.asset.v1.OutputResult output_result = 3;
          */
    -    public Builder setOutputResult(
    -        com.google.cloud.asset.v1.OutputResult.Builder builderForValue) {
    +    public Builder setOutputResult(com.google.cloud.asset.v1.OutputResult.Builder builderForValue) {
           if (outputResultBuilder_ == null) {
             outputResult_ = builderForValue.build();
             onChanged();
    @@ -979,6 +1094,8 @@ public Builder setOutputResult(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -993,7 +1110,9 @@ public Builder mergeOutputResult(com.google.cloud.asset.v1.OutputResult value) {
           if (outputResultBuilder_ == null) {
             if (outputResult_ != null) {
               outputResult_ =
    -            com.google.cloud.asset.v1.OutputResult.newBuilder(outputResult_).mergeFrom(value).buildPartial();
    +              com.google.cloud.asset.v1.OutputResult.newBuilder(outputResult_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               outputResult_ = value;
             }
    @@ -1005,6 +1124,8 @@ public Builder mergeOutputResult(com.google.cloud.asset.v1.OutputResult value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1027,6 +1148,8 @@ public Builder clearOutputResult() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1038,11 +1161,13 @@ public Builder clearOutputResult() {
          * .google.cloud.asset.v1.OutputResult output_result = 3;
          */
         public com.google.cloud.asset.v1.OutputResult.Builder getOutputResultBuilder() {
    -      
    +
           onChanged();
           return getOutputResultFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1057,11 +1182,14 @@ public com.google.cloud.asset.v1.OutputResultOrBuilder getOutputResultOrBuilder(
           if (outputResultBuilder_ != null) {
             return outputResultBuilder_.getMessageOrBuilder();
           } else {
    -        return outputResult_ == null ?
    -            com.google.cloud.asset.v1.OutputResult.getDefaultInstance() : outputResult_;
    +        return outputResult_ == null
    +            ? com.google.cloud.asset.v1.OutputResult.getDefaultInstance()
    +            : outputResult_;
           }
         }
         /**
    +     *
    +     *
          * 
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1073,21 +1201,24 @@ public com.google.cloud.asset.v1.OutputResultOrBuilder getOutputResultOrBuilder(
          * .google.cloud.asset.v1.OutputResult output_result = 3;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1.OutputResult, com.google.cloud.asset.v1.OutputResult.Builder, com.google.cloud.asset.v1.OutputResultOrBuilder> 
    +            com.google.cloud.asset.v1.OutputResult,
    +            com.google.cloud.asset.v1.OutputResult.Builder,
    +            com.google.cloud.asset.v1.OutputResultOrBuilder>
             getOutputResultFieldBuilder() {
           if (outputResultBuilder_ == null) {
    -        outputResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.OutputResult, com.google.cloud.asset.v1.OutputResult.Builder, com.google.cloud.asset.v1.OutputResultOrBuilder>(
    -                getOutputResult(),
    -                getParentForChildren(),
    -                isClean());
    +        outputResultBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.cloud.asset.v1.OutputResult,
    +                com.google.cloud.asset.v1.OutputResult.Builder,
    +                com.google.cloud.asset.v1.OutputResultOrBuilder>(
    +                getOutputResult(), getParentForChildren(), isClean());
             outputResult_ = null;
           }
           return outputResultBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -1097,12 +1228,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.ExportAssetsResponse)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.ExportAssetsResponse)
       private static final com.google.cloud.asset.v1.ExportAssetsResponse DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1.ExportAssetsResponse();
       }
    @@ -1111,27 +1242,27 @@ public static com.google.cloud.asset.v1.ExportAssetsResponse getDefaultInstance(
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public ExportAssetsResponse parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      Builder builder = newBuilder();
    -      try {
    -        builder.mergeFrom(input, extensionRegistry);
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(builder.buildPartial());
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    -            .setUnfinishedMessage(builder.buildPartial());
    -      }
    -      return builder.buildPartial();
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public ExportAssetsResponse parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1146,6 +1277,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1.ExportAssetsResponse getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponseOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponseOrBuilder.java
    similarity index 81%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponseOrBuilder.java
    rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponseOrBuilder.java
    index e3a7e58899ba..83e57dbafd22 100644
    --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponseOrBuilder.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsResponseOrBuilder.java
    @@ -1,31 +1,55 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
    -public interface ExportAssetsResponseOrBuilder extends
    +public interface ExportAssetsResponseOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.ExportAssetsResponse)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
        * Time the snapshot was taken.
        * 
    @@ -35,24 +59,32 @@ public interface ExportAssetsResponseOrBuilder extends com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** + * + * *
        * Output configuration indicating where the results were output to.
        * 
    * * .google.cloud.asset.v1.OutputConfig output_config = 2; + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
        * Output configuration indicating where the results were output to.
        * 
    * * .google.cloud.asset.v1.OutputConfig output_config = 2; + * * @return The outputConfig. */ com.google.cloud.asset.v1.OutputConfig getOutputConfig(); /** + * + * *
        * Output configuration indicating where the results were output to.
        * 
    @@ -62,6 +94,8 @@ public interface ExportAssetsResponseOrBuilder extends com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** + * + * *
        * Output result indicating where the assets were exported to. For example, a
        * set of actual Google Cloud Storage object uris where the assets are
    @@ -71,10 +105,13 @@ public interface ExportAssetsResponseOrBuilder extends
        * 
    * * .google.cloud.asset.v1.OutputResult output_result = 3; + * * @return Whether the outputResult field is set. */ boolean hasOutputResult(); /** + * + * *
        * Output result indicating where the assets were exported to. For example, a
        * set of actual Google Cloud Storage object uris where the assets are
    @@ -84,10 +121,13 @@ public interface ExportAssetsResponseOrBuilder extends
        * 
    * * .google.cloud.asset.v1.OutputResult output_result = 3; + * * @return The outputResult. */ com.google.cloud.asset.v1.OutputResult getOutputResult(); /** + * + * *
        * Output result indicating where the assets were exported to. For example, a
        * set of actual Google Cloud Storage object uris where the assets are
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java
    similarity index 81%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java
    rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java
    index 3f3c3b81afa2..e2b6ab5a8768 100644
    --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Feed.java
    @@ -1,9 +1,26 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
     /**
    + *
    + *
      * 
      * An asset feed used to export asset updates to a destinations.
      * An asset feed filter controls what updates are exported.
    @@ -14,15 +31,16 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.Feed}
      */
    -public final class Feed extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class Feed extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.Feed)
         FeedOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use Feed.newBuilder() to construct.
       private Feed(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private Feed() {
         name_ = "";
         assetNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    @@ -33,25 +51,25 @@ private Feed() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(
    -      UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new Feed();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_Feed_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetServiceProto
    +        .internal_static_google_cloud_asset_v1_Feed_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_Feed_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetServiceProto
    +        .internal_static_google_cloud_asset_v1_Feed_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
                 com.google.cloud.asset.v1.Feed.class, com.google.cloud.asset.v1.Feed.Builder.class);
       }
    @@ -59,6 +77,8 @@ protected java.lang.Object newInstance(
       public static final int NAME_FIELD_NUMBER = 1;
       private volatile java.lang.Object name_;
       /**
    +   *
    +   *
        * 
        * Required. The format will be
        * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -69,6 +89,7 @@ protected java.lang.Object newInstance(
        * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -77,14 +98,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
        * Required. The format will be
        * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -95,16 +117,15 @@ public java.lang.String getName() {
        * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -115,6 +136,8 @@ public java.lang.String getName() { public static final int ASSET_NAMES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList assetNames_; /** + * + * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -126,13 +149,15 @@ public java.lang.String getName() {
        * 
    * * repeated string asset_names = 2; + * * @return A list containing the assetNames. */ - public com.google.protobuf.ProtocolStringList - getAssetNamesList() { + public com.google.protobuf.ProtocolStringList getAssetNamesList() { return assetNames_; } /** + * + * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -144,12 +169,15 @@ public java.lang.String getName() {
        * 
    * * repeated string asset_names = 2; + * * @return The count of assetNames. */ public int getAssetNamesCount() { return assetNames_.size(); } /** + * + * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -161,6 +189,7 @@ public int getAssetNamesCount() {
        * 
    * * repeated string asset_names = 2; + * * @param index The index of the element to return. * @return The assetNames at the given index. */ @@ -168,6 +197,8 @@ public java.lang.String getAssetNames(int index) { return assetNames_.get(index); } /** + * + * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -179,17 +210,19 @@ public java.lang.String getAssetNames(int index) {
        * 
    * * repeated string asset_names = 2; + * * @param index The index of the value to return. * @return The bytes of the assetNames at the given index. */ - public com.google.protobuf.ByteString - getAssetNamesBytes(int index) { + public com.google.protobuf.ByteString getAssetNamesBytes(int index) { return assetNames_.getByteString(index); } public static final int ASSET_TYPES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList assetTypes_; /** + * + * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -200,13 +233,15 @@ public java.lang.String getAssetNames(int index) {
        * 
    * * repeated string asset_types = 3; + * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList - getAssetTypesList() { + public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_; } /** + * + * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -217,12 +252,15 @@ public java.lang.String getAssetNames(int index) {
        * 
    * * repeated string asset_types = 3; + * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** + * + * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -233,6 +271,7 @@ public int getAssetTypesCount() {
        * 
    * * repeated string asset_types = 3; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -240,6 +279,8 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** + * + * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -250,52 +291,66 @@ public java.lang.String getAssetTypes(int index) {
        * 
    * * repeated string asset_types = 3; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString - getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } public static final int CONTENT_TYPE_FIELD_NUMBER = 4; private int contentType_; /** + * + * *
        * Asset content type. If not specified, no content but the asset name and
        * type will be returned.
        * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override public int getContentTypeValue() { + @java.lang.Override + public int getContentTypeValue() { return contentType_; } /** + * + * *
        * Asset content type. If not specified, no content but the asset name and
        * type will be returned.
        * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @return The contentType. */ - @java.lang.Override public com.google.cloud.asset.v1.ContentType getContentType() { + @java.lang.Override + public com.google.cloud.asset.v1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.ContentType result = com.google.cloud.asset.v1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1.ContentType result = + com.google.cloud.asset.v1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1.ContentType.UNRECOGNIZED : result; } public static final int FEED_OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.asset.v1.FeedOutputConfig feedOutputConfig_; /** + * + * *
        * Required. Feed output configuration defining where the asset updates are
        * published to.
        * 
    * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the feedOutputConfig field is set. */ @java.lang.Override @@ -303,25 +358,36 @@ public boolean hasFeedOutputConfig() { return feedOutputConfig_ != null; } /** + * + * *
        * Required. Feed output configuration defining where the asset updates are
        * published to.
        * 
    * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The feedOutputConfig. */ @java.lang.Override public com.google.cloud.asset.v1.FeedOutputConfig getFeedOutputConfig() { - return feedOutputConfig_ == null ? com.google.cloud.asset.v1.FeedOutputConfig.getDefaultInstance() : feedOutputConfig_; + return feedOutputConfig_ == null + ? com.google.cloud.asset.v1.FeedOutputConfig.getDefaultInstance() + : feedOutputConfig_; } /** + * + * *
        * Required. Feed output configuration defining where the asset updates are
        * published to.
        * 
    * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.asset.v1.FeedOutputConfigOrBuilder getFeedOutputConfigOrBuilder() { @@ -331,6 +397,8 @@ public com.google.cloud.asset.v1.FeedOutputConfigOrBuilder getFeedOutputConfigOr public static final int CONDITION_FIELD_NUMBER = 6; private com.google.type.Expr condition_; /** + * + * *
        * A condition which determines whether an asset update should be published.
        * If specified, an asset will be returned only when the expression evaluates
    @@ -346,6 +414,7 @@ public com.google.cloud.asset.v1.FeedOutputConfigOrBuilder getFeedOutputConfigOr
        * 
    * * .google.type.Expr condition = 6; + * * @return Whether the condition field is set. */ @java.lang.Override @@ -353,6 +422,8 @@ public boolean hasCondition() { return condition_ != null; } /** + * + * *
        * A condition which determines whether an asset update should be published.
        * If specified, an asset will be returned only when the expression evaluates
    @@ -368,6 +439,7 @@ public boolean hasCondition() {
        * 
    * * .google.type.Expr condition = 6; + * * @return The condition. */ @java.lang.Override @@ -375,6 +447,8 @@ public com.google.type.Expr getCondition() { return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; } /** + * + * *
        * A condition which determines whether an asset update should be published.
        * If specified, an asset will be returned only when the expression evaluates
    @@ -399,6 +473,8 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
       public static final int RELATIONSHIP_TYPES_FIELD_NUMBER = 7;
       private com.google.protobuf.LazyStringList relationshipTypes_;
       /**
    +   *
    +   *
        * 
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -419,13 +495,15 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
        * 
    * * repeated string relationship_types = 7; + * * @return A list containing the relationshipTypes. */ - public com.google.protobuf.ProtocolStringList - getRelationshipTypesList() { + public com.google.protobuf.ProtocolStringList getRelationshipTypesList() { return relationshipTypes_; } /** + * + * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -446,12 +524,15 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
        * 
    * * repeated string relationship_types = 7; + * * @return The count of relationshipTypes. */ public int getRelationshipTypesCount() { return relationshipTypes_.size(); } /** + * + * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -472,6 +553,7 @@ public int getRelationshipTypesCount() {
        * 
    * * repeated string relationship_types = 7; + * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -479,6 +561,8 @@ public java.lang.String getRelationshipTypes(int index) { return relationshipTypes_.get(index); } /** + * + * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -499,15 +583,16 @@ public java.lang.String getRelationshipTypes(int index) {
        * 
    * * repeated string relationship_types = 7; + * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - public com.google.protobuf.ByteString - getRelationshipTypesBytes(int index) { + public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) { return relationshipTypes_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -519,8 +604,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -530,7 +614,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < assetTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, assetTypes_.getRaw(i)); } - if (contentType_ != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + if (contentType_ + != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, contentType_); } if (feedOutputConfig_ != null) { @@ -570,17 +655,15 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAssetTypesList().size(); } - if (contentType_ != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, contentType_); + if (contentType_ + != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, contentType_); } if (feedOutputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getFeedOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFeedOutputConfig()); } if (condition_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCondition()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCondition()); } { int dataSize = 0; @@ -598,32 +681,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.Feed)) { return super.equals(obj); } com.google.cloud.asset.v1.Feed other = (com.google.cloud.asset.v1.Feed) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getAssetNamesList() - .equals(other.getAssetNamesList())) return false; - if (!getAssetTypesList() - .equals(other.getAssetTypesList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getAssetNamesList().equals(other.getAssetNamesList())) return false; + if (!getAssetTypesList().equals(other.getAssetTypesList())) return false; if (contentType_ != other.contentType_) return false; if (hasFeedOutputConfig() != other.hasFeedOutputConfig()) return false; if (hasFeedOutputConfig()) { - if (!getFeedOutputConfig() - .equals(other.getFeedOutputConfig())) return false; + if (!getFeedOutputConfig().equals(other.getFeedOutputConfig())) return false; } if (hasCondition() != other.hasCondition()) return false; if (hasCondition()) { - if (!getCondition() - .equals(other.getCondition())) return false; + if (!getCondition().equals(other.getCondition())) return false; } - if (!getRelationshipTypesList() - .equals(other.getRelationshipTypesList())) return false; + if (!getRelationshipTypesList().equals(other.getRelationshipTypesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -664,97 +741,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.Feed parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.Feed parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.Feed parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.Feed parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.asset.v1.Feed parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.Feed 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.asset.v1.Feed parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.Feed parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.Feed parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.Feed parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.Feed parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.Feed parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.Feed parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.cloud.asset.v1.Feed parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.Feed parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.Feed prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * An asset feed used to export asset updates to a destinations.
        * An asset feed filter controls what updates are exported.
    @@ -765,33 +848,31 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.asset.v1.Feed}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.Feed)
           com.google.cloud.asset.v1.FeedOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_Feed_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetServiceProto
    +          .internal_static_google_cloud_asset_v1_Feed_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_Feed_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetServiceProto
    +          .internal_static_google_cloud_asset_v1_Feed_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
                   com.google.cloud.asset.v1.Feed.class, com.google.cloud.asset.v1.Feed.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.Feed.newBuilder()
    -    private Builder() {
    +    private Builder() {}
     
    -    }
    -
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -821,9 +902,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_Feed_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetServiceProto
    +          .internal_static_google_cloud_asset_v1_Feed_descriptor;
         }
     
         @java.lang.Override
    @@ -879,38 +960,39 @@ public com.google.cloud.asset.v1.Feed buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.Feed) {
    -        return mergeFrom((com.google.cloud.asset.v1.Feed)other);
    +        return mergeFrom((com.google.cloud.asset.v1.Feed) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -988,54 +1070,59 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
    -            case 10: {
    -              name_ = input.readStringRequireUtf8();
    -
    -              break;
    -            } // case 10
    -            case 18: {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              ensureAssetNamesIsMutable();
    -              assetNames_.add(s);
    -              break;
    -            } // case 18
    -            case 26: {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              ensureAssetTypesIsMutable();
    -              assetTypes_.add(s);
    -              break;
    -            } // case 26
    -            case 32: {
    -              contentType_ = input.readEnum();
    -
    -              break;
    -            } // case 32
    -            case 42: {
    -              input.readMessage(
    -                  getFeedOutputConfigFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -
    -              break;
    -            } // case 42
    -            case 50: {
    -              input.readMessage(
    -                  getConditionFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -
    -              break;
    -            } // case 50
    -            case 58: {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              ensureRelationshipTypesIsMutable();
    -              relationshipTypes_.add(s);
    -              break;
    -            } // case 58
    -            default: {
    -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                done = true; // was an endgroup tag
    -              }
    -              break;
    -            } // default:
    +            case 10:
    +              {
    +                name_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAssetNamesIsMutable();
    +                assetNames_.add(s);
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAssetTypesIsMutable();
    +                assetTypes_.add(s);
    +                break;
    +              } // case 26
    +            case 32:
    +              {
    +                contentType_ = input.readEnum();
    +
    +                break;
    +              } // case 32
    +            case 42:
    +              {
    +                input.readMessage(
    +                    getFeedOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 42
    +            case 50:
    +              {
    +                input.readMessage(getConditionFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 50
    +            case 58:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureRelationshipTypesIsMutable();
    +                relationshipTypes_.add(s);
    +                break;
    +              } // case 58
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -1045,10 +1132,13 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
    +
         private int bitField0_;
     
         private java.lang.Object name_ = "";
         /**
    +     *
    +     *
          * 
          * Required. The format will be
          * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -1059,13 +1149,13 @@ public Builder mergeFrom(
          * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1074,6 +1164,8 @@ public java.lang.String getName() { } } /** + * + * *
          * Required. The format will be
          * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -1084,15 +1176,14 @@ public java.lang.String getName() {
          * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1100,6 +1191,8 @@ public java.lang.String getName() { } } /** + * + * *
          * Required. The format will be
          * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -1110,20 +1203,22 @@ public java.lang.String getName() {
          * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
          * Required. The format will be
          * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -1134,15 +1229,18 @@ public Builder setName(
          * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
          * Required. The format will be
          * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -1153,29 +1251,33 @@ public Builder clearName() {
          * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList assetNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList assetNames_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAssetNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assetNames_ = new com.google.protobuf.LazyStringArrayList(assetNames_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1187,13 +1289,15 @@ private void ensureAssetNamesIsMutable() {
          * 
    * * repeated string asset_names = 2; + * * @return A list containing the assetNames. */ - public com.google.protobuf.ProtocolStringList - getAssetNamesList() { + public com.google.protobuf.ProtocolStringList getAssetNamesList() { return assetNames_.getUnmodifiableView(); } /** + * + * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1205,12 +1309,15 @@ private void ensureAssetNamesIsMutable() {
          * 
    * * repeated string asset_names = 2; + * * @return The count of assetNames. */ public int getAssetNamesCount() { return assetNames_.size(); } /** + * + * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1222,6 +1329,7 @@ public int getAssetNamesCount() {
          * 
    * * repeated string asset_names = 2; + * * @param index The index of the element to return. * @return The assetNames at the given index. */ @@ -1229,6 +1337,8 @@ public java.lang.String getAssetNames(int index) { return assetNames_.get(index); } /** + * + * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1240,14 +1350,16 @@ public java.lang.String getAssetNames(int index) {
          * 
    * * repeated string asset_names = 2; + * * @param index The index of the value to return. * @return The bytes of the assetNames at the given index. */ - public com.google.protobuf.ByteString - getAssetNamesBytes(int index) { + public com.google.protobuf.ByteString getAssetNamesBytes(int index) { return assetNames_.getByteString(index); } /** + * + * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1259,21 +1371,23 @@ public java.lang.String getAssetNames(int index) {
          * 
    * * repeated string asset_names = 2; + * * @param index The index to set the value at. * @param value The assetNames to set. * @return This builder for chaining. */ - public Builder setAssetNames( - int index, java.lang.String value) { + public Builder setAssetNames(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetNamesIsMutable(); + throw new NullPointerException(); + } + ensureAssetNamesIsMutable(); assetNames_.set(index, value); onChanged(); return this; } /** + * + * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1285,20 +1399,22 @@ public Builder setAssetNames(
          * 
    * * repeated string asset_names = 2; + * * @param value The assetNames to add. * @return This builder for chaining. */ - public Builder addAssetNames( - java.lang.String value) { + public Builder addAssetNames(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetNamesIsMutable(); + throw new NullPointerException(); + } + ensureAssetNamesIsMutable(); assetNames_.add(value); onChanged(); return this; } /** + * + * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1310,18 +1426,19 @@ public Builder addAssetNames(
          * 
    * * repeated string asset_names = 2; + * * @param values The assetNames to add. * @return This builder for chaining. */ - public Builder addAllAssetNames( - java.lang.Iterable values) { + public Builder addAllAssetNames(java.lang.Iterable values) { ensureAssetNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, assetNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetNames_); onChanged(); return this; } /** + * + * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1333,6 +1450,7 @@ public Builder addAllAssetNames(
          * 
    * * repeated string asset_names = 2; + * * @return This builder for chaining. */ public Builder clearAssetNames() { @@ -1342,6 +1460,8 @@ public Builder clearAssetNames() { return this; } /** + * + * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1353,29 +1473,33 @@ public Builder clearAssetNames() {
          * 
    * * repeated string asset_names = 2; + * * @param value The bytes of the assetNames to add. * @return This builder for chaining. */ - public Builder addAssetNamesBytes( - com.google.protobuf.ByteString value) { + public Builder addAssetNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssetNamesIsMutable(); assetNames_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList assetTypes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAssetTypesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { assetTypes_ = new com.google.protobuf.LazyStringArrayList(assetTypes_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1386,13 +1510,15 @@ private void ensureAssetTypesIsMutable() {
          * 
    * * repeated string asset_types = 3; + * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList - getAssetTypesList() { + public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_.getUnmodifiableView(); } /** + * + * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1403,12 +1529,15 @@ private void ensureAssetTypesIsMutable() {
          * 
    * * repeated string asset_types = 3; + * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** + * + * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1419,6 +1548,7 @@ public int getAssetTypesCount() {
          * 
    * * repeated string asset_types = 3; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -1426,6 +1556,8 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** + * + * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1436,14 +1568,16 @@ public java.lang.String getAssetTypes(int index) {
          * 
    * * repeated string asset_types = 3; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString - getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } /** + * + * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1454,21 +1588,23 @@ public java.lang.String getAssetTypes(int index) {
          * 
    * * repeated string asset_types = 3; + * * @param index The index to set the value at. * @param value The assetTypes to set. * @return This builder for chaining. */ - public Builder setAssetTypes( - int index, java.lang.String value) { + public Builder setAssetTypes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.set(index, value); onChanged(); return this; } /** + * + * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1479,20 +1615,22 @@ public Builder setAssetTypes(
          * 
    * * repeated string asset_types = 3; + * * @param value The assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypes( - java.lang.String value) { + public Builder addAssetTypes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); return this; } /** + * + * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1503,18 +1641,19 @@ public Builder addAssetTypes(
          * 
    * * repeated string asset_types = 3; + * * @param values The assetTypes to add. * @return This builder for chaining. */ - public Builder addAllAssetTypes( - java.lang.Iterable values) { + public Builder addAllAssetTypes(java.lang.Iterable values) { ensureAssetTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, assetTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetTypes_); onChanged(); return this; } /** + * + * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1525,6 +1664,7 @@ public Builder addAllAssetTypes(
          * 
    * * repeated string asset_types = 3; + * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1534,6 +1674,8 @@ public Builder clearAssetTypes() { return this; } /** + * + * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1544,15 +1686,15 @@ public Builder clearAssetTypes() {
          * 
    * * repeated string asset_types = 3; + * * @param value The bytes of the assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypesBytes( - com.google.protobuf.ByteString value) { + public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); @@ -1561,55 +1703,69 @@ public Builder addAssetTypesBytes( private int contentType_ = 0; /** + * + * *
          * Asset content type. If not specified, no content but the asset name and
          * type will be returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override public int getContentTypeValue() { + @java.lang.Override + public int getContentTypeValue() { return contentType_; } /** + * + * *
          * Asset content type. If not specified, no content but the asset name and
          * type will be returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @param value The enum numeric value on the wire for contentType to set. * @return This builder for chaining. */ public Builder setContentTypeValue(int value) { - + contentType_ = value; onChanged(); return this; } /** + * + * *
          * Asset content type. If not specified, no content but the asset name and
          * type will be returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @return The contentType. */ @java.lang.Override public com.google.cloud.asset.v1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.ContentType result = com.google.cloud.asset.v1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1.ContentType result = + com.google.cloud.asset.v1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1.ContentType.UNRECOGNIZED : result; } /** + * + * *
          * Asset content type. If not specified, no content but the asset name and
          * type will be returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @param value The contentType to set. * @return This builder for chaining. */ @@ -1617,22 +1773,25 @@ public Builder setContentType(com.google.cloud.asset.v1.ContentType value) { if (value == null) { throw new NullPointerException(); } - + contentType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
          * Asset content type. If not specified, no content but the asset name and
          * type will be returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @return This builder for chaining. */ public Builder clearContentType() { - + contentType_ = 0; onChanged(); return this; @@ -1640,42 +1799,61 @@ public Builder clearContentType() { private com.google.cloud.asset.v1.FeedOutputConfig feedOutputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.FeedOutputConfig, com.google.cloud.asset.v1.FeedOutputConfig.Builder, com.google.cloud.asset.v1.FeedOutputConfigOrBuilder> feedOutputConfigBuilder_; + com.google.cloud.asset.v1.FeedOutputConfig, + com.google.cloud.asset.v1.FeedOutputConfig.Builder, + com.google.cloud.asset.v1.FeedOutputConfigOrBuilder> + feedOutputConfigBuilder_; /** + * + * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the feedOutputConfig field is set. */ public boolean hasFeedOutputConfig() { return feedOutputConfigBuilder_ != null || feedOutputConfig_ != null; } /** + * + * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The feedOutputConfig. */ public com.google.cloud.asset.v1.FeedOutputConfig getFeedOutputConfig() { if (feedOutputConfigBuilder_ == null) { - return feedOutputConfig_ == null ? com.google.cloud.asset.v1.FeedOutputConfig.getDefaultInstance() : feedOutputConfig_; + return feedOutputConfig_ == null + ? com.google.cloud.asset.v1.FeedOutputConfig.getDefaultInstance() + : feedOutputConfig_; } else { return feedOutputConfigBuilder_.getMessage(); } } /** + * + * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFeedOutputConfig(com.google.cloud.asset.v1.FeedOutputConfig value) { if (feedOutputConfigBuilder_ == null) { @@ -1691,12 +1869,16 @@ public Builder setFeedOutputConfig(com.google.cloud.asset.v1.FeedOutputConfig va return this; } /** + * + * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFeedOutputConfig( com.google.cloud.asset.v1.FeedOutputConfig.Builder builderForValue) { @@ -1710,18 +1892,24 @@ public Builder setFeedOutputConfig( return this; } /** + * + * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFeedOutputConfig(com.google.cloud.asset.v1.FeedOutputConfig value) { if (feedOutputConfigBuilder_ == null) { if (feedOutputConfig_ != null) { feedOutputConfig_ = - com.google.cloud.asset.v1.FeedOutputConfig.newBuilder(feedOutputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.FeedOutputConfig.newBuilder(feedOutputConfig_) + .mergeFrom(value) + .buildPartial(); } else { feedOutputConfig_ = value; } @@ -1733,12 +1921,16 @@ public Builder mergeFeedOutputConfig(com.google.cloud.asset.v1.FeedOutputConfig return this; } /** + * + * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFeedOutputConfig() { if (feedOutputConfigBuilder_ == null) { @@ -1752,51 +1944,67 @@ public Builder clearFeedOutputConfig() { return this; } /** + * + * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.asset.v1.FeedOutputConfig.Builder getFeedOutputConfigBuilder() { - + onChanged(); return getFeedOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.asset.v1.FeedOutputConfigOrBuilder getFeedOutputConfigOrBuilder() { if (feedOutputConfigBuilder_ != null) { return feedOutputConfigBuilder_.getMessageOrBuilder(); } else { - return feedOutputConfig_ == null ? - com.google.cloud.asset.v1.FeedOutputConfig.getDefaultInstance() : feedOutputConfig_; + return feedOutputConfig_ == null + ? com.google.cloud.asset.v1.FeedOutputConfig.getDefaultInstance() + : feedOutputConfig_; } } /** + * + * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.FeedOutputConfig, com.google.cloud.asset.v1.FeedOutputConfig.Builder, com.google.cloud.asset.v1.FeedOutputConfigOrBuilder> + com.google.cloud.asset.v1.FeedOutputConfig, + com.google.cloud.asset.v1.FeedOutputConfig.Builder, + com.google.cloud.asset.v1.FeedOutputConfigOrBuilder> getFeedOutputConfigFieldBuilder() { if (feedOutputConfigBuilder_ == null) { - feedOutputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.FeedOutputConfig, com.google.cloud.asset.v1.FeedOutputConfig.Builder, com.google.cloud.asset.v1.FeedOutputConfigOrBuilder>( - getFeedOutputConfig(), - getParentForChildren(), - isClean()); + feedOutputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.FeedOutputConfig, + com.google.cloud.asset.v1.FeedOutputConfig.Builder, + com.google.cloud.asset.v1.FeedOutputConfigOrBuilder>( + getFeedOutputConfig(), getParentForChildren(), isClean()); feedOutputConfig_ = null; } return feedOutputConfigBuilder_; @@ -1804,8 +2012,11 @@ public com.google.cloud.asset.v1.FeedOutputConfigOrBuilder getFeedOutputConfigOr private com.google.type.Expr condition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> conditionBuilder_; + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> + conditionBuilder_; /** + * + * *
          * A condition which determines whether an asset update should be published.
          * If specified, an asset will be returned only when the expression evaluates
    @@ -1821,12 +2032,15 @@ public com.google.cloud.asset.v1.FeedOutputConfigOrBuilder getFeedOutputConfigOr
          * 
    * * .google.type.Expr condition = 6; + * * @return Whether the condition field is set. */ public boolean hasCondition() { return conditionBuilder_ != null || condition_ != null; } /** + * + * *
          * A condition which determines whether an asset update should be published.
          * If specified, an asset will be returned only when the expression evaluates
    @@ -1842,6 +2056,7 @@ public boolean hasCondition() {
          * 
    * * .google.type.Expr condition = 6; + * * @return The condition. */ public com.google.type.Expr getCondition() { @@ -1852,6 +2067,8 @@ public com.google.type.Expr getCondition() { } } /** + * + * *
          * A condition which determines whether an asset update should be published.
          * If specified, an asset will be returned only when the expression evaluates
    @@ -1882,6 +2099,8 @@ public Builder setCondition(com.google.type.Expr value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A condition which determines whether an asset update should be published.
          * If specified, an asset will be returned only when the expression evaluates
    @@ -1898,8 +2117,7 @@ public Builder setCondition(com.google.type.Expr value) {
          *
          * .google.type.Expr condition = 6;
          */
    -    public Builder setCondition(
    -        com.google.type.Expr.Builder builderForValue) {
    +    public Builder setCondition(com.google.type.Expr.Builder builderForValue) {
           if (conditionBuilder_ == null) {
             condition_ = builderForValue.build();
             onChanged();
    @@ -1910,6 +2128,8 @@ public Builder setCondition(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A condition which determines whether an asset update should be published.
          * If specified, an asset will be returned only when the expression evaluates
    @@ -1929,8 +2149,7 @@ public Builder setCondition(
         public Builder mergeCondition(com.google.type.Expr value) {
           if (conditionBuilder_ == null) {
             if (condition_ != null) {
    -          condition_ =
    -            com.google.type.Expr.newBuilder(condition_).mergeFrom(value).buildPartial();
    +          condition_ = com.google.type.Expr.newBuilder(condition_).mergeFrom(value).buildPartial();
             } else {
               condition_ = value;
             }
    @@ -1942,6 +2161,8 @@ public Builder mergeCondition(com.google.type.Expr value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A condition which determines whether an asset update should be published.
          * If specified, an asset will be returned only when the expression evaluates
    @@ -1970,6 +2191,8 @@ public Builder clearCondition() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A condition which determines whether an asset update should be published.
          * If specified, an asset will be returned only when the expression evaluates
    @@ -1987,11 +2210,13 @@ public Builder clearCondition() {
          * .google.type.Expr condition = 6;
          */
         public com.google.type.Expr.Builder getConditionBuilder() {
    -      
    +
           onChanged();
           return getConditionFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * A condition which determines whether an asset update should be published.
          * If specified, an asset will be returned only when the expression evaluates
    @@ -2012,11 +2237,12 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
           if (conditionBuilder_ != null) {
             return conditionBuilder_.getMessageOrBuilder();
           } else {
    -        return condition_ == null ?
    -            com.google.type.Expr.getDefaultInstance() : condition_;
    +        return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_;
           }
         }
         /**
    +     *
    +     *
          * 
          * A condition which determines whether an asset update should be published.
          * If specified, an asset will be returned only when the expression evaluates
    @@ -2034,27 +2260,30 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
          * .google.type.Expr condition = 6;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> 
    +            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>
             getConditionFieldBuilder() {
           if (conditionBuilder_ == null) {
    -        conditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
    -                getCondition(),
    -                getParentForChildren(),
    -                isClean());
    +        conditionBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>(
    +                getCondition(), getParentForChildren(), isClean());
             condition_ = null;
           }
           return conditionBuilder_;
         }
     
    -    private com.google.protobuf.LazyStringList relationshipTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    +    private com.google.protobuf.LazyStringList relationshipTypes_ =
    +        com.google.protobuf.LazyStringArrayList.EMPTY;
    +
         private void ensureRelationshipTypesIsMutable() {
           if (!((bitField0_ & 0x00000004) != 0)) {
             relationshipTypes_ = new com.google.protobuf.LazyStringArrayList(relationshipTypes_);
             bitField0_ |= 0x00000004;
    -       }
    +      }
         }
         /**
    +     *
    +     *
          * 
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2075,13 +2304,15 @@ private void ensureRelationshipTypesIsMutable() {
          * 
    * * repeated string relationship_types = 7; + * * @return A list containing the relationshipTypes. */ - public com.google.protobuf.ProtocolStringList - getRelationshipTypesList() { + public com.google.protobuf.ProtocolStringList getRelationshipTypesList() { return relationshipTypes_.getUnmodifiableView(); } /** + * + * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2102,12 +2333,15 @@ private void ensureRelationshipTypesIsMutable() {
          * 
    * * repeated string relationship_types = 7; + * * @return The count of relationshipTypes. */ public int getRelationshipTypesCount() { return relationshipTypes_.size(); } /** + * + * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2128,6 +2362,7 @@ public int getRelationshipTypesCount() {
          * 
    * * repeated string relationship_types = 7; + * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -2135,6 +2370,8 @@ public java.lang.String getRelationshipTypes(int index) { return relationshipTypes_.get(index); } /** + * + * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2155,14 +2392,16 @@ public java.lang.String getRelationshipTypes(int index) {
          * 
    * * repeated string relationship_types = 7; + * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - public com.google.protobuf.ByteString - getRelationshipTypesBytes(int index) { + public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) { return relationshipTypes_.getByteString(index); } /** + * + * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2183,21 +2422,23 @@ public java.lang.String getRelationshipTypes(int index) {
          * 
    * * repeated string relationship_types = 7; + * * @param index The index to set the value at. * @param value The relationshipTypes to set. * @return This builder for chaining. */ - public Builder setRelationshipTypes( - int index, java.lang.String value) { + public Builder setRelationshipTypes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRelationshipTypesIsMutable(); + throw new NullPointerException(); + } + ensureRelationshipTypesIsMutable(); relationshipTypes_.set(index, value); onChanged(); return this; } /** + * + * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2218,20 +2459,22 @@ public Builder setRelationshipTypes(
          * 
    * * repeated string relationship_types = 7; + * * @param value The relationshipTypes to add. * @return This builder for chaining. */ - public Builder addRelationshipTypes( - java.lang.String value) { + public Builder addRelationshipTypes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRelationshipTypesIsMutable(); + throw new NullPointerException(); + } + ensureRelationshipTypesIsMutable(); relationshipTypes_.add(value); onChanged(); return this; } /** + * + * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2252,18 +2495,19 @@ public Builder addRelationshipTypes(
          * 
    * * repeated string relationship_types = 7; + * * @param values The relationshipTypes to add. * @return This builder for chaining. */ - public Builder addAllRelationshipTypes( - java.lang.Iterable values) { + public Builder addAllRelationshipTypes(java.lang.Iterable values) { ensureRelationshipTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, relationshipTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relationshipTypes_); onChanged(); return this; } /** + * + * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2284,6 +2528,7 @@ public Builder addAllRelationshipTypes(
          * 
    * * repeated string relationship_types = 7; + * * @return This builder for chaining. */ public Builder clearRelationshipTypes() { @@ -2293,6 +2538,8 @@ public Builder clearRelationshipTypes() { return this; } /** + * + * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2313,23 +2560,23 @@ public Builder clearRelationshipTypes() {
          * 
    * * repeated string relationship_types = 7; + * * @param value The bytes of the relationshipTypes to add. * @return This builder for chaining. */ - public Builder addRelationshipTypesBytes( - com.google.protobuf.ByteString value) { + public Builder addRelationshipTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureRelationshipTypesIsMutable(); relationshipTypes_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2339,12 +2586,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.Feed) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.Feed) private static final com.google.cloud.asset.v1.Feed DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.Feed(); } @@ -2353,27 +2600,27 @@ public static com.google.cloud.asset.v1.Feed getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Feed parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feed parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2388,6 +2635,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.Feed getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedName.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedName.java similarity index 100% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedName.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedName.java diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java similarity index 89% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java index 1086910dc923..3a9a8f7e2632 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface FeedOrBuilder extends +public interface FeedOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.Feed) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The format will be
        * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -18,10 +36,13 @@ public interface FeedOrBuilder extends
        * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
        * Required. The format will be
        * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -32,12 +53,14 @@ public interface FeedOrBuilder extends
        * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -49,11 +72,13 @@ public interface FeedOrBuilder extends
        * 
    * * repeated string asset_names = 2; + * * @return A list containing the assetNames. */ - java.util.List - getAssetNamesList(); + java.util.List getAssetNamesList(); /** + * + * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -65,10 +90,13 @@ public interface FeedOrBuilder extends
        * 
    * * repeated string asset_names = 2; + * * @return The count of assetNames. */ int getAssetNamesCount(); /** + * + * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -80,11 +108,14 @@ public interface FeedOrBuilder extends
        * 
    * * repeated string asset_names = 2; + * * @param index The index of the element to return. * @return The assetNames at the given index. */ java.lang.String getAssetNames(int index); /** + * + * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -96,13 +127,15 @@ public interface FeedOrBuilder extends
        * 
    * * repeated string asset_names = 2; + * * @param index The index of the value to return. * @return The bytes of the assetNames at the given index. */ - com.google.protobuf.ByteString - getAssetNamesBytes(int index); + com.google.protobuf.ByteString getAssetNamesBytes(int index); /** + * + * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -113,11 +146,13 @@ public interface FeedOrBuilder extends
        * 
    * * repeated string asset_types = 3; + * * @return A list containing the assetTypes. */ - java.util.List - getAssetTypesList(); + java.util.List getAssetTypesList(); /** + * + * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -128,10 +163,13 @@ public interface FeedOrBuilder extends
        * 
    * * repeated string asset_types = 3; + * * @return The count of assetTypes. */ int getAssetTypesCount(); /** + * + * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -142,11 +180,14 @@ public interface FeedOrBuilder extends
        * 
    * * repeated string asset_types = 3; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ java.lang.String getAssetTypes(int index); /** + * + * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -157,64 +198,86 @@ public interface FeedOrBuilder extends
        * 
    * * repeated string asset_types = 3; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - com.google.protobuf.ByteString - getAssetTypesBytes(int index); + com.google.protobuf.ByteString getAssetTypesBytes(int index); /** + * + * *
        * Asset content type. If not specified, no content but the asset name and
        * type will be returned.
        * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @return The enum numeric value on the wire for contentType. */ int getContentTypeValue(); /** + * + * *
        * Asset content type. If not specified, no content but the asset name and
        * type will be returned.
        * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @return The contentType. */ com.google.cloud.asset.v1.ContentType getContentType(); /** + * + * *
        * Required. Feed output configuration defining where the asset updates are
        * published to.
        * 
    * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the feedOutputConfig field is set. */ boolean hasFeedOutputConfig(); /** + * + * *
        * Required. Feed output configuration defining where the asset updates are
        * published to.
        * 
    * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The feedOutputConfig. */ com.google.cloud.asset.v1.FeedOutputConfig getFeedOutputConfig(); /** + * + * *
        * Required. Feed output configuration defining where the asset updates are
        * published to.
        * 
    * - * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.asset.v1.FeedOutputConfigOrBuilder getFeedOutputConfigOrBuilder(); /** + * + * *
        * A condition which determines whether an asset update should be published.
        * If specified, an asset will be returned only when the expression evaluates
    @@ -230,10 +293,13 @@ public interface FeedOrBuilder extends
        * 
    * * .google.type.Expr condition = 6; + * * @return Whether the condition field is set. */ boolean hasCondition(); /** + * + * *
        * A condition which determines whether an asset update should be published.
        * If specified, an asset will be returned only when the expression evaluates
    @@ -249,10 +315,13 @@ public interface FeedOrBuilder extends
        * 
    * * .google.type.Expr condition = 6; + * * @return The condition. */ com.google.type.Expr getCondition(); /** + * + * *
        * A condition which determines whether an asset update should be published.
        * If specified, an asset will be returned only when the expression evaluates
    @@ -272,6 +341,8 @@ public interface FeedOrBuilder extends
       com.google.type.ExprOrBuilder getConditionOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -292,11 +363,13 @@ public interface FeedOrBuilder extends
        * 
    * * repeated string relationship_types = 7; + * * @return A list containing the relationshipTypes. */ - java.util.List - getRelationshipTypesList(); + java.util.List getRelationshipTypesList(); /** + * + * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -317,10 +390,13 @@ public interface FeedOrBuilder extends
        * 
    * * repeated string relationship_types = 7; + * * @return The count of relationshipTypes. */ int getRelationshipTypesCount(); /** + * + * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -341,11 +417,14 @@ public interface FeedOrBuilder extends
        * 
    * * repeated string relationship_types = 7; + * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ java.lang.String getRelationshipTypes(int index); /** + * + * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -366,9 +445,9 @@ public interface FeedOrBuilder extends
        * 
    * * repeated string relationship_types = 7; + * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - com.google.protobuf.ByteString - getRelationshipTypesBytes(int index); + com.google.protobuf.ByteString getRelationshipTypesBytes(int index); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java similarity index 68% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java index 03a85c5650c4..e1964247c18c 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java @@ -1,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * Output configuration for asset feed destination.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.FeedOutputConfig} */ -public final class FeedOutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FeedOutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.FeedOutputConfig) FeedOutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FeedOutputConfig.newBuilder() to construct. private FeedOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FeedOutputConfig() { - } + + private FeedOutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FeedOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_FeedOutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_FeedOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.FeedOutputConfig.class, com.google.cloud.asset.v1.FeedOutputConfig.Builder.class); + com.google.cloud.asset.v1.FeedOutputConfig.class, + com.google.cloud.asset.v1.FeedOutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PUBSUB_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -70,29 +91,34 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return PUBSUB_DESTINATION; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return PUBSUB_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int PUBSUB_DESTINATION_FIELD_NUMBER = 1; /** + * + * *
        * Destination on Pub/Sub.
        * 
    * * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; + * * @return Whether the pubsubDestination field is set. */ @java.lang.Override @@ -100,21 +126,26 @@ public boolean hasPubsubDestination() { return destinationCase_ == 1; } /** + * + * *
        * Destination on Pub/Sub.
        * 
    * * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; + * * @return The pubsubDestination. */ @java.lang.Override public com.google.cloud.asset.v1.PubsubDestination getPubsubDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1.PubsubDestination) destination_; + return (com.google.cloud.asset.v1.PubsubDestination) destination_; } return com.google.cloud.asset.v1.PubsubDestination.getDefaultInstance(); } /** + * + * *
        * Destination on Pub/Sub.
        * 
    @@ -124,12 +155,13 @@ public com.google.cloud.asset.v1.PubsubDestination getPubsubDestination() { @java.lang.Override public com.google.cloud.asset.v1.PubsubDestinationOrBuilder getPubsubDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1.PubsubDestination) destination_; + return (com.google.cloud.asset.v1.PubsubDestination) destination_; } return com.google.cloud.asset.v1.PubsubDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -141,8 +173,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.asset.v1.PubsubDestination) destination_); } @@ -156,8 +187,9 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.asset.v1.PubsubDestination) destination_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.asset.v1.PubsubDestination) destination_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -167,18 +199,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.FeedOutputConfig)) { return super.equals(obj); } - com.google.cloud.asset.v1.FeedOutputConfig other = (com.google.cloud.asset.v1.FeedOutputConfig) obj; + com.google.cloud.asset.v1.FeedOutputConfig other = + (com.google.cloud.asset.v1.FeedOutputConfig) obj; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getPubsubDestination() - .equals(other.getPubsubDestination())) return false; + if (!getPubsubDestination().equals(other.getPubsubDestination())) return false; break; case 0: default: @@ -207,130 +239,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.FeedOutputConfig 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.asset.v1.FeedOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.FeedOutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.FeedOutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.FeedOutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.FeedOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.FeedOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Output configuration for asset feed destination.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.FeedOutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.FeedOutputConfig) com.google.cloud.asset.v1.FeedOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_FeedOutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_FeedOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.FeedOutputConfig.class, com.google.cloud.asset.v1.FeedOutputConfig.Builder.class); + com.google.cloud.asset.v1.FeedOutputConfig.class, + com.google.cloud.asset.v1.FeedOutputConfig.Builder.class); } // Construct using com.google.cloud.asset.v1.FeedOutputConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +381,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor; } @java.lang.Override @@ -364,7 +402,8 @@ public com.google.cloud.asset.v1.FeedOutputConfig build() { @java.lang.Override public com.google.cloud.asset.v1.FeedOutputConfig buildPartial() { - com.google.cloud.asset.v1.FeedOutputConfig result = new com.google.cloud.asset.v1.FeedOutputConfig(this); + com.google.cloud.asset.v1.FeedOutputConfig result = + new com.google.cloud.asset.v1.FeedOutputConfig(this); if (destinationCase_ == 1) { if (pubsubDestinationBuilder_ == null) { result.destination_ = destination_; @@ -381,38 +420,39 @@ public com.google.cloud.asset.v1.FeedOutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.FeedOutputConfig) { - return mergeFrom((com.google.cloud.asset.v1.FeedOutputConfig)other); + return mergeFrom((com.google.cloud.asset.v1.FeedOutputConfig) other); } else { super.mergeFrom(other); return this; @@ -422,13 +462,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.asset.v1.FeedOutputConfig other) { if (other == com.google.cloud.asset.v1.FeedOutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case PUBSUB_DESTINATION: { - mergePubsubDestination(other.getPubsubDestination()); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case PUBSUB_DESTINATION: + { + mergePubsubDestination(other.getPubsubDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -456,19 +498,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getPubsubDestinationFieldBuilder().getBuilder(), - extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getPubsubDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -478,12 +521,12 @@ public Builder mergeFrom( } // finally return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -493,15 +536,20 @@ public Builder clearDestination() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.PubsubDestination, com.google.cloud.asset.v1.PubsubDestination.Builder, com.google.cloud.asset.v1.PubsubDestinationOrBuilder> pubsubDestinationBuilder_; + com.google.cloud.asset.v1.PubsubDestination, + com.google.cloud.asset.v1.PubsubDestination.Builder, + com.google.cloud.asset.v1.PubsubDestinationOrBuilder> + pubsubDestinationBuilder_; /** + * + * *
          * Destination on Pub/Sub.
          * 
    * * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; + * * @return Whether the pubsubDestination field is set. */ @java.lang.Override @@ -509,11 +557,14 @@ public boolean hasPubsubDestination() { return destinationCase_ == 1; } /** + * + * *
          * Destination on Pub/Sub.
          * 
    * * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; + * * @return The pubsubDestination. */ @java.lang.Override @@ -531,6 +582,8 @@ public com.google.cloud.asset.v1.PubsubDestination getPubsubDestination() { } } /** + * + * *
          * Destination on Pub/Sub.
          * 
    @@ -551,6 +604,8 @@ public Builder setPubsubDestination(com.google.cloud.asset.v1.PubsubDestination return this; } /** + * + * *
          * Destination on Pub/Sub.
          * 
    @@ -569,6 +624,8 @@ public Builder setPubsubDestination( return this; } /** + * + * *
          * Destination on Pub/Sub.
          * 
    @@ -577,10 +634,13 @@ public Builder setPubsubDestination( */ public Builder mergePubsubDestination(com.google.cloud.asset.v1.PubsubDestination value) { if (pubsubDestinationBuilder_ == null) { - if (destinationCase_ == 1 && - destination_ != com.google.cloud.asset.v1.PubsubDestination.getDefaultInstance()) { - destination_ = com.google.cloud.asset.v1.PubsubDestination.newBuilder((com.google.cloud.asset.v1.PubsubDestination) destination_) - .mergeFrom(value).buildPartial(); + if (destinationCase_ == 1 + && destination_ != com.google.cloud.asset.v1.PubsubDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.asset.v1.PubsubDestination.newBuilder( + (com.google.cloud.asset.v1.PubsubDestination) destination_) + .mergeFrom(value) + .buildPartial(); } else { destination_ = value; } @@ -596,6 +656,8 @@ public Builder mergePubsubDestination(com.google.cloud.asset.v1.PubsubDestinatio return this; } /** + * + * *
          * Destination on Pub/Sub.
          * 
    @@ -619,6 +681,8 @@ public Builder clearPubsubDestination() { return this; } /** + * + * *
          * Destination on Pub/Sub.
          * 
    @@ -629,6 +693,8 @@ public com.google.cloud.asset.v1.PubsubDestination.Builder getPubsubDestinationB return getPubsubDestinationFieldBuilder().getBuilder(); } /** + * + * *
          * Destination on Pub/Sub.
          * 
    @@ -647,6 +713,8 @@ public com.google.cloud.asset.v1.PubsubDestinationOrBuilder getPubsubDestination } } /** + * + * *
          * Destination on Pub/Sub.
          * 
    @@ -654,26 +722,32 @@ public com.google.cloud.asset.v1.PubsubDestinationOrBuilder getPubsubDestination * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.PubsubDestination, com.google.cloud.asset.v1.PubsubDestination.Builder, com.google.cloud.asset.v1.PubsubDestinationOrBuilder> + com.google.cloud.asset.v1.PubsubDestination, + com.google.cloud.asset.v1.PubsubDestination.Builder, + com.google.cloud.asset.v1.PubsubDestinationOrBuilder> getPubsubDestinationFieldBuilder() { if (pubsubDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.asset.v1.PubsubDestination.getDefaultInstance(); } - pubsubDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.PubsubDestination, com.google.cloud.asset.v1.PubsubDestination.Builder, com.google.cloud.asset.v1.PubsubDestinationOrBuilder>( + pubsubDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.PubsubDestination, + com.google.cloud.asset.v1.PubsubDestination.Builder, + com.google.cloud.asset.v1.PubsubDestinationOrBuilder>( (com.google.cloud.asset.v1.PubsubDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 1; - onChanged();; + onChanged(); + ; return pubsubDestinationBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -683,12 +757,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.FeedOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.FeedOutputConfig) private static final com.google.cloud.asset.v1.FeedOutputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.FeedOutputConfig(); } @@ -697,27 +771,27 @@ public static com.google.cloud.asset.v1.FeedOutputConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeedOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeedOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -732,6 +806,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.FeedOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfigOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfigOrBuilder.java similarity index 61% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfigOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfigOrBuilder.java index ac8bae6335c6..4d58fa3e40f0 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfigOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfigOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface FeedOutputConfigOrBuilder extends +public interface FeedOutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.FeedOutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Destination on Pub/Sub.
        * 
    * * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; + * * @return Whether the pubsubDestination field is set. */ boolean hasPubsubDestination(); /** + * + * *
        * Destination on Pub/Sub.
        * 
    * * .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; + * * @return The pubsubDestination. */ com.google.cloud.asset.v1.PubsubDestination getPubsubDestination(); /** + * + * *
        * Destination on Pub/Sub.
        * 
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FolderName.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FolderName.java similarity index 100% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FolderName.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FolderName.java diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestination.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestination.java similarity index 75% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestination.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestination.java index 423cd85224b0..8fd6eb12cf2a 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestination.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestination.java @@ -1,61 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * A Cloud Storage location.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.GcsDestination} */ -public final class GcsDestination extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.GcsDestination) GcsDestinationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsDestination() { - } + + private GcsDestination() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GcsDestination_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GcsDestination_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.GcsDestination.class, com.google.cloud.asset.v1.GcsDestination.Builder.class); + com.google.cloud.asset.v1.GcsDestination.class, + com.google.cloud.asset.v1.GcsDestination.Builder.class); } private int objectUriCase_ = 0; private java.lang.Object objectUri_; + public enum ObjectUriCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { URI(1), URI_PREFIX(2), OBJECTURI_NOT_SET(0); private final int value; + private ObjectUriCase(int value) { this.value = value; } @@ -71,25 +92,30 @@ public static ObjectUriCase valueOf(int value) { public static ObjectUriCase forNumber(int value) { switch (value) { - case 1: return URI; - case 2: return URI_PREFIX; - case 0: return OBJECTURI_NOT_SET; - default: return null; + case 1: + return URI; + case 2: + return URI_PREFIX; + case 0: + return OBJECTURI_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ObjectUriCase - getObjectUriCase() { - return ObjectUriCase.forNumber( - objectUriCase_); + public ObjectUriCase getObjectUriCase() { + return ObjectUriCase.forNumber(objectUriCase_); } public static final int URI_FIELD_NUMBER = 1; /** + * + * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -102,12 +128,15 @@ public int getNumber() {
        * 
    * * string uri = 1; + * * @return Whether the uri field is set. */ public boolean hasUri() { return objectUriCase_ == 1; } /** + * + * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -120,6 +149,7 @@ public boolean hasUri() {
        * 
    * * string uri = 1; + * * @return The uri. */ public java.lang.String getUri() { @@ -130,8 +160,7 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (objectUriCase_ == 1) { objectUri_ = s; @@ -140,6 +169,8 @@ public java.lang.String getUri() { } } /** + * + * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -152,18 +183,17 @@ public java.lang.String getUri() {
        * 
    * * string uri = 1; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; if (objectUriCase_ == 1) { ref = objectUri_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (objectUriCase_ == 1) { objectUri_ = b; } @@ -175,6 +205,8 @@ public java.lang.String getUri() { public static final int URI_PREFIX_FIELD_NUMBER = 2; /** + * + * *
        * The uri prefix of all generated Cloud Storage objects. Example:
        * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -188,12 +220,15 @@ public java.lang.String getUri() {
        * 
    * * string uri_prefix = 2; + * * @return Whether the uriPrefix field is set. */ public boolean hasUriPrefix() { return objectUriCase_ == 2; } /** + * + * *
        * The uri prefix of all generated Cloud Storage objects. Example:
        * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -207,6 +242,7 @@ public boolean hasUriPrefix() {
        * 
    * * string uri_prefix = 2; + * * @return The uriPrefix. */ public java.lang.String getUriPrefix() { @@ -217,8 +253,7 @@ public java.lang.String getUriPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (objectUriCase_ == 2) { objectUri_ = s; @@ -227,6 +262,8 @@ public java.lang.String getUriPrefix() { } } /** + * + * *
        * The uri prefix of all generated Cloud Storage objects. Example:
        * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -240,18 +277,17 @@ public java.lang.String getUriPrefix() {
        * 
    * * string uri_prefix = 2; + * * @return The bytes for uriPrefix. */ - public com.google.protobuf.ByteString - getUriPrefixBytes() { + public com.google.protobuf.ByteString getUriPrefixBytes() { java.lang.Object ref = ""; if (objectUriCase_ == 2) { ref = objectUri_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (objectUriCase_ == 2) { objectUri_ = b; } @@ -262,6 +298,7 @@ public java.lang.String getUriPrefix() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,8 +310,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (objectUriCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, objectUri_); } @@ -304,7 +340,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.GcsDestination)) { return super.equals(obj); @@ -314,12 +350,10 @@ public boolean equals(final java.lang.Object obj) { if (!getObjectUriCase().equals(other.getObjectUriCase())) return false; switch (objectUriCase_) { case 1: - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; break; case 2: - if (!getUriPrefix() - .equals(other.getUriPrefix())) return false; + if (!getUriPrefix().equals(other.getUriPrefix())) return false; break; case 0: default: @@ -352,130 +386,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.GcsDestination parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.GcsDestination parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.GcsDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.GcsDestination 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.asset.v1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.GcsDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.GcsDestination parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.GcsDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.GcsDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.GcsDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * A Cloud Storage location.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.GcsDestination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.GcsDestination) com.google.cloud.asset.v1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GcsDestination_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.GcsDestination.class, com.google.cloud.asset.v1.GcsDestination.Builder.class); + com.google.cloud.asset.v1.GcsDestination.class, + com.google.cloud.asset.v1.GcsDestination.Builder.class); } // Construct using com.google.cloud.asset.v1.GcsDestination.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -485,9 +525,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GcsDestination_descriptor; } @java.lang.Override @@ -506,7 +546,8 @@ public com.google.cloud.asset.v1.GcsDestination build() { @java.lang.Override public com.google.cloud.asset.v1.GcsDestination buildPartial() { - com.google.cloud.asset.v1.GcsDestination result = new com.google.cloud.asset.v1.GcsDestination(this); + com.google.cloud.asset.v1.GcsDestination result = + new com.google.cloud.asset.v1.GcsDestination(this); if (objectUriCase_ == 1) { result.objectUri_ = objectUri_; } @@ -522,38 +563,39 @@ public com.google.cloud.asset.v1.GcsDestination buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.GcsDestination) { - return mergeFrom((com.google.cloud.asset.v1.GcsDestination)other); + return mergeFrom((com.google.cloud.asset.v1.GcsDestination) other); } else { super.mergeFrom(other); return this; @@ -563,21 +605,24 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.asset.v1.GcsDestination other) { if (other == com.google.cloud.asset.v1.GcsDestination.getDefaultInstance()) return this; switch (other.getObjectUriCase()) { - case URI: { - objectUriCase_ = 1; - objectUri_ = other.objectUri_; - onChanged(); - break; - } - case URI_PREFIX: { - objectUriCase_ = 2; - objectUri_ = other.objectUri_; - onChanged(); - break; - } - case OBJECTURI_NOT_SET: { - break; - } + case URI: + { + objectUriCase_ = 1; + objectUri_ = other.objectUri_; + onChanged(); + break; + } + case URI_PREFIX: + { + objectUriCase_ = 2; + objectUri_ = other.objectUri_; + onChanged(); + break; + } + case OBJECTURI_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -605,24 +650,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - objectUriCase_ = 1; - objectUri_ = s; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - objectUriCase_ = 2; - objectUri_ = s; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + objectUriCase_ = 1; + objectUri_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + objectUriCase_ = 2; + objectUri_ = s; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -632,12 +680,12 @@ public Builder mergeFrom( } // finally return this; } + private int objectUriCase_ = 0; private java.lang.Object objectUri_; - public ObjectUriCase - getObjectUriCase() { - return ObjectUriCase.forNumber( - objectUriCase_); + + public ObjectUriCase getObjectUriCase() { + return ObjectUriCase.forNumber(objectUriCase_); } public Builder clearObjectUri() { @@ -647,8 +695,9 @@ public Builder clearObjectUri() { return this; } - /** + * + * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -661,6 +710,7 @@ public Builder clearObjectUri() {
          * 
    * * string uri = 1; + * * @return Whether the uri field is set. */ @java.lang.Override @@ -668,6 +718,8 @@ public boolean hasUri() { return objectUriCase_ == 1; } /** + * + * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -680,6 +732,7 @@ public boolean hasUri() {
          * 
    * * string uri = 1; + * * @return The uri. */ @java.lang.Override @@ -689,8 +742,7 @@ public java.lang.String getUri() { ref = objectUri_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (objectUriCase_ == 1) { objectUri_ = s; @@ -701,6 +753,8 @@ public java.lang.String getUri() { } } /** + * + * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -713,19 +767,18 @@ public java.lang.String getUri() {
          * 
    * * string uri = 1; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; if (objectUriCase_ == 1) { ref = objectUri_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (objectUriCase_ == 1) { objectUri_ = b; } @@ -735,6 +788,8 @@ public java.lang.String getUri() { } } /** + * + * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -747,20 +802,22 @@ public java.lang.String getUri() {
          * 
    * * string uri = 1; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - objectUriCase_ = 1; + throw new NullPointerException(); + } + objectUriCase_ = 1; objectUri_ = value; onChanged(); return this; } /** + * + * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -773,6 +830,7 @@ public Builder setUri(
          * 
    * * string uri = 1; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -784,6 +842,8 @@ public Builder clearUri() { return this; } /** + * + * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -796,15 +856,15 @@ public Builder clearUri() {
          * 
    * * string uri = 1; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); objectUriCase_ = 1; objectUri_ = value; onChanged(); @@ -812,6 +872,8 @@ public Builder setUriBytes( } /** + * + * *
          * The uri prefix of all generated Cloud Storage objects. Example:
          * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -825,6 +887,7 @@ public Builder setUriBytes(
          * 
    * * string uri_prefix = 2; + * * @return Whether the uriPrefix field is set. */ @java.lang.Override @@ -832,6 +895,8 @@ public boolean hasUriPrefix() { return objectUriCase_ == 2; } /** + * + * *
          * The uri prefix of all generated Cloud Storage objects. Example:
          * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -845,6 +910,7 @@ public boolean hasUriPrefix() {
          * 
    * * string uri_prefix = 2; + * * @return The uriPrefix. */ @java.lang.Override @@ -854,8 +920,7 @@ public java.lang.String getUriPrefix() { ref = objectUri_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (objectUriCase_ == 2) { objectUri_ = s; @@ -866,6 +931,8 @@ public java.lang.String getUriPrefix() { } } /** + * + * *
          * The uri prefix of all generated Cloud Storage objects. Example:
          * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -879,19 +946,18 @@ public java.lang.String getUriPrefix() {
          * 
    * * string uri_prefix = 2; + * * @return The bytes for uriPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriPrefixBytes() { + public com.google.protobuf.ByteString getUriPrefixBytes() { java.lang.Object ref = ""; if (objectUriCase_ == 2) { ref = objectUri_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (objectUriCase_ == 2) { objectUri_ = b; } @@ -901,6 +967,8 @@ public java.lang.String getUriPrefix() { } } /** + * + * *
          * The uri prefix of all generated Cloud Storage objects. Example:
          * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -914,20 +982,22 @@ public java.lang.String getUriPrefix() {
          * 
    * * string uri_prefix = 2; + * * @param value The uriPrefix to set. * @return This builder for chaining. */ - public Builder setUriPrefix( - java.lang.String value) { + public Builder setUriPrefix(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - objectUriCase_ = 2; + throw new NullPointerException(); + } + objectUriCase_ = 2; objectUri_ = value; onChanged(); return this; } /** + * + * *
          * The uri prefix of all generated Cloud Storage objects. Example:
          * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -941,6 +1011,7 @@ public Builder setUriPrefix(
          * 
    * * string uri_prefix = 2; + * * @return This builder for chaining. */ public Builder clearUriPrefix() { @@ -952,6 +1023,8 @@ public Builder clearUriPrefix() { return this; } /** + * + * *
          * The uri prefix of all generated Cloud Storage objects. Example:
          * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -965,23 +1038,23 @@ public Builder clearUriPrefix() {
          * 
    * * string uri_prefix = 2; + * * @param value The bytes for uriPrefix to set. * @return This builder for chaining. */ - public Builder setUriPrefixBytes( - com.google.protobuf.ByteString value) { + public Builder setUriPrefixBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); objectUriCase_ = 2; objectUri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -991,12 +1064,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.GcsDestination) private static final com.google.cloud.asset.v1.GcsDestination DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.GcsDestination(); } @@ -1005,27 +1078,27 @@ public static com.google.cloud.asset.v1.GcsDestination getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1113,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestinationOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestinationOrBuilder.java similarity index 84% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestinationOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestinationOrBuilder.java index 7fef46dc7c32..99805d341767 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestinationOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestinationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface GcsDestinationOrBuilder extends +public interface GcsDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -20,10 +38,13 @@ public interface GcsDestinationOrBuilder extends
        * 
    * * string uri = 1; + * * @return Whether the uri field is set. */ boolean hasUri(); /** + * + * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -36,10 +57,13 @@ public interface GcsDestinationOrBuilder extends
        * 
    * * string uri = 1; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -52,12 +76,14 @@ public interface GcsDestinationOrBuilder extends
        * 
    * * string uri = 1; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
        * The uri prefix of all generated Cloud Storage objects. Example:
        * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -71,10 +97,13 @@ public interface GcsDestinationOrBuilder extends
        * 
    * * string uri_prefix = 2; + * * @return Whether the uriPrefix field is set. */ boolean hasUriPrefix(); /** + * + * *
        * The uri prefix of all generated Cloud Storage objects. Example:
        * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -88,10 +117,13 @@ public interface GcsDestinationOrBuilder extends
        * 
    * * string uri_prefix = 2; + * * @return The uriPrefix. */ java.lang.String getUriPrefix(); /** + * + * *
        * The uri prefix of all generated Cloud Storage objects. Example:
        * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -105,10 +137,10 @@ public interface GcsDestinationOrBuilder extends
        * 
    * * string uri_prefix = 2; + * * @return The bytes for uriPrefix. */ - com.google.protobuf.ByteString - getUriPrefixBytes(); + com.google.protobuf.ByteString getUriPrefixBytes(); public com.google.cloud.asset.v1.GcsDestination.ObjectUriCase getObjectUriCase(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResult.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResult.java similarity index 67% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResult.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResult.java index 9e620e9dc0ed..9090ccbed234 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResult.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResult.java @@ -1,87 +1,114 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * A Cloud Storage output result.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.GcsOutputResult} */ -public final class GcsOutputResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsOutputResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.GcsOutputResult) GcsOutputResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsOutputResult.newBuilder() to construct. private GcsOutputResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsOutputResult() { uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsOutputResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GcsOutputResult_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GcsOutputResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.GcsOutputResult.class, com.google.cloud.asset.v1.GcsOutputResult.Builder.class); + com.google.cloud.asset.v1.GcsOutputResult.class, + com.google.cloud.asset.v1.GcsOutputResult.Builder.class); } public static final int URIS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList uris_; /** + * + * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; + * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList - getUrisList() { + public com.google.protobuf.ProtocolStringList getUrisList() { return uris_; } /** + * + * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; + * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** + * + * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; + * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -89,21 +116,24 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** + * + * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString - getUrisBytes(int index) { + public com.google.protobuf.ByteString getUrisBytes(int index) { return uris_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -115,8 +145,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < uris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uris_.getRaw(i)); } @@ -145,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.GcsOutputResult)) { return super.equals(obj); } - com.google.cloud.asset.v1.GcsOutputResult other = (com.google.cloud.asset.v1.GcsOutputResult) obj; + com.google.cloud.asset.v1.GcsOutputResult other = + (com.google.cloud.asset.v1.GcsOutputResult) obj; - if (!getUrisList() - .equals(other.getUrisList())) return false; + if (!getUrisList().equals(other.getUrisList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -174,130 +203,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.GcsOutputResult parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.GcsOutputResult parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.GcsOutputResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.GcsOutputResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.GcsOutputResult 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.asset.v1.GcsOutputResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.GcsOutputResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.GcsOutputResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.GcsOutputResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.GcsOutputResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.GcsOutputResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.GcsOutputResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.GcsOutputResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.GcsOutputResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.GcsOutputResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * A Cloud Storage output result.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.GcsOutputResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.GcsOutputResult) com.google.cloud.asset.v1.GcsOutputResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GcsOutputResult_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GcsOutputResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.GcsOutputResult.class, com.google.cloud.asset.v1.GcsOutputResult.Builder.class); + com.google.cloud.asset.v1.GcsOutputResult.class, + com.google.cloud.asset.v1.GcsOutputResult.Builder.class); } // Construct using com.google.cloud.asset.v1.GcsOutputResult.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -307,9 +342,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor; } @java.lang.Override @@ -328,7 +363,8 @@ public com.google.cloud.asset.v1.GcsOutputResult build() { @java.lang.Override public com.google.cloud.asset.v1.GcsOutputResult buildPartial() { - com.google.cloud.asset.v1.GcsOutputResult result = new com.google.cloud.asset.v1.GcsOutputResult(this); + com.google.cloud.asset.v1.GcsOutputResult result = + new com.google.cloud.asset.v1.GcsOutputResult(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { uris_ = uris_.getUnmodifiableView(); @@ -343,38 +379,39 @@ public com.google.cloud.asset.v1.GcsOutputResult buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.GcsOutputResult) { - return mergeFrom((com.google.cloud.asset.v1.GcsOutputResult)other); + return mergeFrom((com.google.cloud.asset.v1.GcsOutputResult) other); } else { super.mergeFrom(other); return this; @@ -419,18 +456,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUrisIsMutable(); - uris_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUrisIsMutable(); + uris_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -440,47 +479,58 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList uris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUrisIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { uris_ = new com.google.protobuf.LazyStringArrayList(uris_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; + * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList - getUrisList() { + public com.google.protobuf.ProtocolStringList getUrisList() { return uris_.getUnmodifiableView(); } /** + * + * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; + * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** + * + * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; + * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -488,85 +538,95 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** + * + * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString - getUrisBytes(int index) { + public com.google.protobuf.ByteString getUrisBytes(int index) { return uris_.getByteString(index); } /** + * + * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; + * * @param index The index to set the value at. * @param value The uris to set. * @return This builder for chaining. */ - public Builder setUris( - int index, java.lang.String value) { + public Builder setUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUrisIsMutable(); + throw new NullPointerException(); + } + ensureUrisIsMutable(); uris_.set(index, value); onChanged(); return this; } /** + * + * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; + * * @param value The uris to add. * @return This builder for chaining. */ - public Builder addUris( - java.lang.String value) { + public Builder addUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUrisIsMutable(); + throw new NullPointerException(); + } + ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } /** + * + * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; + * * @param values The uris to add. * @return This builder for chaining. */ - public Builder addAllUris( - java.lang.Iterable values) { + public Builder addAllUris(java.lang.Iterable values) { ensureUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, uris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); onChanged(); return this; } /** + * + * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; + * * @return This builder for chaining. */ public Builder clearUris() { @@ -576,29 +636,31 @@ public Builder clearUris() { return this; } /** + * + * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; + * * @param value The bytes of the uris to add. * @return This builder for chaining. */ - public Builder addUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -608,12 +670,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.GcsOutputResult) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.GcsOutputResult) private static final com.google.cloud.asset.v1.GcsOutputResult DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.GcsOutputResult(); } @@ -622,27 +684,27 @@ public static com.google.cloud.asset.v1.GcsOutputResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsOutputResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsOutputResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,6 +719,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.GcsOutputResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResultOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResultOrBuilder.java similarity index 62% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResultOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResultOrBuilder.java index bff599adbc7f..b5ed3e0d7460 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResultOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsOutputResultOrBuilder.java @@ -1,54 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface GcsOutputResultOrBuilder extends +public interface GcsOutputResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.GcsOutputResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; + * * @return A list containing the uris. */ - java.util.List - getUrisList(); + java.util.List getUrisList(); /** + * + * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; + * * @return The count of uris. */ int getUrisCount(); /** + * + * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; + * * @param index The index of the element to return. * @return The uris at the given index. */ java.lang.String getUris(int index); /** + * + * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - com.google.protobuf.ByteString - getUrisBytes(int index); + com.google.protobuf.ByteString getUrisBytes(int index); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java similarity index 63% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java index cb4922575b11..b5428fcb0f9d 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * Get asset feed request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.GetFeedRequest} */ -public final class GetFeedRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetFeedRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.GetFeedRequest) GetFeedRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetFeedRequest.newBuilder() to construct. private GetFeedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetFeedRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetFeedRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GetFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GetFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.GetFeedRequest.class, com.google.cloud.asset.v1.GetFeedRequest.Builder.class); + com.google.cloud.asset.v1.GetFeedRequest.class, + com.google.cloud.asset.v1.GetFeedRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
        * Required. The name of the Feed and it must be in the format of:
        * projects/project_number/feeds/feed_id
    @@ -58,7 +79,10 @@ protected java.lang.Object newInstance(
        * organizations/organization_number/feeds/feed_id
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -67,14 +91,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
        * Required. The name of the Feed and it must be in the format of:
        * projects/project_number/feeds/feed_id
    @@ -82,17 +107,18 @@ public java.lang.String getName() {
        * organizations/organization_number/feeds/feed_id
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -101,6 +127,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -112,8 +139,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -137,15 +163,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.GetFeedRequest)) { return super.equals(obj); } com.google.cloud.asset.v1.GetFeedRequest other = (com.google.cloud.asset.v1.GetFeedRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -164,130 +189,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.GetFeedRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.GetFeedRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.GetFeedRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.GetFeedRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.GetFeedRequest 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.asset.v1.GetFeedRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.GetFeedRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.GetFeedRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.GetFeedRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.GetFeedRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.GetFeedRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.GetFeedRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.GetFeedRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.GetFeedRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.GetFeedRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Get asset feed request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.GetFeedRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.GetFeedRequest) com.google.cloud.asset.v1.GetFeedRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GetFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GetFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.GetFeedRequest.class, com.google.cloud.asset.v1.GetFeedRequest.Builder.class); + com.google.cloud.asset.v1.GetFeedRequest.class, + com.google.cloud.asset.v1.GetFeedRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.GetFeedRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -297,9 +328,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor; } @java.lang.Override @@ -318,7 +349,8 @@ public com.google.cloud.asset.v1.GetFeedRequest build() { @java.lang.Override public com.google.cloud.asset.v1.GetFeedRequest buildPartial() { - com.google.cloud.asset.v1.GetFeedRequest result = new com.google.cloud.asset.v1.GetFeedRequest(this); + com.google.cloud.asset.v1.GetFeedRequest result = + new com.google.cloud.asset.v1.GetFeedRequest(this); result.name_ = name_; onBuilt(); return result; @@ -328,38 +360,39 @@ public com.google.cloud.asset.v1.GetFeedRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.GetFeedRequest) { - return mergeFrom((com.google.cloud.asset.v1.GetFeedRequest)other); + return mergeFrom((com.google.cloud.asset.v1.GetFeedRequest) other); } else { super.mergeFrom(other); return this; @@ -398,17 +431,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,6 +456,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
          * Required. The name of the Feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -428,14 +465,16 @@ public Builder mergeFrom(
          * organizations/organization_number/feeds/feed_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -444,6 +483,8 @@ public java.lang.String getName() { } } /** + * + * *
          * Required. The name of the Feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -451,16 +492,17 @@ public java.lang.String getName() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -468,6 +510,8 @@ public java.lang.String getName() { } } /** + * + * *
          * Required. The name of the Feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -475,21 +519,25 @@ public java.lang.String getName() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
          * Required. The name of the Feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -497,16 +545,21 @@ public Builder setName(
          * organizations/organization_number/feeds/feed_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
          * Required. The name of the Feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -514,24 +567,26 @@ public Builder clearName() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -541,12 +596,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.GetFeedRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.GetFeedRequest) private static final com.google.cloud.asset.v1.GetFeedRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.GetFeedRequest(); } @@ -555,27 +610,27 @@ public static com.google.cloud.asset.v1.GetFeedRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFeedRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFeedRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +645,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.GetFeedRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequestOrBuilder.java new file mode 100644 index 000000000000..4ed4a558438e --- /dev/null +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface GetFeedRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.GetFeedRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the Feed and it must be in the format of:
    +   * projects/project_number/feeds/feed_id
    +   * folders/folder_number/feeds/feed_id
    +   * organizations/organization_number/feeds/feed_id
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. The name of the Feed and it must be in the format of:
    +   * projects/project_number/feeds/feed_id
    +   * folders/folder_number/feeds/feed_id
    +   * organizations/organization_number/feeds/feed_id
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequest.java similarity index 64% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequest.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequest.java index 7bbd32e628ff..049c25491536 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequest.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * Request to get a saved query.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.GetSavedQueryRequest} */ -public final class GetSavedQueryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetSavedQueryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.GetSavedQueryRequest) GetSavedQueryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSavedQueryRequest.newBuilder() to construct. private GetSavedQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetSavedQueryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSavedQueryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GetSavedQueryRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GetSavedQueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GetSavedQueryRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GetSavedQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.GetSavedQueryRequest.class, com.google.cloud.asset.v1.GetSavedQueryRequest.Builder.class); + com.google.cloud.asset.v1.GetSavedQueryRequest.class, + com.google.cloud.asset.v1.GetSavedQueryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
        * Required. The name of the saved query and it must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -58,7 +79,10 @@ protected java.lang.Object newInstance(
        * * organizations/organization_number/savedQueries/saved_query_id
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -67,14 +91,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
        * Required. The name of the saved query and it must be in the format of:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -82,17 +107,18 @@ public java.lang.String getName() {
        * * organizations/organization_number/savedQueries/saved_query_id
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -101,6 +127,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -112,8 +139,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -137,15 +163,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.GetSavedQueryRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.GetSavedQueryRequest other = (com.google.cloud.asset.v1.GetSavedQueryRequest) obj; + com.google.cloud.asset.v1.GetSavedQueryRequest other = + (com.google.cloud.asset.v1.GetSavedQueryRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -164,130 +190,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.GetSavedQueryRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.GetSavedQueryRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.GetSavedQueryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.GetSavedQueryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.GetSavedQueryRequest 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.asset.v1.GetSavedQueryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.GetSavedQueryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.GetSavedQueryRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.GetSavedQueryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.GetSavedQueryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.GetSavedQueryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.GetSavedQueryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.GetSavedQueryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.GetSavedQueryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.GetSavedQueryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Request to get a saved query.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.GetSavedQueryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.GetSavedQueryRequest) com.google.cloud.asset.v1.GetSavedQueryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GetSavedQueryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GetSavedQueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GetSavedQueryRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GetSavedQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.GetSavedQueryRequest.class, com.google.cloud.asset.v1.GetSavedQueryRequest.Builder.class); + com.google.cloud.asset.v1.GetSavedQueryRequest.class, + com.google.cloud.asset.v1.GetSavedQueryRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.GetSavedQueryRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -297,9 +329,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_GetSavedQueryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_GetSavedQueryRequest_descriptor; } @java.lang.Override @@ -318,7 +350,8 @@ public com.google.cloud.asset.v1.GetSavedQueryRequest build() { @java.lang.Override public com.google.cloud.asset.v1.GetSavedQueryRequest buildPartial() { - com.google.cloud.asset.v1.GetSavedQueryRequest result = new com.google.cloud.asset.v1.GetSavedQueryRequest(this); + com.google.cloud.asset.v1.GetSavedQueryRequest result = + new com.google.cloud.asset.v1.GetSavedQueryRequest(this); result.name_ = name_; onBuilt(); return result; @@ -328,38 +361,39 @@ public com.google.cloud.asset.v1.GetSavedQueryRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.GetSavedQueryRequest) { - return mergeFrom((com.google.cloud.asset.v1.GetSavedQueryRequest)other); + return mergeFrom((com.google.cloud.asset.v1.GetSavedQueryRequest) other); } else { super.mergeFrom(other); return this; @@ -398,17 +432,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,6 +457,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
          * Required. The name of the saved query and it must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -428,14 +466,16 @@ public Builder mergeFrom(
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -444,6 +484,8 @@ public java.lang.String getName() { } } /** + * + * *
          * Required. The name of the saved query and it must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -451,16 +493,17 @@ public java.lang.String getName() {
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -468,6 +511,8 @@ public java.lang.String getName() { } } /** + * + * *
          * Required. The name of the saved query and it must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -475,21 +520,25 @@ public java.lang.String getName() {
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
          * Required. The name of the saved query and it must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -497,16 +546,21 @@ public Builder setName(
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
          * Required. The name of the saved query and it must be in the format of:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -514,24 +568,26 @@ public Builder clearName() {
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -541,12 +597,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.GetSavedQueryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.GetSavedQueryRequest) private static final com.google.cloud.asset.v1.GetSavedQueryRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.GetSavedQueryRequest(); } @@ -555,27 +611,27 @@ public static com.google.cloud.asset.v1.GetSavedQueryRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSavedQueryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSavedQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +646,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.GetSavedQueryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequestOrBuilder.java new file mode 100644 index 000000000000..d22338aace06 --- /dev/null +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface GetSavedQueryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.GetSavedQueryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the saved query and it must be in the format of:
    +   * * projects/project_number/savedQueries/saved_query_id
    +   * * folders/folder_number/savedQueries/saved_query_id
    +   * * organizations/organization_number/savedQueries/saved_query_id
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. The name of the saved query and it must be in the format of:
    +   * * projects/project_number/savedQueries/saved_query_id
    +   * * folders/folder_number/savedQueries/saved_query_id
    +   * * organizations/organization_number/savedQueries/saved_query_id
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfig.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfig.java similarity index 66% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfig.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfig.java index 587801c59312..6999aa4a308a 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfig.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfig.java @@ -1,57 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * Output configuration for export IAM policy analysis destination.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisOutputConfig} */ -public final class IamPolicyAnalysisOutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class IamPolicyAnalysisOutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig) IamPolicyAnalysisOutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IamPolicyAnalysisOutputConfig.newBuilder() to construct. private IamPolicyAnalysisOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IamPolicyAnalysisOutputConfig() { - } + + private IamPolicyAnalysisOutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IamPolicyAnalysisOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.class, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.class, + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder.class); } - public interface GcsDestinationOrBuilder extends + public interface GcsDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * Required. The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -64,10 +85,13 @@ public interface GcsDestinationOrBuilder extends
          * 
    * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
          * Required. The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -80,59 +104,65 @@ public interface GcsDestinationOrBuilder extends
          * 
    * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); } /** + * + * *
        * A Cloud Storage location.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination} */ - public static final class GcsDestination extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) GcsDestinationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsDestination() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.class, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.class, + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** + * + * *
          * Required. The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -145,6 +175,7 @@ protected java.lang.Object newInstance(
          * 
    * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ @java.lang.Override @@ -153,14 +184,15 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
          * Required. The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -173,16 +205,15 @@ public java.lang.String getUri() {
          * 
    * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -191,6 +222,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +234,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -227,15 +258,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination)) { + if (!(obj + instanceof com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination other = (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination other = + (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) obj; - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -255,87 +287,95 @@ public int hashCode() { } public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination 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.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination 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.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination + 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.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -345,39 +385,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * A Cloud Storage location.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.class, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.class, + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder + .class); } - // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -387,19 +431,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination getDefaultInstanceForType() { - return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.getDefaultInstance(); + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination + getDefaultInstanceForType() { + return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination build() { - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination result = buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -408,7 +455,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination bu @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination buildPartial() { - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination result = new com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination(this); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination result = + new com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination(this); result.uri_ = uri_; onBuilt(); return result; @@ -418,46 +466,54 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination bu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) { - return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination)other); + if (other + instanceof com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) { + return mergeFrom( + (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination other) { - if (other == com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination other) { + if (other + == com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination + .getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); @@ -488,17 +544,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - uri_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + uri_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -511,6 +569,8 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** + * + * *
            * Required. The uri of the Cloud Storage object. It's the same uri that is used by
            * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -523,13 +583,13 @@ public Builder mergeFrom(
            * 
    * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -538,6 +598,8 @@ public java.lang.String getUri() { } } /** + * + * *
            * Required. The uri of the Cloud Storage object. It's the same uri that is used by
            * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -550,15 +612,14 @@ public java.lang.String getUri() {
            * 
    * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -566,6 +627,8 @@ public java.lang.String getUri() { } } /** + * + * *
            * Required. The uri of the Cloud Storage object. It's the same uri that is used by
            * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -578,20 +641,22 @@ public java.lang.String getUri() {
            * 
    * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
            * Required. The uri of the Cloud Storage object. It's the same uri that is used by
            * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -604,15 +669,18 @@ public Builder setUri(
            * 
    * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
            * Required. The uri of the Cloud Storage object. It's the same uri that is used by
            * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -625,20 +693,21 @@ public Builder clearUri() {
            * 
    * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -651,41 +720,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) - private static final com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination DEFAULT_INSTANCE; + private static final com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination(); + DEFAULT_INSTANCE = + new com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination(); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination getDefaultInstance() { + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -697,17 +770,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination getDefaultInstanceForType() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface BigQueryDestinationOrBuilder extends + public interface BigQueryDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
          * to which the analysis results should be exported. If this dataset does
    @@ -715,10 +791,13 @@ public interface BigQueryDestinationOrBuilder extends
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The dataset. */ java.lang.String getDataset(); /** + * + * *
          * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
          * to which the analysis results should be exported. If this dataset does
    @@ -726,12 +805,14 @@ public interface BigQueryDestinationOrBuilder extends
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for dataset. */ - com.google.protobuf.ByteString - getDatasetBytes(); + com.google.protobuf.ByteString getDatasetBytes(); /** + * + * *
          * Required. The prefix of the BigQuery tables to which the analysis results will be
          * written. Tables will be created based on this table_prefix if not exist:
    @@ -743,10 +824,13 @@ public interface BigQueryDestinationOrBuilder extends
          * 
    * * string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The tablePrefix. */ java.lang.String getTablePrefix(); /** + * + * *
          * Required. The prefix of the BigQuery tables to which the analysis results will be
          * written. Tables will be created based on this table_prefix if not exist:
    @@ -758,31 +842,44 @@ public interface BigQueryDestinationOrBuilder extends
          * 
    * * string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for tablePrefix. */ - com.google.protobuf.ByteString - getTablePrefixBytes(); + com.google.protobuf.ByteString getTablePrefixBytes(); /** + * + * *
          * The partition key for BigQuery partitioned table.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; + * + * * @return The enum numeric value on the wire for partitionKey. */ int getPartitionKeyValue(); /** + * + * *
          * The partition key for BigQuery partitioned table.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; + * + * * @return The partitionKey. */ - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey getPartitionKey(); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey + getPartitionKey(); /** + * + * *
          * Optional. Specifies the action that occurs if the destination table or partition
          * already exists. The following values are supported:
    @@ -798,10 +895,13 @@ public interface BigQueryDestinationOrBuilder extends
          * 
    * * string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The writeDisposition. */ java.lang.String getWriteDisposition(); /** + * + * *
          * Optional. Specifies the action that occurs if the destination table or partition
          * already exists. The following values are supported:
    @@ -817,27 +917,30 @@ public interface BigQueryDestinationOrBuilder extends
          * 
    * * string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for writeDisposition. */ - com.google.protobuf.ByteString - getWriteDispositionBytes(); + com.google.protobuf.ByteString getWriteDispositionBytes(); } /** + * + * *
        * A BigQuery destination.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination} */ - public static final class BigQueryDestination extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class BigQueryDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) BigQueryDestinationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BigQueryDestination.newBuilder() to construct. private BigQueryDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BigQueryDestination() { dataset_ = ""; tablePrefix_ = ""; @@ -847,30 +950,34 @@ private BigQueryDestination() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BigQueryDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.class, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.class, + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder + .class); } /** + * + * *
          * This enum determines the partition key column for the bigquery tables.
          * Partitioning can improve query performance and reduce query cost by
    @@ -878,11 +985,13 @@ protected java.lang.Object newInstance(
          * https://cloud.google.com/bigquery/docs/partitioned-tables for details.
          * 
    * - * Protobuf enum {@code google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey} + * Protobuf enum {@code + * google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey} */ - public enum PartitionKey - implements com.google.protobuf.ProtocolMessageEnum { + public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
            * Unspecified partition key. Tables won't be partitioned using this
            * option.
    @@ -892,6 +1001,8 @@ public enum PartitionKey
            */
           PARTITION_KEY_UNSPECIFIED(0),
           /**
    +       *
    +       *
            * 
            * The time when the request is received. If specified as partition key,
            * the result table(s) is partitoned by the RequestTime column, an
    @@ -905,6 +1016,8 @@ public enum PartitionKey
           ;
     
           /**
    +       *
    +       *
            * 
            * Unspecified partition key. Tables won't be partitioned using this
            * option.
    @@ -914,6 +1027,8 @@ public enum PartitionKey
            */
           public static final int PARTITION_KEY_UNSPECIFIED_VALUE = 0;
           /**
    +       *
    +       *
            * 
            * The time when the request is received. If specified as partition key,
            * the result table(s) is partitoned by the RequestTime column, an
    @@ -924,7 +1039,6 @@ public enum PartitionKey
            */
           public static final int REQUEST_TIME_VALUE = 1;
     
    -
           public final int getNumber() {
             if (this == UNRECOGNIZED) {
               throw new java.lang.IllegalArgumentException(
    @@ -949,48 +1063,50 @@ public static PartitionKey valueOf(int value) {
            */
           public static PartitionKey forNumber(int value) {
             switch (value) {
    -          case 0: return PARTITION_KEY_UNSPECIFIED;
    -          case 1: return REQUEST_TIME;
    -          default: return null;
    +          case 0:
    +            return PARTITION_KEY_UNSPECIFIED;
    +          case 1:
    +            return REQUEST_TIME;
    +          default:
    +            return null;
             }
           }
     
    -      public static com.google.protobuf.Internal.EnumLiteMap
    -          internalGetValueMap() {
    +      public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
             return internalValueMap;
           }
    -      private static final com.google.protobuf.Internal.EnumLiteMap<
    -          PartitionKey> internalValueMap =
    -            new com.google.protobuf.Internal.EnumLiteMap() {
    -              public PartitionKey findValueByNumber(int number) {
    -                return PartitionKey.forNumber(number);
    -              }
    -            };
     
    -      public final com.google.protobuf.Descriptors.EnumValueDescriptor
    -          getValueDescriptor() {
    +      private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
    +          new com.google.protobuf.Internal.EnumLiteMap() {
    +            public PartitionKey findValueByNumber(int number) {
    +              return PartitionKey.forNumber(number);
    +            }
    +          };
    +
    +      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
             if (this == UNRECOGNIZED) {
               throw new java.lang.IllegalStateException(
                   "Can't get the descriptor of an unrecognized enum value.");
             }
             return getDescriptor().getValues().get(ordinal());
           }
    -      public final com.google.protobuf.Descriptors.EnumDescriptor
    -          getDescriptorForType() {
    +
    +      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
             return getDescriptor();
           }
    -      public static final com.google.protobuf.Descriptors.EnumDescriptor
    -          getDescriptor() {
    -        return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.getDescriptor().getEnumTypes().get(0);
    +
    +      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
    +        return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination
    +            .getDescriptor()
    +            .getEnumTypes()
    +            .get(0);
           }
     
           private static final PartitionKey[] VALUES = values();
     
    -      public static PartitionKey valueOf(
    -          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
    +      public static PartitionKey valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
             if (desc.getType() != getDescriptor()) {
    -          throw new java.lang.IllegalArgumentException(
    -            "EnumValueDescriptor is not for this type.");
    +          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
             }
             if (desc.getIndex() == -1) {
               return UNRECOGNIZED;
    @@ -1010,6 +1126,8 @@ private PartitionKey(int value) {
         public static final int DATASET_FIELD_NUMBER = 1;
         private volatile java.lang.Object dataset_;
         /**
    +     *
    +     *
          * 
          * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
          * to which the analysis results should be exported. If this dataset does
    @@ -1017,6 +1135,7 @@ private PartitionKey(int value) {
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The dataset. */ @java.lang.Override @@ -1025,14 +1144,15 @@ public java.lang.String getDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; } } /** + * + * *
          * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
          * to which the analysis results should be exported. If this dataset does
    @@ -1040,16 +1160,15 @@ public java.lang.String getDataset() {
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for dataset. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatasetBytes() { + public com.google.protobuf.ByteString getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataset_ = b; return b; } else { @@ -1060,6 +1179,8 @@ public java.lang.String getDataset() { public static final int TABLE_PREFIX_FIELD_NUMBER = 2; private volatile java.lang.Object tablePrefix_; /** + * + * *
          * Required. The prefix of the BigQuery tables to which the analysis results will be
          * written. Tables will be created based on this table_prefix if not exist:
    @@ -1071,6 +1192,7 @@ public java.lang.String getDataset() {
          * 
    * * string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The tablePrefix. */ @java.lang.Override @@ -1079,14 +1201,15 @@ public java.lang.String getTablePrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tablePrefix_ = s; return s; } } /** + * + * *
          * Required. The prefix of the BigQuery tables to which the analysis results will be
          * written. Tables will be created based on this table_prefix if not exist:
    @@ -1098,16 +1221,15 @@ public java.lang.String getTablePrefix() {
          * 
    * * string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for tablePrefix. */ @java.lang.Override - public com.google.protobuf.ByteString - getTablePrefixBytes() { + public com.google.protobuf.ByteString getTablePrefixBytes() { java.lang.Object ref = tablePrefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tablePrefix_ = b; return b; } else { @@ -1118,33 +1240,54 @@ public java.lang.String getTablePrefix() { public static final int PARTITION_KEY_FIELD_NUMBER = 3; private int partitionKey_; /** + * + * *
          * The partition key for BigQuery partitioned table.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; + * + * * @return The enum numeric value on the wire for partitionKey. */ - @java.lang.Override public int getPartitionKeyValue() { + @java.lang.Override + public int getPartitionKeyValue() { return partitionKey_; } /** + * + * *
          * The partition key for BigQuery partitioned table.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; + * + * * @return The partitionKey. */ - @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey getPartitionKey() { + @java.lang.Override + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey + getPartitionKey() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey result = com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey.valueOf(partitionKey_); - return result == null ? com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey.UNRECOGNIZED : result; + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey + result = + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + .PartitionKey.valueOf(partitionKey_); + return result == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey + .UNRECOGNIZED + : result; } public static final int WRITE_DISPOSITION_FIELD_NUMBER = 4; private volatile java.lang.Object writeDisposition_; /** + * + * *
          * Optional. Specifies the action that occurs if the destination table or partition
          * already exists. The following values are supported:
    @@ -1160,6 +1303,7 @@ public java.lang.String getTablePrefix() {
          * 
    * * string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The writeDisposition. */ @java.lang.Override @@ -1168,14 +1312,15 @@ public java.lang.String getWriteDisposition() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeDisposition_ = s; return s; } } /** + * + * *
          * Optional. Specifies the action that occurs if the destination table or partition
          * already exists. The following values are supported:
    @@ -1191,16 +1336,15 @@ public java.lang.String getWriteDisposition() {
          * 
    * * string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for writeDisposition. */ @java.lang.Override - public com.google.protobuf.ByteString - getWriteDispositionBytes() { + public com.google.protobuf.ByteString getWriteDispositionBytes() { java.lang.Object ref = writeDisposition_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); writeDisposition_ = b; return b; } else { @@ -1209,6 +1353,7 @@ public java.lang.String getWriteDisposition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1220,15 +1365,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tablePrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tablePrefix_); } - if (partitionKey_ != com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey.PARTITION_KEY_UNSPECIFIED.getNumber()) { + if (partitionKey_ + != com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + .PartitionKey.PARTITION_KEY_UNSPECIFIED + .getNumber()) { output.writeEnum(3, partitionKey_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeDisposition_)) { @@ -1249,9 +1396,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tablePrefix_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tablePrefix_); } - if (partitionKey_ != com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey.PARTITION_KEY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, partitionKey_); + if (partitionKey_ + != com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + .PartitionKey.PARTITION_KEY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, partitionKey_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeDisposition_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, writeDisposition_); @@ -1264,20 +1413,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination)) { + if (!(obj + instanceof com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination other = (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination other = + (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) obj; - if (!getDataset() - .equals(other.getDataset())) return false; - if (!getTablePrefix() - .equals(other.getTablePrefix())) return false; + if (!getDataset().equals(other.getDataset())) return false; + if (!getTablePrefix().equals(other.getTablePrefix())) return false; if (partitionKey_ != other.partitionKey_) return false; - if (!getWriteDisposition() - .equals(other.getWriteDisposition())) return false; + if (!getWriteDisposition().equals(other.getWriteDisposition())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1302,88 +1450,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + 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.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + 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.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination 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.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + 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.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination 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.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + 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.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1393,39 +1554,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * A BigQuery destination.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.class, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.class, + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder + .class); } - // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1441,19 +1606,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination getDefaultInstanceForType() { - return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.getDefaultInstance(); + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + getDefaultInstanceForType() { + return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination build() { - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination result = buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1461,8 +1629,10 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinati } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination buildPartial() { - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination result = new com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination(this); + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + buildPartial() { + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination result = + new com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination(this); result.dataset_ = dataset_; result.tablePrefix_ = tablePrefix_; result.partitionKey_ = partitionKey_; @@ -1475,46 +1645,55 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinati public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) { - return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination)other); + if (other + instanceof + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) { + return mergeFrom( + (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination other) { - if (other == com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination other) { + if (other + == com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + .getDefaultInstance()) return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; onChanged(); @@ -1556,32 +1735,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - dataset_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - tablePrefix_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - partitionKey_ = input.readEnum(); - - break; - } // case 24 - case 34: { - writeDisposition_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + dataset_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + tablePrefix_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + partitionKey_ = input.readEnum(); + + break; + } // case 24 + case 34: + { + writeDisposition_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1594,6 +1778,8 @@ public Builder mergeFrom( private java.lang.Object dataset_ = ""; /** + * + * *
            * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
            * to which the analysis results should be exported. If this dataset does
    @@ -1601,13 +1787,13 @@ public Builder mergeFrom(
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The dataset. */ public java.lang.String getDataset() { java.lang.Object ref = dataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; @@ -1616,6 +1802,8 @@ public java.lang.String getDataset() { } } /** + * + * *
            * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
            * to which the analysis results should be exported. If this dataset does
    @@ -1623,15 +1811,14 @@ public java.lang.String getDataset() {
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for dataset. */ - public com.google.protobuf.ByteString - getDatasetBytes() { + public com.google.protobuf.ByteString getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataset_ = b; return b; } else { @@ -1639,6 +1826,8 @@ public java.lang.String getDataset() { } } /** + * + * *
            * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
            * to which the analysis results should be exported. If this dataset does
    @@ -1646,20 +1835,22 @@ public java.lang.String getDataset() {
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The dataset to set. * @return This builder for chaining. */ - public Builder setDataset( - java.lang.String value) { + public Builder setDataset(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataset_ = value; onChanged(); return this; } /** + * + * *
            * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
            * to which the analysis results should be exported. If this dataset does
    @@ -1667,15 +1858,18 @@ public Builder setDataset(
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDataset() { - + dataset_ = getDefaultInstance().getDataset(); onChanged(); return this; } /** + * + * *
            * Required. The BigQuery dataset in format "projects/projectId/datasets/datasetId",
            * to which the analysis results should be exported. If this dataset does
    @@ -1683,16 +1877,16 @@ public Builder clearDataset() {
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for dataset to set. * @return This builder for chaining. */ - public Builder setDatasetBytes( - com.google.protobuf.ByteString value) { + public Builder setDatasetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; onChanged(); return this; @@ -1700,6 +1894,8 @@ public Builder setDatasetBytes( private java.lang.Object tablePrefix_ = ""; /** + * + * *
            * Required. The prefix of the BigQuery tables to which the analysis results will be
            * written. Tables will be created based on this table_prefix if not exist:
    @@ -1711,13 +1907,13 @@ public Builder setDatasetBytes(
            * 
    * * string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The tablePrefix. */ public java.lang.String getTablePrefix() { java.lang.Object ref = tablePrefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tablePrefix_ = s; return s; @@ -1726,6 +1922,8 @@ public java.lang.String getTablePrefix() { } } /** + * + * *
            * Required. The prefix of the BigQuery tables to which the analysis results will be
            * written. Tables will be created based on this table_prefix if not exist:
    @@ -1737,15 +1935,14 @@ public java.lang.String getTablePrefix() {
            * 
    * * string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for tablePrefix. */ - public com.google.protobuf.ByteString - getTablePrefixBytes() { + public com.google.protobuf.ByteString getTablePrefixBytes() { java.lang.Object ref = tablePrefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tablePrefix_ = b; return b; } else { @@ -1753,6 +1950,8 @@ public java.lang.String getTablePrefix() { } } /** + * + * *
            * Required. The prefix of the BigQuery tables to which the analysis results will be
            * written. Tables will be created based on this table_prefix if not exist:
    @@ -1764,20 +1963,22 @@ public java.lang.String getTablePrefix() {
            * 
    * * string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The tablePrefix to set. * @return This builder for chaining. */ - public Builder setTablePrefix( - java.lang.String value) { + public Builder setTablePrefix(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + tablePrefix_ = value; onChanged(); return this; } /** + * + * *
            * Required. The prefix of the BigQuery tables to which the analysis results will be
            * written. Tables will be created based on this table_prefix if not exist:
    @@ -1789,15 +1990,18 @@ public Builder setTablePrefix(
            * 
    * * string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTablePrefix() { - + tablePrefix_ = getDefaultInstance().getTablePrefix(); onChanged(); return this; } /** + * + * *
            * Required. The prefix of the BigQuery tables to which the analysis results will be
            * written. Tables will be created based on this table_prefix if not exist:
    @@ -1809,16 +2013,16 @@ public Builder clearTablePrefix() {
            * 
    * * string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for tablePrefix to set. * @return This builder for chaining. */ - public Builder setTablePrefixBytes( - com.google.protobuf.ByteString value) { + public Builder setTablePrefixBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tablePrefix_ = value; onChanged(); return this; @@ -1826,73 +2030,109 @@ public Builder setTablePrefixBytes( private int partitionKey_ = 0; /** + * + * *
            * The partition key for BigQuery partitioned table.
            * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; + * + * * @return The enum numeric value on the wire for partitionKey. */ - @java.lang.Override public int getPartitionKeyValue() { + @java.lang.Override + public int getPartitionKeyValue() { return partitionKey_; } /** + * + * *
            * The partition key for BigQuery partitioned table.
            * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; + * + * * @param value The enum numeric value on the wire for partitionKey to set. * @return This builder for chaining. */ public Builder setPartitionKeyValue(int value) { - + partitionKey_ = value; onChanged(); return this; } /** + * + * *
            * The partition key for BigQuery partitioned table.
            * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; + * + * * @return The partitionKey. */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey getPartitionKey() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + .PartitionKey + getPartitionKey() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey result = com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey.valueOf(partitionKey_); - return result == null ? com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey.UNRECOGNIZED : result; + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey + result = + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + .PartitionKey.valueOf(partitionKey_); + return result == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + .PartitionKey.UNRECOGNIZED + : result; } /** + * + * *
            * The partition key for BigQuery partitioned table.
            * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; + * + * * @param value The partitionKey to set. * @return This builder for chaining. */ - public Builder setPartitionKey(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey value) { + public Builder setPartitionKey( + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey + value) { if (value == null) { throw new NullPointerException(); } - + partitionKey_ = value.getNumber(); onChanged(); return this; } /** + * + * *
            * The partition key for BigQuery partitioned table.
            * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; + * + * * @return This builder for chaining. */ public Builder clearPartitionKey() { - + partitionKey_ = 0; onChanged(); return this; @@ -1900,6 +2140,8 @@ public Builder clearPartitionKey() { private java.lang.Object writeDisposition_ = ""; /** + * + * *
            * Optional. Specifies the action that occurs if the destination table or partition
            * already exists. The following values are supported:
    @@ -1915,13 +2157,13 @@ public Builder clearPartitionKey() {
            * 
    * * string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The writeDisposition. */ public java.lang.String getWriteDisposition() { java.lang.Object ref = writeDisposition_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeDisposition_ = s; return s; @@ -1930,6 +2172,8 @@ public java.lang.String getWriteDisposition() { } } /** + * + * *
            * Optional. Specifies the action that occurs if the destination table or partition
            * already exists. The following values are supported:
    @@ -1945,15 +2189,14 @@ public java.lang.String getWriteDisposition() {
            * 
    * * string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for writeDisposition. */ - public com.google.protobuf.ByteString - getWriteDispositionBytes() { + public com.google.protobuf.ByteString getWriteDispositionBytes() { java.lang.Object ref = writeDisposition_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); writeDisposition_ = b; return b; } else { @@ -1961,6 +2204,8 @@ public java.lang.String getWriteDisposition() { } } /** + * + * *
            * Optional. Specifies the action that occurs if the destination table or partition
            * already exists. The following values are supported:
    @@ -1976,20 +2221,22 @@ public java.lang.String getWriteDisposition() {
            * 
    * * string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The writeDisposition to set. * @return This builder for chaining. */ - public Builder setWriteDisposition( - java.lang.String value) { + public Builder setWriteDisposition(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + writeDisposition_ = value; onChanged(); return this; } /** + * + * *
            * Optional. Specifies the action that occurs if the destination table or partition
            * already exists. The following values are supported:
    @@ -2005,15 +2252,18 @@ public Builder setWriteDisposition(
            * 
    * * string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearWriteDisposition() { - + writeDisposition_ = getDefaultInstance().getWriteDisposition(); onChanged(); return this; } /** + * + * *
            * Optional. Specifies the action that occurs if the destination table or partition
            * already exists. The following values are supported:
    @@ -2029,20 +2279,21 @@ public Builder clearWriteDisposition() {
            * 
    * * string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for writeDisposition to set. * @return This builder for chaining. */ - public Builder setWriteDispositionBytes( - com.google.protobuf.ByteString value) { + public Builder setWriteDispositionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + writeDisposition_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2055,41 +2306,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) - private static final com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination DEFAULT_INSTANCE; + private static final com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination(); + DEFAULT_INSTANCE = + new com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination(); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination getDefaultInstance() { + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2101,21 +2356,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination getDefaultInstanceForType() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int destinationCase_ = 0; private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), BIGQUERY_DESTINATION(2), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -2131,30 +2389,37 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return GCS_DESTINATION; - case 2: return BIGQUERY_DESTINATION; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return GCS_DESTINATION; + case 2: + return BIGQUERY_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** + * + * *
        * Destination on Cloud Storage.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -2162,42 +2427,58 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
        * Destination on Cloud Storage.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * + * * @return The gcsDestination. */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination getGcsDestination() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination + getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_; + return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_; } - return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.getDefaultInstance(); + return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination + .getDefaultInstance(); } /** + * + * *
        * Destination on Cloud Storage.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder + getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_; + return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_; } - return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.getDefaultInstance(); + return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination + .getDefaultInstance(); } public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 2; /** + * + * *
        * Destination on BigQuery.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * + * * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -2205,36 +2486,52 @@ public boolean hasBigqueryDestination() { return destinationCase_ == 2; } /** + * + * *
        * Destination on BigQuery.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * + * * @return The bigqueryDestination. */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination getBigqueryDestination() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + getBigqueryDestination() { if (destinationCase_ == 2) { - return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) destination_; + return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) + destination_; } - return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.getDefaultInstance(); + return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + .getDefaultInstance(); } /** + * + * *
        * Destination on BigQuery.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { if (destinationCase_ == 2) { - return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) destination_; + return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) + destination_; } - return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.getDefaultInstance(); + return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2246,13 +2543,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (destinationCase_ == 1) { - output.writeMessage(1, (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_); + output.writeMessage( + 1, (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_); } if (destinationCase_ == 2) { - output.writeMessage(2, (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) destination_); + output.writeMessage( + 2, + (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) + destination_); } getUnknownFields().writeTo(output); } @@ -2264,12 +2564,18 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) + destination_); } if (destinationCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) destination_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) + destination_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2279,22 +2585,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig other = (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig other = + (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig) obj; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination() - .equals(other.getGcsDestination())) return false; + if (!getGcsDestination().equals(other.getGcsDestination())) return false; break; case 2: - if (!getBigqueryDestination() - .equals(other.getBigqueryDestination())) return false; + if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false; break; case 0: default: @@ -2328,129 +2633,136 @@ public int hashCode() { } public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig 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.asset.v1.IamPolicyAnalysisOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Output configuration for export IAM policy analysis destination.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisOutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig) com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.class, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.class, + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.Builder.class); } // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2466,9 +2778,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor; } @java.lang.Override @@ -2487,7 +2799,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig build() { @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig buildPartial() { - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig result = new com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig(this); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig result = + new com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -2511,38 +2824,39 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicyAnalysisOutputConfig) { - return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig)other); + return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig) other); } else { super.mergeFrom(other); return this; @@ -2550,19 +2864,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig other) { - if (other == com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.getDefaultInstance()) + return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case BIGQUERY_DESTINATION: { - mergeBigqueryDestination(other.getBigqueryDestination()); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case BIGQUERY_DESTINATION: + { + mergeBigqueryDestination(other.getBigqueryDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2590,26 +2908,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsDestinationFieldBuilder().getBuilder(), - extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getBigqueryDestinationFieldBuilder().getBuilder(), - extensionRegistry); - destinationCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getBigqueryDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2619,12 +2937,12 @@ public Builder mergeFrom( } // finally return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -2634,15 +2952,22 @@ public Builder clearDestination() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination, + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
          * Destination on Cloud Storage.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -2650,35 +2975,49 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
          * Destination on Cloud Storage.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * + * * @return The gcsDestination. */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination getGcsDestination() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination + getGcsDestination() { if (gcsDestinationBuilder_ == null) { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_; + return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) + destination_; } - return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.getDefaultInstance(); + return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination + .getDefaultInstance(); } else { if (destinationCase_ == 1) { return gcsDestinationBuilder_.getMessage(); } - return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.getDefaultInstance(); + return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination + .getDefaultInstance(); } } /** + * + * *
          * Destination on Cloud Storage.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * */ - public Builder setGcsDestination(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination value) { + public Builder setGcsDestination( + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination value) { if (gcsDestinationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2692,14 +3031,19 @@ public Builder setGcsDestination(com.google.cloud.asset.v1.IamPolicyAnalysisOutp return this; } /** + * + * *
          * Destination on Cloud Storage.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * */ public Builder setGcsDestination( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder builderForValue) { + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder + builderForValue) { if (gcsDestinationBuilder_ == null) { destination_ = builderForValue.build(); onChanged(); @@ -2710,18 +3054,29 @@ public Builder setGcsDestination( return this; } /** + * + * *
          * Destination on Cloud Storage.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * */ - public Builder mergeGcsDestination(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination value) { + public Builder mergeGcsDestination( + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 && - destination_ != com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.getDefaultInstance()) { - destination_ = com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.newBuilder((com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_) - .mergeFrom(value).buildPartial(); + if (destinationCase_ == 1 + && destination_ + != com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination + .getDefaultInstance()) { + destination_ = + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.newBuilder( + (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) + destination_) + .mergeFrom(value) + .buildPartial(); } else { destination_ = value; } @@ -2737,11 +3092,15 @@ public Builder mergeGcsDestination(com.google.cloud.asset.v1.IamPolicyAnalysisOu return this; } /** + * + * *
          * Destination on Cloud Storage.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * */ public Builder clearGcsDestination() { if (gcsDestinationBuilder_ == null) { @@ -2760,67 +3119,100 @@ public Builder clearGcsDestination() { return this; } /** + * + * *
          * Destination on Cloud Storage.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder getGcsDestinationBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder + getGcsDestinationBuilder() { return getGcsDestinationFieldBuilder().getBuilder(); } /** + * + * *
          * Destination on Cloud Storage.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder + getGcsDestinationOrBuilder() { if ((destinationCase_ == 1) && (gcsDestinationBuilder_ != null)) { return gcsDestinationBuilder_.getMessageOrBuilder(); } else { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_; + return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) + destination_; } - return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.getDefaultInstance(); + return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination + .getDefaultInstance(); } } /** + * + * *
          * Destination on Cloud Storage.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination, + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { - destination_ = com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.getDefaultInstance(); + destination_ = + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination + .getDefaultInstance(); } - gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder>( - (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_, + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination, + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder>( + (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) + destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 1; - onChanged();; + onChanged(); + ; return gcsDestinationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder> bigqueryDestinationBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination, + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder> + bigqueryDestinationBuilder_; /** + * + * *
          * Destination on BigQuery.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * + * * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -2828,35 +3220,49 @@ public boolean hasBigqueryDestination() { return destinationCase_ == 2; } /** + * + * *
          * Destination on BigQuery.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * + * * @return The bigqueryDestination. */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination getBigqueryDestination() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + getBigqueryDestination() { if (bigqueryDestinationBuilder_ == null) { if (destinationCase_ == 2) { - return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) destination_; + return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) + destination_; } - return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.getDefaultInstance(); + return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + .getDefaultInstance(); } else { if (destinationCase_ == 2) { return bigqueryDestinationBuilder_.getMessage(); } - return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.getDefaultInstance(); + return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + .getDefaultInstance(); } } /** + * + * *
          * Destination on BigQuery.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * */ - public Builder setBigqueryDestination(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination value) { + public Builder setBigqueryDestination( + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination value) { if (bigqueryDestinationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2870,14 +3276,19 @@ public Builder setBigqueryDestination(com.google.cloud.asset.v1.IamPolicyAnalysi return this; } /** + * + * *
          * Destination on BigQuery.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * */ public Builder setBigqueryDestination( - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder builderForValue) { + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder + builderForValue) { if (bigqueryDestinationBuilder_ == null) { destination_ = builderForValue.build(); onChanged(); @@ -2888,18 +3299,30 @@ public Builder setBigqueryDestination( return this; } /** + * + * *
          * Destination on BigQuery.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * */ - public Builder mergeBigqueryDestination(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination value) { + public Builder mergeBigqueryDestination( + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination value) { if (bigqueryDestinationBuilder_ == null) { - if (destinationCase_ == 2 && - destination_ != com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.getDefaultInstance()) { - destination_ = com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.newBuilder((com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) destination_) - .mergeFrom(value).buildPartial(); + if (destinationCase_ == 2 + && destination_ + != com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + .getDefaultInstance()) { + destination_ = + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + .newBuilder( + (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) + destination_) + .mergeFrom(value) + .buildPartial(); } else { destination_ = value; } @@ -2915,11 +3338,15 @@ public Builder mergeBigqueryDestination(com.google.cloud.asset.v1.IamPolicyAnaly return this; } /** + * + * *
          * Destination on BigQuery.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * */ public Builder clearBigqueryDestination() { if (bigqueryDestinationBuilder_ == null) { @@ -2938,61 +3365,87 @@ public Builder clearBigqueryDestination() { return this; } /** + * + * *
          * Destination on BigQuery.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder getBigqueryDestinationBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder + getBigqueryDestinationBuilder() { return getBigqueryDestinationFieldBuilder().getBuilder(); } /** + * + * *
          * Destination on BigQuery.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { if ((destinationCase_ == 2) && (bigqueryDestinationBuilder_ != null)) { return bigqueryDestinationBuilder_.getMessageOrBuilder(); } else { if (destinationCase_ == 2) { - return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) destination_; + return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) + destination_; } - return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.getDefaultInstance(); + return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + .getDefaultInstance(); } } /** + * + * *
          * Destination on BigQuery.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination, + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder> getBigqueryDestinationFieldBuilder() { if (bigqueryDestinationBuilder_ == null) { if (!(destinationCase_ == 2)) { - destination_ = com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.getDefaultInstance(); + destination_ = + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + .getDefaultInstance(); } - bigqueryDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder>( - (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) destination_, + bigqueryDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination, + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig + .BigQueryDestinationOrBuilder>( + (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) + destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 2; - onChanged();; + onChanged(); + ; return bigqueryDestinationBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3002,12 +3455,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig) private static final com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig(); } @@ -3016,27 +3469,27 @@ public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IamPolicyAnalysisOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IamPolicyAnalysisOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3051,6 +3504,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfigOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfigOrBuilder.java similarity index 50% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfigOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfigOrBuilder.java index 044214c54096..0e02268b9e46 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfigOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfigOrBuilder.java @@ -1,65 +1,110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface IamPolicyAnalysisOutputConfigOrBuilder extends +public interface IamPolicyAnalysisOutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Destination on Cloud Storage.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
        * Destination on Cloud Storage.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * + * * @return The gcsDestination. */ com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination getGcsDestination(); /** + * + * *
        * Destination on Cloud Storage.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; + * */ - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder + getGcsDestinationOrBuilder(); /** + * + * *
        * Destination on BigQuery.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * + * * @return Whether the bigqueryDestination field is set. */ boolean hasBigqueryDestination(); /** + * + * *
        * Destination on BigQuery.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * + * * @return The bigqueryDestination. */ - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination getBigqueryDestination(); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination + getBigqueryDestination(); /** + * + * *
        * Destination on BigQuery.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + * */ - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder(); + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder(); - public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.DestinationCase getDestinationCase(); + public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.DestinationCase + getDestinationCase(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQuery.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQuery.java similarity index 71% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQuery.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQuery.java index 2a4e801bd9fc..571b1c14833f 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQuery.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQuery.java @@ -1,58 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * IAM policy analysis query message.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisQuery} */ -public final class IamPolicyAnalysisQuery extends - com.google.protobuf.GeneratedMessageV3 implements +public final class IamPolicyAnalysisQuery extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisQuery) IamPolicyAnalysisQueryOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IamPolicyAnalysisQuery.newBuilder() to construct. private IamPolicyAnalysisQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private IamPolicyAnalysisQuery() { scope_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IamPolicyAnalysisQuery(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.class, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.class, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder.class); } - public interface ResourceSelectorOrBuilder extends + public interface ResourceSelectorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * Required. The [full resource name]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -61,10 +83,13 @@ public interface ResourceSelectorOrBuilder extends
          * 
    * * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The fullResourceName. */ java.lang.String getFullResourceName(); /** + * + * *
          * Required. The [full resource name]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -73,12 +98,14 @@ public interface ResourceSelectorOrBuilder extends
          * 
    * * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for fullResourceName. */ - com.google.protobuf.ByteString - getFullResourceNameBytes(); + com.google.protobuf.ByteString getFullResourceNameBytes(); } /** + * + * *
        * Specifies the resource to analyze for access policies, which may be set
        * directly on the resource, or on ancestors such as organizations, folders or
    @@ -87,47 +114,51 @@ public interface ResourceSelectorOrBuilder extends
        *
        * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector}
        */
    -  public static final class ResourceSelector extends
    -      com.google.protobuf.GeneratedMessageV3 implements
    +  public static final class ResourceSelector extends com.google.protobuf.GeneratedMessageV3
    +      implements
           // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector)
           ResourceSelectorOrBuilder {
    -  private static final long serialVersionUID = 0L;
    +    private static final long serialVersionUID = 0L;
         // Use ResourceSelector.newBuilder() to construct.
         private ResourceSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
    +
         private ResourceSelector() {
           fullResourceName_ = "";
         }
     
         @java.lang.Override
         @SuppressWarnings({"unused"})
    -    protected java.lang.Object newInstance(
    -        UnusedPrivateParameter unused) {
    +    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
           return new ResourceSelector();
         }
     
         @java.lang.Override
    -    public final com.google.protobuf.UnknownFieldSet
    -    getUnknownFields() {
    +    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
           return this.unknownFields;
         }
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_descriptor;
    +
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetServiceProto
    +          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetServiceProto
    +          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.class, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder.class);
    +              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.class,
    +              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder.class);
         }
     
         public static final int FULL_RESOURCE_NAME_FIELD_NUMBER = 1;
         private volatile java.lang.Object fullResourceName_;
         /**
    +     *
    +     *
          * 
          * Required. The [full resource name]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -136,6 +167,7 @@ protected java.lang.Object newInstance(
          * 
    * * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The fullResourceName. */ @java.lang.Override @@ -144,14 +176,15 @@ public java.lang.String getFullResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fullResourceName_ = s; return s; } } /** + * + * *
          * Required. The [full resource name]
          * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -160,16 +193,15 @@ public java.lang.String getFullResourceName() {
          * 
    * * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for fullResourceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getFullResourceNameBytes() { + public com.google.protobuf.ByteString getFullResourceNameBytes() { java.lang.Object ref = fullResourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fullResourceName_ = b; return b; } else { @@ -178,6 +210,7 @@ public java.lang.String getFullResourceName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,8 +222,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fullResourceName_); } @@ -214,15 +246,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector other = (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector other = + (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector) obj; - if (!getFullResourceName() - .equals(other.getFullResourceName())) return false; + if (!getFullResourceName().equals(other.getFullResourceName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -242,87 +274,95 @@ public int hashCode() { } public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector 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.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector 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.asset.v1.IamPolicyAnalysisQuery.ResourceSelector + 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.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -332,6 +372,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * Specifies the resource to analyze for access policies, which may be set
          * directly on the resource, or on ancestors such as organizations, folders or
    @@ -340,33 +382,34 @@ protected Builder newBuilderForType(
          *
          * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector}
          */
    -    public static final class Builder extends
    -        com.google.protobuf.GeneratedMessageV3.Builder implements
    +    public static final class Builder
    +        extends com.google.protobuf.GeneratedMessageV3.Builder
    +        implements
             // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector)
             com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder {
    -      public static final com.google.protobuf.Descriptors.Descriptor
    -          getDescriptor() {
    -        return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_descriptor;
    +      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +        return com.google.cloud.asset.v1.AssetServiceProto
    +            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_descriptor;
           }
     
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
    -        return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_fieldAccessorTable
    +        return com.google.cloud.asset.v1.AssetServiceProto
    +            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
    -                com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.class, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder.class);
    +                com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.class,
    +                com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder.class);
           }
     
    -      // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.newBuilder()
    -      private Builder() {
    +      // Construct using
    +      // com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.newBuilder()
    +      private Builder() {}
     
    -      }
    -
    -      private Builder(
    -          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
    -
           }
    +
           @java.lang.Override
           public Builder clear() {
             super.clear();
    @@ -376,14 +419,16 @@ public Builder clear() {
           }
     
           @java.lang.Override
    -      public com.google.protobuf.Descriptors.Descriptor
    -          getDescriptorForType() {
    -        return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_descriptor;
    +      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +        return com.google.cloud.asset.v1.AssetServiceProto
    +            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_descriptor;
           }
     
           @java.lang.Override
    -      public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector getDefaultInstanceForType() {
    -        return com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.getDefaultInstance();
    +      public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector
    +          getDefaultInstanceForType() {
    +        return com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector
    +            .getDefaultInstance();
           }
     
           @java.lang.Override
    @@ -397,7 +442,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector build()
     
           @java.lang.Override
           public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector buildPartial() {
    -        com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector result = new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector(this);
    +        com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector result =
    +            new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector(this);
             result.fullResourceName_ = fullResourceName_;
             onBuilt();
             return result;
    @@ -407,46 +453,53 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector buildPa
           public Builder clone() {
             return super.clone();
           }
    +
           @java.lang.Override
           public Builder setField(
    -          com.google.protobuf.Descriptors.FieldDescriptor field,
    -          java.lang.Object value) {
    +          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) {
    +      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) {
    +      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) {
    +          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) {
    +          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.asset.v1.IamPolicyAnalysisQuery.ResourceSelector) {
    -          return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector)other);
    +          return mergeFrom(
    +              (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector) other);
             } else {
               super.mergeFrom(other);
               return this;
             }
           }
     
    -      public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector other) {
    -        if (other == com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.getDefaultInstance()) return this;
    +      public Builder mergeFrom(
    +          com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector other) {
    +        if (other
    +            == com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector
    +                .getDefaultInstance()) return this;
             if (!other.getFullResourceName().isEmpty()) {
               fullResourceName_ = other.fullResourceName_;
               onChanged();
    @@ -477,17 +530,19 @@ public Builder mergeFrom(
                   case 0:
                     done = true;
                     break;
    -              case 10: {
    -                fullResourceName_ = input.readStringRequireUtf8();
    -
    -                break;
    -              } // case 10
    -              default: {
    -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                  done = true; // was an endgroup tag
    -                }
    -                break;
    -              } // default:
    +              case 10:
    +                {
    +                  fullResourceName_ = input.readStringRequireUtf8();
    +
    +                  break;
    +                } // case 10
    +              default:
    +                {
    +                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                    done = true; // was an endgroup tag
    +                  }
    +                  break;
    +                } // default:
                 } // switch (tag)
               } // while (!done)
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -500,6 +555,8 @@ public Builder mergeFrom(
     
           private java.lang.Object fullResourceName_ = "";
           /**
    +       *
    +       *
            * 
            * Required. The [full resource name]
            * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -508,13 +565,13 @@ public Builder mergeFrom(
            * 
    * * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The fullResourceName. */ public java.lang.String getFullResourceName() { java.lang.Object ref = fullResourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fullResourceName_ = s; return s; @@ -523,6 +580,8 @@ public java.lang.String getFullResourceName() { } } /** + * + * *
            * Required. The [full resource name]
            * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -531,15 +590,14 @@ public java.lang.String getFullResourceName() {
            * 
    * * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for fullResourceName. */ - public com.google.protobuf.ByteString - getFullResourceNameBytes() { + public com.google.protobuf.ByteString getFullResourceNameBytes() { java.lang.Object ref = fullResourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fullResourceName_ = b; return b; } else { @@ -547,6 +605,8 @@ public java.lang.String getFullResourceName() { } } /** + * + * *
            * Required. The [full resource name]
            * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -555,20 +615,22 @@ public java.lang.String getFullResourceName() {
            * 
    * * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The fullResourceName to set. * @return This builder for chaining. */ - public Builder setFullResourceName( - java.lang.String value) { + public Builder setFullResourceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fullResourceName_ = value; onChanged(); return this; } /** + * + * *
            * Required. The [full resource name]
            * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -577,15 +639,18 @@ public Builder setFullResourceName(
            * 
    * * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFullResourceName() { - + fullResourceName_ = getDefaultInstance().getFullResourceName(); onChanged(); return this; } /** + * + * *
            * Required. The [full resource name]
            * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -594,20 +659,21 @@ public Builder clearFullResourceName() {
            * 
    * * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for fullResourceName to set. * @return This builder for chaining. */ - public Builder setFullResourceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setFullResourceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fullResourceName_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -620,41 +686,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector) - private static final com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector DEFAULT_INSTANCE; + private static final com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector(); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector getDefaultInstance() { + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceSelector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceSelector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -666,17 +735,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector getDefaultInstanceForType() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface IdentitySelectorOrBuilder extends + public interface IdentitySelectorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * Required. The identity appear in the form of principals in
          * [IAM policy
    @@ -691,10 +763,13 @@ public interface IdentitySelectorOrBuilder extends
          * 
    * * string identity = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The identity. */ java.lang.String getIdentity(); /** + * + * *
          * Required. The identity appear in the form of principals in
          * [IAM policy
    @@ -709,12 +784,14 @@ public interface IdentitySelectorOrBuilder extends
          * 
    * * string identity = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for identity. */ - com.google.protobuf.ByteString - getIdentityBytes(); + com.google.protobuf.ByteString getIdentityBytes(); } /** + * + * *
        * Specifies an identity for which to determine resource access, based on
        * roles assigned either directly to them or to the groups they belong to,
    @@ -723,47 +800,51 @@ public interface IdentitySelectorOrBuilder extends
        *
        * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector}
        */
    -  public static final class IdentitySelector extends
    -      com.google.protobuf.GeneratedMessageV3 implements
    +  public static final class IdentitySelector extends com.google.protobuf.GeneratedMessageV3
    +      implements
           // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector)
           IdentitySelectorOrBuilder {
    -  private static final long serialVersionUID = 0L;
    +    private static final long serialVersionUID = 0L;
         // Use IdentitySelector.newBuilder() to construct.
         private IdentitySelector(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
    +
         private IdentitySelector() {
           identity_ = "";
         }
     
         @java.lang.Override
         @SuppressWarnings({"unused"})
    -    protected java.lang.Object newInstance(
    -        UnusedPrivateParameter unused) {
    +    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
           return new IdentitySelector();
         }
     
         @java.lang.Override
    -    public final com.google.protobuf.UnknownFieldSet
    -    getUnknownFields() {
    +    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
           return this.unknownFields;
         }
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_descriptor;
    +
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetServiceProto
    +          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetServiceProto
    +          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.class, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder.class);
    +              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.class,
    +              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder.class);
         }
     
         public static final int IDENTITY_FIELD_NUMBER = 1;
         private volatile java.lang.Object identity_;
         /**
    +     *
    +     *
          * 
          * Required. The identity appear in the form of principals in
          * [IAM policy
    @@ -778,6 +859,7 @@ protected java.lang.Object newInstance(
          * 
    * * string identity = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The identity. */ @java.lang.Override @@ -786,14 +868,15 @@ public java.lang.String getIdentity() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identity_ = s; return s; } } /** + * + * *
          * Required. The identity appear in the form of principals in
          * [IAM policy
    @@ -808,16 +891,15 @@ public java.lang.String getIdentity() {
          * 
    * * string identity = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for identity. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdentityBytes() { + public com.google.protobuf.ByteString getIdentityBytes() { java.lang.Object ref = identity_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); identity_ = b; return b; } else { @@ -826,6 +908,7 @@ public java.lang.String getIdentity() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -837,8 +920,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identity_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, identity_); } @@ -862,15 +944,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector other = (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector other = + (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector) obj; - if (!getIdentity() - .equals(other.getIdentity())) return false; + if (!getIdentity().equals(other.getIdentity())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -890,87 +972,95 @@ public int hashCode() { } public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector 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.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector 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.asset.v1.IamPolicyAnalysisQuery.IdentitySelector + 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.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -980,6 +1070,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * Specifies an identity for which to determine resource access, based on
          * roles assigned either directly to them or to the groups they belong to,
    @@ -988,33 +1080,34 @@ protected Builder newBuilderForType(
          *
          * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector}
          */
    -    public static final class Builder extends
    -        com.google.protobuf.GeneratedMessageV3.Builder implements
    +    public static final class Builder
    +        extends com.google.protobuf.GeneratedMessageV3.Builder
    +        implements
             // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector)
             com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder {
    -      public static final com.google.protobuf.Descriptors.Descriptor
    -          getDescriptor() {
    -        return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_descriptor;
    +      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +        return com.google.cloud.asset.v1.AssetServiceProto
    +            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_descriptor;
           }
     
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
    -        return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_fieldAccessorTable
    +        return com.google.cloud.asset.v1.AssetServiceProto
    +            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
    -                com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.class, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder.class);
    +                com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.class,
    +                com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder.class);
           }
     
    -      // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.newBuilder()
    -      private Builder() {
    +      // Construct using
    +      // com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.newBuilder()
    +      private Builder() {}
     
    -      }
    -
    -      private Builder(
    -          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
    -
           }
    +
           @java.lang.Override
           public Builder clear() {
             super.clear();
    @@ -1024,14 +1117,16 @@ public Builder clear() {
           }
     
           @java.lang.Override
    -      public com.google.protobuf.Descriptors.Descriptor
    -          getDescriptorForType() {
    -        return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_descriptor;
    +      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +        return com.google.cloud.asset.v1.AssetServiceProto
    +            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_descriptor;
           }
     
           @java.lang.Override
    -      public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector getDefaultInstanceForType() {
    -        return com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.getDefaultInstance();
    +      public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector
    +          getDefaultInstanceForType() {
    +        return com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector
    +            .getDefaultInstance();
           }
     
           @java.lang.Override
    @@ -1045,7 +1140,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector build()
     
           @java.lang.Override
           public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector buildPartial() {
    -        com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector result = new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector(this);
    +        com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector result =
    +            new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector(this);
             result.identity_ = identity_;
             onBuilt();
             return result;
    @@ -1055,46 +1151,53 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector buildPa
           public Builder clone() {
             return super.clone();
           }
    +
           @java.lang.Override
           public Builder setField(
    -          com.google.protobuf.Descriptors.FieldDescriptor field,
    -          java.lang.Object value) {
    +          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) {
    +      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) {
    +      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) {
    +          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) {
    +          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.asset.v1.IamPolicyAnalysisQuery.IdentitySelector) {
    -          return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector)other);
    +          return mergeFrom(
    +              (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector) other);
             } else {
               super.mergeFrom(other);
               return this;
             }
           }
     
    -      public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector other) {
    -        if (other == com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.getDefaultInstance()) return this;
    +      public Builder mergeFrom(
    +          com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector other) {
    +        if (other
    +            == com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector
    +                .getDefaultInstance()) return this;
             if (!other.getIdentity().isEmpty()) {
               identity_ = other.identity_;
               onChanged();
    @@ -1125,17 +1228,19 @@ public Builder mergeFrom(
                   case 0:
                     done = true;
                     break;
    -              case 10: {
    -                identity_ = input.readStringRequireUtf8();
    -
    -                break;
    -              } // case 10
    -              default: {
    -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                  done = true; // was an endgroup tag
    -                }
    -                break;
    -              } // default:
    +              case 10:
    +                {
    +                  identity_ = input.readStringRequireUtf8();
    +
    +                  break;
    +                } // case 10
    +              default:
    +                {
    +                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                    done = true; // was an endgroup tag
    +                  }
    +                  break;
    +                } // default:
                 } // switch (tag)
               } // while (!done)
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -1148,6 +1253,8 @@ public Builder mergeFrom(
     
           private java.lang.Object identity_ = "";
           /**
    +       *
    +       *
            * 
            * Required. The identity appear in the form of principals in
            * [IAM policy
    @@ -1162,13 +1269,13 @@ public Builder mergeFrom(
            * 
    * * string identity = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The identity. */ public java.lang.String getIdentity() { java.lang.Object ref = identity_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identity_ = s; return s; @@ -1177,6 +1284,8 @@ public java.lang.String getIdentity() { } } /** + * + * *
            * Required. The identity appear in the form of principals in
            * [IAM policy
    @@ -1191,15 +1300,14 @@ public java.lang.String getIdentity() {
            * 
    * * string identity = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for identity. */ - public com.google.protobuf.ByteString - getIdentityBytes() { + public com.google.protobuf.ByteString getIdentityBytes() { java.lang.Object ref = identity_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); identity_ = b; return b; } else { @@ -1207,6 +1315,8 @@ public java.lang.String getIdentity() { } } /** + * + * *
            * Required. The identity appear in the form of principals in
            * [IAM policy
    @@ -1221,20 +1331,22 @@ public java.lang.String getIdentity() {
            * 
    * * string identity = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The identity to set. * @return This builder for chaining. */ - public Builder setIdentity( - java.lang.String value) { + public Builder setIdentity(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + identity_ = value; onChanged(); return this; } /** + * + * *
            * Required. The identity appear in the form of principals in
            * [IAM policy
    @@ -1249,15 +1361,18 @@ public Builder setIdentity(
            * 
    * * string identity = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearIdentity() { - + identity_ = getDefaultInstance().getIdentity(); onChanged(); return this; } /** + * + * *
            * Required. The identity appear in the form of principals in
            * [IAM policy
    @@ -1272,20 +1387,21 @@ public Builder clearIdentity() {
            * 
    * * string identity = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for identity to set. * @return This builder for chaining. */ - public Builder setIdentityBytes( - com.google.protobuf.ByteString value) { + public Builder setIdentityBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + identity_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1298,41 +1414,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector) - private static final com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector DEFAULT_INSTANCE; + private static final com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector(); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector getDefaultInstance() { + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IdentitySelector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IdentitySelector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1344,99 +1463,122 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector getDefaultInstanceForType() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface AccessSelectorOrBuilder extends + public interface AccessSelectorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * Optional. The roles to appear in result.
          * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the roles. */ - java.util.List - getRolesList(); + java.util.List getRolesList(); /** + * + * *
          * Optional. The roles to appear in result.
          * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of roles. */ int getRolesCount(); /** + * + * *
          * Optional. The roles to appear in result.
          * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The roles at the given index. */ java.lang.String getRoles(int index); /** + * + * *
          * Optional. The roles to appear in result.
          * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the roles at the given index. */ - com.google.protobuf.ByteString - getRolesBytes(int index); + com.google.protobuf.ByteString getRolesBytes(int index); /** + * + * *
          * Optional. The permissions to appear in result.
          * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the permissions. */ - java.util.List - getPermissionsList(); + java.util.List getPermissionsList(); /** + * + * *
          * Optional. The permissions to appear in result.
          * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of permissions. */ int getPermissionsCount(); /** + * + * *
          * Optional. The permissions to appear in result.
          * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The permissions at the given index. */ java.lang.String getPermissions(int index); /** + * + * *
          * Optional. The permissions to appear in result.
          * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - com.google.protobuf.ByteString - getPermissionsBytes(int index); + com.google.protobuf.ByteString getPermissionsBytes(int index); } /** + * + * *
        * Specifies roles and/or permissions to analyze, to determine both the
        * identities possessing them and the resources they control. If multiple
    @@ -1447,15 +1589,16 @@ public interface AccessSelectorOrBuilder extends
        *
        * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector}
        */
    -  public static final class AccessSelector extends
    -      com.google.protobuf.GeneratedMessageV3 implements
    +  public static final class AccessSelector extends com.google.protobuf.GeneratedMessageV3
    +      implements
           // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector)
           AccessSelectorOrBuilder {
    -  private static final long serialVersionUID = 0L;
    +    private static final long serialVersionUID = 0L;
         // Use AccessSelector.newBuilder() to construct.
         private AccessSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
    +
         private AccessSelector() {
           roles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
           permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    @@ -1463,60 +1606,69 @@ private AccessSelector() {
     
         @java.lang.Override
         @SuppressWarnings({"unused"})
    -    protected java.lang.Object newInstance(
    -        UnusedPrivateParameter unused) {
    +    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
           return new AccessSelector();
         }
     
         @java.lang.Override
    -    public final com.google.protobuf.UnknownFieldSet
    -    getUnknownFields() {
    +    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
           return this.unknownFields;
         }
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_descriptor;
    +
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetServiceProto
    +          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetServiceProto
    +          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.class, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder.class);
    +              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.class,
    +              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder.class);
         }
     
         public static final int ROLES_FIELD_NUMBER = 1;
         private com.google.protobuf.LazyStringList roles_;
         /**
    +     *
    +     *
          * 
          * Optional. The roles to appear in result.
          * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the roles. */ - public com.google.protobuf.ProtocolStringList - getRolesList() { + public com.google.protobuf.ProtocolStringList getRolesList() { return roles_; } /** + * + * *
          * Optional. The roles to appear in result.
          * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of roles. */ public int getRolesCount() { return roles_.size(); } /** + * + * *
          * Optional. The roles to appear in result.
          * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The roles at the given index. */ @@ -1524,50 +1676,60 @@ public java.lang.String getRoles(int index) { return roles_.get(index); } /** + * + * *
          * Optional. The roles to appear in result.
          * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the roles at the given index. */ - public com.google.protobuf.ByteString - getRolesBytes(int index) { + public com.google.protobuf.ByteString getRolesBytes(int index) { return roles_.getByteString(index); } public static final int PERMISSIONS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList permissions_; /** + * + * *
          * Optional. The permissions to appear in result.
          * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList - getPermissionsList() { + public com.google.protobuf.ProtocolStringList getPermissionsList() { return permissions_; } /** + * + * *
          * Optional. The permissions to appear in result.
          * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** + * + * *
          * Optional. The permissions to appear in result.
          * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -1575,20 +1737,23 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** + * + * *
          * Optional. The permissions to appear in result.
          * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString - getPermissionsBytes(int index) { + public com.google.protobuf.ByteString getPermissionsBytes(int index) { return permissions_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1600,8 +1765,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < roles_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, roles_.getRaw(i)); } @@ -1641,17 +1805,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector other = (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector other = + (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector) obj; - if (!getRolesList() - .equals(other.getRolesList())) return false; - if (!getPermissionsList() - .equals(other.getPermissionsList())) return false; + if (!getRolesList().equals(other.getRolesList())) return false; + if (!getPermissionsList().equals(other.getPermissionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1677,87 +1840,95 @@ public int hashCode() { } public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector 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.asset.v1.IamPolicyAnalysisQuery.AccessSelector parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector 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.asset.v1.IamPolicyAnalysisQuery.AccessSelector + 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.asset.v1.IamPolicyAnalysisQuery.AccessSelector parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1767,6 +1938,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * Specifies roles and/or permissions to analyze, to determine both the
          * identities possessing them and the resources they control. If multiple
    @@ -1777,33 +1950,34 @@ protected Builder newBuilderForType(
          *
          * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector}
          */
    -    public static final class Builder extends
    -        com.google.protobuf.GeneratedMessageV3.Builder implements
    +    public static final class Builder
    +        extends com.google.protobuf.GeneratedMessageV3.Builder
    +        implements
             // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector)
             com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder {
    -      public static final com.google.protobuf.Descriptors.Descriptor
    -          getDescriptor() {
    -        return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_descriptor;
    +      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +        return com.google.cloud.asset.v1.AssetServiceProto
    +            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_descriptor;
           }
     
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
    -        return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_fieldAccessorTable
    +        return com.google.cloud.asset.v1.AssetServiceProto
    +            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
    -                com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.class, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder.class);
    +                com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.class,
    +                com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder.class);
           }
     
    -      // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.newBuilder()
    -      private Builder() {
    -
    -      }
    +      // Construct using
    +      // com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.newBuilder()
    +      private Builder() {}
     
    -      private Builder(
    -          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
    -
           }
    +
           @java.lang.Override
           public Builder clear() {
             super.clear();
    @@ -1815,13 +1989,14 @@ public Builder clear() {
           }
     
           @java.lang.Override
    -      public com.google.protobuf.Descriptors.Descriptor
    -          getDescriptorForType() {
    -        return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_descriptor;
    +      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +        return com.google.cloud.asset.v1.AssetServiceProto
    +            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_descriptor;
           }
     
           @java.lang.Override
    -      public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector getDefaultInstanceForType() {
    +      public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector
    +          getDefaultInstanceForType() {
             return com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.getDefaultInstance();
           }
     
    @@ -1836,7 +2011,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector build() {
     
           @java.lang.Override
           public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector buildPartial() {
    -        com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector result = new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector(this);
    +        com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector result =
    +            new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector(this);
             int from_bitField0_ = bitField0_;
             if (((bitField0_ & 0x00000001) != 0)) {
               roles_ = roles_.getUnmodifiableView();
    @@ -1856,46 +2032,52 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector buildPart
           public Builder clone() {
             return super.clone();
           }
    +
           @java.lang.Override
           public Builder setField(
    -          com.google.protobuf.Descriptors.FieldDescriptor field,
    -          java.lang.Object value) {
    +          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) {
    +      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) {
    +      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) {
    +          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) {
    +          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.asset.v1.IamPolicyAnalysisQuery.AccessSelector) {
    -          return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector)other);
    +          return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector) other);
             } else {
               super.mergeFrom(other);
               return this;
             }
           }
     
    -      public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector other) {
    -        if (other == com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.getDefaultInstance()) return this;
    +      public Builder mergeFrom(
    +          com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector other) {
    +        if (other
    +            == com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.getDefaultInstance())
    +          return this;
             if (!other.roles_.isEmpty()) {
               if (roles_.isEmpty()) {
                 roles_ = other.roles_;
    @@ -1942,24 +2124,27 @@ public Builder mergeFrom(
                   case 0:
                     done = true;
                     break;
    -              case 10: {
    -                java.lang.String s = input.readStringRequireUtf8();
    -                ensureRolesIsMutable();
    -                roles_.add(s);
    -                break;
    -              } // case 10
    -              case 18: {
    -                java.lang.String s = input.readStringRequireUtf8();
    -                ensurePermissionsIsMutable();
    -                permissions_.add(s);
    -                break;
    -              } // case 18
    -              default: {
    -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                  done = true; // was an endgroup tag
    -                }
    -                break;
    -              } // default:
    +              case 10:
    +                {
    +                  java.lang.String s = input.readStringRequireUtf8();
    +                  ensureRolesIsMutable();
    +                  roles_.add(s);
    +                  break;
    +                } // case 10
    +              case 18:
    +                {
    +                  java.lang.String s = input.readStringRequireUtf8();
    +                  ensurePermissionsIsMutable();
    +                  permissions_.add(s);
    +                  break;
    +                } // case 18
    +              default:
    +                {
    +                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                    done = true; // was an endgroup tag
    +                  }
    +                  break;
    +                } // default:
                 } // switch (tag)
               } // while (!done)
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -1969,44 +2154,55 @@ public Builder mergeFrom(
             } // finally
             return this;
           }
    +
           private int bitField0_;
     
    -      private com.google.protobuf.LazyStringList roles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    +      private com.google.protobuf.LazyStringList roles_ =
    +          com.google.protobuf.LazyStringArrayList.EMPTY;
    +
           private void ensureRolesIsMutable() {
             if (!((bitField0_ & 0x00000001) != 0)) {
               roles_ = new com.google.protobuf.LazyStringArrayList(roles_);
               bitField0_ |= 0x00000001;
    -         }
    +        }
           }
           /**
    +       *
    +       *
            * 
            * Optional. The roles to appear in result.
            * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the roles. */ - public com.google.protobuf.ProtocolStringList - getRolesList() { + public com.google.protobuf.ProtocolStringList getRolesList() { return roles_.getUnmodifiableView(); } /** + * + * *
            * Optional. The roles to appear in result.
            * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of roles. */ public int getRolesCount() { return roles_.size(); } /** + * + * *
            * Optional. The roles to appear in result.
            * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The roles at the given index. */ @@ -2014,80 +2210,90 @@ public java.lang.String getRoles(int index) { return roles_.get(index); } /** + * + * *
            * Optional. The roles to appear in result.
            * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the roles at the given index. */ - public com.google.protobuf.ByteString - getRolesBytes(int index) { + public com.google.protobuf.ByteString getRolesBytes(int index) { return roles_.getByteString(index); } /** + * + * *
            * Optional. The roles to appear in result.
            * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The roles to set. * @return This builder for chaining. */ - public Builder setRoles( - int index, java.lang.String value) { + public Builder setRoles(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRolesIsMutable(); + throw new NullPointerException(); + } + ensureRolesIsMutable(); roles_.set(index, value); onChanged(); return this; } /** + * + * *
            * Optional. The roles to appear in result.
            * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The roles to add. * @return This builder for chaining. */ - public Builder addRoles( - java.lang.String value) { + public Builder addRoles(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRolesIsMutable(); + throw new NullPointerException(); + } + ensureRolesIsMutable(); roles_.add(value); onChanged(); return this; } /** + * + * *
            * Optional. The roles to appear in result.
            * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The roles to add. * @return This builder for chaining. */ - public Builder addAllRoles( - java.lang.Iterable values) { + public Builder addAllRoles(java.lang.Iterable values) { ensureRolesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, roles_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, roles_); onChanged(); return this; } /** + * + * *
            * Optional. The roles to appear in result.
            * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRoles() { @@ -2097,62 +2303,74 @@ public Builder clearRoles() { return this; } /** + * + * *
            * Optional. The roles to appear in result.
            * 
    * * repeated string roles = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the roles to add. * @return This builder for chaining. */ - public Builder addRolesBytes( - com.google.protobuf.ByteString value) { + public Builder addRolesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureRolesIsMutable(); roles_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList permissions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePermissionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
            * Optional. The permissions to appear in result.
            * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList - getPermissionsList() { + public com.google.protobuf.ProtocolStringList getPermissionsList() { return permissions_.getUnmodifiableView(); } /** + * + * *
            * Optional. The permissions to appear in result.
            * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** + * + * *
            * Optional. The permissions to appear in result.
            * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -2160,80 +2378,90 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** + * + * *
            * Optional. The permissions to appear in result.
            * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString - getPermissionsBytes(int index) { + public com.google.protobuf.ByteString getPermissionsBytes(int index) { return permissions_.getByteString(index); } /** + * + * *
            * Optional. The permissions to appear in result.
            * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The permissions to set. * @return This builder for chaining. */ - public Builder setPermissions( - int index, java.lang.String value) { + public Builder setPermissions(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); return this; } /** + * + * *
            * Optional. The permissions to appear in result.
            * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The permissions to add. * @return This builder for chaining. */ - public Builder addPermissions( - java.lang.String value) { + public Builder addPermissions(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } /** + * + * *
            * Optional. The permissions to appear in result.
            * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The permissions to add. * @return This builder for chaining. */ - public Builder addAllPermissions( - java.lang.Iterable values) { + public Builder addAllPermissions(java.lang.Iterable values) { ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, permissions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, permissions_); onChanged(); return this; } /** + * + * *
            * Optional. The permissions to appear in result.
            * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPermissions() { @@ -2243,25 +2471,28 @@ public Builder clearPermissions() { return this; } /** + * + * *
            * Optional. The permissions to appear in result.
            * 
    * * repeated string permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the permissions to add. * @return This builder for chaining. */ - public Builder addPermissionsBytes( - com.google.protobuf.ByteString value) { + public Builder addPermissionsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2274,41 +2505,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector) - private static final com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector DEFAULT_INSTANCE; + private static final com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector(); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector getDefaultInstance() { + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessSelector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessSelector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2320,17 +2554,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector getDefaultInstanceForType() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface OptionsOrBuilder extends + public interface OptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisQuery.Options) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * Optional. If true, the identities section of the result will expand any
          * Google groups appearing in an IAM policy binding.
    @@ -2343,11 +2580,14 @@ public interface OptionsOrBuilder extends
          * 
    * * bool expand_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The expandGroups. */ boolean getExpandGroups(); /** + * + * *
          * Optional. If true, the access section of result will expand any roles
          * appearing in IAM policy bindings to include their permissions.
    @@ -2358,11 +2598,14 @@ public interface OptionsOrBuilder extends
          * 
    * * bool expand_roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The expandRoles. */ boolean getExpandRoles(); /** + * + * *
          * Optional. If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is not
          * specified, the resource section of the result will expand any resource
    @@ -2387,11 +2630,14 @@ public interface OptionsOrBuilder extends
          * 
    * * bool expand_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The expandResources. */ boolean getExpandResources(); /** + * + * *
          * Optional. If true, the result will output the relevant parent/child relationships
          * between resources.
    @@ -2399,11 +2645,14 @@ public interface OptionsOrBuilder extends
          * 
    * * bool output_resource_edges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The outputResourceEdges. */ boolean getOutputResourceEdges(); /** + * + * *
          * Optional. If true, the result will output the relevant membership relationships
          * between groups and other groups, and between groups and principals.
    @@ -2411,11 +2660,14 @@ public interface OptionsOrBuilder extends
          * 
    * * bool output_group_edges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The outputGroupEdges. */ boolean getOutputGroupEdges(); /** + * + * *
          * Optional. If true, the response will include access analysis from identities to
          * resources via service account impersonation. This is a very expensive
    @@ -2446,58 +2698,66 @@ public interface OptionsOrBuilder extends
          * Default is false.
          * 
    * - * bool analyze_service_account_impersonation = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool analyze_service_account_impersonation = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The analyzeServiceAccountImpersonation. */ boolean getAnalyzeServiceAccountImpersonation(); } /** + * + * *
        * Contains query options.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisQuery.Options} */ - public static final class Options extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Options extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisQuery.Options) OptionsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Options.newBuilder() to construct. private Options(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Options() { - } + + private Options() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Options(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.class, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.class, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder.class); } public static final int EXPAND_GROUPS_FIELD_NUMBER = 1; private boolean expandGroups_; /** + * + * *
          * Optional. If true, the identities section of the result will expand any
          * Google groups appearing in an IAM policy binding.
    @@ -2510,6 +2770,7 @@ protected java.lang.Object newInstance(
          * 
    * * bool expand_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The expandGroups. */ @java.lang.Override @@ -2520,6 +2781,8 @@ public boolean getExpandGroups() { public static final int EXPAND_ROLES_FIELD_NUMBER = 2; private boolean expandRoles_; /** + * + * *
          * Optional. If true, the access section of result will expand any roles
          * appearing in IAM policy bindings to include their permissions.
    @@ -2530,6 +2793,7 @@ public boolean getExpandGroups() {
          * 
    * * bool expand_roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The expandRoles. */ @java.lang.Override @@ -2540,6 +2804,8 @@ public boolean getExpandRoles() { public static final int EXPAND_RESOURCES_FIELD_NUMBER = 3; private boolean expandResources_; /** + * + * *
          * Optional. If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is not
          * specified, the resource section of the result will expand any resource
    @@ -2564,6 +2830,7 @@ public boolean getExpandRoles() {
          * 
    * * bool expand_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The expandResources. */ @java.lang.Override @@ -2574,6 +2841,8 @@ public boolean getExpandResources() { public static final int OUTPUT_RESOURCE_EDGES_FIELD_NUMBER = 4; private boolean outputResourceEdges_; /** + * + * *
          * Optional. If true, the result will output the relevant parent/child relationships
          * between resources.
    @@ -2581,6 +2850,7 @@ public boolean getExpandResources() {
          * 
    * * bool output_resource_edges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The outputResourceEdges. */ @java.lang.Override @@ -2591,6 +2861,8 @@ public boolean getOutputResourceEdges() { public static final int OUTPUT_GROUP_EDGES_FIELD_NUMBER = 5; private boolean outputGroupEdges_; /** + * + * *
          * Optional. If true, the result will output the relevant membership relationships
          * between groups and other groups, and between groups and principals.
    @@ -2598,6 +2870,7 @@ public boolean getOutputResourceEdges() {
          * 
    * * bool output_group_edges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The outputGroupEdges. */ @java.lang.Override @@ -2608,6 +2881,8 @@ public boolean getOutputGroupEdges() { public static final int ANALYZE_SERVICE_ACCOUNT_IMPERSONATION_FIELD_NUMBER = 6; private boolean analyzeServiceAccountImpersonation_; /** + * + * *
          * Optional. If true, the response will include access analysis from identities to
          * resources via service account impersonation. This is a very expensive
    @@ -2638,7 +2913,10 @@ public boolean getOutputGroupEdges() {
          * Default is false.
          * 
    * - * bool analyze_service_account_impersonation = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool analyze_service_account_impersonation = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The analyzeServiceAccountImpersonation. */ @java.lang.Override @@ -2647,6 +2925,7 @@ public boolean getAnalyzeServiceAccountImpersonation() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2658,8 +2937,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (expandGroups_ != false) { output.writeBool(1, expandGroups_); } @@ -2688,28 +2966,24 @@ public int getSerializedSize() { size = 0; if (expandGroups_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, expandGroups_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, expandGroups_); } if (expandRoles_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, expandRoles_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, expandRoles_); } if (expandResources_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, expandResources_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, expandResources_); } if (outputResourceEdges_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, outputResourceEdges_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, outputResourceEdges_); } if (outputGroupEdges_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, outputGroupEdges_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, outputGroupEdges_); } if (analyzeServiceAccountImpersonation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, analyzeServiceAccountImpersonation_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 6, analyzeServiceAccountImpersonation_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2719,25 +2993,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options other = (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options) obj; - - if (getExpandGroups() - != other.getExpandGroups()) return false; - if (getExpandRoles() - != other.getExpandRoles()) return false; - if (getExpandResources() - != other.getExpandResources()) return false; - if (getOutputResourceEdges() - != other.getOutputResourceEdges()) return false; - if (getOutputGroupEdges() - != other.getOutputGroupEdges()) return false; - if (getAnalyzeServiceAccountImpersonation() - != other.getAnalyzeServiceAccountImpersonation()) return false; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options other = + (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options) obj; + + if (getExpandGroups() != other.getExpandGroups()) return false; + if (getExpandRoles() != other.getExpandRoles()) return false; + if (getExpandResources() != other.getExpandResources()) return false; + if (getOutputResourceEdges() != other.getOutputResourceEdges()) return false; + if (getOutputGroupEdges() != other.getOutputGroupEdges()) return false; + if (getAnalyzeServiceAccountImpersonation() != other.getAnalyzeServiceAccountImpersonation()) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2750,110 +3020,113 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + EXPAND_GROUPS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getExpandGroups()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExpandGroups()); hash = (37 * hash) + EXPAND_ROLES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getExpandRoles()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExpandRoles()); hash = (37 * hash) + EXPAND_RESOURCES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getExpandResources()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExpandResources()); hash = (37 * hash) + OUTPUT_RESOURCE_EDGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getOutputResourceEdges()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOutputResourceEdges()); hash = (37 * hash) + OUTPUT_GROUP_EDGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getOutputGroupEdges()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOutputGroupEdges()); hash = (37 * hash) + ANALYZE_SERVICE_ACCOUNT_IMPERSONATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAnalyzeServiceAccountImpersonation()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getAnalyzeServiceAccountImpersonation()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options 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.asset.v1.IamPolicyAnalysisQuery.Options parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2863,39 +3136,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * Contains query options.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisQuery.Options} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisQuery.Options) com.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.class, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.class, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder.class); } // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2915,9 +3190,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_descriptor; } @java.lang.Override @@ -2936,7 +3211,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options build() { @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options buildPartial() { - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options result = new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options(this); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options result = + new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options(this); result.expandGroups_ = expandGroups_; result.expandRoles_ = expandRoles_; result.expandResources_ = expandResources_; @@ -2951,38 +3227,41 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicyAnalysisQuery.Options) { - return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options)other); + return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options) other); } else { super.mergeFrom(other); return this; @@ -2990,7 +3269,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options other) { - if (other == com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.getDefaultInstance()) + return this; if (other.getExpandGroups() != false) { setExpandGroups(other.getExpandGroups()); } @@ -3035,42 +3315,49 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - expandGroups_ = input.readBool(); - - break; - } // case 8 - case 16: { - expandRoles_ = input.readBool(); - - break; - } // case 16 - case 24: { - expandResources_ = input.readBool(); - - break; - } // case 24 - case 32: { - outputResourceEdges_ = input.readBool(); - - break; - } // case 32 - case 40: { - outputGroupEdges_ = input.readBool(); - - break; - } // case 40 - case 48: { - analyzeServiceAccountImpersonation_ = input.readBool(); - - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + expandGroups_ = input.readBool(); + + break; + } // case 8 + case 16: + { + expandRoles_ = input.readBool(); + + break; + } // case 16 + case 24: + { + expandResources_ = input.readBool(); + + break; + } // case 24 + case 32: + { + outputResourceEdges_ = input.readBool(); + + break; + } // case 32 + case 40: + { + outputGroupEdges_ = input.readBool(); + + break; + } // case 40 + case 48: + { + analyzeServiceAccountImpersonation_ = input.readBool(); + + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3081,8 +3368,10 @@ public Builder mergeFrom( return this; } - private boolean expandGroups_ ; + private boolean expandGroups_; /** + * + * *
            * Optional. If true, the identities section of the result will expand any
            * Google groups appearing in an IAM policy binding.
    @@ -3095,6 +3384,7 @@ public Builder mergeFrom(
            * 
    * * bool expand_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The expandGroups. */ @java.lang.Override @@ -3102,6 +3392,8 @@ public boolean getExpandGroups() { return expandGroups_; } /** + * + * *
            * Optional. If true, the identities section of the result will expand any
            * Google groups appearing in an IAM policy binding.
    @@ -3114,16 +3406,19 @@ public boolean getExpandGroups() {
            * 
    * * bool expand_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The expandGroups to set. * @return This builder for chaining. */ public Builder setExpandGroups(boolean value) { - + expandGroups_ = value; onChanged(); return this; } /** + * + * *
            * Optional. If true, the identities section of the result will expand any
            * Google groups appearing in an IAM policy binding.
    @@ -3136,17 +3431,20 @@ public Builder setExpandGroups(boolean value) {
            * 
    * * bool expand_groups = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearExpandGroups() { - + expandGroups_ = false; onChanged(); return this; } - private boolean expandRoles_ ; + private boolean expandRoles_; /** + * + * *
            * Optional. If true, the access section of result will expand any roles
            * appearing in IAM policy bindings to include their permissions.
    @@ -3157,6 +3455,7 @@ public Builder clearExpandGroups() {
            * 
    * * bool expand_roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The expandRoles. */ @java.lang.Override @@ -3164,6 +3463,8 @@ public boolean getExpandRoles() { return expandRoles_; } /** + * + * *
            * Optional. If true, the access section of result will expand any roles
            * appearing in IAM policy bindings to include their permissions.
    @@ -3174,16 +3475,19 @@ public boolean getExpandRoles() {
            * 
    * * bool expand_roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The expandRoles to set. * @return This builder for chaining. */ public Builder setExpandRoles(boolean value) { - + expandRoles_ = value; onChanged(); return this; } /** + * + * *
            * Optional. If true, the access section of result will expand any roles
            * appearing in IAM policy bindings to include their permissions.
    @@ -3194,17 +3498,20 @@ public Builder setExpandRoles(boolean value) {
            * 
    * * bool expand_roles = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearExpandRoles() { - + expandRoles_ = false; onChanged(); return this; } - private boolean expandResources_ ; + private boolean expandResources_; /** + * + * *
            * Optional. If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is not
            * specified, the resource section of the result will expand any resource
    @@ -3229,6 +3536,7 @@ public Builder clearExpandRoles() {
            * 
    * * bool expand_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The expandResources. */ @java.lang.Override @@ -3236,6 +3544,8 @@ public boolean getExpandResources() { return expandResources_; } /** + * + * *
            * Optional. If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is not
            * specified, the resource section of the result will expand any resource
    @@ -3260,16 +3570,19 @@ public boolean getExpandResources() {
            * 
    * * bool expand_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The expandResources to set. * @return This builder for chaining. */ public Builder setExpandResources(boolean value) { - + expandResources_ = value; onChanged(); return this; } /** + * + * *
            * Optional. If true and [IamPolicyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnalysisQuery.resource_selector] is not
            * specified, the resource section of the result will expand any resource
    @@ -3294,17 +3607,20 @@ public Builder setExpandResources(boolean value) {
            * 
    * * bool expand_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearExpandResources() { - + expandResources_ = false; onChanged(); return this; } - private boolean outputResourceEdges_ ; + private boolean outputResourceEdges_; /** + * + * *
            * Optional. If true, the result will output the relevant parent/child relationships
            * between resources.
    @@ -3312,6 +3628,7 @@ public Builder clearExpandResources() {
            * 
    * * bool output_resource_edges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The outputResourceEdges. */ @java.lang.Override @@ -3319,6 +3636,8 @@ public boolean getOutputResourceEdges() { return outputResourceEdges_; } /** + * + * *
            * Optional. If true, the result will output the relevant parent/child relationships
            * between resources.
    @@ -3326,16 +3645,19 @@ public boolean getOutputResourceEdges() {
            * 
    * * bool output_resource_edges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The outputResourceEdges to set. * @return This builder for chaining. */ public Builder setOutputResourceEdges(boolean value) { - + outputResourceEdges_ = value; onChanged(); return this; } /** + * + * *
            * Optional. If true, the result will output the relevant parent/child relationships
            * between resources.
    @@ -3343,17 +3665,20 @@ public Builder setOutputResourceEdges(boolean value) {
            * 
    * * bool output_resource_edges = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOutputResourceEdges() { - + outputResourceEdges_ = false; onChanged(); return this; } - private boolean outputGroupEdges_ ; + private boolean outputGroupEdges_; /** + * + * *
            * Optional. If true, the result will output the relevant membership relationships
            * between groups and other groups, and between groups and principals.
    @@ -3361,6 +3686,7 @@ public Builder clearOutputResourceEdges() {
            * 
    * * bool output_group_edges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The outputGroupEdges. */ @java.lang.Override @@ -3368,6 +3694,8 @@ public boolean getOutputGroupEdges() { return outputGroupEdges_; } /** + * + * *
            * Optional. If true, the result will output the relevant membership relationships
            * between groups and other groups, and between groups and principals.
    @@ -3375,16 +3703,19 @@ public boolean getOutputGroupEdges() {
            * 
    * * bool output_group_edges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The outputGroupEdges to set. * @return This builder for chaining. */ public Builder setOutputGroupEdges(boolean value) { - + outputGroupEdges_ = value; onChanged(); return this; } /** + * + * *
            * Optional. If true, the result will output the relevant membership relationships
            * between groups and other groups, and between groups and principals.
    @@ -3392,17 +3723,20 @@ public Builder setOutputGroupEdges(boolean value) {
            * 
    * * bool output_group_edges = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOutputGroupEdges() { - + outputGroupEdges_ = false; onChanged(); return this; } - private boolean analyzeServiceAccountImpersonation_ ; + private boolean analyzeServiceAccountImpersonation_; /** + * + * *
            * Optional. If true, the response will include access analysis from identities to
            * resources via service account impersonation. This is a very expensive
    @@ -3433,7 +3767,10 @@ public Builder clearOutputGroupEdges() {
            * Default is false.
            * 
    * - * bool analyze_service_account_impersonation = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool analyze_service_account_impersonation = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The analyzeServiceAccountImpersonation. */ @java.lang.Override @@ -3441,6 +3778,8 @@ public boolean getAnalyzeServiceAccountImpersonation() { return analyzeServiceAccountImpersonation_; } /** + * + * *
            * Optional. If true, the response will include access analysis from identities to
            * resources via service account impersonation. This is a very expensive
    @@ -3471,17 +3810,22 @@ public boolean getAnalyzeServiceAccountImpersonation() {
            * Default is false.
            * 
    * - * bool analyze_service_account_impersonation = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool analyze_service_account_impersonation = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The analyzeServiceAccountImpersonation to set. * @return This builder for chaining. */ public Builder setAnalyzeServiceAccountImpersonation(boolean value) { - + analyzeServiceAccountImpersonation_ = value; onChanged(); return this; } /** + * + * *
            * Optional. If true, the response will include access analysis from identities to
            * resources via service account impersonation. This is a very expensive
    @@ -3512,15 +3856,19 @@ public Builder setAnalyzeServiceAccountImpersonation(boolean value) {
            * Default is false.
            * 
    * - * bool analyze_service_account_impersonation = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool analyze_service_account_impersonation = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearAnalyzeServiceAccountImpersonation() { - + analyzeServiceAccountImpersonation_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3533,12 +3881,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisQuery.Options) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisQuery.Options) private static final com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options(); } @@ -3547,27 +3895,28 @@ public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Options parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Options parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3582,14 +3931,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ConditionContextOrBuilder extends + public interface ConditionContextOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * The hypothetical access timestamp to evaluate IAM conditions. Note that
          * this value must not be earlier than the current time; otherwise, an
    @@ -3597,10 +3948,13 @@ public interface ConditionContextOrBuilder extends
          * 
    * * .google.protobuf.Timestamp access_time = 1; + * * @return Whether the accessTime field is set. */ boolean hasAccessTime(); /** + * + * *
          * The hypothetical access timestamp to evaluate IAM conditions. Note that
          * this value must not be earlier than the current time; otherwise, an
    @@ -3608,10 +3962,13 @@ public interface ConditionContextOrBuilder extends
          * 
    * * .google.protobuf.Timestamp access_time = 1; + * * @return The accessTime. */ com.google.protobuf.Timestamp getAccessTime(); /** + * + * *
          * The hypothetical access timestamp to evaluate IAM conditions. Note that
          * this value must not be earlier than the current time; otherwise, an
    @@ -3622,60 +3979,67 @@ public interface ConditionContextOrBuilder extends
          */
         com.google.protobuf.TimestampOrBuilder getAccessTimeOrBuilder();
     
    -    public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.TimeContextCase getTimeContextCase();
    +    public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.TimeContextCase
    +        getTimeContextCase();
       }
       /**
    +   *
    +   *
        * 
        * The IAM conditions context.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext} */ - public static final class ConditionContext extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ConditionContext extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext) ConditionContextOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConditionContext.newBuilder() to construct. private ConditionContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConditionContext() { - } + + private ConditionContext() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConditionContext(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.class, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.class, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder.class); } private int timeContextCase_ = 0; private java.lang.Object timeContext_; + public enum TimeContextCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ACCESS_TIME(1), TIMECONTEXT_NOT_SET(0); private final int value; + private TimeContextCase(int value) { this.value = value; } @@ -3691,24 +4055,28 @@ public static TimeContextCase valueOf(int value) { public static TimeContextCase forNumber(int value) { switch (value) { - case 1: return ACCESS_TIME; - case 0: return TIMECONTEXT_NOT_SET; - default: return null; + case 1: + return ACCESS_TIME; + case 0: + return TIMECONTEXT_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public TimeContextCase - getTimeContextCase() { - return TimeContextCase.forNumber( - timeContextCase_); + public TimeContextCase getTimeContextCase() { + return TimeContextCase.forNumber(timeContextCase_); } public static final int ACCESS_TIME_FIELD_NUMBER = 1; /** + * + * *
          * The hypothetical access timestamp to evaluate IAM conditions. Note that
          * this value must not be earlier than the current time; otherwise, an
    @@ -3716,6 +4084,7 @@ public int getNumber() {
          * 
    * * .google.protobuf.Timestamp access_time = 1; + * * @return Whether the accessTime field is set. */ @java.lang.Override @@ -3723,6 +4092,8 @@ public boolean hasAccessTime() { return timeContextCase_ == 1; } /** + * + * *
          * The hypothetical access timestamp to evaluate IAM conditions. Note that
          * this value must not be earlier than the current time; otherwise, an
    @@ -3730,16 +4101,19 @@ public boolean hasAccessTime() {
          * 
    * * .google.protobuf.Timestamp access_time = 1; + * * @return The accessTime. */ @java.lang.Override public com.google.protobuf.Timestamp getAccessTime() { if (timeContextCase_ == 1) { - return (com.google.protobuf.Timestamp) timeContext_; + return (com.google.protobuf.Timestamp) timeContext_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** + * + * *
          * The hypothetical access timestamp to evaluate IAM conditions. Note that
          * this value must not be earlier than the current time; otherwise, an
    @@ -3751,12 +4125,13 @@ public com.google.protobuf.Timestamp getAccessTime() {
         @java.lang.Override
         public com.google.protobuf.TimestampOrBuilder getAccessTimeOrBuilder() {
           if (timeContextCase_ == 1) {
    -         return (com.google.protobuf.Timestamp) timeContext_;
    +        return (com.google.protobuf.Timestamp) timeContext_;
           }
           return com.google.protobuf.Timestamp.getDefaultInstance();
         }
     
         private byte memoizedIsInitialized = -1;
    +
         @java.lang.Override
         public final boolean isInitialized() {
           byte isInitialized = memoizedIsInitialized;
    @@ -3768,8 +4143,7 @@ public final boolean isInitialized() {
         }
     
         @java.lang.Override
    -    public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                        throws java.io.IOException {
    +    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
           if (timeContextCase_ == 1) {
             output.writeMessage(1, (com.google.protobuf.Timestamp) timeContext_);
           }
    @@ -3783,8 +4157,9 @@ public int getSerializedSize() {
     
           size = 0;
           if (timeContextCase_ == 1) {
    -        size += com.google.protobuf.CodedOutputStream
    -          .computeMessageSize(1, (com.google.protobuf.Timestamp) timeContext_);
    +        size +=
    +            com.google.protobuf.CodedOutputStream.computeMessageSize(
    +                1, (com.google.protobuf.Timestamp) timeContext_);
           }
           size += getUnknownFields().getSerializedSize();
           memoizedSize = size;
    @@ -3794,18 +4169,18 @@ public int getSerializedSize() {
         @java.lang.Override
         public boolean equals(final java.lang.Object obj) {
           if (obj == this) {
    -       return true;
    +        return true;
           }
           if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext)) {
             return super.equals(obj);
           }
    -      com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext other = (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext) obj;
    +      com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext other =
    +          (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext) obj;
     
           if (!getTimeContextCase().equals(other.getTimeContextCase())) return false;
           switch (timeContextCase_) {
             case 1:
    -          if (!getAccessTime()
    -              .equals(other.getAccessTime())) return false;
    +          if (!getAccessTime().equals(other.getAccessTime())) return false;
               break;
             case 0:
             default:
    @@ -3835,87 +4210,95 @@ public int hashCode() {
         }
     
         public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext parseFrom(
    -        java.nio.ByteBuffer data)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    +        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
    +
         public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext parseFrom(
    -        java.nio.ByteBuffer data,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data, extensionRegistry);
         }
    +
         public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext parseFrom(
             com.google.protobuf.ByteString data)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
    +
         public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext 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.asset.v1.IamPolicyAnalysisQuery.ConditionContext parseFrom(byte[] data)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    +
    +    public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext parseFrom(
    +        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
    +
         public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext parseFrom(
    -        byte[] data,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data, extensionRegistry);
         }
    -    public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext parseFrom(java.io.InputStream input)
    -        throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3
    -          .parseWithIOException(PARSER, input);
    +
    +    public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext parseFrom(
    +        java.io.InputStream input) throws java.io.IOException {
    +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
         }
    +
         public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext parseFrom(
    -        java.io.InputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3
    -          .parseWithIOException(PARSER, input, extensionRegistry);
    +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +          PARSER, input, extensionRegistry);
         }
    -    public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext parseDelimitedFrom(java.io.InputStream input)
    -        throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3
    -          .parseDelimitedWithIOException(PARSER, input);
    +
    +    public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext
    +        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
    +      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
         }
    -    public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext 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.asset.v1.IamPolicyAnalysisQuery.ConditionContext
    +        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.asset.v1.IamPolicyAnalysisQuery.ConditionContext parseFrom(
    -        com.google.protobuf.CodedInputStream input)
    -        throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3
    -          .parseWithIOException(PARSER, input);
    +        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
         }
    +
         public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext parseFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3
    -          .parseWithIOException(PARSER, input, extensionRegistry);
    +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +          PARSER, input, extensionRegistry);
         }
     
         @java.lang.Override
    -    public Builder newBuilderForType() { return newBuilder(); }
    +    public Builder newBuilderForType() {
    +      return newBuilder();
    +    }
    +
         public static Builder newBuilder() {
           return DEFAULT_INSTANCE.toBuilder();
         }
    -    public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext prototype) {
    +
    +    public static Builder newBuilder(
    +        com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext prototype) {
           return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
         }
    +
         @java.lang.Override
         public Builder toBuilder() {
    -      return this == DEFAULT_INSTANCE
    -          ? new Builder() : new Builder().mergeFrom(this);
    +      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
         }
     
         @java.lang.Override
    @@ -3925,39 +4308,42 @@ protected Builder newBuilderForType(
           return builder;
         }
         /**
    +     *
    +     *
          * 
          * The IAM conditions context.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext) com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.class, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.class, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder.class); } - // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -3970,14 +4356,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext getDefaultInstanceForType() { - return com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.getDefaultInstance(); + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext + getDefaultInstanceForType() { + return com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext + .getDefaultInstance(); } @java.lang.Override @@ -3991,7 +4379,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext build() @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext buildPartial() { - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext result = new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext(this); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext result = + new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext(this); if (timeContextCase_ == 1) { if (accessTimeBuilder_ == null) { result.timeContext_ = timeContext_; @@ -4008,54 +4397,63 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicyAnalysisQuery.ConditionContext) { - return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext)other); + return mergeFrom( + (com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext other) { - if (other == com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext other) { + if (other + == com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext + .getDefaultInstance()) return this; switch (other.getTimeContextCase()) { - case ACCESS_TIME: { - mergeAccessTime(other.getAccessTime()); - break; - } - case TIMECONTEXT_NOT_SET: { - break; - } + case ACCESS_TIME: + { + mergeAccessTime(other.getAccessTime()); + break; + } + case TIMECONTEXT_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -4083,19 +4481,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getAccessTimeFieldBuilder().getBuilder(), - extensionRegistry); - timeContextCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getAccessTimeFieldBuilder().getBuilder(), extensionRegistry); + timeContextCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4105,12 +4503,12 @@ public Builder mergeFrom( } // finally return this; } + private int timeContextCase_ = 0; private java.lang.Object timeContext_; - public TimeContextCase - getTimeContextCase() { - return TimeContextCase.forNumber( - timeContextCase_); + + public TimeContextCase getTimeContextCase() { + return TimeContextCase.forNumber(timeContextCase_); } public Builder clearTimeContext() { @@ -4120,10 +4518,14 @@ public Builder clearTimeContext() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> accessTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + accessTimeBuilder_; /** + * + * *
            * The hypothetical access timestamp to evaluate IAM conditions. Note that
            * this value must not be earlier than the current time; otherwise, an
    @@ -4131,6 +4533,7 @@ public Builder clearTimeContext() {
            * 
    * * .google.protobuf.Timestamp access_time = 1; + * * @return Whether the accessTime field is set. */ @java.lang.Override @@ -4138,6 +4541,8 @@ public boolean hasAccessTime() { return timeContextCase_ == 1; } /** + * + * *
            * The hypothetical access timestamp to evaluate IAM conditions. Note that
            * this value must not be earlier than the current time; otherwise, an
    @@ -4145,6 +4550,7 @@ public boolean hasAccessTime() {
            * 
    * * .google.protobuf.Timestamp access_time = 1; + * * @return The accessTime. */ @java.lang.Override @@ -4162,6 +4568,8 @@ public com.google.protobuf.Timestamp getAccessTime() { } } /** + * + * *
            * The hypothetical access timestamp to evaluate IAM conditions. Note that
            * this value must not be earlier than the current time; otherwise, an
    @@ -4184,6 +4592,8 @@ public Builder setAccessTime(com.google.protobuf.Timestamp value) {
             return this;
           }
           /**
    +       *
    +       *
            * 
            * The hypothetical access timestamp to evaluate IAM conditions. Note that
            * this value must not be earlier than the current time; otherwise, an
    @@ -4192,8 +4602,7 @@ public Builder setAccessTime(com.google.protobuf.Timestamp value) {
            *
            * .google.protobuf.Timestamp access_time = 1;
            */
    -      public Builder setAccessTime(
    -          com.google.protobuf.Timestamp.Builder builderForValue) {
    +      public Builder setAccessTime(com.google.protobuf.Timestamp.Builder builderForValue) {
             if (accessTimeBuilder_ == null) {
               timeContext_ = builderForValue.build();
               onChanged();
    @@ -4204,6 +4613,8 @@ public Builder setAccessTime(
             return this;
           }
           /**
    +       *
    +       *
            * 
            * The hypothetical access timestamp to evaluate IAM conditions. Note that
            * this value must not be earlier than the current time; otherwise, an
    @@ -4214,10 +4625,13 @@ public Builder setAccessTime(
            */
           public Builder mergeAccessTime(com.google.protobuf.Timestamp value) {
             if (accessTimeBuilder_ == null) {
    -          if (timeContextCase_ == 1 &&
    -              timeContext_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
    -            timeContext_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) timeContext_)
    -                .mergeFrom(value).buildPartial();
    +          if (timeContextCase_ == 1
    +              && timeContext_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
    +            timeContext_ =
    +                com.google.protobuf.Timestamp.newBuilder(
    +                        (com.google.protobuf.Timestamp) timeContext_)
    +                    .mergeFrom(value)
    +                    .buildPartial();
               } else {
                 timeContext_ = value;
               }
    @@ -4233,6 +4647,8 @@ public Builder mergeAccessTime(com.google.protobuf.Timestamp value) {
             return this;
           }
           /**
    +       *
    +       *
            * 
            * The hypothetical access timestamp to evaluate IAM conditions. Note that
            * this value must not be earlier than the current time; otherwise, an
    @@ -4258,6 +4674,8 @@ public Builder clearAccessTime() {
             return this;
           }
           /**
    +       *
    +       *
            * 
            * The hypothetical access timestamp to evaluate IAM conditions. Note that
            * this value must not be earlier than the current time; otherwise, an
    @@ -4270,6 +4688,8 @@ public com.google.protobuf.Timestamp.Builder getAccessTimeBuilder() {
             return getAccessTimeFieldBuilder().getBuilder();
           }
           /**
    +       *
    +       *
            * 
            * The hypothetical access timestamp to evaluate IAM conditions. Note that
            * this value must not be earlier than the current time; otherwise, an
    @@ -4290,6 +4710,8 @@ public com.google.protobuf.TimestampOrBuilder getAccessTimeOrBuilder() {
             }
           }
           /**
    +       *
    +       *
            * 
            * The hypothetical access timestamp to evaluate IAM conditions. Note that
            * this value must not be earlier than the current time; otherwise, an
    @@ -4299,23 +4721,28 @@ public com.google.protobuf.TimestampOrBuilder getAccessTimeOrBuilder() {
            * .google.protobuf.Timestamp access_time = 1;
            */
           private com.google.protobuf.SingleFieldBuilderV3<
    -          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
    +              com.google.protobuf.Timestamp,
    +              com.google.protobuf.Timestamp.Builder,
    +              com.google.protobuf.TimestampOrBuilder>
               getAccessTimeFieldBuilder() {
             if (accessTimeBuilder_ == null) {
               if (!(timeContextCase_ == 1)) {
                 timeContext_ = com.google.protobuf.Timestamp.getDefaultInstance();
               }
    -          accessTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    -                  (com.google.protobuf.Timestamp) timeContext_,
    -                  getParentForChildren(),
    -                  isClean());
    +          accessTimeBuilder_ =
    +              new com.google.protobuf.SingleFieldBuilderV3<
    +                  com.google.protobuf.Timestamp,
    +                  com.google.protobuf.Timestamp.Builder,
    +                  com.google.protobuf.TimestampOrBuilder>(
    +                  (com.google.protobuf.Timestamp) timeContext_, getParentForChildren(), isClean());
               timeContext_ = null;
             }
             timeContextCase_ = 1;
    -        onChanged();;
    +        onChanged();
    +        ;
             return accessTimeBuilder_;
           }
    +
           @java.lang.Override
           public final Builder setUnknownFields(
               final com.google.protobuf.UnknownFieldSet unknownFields) {
    @@ -4328,41 +4755,44 @@ public final Builder mergeUnknownFields(
             return super.mergeUnknownFields(unknownFields);
           }
     
    -
           // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext)
         }
     
         // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext)
    -    private static final com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext DEFAULT_INSTANCE;
    +    private static final com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext
    +        DEFAULT_INSTANCE;
    +
         static {
           DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext();
         }
     
    -    public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext getDefaultInstance() {
    +    public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext
    +        getDefaultInstance() {
           return DEFAULT_INSTANCE;
         }
     
    -    private static final com.google.protobuf.Parser
    -        PARSER = new com.google.protobuf.AbstractParser() {
    -      @java.lang.Override
    -      public ConditionContext parsePartialFrom(
    -          com.google.protobuf.CodedInputStream input,
    -          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -          throws com.google.protobuf.InvalidProtocolBufferException {
    -        Builder builder = newBuilder();
    -        try {
    -          builder.mergeFrom(input, extensionRegistry);
    -        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -          throw e.setUnfinishedMessage(builder.buildPartial());
    -        } catch (com.google.protobuf.UninitializedMessageException e) {
    -          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    -        } catch (java.io.IOException e) {
    -          throw new com.google.protobuf.InvalidProtocolBufferException(e)
    -              .setUnfinishedMessage(builder.buildPartial());
    -        }
    -        return builder.buildPartial();
    -      }
    -    };
    +    private static final com.google.protobuf.Parser PARSER =
    +        new com.google.protobuf.AbstractParser() {
    +          @java.lang.Override
    +          public ConditionContext parsePartialFrom(
    +              com.google.protobuf.CodedInputStream input,
    +              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +              throws com.google.protobuf.InvalidProtocolBufferException {
    +            Builder builder = newBuilder();
    +            try {
    +              builder.mergeFrom(input, extensionRegistry);
    +            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +              throw e.setUnfinishedMessage(builder.buildPartial());
    +            } catch (com.google.protobuf.UninitializedMessageException e) {
    +              throw e.asInvalidProtocolBufferException()
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            } catch (java.io.IOException e) {
    +              throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            }
    +            return builder.buildPartial();
    +          }
    +        };
     
         public static com.google.protobuf.Parser parser() {
           return PARSER;
    @@ -4374,15 +4804,17 @@ public com.google.protobuf.Parser getParserForType() {
         }
     
         @java.lang.Override
    -    public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext getDefaultInstanceForType() {
    +    public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext
    +        getDefaultInstanceForType() {
           return DEFAULT_INSTANCE;
         }
    -
       }
     
       public static final int SCOPE_FIELD_NUMBER = 1;
       private volatile java.lang.Object scope_;
       /**
    +   *
    +   *
        * 
        * Required. The relative name of the root asset. Only resources and IAM policies within
        * the scope will be analyzed.
    @@ -4396,6 +4828,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext getDefa
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The scope. */ @java.lang.Override @@ -4404,14 +4837,15 @@ public java.lang.String getScope() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; } } /** + * + * *
        * Required. The relative name of the root asset. Only resources and IAM policies within
        * the scope will be analyzed.
    @@ -4425,16 +4859,15 @@ public java.lang.String getScope() {
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for scope. */ @java.lang.Override - public com.google.protobuf.ByteString - getScopeBytes() { + public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); scope_ = b; return b; } else { @@ -4445,11 +4878,16 @@ public java.lang.String getScope() { public static final int RESOURCE_SELECTOR_FIELD_NUMBER = 2; private com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resourceSelector_; /** + * + * *
        * Optional. Specifies a resource for analysis.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the resourceSelector field is set. */ @java.lang.Override @@ -4457,37 +4895,54 @@ public boolean hasResourceSelector() { return resourceSelector_ != null; } /** + * + * *
        * Optional. Specifies a resource for analysis.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The resourceSelector. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector getResourceSelector() { - return resourceSelector_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.getDefaultInstance() : resourceSelector_; + return resourceSelector_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.getDefaultInstance() + : resourceSelector_; } /** + * + * *
        * Optional. Specifies a resource for analysis.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder getResourceSelectorOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder + getResourceSelectorOrBuilder() { return getResourceSelector(); } public static final int IDENTITY_SELECTOR_FIELD_NUMBER = 3; private com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identitySelector_; /** + * + * *
        * Optional. Specifies an identity for analysis.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the identitySelector field is set. */ @java.lang.Override @@ -4495,37 +4950,54 @@ public boolean hasIdentitySelector() { return identitySelector_ != null; } /** + * + * *
        * Optional. Specifies an identity for analysis.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The identitySelector. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector getIdentitySelector() { - return identitySelector_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.getDefaultInstance() : identitySelector_; + return identitySelector_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.getDefaultInstance() + : identitySelector_; } /** + * + * *
        * Optional. Specifies an identity for analysis.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder getIdentitySelectorOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder + getIdentitySelectorOrBuilder() { return getIdentitySelector(); } public static final int ACCESS_SELECTOR_FIELD_NUMBER = 4; private com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector accessSelector_; /** + * + * *
        * Optional. Specifies roles or permissions for analysis. This is optional.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the accessSelector field is set. */ @java.lang.Override @@ -4533,37 +5005,54 @@ public boolean hasAccessSelector() { return accessSelector_ != null; } /** + * + * *
        * Optional. Specifies roles or permissions for analysis. This is optional.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The accessSelector. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector getAccessSelector() { - return accessSelector_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.getDefaultInstance() : accessSelector_; + return accessSelector_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.getDefaultInstance() + : accessSelector_; } /** + * + * *
        * Optional. Specifies roles or permissions for analysis. This is optional.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder getAccessSelectorOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder + getAccessSelectorOrBuilder() { return getAccessSelector(); } public static final int OPTIONS_FIELD_NUMBER = 5; private com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options_; /** + * + * *
        * Optional. The query options.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the options field is set. */ @java.lang.Override @@ -4571,23 +5060,34 @@ public boolean hasOptions() { return options_ != null; } /** + * + * *
        * Optional. The query options.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The options. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options getOptions() { - return options_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.getDefaultInstance() : options_; + return options_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.getDefaultInstance() + : options_; } /** + * + * *
        * Optional. The query options.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsOrBuilder getOptionsOrBuilder() { @@ -4597,11 +5097,16 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsOrBuilder getOpti public static final int CONDITION_CONTEXT_FIELD_NUMBER = 6; private com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext conditionContext_; /** + * + * *
        * Optional. The hypothetical context for IAM conditions evaluation.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the conditionContext field is set. */ @java.lang.Override @@ -4609,30 +5114,43 @@ public boolean hasConditionContext() { return conditionContext_ != null; } /** + * + * *
        * Optional. The hypothetical context for IAM conditions evaluation.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The conditionContext. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext getConditionContext() { - return conditionContext_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.getDefaultInstance() : conditionContext_; + return conditionContext_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.getDefaultInstance() + : conditionContext_; } /** + * + * *
        * Optional. The hypothetical context for IAM conditions evaluation.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder getConditionContextOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder + getConditionContextOrBuilder() { return getConditionContext(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4644,8 +5162,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scope_); } @@ -4677,24 +5194,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scope_); } if (resourceSelector_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getResourceSelector()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResourceSelector()); } if (identitySelector_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getIdentitySelector()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIdentitySelector()); } if (accessSelector_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getAccessSelector()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAccessSelector()); } if (options_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getOptions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOptions()); } if (conditionContext_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getConditionContext()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getConditionContext()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4704,39 +5216,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisQuery)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisQuery other = (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery other = + (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) obj; - if (!getScope() - .equals(other.getScope())) return false; + if (!getScope().equals(other.getScope())) return false; if (hasResourceSelector() != other.hasResourceSelector()) return false; if (hasResourceSelector()) { - if (!getResourceSelector() - .equals(other.getResourceSelector())) return false; + if (!getResourceSelector().equals(other.getResourceSelector())) return false; } if (hasIdentitySelector() != other.hasIdentitySelector()) return false; if (hasIdentitySelector()) { - if (!getIdentitySelector() - .equals(other.getIdentitySelector())) return false; + if (!getIdentitySelector().equals(other.getIdentitySelector())) return false; } if (hasAccessSelector() != other.hasAccessSelector()) return false; if (hasAccessSelector()) { - if (!getAccessSelector() - .equals(other.getAccessSelector())) return false; + if (!getAccessSelector().equals(other.getAccessSelector())) return false; } if (hasOptions() != other.hasOptions()) return false; if (hasOptions()) { - if (!getOptions() - .equals(other.getOptions())) return false; + if (!getOptions().equals(other.getOptions())) return false; } if (hasConditionContext() != other.hasConditionContext()) return false; if (hasConditionContext()) { - if (!getConditionContext() - .equals(other.getConditionContext())) return false; + if (!getConditionContext().equals(other.getConditionContext())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -4776,130 +5283,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery 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.asset.v1.IamPolicyAnalysisQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisQuery prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * IAM policy analysis query message.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisQuery} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisQuery) com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.class, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.class, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder.class); } // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisQuery.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -4939,9 +5452,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor; } @java.lang.Override @@ -4960,7 +5473,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery build() { @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery buildPartial() { - com.google.cloud.asset.v1.IamPolicyAnalysisQuery result = new com.google.cloud.asset.v1.IamPolicyAnalysisQuery(this); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery result = + new com.google.cloud.asset.v1.IamPolicyAnalysisQuery(this); result.scope_ = scope_; if (resourceSelectorBuilder_ == null) { result.resourceSelector_ = resourceSelector_; @@ -4995,38 +5509,39 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicyAnalysisQuery) { - return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisQuery)other); + return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisQuery) other); } else { super.mergeFrom(other); return this; @@ -5034,7 +5549,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisQuery other) { - if (other == com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance()) + return this; if (!other.getScope().isEmpty()) { scope_ = other.scope_; onChanged(); @@ -5080,52 +5596,52 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - scope_ = input.readStringRequireUtf8(); + case 10: + { + scope_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - input.readMessage( - getResourceSelectorFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage( + getResourceSelectorFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - case 26: { - input.readMessage( - getIdentitySelectorFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage( + getIdentitySelectorFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - case 34: { - input.readMessage( - getAccessSelectorFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 26 + case 34: + { + input.readMessage(getAccessSelectorFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 34 - case 42: { - input.readMessage( - getOptionsFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 34 + case 42: + { + input.readMessage(getOptionsFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 42 - case 50: { - input.readMessage( - getConditionContextFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 42 + case 50: + { + input.readMessage( + getConditionContextFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5138,6 +5654,8 @@ public Builder mergeFrom( private java.lang.Object scope_ = ""; /** + * + * *
          * Required. The relative name of the root asset. Only resources and IAM policies within
          * the scope will be analyzed.
    @@ -5151,13 +5669,13 @@ public Builder mergeFrom(
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The scope. */ public java.lang.String getScope() { java.lang.Object ref = scope_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; @@ -5166,6 +5684,8 @@ public java.lang.String getScope() { } } /** + * + * *
          * Required. The relative name of the root asset. Only resources and IAM policies within
          * the scope will be analyzed.
    @@ -5179,15 +5699,14 @@ public java.lang.String getScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for scope. */ - public com.google.protobuf.ByteString - getScopeBytes() { + public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); scope_ = b; return b; } else { @@ -5195,6 +5714,8 @@ public java.lang.String getScope() { } } /** + * + * *
          * Required. The relative name of the root asset. Only resources and IAM policies within
          * the scope will be analyzed.
    @@ -5208,20 +5729,22 @@ public java.lang.String getScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The scope to set. * @return This builder for chaining. */ - public Builder setScope( - java.lang.String value) { + public Builder setScope(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + scope_ = value; onChanged(); return this; } /** + * + * *
          * Required. The relative name of the root asset. Only resources and IAM policies within
          * the scope will be analyzed.
    @@ -5235,15 +5758,18 @@ public Builder setScope(
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearScope() { - + scope_ = getDefaultInstance().getScope(); onChanged(); return this; } /** + * + * *
          * Required. The relative name of the root asset. Only resources and IAM policies within
          * the scope will be analyzed.
    @@ -5257,16 +5783,16 @@ public Builder clearScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for scope to set. * @return This builder for chaining. */ - public Builder setScopeBytes( - com.google.protobuf.ByteString value) { + public Builder setScopeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scope_ = value; onChanged(); return this; @@ -5274,41 +5800,61 @@ public Builder setScopeBytes( private com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resourceSelector_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder> resourceSelectorBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder> + resourceSelectorBuilder_; /** + * + * *
          * Optional. Specifies a resource for analysis.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the resourceSelector field is set. */ public boolean hasResourceSelector() { return resourceSelectorBuilder_ != null || resourceSelector_ != null; } /** + * + * *
          * Optional. Specifies a resource for analysis.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The resourceSelector. */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector getResourceSelector() { if (resourceSelectorBuilder_ == null) { - return resourceSelector_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.getDefaultInstance() : resourceSelector_; + return resourceSelector_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.getDefaultInstance() + : resourceSelector_; } else { return resourceSelectorBuilder_.getMessage(); } } /** + * + * *
          * Optional. Specifies a resource for analysis.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setResourceSelector(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector value) { + public Builder setResourceSelector( + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector value) { if (resourceSelectorBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5322,11 +5868,15 @@ public Builder setResourceSelector(com.google.cloud.asset.v1.IamPolicyAnalysisQu return this; } /** + * + * *
          * Optional. Specifies a resource for analysis.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setResourceSelector( com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder builderForValue) { @@ -5340,17 +5890,25 @@ public Builder setResourceSelector( return this; } /** + * + * *
          * Optional. Specifies a resource for analysis.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeResourceSelector(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector value) { + public Builder mergeResourceSelector( + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector value) { if (resourceSelectorBuilder_ == null) { if (resourceSelector_ != null) { resourceSelector_ = - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.newBuilder(resourceSelector_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.newBuilder( + resourceSelector_) + .mergeFrom(value) + .buildPartial(); } else { resourceSelector_ = value; } @@ -5362,11 +5920,15 @@ public Builder mergeResourceSelector(com.google.cloud.asset.v1.IamPolicyAnalysis return this; } /** + * + * *
          * Optional. Specifies a resource for analysis.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearResourceSelector() { if (resourceSelectorBuilder_ == null) { @@ -5380,48 +5942,66 @@ public Builder clearResourceSelector() { return this; } /** + * + * *
          * Optional. Specifies a resource for analysis.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder getResourceSelectorBuilder() { - + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder + getResourceSelectorBuilder() { + onChanged(); return getResourceSelectorFieldBuilder().getBuilder(); } /** + * + * *
          * Optional. Specifies a resource for analysis.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder getResourceSelectorOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder + getResourceSelectorOrBuilder() { if (resourceSelectorBuilder_ != null) { return resourceSelectorBuilder_.getMessageOrBuilder(); } else { - return resourceSelector_ == null ? - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.getDefaultInstance() : resourceSelector_; + return resourceSelector_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.getDefaultInstance() + : resourceSelector_; } } /** + * + * *
          * Optional. Specifies a resource for analysis.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder> getResourceSelectorFieldBuilder() { if (resourceSelectorBuilder_ == null) { - resourceSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder>( - getResourceSelector(), - getParentForChildren(), - isClean()); + resourceSelectorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder>( + getResourceSelector(), getParentForChildren(), isClean()); resourceSelector_ = null; } return resourceSelectorBuilder_; @@ -5429,41 +6009,61 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilde private com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identitySelector_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder> identitySelectorBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder> + identitySelectorBuilder_; /** + * + * *
          * Optional. Specifies an identity for analysis.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the identitySelector field is set. */ public boolean hasIdentitySelector() { return identitySelectorBuilder_ != null || identitySelector_ != null; } /** + * + * *
          * Optional. Specifies an identity for analysis.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The identitySelector. */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector getIdentitySelector() { if (identitySelectorBuilder_ == null) { - return identitySelector_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.getDefaultInstance() : identitySelector_; + return identitySelector_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.getDefaultInstance() + : identitySelector_; } else { return identitySelectorBuilder_.getMessage(); } } /** + * + * *
          * Optional. Specifies an identity for analysis.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setIdentitySelector(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector value) { + public Builder setIdentitySelector( + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector value) { if (identitySelectorBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5477,11 +6077,15 @@ public Builder setIdentitySelector(com.google.cloud.asset.v1.IamPolicyAnalysisQu return this; } /** + * + * *
          * Optional. Specifies an identity for analysis.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setIdentitySelector( com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder builderForValue) { @@ -5495,17 +6099,25 @@ public Builder setIdentitySelector( return this; } /** + * + * *
          * Optional. Specifies an identity for analysis.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeIdentitySelector(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector value) { + public Builder mergeIdentitySelector( + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector value) { if (identitySelectorBuilder_ == null) { if (identitySelector_ != null) { identitySelector_ = - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.newBuilder(identitySelector_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.newBuilder( + identitySelector_) + .mergeFrom(value) + .buildPartial(); } else { identitySelector_ = value; } @@ -5517,11 +6129,15 @@ public Builder mergeIdentitySelector(com.google.cloud.asset.v1.IamPolicyAnalysis return this; } /** + * + * *
          * Optional. Specifies an identity for analysis.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearIdentitySelector() { if (identitySelectorBuilder_ == null) { @@ -5535,48 +6151,66 @@ public Builder clearIdentitySelector() { return this; } /** + * + * *
          * Optional. Specifies an identity for analysis.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder getIdentitySelectorBuilder() { - + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder + getIdentitySelectorBuilder() { + onChanged(); return getIdentitySelectorFieldBuilder().getBuilder(); } /** + * + * *
          * Optional. Specifies an identity for analysis.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder getIdentitySelectorOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder + getIdentitySelectorOrBuilder() { if (identitySelectorBuilder_ != null) { return identitySelectorBuilder_.getMessageOrBuilder(); } else { - return identitySelector_ == null ? - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.getDefaultInstance() : identitySelector_; + return identitySelector_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.getDefaultInstance() + : identitySelector_; } } /** + * + * *
          * Optional. Specifies an identity for analysis.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder> getIdentitySelectorFieldBuilder() { if (identitySelectorBuilder_ == null) { - identitySelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder>( - getIdentitySelector(), - getParentForChildren(), - isClean()); + identitySelectorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder>( + getIdentitySelector(), getParentForChildren(), isClean()); identitySelector_ = null; } return identitySelectorBuilder_; @@ -5584,41 +6218,61 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilde private com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector accessSelector_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder> accessSelectorBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder> + accessSelectorBuilder_; /** + * + * *
          * Optional. Specifies roles or permissions for analysis. This is optional.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the accessSelector field is set. */ public boolean hasAccessSelector() { return accessSelectorBuilder_ != null || accessSelector_ != null; } /** + * + * *
          * Optional. Specifies roles or permissions for analysis. This is optional.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The accessSelector. */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector getAccessSelector() { if (accessSelectorBuilder_ == null) { - return accessSelector_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.getDefaultInstance() : accessSelector_; + return accessSelector_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.getDefaultInstance() + : accessSelector_; } else { return accessSelectorBuilder_.getMessage(); } } /** + * + * *
          * Optional. Specifies roles or permissions for analysis. This is optional.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setAccessSelector(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector value) { + public Builder setAccessSelector( + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector value) { if (accessSelectorBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5632,11 +6286,15 @@ public Builder setAccessSelector(com.google.cloud.asset.v1.IamPolicyAnalysisQuer return this; } /** + * + * *
          * Optional. Specifies roles or permissions for analysis. This is optional.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAccessSelector( com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder builderForValue) { @@ -5650,17 +6308,25 @@ public Builder setAccessSelector( return this; } /** + * + * *
          * Optional. Specifies roles or permissions for analysis. This is optional.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeAccessSelector(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector value) { + public Builder mergeAccessSelector( + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector value) { if (accessSelectorBuilder_ == null) { if (accessSelector_ != null) { accessSelector_ = - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.newBuilder(accessSelector_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.newBuilder( + accessSelector_) + .mergeFrom(value) + .buildPartial(); } else { accessSelector_ = value; } @@ -5672,11 +6338,15 @@ public Builder mergeAccessSelector(com.google.cloud.asset.v1.IamPolicyAnalysisQu return this; } /** + * + * *
          * Optional. Specifies roles or permissions for analysis. This is optional.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAccessSelector() { if (accessSelectorBuilder_ == null) { @@ -5690,48 +6360,66 @@ public Builder clearAccessSelector() { return this; } /** + * + * *
          * Optional. Specifies roles or permissions for analysis. This is optional.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder getAccessSelectorBuilder() { - + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder + getAccessSelectorBuilder() { + onChanged(); return getAccessSelectorFieldBuilder().getBuilder(); } /** + * + * *
          * Optional. Specifies roles or permissions for analysis. This is optional.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder getAccessSelectorOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder + getAccessSelectorOrBuilder() { if (accessSelectorBuilder_ != null) { return accessSelectorBuilder_.getMessageOrBuilder(); } else { - return accessSelector_ == null ? - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.getDefaultInstance() : accessSelector_; + return accessSelector_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.getDefaultInstance() + : accessSelector_; } } /** + * + * *
          * Optional. Specifies roles or permissions for analysis. This is optional.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder> getAccessSelectorFieldBuilder() { if (accessSelectorBuilder_ == null) { - accessSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder>( - getAccessSelector(), - getParentForChildren(), - isClean()); + accessSelectorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder>( + getAccessSelector(), getParentForChildren(), isClean()); accessSelector_ = null; } return accessSelectorBuilder_; @@ -5739,39 +6427,58 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder private com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsOrBuilder> optionsBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsOrBuilder> + optionsBuilder_; /** + * + * *
          * Optional. The query options.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the options field is set. */ public boolean hasOptions() { return optionsBuilder_ != null || options_ != null; } /** + * + * *
          * Optional. The query options.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The options. */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options getOptions() { if (optionsBuilder_ == null) { - return options_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.getDefaultInstance() : options_; + return options_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.getDefaultInstance() + : options_; } else { return optionsBuilder_.getMessage(); } } /** + * + * *
          * Optional. The query options.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOptions(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options value) { if (optionsBuilder_ == null) { @@ -5787,11 +6494,15 @@ public Builder setOptions(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Optio return this; } /** + * + * *
          * Optional. The query options.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOptions( com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder builderForValue) { @@ -5805,17 +6516,23 @@ public Builder setOptions( return this; } /** + * + * *
          * Optional. The query options.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeOptions(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options value) { if (optionsBuilder_ == null) { if (options_ != null) { options_ = - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.newBuilder(options_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.newBuilder(options_) + .mergeFrom(value) + .buildPartial(); } else { options_ = value; } @@ -5827,11 +6544,15 @@ public Builder mergeOptions(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Opt return this; } /** + * + * *
          * Optional. The query options.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearOptions() { if (optionsBuilder_ == null) { @@ -5845,48 +6566,64 @@ public Builder clearOptions() { return this; } /** + * + * *
          * Optional. The query options.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder getOptionsBuilder() { - + onChanged(); return getOptionsFieldBuilder().getBuilder(); } /** + * + * *
          * Optional. The query options.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsOrBuilder getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { - return options_ == null ? - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.getDefaultInstance() : options_; + return options_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.getDefaultInstance() + : options_; } } /** + * + * *
          * Optional. The query options.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { - optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsOrBuilder>( - getOptions(), - getParentForChildren(), - isClean()); + optionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsOrBuilder>( + getOptions(), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; @@ -5894,41 +6631,61 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsOrBuilder getOpti private com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext conditionContext_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder> conditionContextBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder> + conditionContextBuilder_; /** + * + * *
          * Optional. The hypothetical context for IAM conditions evaluation.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the conditionContext field is set. */ public boolean hasConditionContext() { return conditionContextBuilder_ != null || conditionContext_ != null; } /** + * + * *
          * Optional. The hypothetical context for IAM conditions evaluation.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The conditionContext. */ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext getConditionContext() { if (conditionContextBuilder_ == null) { - return conditionContext_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.getDefaultInstance() : conditionContext_; + return conditionContext_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.getDefaultInstance() + : conditionContext_; } else { return conditionContextBuilder_.getMessage(); } } /** + * + * *
          * Optional. The hypothetical context for IAM conditions evaluation.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setConditionContext(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext value) { + public Builder setConditionContext( + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext value) { if (conditionContextBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5942,11 +6699,15 @@ public Builder setConditionContext(com.google.cloud.asset.v1.IamPolicyAnalysisQu return this; } /** + * + * *
          * Optional. The hypothetical context for IAM conditions evaluation.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setConditionContext( com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder builderForValue) { @@ -5960,17 +6721,25 @@ public Builder setConditionContext( return this; } /** + * + * *
          * Optional. The hypothetical context for IAM conditions evaluation.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeConditionContext(com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext value) { + public Builder mergeConditionContext( + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext value) { if (conditionContextBuilder_ == null) { if (conditionContext_ != null) { conditionContext_ = - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.newBuilder(conditionContext_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.newBuilder( + conditionContext_) + .mergeFrom(value) + .buildPartial(); } else { conditionContext_ = value; } @@ -5982,11 +6751,15 @@ public Builder mergeConditionContext(com.google.cloud.asset.v1.IamPolicyAnalysis return this; } /** + * + * *
          * Optional. The hypothetical context for IAM conditions evaluation.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearConditionContext() { if (conditionContextBuilder_ == null) { @@ -6000,55 +6773,73 @@ public Builder clearConditionContext() { return this; } /** + * + * *
          * Optional. The hypothetical context for IAM conditions evaluation.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder getConditionContextBuilder() { - + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder + getConditionContextBuilder() { + onChanged(); return getConditionContextFieldBuilder().getBuilder(); } /** + * + * *
          * Optional. The hypothetical context for IAM conditions evaluation.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder getConditionContextOrBuilder() { + public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder + getConditionContextOrBuilder() { if (conditionContextBuilder_ != null) { return conditionContextBuilder_.getMessageOrBuilder(); } else { - return conditionContext_ == null ? - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.getDefaultInstance() : conditionContext_; + return conditionContext_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.getDefaultInstance() + : conditionContext_; } } /** + * + * *
          * Optional. The hypothetical context for IAM conditions evaluation.
          * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder> getConditionContextFieldBuilder() { if (conditionContextBuilder_ == null) { - conditionContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder>( - getConditionContext(), - getParentForChildren(), - isClean()); + conditionContextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder>( + getConditionContext(), getParentForChildren(), isClean()); conditionContext_ = null; } return conditionContextBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -6058,12 +6849,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisQuery) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisQuery) private static final com.google.cloud.asset.v1.IamPolicyAnalysisQuery DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisQuery(); } @@ -6072,27 +6863,27 @@ public static com.google.cloud.asset.v1.IamPolicyAnalysisQuery getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IamPolicyAnalysisQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IamPolicyAnalysisQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6107,6 +6898,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQueryOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQueryOrBuilder.java similarity index 58% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQueryOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQueryOrBuilder.java index 62c147c24f8c..265ffc013446 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQueryOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQueryOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface IamPolicyAnalysisQueryOrBuilder extends +public interface IamPolicyAnalysisQueryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisQuery) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The relative name of the root asset. Only resources and IAM policies within
        * the scope will be analyzed.
    @@ -21,10 +39,13 @@ public interface IamPolicyAnalysisQueryOrBuilder extends
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The scope. */ java.lang.String getScope(); /** + * + * *
        * Required. The relative name of the root asset. Only resources and IAM policies within
        * the scope will be analyzed.
    @@ -38,143 +59,217 @@ public interface IamPolicyAnalysisQueryOrBuilder extends
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for scope. */ - com.google.protobuf.ByteString - getScopeBytes(); + com.google.protobuf.ByteString getScopeBytes(); /** + * + * *
        * Optional. Specifies a resource for analysis.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the resourceSelector field is set. */ boolean hasResourceSelector(); /** + * + * *
        * Optional. Specifies a resource for analysis.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The resourceSelector. */ com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector getResourceSelector(); /** + * + * *
        * Optional. Specifies a resource for analysis.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder getResourceSelectorOrBuilder(); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelectorOrBuilder + getResourceSelectorOrBuilder(); /** + * + * *
        * Optional. Specifies an identity for analysis.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the identitySelector field is set. */ boolean hasIdentitySelector(); /** + * + * *
        * Optional. Specifies an identity for analysis.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The identitySelector. */ com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector getIdentitySelector(); /** + * + * *
        * Optional. Specifies an identity for analysis.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder getIdentitySelectorOrBuilder(); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelectorOrBuilder + getIdentitySelectorOrBuilder(); /** + * + * *
        * Optional. Specifies roles or permissions for analysis. This is optional.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the accessSelector field is set. */ boolean hasAccessSelector(); /** + * + * *
        * Optional. Specifies roles or permissions for analysis. This is optional.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The accessSelector. */ com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector getAccessSelector(); /** + * + * *
        * Optional. Specifies roles or permissions for analysis. This is optional.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder getAccessSelectorOrBuilder(); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelectorOrBuilder + getAccessSelectorOrBuilder(); /** + * + * *
        * Optional. The query options.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the options field is set. */ boolean hasOptions(); /** + * + * *
        * Optional. The query options.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The options. */ com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Options getOptions(); /** + * + * *
        * Optional. The query options.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.asset.v1.IamPolicyAnalysisQuery.OptionsOrBuilder getOptionsOrBuilder(); /** + * + * *
        * Optional. The hypothetical context for IAM conditions evaluation.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the conditionContext field is set. */ boolean hasConditionContext(); /** + * + * *
        * Optional. The hypothetical context for IAM conditions evaluation.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The conditionContext. */ com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext getConditionContext(); /** + * + * *
        * Optional. The hypothetical context for IAM conditions evaluation.
        * 
    * - * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder getConditionContextOrBuilder(); + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContextOrBuilder + getConditionContextOrBuilder(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResult.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResult.java similarity index 76% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResult.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResult.java index 3fd756ba0819..f13b7a205324 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResult.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResult.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** + * + * *
      * IAM Policy analysis result, consisting of one IAM policy binding and derived
      * access control lists.
    @@ -11,15 +28,16 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult}
      */
    -public final class IamPolicyAnalysisResult extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class IamPolicyAnalysisResult extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisResult)
         IamPolicyAnalysisResultOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use IamPolicyAnalysisResult.newBuilder() to construct.
       private IamPolicyAnalysisResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private IamPolicyAnalysisResult() {
         attachedResourceFullName_ = "";
         accessControlLists_ = java.util.Collections.emptyList();
    @@ -27,74 +45,89 @@ private IamPolicyAnalysisResult() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(
    -      UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new IamPolicyAnalysisResult();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetProto
    +        .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetProto
    +        .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1.IamPolicyAnalysisResult.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder.class);
    +            com.google.cloud.asset.v1.IamPolicyAnalysisResult.class,
    +            com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder.class);
       }
     
    -  public interface ResourceOrBuilder extends
    +  public interface ResourceOrBuilder
    +      extends
           // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisResult.Resource)
           com.google.protobuf.MessageOrBuilder {
     
         /**
    +     *
    +     *
          * 
          * The [full resource
          * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
          * 
    * * string full_resource_name = 1; + * * @return The fullResourceName. */ java.lang.String getFullResourceName(); /** + * + * *
          * The [full resource
          * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
          * 
    * * string full_resource_name = 1; + * * @return The bytes for fullResourceName. */ - com.google.protobuf.ByteString - getFullResourceNameBytes(); + com.google.protobuf.ByteString getFullResourceNameBytes(); /** + * + * *
          * The analysis state of this resource.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; + * * @return Whether the analysisState field is set. */ boolean hasAnalysisState(); /** + * + * *
          * The analysis state of this resource.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; + * * @return The analysisState. */ com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState(); /** + * + * *
          * The analysis state of this resource.
          * 
    @@ -104,59 +137,66 @@ public interface ResourceOrBuilder extends com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStateOrBuilder(); } /** + * + * *
        * A Google Cloud resource under analysis.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.Resource} */ - public static final class Resource extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Resource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.Resource) ResourceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Resource.newBuilder() to construct. private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Resource() { fullResourceName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Resource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.class, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder.class); } public static final int FULL_RESOURCE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object fullResourceName_; /** + * + * *
          * The [full resource
          * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
          * 
    * * string full_resource_name = 1; + * * @return The fullResourceName. */ @java.lang.Override @@ -165,30 +205,30 @@ public java.lang.String getFullResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fullResourceName_ = s; return s; } } /** + * + * *
          * The [full resource
          * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
          * 
    * * string full_resource_name = 1; + * * @return The bytes for fullResourceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getFullResourceNameBytes() { + public com.google.protobuf.ByteString getFullResourceNameBytes() { java.lang.Object ref = fullResourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fullResourceName_ = b; return b; } else { @@ -199,11 +239,14 @@ public java.lang.String getFullResourceName() { public static final int ANALYSIS_STATE_FIELD_NUMBER = 2; private com.google.cloud.asset.v1.IamPolicyAnalysisState analysisState_; /** + * + * *
          * The analysis state of this resource.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; + * * @return Whether the analysisState field is set. */ @java.lang.Override @@ -211,18 +254,25 @@ public boolean hasAnalysisState() { return analysisState_ != null; } /** + * + * *
          * The analysis state of this resource.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; + * * @return The analysisState. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState() { - return analysisState_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() : analysisState_; + return analysisState_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() + : analysisState_; } /** + * + * *
          * The analysis state of this resource.
          * 
    @@ -235,6 +285,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStat } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,8 +297,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fullResourceName_); } @@ -267,8 +317,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fullResourceName_); } if (analysisState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAnalysisState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAnalysisState()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -278,19 +327,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource other = (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource other = + (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource) obj; - if (!getFullResourceName() - .equals(other.getFullResourceName())) return false; + if (!getFullResourceName().equals(other.getFullResourceName())) return false; if (hasAnalysisState() != other.hasAnalysisState()) return false; if (hasAnalysisState()) { - if (!getAnalysisState() - .equals(other.getAnalysisState())) return false; + if (!getAnalysisState().equals(other.getAnalysisState())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -315,87 +363,94 @@ public int hashCode() { } public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.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.asset.v1.IamPolicyAnalysisResult.Resource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -405,39 +460,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * A Google Cloud resource under analysis.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.Resource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.Resource) com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.class, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder.class); } // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -453,13 +510,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource getDefaultInstanceForType() { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource + getDefaultInstanceForType() { return com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.getDefaultInstance(); } @@ -474,7 +532,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource build() { @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource buildPartial() { - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource result = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource(this); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource result = + new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource(this); result.fullResourceName_ = fullResourceName_; if (analysisStateBuilder_ == null) { result.analysisState_ = analysisState_; @@ -489,38 +548,41 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicyAnalysisResult.Resource) { - return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource)other); + return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource) other); } else { super.mergeFrom(other); return this; @@ -528,7 +590,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource other) { - if (other == com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.getDefaultInstance()) return this; + if (other + == com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.getDefaultInstance()) + return this; if (!other.getFullResourceName().isEmpty()) { fullResourceName_ = other.fullResourceName_; onChanged(); @@ -562,24 +626,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - fullResourceName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getAnalysisStateFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + fullResourceName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getAnalysisStateFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -592,19 +657,21 @@ public Builder mergeFrom( private java.lang.Object fullResourceName_ = ""; /** + * + * *
            * The [full resource
            * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
            * 
    * * string full_resource_name = 1; + * * @return The fullResourceName. */ public java.lang.String getFullResourceName() { java.lang.Object ref = fullResourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fullResourceName_ = s; return s; @@ -613,21 +680,22 @@ public java.lang.String getFullResourceName() { } } /** + * + * *
            * The [full resource
            * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
            * 
    * * string full_resource_name = 1; + * * @return The bytes for fullResourceName. */ - public com.google.protobuf.ByteString - getFullResourceNameBytes() { + public com.google.protobuf.ByteString getFullResourceNameBytes() { java.lang.Object ref = fullResourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fullResourceName_ = b; return b; } else { @@ -635,57 +703,64 @@ public java.lang.String getFullResourceName() { } } /** + * + * *
            * The [full resource
            * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
            * 
    * * string full_resource_name = 1; + * * @param value The fullResourceName to set. * @return This builder for chaining. */ - public Builder setFullResourceName( - java.lang.String value) { + public Builder setFullResourceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fullResourceName_ = value; onChanged(); return this; } /** + * + * *
            * The [full resource
            * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
            * 
    * * string full_resource_name = 1; + * * @return This builder for chaining. */ public Builder clearFullResourceName() { - + fullResourceName_ = getDefaultInstance().getFullResourceName(); onChanged(); return this; } /** + * + * *
            * The [full resource
            * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
            * 
    * * string full_resource_name = 1; + * * @param value The bytes for fullResourceName to set. * @return This builder for chaining. */ - public Builder setFullResourceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setFullResourceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fullResourceName_ = value; onChanged(); return this; @@ -693,34 +768,47 @@ public Builder setFullResourceNameBytes( private com.google.cloud.asset.v1.IamPolicyAnalysisState analysisState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisState, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> analysisStateBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisState, + com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> + analysisStateBuilder_; /** + * + * *
            * The analysis state of this resource.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; + * * @return Whether the analysisState field is set. */ public boolean hasAnalysisState() { return analysisStateBuilder_ != null || analysisState_ != null; } /** + * + * *
            * The analysis state of this resource.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; + * * @return The analysisState. */ public com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState() { if (analysisStateBuilder_ == null) { - return analysisState_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() : analysisState_; + return analysisState_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() + : analysisState_; } else { return analysisStateBuilder_.getMessage(); } } /** + * + * *
            * The analysis state of this resource.
            * 
    @@ -741,6 +829,8 @@ public Builder setAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisState return this; } /** + * + * *
            * The analysis state of this resource.
            * 
    @@ -759,6 +849,8 @@ public Builder setAnalysisState( return this; } /** + * + * *
            * The analysis state of this resource.
            * 
    @@ -769,7 +861,9 @@ public Builder mergeAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisSta if (analysisStateBuilder_ == null) { if (analysisState_ != null) { analysisState_ = - com.google.cloud.asset.v1.IamPolicyAnalysisState.newBuilder(analysisState_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisState.newBuilder(analysisState_) + .mergeFrom(value) + .buildPartial(); } else { analysisState_ = value; } @@ -781,6 +875,8 @@ public Builder mergeAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisSta return this; } /** + * + * *
            * The analysis state of this resource.
            * 
    @@ -799,6 +895,8 @@ public Builder clearAnalysisState() { return this; } /** + * + * *
            * The analysis state of this resource.
            * 
    @@ -806,11 +904,13 @@ public Builder clearAnalysisState() { * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; */ public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder getAnalysisStateBuilder() { - + onChanged(); return getAnalysisStateFieldBuilder().getBuilder(); } /** + * + * *
            * The analysis state of this resource.
            * 
    @@ -821,11 +921,14 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStat if (analysisStateBuilder_ != null) { return analysisStateBuilder_.getMessageOrBuilder(); } else { - return analysisState_ == null ? - com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() : analysisState_; + return analysisState_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() + : analysisState_; } } /** + * + * *
            * The analysis state of this resource.
            * 
    @@ -833,18 +936,22 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStat * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisState, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisState, + com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> getAnalysisStateFieldBuilder() { if (analysisStateBuilder_ == null) { - analysisStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisState, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>( - getAnalysisState(), - getParentForChildren(), - isClean()); + analysisStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisState, + com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>( + getAnalysisState(), getParentForChildren(), isClean()); analysisState_ = null; } return analysisStateBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -857,12 +964,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.Resource) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.Resource) - private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource DEFAULT_INSTANCE; + private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource(); } @@ -871,27 +979,28 @@ public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource getDefa return DEFAULT_INSTANCE; } - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -906,90 +1015,114 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface AccessOrBuilder extends + public interface AccessOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisResult.Access) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * The role.
          * 
    * * string role = 1; + * * @return Whether the role field is set. */ boolean hasRole(); /** + * + * *
          * The role.
          * 
    * * string role = 1; + * * @return The role. */ java.lang.String getRole(); /** + * + * *
          * The role.
          * 
    * * string role = 1; + * * @return The bytes for role. */ - com.google.protobuf.ByteString - getRoleBytes(); + com.google.protobuf.ByteString getRoleBytes(); /** + * + * *
          * The permission.
          * 
    * * string permission = 2; + * * @return Whether the permission field is set. */ boolean hasPermission(); /** + * + * *
          * The permission.
          * 
    * * string permission = 2; + * * @return The permission. */ java.lang.String getPermission(); /** + * + * *
          * The permission.
          * 
    * * string permission = 2; + * * @return The bytes for permission. */ - com.google.protobuf.ByteString - getPermissionBytes(); + com.google.protobuf.ByteString getPermissionBytes(); /** + * + * *
          * The analysis state of this access.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3; + * * @return Whether the analysisState field is set. */ boolean hasAnalysisState(); /** + * + * *
          * The analysis state of this access.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3; + * * @return The analysisState. */ com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState(); /** + * + * *
          * The analysis state of this access.
          * 
    @@ -998,61 +1131,68 @@ public interface AccessOrBuilder extends */ com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStateOrBuilder(); - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.OneofAccessCase getOneofAccessCase(); + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.OneofAccessCase + getOneofAccessCase(); } /** + * + * *
        * An IAM role or permission under analysis.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.Access} */ - public static final class Access extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Access extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.Access) AccessOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Access.newBuilder() to construct. private Access(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Access() { - } + + private Access() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Access(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.class, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder.class); } private int oneofAccessCase_ = 0; private java.lang.Object oneofAccess_; + public enum OneofAccessCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ROLE(1), PERMISSION(2), ONEOFACCESS_NOT_SET(0); private final int value; + private OneofAccessCase(int value) { this.value = value; } @@ -1068,41 +1208,50 @@ public static OneofAccessCase valueOf(int value) { public static OneofAccessCase forNumber(int value) { switch (value) { - case 1: return ROLE; - case 2: return PERMISSION; - case 0: return ONEOFACCESS_NOT_SET; - default: return null; + case 1: + return ROLE; + case 2: + return PERMISSION; + case 0: + return ONEOFACCESS_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public OneofAccessCase - getOneofAccessCase() { - return OneofAccessCase.forNumber( - oneofAccessCase_); + public OneofAccessCase getOneofAccessCase() { + return OneofAccessCase.forNumber(oneofAccessCase_); } public static final int ROLE_FIELD_NUMBER = 1; /** + * + * *
          * The role.
          * 
    * * string role = 1; + * * @return Whether the role field is set. */ public boolean hasRole() { return oneofAccessCase_ == 1; } /** + * + * *
          * The role.
          * 
    * * string role = 1; + * * @return The role. */ public java.lang.String getRole() { @@ -1113,8 +1262,7 @@ public java.lang.String getRole() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (oneofAccessCase_ == 1) { oneofAccess_ = s; @@ -1123,23 +1271,24 @@ public java.lang.String getRole() { } } /** + * + * *
          * The role.
          * 
    * * string role = 1; + * * @return The bytes for role. */ - public com.google.protobuf.ByteString - getRoleBytes() { + public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = ""; if (oneofAccessCase_ == 1) { ref = oneofAccess_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (oneofAccessCase_ == 1) { oneofAccess_ = b; } @@ -1151,22 +1300,28 @@ public java.lang.String getRole() { public static final int PERMISSION_FIELD_NUMBER = 2; /** + * + * *
          * The permission.
          * 
    * * string permission = 2; + * * @return Whether the permission field is set. */ public boolean hasPermission() { return oneofAccessCase_ == 2; } /** + * + * *
          * The permission.
          * 
    * * string permission = 2; + * * @return The permission. */ public java.lang.String getPermission() { @@ -1177,8 +1332,7 @@ public java.lang.String getPermission() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (oneofAccessCase_ == 2) { oneofAccess_ = s; @@ -1187,23 +1341,24 @@ public java.lang.String getPermission() { } } /** + * + * *
          * The permission.
          * 
    * * string permission = 2; + * * @return The bytes for permission. */ - public com.google.protobuf.ByteString - getPermissionBytes() { + public com.google.protobuf.ByteString getPermissionBytes() { java.lang.Object ref = ""; if (oneofAccessCase_ == 2) { ref = oneofAccess_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (oneofAccessCase_ == 2) { oneofAccess_ = b; } @@ -1216,11 +1371,14 @@ public java.lang.String getPermission() { public static final int ANALYSIS_STATE_FIELD_NUMBER = 3; private com.google.cloud.asset.v1.IamPolicyAnalysisState analysisState_; /** + * + * *
          * The analysis state of this access.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3; + * * @return Whether the analysisState field is set. */ @java.lang.Override @@ -1228,18 +1386,25 @@ public boolean hasAnalysisState() { return analysisState_ != null; } /** + * + * *
          * The analysis state of this access.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3; + * * @return The analysisState. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState() { - return analysisState_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() : analysisState_; + return analysisState_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() + : analysisState_; } /** + * + * *
          * The analysis state of this access.
          * 
    @@ -1252,6 +1417,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStat } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1263,8 +1429,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (oneofAccessCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oneofAccess_); } @@ -1290,8 +1455,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, oneofAccess_); } if (analysisState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAnalysisState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAnalysisState()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1301,27 +1465,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access other = (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access other = + (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access) obj; if (hasAnalysisState() != other.hasAnalysisState()) return false; if (hasAnalysisState()) { - if (!getAnalysisState() - .equals(other.getAnalysisState())) return false; + if (!getAnalysisState().equals(other.getAnalysisState())) return false; } if (!getOneofAccessCase().equals(other.getOneofAccessCase())) return false; switch (oneofAccessCase_) { case 1: - if (!getRole() - .equals(other.getRole())) return false; + if (!getRole().equals(other.getRole())) return false; break; case 2: - if (!getPermission() - .equals(other.getPermission())) return false; + if (!getPermission().equals(other.getPermission())) return false; break; case 0: default: @@ -1359,87 +1521,94 @@ public int hashCode() { } public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access 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.asset.v1.IamPolicyAnalysisResult.Access parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1449,39 +1618,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * An IAM role or permission under analysis.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.Access} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.Access) com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.class, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder.class); } // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1497,9 +1668,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor; } @java.lang.Override @@ -1518,7 +1689,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access build() { @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access buildPartial() { - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access result = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access(this); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access result = + new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access(this); if (oneofAccessCase_ == 1) { result.oneofAccess_ = oneofAccess_; } @@ -1539,38 +1711,41 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicyAnalysisResult.Access) { - return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access)other); + return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access) other); } else { super.mergeFrom(other); return this; @@ -1578,26 +1753,30 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access other) { - if (other == com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.getDefaultInstance()) + return this; if (other.hasAnalysisState()) { mergeAnalysisState(other.getAnalysisState()); } switch (other.getOneofAccessCase()) { - case ROLE: { - oneofAccessCase_ = 1; - oneofAccess_ = other.oneofAccess_; - onChanged(); - break; - } - case PERMISSION: { - oneofAccessCase_ = 2; - oneofAccess_ = other.oneofAccess_; - onChanged(); - break; - } - case ONEOFACCESS_NOT_SET: { - break; - } + case ROLE: + { + oneofAccessCase_ = 1; + oneofAccess_ = other.oneofAccess_; + onChanged(); + break; + } + case PERMISSION: + { + oneofAccessCase_ = 2; + oneofAccess_ = other.oneofAccess_; + onChanged(); + break; + } + case ONEOFACCESS_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1625,31 +1804,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - oneofAccessCase_ = 1; - oneofAccess_ = s; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - oneofAccessCase_ = 2; - oneofAccess_ = s; - break; - } // case 18 - case 26: { - input.readMessage( - getAnalysisStateFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + oneofAccessCase_ = 1; + oneofAccess_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + oneofAccessCase_ = 2; + oneofAccess_ = s; + break; + } // case 18 + case 26: + { + input.readMessage(getAnalysisStateFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1659,12 +1840,12 @@ public Builder mergeFrom( } // finally return this; } + private int oneofAccessCase_ = 0; private java.lang.Object oneofAccess_; - public OneofAccessCase - getOneofAccessCase() { - return OneofAccessCase.forNumber( - oneofAccessCase_); + + public OneofAccessCase getOneofAccessCase() { + return OneofAccessCase.forNumber(oneofAccessCase_); } public Builder clearOneofAccess() { @@ -1674,13 +1855,15 @@ public Builder clearOneofAccess() { return this; } - /** + * + * *
            * The role.
            * 
    * * string role = 1; + * * @return Whether the role field is set. */ @java.lang.Override @@ -1688,11 +1871,14 @@ public boolean hasRole() { return oneofAccessCase_ == 1; } /** + * + * *
            * The role.
            * 
    * * string role = 1; + * * @return The role. */ @java.lang.Override @@ -1702,8 +1888,7 @@ public java.lang.String getRole() { ref = oneofAccess_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (oneofAccessCase_ == 1) { oneofAccess_ = s; @@ -1714,24 +1899,25 @@ public java.lang.String getRole() { } } /** + * + * *
            * The role.
            * 
    * * string role = 1; + * * @return The bytes for role. */ @java.lang.Override - public com.google.protobuf.ByteString - getRoleBytes() { + public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = ""; if (oneofAccessCase_ == 1) { ref = oneofAccess_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (oneofAccessCase_ == 1) { oneofAccess_ = b; } @@ -1741,30 +1927,35 @@ public java.lang.String getRole() { } } /** + * + * *
            * The role.
            * 
    * * string role = 1; + * * @param value The role to set. * @return This builder for chaining. */ - public Builder setRole( - java.lang.String value) { + public Builder setRole(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - oneofAccessCase_ = 1; + throw new NullPointerException(); + } + oneofAccessCase_ = 1; oneofAccess_ = value; onChanged(); return this; } /** + * + * *
            * The role.
            * 
    * * string role = 1; + * * @return This builder for chaining. */ public Builder clearRole() { @@ -1776,20 +1967,22 @@ public Builder clearRole() { return this; } /** + * + * *
            * The role.
            * 
    * * string role = 1; + * * @param value The bytes for role to set. * @return This builder for chaining. */ - public Builder setRoleBytes( - com.google.protobuf.ByteString value) { + public Builder setRoleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); oneofAccessCase_ = 1; oneofAccess_ = value; onChanged(); @@ -1797,11 +1990,14 @@ public Builder setRoleBytes( } /** + * + * *
            * The permission.
            * 
    * * string permission = 2; + * * @return Whether the permission field is set. */ @java.lang.Override @@ -1809,11 +2005,14 @@ public boolean hasPermission() { return oneofAccessCase_ == 2; } /** + * + * *
            * The permission.
            * 
    * * string permission = 2; + * * @return The permission. */ @java.lang.Override @@ -1823,8 +2022,7 @@ public java.lang.String getPermission() { ref = oneofAccess_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (oneofAccessCase_ == 2) { oneofAccess_ = s; @@ -1835,24 +2033,25 @@ public java.lang.String getPermission() { } } /** + * + * *
            * The permission.
            * 
    * * string permission = 2; + * * @return The bytes for permission. */ @java.lang.Override - public com.google.protobuf.ByteString - getPermissionBytes() { + public com.google.protobuf.ByteString getPermissionBytes() { java.lang.Object ref = ""; if (oneofAccessCase_ == 2) { ref = oneofAccess_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (oneofAccessCase_ == 2) { oneofAccess_ = b; } @@ -1862,30 +2061,35 @@ public java.lang.String getPermission() { } } /** + * + * *
            * The permission.
            * 
    * * string permission = 2; + * * @param value The permission to set. * @return This builder for chaining. */ - public Builder setPermission( - java.lang.String value) { + public Builder setPermission(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - oneofAccessCase_ = 2; + throw new NullPointerException(); + } + oneofAccessCase_ = 2; oneofAccess_ = value; onChanged(); return this; } /** + * + * *
            * The permission.
            * 
    * * string permission = 2; + * * @return This builder for chaining. */ public Builder clearPermission() { @@ -1897,20 +2101,22 @@ public Builder clearPermission() { return this; } /** + * + * *
            * The permission.
            * 
    * * string permission = 2; + * * @param value The bytes for permission to set. * @return This builder for chaining. */ - public Builder setPermissionBytes( - com.google.protobuf.ByteString value) { + public Builder setPermissionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); oneofAccessCase_ = 2; oneofAccess_ = value; onChanged(); @@ -1919,34 +2125,47 @@ public Builder setPermissionBytes( private com.google.cloud.asset.v1.IamPolicyAnalysisState analysisState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisState, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> analysisStateBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisState, + com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> + analysisStateBuilder_; /** + * + * *
            * The analysis state of this access.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3; + * * @return Whether the analysisState field is set. */ public boolean hasAnalysisState() { return analysisStateBuilder_ != null || analysisState_ != null; } /** + * + * *
            * The analysis state of this access.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3; + * * @return The analysisState. */ public com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState() { if (analysisStateBuilder_ == null) { - return analysisState_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() : analysisState_; + return analysisState_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() + : analysisState_; } else { return analysisStateBuilder_.getMessage(); } } /** + * + * *
            * The analysis state of this access.
            * 
    @@ -1967,6 +2186,8 @@ public Builder setAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisState return this; } /** + * + * *
            * The analysis state of this access.
            * 
    @@ -1985,6 +2206,8 @@ public Builder setAnalysisState( return this; } /** + * + * *
            * The analysis state of this access.
            * 
    @@ -1995,7 +2218,9 @@ public Builder mergeAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisSta if (analysisStateBuilder_ == null) { if (analysisState_ != null) { analysisState_ = - com.google.cloud.asset.v1.IamPolicyAnalysisState.newBuilder(analysisState_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisState.newBuilder(analysisState_) + .mergeFrom(value) + .buildPartial(); } else { analysisState_ = value; } @@ -2007,6 +2232,8 @@ public Builder mergeAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisSta return this; } /** + * + * *
            * The analysis state of this access.
            * 
    @@ -2025,6 +2252,8 @@ public Builder clearAnalysisState() { return this; } /** + * + * *
            * The analysis state of this access.
            * 
    @@ -2032,11 +2261,13 @@ public Builder clearAnalysisState() { * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3; */ public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder getAnalysisStateBuilder() { - + onChanged(); return getAnalysisStateFieldBuilder().getBuilder(); } /** + * + * *
            * The analysis state of this access.
            * 
    @@ -2047,11 +2278,14 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStat if (analysisStateBuilder_ != null) { return analysisStateBuilder_.getMessageOrBuilder(); } else { - return analysisState_ == null ? - com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() : analysisState_; + return analysisState_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() + : analysisState_; } } /** + * + * *
            * The analysis state of this access.
            * 
    @@ -2059,18 +2293,22 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStat * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisState, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisState, + com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> getAnalysisStateFieldBuilder() { if (analysisStateBuilder_ == null) { - analysisStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisState, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>( - getAnalysisState(), - getParentForChildren(), - isClean()); + analysisStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisState, + com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>( + getAnalysisState(), getParentForChildren(), isClean()); analysisState_ = null; } return analysisStateBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2083,12 +2321,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.Access) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.Access) private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access(); } @@ -2097,27 +2335,28 @@ public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Access parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Access parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2132,14 +2371,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface IdentityOrBuilder extends + public interface IdentityOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisResult.Identity) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * The identity name in any form of members appear in
          * [IAM policy
    @@ -2155,10 +2396,13 @@ public interface IdentityOrBuilder extends
          * 
    * * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
          * The identity name in any form of members appear in
          * [IAM policy
    @@ -2174,30 +2418,38 @@ public interface IdentityOrBuilder extends
          * 
    * * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
          * The analysis state of this identity.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; + * * @return Whether the analysisState field is set. */ boolean hasAnalysisState(); /** + * + * *
          * The analysis state of this identity.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; + * * @return The analysisState. */ com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState(); /** + * + * *
          * The analysis state of this identity.
          * 
    @@ -2207,53 +2459,59 @@ public interface IdentityOrBuilder extends com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStateOrBuilder(); } /** + * + * *
        * An identity under analysis.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.Identity} */ - public static final class Identity extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Identity extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.Identity) IdentityOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Identity.newBuilder() to construct. private Identity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Identity() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Identity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.class, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
          * The identity name in any form of members appear in
          * [IAM policy
    @@ -2269,6 +2527,7 @@ protected java.lang.Object newInstance(
          * 
    * * string name = 1; + * * @return The name. */ @java.lang.Override @@ -2277,14 +2536,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
          * The identity name in any form of members appear in
          * [IAM policy
    @@ -2300,16 +2560,15 @@ public java.lang.String getName() {
          * 
    * * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2320,11 +2579,14 @@ public java.lang.String getName() { public static final int ANALYSIS_STATE_FIELD_NUMBER = 2; private com.google.cloud.asset.v1.IamPolicyAnalysisState analysisState_; /** + * + * *
          * The analysis state of this identity.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; + * * @return Whether the analysisState field is set. */ @java.lang.Override @@ -2332,18 +2594,25 @@ public boolean hasAnalysisState() { return analysisState_ != null; } /** + * + * *
          * The analysis state of this identity.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; + * * @return The analysisState. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState() { - return analysisState_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() : analysisState_; + return analysisState_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() + : analysisState_; } /** + * + * *
          * The analysis state of this identity.
          * 
    @@ -2356,6 +2625,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStat } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2367,8 +2637,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -2388,8 +2657,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (analysisState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAnalysisState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAnalysisState()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2399,19 +2667,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity other = (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity other = + (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasAnalysisState() != other.hasAnalysisState()) return false; if (hasAnalysisState()) { - if (!getAnalysisState() - .equals(other.getAnalysisState())) return false; + if (!getAnalysisState().equals(other.getAnalysisState())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2436,87 +2703,94 @@ public int hashCode() { } public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity 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.asset.v1.IamPolicyAnalysisResult.Identity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2526,39 +2800,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * An identity under analysis.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.Identity} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.Identity) com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.class, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder.class); } // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2574,13 +2850,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getDefaultInstanceForType() { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity + getDefaultInstanceForType() { return com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.getDefaultInstance(); } @@ -2595,7 +2872,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity build() { @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity buildPartial() { - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity result = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity(this); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity result = + new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity(this); result.name_ = name_; if (analysisStateBuilder_ == null) { result.analysisState_ = analysisState_; @@ -2610,38 +2888,41 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicyAnalysisResult.Identity) { - return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity)other); + return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity) other); } else { super.mergeFrom(other); return this; @@ -2649,7 +2930,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity other) { - if (other == com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.getDefaultInstance()) return this; + if (other + == com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -2683,24 +2966,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getAnalysisStateFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getAnalysisStateFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2713,6 +2997,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
            * The identity name in any form of members appear in
            * [IAM policy
    @@ -2728,13 +3014,13 @@ public Builder mergeFrom(
            * 
    * * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2743,6 +3029,8 @@ public java.lang.String getName() { } } /** + * + * *
            * The identity name in any form of members appear in
            * [IAM policy
    @@ -2758,15 +3046,14 @@ public java.lang.String getName() {
            * 
    * * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2774,6 +3061,8 @@ public java.lang.String getName() { } } /** + * + * *
            * The identity name in any form of members appear in
            * [IAM policy
    @@ -2789,20 +3078,22 @@ public java.lang.String getName() {
            * 
    * * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
            * The identity name in any form of members appear in
            * [IAM policy
    @@ -2818,15 +3109,18 @@ public Builder setName(
            * 
    * * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
            * The identity name in any form of members appear in
            * [IAM policy
    @@ -2842,16 +3136,16 @@ public Builder clearName() {
            * 
    * * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2859,34 +3153,47 @@ public Builder setNameBytes( private com.google.cloud.asset.v1.IamPolicyAnalysisState analysisState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisState, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> analysisStateBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisState, + com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> + analysisStateBuilder_; /** + * + * *
            * The analysis state of this identity.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; + * * @return Whether the analysisState field is set. */ public boolean hasAnalysisState() { return analysisStateBuilder_ != null || analysisState_ != null; } /** + * + * *
            * The analysis state of this identity.
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; + * * @return The analysisState. */ public com.google.cloud.asset.v1.IamPolicyAnalysisState getAnalysisState() { if (analysisStateBuilder_ == null) { - return analysisState_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() : analysisState_; + return analysisState_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() + : analysisState_; } else { return analysisStateBuilder_.getMessage(); } } /** + * + * *
            * The analysis state of this identity.
            * 
    @@ -2907,6 +3214,8 @@ public Builder setAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisState return this; } /** + * + * *
            * The analysis state of this identity.
            * 
    @@ -2925,6 +3234,8 @@ public Builder setAnalysisState( return this; } /** + * + * *
            * The analysis state of this identity.
            * 
    @@ -2935,7 +3246,9 @@ public Builder mergeAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisSta if (analysisStateBuilder_ == null) { if (analysisState_ != null) { analysisState_ = - com.google.cloud.asset.v1.IamPolicyAnalysisState.newBuilder(analysisState_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.IamPolicyAnalysisState.newBuilder(analysisState_) + .mergeFrom(value) + .buildPartial(); } else { analysisState_ = value; } @@ -2947,6 +3260,8 @@ public Builder mergeAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisSta return this; } /** + * + * *
            * The analysis state of this identity.
            * 
    @@ -2965,6 +3280,8 @@ public Builder clearAnalysisState() { return this; } /** + * + * *
            * The analysis state of this identity.
            * 
    @@ -2972,11 +3289,13 @@ public Builder clearAnalysisState() { * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; */ public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder getAnalysisStateBuilder() { - + onChanged(); return getAnalysisStateFieldBuilder().getBuilder(); } /** + * + * *
            * The analysis state of this identity.
            * 
    @@ -2987,11 +3306,14 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStat if (analysisStateBuilder_ != null) { return analysisStateBuilder_.getMessageOrBuilder(); } else { - return analysisState_ == null ? - com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() : analysisState_; + return analysisState_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance() + : analysisState_; } } /** + * + * *
            * The analysis state of this identity.
            * 
    @@ -2999,18 +3321,22 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStat * .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisState, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisState, + com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder> getAnalysisStateFieldBuilder() { if (analysisStateBuilder_ == null) { - analysisStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisState, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>( - getAnalysisState(), - getParentForChildren(), - isClean()); + analysisStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisState, + com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>( + getAnalysisState(), getParentForChildren(), isClean()); analysisState_ = null; } return analysisStateBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3023,12 +3349,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.Identity) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.Identity) - private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity DEFAULT_INSTANCE; + private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity(); } @@ -3037,27 +3364,28 @@ public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Identity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Identity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3072,73 +3400,86 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface EdgeOrBuilder extends + public interface EdgeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisResult.Edge) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * The source node of the edge. For example, it could be a full resource
          * name for a resource node or an email of an identity.
          * 
    * * string source_node = 1; + * * @return The sourceNode. */ java.lang.String getSourceNode(); /** + * + * *
          * The source node of the edge. For example, it could be a full resource
          * name for a resource node or an email of an identity.
          * 
    * * string source_node = 1; + * * @return The bytes for sourceNode. */ - com.google.protobuf.ByteString - getSourceNodeBytes(); + com.google.protobuf.ByteString getSourceNodeBytes(); /** + * + * *
          * The target node of the edge. For example, it could be a full resource
          * name for a resource node or an email of an identity.
          * 
    * * string target_node = 2; + * * @return The targetNode. */ java.lang.String getTargetNode(); /** + * + * *
          * The target node of the edge. For example, it could be a full resource
          * name for a resource node or an email of an identity.
          * 
    * * string target_node = 2; + * * @return The bytes for targetNode. */ - com.google.protobuf.ByteString - getTargetNodeBytes(); + com.google.protobuf.ByteString getTargetNodeBytes(); } /** + * + * *
        * A directional edge.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.Edge} */ - public static final class Edge extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Edge extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.Edge) EdgeOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Edge.newBuilder() to construct. private Edge(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Edge() { sourceNode_ = ""; targetNode_ = ""; @@ -3146,38 +3487,42 @@ private Edge() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Edge(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.class, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder.class); } public static final int SOURCE_NODE_FIELD_NUMBER = 1; private volatile java.lang.Object sourceNode_; /** + * + * *
          * The source node of the edge. For example, it could be a full resource
          * name for a resource node or an email of an identity.
          * 
    * * string source_node = 1; + * * @return The sourceNode. */ @java.lang.Override @@ -3186,30 +3531,30 @@ public java.lang.String getSourceNode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceNode_ = s; return s; } } /** + * + * *
          * The source node of the edge. For example, it could be a full resource
          * name for a resource node or an email of an identity.
          * 
    * * string source_node = 1; + * * @return The bytes for sourceNode. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceNodeBytes() { + public com.google.protobuf.ByteString getSourceNodeBytes() { java.lang.Object ref = sourceNode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceNode_ = b; return b; } else { @@ -3220,12 +3565,15 @@ public java.lang.String getSourceNode() { public static final int TARGET_NODE_FIELD_NUMBER = 2; private volatile java.lang.Object targetNode_; /** + * + * *
          * The target node of the edge. For example, it could be a full resource
          * name for a resource node or an email of an identity.
          * 
    * * string target_node = 2; + * * @return The targetNode. */ @java.lang.Override @@ -3234,30 +3582,30 @@ public java.lang.String getTargetNode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetNode_ = s; return s; } } /** + * + * *
          * The target node of the edge. For example, it could be a full resource
          * name for a resource node or an email of an identity.
          * 
    * * string target_node = 2; + * * @return The bytes for targetNode. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetNodeBytes() { + public com.google.protobuf.ByteString getTargetNodeBytes() { java.lang.Object ref = targetNode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetNode_ = b; return b; } else { @@ -3266,6 +3614,7 @@ public java.lang.String getTargetNode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3277,8 +3626,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceNode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceNode_); } @@ -3308,17 +3656,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge other = (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge other = + (com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge) obj; - if (!getSourceNode() - .equals(other.getSourceNode())) return false; - if (!getTargetNode() - .equals(other.getTargetNode())) return false; + if (!getSourceNode().equals(other.getSourceNode())) return false; + if (!getTargetNode().equals(other.getTargetNode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3340,87 +3687,94 @@ public int hashCode() { } public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge 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.asset.v1.IamPolicyAnalysisResult.Edge parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3430,39 +3784,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * A directional edge.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.Edge} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.Edge) com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.class, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder.class); } // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -3474,9 +3830,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor; } @java.lang.Override @@ -3495,7 +3851,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge build() { @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge buildPartial() { - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge result = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge(this); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge result = + new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge(this); result.sourceNode_ = sourceNode_; result.targetNode_ = targetNode_; onBuilt(); @@ -3506,38 +3863,41 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicyAnalysisResult.Edge) { - return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge)other); + return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge) other); } else { super.mergeFrom(other); return this; @@ -3545,7 +3905,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge other) { - if (other == com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance()) + return this; if (!other.getSourceNode().isEmpty()) { sourceNode_ = other.sourceNode_; onChanged(); @@ -3580,22 +3941,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - sourceNode_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - targetNode_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + sourceNode_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + targetNode_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3608,19 +3972,21 @@ public Builder mergeFrom( private java.lang.Object sourceNode_ = ""; /** + * + * *
            * The source node of the edge. For example, it could be a full resource
            * name for a resource node or an email of an identity.
            * 
    * * string source_node = 1; + * * @return The sourceNode. */ public java.lang.String getSourceNode() { java.lang.Object ref = sourceNode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceNode_ = s; return s; @@ -3629,21 +3995,22 @@ public java.lang.String getSourceNode() { } } /** + * + * *
            * The source node of the edge. For example, it could be a full resource
            * name for a resource node or an email of an identity.
            * 
    * * string source_node = 1; + * * @return The bytes for sourceNode. */ - public com.google.protobuf.ByteString - getSourceNodeBytes() { + public com.google.protobuf.ByteString getSourceNodeBytes() { java.lang.Object ref = sourceNode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceNode_ = b; return b; } else { @@ -3651,57 +4018,64 @@ public java.lang.String getSourceNode() { } } /** + * + * *
            * The source node of the edge. For example, it could be a full resource
            * name for a resource node or an email of an identity.
            * 
    * * string source_node = 1; + * * @param value The sourceNode to set. * @return This builder for chaining. */ - public Builder setSourceNode( - java.lang.String value) { + public Builder setSourceNode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceNode_ = value; onChanged(); return this; } /** + * + * *
            * The source node of the edge. For example, it could be a full resource
            * name for a resource node or an email of an identity.
            * 
    * * string source_node = 1; + * * @return This builder for chaining. */ public Builder clearSourceNode() { - + sourceNode_ = getDefaultInstance().getSourceNode(); onChanged(); return this; } /** + * + * *
            * The source node of the edge. For example, it could be a full resource
            * name for a resource node or an email of an identity.
            * 
    * * string source_node = 1; + * * @param value The bytes for sourceNode to set. * @return This builder for chaining. */ - public Builder setSourceNodeBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceNodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceNode_ = value; onChanged(); return this; @@ -3709,19 +4083,21 @@ public Builder setSourceNodeBytes( private java.lang.Object targetNode_ = ""; /** + * + * *
            * The target node of the edge. For example, it could be a full resource
            * name for a resource node or an email of an identity.
            * 
    * * string target_node = 2; + * * @return The targetNode. */ public java.lang.String getTargetNode() { java.lang.Object ref = targetNode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetNode_ = s; return s; @@ -3730,21 +4106,22 @@ public java.lang.String getTargetNode() { } } /** + * + * *
            * The target node of the edge. For example, it could be a full resource
            * name for a resource node or an email of an identity.
            * 
    * * string target_node = 2; + * * @return The bytes for targetNode. */ - public com.google.protobuf.ByteString - getTargetNodeBytes() { + public com.google.protobuf.ByteString getTargetNodeBytes() { java.lang.Object ref = targetNode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetNode_ = b; return b; } else { @@ -3752,61 +4129,69 @@ public java.lang.String getTargetNode() { } } /** + * + * *
            * The target node of the edge. For example, it could be a full resource
            * name for a resource node or an email of an identity.
            * 
    * * string target_node = 2; + * * @param value The targetNode to set. * @return This builder for chaining. */ - public Builder setTargetNode( - java.lang.String value) { + public Builder setTargetNode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetNode_ = value; onChanged(); return this; } /** + * + * *
            * The target node of the edge. For example, it could be a full resource
            * name for a resource node or an email of an identity.
            * 
    * * string target_node = 2; + * * @return This builder for chaining. */ public Builder clearTargetNode() { - + targetNode_ = getDefaultInstance().getTargetNode(); onChanged(); return this; } /** + * + * *
            * The target node of the edge. For example, it could be a full resource
            * name for a resource node or an email of an identity.
            * 
    * * string target_node = 2; + * * @param value The bytes for targetNode to set. * @return This builder for chaining. */ - public Builder setTargetNodeBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetNodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetNode_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3819,12 +4204,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.Edge) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.Edge) private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge(); } @@ -3833,27 +4218,28 @@ public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Edge parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Edge parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3868,14 +4254,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface AccessControlListOrBuilder extends + public interface AccessControlListOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * The resources that match one of the following conditions:
          * - The resource_selector, if it is specified in request;
    @@ -3884,9 +4272,10 @@ public interface AccessControlListOrBuilder extends
          *
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
          */
    -    java.util.List 
    -        getResourcesList();
    +    java.util.List getResourcesList();
         /**
    +     *
    +     *
          * 
          * The resources that match one of the following conditions:
          * - The resource_selector, if it is specified in request;
    @@ -3897,6 +4286,8 @@ public interface AccessControlListOrBuilder extends
          */
         com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource getResources(int index);
         /**
    +     *
    +     *
          * 
          * The resources that match one of the following conditions:
          * - The resource_selector, if it is specified in request;
    @@ -3907,6 +4298,8 @@ public interface AccessControlListOrBuilder extends
          */
         int getResourcesCount();
         /**
    +     *
    +     *
          * 
          * The resources that match one of the following conditions:
          * - The resource_selector, if it is specified in request;
    @@ -3915,9 +4308,11 @@ public interface AccessControlListOrBuilder extends
          *
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
          */
    -    java.util.List 
    +    java.util.List
             getResourcesOrBuilderList();
         /**
    +     *
    +     *
          * 
          * The resources that match one of the following conditions:
          * - The resource_selector, if it is specified in request;
    @@ -3930,6 +4325,8 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder getResources
             int index);
     
         /**
    +     *
    +     *
          * 
          * The accesses that match one of the following conditions:
          * - The access_selector, if it is specified in request;
    @@ -3938,9 +4335,10 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder getResources
          *
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;
          */
    -    java.util.List 
    -        getAccessesList();
    +    java.util.List getAccessesList();
         /**
    +     *
    +     *
          * 
          * The accesses that match one of the following conditions:
          * - The access_selector, if it is specified in request;
    @@ -3951,6 +4349,8 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder getResources
          */
         com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access getAccesses(int index);
         /**
    +     *
    +     *
          * 
          * The accesses that match one of the following conditions:
          * - The access_selector, if it is specified in request;
    @@ -3961,6 +4361,8 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder getResources
          */
         int getAccessesCount();
         /**
    +     *
    +     *
          * 
          * The accesses that match one of the following conditions:
          * - The access_selector, if it is specified in request;
    @@ -3969,9 +4371,11 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder getResources
          *
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;
          */
    -    java.util.List 
    +    java.util.List
             getAccessesOrBuilderList();
         /**
    +     *
    +     *
          * 
          * The accesses that match one of the following conditions:
          * - The access_selector, if it is specified in request;
    @@ -3984,6 +4388,8 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAccessesOrB
             int index);
     
         /**
    +     *
    +     *
          * 
          * Resource edges of the graph starting from the policy attached
          * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -3994,9 +4400,10 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAccessesOrB
          *
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;
          */
    -    java.util.List 
    -        getResourceEdgesList();
    +    java.util.List getResourceEdgesList();
         /**
    +     *
    +     *
          * 
          * Resource edges of the graph starting from the policy attached
          * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -4009,6 +4416,8 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAccessesOrB
          */
         com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getResourceEdges(int index);
         /**
    +     *
    +     *
          * 
          * Resource edges of the graph starting from the policy attached
          * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -4021,6 +4430,8 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAccessesOrB
          */
         int getResourceEdgesCount();
         /**
    +     *
    +     *
          * 
          * Resource edges of the graph starting from the policy attached
          * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -4031,9 +4442,11 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAccessesOrB
          *
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;
          */
    -    java.util.List 
    +    java.util.List
             getResourceEdgesOrBuilderList();
         /**
    +     *
    +     *
          * 
          * Resource edges of the graph starting from the policy attached
          * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -4048,26 +4461,34 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getResourceEdges
             int index);
     
         /**
    +     *
    +     *
          * 
          * Condition evaluation for this AccessControlList, if there is a condition
          * defined in the above IAM policy binding.
          * 
    * * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4; + * * @return Whether the conditionEvaluation field is set. */ boolean hasConditionEvaluation(); /** + * + * *
          * Condition evaluation for this AccessControlList, if there is a condition
          * defined in the above IAM policy binding.
          * 
    * * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4; + * * @return The conditionEvaluation. */ com.google.cloud.asset.v1.ConditionEvaluation getConditionEvaluation(); /** + * + * *
          * Condition evaluation for this AccessControlList, if there is a condition
          * defined in the above IAM policy binding.
    @@ -4078,6 +4499,8 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getResourceEdges
         com.google.cloud.asset.v1.ConditionEvaluationOrBuilder getConditionEvaluationOrBuilder();
       }
       /**
    +   *
    +   *
        * 
        * An access control list, derived from the above IAM policy binding, which
        * contains a set of resources and accesses. May include one
    @@ -4095,15 +4518,16 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getResourceEdges
        *
        * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList}
        */
    -  public static final class AccessControlList extends
    -      com.google.protobuf.GeneratedMessageV3 implements
    +  public static final class AccessControlList extends com.google.protobuf.GeneratedMessageV3
    +      implements
           // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList)
           AccessControlListOrBuilder {
    -  private static final long serialVersionUID = 0L;
    +    private static final long serialVersionUID = 0L;
         // Use AccessControlList.newBuilder() to construct.
         private AccessControlList(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
    +
         private AccessControlList() {
           resources_ = java.util.Collections.emptyList();
           accesses_ = java.util.Collections.emptyList();
    @@ -4112,32 +4536,35 @@ private AccessControlList() {
     
         @java.lang.Override
         @SuppressWarnings({"unused"})
    -    protected java.lang.Object newInstance(
    -        UnusedPrivateParameter unused) {
    +    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
           return new AccessControlList();
         }
     
         @java.lang.Override
    -    public final com.google.protobuf.UnknownFieldSet
    -    getUnknownFields() {
    +    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
           return this.unknownFields;
         }
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor;
    +
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder.class);
    +              com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.class,
    +              com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder.class);
         }
     
         public static final int RESOURCES_FIELD_NUMBER = 1;
         private java.util.List resources_;
         /**
    +     *
    +     *
          * 
          * The resources that match one of the following conditions:
          * - The resource_selector, if it is specified in request;
    @@ -4147,10 +4574,13 @@ protected java.lang.Object newInstance(
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
          */
         @java.lang.Override
    -    public java.util.List getResourcesList() {
    +    public java.util.List
    +        getResourcesList() {
           return resources_;
         }
         /**
    +     *
    +     *
          * 
          * The resources that match one of the following conditions:
          * - The resource_selector, if it is specified in request;
    @@ -4160,11 +4590,14 @@ public java.util.Listrepeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
          */
         @java.lang.Override
    -    public java.util.List 
    +    public java.util.List<
    +            ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder>
             getResourcesOrBuilderList() {
           return resources_;
         }
         /**
    +     *
    +     *
          * 
          * The resources that match one of the following conditions:
          * - The resource_selector, if it is specified in request;
    @@ -4178,6 +4611,8 @@ public int getResourcesCount() {
           return resources_.size();
         }
         /**
    +     *
    +     *
          * 
          * The resources that match one of the following conditions:
          * - The resource_selector, if it is specified in request;
    @@ -4191,6 +4626,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource getResources(i
           return resources_.get(index);
         }
         /**
    +     *
    +     *
          * 
          * The resources that match one of the following conditions:
          * - The resource_selector, if it is specified in request;
    @@ -4200,14 +4637,16 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource getResources(i
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1;
          */
         @java.lang.Override
    -    public com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder getResourcesOrBuilder(
    -        int index) {
    +    public com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder
    +        getResourcesOrBuilder(int index) {
           return resources_.get(index);
         }
     
         public static final int ACCESSES_FIELD_NUMBER = 2;
         private java.util.List accesses_;
         /**
    +     *
    +     *
          * 
          * The accesses that match one of the following conditions:
          * - The access_selector, if it is specified in request;
    @@ -4217,10 +4656,13 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder getRe
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;
          */
         @java.lang.Override
    -    public java.util.List getAccessesList() {
    +    public java.util.List
    +        getAccessesList() {
           return accesses_;
         }
         /**
    +     *
    +     *
          * 
          * The accesses that match one of the following conditions:
          * - The access_selector, if it is specified in request;
    @@ -4230,11 +4672,14 @@ public java.util.List
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;
          */
         @java.lang.Override
    -    public java.util.List 
    +    public java.util.List<
    +            ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder>
             getAccessesOrBuilderList() {
           return accesses_;
         }
         /**
    +     *
    +     *
          * 
          * The accesses that match one of the following conditions:
          * - The access_selector, if it is specified in request;
    @@ -4248,6 +4693,8 @@ public int getAccessesCount() {
           return accesses_.size();
         }
         /**
    +     *
    +     *
          * 
          * The accesses that match one of the following conditions:
          * - The access_selector, if it is specified in request;
    @@ -4261,6 +4708,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access getAccesses(int
           return accesses_.get(index);
         }
         /**
    +     *
    +     *
          * 
          * The accesses that match one of the following conditions:
          * - The access_selector, if it is specified in request;
    @@ -4278,6 +4727,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAcce
         public static final int RESOURCE_EDGES_FIELD_NUMBER = 3;
         private java.util.List resourceEdges_;
         /**
    +     *
    +     *
          * 
          * Resource edges of the graph starting from the policy attached
          * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -4289,10 +4740,13 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAcce
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;
          */
         @java.lang.Override
    -    public java.util.List getResourceEdgesList() {
    +    public java.util.List
    +        getResourceEdgesList() {
           return resourceEdges_;
         }
         /**
    +     *
    +     *
          * 
          * Resource edges of the graph starting from the policy attached
          * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -4304,11 +4758,13 @@ public java.util.List ge
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;
          */
         @java.lang.Override
    -    public java.util.List 
    +    public java.util.List
             getResourceEdgesOrBuilderList() {
           return resourceEdges_;
         }
         /**
    +     *
    +     *
          * 
          * Resource edges of the graph starting from the policy attached
          * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -4324,6 +4780,8 @@ public int getResourceEdgesCount() {
           return resourceEdges_.size();
         }
         /**
    +     *
    +     *
          * 
          * Resource edges of the graph starting from the policy attached
          * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -4339,6 +4797,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getResourceEdges(i
           return resourceEdges_.get(index);
         }
         /**
    +     *
    +     *
          * 
          * Resource edges of the graph starting from the policy attached
          * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -4350,20 +4810,23 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getResourceEdges(i
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3;
          */
         @java.lang.Override
    -    public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getResourceEdgesOrBuilder(
    -        int index) {
    +    public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder
    +        getResourceEdgesOrBuilder(int index) {
           return resourceEdges_.get(index);
         }
     
         public static final int CONDITION_EVALUATION_FIELD_NUMBER = 4;
         private com.google.cloud.asset.v1.ConditionEvaluation conditionEvaluation_;
         /**
    +     *
    +     *
          * 
          * Condition evaluation for this AccessControlList, if there is a condition
          * defined in the above IAM policy binding.
          * 
    * * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4; + * * @return Whether the conditionEvaluation field is set. */ @java.lang.Override @@ -4371,19 +4834,26 @@ public boolean hasConditionEvaluation() { return conditionEvaluation_ != null; } /** + * + * *
          * Condition evaluation for this AccessControlList, if there is a condition
          * defined in the above IAM policy binding.
          * 
    * * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4; + * * @return The conditionEvaluation. */ @java.lang.Override public com.google.cloud.asset.v1.ConditionEvaluation getConditionEvaluation() { - return conditionEvaluation_ == null ? com.google.cloud.asset.v1.ConditionEvaluation.getDefaultInstance() : conditionEvaluation_; + return conditionEvaluation_ == null + ? com.google.cloud.asset.v1.ConditionEvaluation.getDefaultInstance() + : conditionEvaluation_; } /** + * + * *
          * Condition evaluation for this AccessControlList, if there is a condition
          * defined in the above IAM policy binding.
    @@ -4392,11 +4862,13 @@ public com.google.cloud.asset.v1.ConditionEvaluation getConditionEvaluation() {
          * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4;
          */
         @java.lang.Override
    -    public com.google.cloud.asset.v1.ConditionEvaluationOrBuilder getConditionEvaluationOrBuilder() {
    +    public com.google.cloud.asset.v1.ConditionEvaluationOrBuilder
    +        getConditionEvaluationOrBuilder() {
           return getConditionEvaluation();
         }
     
         private byte memoizedIsInitialized = -1;
    +
         @java.lang.Override
         public final boolean isInitialized() {
           byte isInitialized = memoizedIsInitialized;
    @@ -4408,8 +4880,7 @@ public final boolean isInitialized() {
         }
     
         @java.lang.Override
    -    public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                        throws java.io.IOException {
    +    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
           for (int i = 0; i < resources_.size(); i++) {
             output.writeMessage(1, resources_.get(i));
           }
    @@ -4432,20 +4903,17 @@ public int getSerializedSize() {
     
           size = 0;
           for (int i = 0; i < resources_.size(); i++) {
    -        size += com.google.protobuf.CodedOutputStream
    -          .computeMessageSize(1, resources_.get(i));
    +        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resources_.get(i));
           }
           for (int i = 0; i < accesses_.size(); i++) {
    -        size += com.google.protobuf.CodedOutputStream
    -          .computeMessageSize(2, accesses_.get(i));
    +        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, accesses_.get(i));
           }
           for (int i = 0; i < resourceEdges_.size(); i++) {
    -        size += com.google.protobuf.CodedOutputStream
    -          .computeMessageSize(3, resourceEdges_.get(i));
    +        size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, resourceEdges_.get(i));
           }
           if (conditionEvaluation_ != null) {
    -        size += com.google.protobuf.CodedOutputStream
    -          .computeMessageSize(4, getConditionEvaluation());
    +        size +=
    +            com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConditionEvaluation());
           }
           size += getUnknownFields().getSerializedSize();
           memoizedSize = size;
    @@ -4455,23 +4923,20 @@ public int getSerializedSize() {
         @java.lang.Override
         public boolean equals(final java.lang.Object obj) {
           if (obj == this) {
    -       return true;
    +        return true;
           }
           if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList)) {
             return super.equals(obj);
           }
    -      com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList other = (com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList) obj;
    +      com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList other =
    +          (com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList) obj;
     
    -      if (!getResourcesList()
    -          .equals(other.getResourcesList())) return false;
    -      if (!getAccessesList()
    -          .equals(other.getAccessesList())) return false;
    -      if (!getResourceEdgesList()
    -          .equals(other.getResourceEdgesList())) return false;
    +      if (!getResourcesList().equals(other.getResourcesList())) return false;
    +      if (!getAccessesList().equals(other.getAccessesList())) return false;
    +      if (!getResourceEdgesList().equals(other.getResourceEdgesList())) return false;
           if (hasConditionEvaluation() != other.hasConditionEvaluation()) return false;
           if (hasConditionEvaluation()) {
    -        if (!getConditionEvaluation()
    -            .equals(other.getConditionEvaluation())) return false;
    +        if (!getConditionEvaluation().equals(other.getConditionEvaluation())) return false;
           }
           if (!getUnknownFields().equals(other.getUnknownFields())) return false;
           return true;
    @@ -4506,87 +4971,95 @@ public int hashCode() {
         }
     
         public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
    -        java.nio.ByteBuffer data)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    +        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
    +
         public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
    -        java.nio.ByteBuffer data,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data, extensionRegistry);
         }
    +
         public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
             com.google.protobuf.ByteString data)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
    +
         public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList 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.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(byte[] data)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    +
    +    public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
    +        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
    +
         public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
    -        byte[] data,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data, extensionRegistry);
         }
    -    public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(java.io.InputStream input)
    -        throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3
    -          .parseWithIOException(PARSER, input);
    +
    +    public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
    +        java.io.InputStream input) throws java.io.IOException {
    +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
         }
    +
         public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
    -        java.io.InputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3
    -          .parseWithIOException(PARSER, input, extensionRegistry);
    +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +          PARSER, input, extensionRegistry);
         }
    -    public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseDelimitedFrom(java.io.InputStream input)
    -        throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3
    -          .parseDelimitedWithIOException(PARSER, input);
    +
    +    public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
    +        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
    +      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
         }
    -    public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList 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.asset.v1.IamPolicyAnalysisResult.AccessControlList
    +        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.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
    -        com.google.protobuf.CodedInputStream input)
    -        throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3
    -          .parseWithIOException(PARSER, input);
    +        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
         }
    +
         public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList parseFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3
    -          .parseWithIOException(PARSER, input, extensionRegistry);
    +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +          PARSER, input, extensionRegistry);
         }
     
         @java.lang.Override
    -    public Builder newBuilderForType() { return newBuilder(); }
    +    public Builder newBuilderForType() {
    +      return newBuilder();
    +    }
    +
         public static Builder newBuilder() {
           return DEFAULT_INSTANCE.toBuilder();
         }
    -    public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList prototype) {
    +
    +    public static Builder newBuilder(
    +        com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList prototype) {
           return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
         }
    +
         @java.lang.Override
         public Builder toBuilder() {
    -      return this == DEFAULT_INSTANCE
    -          ? new Builder() : new Builder().mergeFrom(this);
    +      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
         }
     
         @java.lang.Override
    @@ -4596,6 +5069,8 @@ protected Builder newBuilderForType(
           return builder;
         }
         /**
    +     *
    +     *
          * 
          * An access control list, derived from the above IAM policy binding, which
          * contains a set of resources and accesses. May include one
    @@ -4613,33 +5088,34 @@ protected Builder newBuilderForType(
          *
          * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList}
          */
    -    public static final class Builder extends
    -        com.google.protobuf.GeneratedMessageV3.Builder implements
    +    public static final class Builder
    +        extends com.google.protobuf.GeneratedMessageV3.Builder
    +        implements
             // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList)
             com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder {
    -      public static final com.google.protobuf.Descriptors.Descriptor
    -          getDescriptor() {
    -        return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor;
    +      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +        return com.google.cloud.asset.v1.AssetProto
    +            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor;
           }
     
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
    -        return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_fieldAccessorTable
    +        return com.google.cloud.asset.v1.AssetProto
    +            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
    -                com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder.class);
    +                com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.class,
    +                com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder.class);
           }
     
    -      // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.newBuilder()
    -      private Builder() {
    +      // Construct using
    +      // com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.newBuilder()
    +      private Builder() {}
     
    -      }
    -
    -      private Builder(
    -          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
    -
           }
    +
           @java.lang.Override
           public Builder clear() {
             super.clear();
    @@ -4674,14 +5150,16 @@ public Builder clear() {
           }
     
           @java.lang.Override
    -      public com.google.protobuf.Descriptors.Descriptor
    -          getDescriptorForType() {
    -        return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor;
    +      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +        return com.google.cloud.asset.v1.AssetProto
    +            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor;
           }
     
           @java.lang.Override
    -      public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getDefaultInstanceForType() {
    -        return com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.getDefaultInstance();
    +      public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
    +          getDefaultInstanceForType() {
    +        return com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
    +            .getDefaultInstance();
           }
     
           @java.lang.Override
    @@ -4695,7 +5173,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList build
     
           @java.lang.Override
           public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList buildPartial() {
    -        com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList result = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList(this);
    +        com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList result =
    +            new com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList(this);
             int from_bitField0_ = bitField0_;
             if (resourcesBuilder_ == null) {
               if (((bitField0_ & 0x00000001) != 0)) {
    @@ -4737,46 +5216,53 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList build
           public Builder clone() {
             return super.clone();
           }
    +
           @java.lang.Override
           public Builder setField(
    -          com.google.protobuf.Descriptors.FieldDescriptor field,
    -          java.lang.Object value) {
    +          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) {
    +      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) {
    +      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) {
    +          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) {
    +          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.asset.v1.IamPolicyAnalysisResult.AccessControlList) {
    -          return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList)other);
    +          return mergeFrom(
    +              (com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList) other);
             } else {
               super.mergeFrom(other);
               return this;
             }
           }
     
    -      public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList other) {
    -        if (other == com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.getDefaultInstance()) return this;
    +      public Builder mergeFrom(
    +          com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList other) {
    +        if (other
    +            == com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
    +                .getDefaultInstance()) return this;
             if (resourcesBuilder_ == null) {
               if (!other.resources_.isEmpty()) {
                 if (resources_.isEmpty()) {
    @@ -4795,9 +5281,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Acces
                   resourcesBuilder_ = null;
                   resources_ = other.resources_;
                   bitField0_ = (bitField0_ & ~0x00000001);
    -              resourcesBuilder_ = 
    -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
    -                   getResourcesFieldBuilder() : null;
    +              resourcesBuilder_ =
    +                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
    +                      ? getResourcesFieldBuilder()
    +                      : null;
                 } else {
                   resourcesBuilder_.addAllMessages(other.resources_);
                 }
    @@ -4821,9 +5308,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Acces
                   accessesBuilder_ = null;
                   accesses_ = other.accesses_;
                   bitField0_ = (bitField0_ & ~0x00000002);
    -              accessesBuilder_ = 
    -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
    -                   getAccessesFieldBuilder() : null;
    +              accessesBuilder_ =
    +                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
    +                      ? getAccessesFieldBuilder()
    +                      : null;
                 } else {
                   accessesBuilder_.addAllMessages(other.accesses_);
                 }
    @@ -4847,9 +5335,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Acces
                   resourceEdgesBuilder_ = null;
                   resourceEdges_ = other.resourceEdges_;
                   bitField0_ = (bitField0_ & ~0x00000004);
    -              resourceEdgesBuilder_ = 
    -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
    -                   getResourceEdgesFieldBuilder() : null;
    +              resourceEdgesBuilder_ =
    +                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
    +                      ? getResourceEdgesFieldBuilder()
    +                      : null;
                 } else {
                   resourceEdgesBuilder_.addAllMessages(other.resourceEdges_);
                 }
    @@ -4884,58 +5373,62 @@ public Builder mergeFrom(
                   case 0:
                     done = true;
                     break;
    -              case 10: {
    -                com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource m =
    -                    input.readMessage(
    -                        com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.parser(),
    -                        extensionRegistry);
    -                if (resourcesBuilder_ == null) {
    -                  ensureResourcesIsMutable();
    -                  resources_.add(m);
    -                } else {
    -                  resourcesBuilder_.addMessage(m);
    -                }
    -                break;
    -              } // case 10
    -              case 18: {
    -                com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access m =
    -                    input.readMessage(
    -                        com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.parser(),
    -                        extensionRegistry);
    -                if (accessesBuilder_ == null) {
    -                  ensureAccessesIsMutable();
    -                  accesses_.add(m);
    -                } else {
    -                  accessesBuilder_.addMessage(m);
    -                }
    -                break;
    -              } // case 18
    -              case 26: {
    -                com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge m =
    -                    input.readMessage(
    -                        com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.parser(),
    -                        extensionRegistry);
    -                if (resourceEdgesBuilder_ == null) {
    -                  ensureResourceEdgesIsMutable();
    -                  resourceEdges_.add(m);
    -                } else {
    -                  resourceEdgesBuilder_.addMessage(m);
    -                }
    -                break;
    -              } // case 26
    -              case 34: {
    -                input.readMessage(
    -                    getConditionEvaluationFieldBuilder().getBuilder(),
    -                    extensionRegistry);
    -
    -                break;
    -              } // case 34
    -              default: {
    -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                  done = true; // was an endgroup tag
    -                }
    -                break;
    -              } // default:
    +              case 10:
    +                {
    +                  com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource m =
    +                      input.readMessage(
    +                          com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.parser(),
    +                          extensionRegistry);
    +                  if (resourcesBuilder_ == null) {
    +                    ensureResourcesIsMutable();
    +                    resources_.add(m);
    +                  } else {
    +                    resourcesBuilder_.addMessage(m);
    +                  }
    +                  break;
    +                } // case 10
    +              case 18:
    +                {
    +                  com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access m =
    +                      input.readMessage(
    +                          com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.parser(),
    +                          extensionRegistry);
    +                  if (accessesBuilder_ == null) {
    +                    ensureAccessesIsMutable();
    +                    accesses_.add(m);
    +                  } else {
    +                    accessesBuilder_.addMessage(m);
    +                  }
    +                  break;
    +                } // case 18
    +              case 26:
    +                {
    +                  com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge m =
    +                      input.readMessage(
    +                          com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.parser(),
    +                          extensionRegistry);
    +                  if (resourceEdgesBuilder_ == null) {
    +                    ensureResourceEdgesIsMutable();
    +                    resourceEdges_.add(m);
    +                  } else {
    +                    resourceEdgesBuilder_.addMessage(m);
    +                  }
    +                  break;
    +                } // case 26
    +              case 34:
    +                {
    +                  input.readMessage(
    +                      getConditionEvaluationFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                  break;
    +                } // case 34
    +              default:
    +                {
    +                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                    done = true; // was an endgroup tag
    +                  }
    +                  break;
    +                } // default:
                 } // switch (tag)
               } // while (!done)
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -4945,30 +5438,41 @@ public Builder mergeFrom(
             } // finally
             return this;
           }
    +
           private int bitField0_;
     
    -      private java.util.List resources_ =
    -        java.util.Collections.emptyList();
    +      private java.util.List
    +          resources_ = java.util.Collections.emptyList();
    +
           private void ensureResourcesIsMutable() {
             if (!((bitField0_ & 0x00000001) != 0)) {
    -          resources_ = new java.util.ArrayList(resources_);
    +          resources_ =
    +              new java.util.ArrayList(
    +                  resources_);
               bitField0_ |= 0x00000001;
    -         }
    +        }
           }
     
           private com.google.protobuf.RepeatedFieldBuilderV3<
    -          com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder> resourcesBuilder_;
    +              com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource,
    +              com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder,
    +              com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder>
    +          resourcesBuilder_;
     
           /**
    +       *
    +       *
            * 
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * */ - public java.util.List getResourcesList() { + public java.util.List + getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { @@ -4976,13 +5480,16 @@ public java.util.List * The resources that match one of the following conditions: * - The resource_selector, if it is specified in request; * - Otherwise, resources reachable from the policy attached resource. *
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * */ public int getResourcesCount() { if (resourcesBuilder_ == null) { @@ -4992,13 +5499,16 @@ public int getResourcesCount() { } } /** + * + * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * */ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource getResources(int index) { if (resourcesBuilder_ == null) { @@ -5008,13 +5518,16 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource getResources(i } } /** + * + * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * */ public Builder setResources( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource value) { @@ -5031,16 +5544,20 @@ public Builder setResources( return this; } /** + * + * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * */ public Builder setResources( - int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder builderForValue) { + int index, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); @@ -5051,15 +5568,19 @@ public Builder setResources( return this; } /** + * + * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * */ - public Builder addResources(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource value) { + public Builder addResources( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5073,13 +5594,16 @@ public Builder addResources(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Re return this; } /** + * + * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * */ public Builder addResources( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource value) { @@ -5096,13 +5620,16 @@ public Builder addResources( return this; } /** + * + * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * */ public Builder addResources( com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder builderForValue) { @@ -5116,16 +5643,20 @@ public Builder addResources( return this; } /** + * + * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * */ public Builder addResources( - int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder builderForValue) { + int index, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); @@ -5136,20 +5667,23 @@ public Builder addResources( return this; } /** + * + * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * */ public Builder addAllResources( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); @@ -5157,13 +5691,16 @@ public Builder addAllResources( return this; } /** + * + * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * */ public Builder clearResources() { if (resourcesBuilder_ == null) { @@ -5176,13 +5713,16 @@ public Builder clearResources() { return this; } /** + * + * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { @@ -5195,45 +5735,56 @@ public Builder removeResources(int index) { return this; } /** + * + * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * */ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder getResourcesBuilder( int index) { return getResourcesFieldBuilder().getBuilder(index); } /** + * + * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder getResourcesOrBuilder( - int index) { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder + getResourcesOrBuilder(int index) { if (resourcesBuilder_ == null) { - return resources_.get(index); } else { + return resources_.get(index); + } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * */ - public java.util.List - getResourcesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder> + getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { @@ -5241,73 +5792,97 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder getRe } } /** + * + * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder addResourcesBuilder() { - return getResourcesFieldBuilder().addBuilder( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.getDefaultInstance()); + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder + addResourcesBuilder() { + return getResourcesFieldBuilder() + .addBuilder( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.getDefaultInstance()); } /** + * + * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * */ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder addResourcesBuilder( int index) { - return getResourcesFieldBuilder().addBuilder( - index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.getDefaultInstance()); + return getResourcesFieldBuilder() + .addBuilder( + index, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.getDefaultInstance()); } /** + * + * *
            * The resources that match one of the following conditions:
            * - The resource_selector, if it is specified in request;
            * - Otherwise, resources reachable from the policy attached resource.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; + * */ - public java.util.List - getResourcesBuilderList() { + public java.util.List + getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { - resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder>( - resources_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + resourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Resource.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.ResourceOrBuilder>( + resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private java.util.List accesses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAccessesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - accesses_ = new java.util.ArrayList(accesses_); + accesses_ = + new java.util.ArrayList( + accesses_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder> accessesBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder> + accessesBuilder_; /** + * + * *
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -5316,7 +5891,8 @@ private void ensureAccessesIsMutable() {
            *
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;
            */
    -      public java.util.List getAccessesList() {
    +      public java.util.List
    +          getAccessesList() {
             if (accessesBuilder_ == null) {
               return java.util.Collections.unmodifiableList(accesses_);
             } else {
    @@ -5324,6 +5900,8 @@ public java.util.List
             }
           }
           /**
    +       *
    +       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -5340,6 +5918,8 @@ public int getAccessesCount() {
             }
           }
           /**
    +       *
    +       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -5356,6 +5936,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access getAccesses(int
             }
           }
           /**
    +       *
    +       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -5379,6 +5961,8 @@ public Builder setAccesses(
             return this;
           }
           /**
    +       *
    +       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -5388,7 +5972,8 @@ public Builder setAccesses(
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;
            */
           public Builder setAccesses(
    -          int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder builderForValue) {
    +          int index,
    +          com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder builderForValue) {
             if (accessesBuilder_ == null) {
               ensureAccessesIsMutable();
               accesses_.set(index, builderForValue.build());
    @@ -5399,6 +5984,8 @@ public Builder setAccesses(
             return this;
           }
           /**
    +       *
    +       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -5421,6 +6008,8 @@ public Builder addAccesses(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Acc
             return this;
           }
           /**
    +       *
    +       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -5444,6 +6033,8 @@ public Builder addAccesses(
             return this;
           }
           /**
    +       *
    +       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -5464,6 +6055,8 @@ public Builder addAccesses(
             return this;
           }
           /**
    +       *
    +       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -5473,7 +6066,8 @@ public Builder addAccesses(
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;
            */
           public Builder addAccesses(
    -          int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder builderForValue) {
    +          int index,
    +          com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder builderForValue) {
             if (accessesBuilder_ == null) {
               ensureAccessesIsMutable();
               accesses_.add(index, builderForValue.build());
    @@ -5484,6 +6078,8 @@ public Builder addAccesses(
             return this;
           }
           /**
    +       *
    +       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -5493,11 +6089,11 @@ public Builder addAccesses(
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;
            */
           public Builder addAllAccesses(
    -          java.lang.Iterable values) {
    +          java.lang.Iterable
    +              values) {
             if (accessesBuilder_ == null) {
               ensureAccessesIsMutable();
    -          com.google.protobuf.AbstractMessageLite.Builder.addAll(
    -              values, accesses_);
    +          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accesses_);
               onChanged();
             } else {
               accessesBuilder_.addAllMessages(values);
    @@ -5505,6 +6101,8 @@ public Builder addAllAccesses(
             return this;
           }
           /**
    +       *
    +       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -5524,6 +6122,8 @@ public Builder clearAccesses() {
             return this;
           }
           /**
    +       *
    +       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -5543,6 +6143,8 @@ public Builder removeAccesses(int index) {
             return this;
           }
           /**
    +       *
    +       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -5556,6 +6158,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder getAcces
             return getAccessesFieldBuilder().getBuilder(index);
           }
           /**
    +       *
    +       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -5567,11 +6171,14 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder getAcces
           public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAccessesOrBuilder(
               int index) {
             if (accessesBuilder_ == null) {
    -          return accesses_.get(index);  } else {
    +          return accesses_.get(index);
    +        } else {
               return accessesBuilder_.getMessageOrBuilder(index);
             }
           }
           /**
    +       *
    +       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -5580,8 +6187,9 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAcce
            *
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;
            */
    -      public java.util.List 
    -           getAccessesOrBuilderList() {
    +      public java.util.List<
    +              ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder>
    +          getAccessesOrBuilderList() {
             if (accessesBuilder_ != null) {
               return accessesBuilder_.getMessageOrBuilderList();
             } else {
    @@ -5589,6 +6197,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAcce
             }
           }
           /**
    +       *
    +       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -5598,10 +6208,13 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder getAcce
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;
            */
           public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder addAccessesBuilder() {
    -        return getAccessesFieldBuilder().addBuilder(
    -            com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.getDefaultInstance());
    +        return getAccessesFieldBuilder()
    +            .addBuilder(
    +                com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.getDefaultInstance());
           }
           /**
    +       *
    +       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -5612,10 +6225,14 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder addAcces
            */
           public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder addAccessesBuilder(
               int index) {
    -        return getAccessesFieldBuilder().addBuilder(
    -            index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.getDefaultInstance());
    +        return getAccessesFieldBuilder()
    +            .addBuilder(
    +                index,
    +                com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.getDefaultInstance());
           }
           /**
    +       *
    +       *
            * 
            * The accesses that match one of the following conditions:
            * - The access_selector, if it is specified in request;
    @@ -5624,38 +6241,49 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder addAcces
            *
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2;
            */
    -      public java.util.List 
    -           getAccessesBuilderList() {
    +      public java.util.List
    +          getAccessesBuilderList() {
             return getAccessesFieldBuilder().getBuilderList();
           }
    +
           private com.google.protobuf.RepeatedFieldBuilderV3<
    -          com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder> 
    +              com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access,
    +              com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder,
    +              com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder>
               getAccessesFieldBuilder() {
             if (accessesBuilder_ == null) {
    -          accessesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    -              com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder>(
    -                  accesses_,
    -                  ((bitField0_ & 0x00000002) != 0),
    -                  getParentForChildren(),
    -                  isClean());
    +          accessesBuilder_ =
    +              new com.google.protobuf.RepeatedFieldBuilderV3<
    +                  com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access,
    +                  com.google.cloud.asset.v1.IamPolicyAnalysisResult.Access.Builder,
    +                  com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessOrBuilder>(
    +                  accesses_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
               accesses_ = null;
             }
             return accessesBuilder_;
           }
     
    -      private java.util.List resourceEdges_ =
    -        java.util.Collections.emptyList();
    +      private java.util.List
    +          resourceEdges_ = java.util.Collections.emptyList();
    +
           private void ensureResourceEdgesIsMutable() {
             if (!((bitField0_ & 0x00000004) != 0)) {
    -          resourceEdges_ = new java.util.ArrayList(resourceEdges_);
    +          resourceEdges_ =
    +              new java.util.ArrayList(
    +                  resourceEdges_);
               bitField0_ |= 0x00000004;
    -         }
    +        }
           }
     
           private com.google.protobuf.RepeatedFieldBuilderV3<
    -          com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder> resourceEdgesBuilder_;
    +              com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge,
    +              com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder,
    +              com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder>
    +          resourceEdgesBuilder_;
     
           /**
    +       *
    +       *
            * 
            * Resource edges of the graph starting from the policy attached
            * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -5664,9 +6292,11 @@ private void ensureResourceEdgesIsMutable() {
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * */ - public java.util.List getResourceEdgesList() { + public java.util.List + getResourceEdgesList() { if (resourceEdgesBuilder_ == null) { return java.util.Collections.unmodifiableList(resourceEdges_); } else { @@ -5674,6 +6304,8 @@ public java.util.List ge } } /** + * + * *
            * Resource edges of the graph starting from the policy attached
            * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -5682,7 +6314,8 @@ public java.util.List ge
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * */ public int getResourceEdgesCount() { if (resourceEdgesBuilder_ == null) { @@ -5692,6 +6325,8 @@ public int getResourceEdgesCount() { } } /** + * + * *
            * Resource edges of the graph starting from the policy attached
            * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -5700,7 +6335,8 @@ public int getResourceEdgesCount() {
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * */ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getResourceEdges(int index) { if (resourceEdgesBuilder_ == null) { @@ -5710,6 +6346,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getResourceEdges(i } } /** + * + * *
            * Resource edges of the graph starting from the policy attached
            * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -5718,7 +6356,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getResourceEdges(i
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * */ public Builder setResourceEdges( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge value) { @@ -5735,6 +6374,8 @@ public Builder setResourceEdges( return this; } /** + * + * *
            * Resource edges of the graph starting from the policy attached
            * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -5743,10 +6384,12 @@ public Builder setResourceEdges(
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * */ public Builder setResourceEdges( - int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue) { + int index, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue) { if (resourceEdgesBuilder_ == null) { ensureResourceEdgesIsMutable(); resourceEdges_.set(index, builderForValue.build()); @@ -5757,6 +6400,8 @@ public Builder setResourceEdges( return this; } /** + * + * *
            * Resource edges of the graph starting from the policy attached
            * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -5765,9 +6410,11 @@ public Builder setResourceEdges(
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * */ - public Builder addResourceEdges(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge value) { + public Builder addResourceEdges( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge value) { if (resourceEdgesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5781,6 +6428,8 @@ public Builder addResourceEdges(com.google.cloud.asset.v1.IamPolicyAnalysisResul return this; } /** + * + * *
            * Resource edges of the graph starting from the policy attached
            * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -5789,7 +6438,8 @@ public Builder addResourceEdges(com.google.cloud.asset.v1.IamPolicyAnalysisResul
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * */ public Builder addResourceEdges( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge value) { @@ -5806,6 +6456,8 @@ public Builder addResourceEdges( return this; } /** + * + * *
            * Resource edges of the graph starting from the policy attached
            * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -5814,7 +6466,8 @@ public Builder addResourceEdges(
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * */ public Builder addResourceEdges( com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue) { @@ -5828,6 +6481,8 @@ public Builder addResourceEdges( return this; } /** + * + * *
            * Resource edges of the graph starting from the policy attached
            * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -5836,10 +6491,12 @@ public Builder addResourceEdges(
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * */ public Builder addResourceEdges( - int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue) { + int index, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue) { if (resourceEdgesBuilder_ == null) { ensureResourceEdgesIsMutable(); resourceEdges_.add(index, builderForValue.build()); @@ -5850,6 +6507,8 @@ public Builder addResourceEdges( return this; } /** + * + * *
            * Resource edges of the graph starting from the policy attached
            * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -5858,14 +6517,15 @@ public Builder addResourceEdges(
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * */ public Builder addAllResourceEdges( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (resourceEdgesBuilder_ == null) { ensureResourceEdgesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resourceEdges_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceEdges_); onChanged(); } else { resourceEdgesBuilder_.addAllMessages(values); @@ -5873,6 +6533,8 @@ public Builder addAllResourceEdges( return this; } /** + * + * *
            * Resource edges of the graph starting from the policy attached
            * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -5881,7 +6543,8 @@ public Builder addAllResourceEdges(
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * */ public Builder clearResourceEdges() { if (resourceEdgesBuilder_ == null) { @@ -5894,6 +6557,8 @@ public Builder clearResourceEdges() { return this; } /** + * + * *
            * Resource edges of the graph starting from the policy attached
            * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -5902,7 +6567,8 @@ public Builder clearResourceEdges() {
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * */ public Builder removeResourceEdges(int index) { if (resourceEdgesBuilder_ == null) { @@ -5915,6 +6581,8 @@ public Builder removeResourceEdges(int index) { return this; } /** + * + * *
            * Resource edges of the graph starting from the policy attached
            * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -5923,13 +6591,16 @@ public Builder removeResourceEdges(int index) {
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * */ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder getResourceEdgesBuilder( int index) { return getResourceEdgesFieldBuilder().getBuilder(index); } /** + * + * *
            * Resource edges of the graph starting from the policy attached
            * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -5938,16 +6609,20 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder getResourc
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getResourceEdgesOrBuilder( - int index) { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder + getResourceEdgesOrBuilder(int index) { if (resourceEdgesBuilder_ == null) { - return resourceEdges_.get(index); } else { + return resourceEdges_.get(index); + } else { return resourceEdgesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
            * Resource edges of the graph starting from the policy attached
            * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -5956,10 +6631,12 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getResour
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * */ - public java.util.List - getResourceEdgesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder> + getResourceEdgesOrBuilderList() { if (resourceEdgesBuilder_ != null) { return resourceEdgesBuilder_.getMessageOrBuilderList(); } else { @@ -5967,6 +6644,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getResour } } /** + * + * *
            * Resource edges of the graph starting from the policy attached
            * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -5975,13 +6654,18 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getResour
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder addResourceEdgesBuilder() { - return getResourceEdgesFieldBuilder().addBuilder( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance()); + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder + addResourceEdgesBuilder() { + return getResourceEdgesFieldBuilder() + .addBuilder( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance()); } /** + * + * *
            * Resource edges of the graph starting from the policy attached
            * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -5990,14 +6674,18 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder addResourc
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * */ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder addResourceEdgesBuilder( int index) { - return getResourceEdgesFieldBuilder().addBuilder( - index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance()); + return getResourceEdgesFieldBuilder() + .addBuilder( + index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance()); } /** + * + * *
            * Resource edges of the graph starting from the policy attached
            * resource to any descendant resources. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node] contains
    @@ -6006,18 +6694,25 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder addResourc
            * present only if the output_resource_edges option is enabled in request.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; + * */ - public java.util.List - getResourceEdgesBuilderList() { + public java.util.List + getResourceEdgesBuilderList() { return getResourceEdgesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder> getResourceEdgesFieldBuilder() { if (resourceEdgesBuilder_ == null) { - resourceEdgesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder>( + resourceEdgesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder>( resourceEdges_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -6029,36 +6724,49 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder addResourc private com.google.cloud.asset.v1.ConditionEvaluation conditionEvaluation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.ConditionEvaluation, com.google.cloud.asset.v1.ConditionEvaluation.Builder, com.google.cloud.asset.v1.ConditionEvaluationOrBuilder> conditionEvaluationBuilder_; + com.google.cloud.asset.v1.ConditionEvaluation, + com.google.cloud.asset.v1.ConditionEvaluation.Builder, + com.google.cloud.asset.v1.ConditionEvaluationOrBuilder> + conditionEvaluationBuilder_; /** + * + * *
            * Condition evaluation for this AccessControlList, if there is a condition
            * defined in the above IAM policy binding.
            * 
    * * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4; + * * @return Whether the conditionEvaluation field is set. */ public boolean hasConditionEvaluation() { return conditionEvaluationBuilder_ != null || conditionEvaluation_ != null; } /** + * + * *
            * Condition evaluation for this AccessControlList, if there is a condition
            * defined in the above IAM policy binding.
            * 
    * * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4; + * * @return The conditionEvaluation. */ public com.google.cloud.asset.v1.ConditionEvaluation getConditionEvaluation() { if (conditionEvaluationBuilder_ == null) { - return conditionEvaluation_ == null ? com.google.cloud.asset.v1.ConditionEvaluation.getDefaultInstance() : conditionEvaluation_; + return conditionEvaluation_ == null + ? com.google.cloud.asset.v1.ConditionEvaluation.getDefaultInstance() + : conditionEvaluation_; } else { return conditionEvaluationBuilder_.getMessage(); } } /** + * + * *
            * Condition evaluation for this AccessControlList, if there is a condition
            * defined in the above IAM policy binding.
    @@ -6080,6 +6788,8 @@ public Builder setConditionEvaluation(com.google.cloud.asset.v1.ConditionEvaluat
             return this;
           }
           /**
    +       *
    +       *
            * 
            * Condition evaluation for this AccessControlList, if there is a condition
            * defined in the above IAM policy binding.
    @@ -6099,6 +6809,8 @@ public Builder setConditionEvaluation(
             return this;
           }
           /**
    +       *
    +       *
            * 
            * Condition evaluation for this AccessControlList, if there is a condition
            * defined in the above IAM policy binding.
    @@ -6110,7 +6822,9 @@ public Builder mergeConditionEvaluation(com.google.cloud.asset.v1.ConditionEvalu
             if (conditionEvaluationBuilder_ == null) {
               if (conditionEvaluation_ != null) {
                 conditionEvaluation_ =
    -              com.google.cloud.asset.v1.ConditionEvaluation.newBuilder(conditionEvaluation_).mergeFrom(value).buildPartial();
    +                com.google.cloud.asset.v1.ConditionEvaluation.newBuilder(conditionEvaluation_)
    +                    .mergeFrom(value)
    +                    .buildPartial();
               } else {
                 conditionEvaluation_ = value;
               }
    @@ -6122,6 +6836,8 @@ public Builder mergeConditionEvaluation(com.google.cloud.asset.v1.ConditionEvalu
             return this;
           }
           /**
    +       *
    +       *
            * 
            * Condition evaluation for this AccessControlList, if there is a condition
            * defined in the above IAM policy binding.
    @@ -6141,6 +6857,8 @@ public Builder clearConditionEvaluation() {
             return this;
           }
           /**
    +       *
    +       *
            * 
            * Condition evaluation for this AccessControlList, if there is a condition
            * defined in the above IAM policy binding.
    @@ -6149,11 +6867,13 @@ public Builder clearConditionEvaluation() {
            * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4;
            */
           public com.google.cloud.asset.v1.ConditionEvaluation.Builder getConditionEvaluationBuilder() {
    -        
    +
             onChanged();
             return getConditionEvaluationFieldBuilder().getBuilder();
           }
           /**
    +       *
    +       *
            * 
            * Condition evaluation for this AccessControlList, if there is a condition
            * defined in the above IAM policy binding.
    @@ -6161,15 +6881,19 @@ public com.google.cloud.asset.v1.ConditionEvaluation.Builder getConditionEvaluat
            *
            * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4;
            */
    -      public com.google.cloud.asset.v1.ConditionEvaluationOrBuilder getConditionEvaluationOrBuilder() {
    +      public com.google.cloud.asset.v1.ConditionEvaluationOrBuilder
    +          getConditionEvaluationOrBuilder() {
             if (conditionEvaluationBuilder_ != null) {
               return conditionEvaluationBuilder_.getMessageOrBuilder();
             } else {
    -          return conditionEvaluation_ == null ?
    -              com.google.cloud.asset.v1.ConditionEvaluation.getDefaultInstance() : conditionEvaluation_;
    +          return conditionEvaluation_ == null
    +              ? com.google.cloud.asset.v1.ConditionEvaluation.getDefaultInstance()
    +              : conditionEvaluation_;
             }
           }
           /**
    +       *
    +       *
            * 
            * Condition evaluation for this AccessControlList, if there is a condition
            * defined in the above IAM policy binding.
    @@ -6178,18 +6902,22 @@ public com.google.cloud.asset.v1.ConditionEvaluationOrBuilder getConditionEvalua
            * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4;
            */
           private com.google.protobuf.SingleFieldBuilderV3<
    -          com.google.cloud.asset.v1.ConditionEvaluation, com.google.cloud.asset.v1.ConditionEvaluation.Builder, com.google.cloud.asset.v1.ConditionEvaluationOrBuilder> 
    +              com.google.cloud.asset.v1.ConditionEvaluation,
    +              com.google.cloud.asset.v1.ConditionEvaluation.Builder,
    +              com.google.cloud.asset.v1.ConditionEvaluationOrBuilder>
               getConditionEvaluationFieldBuilder() {
             if (conditionEvaluationBuilder_ == null) {
    -          conditionEvaluationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -              com.google.cloud.asset.v1.ConditionEvaluation, com.google.cloud.asset.v1.ConditionEvaluation.Builder, com.google.cloud.asset.v1.ConditionEvaluationOrBuilder>(
    -                  getConditionEvaluation(),
    -                  getParentForChildren(),
    -                  isClean());
    +          conditionEvaluationBuilder_ =
    +              new com.google.protobuf.SingleFieldBuilderV3<
    +                  com.google.cloud.asset.v1.ConditionEvaluation,
    +                  com.google.cloud.asset.v1.ConditionEvaluation.Builder,
    +                  com.google.cloud.asset.v1.ConditionEvaluationOrBuilder>(
    +                  getConditionEvaluation(), getParentForChildren(), isClean());
               conditionEvaluation_ = null;
             }
             return conditionEvaluationBuilder_;
           }
    +
           @java.lang.Override
           public final Builder setUnknownFields(
               final com.google.protobuf.UnknownFieldSet unknownFields) {
    @@ -6202,41 +6930,44 @@ public final Builder mergeUnknownFields(
             return super.mergeUnknownFields(unknownFields);
           }
     
    -
           // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList)
         }
     
         // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList)
    -    private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList DEFAULT_INSTANCE;
    +    private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
    +        DEFAULT_INSTANCE;
    +
         static {
           DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList();
         }
     
    -    public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getDefaultInstance() {
    +    public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
    +        getDefaultInstance() {
           return DEFAULT_INSTANCE;
         }
     
    -    private static final com.google.protobuf.Parser
    -        PARSER = new com.google.protobuf.AbstractParser() {
    -      @java.lang.Override
    -      public AccessControlList parsePartialFrom(
    -          com.google.protobuf.CodedInputStream input,
    -          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -          throws com.google.protobuf.InvalidProtocolBufferException {
    -        Builder builder = newBuilder();
    -        try {
    -          builder.mergeFrom(input, extensionRegistry);
    -        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -          throw e.setUnfinishedMessage(builder.buildPartial());
    -        } catch (com.google.protobuf.UninitializedMessageException e) {
    -          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    -        } catch (java.io.IOException e) {
    -          throw new com.google.protobuf.InvalidProtocolBufferException(e)
    -              .setUnfinishedMessage(builder.buildPartial());
    -        }
    -        return builder.buildPartial();
    -      }
    -    };
    +    private static final com.google.protobuf.Parser PARSER =
    +        new com.google.protobuf.AbstractParser() {
    +          @java.lang.Override
    +          public AccessControlList parsePartialFrom(
    +              com.google.protobuf.CodedInputStream input,
    +              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +              throws com.google.protobuf.InvalidProtocolBufferException {
    +            Builder builder = newBuilder();
    +            try {
    +              builder.mergeFrom(input, extensionRegistry);
    +            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +              throw e.setUnfinishedMessage(builder.buildPartial());
    +            } catch (com.google.protobuf.UninitializedMessageException e) {
    +              throw e.asInvalidProtocolBufferException()
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            } catch (java.io.IOException e) {
    +              throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            }
    +            return builder.buildPartial();
    +          }
    +        };
     
         public static com.google.protobuf.Parser parser() {
           return PARSER;
    @@ -6248,17 +6979,20 @@ public com.google.protobuf.Parser getParserForType() {
         }
     
         @java.lang.Override
    -    public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getDefaultInstanceForType() {
    +    public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
    +        getDefaultInstanceForType() {
           return DEFAULT_INSTANCE;
         }
    -
       }
     
    -  public interface IdentityListOrBuilder extends
    +  public interface IdentityListOrBuilder
    +      extends
           // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList)
           com.google.protobuf.MessageOrBuilder {
     
         /**
    +     *
    +     *
          * 
          * Only the identities that match one of the following conditions will be
          * presented:
    @@ -6268,9 +7002,10 @@ public interface IdentityListOrBuilder extends
          *
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
          */
    -    java.util.List 
    -        getIdentitiesList();
    +    java.util.List getIdentitiesList();
         /**
    +     *
    +     *
          * 
          * Only the identities that match one of the following conditions will be
          * presented:
    @@ -6282,6 +7017,8 @@ public interface IdentityListOrBuilder extends
          */
         com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getIdentities(int index);
         /**
    +     *
    +     *
          * 
          * Only the identities that match one of the following conditions will be
          * presented:
    @@ -6293,6 +7030,8 @@ public interface IdentityListOrBuilder extends
          */
         int getIdentitiesCount();
         /**
    +     *
    +     *
          * 
          * Only the identities that match one of the following conditions will be
          * presented:
    @@ -6302,9 +7041,11 @@ public interface IdentityListOrBuilder extends
          *
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
          */
    -    java.util.List 
    +    java.util.List
             getIdentitiesOrBuilderList();
         /**
    +     *
    +     *
          * 
          * Only the identities that match one of the following conditions will be
          * presented:
    @@ -6318,6 +7059,8 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder getIdentitie
             int index);
     
         /**
    +     *
    +     *
          * 
          * Group identity edges of the graph starting from the binding's
          * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -6330,9 +7073,10 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder getIdentitie
          *
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;
          */
    -    java.util.List 
    -        getGroupEdgesList();
    +    java.util.List getGroupEdgesList();
         /**
    +     *
    +     *
          * 
          * Group identity edges of the graph starting from the binding's
          * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -6347,6 +7091,8 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder getIdentitie
          */
         com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getGroupEdges(int index);
         /**
    +     *
    +     *
          * 
          * Group identity edges of the graph starting from the binding's
          * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -6361,6 +7107,8 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder getIdentitie
          */
         int getGroupEdgesCount();
         /**
    +     *
    +     *
          * 
          * Group identity edges of the graph starting from the binding's
          * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -6373,9 +7121,11 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder getIdentitie
          *
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;
          */
    -    java.util.List 
    +    java.util.List
             getGroupEdgesOrBuilderList();
         /**
    +     *
    +     *
          * 
          * Group identity edges of the graph starting from the binding's
          * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -6392,21 +7142,24 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getGroupEdgesOrB
             int index);
       }
       /**
    +   *
    +   *
        * 
        * The identities and group edges.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList} */ - public static final class IdentityList extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class IdentityList extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList) IdentityListOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IdentityList.newBuilder() to construct. private IdentityList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private IdentityList() { identities_ = java.util.Collections.emptyList(); groupEdges_ = java.util.Collections.emptyList(); @@ -6414,32 +7167,35 @@ private IdentityList() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IdentityList(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.class, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder.class); } public static final int IDENTITIES_FIELD_NUMBER = 1; private java.util.List identities_; /** + * + * *
          * Only the identities that match one of the following conditions will be
          * presented:
    @@ -6450,10 +7206,13 @@ protected java.lang.Object newInstance(
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
          */
         @java.lang.Override
    -    public java.util.List getIdentitiesList() {
    +    public java.util.List
    +        getIdentitiesList() {
           return identities_;
         }
         /**
    +     *
    +     *
          * 
          * Only the identities that match one of the following conditions will be
          * presented:
    @@ -6464,11 +7223,14 @@ public java.util.Listrepeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
          */
         @java.lang.Override
    -    public java.util.List 
    +    public java.util.List<
    +            ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder>
             getIdentitiesOrBuilderList() {
           return identities_;
         }
         /**
    +     *
    +     *
          * 
          * Only the identities that match one of the following conditions will be
          * presented:
    @@ -6483,6 +7245,8 @@ public int getIdentitiesCount() {
           return identities_.size();
         }
         /**
    +     *
    +     *
          * 
          * Only the identities that match one of the following conditions will be
          * presented:
    @@ -6497,6 +7261,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getIdentities(
           return identities_.get(index);
         }
         /**
    +     *
    +     *
          * 
          * Only the identities that match one of the following conditions will be
          * presented:
    @@ -6507,14 +7273,16 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getIdentities(
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1;
          */
         @java.lang.Override
    -    public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder getIdentitiesOrBuilder(
    -        int index) {
    +    public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder
    +        getIdentitiesOrBuilder(int index) {
           return identities_.get(index);
         }
     
         public static final int GROUP_EDGES_FIELD_NUMBER = 2;
         private java.util.List groupEdges_;
         /**
    +     *
    +     *
          * 
          * Group identity edges of the graph starting from the binding's
          * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -6528,10 +7296,13 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder getId
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;
          */
         @java.lang.Override
    -    public java.util.List getGroupEdgesList() {
    +    public java.util.List
    +        getGroupEdgesList() {
           return groupEdges_;
         }
         /**
    +     *
    +     *
          * 
          * Group identity edges of the graph starting from the binding's
          * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -6545,11 +7316,13 @@ public java.util.List ge
          * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;
          */
         @java.lang.Override
    -    public java.util.List 
    +    public java.util.List
             getGroupEdgesOrBuilderList() {
           return groupEdges_;
         }
         /**
    +     *
    +     *
          * 
          * Group identity edges of the graph starting from the binding's
          * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -6567,6 +7340,8 @@ public int getGroupEdgesCount() {
           return groupEdges_.size();
         }
         /**
    +     *
    +     *
          * 
          * Group identity edges of the graph starting from the binding's
          * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -6584,6 +7359,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getGroupEdges(int
           return groupEdges_.get(index);
         }
         /**
    +     *
    +     *
          * 
          * Group identity edges of the graph starting from the binding's
          * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -6603,6 +7380,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getGroupE
         }
     
         private byte memoizedIsInitialized = -1;
    +
         @java.lang.Override
         public final boolean isInitialized() {
           byte isInitialized = memoizedIsInitialized;
    @@ -6614,8 +7392,7 @@ public final boolean isInitialized() {
         }
     
         @java.lang.Override
    -    public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                        throws java.io.IOException {
    +    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
           for (int i = 0; i < identities_.size(); i++) {
             output.writeMessage(1, identities_.get(i));
           }
    @@ -6632,12 +7409,10 @@ public int getSerializedSize() {
     
           size = 0;
           for (int i = 0; i < identities_.size(); i++) {
    -        size += com.google.protobuf.CodedOutputStream
    -          .computeMessageSize(1, identities_.get(i));
    +        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, identities_.get(i));
           }
           for (int i = 0; i < groupEdges_.size(); i++) {
    -        size += com.google.protobuf.CodedOutputStream
    -          .computeMessageSize(2, groupEdges_.get(i));
    +        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, groupEdges_.get(i));
           }
           size += getUnknownFields().getSerializedSize();
           memoizedSize = size;
    @@ -6647,17 +7422,16 @@ public int getSerializedSize() {
         @java.lang.Override
         public boolean equals(final java.lang.Object obj) {
           if (obj == this) {
    -       return true;
    +        return true;
           }
           if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList)) {
             return super.equals(obj);
           }
    -      com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList other = (com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList) obj;
    +      com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList other =
    +          (com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList) obj;
     
    -      if (!getIdentitiesList()
    -          .equals(other.getIdentitiesList())) return false;
    -      if (!getGroupEdgesList()
    -          .equals(other.getGroupEdgesList())) return false;
    +      if (!getIdentitiesList().equals(other.getIdentitiesList())) return false;
    +      if (!getGroupEdgesList().equals(other.getGroupEdgesList())) return false;
           if (!getUnknownFields().equals(other.getUnknownFields())) return false;
           return true;
         }
    @@ -6683,87 +7457,94 @@ public int hashCode() {
         }
     
         public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom(
    -        java.nio.ByteBuffer data)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    +        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
    +
         public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom(
    -        java.nio.ByteBuffer data,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data, extensionRegistry);
         }
    +
         public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom(
             com.google.protobuf.ByteString data)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
    +
         public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList 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.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom(byte[] data)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    +
    +    public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom(
    +        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
    +
         public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom(
    -        byte[] data,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data, extensionRegistry);
         }
    -    public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom(java.io.InputStream input)
    -        throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3
    -          .parseWithIOException(PARSER, input);
    +
    +    public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom(
    +        java.io.InputStream input) throws java.io.IOException {
    +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
         }
    +
         public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom(
    -        java.io.InputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3
    -          .parseWithIOException(PARSER, input, extensionRegistry);
    +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +          PARSER, input, extensionRegistry);
         }
    -    public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseDelimitedFrom(java.io.InputStream input)
    -        throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3
    -          .parseDelimitedWithIOException(PARSER, input);
    +
    +    public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseDelimitedFrom(
    +        java.io.InputStream input) throws java.io.IOException {
    +      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
         }
    +
         public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseDelimitedFrom(
    -        java.io.InputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3
    -          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +          PARSER, input, extensionRegistry);
         }
    +
         public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom(
    -        com.google.protobuf.CodedInputStream input)
    -        throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3
    -          .parseWithIOException(PARSER, input);
    +        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
         }
    +
         public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList parseFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3
    -          .parseWithIOException(PARSER, input, extensionRegistry);
    +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +          PARSER, input, extensionRegistry);
         }
     
         @java.lang.Override
    -    public Builder newBuilderForType() { return newBuilder(); }
    +    public Builder newBuilderForType() {
    +      return newBuilder();
    +    }
    +
         public static Builder newBuilder() {
           return DEFAULT_INSTANCE.toBuilder();
         }
    -    public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList prototype) {
    +
    +    public static Builder newBuilder(
    +        com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList prototype) {
           return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
         }
    +
         @java.lang.Override
         public Builder toBuilder() {
    -      return this == DEFAULT_INSTANCE
    -          ? new Builder() : new Builder().mergeFrom(this);
    +      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
         }
     
         @java.lang.Override
    @@ -6773,39 +7554,41 @@ protected Builder newBuilderForType(
           return builder;
         }
         /**
    +     *
    +     *
          * 
          * The identities and group edges.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList) com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder.class); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.class, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder.class); } // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -6827,13 +7610,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList getDefaultInstanceForType() { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList + getDefaultInstanceForType() { return com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.getDefaultInstance(); } @@ -6848,7 +7632,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList build() { @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList buildPartial() { - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList result = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList(this); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList result = + new com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList(this); int from_bitField0_ = bitField0_; if (identitiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -6876,46 +7661,52 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicyAnalysisResult.IdentityList) { - return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList)other); + return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList other) { - if (other == com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList other) { + if (other + == com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.getDefaultInstance()) + return this; if (identitiesBuilder_ == null) { if (!other.identities_.isEmpty()) { if (identities_.isEmpty()) { @@ -6934,9 +7725,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Ident identitiesBuilder_ = null; identities_ = other.identities_; bitField0_ = (bitField0_ & ~0x00000001); - identitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getIdentitiesFieldBuilder() : null; + identitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getIdentitiesFieldBuilder() + : null; } else { identitiesBuilder_.addAllMessages(other.identities_); } @@ -6960,9 +7752,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Ident groupEdgesBuilder_ = null; groupEdges_ = other.groupEdges_; bitField0_ = (bitField0_ & ~0x00000002); - groupEdgesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGroupEdgesFieldBuilder() : null; + groupEdgesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGroupEdgesFieldBuilder() + : null; } else { groupEdgesBuilder_.addAllMessages(other.groupEdges_); } @@ -6994,38 +7787,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity m = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.parser(), - extensionRegistry); - if (identitiesBuilder_ == null) { - ensureIdentitiesIsMutable(); - identities_.add(m); - } else { - identitiesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge m = - input.readMessage( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.parser(), - extensionRegistry); - if (groupEdgesBuilder_ == null) { - ensureGroupEdgesIsMutable(); - groupEdges_.add(m); - } else { - groupEdgesBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity m = + input.readMessage( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.parser(), + extensionRegistry); + if (identitiesBuilder_ == null) { + ensureIdentitiesIsMutable(); + identities_.add(m); + } else { + identitiesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge m = + input.readMessage( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.parser(), + extensionRegistry); + if (groupEdgesBuilder_ == null) { + ensureGroupEdgesIsMutable(); + groupEdges_.add(m); + } else { + groupEdgesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -7035,21 +7831,30 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List identities_ = - java.util.Collections.emptyList(); + private java.util.List + identities_ = java.util.Collections.emptyList(); + private void ensureIdentitiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - identities_ = new java.util.ArrayList(identities_); + identities_ = + new java.util.ArrayList( + identities_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder> identitiesBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder> + identitiesBuilder_; /** + * + * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -7057,9 +7862,11 @@ private void ensureIdentitiesIsMutable() {
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * */ - public java.util.List getIdentitiesList() { + public java.util.List + getIdentitiesList() { if (identitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(identities_); } else { @@ -7067,6 +7874,8 @@ public java.util.List * Only the identities that match one of the following conditions will be * presented: @@ -7074,7 +7883,8 @@ public java.util.List * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * */ public int getIdentitiesCount() { if (identitiesBuilder_ == null) { @@ -7084,6 +7894,8 @@ public int getIdentitiesCount() { } } /** + * + * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -7091,7 +7903,8 @@ public int getIdentitiesCount() {
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * */ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getIdentities(int index) { if (identitiesBuilder_ == null) { @@ -7101,6 +7914,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getIdentities( } } /** + * + * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -7108,7 +7923,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity getIdentities(
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * */ public Builder setIdentities( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity value) { @@ -7125,6 +7941,8 @@ public Builder setIdentities( return this; } /** + * + * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -7132,10 +7950,12 @@ public Builder setIdentities(
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * */ public Builder setIdentities( - int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder builderForValue) { + int index, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder builderForValue) { if (identitiesBuilder_ == null) { ensureIdentitiesIsMutable(); identities_.set(index, builderForValue.build()); @@ -7146,6 +7966,8 @@ public Builder setIdentities( return this; } /** + * + * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -7153,9 +7975,11 @@ public Builder setIdentities(
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * */ - public Builder addIdentities(com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity value) { + public Builder addIdentities( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity value) { if (identitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7169,6 +7993,8 @@ public Builder addIdentities(com.google.cloud.asset.v1.IamPolicyAnalysisResult.I return this; } /** + * + * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -7176,7 +8002,8 @@ public Builder addIdentities(com.google.cloud.asset.v1.IamPolicyAnalysisResult.I
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * */ public Builder addIdentities( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity value) { @@ -7193,6 +8020,8 @@ public Builder addIdentities( return this; } /** + * + * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -7200,7 +8029,8 @@ public Builder addIdentities(
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * */ public Builder addIdentities( com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder builderForValue) { @@ -7214,6 +8044,8 @@ public Builder addIdentities( return this; } /** + * + * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -7221,10 +8053,12 @@ public Builder addIdentities(
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * */ public Builder addIdentities( - int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder builderForValue) { + int index, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder builderForValue) { if (identitiesBuilder_ == null) { ensureIdentitiesIsMutable(); identities_.add(index, builderForValue.build()); @@ -7235,6 +8069,8 @@ public Builder addIdentities( return this; } /** + * + * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -7242,14 +8078,15 @@ public Builder addIdentities(
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * */ public Builder addAllIdentities( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (identitiesBuilder_ == null) { ensureIdentitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, identities_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, identities_); onChanged(); } else { identitiesBuilder_.addAllMessages(values); @@ -7257,6 +8094,8 @@ public Builder addAllIdentities( return this; } /** + * + * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -7264,7 +8103,8 @@ public Builder addAllIdentities(
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * */ public Builder clearIdentities() { if (identitiesBuilder_ == null) { @@ -7277,6 +8117,8 @@ public Builder clearIdentities() { return this; } /** + * + * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -7284,7 +8126,8 @@ public Builder clearIdentities() {
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * */ public Builder removeIdentities(int index) { if (identitiesBuilder_ == null) { @@ -7297,6 +8140,8 @@ public Builder removeIdentities(int index) { return this; } /** + * + * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -7304,13 +8149,16 @@ public Builder removeIdentities(int index) {
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder getIdentitiesBuilder( - int index) { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder + getIdentitiesBuilder(int index) { return getIdentitiesFieldBuilder().getBuilder(index); } /** + * + * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -7318,16 +8166,20 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder getIde
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder getIdentitiesOrBuilder( - int index) { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder + getIdentitiesOrBuilder(int index) { if (identitiesBuilder_ == null) { - return identities_.get(index); } else { + return identities_.get(index); + } else { return identitiesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -7335,10 +8187,12 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder getId
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * */ - public java.util.List - getIdentitiesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder> + getIdentitiesOrBuilderList() { if (identitiesBuilder_ != null) { return identitiesBuilder_.getMessageOrBuilderList(); } else { @@ -7346,6 +8200,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder getId } } /** + * + * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -7353,13 +8209,18 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder getId
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder addIdentitiesBuilder() { - return getIdentitiesFieldBuilder().addBuilder( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.getDefaultInstance()); + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder + addIdentitiesBuilder() { + return getIdentitiesFieldBuilder() + .addBuilder( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.getDefaultInstance()); } /** + * + * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -7367,14 +8228,19 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder addIde
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder addIdentitiesBuilder( - int index) { - return getIdentitiesFieldBuilder().addBuilder( - index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.getDefaultInstance()); + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder + addIdentitiesBuilder(int index) { + return getIdentitiesFieldBuilder() + .addBuilder( + index, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.getDefaultInstance()); } /** + * + * *
            * Only the identities that match one of the following conditions will be
            * presented:
    @@ -7382,40 +8248,52 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder addIde
            * - Otherwise, identities reachable from the policy binding's members.
            * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; + * */ - public java.util.List - getIdentitiesBuilderList() { + public java.util.List + getIdentitiesBuilderList() { return getIdentitiesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder> getIdentitiesFieldBuilder() { if (identitiesBuilder_ == null) { - identitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder>( - identities_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + identitiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Identity.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityOrBuilder>( + identities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); identities_ = null; } return identitiesBuilder_; } private java.util.List groupEdges_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureGroupEdgesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - groupEdges_ = new java.util.ArrayList(groupEdges_); + groupEdges_ = + new java.util.ArrayList( + groupEdges_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder> groupEdgesBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder> + groupEdgesBuilder_; /** + * + * *
            * Group identity edges of the graph starting from the binding's
            * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -7428,7 +8306,8 @@ private void ensureGroupEdgesIsMutable() {
            *
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;
            */
    -      public java.util.List getGroupEdgesList() {
    +      public java.util.List
    +          getGroupEdgesList() {
             if (groupEdgesBuilder_ == null) {
               return java.util.Collections.unmodifiableList(groupEdges_);
             } else {
    @@ -7436,6 +8315,8 @@ public java.util.List ge
             }
           }
           /**
    +       *
    +       *
            * 
            * Group identity edges of the graph starting from the binding's
            * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -7456,6 +8337,8 @@ public int getGroupEdgesCount() {
             }
           }
           /**
    +       *
    +       *
            * 
            * Group identity edges of the graph starting from the binding's
            * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -7476,6 +8359,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge getGroupEdges(int
             }
           }
           /**
    +       *
    +       *
            * 
            * Group identity edges of the graph starting from the binding's
            * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -7503,6 +8388,8 @@ public Builder setGroupEdges(
             return this;
           }
           /**
    +       *
    +       *
            * 
            * Group identity edges of the graph starting from the binding's
            * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -7516,7 +8403,8 @@ public Builder setGroupEdges(
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;
            */
           public Builder setGroupEdges(
    -          int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue) {
    +          int index,
    +          com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue) {
             if (groupEdgesBuilder_ == null) {
               ensureGroupEdgesIsMutable();
               groupEdges_.set(index, builderForValue.build());
    @@ -7527,6 +8415,8 @@ public Builder setGroupEdges(
             return this;
           }
           /**
    +       *
    +       *
            * 
            * Group identity edges of the graph starting from the binding's
            * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -7553,6 +8443,8 @@ public Builder addGroupEdges(com.google.cloud.asset.v1.IamPolicyAnalysisResult.E
             return this;
           }
           /**
    +       *
    +       *
            * 
            * Group identity edges of the graph starting from the binding's
            * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -7580,6 +8472,8 @@ public Builder addGroupEdges(
             return this;
           }
           /**
    +       *
    +       *
            * 
            * Group identity edges of the graph starting from the binding's
            * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -7604,6 +8498,8 @@ public Builder addGroupEdges(
             return this;
           }
           /**
    +       *
    +       *
            * 
            * Group identity edges of the graph starting from the binding's
            * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -7617,7 +8513,8 @@ public Builder addGroupEdges(
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;
            */
           public Builder addGroupEdges(
    -          int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue) {
    +          int index,
    +          com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder builderForValue) {
             if (groupEdgesBuilder_ == null) {
               ensureGroupEdgesIsMutable();
               groupEdges_.add(index, builderForValue.build());
    @@ -7628,6 +8525,8 @@ public Builder addGroupEdges(
             return this;
           }
           /**
    +       *
    +       *
            * 
            * Group identity edges of the graph starting from the binding's
            * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -7641,11 +8540,11 @@ public Builder addGroupEdges(
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;
            */
           public Builder addAllGroupEdges(
    -          java.lang.Iterable values) {
    +          java.lang.Iterable
    +              values) {
             if (groupEdgesBuilder_ == null) {
               ensureGroupEdgesIsMutable();
    -          com.google.protobuf.AbstractMessageLite.Builder.addAll(
    -              values, groupEdges_);
    +          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupEdges_);
               onChanged();
             } else {
               groupEdgesBuilder_.addAllMessages(values);
    @@ -7653,6 +8552,8 @@ public Builder addAllGroupEdges(
             return this;
           }
           /**
    +       *
    +       *
            * 
            * Group identity edges of the graph starting from the binding's
            * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -7676,6 +8577,8 @@ public Builder clearGroupEdges() {
             return this;
           }
           /**
    +       *
    +       *
            * 
            * Group identity edges of the graph starting from the binding's
            * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -7699,6 +8602,8 @@ public Builder removeGroupEdges(int index) {
             return this;
           }
           /**
    +       *
    +       *
            * 
            * Group identity edges of the graph starting from the binding's
            * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -7716,6 +8621,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder getGroupEd
             return getGroupEdgesFieldBuilder().getBuilder(index);
           }
           /**
    +       *
    +       *
            * 
            * Group identity edges of the graph starting from the binding's
            * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -7731,11 +8638,14 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder getGroupEd
           public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getGroupEdgesOrBuilder(
               int index) {
             if (groupEdgesBuilder_ == null) {
    -          return groupEdges_.get(index);  } else {
    +          return groupEdges_.get(index);
    +        } else {
               return groupEdgesBuilder_.getMessageOrBuilder(index);
             }
           }
           /**
    +       *
    +       *
            * 
            * Group identity edges of the graph starting from the binding's
            * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -7748,8 +8658,9 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getGroupE
            *
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;
            */
    -      public java.util.List 
    -           getGroupEdgesOrBuilderList() {
    +      public java.util.List<
    +              ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder>
    +          getGroupEdgesOrBuilderList() {
             if (groupEdgesBuilder_ != null) {
               return groupEdgesBuilder_.getMessageOrBuilderList();
             } else {
    @@ -7757,6 +8668,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getGroupE
             }
           }
           /**
    +       *
    +       *
            * 
            * Group identity edges of the graph starting from the binding's
            * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -7770,10 +8683,13 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getGroupE
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;
            */
           public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder addGroupEdgesBuilder() {
    -        return getGroupEdgesFieldBuilder().addBuilder(
    -            com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance());
    +        return getGroupEdgesFieldBuilder()
    +            .addBuilder(
    +                com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance());
           }
           /**
    +       *
    +       *
            * 
            * Group identity edges of the graph starting from the binding's
            * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -7788,10 +8704,13 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder addGroupEd
            */
           public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder addGroupEdgesBuilder(
               int index) {
    -        return getGroupEdgesFieldBuilder().addBuilder(
    -            index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance());
    +        return getGroupEdgesFieldBuilder()
    +            .addBuilder(
    +                index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.getDefaultInstance());
           }
           /**
    +       *
    +       *
            * 
            * Group identity edges of the graph starting from the binding's
            * group members to any node of the [identities][google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities]. The [Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]
    @@ -7804,24 +8723,28 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder addGroupEd
            *
            * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2;
            */
    -      public java.util.List 
    -           getGroupEdgesBuilderList() {
    +      public java.util.List
    +          getGroupEdgesBuilderList() {
             return getGroupEdgesFieldBuilder().getBuilderList();
           }
    +
           private com.google.protobuf.RepeatedFieldBuilderV3<
    -          com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder> 
    +              com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge,
    +              com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder,
    +              com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder>
               getGroupEdgesFieldBuilder() {
             if (groupEdgesBuilder_ == null) {
    -          groupEdgesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    -              com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder>(
    -                  groupEdges_,
    -                  ((bitField0_ & 0x00000002) != 0),
    -                  getParentForChildren(),
    -                  isClean());
    +          groupEdgesBuilder_ =
    +              new com.google.protobuf.RepeatedFieldBuilderV3<
    +                  com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge,
    +                  com.google.cloud.asset.v1.IamPolicyAnalysisResult.Edge.Builder,
    +                  com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder>(
    +                  groupEdges_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
               groupEdges_ = null;
             }
             return groupEdgesBuilder_;
           }
    +
           @java.lang.Override
           public final Builder setUnknownFields(
               final com.google.protobuf.UnknownFieldSet unknownFields) {
    @@ -7834,41 +8757,44 @@ public final Builder mergeUnknownFields(
             return super.mergeUnknownFields(unknownFields);
           }
     
    -
           // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList)
         }
     
         // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList)
    -    private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList DEFAULT_INSTANCE;
    -    static {
    -      DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList();
    -    }
    +    private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList
    +        DEFAULT_INSTANCE;
     
    -    public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList getDefaultInstance() {
    -      return DEFAULT_INSTANCE;
    -    }
    -
    -    private static final com.google.protobuf.Parser
    -        PARSER = new com.google.protobuf.AbstractParser() {
    -      @java.lang.Override
    -      public IdentityList parsePartialFrom(
    -          com.google.protobuf.CodedInputStream input,
    -          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -          throws com.google.protobuf.InvalidProtocolBufferException {
    -        Builder builder = newBuilder();
    -        try {
    -          builder.mergeFrom(input, extensionRegistry);
    -        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -          throw e.setUnfinishedMessage(builder.buildPartial());
    -        } catch (com.google.protobuf.UninitializedMessageException e) {
    -          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    -        } catch (java.io.IOException e) {
    -          throw new com.google.protobuf.InvalidProtocolBufferException(e)
    -              .setUnfinishedMessage(builder.buildPartial());
    -        }
    -        return builder.buildPartial();
    -      }
    -    };
    +    static {
    +      DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList();
    +    }
    +
    +    public static com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList
    +        getDefaultInstance() {
    +      return DEFAULT_INSTANCE;
    +    }
    +
    +    private static final com.google.protobuf.Parser PARSER =
    +        new com.google.protobuf.AbstractParser() {
    +          @java.lang.Override
    +          public IdentityList parsePartialFrom(
    +              com.google.protobuf.CodedInputStream input,
    +              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +              throws com.google.protobuf.InvalidProtocolBufferException {
    +            Builder builder = newBuilder();
    +            try {
    +              builder.mergeFrom(input, extensionRegistry);
    +            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +              throw e.setUnfinishedMessage(builder.buildPartial());
    +            } catch (com.google.protobuf.UninitializedMessageException e) {
    +              throw e.asInvalidProtocolBufferException()
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            } catch (java.io.IOException e) {
    +              throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            }
    +            return builder.buildPartial();
    +          }
    +        };
     
         public static com.google.protobuf.Parser parser() {
           return PARSER;
    @@ -7880,15 +8806,17 @@ public com.google.protobuf.Parser getParserForType() {
         }
     
         @java.lang.Override
    -    public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList getDefaultInstanceForType() {
    +    public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList
    +        getDefaultInstanceForType() {
           return DEFAULT_INSTANCE;
         }
    -
       }
     
       public static final int ATTACHED_RESOURCE_FULL_NAME_FIELD_NUMBER = 1;
       private volatile java.lang.Object attachedResourceFullName_;
       /**
    +   *
    +   *
        * 
        * The [full resource
        * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -7896,6 +8824,7 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList getDefault
        * 
    * * string attached_resource_full_name = 1; + * * @return The attachedResourceFullName. */ @java.lang.Override @@ -7904,14 +8833,15 @@ public java.lang.String getAttachedResourceFullName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attachedResourceFullName_ = s; return s; } } /** + * + * *
        * The [full resource
        * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -7919,16 +8849,15 @@ public java.lang.String getAttachedResourceFullName() {
        * 
    * * string attached_resource_full_name = 1; + * * @return The bytes for attachedResourceFullName. */ @java.lang.Override - public com.google.protobuf.ByteString - getAttachedResourceFullNameBytes() { + public com.google.protobuf.ByteString getAttachedResourceFullNameBytes() { java.lang.Object ref = attachedResourceFullName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); attachedResourceFullName_ = b; return b; } else { @@ -7939,11 +8868,14 @@ public java.lang.String getAttachedResourceFullName() { public static final int IAM_BINDING_FIELD_NUMBER = 2; private com.google.iam.v1.Binding iamBinding_; /** + * + * *
        * The Cloud IAM policy binding under analysis.
        * 
    * * .google.iam.v1.Binding iam_binding = 2; + * * @return Whether the iamBinding field is set. */ @java.lang.Override @@ -7951,11 +8883,14 @@ public boolean hasIamBinding() { return iamBinding_ != null; } /** + * + * *
        * The Cloud IAM policy binding under analysis.
        * 
    * * .google.iam.v1.Binding iam_binding = 2; + * * @return The iamBinding. */ @java.lang.Override @@ -7963,6 +8898,8 @@ public com.google.iam.v1.Binding getIamBinding() { return iamBinding_ == null ? com.google.iam.v1.Binding.getDefaultInstance() : iamBinding_; } /** + * + * *
        * The Cloud IAM policy binding under analysis.
        * 
    @@ -7975,79 +8912,106 @@ public com.google.iam.v1.BindingOrBuilder getIamBindingOrBuilder() { } public static final int ACCESS_CONTROL_LISTS_FIELD_NUMBER = 3; - private java.util.List accessControlLists_; + private java.util.List + accessControlLists_; /** + * + * *
        * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
        * potentially match resource and access selectors specified in the request.
        * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ @java.lang.Override - public java.util.List getAccessControlListsList() { + public java.util.List + getAccessControlListsList() { return accessControlLists_; } /** + * + * *
        * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
        * potentially match resource and access selectors specified in the request.
        * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder> getAccessControlListsOrBuilderList() { return accessControlLists_; } /** + * + * *
        * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
        * potentially match resource and access selectors specified in the request.
        * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ @java.lang.Override public int getAccessControlListsCount() { return accessControlLists_.size(); } /** + * + * *
        * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
        * potentially match resource and access selectors specified in the request.
        * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getAccessControlLists(int index) { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getAccessControlLists( + int index) { return accessControlLists_.get(index); } /** + * + * *
        * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
        * potentially match resource and access selectors specified in the request.
        * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ @java.lang.Override - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder getAccessControlListsOrBuilder( - int index) { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder + getAccessControlListsOrBuilder(int index) { return accessControlLists_.get(index); } public static final int IDENTITY_LIST_FIELD_NUMBER = 4; private com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identityList_; /** + * + * *
        * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
        * potentially match identity selector specified in the request.
        * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; + * * @return Whether the identityList field is set. */ @java.lang.Override @@ -8055,19 +9019,26 @@ public boolean hasIdentityList() { return identityList_ != null; } /** + * + * *
        * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
        * potentially match identity selector specified in the request.
        * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; + * * @return The identityList. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList getIdentityList() { - return identityList_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.getDefaultInstance() : identityList_; + return identityList_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.getDefaultInstance() + : identityList_; } /** + * + * *
        * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
        * potentially match identity selector specified in the request.
    @@ -8076,19 +9047,23 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList getIdentit
        * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;
        */
       @java.lang.Override
    -  public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder getIdentityListOrBuilder() {
    +  public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder
    +      getIdentityListOrBuilder() {
         return getIdentityList();
       }
     
       public static final int FULLY_EXPLORED_FIELD_NUMBER = 5;
       private boolean fullyExplored_;
       /**
    +   *
    +   *
        * 
        * Represents whether all analyses on the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] have successfully
        * finished.
        * 
    * * bool fully_explored = 5; + * * @return The fullyExplored. */ @java.lang.Override @@ -8097,6 +9072,7 @@ public boolean getFullyExplored() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8108,8 +9084,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attachedResourceFullName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attachedResourceFullName_); } @@ -8135,23 +9110,21 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attachedResourceFullName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, attachedResourceFullName_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(1, attachedResourceFullName_); } if (iamBinding_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getIamBinding()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIamBinding()); } for (int i = 0; i < accessControlLists_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, accessControlLists_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, accessControlLists_.get(i)); } if (identityList_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getIdentityList()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIdentityList()); } if (fullyExplored_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, fullyExplored_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, fullyExplored_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8161,29 +9134,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisResult)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisResult other = (com.google.cloud.asset.v1.IamPolicyAnalysisResult) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisResult other = + (com.google.cloud.asset.v1.IamPolicyAnalysisResult) obj; - if (!getAttachedResourceFullName() - .equals(other.getAttachedResourceFullName())) return false; + if (!getAttachedResourceFullName().equals(other.getAttachedResourceFullName())) return false; if (hasIamBinding() != other.hasIamBinding()) return false; if (hasIamBinding()) { - if (!getIamBinding() - .equals(other.getIamBinding())) return false; + if (!getIamBinding().equals(other.getIamBinding())) return false; } - if (!getAccessControlListsList() - .equals(other.getAccessControlListsList())) return false; + if (!getAccessControlListsList().equals(other.getAccessControlListsList())) return false; if (hasIdentityList() != other.hasIdentityList()) return false; if (hasIdentityList()) { - if (!getIdentityList() - .equals(other.getIdentityList())) return false; + if (!getIdentityList().equals(other.getIdentityList())) return false; } - if (getFullyExplored() - != other.getFullyExplored()) return false; + if (getFullyExplored() != other.getFullyExplored()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8210,104 +9179,110 @@ public int hashCode() { hash = (53 * hash) + getIdentityList().hashCode(); } hash = (37 * hash) + FULLY_EXPLORED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFullyExplored()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFullyExplored()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult 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.asset.v1.IamPolicyAnalysisResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * IAM Policy analysis result, consisting of one IAM policy binding and derived
        * access control lists.
    @@ -8315,33 +9290,32 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisResult}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisResult)
           com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.IamPolicyAnalysisResult.class, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder.class);
    +              com.google.cloud.asset.v1.IamPolicyAnalysisResult.class,
    +              com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisResult.newBuilder()
    -    private Builder() {
    -
    -    }
    +    private Builder() {}
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -8372,9 +9346,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor;
         }
     
         @java.lang.Override
    @@ -8393,7 +9367,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1.IamPolicyAnalysisResult buildPartial() {
    -      com.google.cloud.asset.v1.IamPolicyAnalysisResult result = new com.google.cloud.asset.v1.IamPolicyAnalysisResult(this);
    +      com.google.cloud.asset.v1.IamPolicyAnalysisResult result =
    +          new com.google.cloud.asset.v1.IamPolicyAnalysisResult(this);
           int from_bitField0_ = bitField0_;
           result.attachedResourceFullName_ = attachedResourceFullName_;
           if (iamBindingBuilder_ == null) {
    @@ -8424,38 +9399,39 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.IamPolicyAnalysisResult) {
    -        return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult)other);
    +        return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisResult) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -8463,7 +9439,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
         }
     
         public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult other) {
    -      if (other == com.google.cloud.asset.v1.IamPolicyAnalysisResult.getDefaultInstance()) return this;
    +      if (other == com.google.cloud.asset.v1.IamPolicyAnalysisResult.getDefaultInstance())
    +        return this;
           if (!other.getAttachedResourceFullName().isEmpty()) {
             attachedResourceFullName_ = other.attachedResourceFullName_;
             onChanged();
    @@ -8489,9 +9466,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisResult other
                 accessControlListsBuilder_ = null;
                 accessControlLists_ = other.accessControlLists_;
                 bitField0_ = (bitField0_ & ~0x00000001);
    -            accessControlListsBuilder_ = 
    -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
    -                 getAccessControlListsFieldBuilder() : null;
    +            accessControlListsBuilder_ =
    +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
    +                    ? getAccessControlListsFieldBuilder()
    +                    : null;
               } else {
                 accessControlListsBuilder_.addAllMessages(other.accessControlLists_);
               }
    @@ -8529,49 +9507,52 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
    -            case 10: {
    -              attachedResourceFullName_ = input.readStringRequireUtf8();
    +            case 10:
    +              {
    +                attachedResourceFullName_ = input.readStringRequireUtf8();
     
    -              break;
    -            } // case 10
    -            case 18: {
    -              input.readMessage(
    -                  getIamBindingFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(getIamBindingFieldBuilder().getBuilder(), extensionRegistry);
     
    -              break;
    -            } // case 18
    -            case 26: {
    -              com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList m =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.parser(),
    -                      extensionRegistry);
    -              if (accessControlListsBuilder_ == null) {
    -                ensureAccessControlListsIsMutable();
    -                accessControlLists_.add(m);
    -              } else {
    -                accessControlListsBuilder_.addMessage(m);
    -              }
    -              break;
    -            } // case 26
    -            case 34: {
    -              input.readMessage(
    -                  getIdentityListFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList m =
    +                    input.readMessage(
    +                        com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList
    +                            .parser(),
    +                        extensionRegistry);
    +                if (accessControlListsBuilder_ == null) {
    +                  ensureAccessControlListsIsMutable();
    +                  accessControlLists_.add(m);
    +                } else {
    +                  accessControlListsBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                input.readMessage(getIdentityListFieldBuilder().getBuilder(), extensionRegistry);
     
    -              break;
    -            } // case 34
    -            case 40: {
    -              fullyExplored_ = input.readBool();
    +                break;
    +              } // case 34
    +            case 40:
    +              {
    +                fullyExplored_ = input.readBool();
     
    -              break;
    -            } // case 40
    -            default: {
    -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                done = true; // was an endgroup tag
    -              }
    -              break;
    -            } // default:
    +                break;
    +              } // case 40
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -8581,10 +9562,13 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
    +
         private int bitField0_;
     
         private java.lang.Object attachedResourceFullName_ = "";
         /**
    +     *
    +     *
          * 
          * The [full resource
          * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -8592,13 +9576,13 @@ public Builder mergeFrom(
          * 
    * * string attached_resource_full_name = 1; + * * @return The attachedResourceFullName. */ public java.lang.String getAttachedResourceFullName() { java.lang.Object ref = attachedResourceFullName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attachedResourceFullName_ = s; return s; @@ -8607,6 +9591,8 @@ public java.lang.String getAttachedResourceFullName() { } } /** + * + * *
          * The [full resource
          * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -8614,15 +9600,14 @@ public java.lang.String getAttachedResourceFullName() {
          * 
    * * string attached_resource_full_name = 1; + * * @return The bytes for attachedResourceFullName. */ - public com.google.protobuf.ByteString - getAttachedResourceFullNameBytes() { + public com.google.protobuf.ByteString getAttachedResourceFullNameBytes() { java.lang.Object ref = attachedResourceFullName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); attachedResourceFullName_ = b; return b; } else { @@ -8630,6 +9615,8 @@ public java.lang.String getAttachedResourceFullName() { } } /** + * + * *
          * The [full resource
          * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -8637,20 +9624,22 @@ public java.lang.String getAttachedResourceFullName() {
          * 
    * * string attached_resource_full_name = 1; + * * @param value The attachedResourceFullName to set. * @return This builder for chaining. */ - public Builder setAttachedResourceFullName( - java.lang.String value) { + public Builder setAttachedResourceFullName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + attachedResourceFullName_ = value; onChanged(); return this; } /** + * + * *
          * The [full resource
          * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -8658,15 +9647,18 @@ public Builder setAttachedResourceFullName(
          * 
    * * string attached_resource_full_name = 1; + * * @return This builder for chaining. */ public Builder clearAttachedResourceFullName() { - + attachedResourceFullName_ = getDefaultInstance().getAttachedResourceFullName(); onChanged(); return this; } /** + * + * *
          * The [full resource
          * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -8674,16 +9666,16 @@ public Builder clearAttachedResourceFullName() {
          * 
    * * string attached_resource_full_name = 1; + * * @param value The bytes for attachedResourceFullName to set. * @return This builder for chaining. */ - public Builder setAttachedResourceFullNameBytes( - com.google.protobuf.ByteString value) { + public Builder setAttachedResourceFullNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attachedResourceFullName_ = value; onChanged(); return this; @@ -8691,24 +9683,33 @@ public Builder setAttachedResourceFullNameBytes( private com.google.iam.v1.Binding iamBinding_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Binding, com.google.iam.v1.Binding.Builder, com.google.iam.v1.BindingOrBuilder> iamBindingBuilder_; + com.google.iam.v1.Binding, + com.google.iam.v1.Binding.Builder, + com.google.iam.v1.BindingOrBuilder> + iamBindingBuilder_; /** + * + * *
          * The Cloud IAM policy binding under analysis.
          * 
    * * .google.iam.v1.Binding iam_binding = 2; + * * @return Whether the iamBinding field is set. */ public boolean hasIamBinding() { return iamBindingBuilder_ != null || iamBinding_ != null; } /** + * + * *
          * The Cloud IAM policy binding under analysis.
          * 
    * * .google.iam.v1.Binding iam_binding = 2; + * * @return The iamBinding. */ public com.google.iam.v1.Binding getIamBinding() { @@ -8719,6 +9720,8 @@ public com.google.iam.v1.Binding getIamBinding() { } } /** + * + * *
          * The Cloud IAM policy binding under analysis.
          * 
    @@ -8739,14 +9742,15 @@ public Builder setIamBinding(com.google.iam.v1.Binding value) { return this; } /** + * + * *
          * The Cloud IAM policy binding under analysis.
          * 
    * * .google.iam.v1.Binding iam_binding = 2; */ - public Builder setIamBinding( - com.google.iam.v1.Binding.Builder builderForValue) { + public Builder setIamBinding(com.google.iam.v1.Binding.Builder builderForValue) { if (iamBindingBuilder_ == null) { iamBinding_ = builderForValue.build(); onChanged(); @@ -8757,6 +9761,8 @@ public Builder setIamBinding( return this; } /** + * + * *
          * The Cloud IAM policy binding under analysis.
          * 
    @@ -8767,7 +9773,7 @@ public Builder mergeIamBinding(com.google.iam.v1.Binding value) { if (iamBindingBuilder_ == null) { if (iamBinding_ != null) { iamBinding_ = - com.google.iam.v1.Binding.newBuilder(iamBinding_).mergeFrom(value).buildPartial(); + com.google.iam.v1.Binding.newBuilder(iamBinding_).mergeFrom(value).buildPartial(); } else { iamBinding_ = value; } @@ -8779,6 +9785,8 @@ public Builder mergeIamBinding(com.google.iam.v1.Binding value) { return this; } /** + * + * *
          * The Cloud IAM policy binding under analysis.
          * 
    @@ -8797,6 +9805,8 @@ public Builder clearIamBinding() { return this; } /** + * + * *
          * The Cloud IAM policy binding under analysis.
          * 
    @@ -8804,11 +9814,13 @@ public Builder clearIamBinding() { * .google.iam.v1.Binding iam_binding = 2; */ public com.google.iam.v1.Binding.Builder getIamBindingBuilder() { - + onChanged(); return getIamBindingFieldBuilder().getBuilder(); } /** + * + * *
          * The Cloud IAM policy binding under analysis.
          * 
    @@ -8819,11 +9831,12 @@ public com.google.iam.v1.BindingOrBuilder getIamBindingOrBuilder() { if (iamBindingBuilder_ != null) { return iamBindingBuilder_.getMessageOrBuilder(); } else { - return iamBinding_ == null ? - com.google.iam.v1.Binding.getDefaultInstance() : iamBinding_; + return iamBinding_ == null ? com.google.iam.v1.Binding.getDefaultInstance() : iamBinding_; } } /** + * + * *
          * The Cloud IAM policy binding under analysis.
          * 
    @@ -8831,40 +9844,55 @@ public com.google.iam.v1.BindingOrBuilder getIamBindingOrBuilder() { * .google.iam.v1.Binding iam_binding = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Binding, com.google.iam.v1.Binding.Builder, com.google.iam.v1.BindingOrBuilder> + com.google.iam.v1.Binding, + com.google.iam.v1.Binding.Builder, + com.google.iam.v1.BindingOrBuilder> getIamBindingFieldBuilder() { if (iamBindingBuilder_ == null) { - iamBindingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Binding, com.google.iam.v1.Binding.Builder, com.google.iam.v1.BindingOrBuilder>( - getIamBinding(), - getParentForChildren(), - isClean()); + iamBindingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.iam.v1.Binding, + com.google.iam.v1.Binding.Builder, + com.google.iam.v1.BindingOrBuilder>( + getIamBinding(), getParentForChildren(), isClean()); iamBinding_ = null; } return iamBindingBuilder_; } - private java.util.List accessControlLists_ = - java.util.Collections.emptyList(); + private java.util.List + accessControlLists_ = java.util.Collections.emptyList(); + private void ensureAccessControlListsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - accessControlLists_ = new java.util.ArrayList(accessControlLists_); + accessControlLists_ = + new java.util.ArrayList< + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList>( + accessControlLists_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder> accessControlListsBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder> + accessControlListsBuilder_; /** + * + * *
          * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match resource and access selectors specified in the request.
          * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ - public java.util.List getAccessControlListsList() { + public java.util.List + getAccessControlListsList() { if (accessControlListsBuilder_ == null) { return java.util.Collections.unmodifiableList(accessControlLists_); } else { @@ -8872,12 +9900,16 @@ public java.util.List * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or * potentially match resource and access selectors specified in the request. *
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ public int getAccessControlListsCount() { if (accessControlListsBuilder_ == null) { @@ -8887,14 +9919,19 @@ public int getAccessControlListsCount() { } } /** + * + * *
          * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match resource and access selectors specified in the request.
          * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getAccessControlLists(int index) { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList + getAccessControlLists(int index) { if (accessControlListsBuilder_ == null) { return accessControlLists_.get(index); } else { @@ -8902,12 +9939,16 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getAc } } /** + * + * *
          * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match resource and access selectors specified in the request.
          * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ public Builder setAccessControlLists( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList value) { @@ -8924,15 +9965,21 @@ public Builder setAccessControlLists( return this; } /** + * + * *
          * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match resource and access selectors specified in the request.
          * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ public Builder setAccessControlLists( - int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder builderForValue) { + int index, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder + builderForValue) { if (accessControlListsBuilder_ == null) { ensureAccessControlListsIsMutable(); accessControlLists_.set(index, builderForValue.build()); @@ -8943,14 +9990,19 @@ public Builder setAccessControlLists( return this; } /** + * + * *
          * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match resource and access selectors specified in the request.
          * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ - public Builder addAccessControlLists(com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList value) { + public Builder addAccessControlLists( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList value) { if (accessControlListsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8964,12 +10016,16 @@ public Builder addAccessControlLists(com.google.cloud.asset.v1.IamPolicyAnalysis return this; } /** + * + * *
          * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match resource and access selectors specified in the request.
          * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ public Builder addAccessControlLists( int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList value) { @@ -8986,15 +10042,20 @@ public Builder addAccessControlLists( return this; } /** + * + * *
          * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match resource and access selectors specified in the request.
          * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ public Builder addAccessControlLists( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder builderForValue) { + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder + builderForValue) { if (accessControlListsBuilder_ == null) { ensureAccessControlListsIsMutable(); accessControlLists_.add(builderForValue.build()); @@ -9005,15 +10066,21 @@ public Builder addAccessControlLists( return this; } /** + * + * *
          * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match resource and access selectors specified in the request.
          * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ public Builder addAccessControlLists( - int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder builderForValue) { + int index, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder + builderForValue) { if (accessControlListsBuilder_ == null) { ensureAccessControlListsIsMutable(); accessControlLists_.add(index, builderForValue.build()); @@ -9024,19 +10091,24 @@ public Builder addAccessControlLists( return this; } /** + * + * *
          * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match resource and access selectors specified in the request.
          * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ public Builder addAllAccessControlLists( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList> + values) { if (accessControlListsBuilder_ == null) { ensureAccessControlListsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, accessControlLists_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessControlLists_); onChanged(); } else { accessControlListsBuilder_.addAllMessages(values); @@ -9044,12 +10116,16 @@ public Builder addAllAccessControlLists( return this; } /** + * + * *
          * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match resource and access selectors specified in the request.
          * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ public Builder clearAccessControlLists() { if (accessControlListsBuilder_ == null) { @@ -9062,12 +10138,16 @@ public Builder clearAccessControlLists() { return this; } /** + * + * *
          * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match resource and access selectors specified in the request.
          * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ public Builder removeAccessControlLists(int index) { if (accessControlListsBuilder_ == null) { @@ -9080,42 +10160,56 @@ public Builder removeAccessControlLists(int index) { return this; } /** + * + * *
          * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match resource and access selectors specified in the request.
          * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder getAccessControlListsBuilder( - int index) { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder + getAccessControlListsBuilder(int index) { return getAccessControlListsFieldBuilder().getBuilder(index); } /** + * + * *
          * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match resource and access selectors specified in the request.
          * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder getAccessControlListsOrBuilder( - int index) { + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder + getAccessControlListsOrBuilder(int index) { if (accessControlListsBuilder_ == null) { - return accessControlLists_.get(index); } else { + return accessControlLists_.get(index); + } else { return accessControlListsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
          * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match resource and access selectors specified in the request.
          * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ - public java.util.List - getAccessControlListsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder> + getAccessControlListsOrBuilderList() { if (accessControlListsBuilder_ != null) { return accessControlListsBuilder_.getMessageOrBuilderList(); } else { @@ -9123,48 +10217,73 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuil } } /** + * + * *
          * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match resource and access selectors specified in the request.
          * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder addAccessControlListsBuilder() { - return getAccessControlListsFieldBuilder().addBuilder( - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.getDefaultInstance()); + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder + addAccessControlListsBuilder() { + return getAccessControlListsFieldBuilder() + .addBuilder( + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList + .getDefaultInstance()); } /** + * + * *
          * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match resource and access selectors specified in the request.
          * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ - public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder addAccessControlListsBuilder( - int index) { - return getAccessControlListsFieldBuilder().addBuilder( - index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.getDefaultInstance()); + public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder + addAccessControlListsBuilder(int index) { + return getAccessControlListsFieldBuilder() + .addBuilder( + index, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList + .getDefaultInstance()); } /** + * + * *
          * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match resource and access selectors specified in the request.
          * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ - public java.util.List - getAccessControlListsBuilderList() { + public java.util.List< + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder> + getAccessControlListsBuilderList() { return getAccessControlListsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder> + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder> getAccessControlListsFieldBuilder() { if (accessControlListsBuilder_ == null) { - accessControlListsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder>( + accessControlListsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder>( accessControlLists_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -9176,36 +10295,49 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList.Build private com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identityList_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList, com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder> identityListBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder> + identityListBuilder_; /** + * + * *
          * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match identity selector specified in the request.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; + * * @return Whether the identityList field is set. */ public boolean hasIdentityList() { return identityListBuilder_ != null || identityList_ != null; } /** + * + * *
          * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match identity selector specified in the request.
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; + * * @return The identityList. */ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList getIdentityList() { if (identityListBuilder_ == null) { - return identityList_ == null ? com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.getDefaultInstance() : identityList_; + return identityList_ == null + ? com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.getDefaultInstance() + : identityList_; } else { return identityListBuilder_.getMessage(); } } /** + * + * *
          * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match identity selector specified in the request.
    @@ -9213,7 +10345,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList getIdentit
          *
          * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;
          */
    -    public Builder setIdentityList(com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList value) {
    +    public Builder setIdentityList(
    +        com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList value) {
           if (identityListBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -9227,6 +10360,8 @@ public Builder setIdentityList(com.google.cloud.asset.v1.IamPolicyAnalysisResult
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match identity selector specified in the request.
    @@ -9246,6 +10381,8 @@ public Builder setIdentityList(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match identity selector specified in the request.
    @@ -9253,11 +10390,15 @@ public Builder setIdentityList(
          *
          * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;
          */
    -    public Builder mergeIdentityList(com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList value) {
    +    public Builder mergeIdentityList(
    +        com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList value) {
           if (identityListBuilder_ == null) {
             if (identityList_ != null) {
               identityList_ =
    -            com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.newBuilder(identityList_).mergeFrom(value).buildPartial();
    +              com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.newBuilder(
    +                      identityList_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               identityList_ = value;
             }
    @@ -9269,6 +10410,8 @@ public Builder mergeIdentityList(com.google.cloud.asset.v1.IamPolicyAnalysisResu
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match identity selector specified in the request.
    @@ -9288,6 +10431,8 @@ public Builder clearIdentityList() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match identity selector specified in the request.
    @@ -9295,12 +10440,15 @@ public Builder clearIdentityList() {
          *
          * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;
          */
    -    public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder getIdentityListBuilder() {
    -      
    +    public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder
    +        getIdentityListBuilder() {
    +
           onChanged();
           return getIdentityListFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match identity selector specified in the request.
    @@ -9308,15 +10456,19 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder ge
          *
          * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;
          */
    -    public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder getIdentityListOrBuilder() {
    +    public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder
    +        getIdentityListOrBuilder() {
           if (identityListBuilder_ != null) {
             return identityListBuilder_.getMessageOrBuilder();
           } else {
    -        return identityList_ == null ?
    -            com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.getDefaultInstance() : identityList_;
    +        return identityList_ == null
    +            ? com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.getDefaultInstance()
    +            : identityList_;
           }
         }
         /**
    +     *
    +     *
          * 
          * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
          * potentially match identity selector specified in the request.
    @@ -9325,27 +10477,33 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder g
          * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList, com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder> 
    +            com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList,
    +            com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder,
    +            com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder>
             getIdentityListFieldBuilder() {
           if (identityListBuilder_ == null) {
    -        identityListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList, com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder>(
    -                getIdentityList(),
    -                getParentForChildren(),
    -                isClean());
    +        identityListBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList,
    +                com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.Builder,
    +                com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder>(
    +                getIdentityList(), getParentForChildren(), isClean());
             identityList_ = null;
           }
           return identityListBuilder_;
         }
     
    -    private boolean fullyExplored_ ;
    +    private boolean fullyExplored_;
         /**
    +     *
    +     *
          * 
          * Represents whether all analyses on the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] have successfully
          * finished.
          * 
    * * bool fully_explored = 5; + * * @return The fullyExplored. */ @java.lang.Override @@ -9353,39 +10511,45 @@ public boolean getFullyExplored() { return fullyExplored_; } /** + * + * *
          * Represents whether all analyses on the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] have successfully
          * finished.
          * 
    * * bool fully_explored = 5; + * * @param value The fullyExplored to set. * @return This builder for chaining. */ public Builder setFullyExplored(boolean value) { - + fullyExplored_ = value; onChanged(); return this; } /** + * + * *
          * Represents whether all analyses on the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] have successfully
          * finished.
          * 
    * * bool fully_explored = 5; + * * @return This builder for chaining. */ public Builder clearFullyExplored() { - + fullyExplored_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -9395,12 +10559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisResult) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisResult) private static final com.google.cloud.asset.v1.IamPolicyAnalysisResult DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisResult(); } @@ -9409,27 +10573,27 @@ public static com.google.cloud.asset.v1.IamPolicyAnalysisResult getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IamPolicyAnalysisResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IamPolicyAnalysisResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9444,6 +10608,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.IamPolicyAnalysisResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResultOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResultOrBuilder.java similarity index 72% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResultOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResultOrBuilder.java index 05436cafc437..4b95e3bb15be 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResultOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResultOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; -public interface IamPolicyAnalysisResultOrBuilder extends +public interface IamPolicyAnalysisResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The [full resource
        * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -15,10 +33,13 @@ public interface IamPolicyAnalysisResultOrBuilder extends
        * 
    * * string attached_resource_full_name = 1; + * * @return The attachedResourceFullName. */ java.lang.String getAttachedResourceFullName(); /** + * + * *
        * The [full resource
        * name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    @@ -26,30 +47,38 @@ public interface IamPolicyAnalysisResultOrBuilder extends
        * 
    * * string attached_resource_full_name = 1; + * * @return The bytes for attachedResourceFullName. */ - com.google.protobuf.ByteString - getAttachedResourceFullNameBytes(); + com.google.protobuf.ByteString getAttachedResourceFullNameBytes(); /** + * + * *
        * The Cloud IAM policy binding under analysis.
        * 
    * * .google.iam.v1.Binding iam_binding = 2; + * * @return Whether the iamBinding field is set. */ boolean hasIamBinding(); /** + * + * *
        * The Cloud IAM policy binding under analysis.
        * 
    * * .google.iam.v1.Binding iam_binding = 2; + * * @return The iamBinding. */ com.google.iam.v1.Binding getIamBinding(); /** + * + * *
        * The Cloud IAM policy binding under analysis.
        * 
    @@ -59,75 +88,105 @@ public interface IamPolicyAnalysisResultOrBuilder extends com.google.iam.v1.BindingOrBuilder getIamBindingOrBuilder(); /** + * + * *
        * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
        * potentially match resource and access selectors specified in the request.
        * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ - java.util.List + java.util.List getAccessControlListsList(); /** + * + * *
        * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
        * potentially match resource and access selectors specified in the request.
        * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getAccessControlLists(int index); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList getAccessControlLists( + int index); /** + * + * *
        * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
        * potentially match resource and access selectors specified in the request.
        * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ int getAccessControlListsCount(); /** + * + * *
        * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
        * potentially match resource and access selectors specified in the request.
        * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder> getAccessControlListsOrBuilderList(); /** + * + * *
        * The access control lists derived from the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
        * potentially match resource and access selectors specified in the request.
        * 
    * - * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * + * repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; + * */ - com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder getAccessControlListsOrBuilder( - int index); + com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder + getAccessControlListsOrBuilder(int index); /** + * + * *
        * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
        * potentially match identity selector specified in the request.
        * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; + * * @return Whether the identityList field is set. */ boolean hasIdentityList(); /** + * + * *
        * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
        * potentially match identity selector specified in the request.
        * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; + * * @return The identityList. */ com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList getIdentityList(); /** + * + * *
        * The identity list derived from members of the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] that match or
        * potentially match identity selector specified in the request.
    @@ -135,15 +194,19 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListOrBuilder get
        *
        * .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4;
        */
    -  com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder getIdentityListOrBuilder();
    +  com.google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityListOrBuilder
    +      getIdentityListOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * Represents whether all analyses on the [iam_binding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding] have successfully
        * finished.
        * 
    * * bool fully_explored = 5; + * * @return The fullyExplored. */ boolean getFullyExplored(); diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisState.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisState.java similarity index 70% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisState.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisState.java index f35933776f5d..0047a4a4a95a 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisState.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisState.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** + * + * *
      * Represents the detailed state of an entity under analysis, such as a
      * resource, an identity or an access.
    @@ -11,15 +28,16 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisState}
      */
    -public final class IamPolicyAnalysisState extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class IamPolicyAnalysisState extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisState)
         IamPolicyAnalysisStateOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use IamPolicyAnalysisState.newBuilder() to construct.
       private IamPolicyAnalysisState(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private IamPolicyAnalysisState() {
         code_ = 0;
         cause_ = "";
    @@ -27,32 +45,35 @@ private IamPolicyAnalysisState() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(
    -      UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new IamPolicyAnalysisState();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetProto
    +        .internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetProto
    +        .internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1.IamPolicyAnalysisState.class, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder.class);
    +            com.google.cloud.asset.v1.IamPolicyAnalysisState.class,
    +            com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder.class);
       }
     
       public static final int CODE_FIELD_NUMBER = 1;
       private int code_;
       /**
    +   *
    +   *
        * 
        * The Google standard error code that best describes the state.
        * For example:
    @@ -63,12 +84,16 @@ protected java.lang.Object newInstance(
        * 
    * * .google.rpc.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
        * The Google standard error code that best describes the state.
        * For example:
    @@ -79,9 +104,11 @@ protected java.lang.Object newInstance(
        * 
    * * .google.rpc.Code code = 1; + * * @return The code. */ - @java.lang.Override public com.google.rpc.Code getCode() { + @java.lang.Override + public com.google.rpc.Code getCode() { @SuppressWarnings("deprecation") com.google.rpc.Code result = com.google.rpc.Code.valueOf(code_); return result == null ? com.google.rpc.Code.UNRECOGNIZED : result; @@ -90,11 +117,14 @@ protected java.lang.Object newInstance( public static final int CAUSE_FIELD_NUMBER = 2; private volatile java.lang.Object cause_; /** + * + * *
        * The human-readable description of the cause of failure.
        * 
    * * string cause = 2; + * * @return The cause. */ @java.lang.Override @@ -103,29 +133,29 @@ public java.lang.String getCause() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cause_ = s; return s; } } /** + * + * *
        * The human-readable description of the cause of failure.
        * 
    * * string cause = 2; + * * @return The bytes for cause. */ @java.lang.Override - public com.google.protobuf.ByteString - getCauseBytes() { + public com.google.protobuf.ByteString getCauseBytes() { java.lang.Object ref = cause_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cause_ = b; return b; } else { @@ -134,6 +164,7 @@ public java.lang.String getCause() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -145,8 +176,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (code_ != com.google.rpc.Code.OK.getNumber()) { output.writeEnum(1, code_); } @@ -163,8 +193,7 @@ public int getSerializedSize() { size = 0; if (code_ != com.google.rpc.Code.OK.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, code_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cause_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cause_); @@ -177,16 +206,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicyAnalysisState)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicyAnalysisState other = (com.google.cloud.asset.v1.IamPolicyAnalysisState) obj; + com.google.cloud.asset.v1.IamPolicyAnalysisState other = + (com.google.cloud.asset.v1.IamPolicyAnalysisState) obj; if (code_ != other.code_) return false; - if (!getCause() - .equals(other.getCause())) return false; + if (!getCause().equals(other.getCause())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -207,97 +236,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisState 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.asset.v1.IamPolicyAnalysisState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicyAnalysisState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Represents the detailed state of an entity under analysis, such as a
        * resource, an identity or an access.
    @@ -305,33 +341,32 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisState}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisState)
           com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.IamPolicyAnalysisState.class, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder.class);
    +              com.google.cloud.asset.v1.IamPolicyAnalysisState.class,
    +              com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisState.newBuilder()
    -    private Builder() {
    +    private Builder() {}
     
    -    }
    -
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -343,9 +378,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor;
         }
     
         @java.lang.Override
    @@ -364,7 +399,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisState build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1.IamPolicyAnalysisState buildPartial() {
    -      com.google.cloud.asset.v1.IamPolicyAnalysisState result = new com.google.cloud.asset.v1.IamPolicyAnalysisState(this);
    +      com.google.cloud.asset.v1.IamPolicyAnalysisState result =
    +          new com.google.cloud.asset.v1.IamPolicyAnalysisState(this);
           result.code_ = code_;
           result.cause_ = cause_;
           onBuilt();
    @@ -375,38 +411,39 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisState buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.IamPolicyAnalysisState) {
    -        return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisState)other);
    +        return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisState) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -414,7 +451,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
         }
     
         public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisState other) {
    -      if (other == com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance()) return this;
    +      if (other == com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance())
    +        return this;
           if (other.code_ != 0) {
             setCodeValue(other.getCodeValue());
           }
    @@ -448,22 +486,25 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
    -            case 8: {
    -              code_ = input.readEnum();
    -
    -              break;
    -            } // case 8
    -            case 18: {
    -              cause_ = input.readStringRequireUtf8();
    -
    -              break;
    -            } // case 18
    -            default: {
    -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                done = true; // was an endgroup tag
    -              }
    -              break;
    -            } // default:
    +            case 8:
    +              {
    +                code_ = input.readEnum();
    +
    +                break;
    +              } // case 8
    +            case 18:
    +              {
    +                cause_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -476,6 +517,8 @@ public Builder mergeFrom(
     
         private int code_ = 0;
         /**
    +     *
    +     *
          * 
          * The Google standard error code that best describes the state.
          * For example:
    @@ -486,12 +529,16 @@ public Builder mergeFrom(
          * 
    * * .google.rpc.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
          * The Google standard error code that best describes the state.
          * For example:
    @@ -502,16 +549,19 @@ public Builder mergeFrom(
          * 
    * * .google.rpc.Code code = 1; + * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** + * + * *
          * The Google standard error code that best describes the state.
          * For example:
    @@ -522,6 +572,7 @@ public Builder setCodeValue(int value) {
          * 
    * * .google.rpc.Code code = 1; + * * @return The code. */ @java.lang.Override @@ -531,6 +582,8 @@ public com.google.rpc.Code getCode() { return result == null ? com.google.rpc.Code.UNRECOGNIZED : result; } /** + * + * *
          * The Google standard error code that best describes the state.
          * For example:
    @@ -541,6 +594,7 @@ public com.google.rpc.Code getCode() {
          * 
    * * .google.rpc.Code code = 1; + * * @param value The code to set. * @return This builder for chaining. */ @@ -548,12 +602,14 @@ public Builder setCode(com.google.rpc.Code value) { if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** + * + * *
          * The Google standard error code that best describes the state.
          * For example:
    @@ -564,10 +620,11 @@ public Builder setCode(com.google.rpc.Code value) {
          * 
    * * .google.rpc.Code code = 1; + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -575,18 +632,20 @@ public Builder clearCode() { private java.lang.Object cause_ = ""; /** + * + * *
          * The human-readable description of the cause of failure.
          * 
    * * string cause = 2; + * * @return The cause. */ public java.lang.String getCause() { java.lang.Object ref = cause_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cause_ = s; return s; @@ -595,20 +654,21 @@ public java.lang.String getCause() { } } /** + * + * *
          * The human-readable description of the cause of failure.
          * 
    * * string cause = 2; + * * @return The bytes for cause. */ - public com.google.protobuf.ByteString - getCauseBytes() { + public com.google.protobuf.ByteString getCauseBytes() { java.lang.Object ref = cause_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cause_ = b; return b; } else { @@ -616,61 +676,68 @@ public java.lang.String getCause() { } } /** + * + * *
          * The human-readable description of the cause of failure.
          * 
    * * string cause = 2; + * * @param value The cause to set. * @return This builder for chaining. */ - public Builder setCause( - java.lang.String value) { + public Builder setCause(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cause_ = value; onChanged(); return this; } /** + * + * *
          * The human-readable description of the cause of failure.
          * 
    * * string cause = 2; + * * @return This builder for chaining. */ public Builder clearCause() { - + cause_ = getDefaultInstance().getCause(); onChanged(); return this; } /** + * + * *
          * The human-readable description of the cause of failure.
          * 
    * * string cause = 2; + * * @param value The bytes for cause to set. * @return This builder for chaining. */ - public Builder setCauseBytes( - com.google.protobuf.ByteString value) { + public Builder setCauseBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cause_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -680,12 +747,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicyAnalysisState) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicyAnalysisState) private static final com.google.cloud.asset.v1.IamPolicyAnalysisState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicyAnalysisState(); } @@ -694,27 +761,27 @@ public static com.google.cloud.asset.v1.IamPolicyAnalysisState getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IamPolicyAnalysisState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IamPolicyAnalysisState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -729,6 +796,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.IamPolicyAnalysisState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisStateOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisStateOrBuilder.java similarity index 67% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisStateOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisStateOrBuilder.java index 6208f59f108b..be06b9be5648 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisStateOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisStateOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; -public interface IamPolicyAnalysisStateOrBuilder extends +public interface IamPolicyAnalysisStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisState) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The Google standard error code that best describes the state.
        * For example:
    @@ -18,10 +36,13 @@ public interface IamPolicyAnalysisStateOrBuilder extends
        * 
    * * .google.rpc.Code code = 1; + * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** + * + * *
        * The Google standard error code that best describes the state.
        * For example:
    @@ -32,27 +53,33 @@ public interface IamPolicyAnalysisStateOrBuilder extends
        * 
    * * .google.rpc.Code code = 1; + * * @return The code. */ com.google.rpc.Code getCode(); /** + * + * *
        * The human-readable description of the cause of failure.
        * 
    * * string cause = 2; + * * @return The cause. */ java.lang.String getCause(); /** + * + * *
        * The human-readable description of the cause of failure.
        * 
    * * string cause = 2; + * * @return The bytes for cause. */ - com.google.protobuf.ByteString - getCauseBytes(); + com.google.protobuf.ByteString getCauseBytes(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java similarity index 72% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java index eccf11b3db30..0a6a0e044229 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** + * + * *
      * A result of IAM Policy search, containing information of an IAM policy.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicySearchResult} */ -public final class IamPolicySearchResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class IamPolicySearchResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicySearchResult) IamPolicySearchResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IamPolicySearchResult.newBuilder() to construct. private IamPolicySearchResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private IamPolicySearchResult() { resource_ = ""; assetType_ = ""; @@ -29,34 +47,38 @@ private IamPolicySearchResult() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IamPolicySearchResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicySearchResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicySearchResult.class, com.google.cloud.asset.v1.IamPolicySearchResult.Builder.class); + com.google.cloud.asset.v1.IamPolicySearchResult.class, + com.google.cloud.asset.v1.IamPolicySearchResult.Builder.class); } - public interface ExplanationOrBuilder extends + public interface ExplanationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicySearchResult.Explanation) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * The map from roles to their included permissions that match the
          * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -67,10 +89,14 @@ public interface ExplanationOrBuilder extends
          * map is populated only for requests with permission queries.
          * 
    * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; + * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; + * */ int getMatchedPermissionsCount(); /** + * + * *
          * The map from roles to their included permissions that match the
          * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -81,17 +107,20 @@ public interface ExplanationOrBuilder extends
          * map is populated only for requests with permission queries.
          * 
    * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; - */ - boolean containsMatchedPermissions( - java.lang.String key); - /** - * Use {@link #getMatchedPermissionsMap()} instead. + * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; + * */ + boolean containsMatchedPermissions(java.lang.String key); + /** Use {@link #getMatchedPermissionsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getMatchedPermissions(); + java.util.Map< + java.lang.String, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> + getMatchedPermissions(); /** + * + * *
          * The map from roles to their included permissions that match the
          * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -102,11 +131,17 @@ boolean containsMatchedPermissions(
          * map is populated only for requests with permission queries.
          * 
    * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; + * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; + * */ - java.util.Map - getMatchedPermissionsMap(); + java.util.Map< + java.lang.String, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> + getMatchedPermissionsMap(); /** + * + * *
          * The map from roles to their included permissions that match the
          * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -117,15 +152,20 @@ boolean containsMatchedPermissions(
          * map is populated only for requests with permission queries.
          * 
    * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; + * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; + * */ /* nullable */ -com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions getMatchedPermissionsOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions defaultValue); + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions + getMatchedPermissionsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions defaultValue); /** + * + * *
          * The map from roles to their included permissions that match the
          * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -136,189 +176,216 @@ com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions getMatch
          * map is populated only for requests with permission queries.
          * 
    * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; + * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; + * */ - - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions getMatchedPermissionsOrThrow( - java.lang.String key); + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions + getMatchedPermissionsOrThrow(java.lang.String key); } /** + * + * *
        * Explanation about the IAM policy search result.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicySearchResult.Explanation} */ - public static final class Explanation extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Explanation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicySearchResult.Explanation) ExplanationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Explanation.newBuilder() to construct. private Explanation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Explanation() { - } + + private Explanation() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Explanation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetMatchedPermissions(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.class, com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder.class); + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.class, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder.class); } - public interface PermissionsOrBuilder extends + public interface PermissionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions) com.google.protobuf.MessageOrBuilder { /** + * + * *
            * A list of permissions. A sample permission string: `compute.disk.get`.
            * 
    * * repeated string permissions = 1; + * * @return A list containing the permissions. */ - java.util.List - getPermissionsList(); + java.util.List getPermissionsList(); /** + * + * *
            * A list of permissions. A sample permission string: `compute.disk.get`.
            * 
    * * repeated string permissions = 1; + * * @return The count of permissions. */ int getPermissionsCount(); /** + * + * *
            * A list of permissions. A sample permission string: `compute.disk.get`.
            * 
    * * repeated string permissions = 1; + * * @param index The index of the element to return. * @return The permissions at the given index. */ java.lang.String getPermissions(int index); /** + * + * *
            * A list of permissions. A sample permission string: `compute.disk.get`.
            * 
    * * repeated string permissions = 1; + * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - com.google.protobuf.ByteString - getPermissionsBytes(int index); + com.google.protobuf.ByteString getPermissionsBytes(int index); } /** + * + * *
          * IAM permissions
          * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions} */ - public static final class Permissions extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Permissions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions) PermissionsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Permissions.newBuilder() to construct. private Permissions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Permissions() { permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Permissions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.class, com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.Builder.class); + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.class, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.Builder + .class); } public static final int PERMISSIONS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList permissions_; /** + * + * *
            * A list of permissions. A sample permission string: `compute.disk.get`.
            * 
    * * repeated string permissions = 1; + * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList - getPermissionsList() { + public com.google.protobuf.ProtocolStringList getPermissionsList() { return permissions_; } /** + * + * *
            * A list of permissions. A sample permission string: `compute.disk.get`.
            * 
    * * repeated string permissions = 1; + * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** + * + * *
            * A list of permissions. A sample permission string: `compute.disk.get`.
            * 
    * * repeated string permissions = 1; + * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -326,20 +393,23 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** + * + * *
            * A list of permissions. A sample permission string: `compute.disk.get`.
            * 
    * * repeated string permissions = 1; + * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString - getPermissionsBytes(int index) { + public com.google.protobuf.ByteString getPermissionsBytes(int index) { return permissions_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -351,8 +421,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < permissions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, permissions_.getRaw(i)); } @@ -381,15 +450,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions)) { + if (!(obj + instanceof com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions other = (com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions) obj; + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions other = + (com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions) obj; - if (!getPermissionsList() - .equals(other.getPermissionsList())) return false; + if (!getPermissionsList().equals(other.getPermissionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -410,88 +480,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions + 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.asset.v1.IamPolicySearchResult.Explanation.Permissions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions + 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.asset.v1.IamPolicySearchResult.Explanation.Permissions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions 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.asset.v1.IamPolicySearchResult.Explanation.Permissions + 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.asset.v1.IamPolicySearchResult.Explanation.Permissions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions 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.asset.v1.IamPolicySearchResult.Explanation.Permissions + 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.asset.v1.IamPolicySearchResult.Explanation.Permissions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -501,39 +586,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
            * IAM permissions
            * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions) com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.PermissionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.class, com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.Builder.class); + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.class, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.Builder + .class); } - // Construct using com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -543,19 +632,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions getDefaultInstanceForType() { - return com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.getDefaultInstance(); + public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions + getDefaultInstanceForType() { + return com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions build() { - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions result = buildPartial(); + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -563,8 +655,10 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions b } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions buildPartial() { - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions result = new com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions(this); + public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions + buildPartial() { + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions result = + new com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { permissions_ = permissions_.getUnmodifiableView(); @@ -579,46 +673,54 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions b public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicySearchResult.Explanation.Permissions) { - return mergeFrom((com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions)other); + if (other + instanceof com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions) { + return mergeFrom( + (com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions other) { - if (other == com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions other) { + if (other + == com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions + .getDefaultInstance()) return this; if (!other.permissions_.isEmpty()) { if (permissions_.isEmpty()) { permissions_ = other.permissions_; @@ -655,18 +757,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensurePermissionsIsMutable(); - permissions_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePermissionsIsMutable(); + permissions_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -676,44 +780,55 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList permissions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePermissionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
              * A list of permissions. A sample permission string: `compute.disk.get`.
              * 
    * * repeated string permissions = 1; + * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList - getPermissionsList() { + public com.google.protobuf.ProtocolStringList getPermissionsList() { return permissions_.getUnmodifiableView(); } /** + * + * *
              * A list of permissions. A sample permission string: `compute.disk.get`.
              * 
    * * repeated string permissions = 1; + * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** + * + * *
              * A list of permissions. A sample permission string: `compute.disk.get`.
              * 
    * * repeated string permissions = 1; + * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -721,80 +836,90 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** + * + * *
              * A list of permissions. A sample permission string: `compute.disk.get`.
              * 
    * * repeated string permissions = 1; + * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString - getPermissionsBytes(int index) { + public com.google.protobuf.ByteString getPermissionsBytes(int index) { return permissions_.getByteString(index); } /** + * + * *
              * A list of permissions. A sample permission string: `compute.disk.get`.
              * 
    * * repeated string permissions = 1; + * * @param index The index to set the value at. * @param value The permissions to set. * @return This builder for chaining. */ - public Builder setPermissions( - int index, java.lang.String value) { + public Builder setPermissions(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); return this; } /** + * + * *
              * A list of permissions. A sample permission string: `compute.disk.get`.
              * 
    * * repeated string permissions = 1; + * * @param value The permissions to add. * @return This builder for chaining. */ - public Builder addPermissions( - java.lang.String value) { + public Builder addPermissions(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } /** + * + * *
              * A list of permissions. A sample permission string: `compute.disk.get`.
              * 
    * * repeated string permissions = 1; + * * @param values The permissions to add. * @return This builder for chaining. */ - public Builder addAllPermissions( - java.lang.Iterable values) { + public Builder addAllPermissions(java.lang.Iterable values) { ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, permissions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, permissions_); onChanged(); return this; } /** + * + * *
              * A list of permissions. A sample permission string: `compute.disk.get`.
              * 
    * * repeated string permissions = 1; + * * @return This builder for chaining. */ public Builder clearPermissions() { @@ -804,25 +929,28 @@ public Builder clearPermissions() { return this; } /** + * + * *
              * A list of permissions. A sample permission string: `compute.disk.get`.
              * 
    * * repeated string permissions = 1; + * * @param value The bytes of the permissions to add. * @return This builder for chaining. */ - public Builder addPermissionsBytes( - com.google.protobuf.ByteString value) { + public Builder addPermissionsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -835,41 +963,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions) - private static final com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions DEFAULT_INSTANCE; + private static final com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions(); + DEFAULT_INSTANCE = + new com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions(); } - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions getDefaultInstance() { + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Permissions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Permissions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -881,28 +1013,41 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions getDefaultInstanceForType() { + public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int MATCHED_PERMISSIONS_FIELD_NUMBER = 1; + private static final class MatchedPermissionsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> defaultEntry = + java.lang.String, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions + .getDefaultInstance()); } + private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matchedPermissions_; - private com.google.protobuf.MapField - internalGetMatchedPermissions() { + java.lang.String, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> + matchedPermissions_; + + private com.google.protobuf.MapField< + java.lang.String, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> + internalGetMatchedPermissions() { if (matchedPermissions_ == null) { return com.google.protobuf.MapField.emptyMapField( MatchedPermissionsDefaultEntryHolder.defaultEntry); @@ -914,6 +1059,8 @@ public int getMatchedPermissionsCount() { return internalGetMatchedPermissions().getMap().size(); } /** + * + * *
          * The map from roles to their included permissions that match the
          * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -924,24 +1071,29 @@ public int getMatchedPermissionsCount() {
          * map is populated only for requests with permission queries.
          * 
    * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; + * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; + * */ - @java.lang.Override - public boolean containsMatchedPermissions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsMatchedPermissions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetMatchedPermissions().getMap().containsKey(key); } - /** - * Use {@link #getMatchedPermissionsMap()} instead. - */ + /** Use {@link #getMatchedPermissionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getMatchedPermissions() { + public java.util.Map< + java.lang.String, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> + getMatchedPermissions() { return getMatchedPermissionsMap(); } /** + * + * *
          * The map from roles to their included permissions that match the
          * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -952,14 +1104,20 @@ public java.util.Map
          *
    -     * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;
    +     * 
    +     * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;
    +     * 
          */
         @java.lang.Override
    -
    -    public java.util.Map getMatchedPermissionsMap() {
    +    public java.util.Map<
    +            java.lang.String,
    +            com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions>
    +        getMatchedPermissionsMap() {
           return internalGetMatchedPermissions().getMap();
         }
         /**
    +     *
    +     *
          * 
          * The map from roles to their included permissions that match the
          * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -970,19 +1128,27 @@ public java.util.Map
          *
    -     * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;
    +     * 
    +     * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;
    +     * 
          */
         @java.lang.Override
    -
    -    public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions getMatchedPermissionsOrDefault(
    -        java.lang.String key,
    -        com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions defaultValue) {
    -      if (key == null) { throw new NullPointerException("map key"); }
    -      java.util.Map map =
    -          internalGetMatchedPermissions().getMap();
    +    public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions
    +        getMatchedPermissionsOrDefault(
    +            java.lang.String key,
    +            com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions defaultValue) {
    +      if (key == null) {
    +        throw new NullPointerException("map key");
    +      }
    +      java.util.Map<
    +              java.lang.String,
    +              com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions>
    +          map = internalGetMatchedPermissions().getMap();
           return map.containsKey(key) ? map.get(key) : defaultValue;
         }
         /**
    +     *
    +     *
          * 
          * The map from roles to their included permissions that match the
          * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -993,15 +1159,20 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions g
          * map is populated only for requests with permission queries.
          * 
    * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; + * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; + * */ @java.lang.Override - - public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions getMatchedPermissionsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMatchedPermissions().getMap(); + public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions + getMatchedPermissionsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> + map = internalGetMatchedPermissions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1009,6 +1180,7 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions g } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1020,10 +1192,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetMatchedPermissions(), MatchedPermissionsDefaultEntryHolder.defaultEntry, @@ -1037,15 +1207,20 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetMatchedPermissions().getMap().entrySet()) { - com.google.protobuf.MapEntry - matchedPermissions__ = MatchedPermissionsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, matchedPermissions__); + for (java.util.Map.Entry< + java.lang.String, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> + entry : internalGetMatchedPermissions().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> + matchedPermissions__ = + MatchedPermissionsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, matchedPermissions__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1055,15 +1230,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.IamPolicySearchResult.Explanation)) { return super.equals(obj); } - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation other = (com.google.cloud.asset.v1.IamPolicySearchResult.Explanation) obj; + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation other = + (com.google.cloud.asset.v1.IamPolicySearchResult.Explanation) obj; - if (!internalGetMatchedPermissions().equals( - other.internalGetMatchedPermissions())) return false; + if (!internalGetMatchedPermissions().equals(other.internalGetMatchedPermissions())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1085,87 +1261,94 @@ public int hashCode() { } public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation 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.asset.v1.IamPolicySearchResult.Explanation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicySearchResult.Explanation prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1175,61 +1358,61 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * Explanation about the IAM policy search result.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicySearchResult.Explanation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicySearchResult.Explanation) com.google.cloud.asset.v1.IamPolicySearchResult.ExplanationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetMatchedPermissions(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 1: return internalGetMutableMatchedPermissions(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.class, com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder.class); + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.class, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder.class); } // Construct using com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1238,13 +1421,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation getDefaultInstanceForType() { + public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation + getDefaultInstanceForType() { return com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.getDefaultInstance(); } @@ -1259,7 +1443,8 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation build() { @java.lang.Override public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation buildPartial() { - com.google.cloud.asset.v1.IamPolicySearchResult.Explanation result = new com.google.cloud.asset.v1.IamPolicySearchResult.Explanation(this); + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation result = + new com.google.cloud.asset.v1.IamPolicySearchResult.Explanation(this); int from_bitField0_ = bitField0_; result.matchedPermissions_ = internalGetMatchedPermissions(); result.matchedPermissions_.makeImmutable(); @@ -1271,38 +1456,41 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicySearchResult.Explanation) { - return mergeFrom((com.google.cloud.asset.v1.IamPolicySearchResult.Explanation)other); + return mergeFrom((com.google.cloud.asset.v1.IamPolicySearchResult.Explanation) other); } else { super.mergeFrom(other); return this; @@ -1310,9 +1498,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicySearchResult.Explanation other) { - if (other == com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.getDefaultInstance()) return this; - internalGetMutableMatchedPermissions().mergeFrom( - other.internalGetMatchedPermissions()); + if (other + == com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.getDefaultInstance()) + return this; + internalGetMutableMatchedPermissions().mergeFrom(other.internalGetMatchedPermissions()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1339,20 +1528,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.protobuf.MapEntry - matchedPermissions__ = input.readMessage( - MatchedPermissionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableMatchedPermissions().getMutableMap().put( - matchedPermissions__.getKey(), matchedPermissions__.getValue()); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> + matchedPermissions__ = + input.readMessage( + MatchedPermissionsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMatchedPermissions() + .getMutableMap() + .put(matchedPermissions__.getKey(), matchedPermissions__.getValue()); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1362,24 +1558,35 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matchedPermissions_; - private com.google.protobuf.MapField - internalGetMatchedPermissions() { + java.lang.String, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> + matchedPermissions_; + + private com.google.protobuf.MapField< + java.lang.String, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> + internalGetMatchedPermissions() { if (matchedPermissions_ == null) { return com.google.protobuf.MapField.emptyMapField( MatchedPermissionsDefaultEntryHolder.defaultEntry); } return matchedPermissions_; } - private com.google.protobuf.MapField - internalGetMutableMatchedPermissions() { - onChanged();; + + private com.google.protobuf.MapField< + java.lang.String, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> + internalGetMutableMatchedPermissions() { + onChanged(); + ; if (matchedPermissions_ == null) { - matchedPermissions_ = com.google.protobuf.MapField.newMapField( - MatchedPermissionsDefaultEntryHolder.defaultEntry); + matchedPermissions_ = + com.google.protobuf.MapField.newMapField( + MatchedPermissionsDefaultEntryHolder.defaultEntry); } if (!matchedPermissions_.isMutable()) { matchedPermissions_ = matchedPermissions_.copy(); @@ -1391,6 +1598,8 @@ public int getMatchedPermissionsCount() { return internalGetMatchedPermissions().getMap().size(); } /** + * + * *
            * The map from roles to their included permissions that match the
            * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -1401,24 +1610,29 @@ public int getMatchedPermissionsCount() {
            * map is populated only for requests with permission queries.
            * 
    * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; + * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; + * */ - @java.lang.Override - public boolean containsMatchedPermissions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsMatchedPermissions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetMatchedPermissions().getMap().containsKey(key); } - /** - * Use {@link #getMatchedPermissionsMap()} instead. - */ + /** Use {@link #getMatchedPermissionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getMatchedPermissions() { + public java.util.Map< + java.lang.String, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> + getMatchedPermissions() { return getMatchedPermissionsMap(); } /** + * + * *
            * The map from roles to their included permissions that match the
            * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -1429,14 +1643,20 @@ public java.util.Map
            *
    -       * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;
    +       * 
    +       * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;
    +       * 
            */
           @java.lang.Override
    -
    -      public java.util.Map getMatchedPermissionsMap() {
    +      public java.util.Map<
    +              java.lang.String,
    +              com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions>
    +          getMatchedPermissionsMap() {
             return internalGetMatchedPermissions().getMap();
           }
           /**
    +       *
    +       *
            * 
            * The map from roles to their included permissions that match the
            * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -1447,19 +1667,28 @@ public java.util.Map
            *
    -       * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;
    +       * 
    +       * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;
    +       * 
            */
           @java.lang.Override
    -
    -      public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions getMatchedPermissionsOrDefault(
    -          java.lang.String key,
    -          com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions defaultValue) {
    -        if (key == null) { throw new NullPointerException("map key"); }
    -        java.util.Map map =
    -            internalGetMatchedPermissions().getMap();
    +      public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions
    +          getMatchedPermissionsOrDefault(
    +              java.lang.String key,
    +              com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions
    +                  defaultValue) {
    +        if (key == null) {
    +          throw new NullPointerException("map key");
    +        }
    +        java.util.Map<
    +                java.lang.String,
    +                com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions>
    +            map = internalGetMatchedPermissions().getMap();
             return map.containsKey(key) ? map.get(key) : defaultValue;
           }
           /**
    +       *
    +       *
            * 
            * The map from roles to their included permissions that match the
            * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -1470,15 +1699,20 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions g
            * map is populated only for requests with permission queries.
            * 
    * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; + * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; + * */ @java.lang.Override - - public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions getMatchedPermissionsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMatchedPermissions().getMap(); + public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions + getMatchedPermissionsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> + map = internalGetMatchedPermissions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1486,11 +1720,12 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions g } public Builder clearMatchedPermissions() { - internalGetMutableMatchedPermissions().getMutableMap() - .clear(); + internalGetMutableMatchedPermissions().getMutableMap().clear(); return this; } /** + * + * *
            * The map from roles to their included permissions that match the
            * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -1501,25 +1736,28 @@ public Builder clearMatchedPermissions() {
            * map is populated only for requests with permission queries.
            * 
    * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; + * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; + * */ - - public Builder removeMatchedPermissions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableMatchedPermissions().getMutableMap() - .remove(key); + public Builder removeMatchedPermissions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableMatchedPermissions().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableMatchedPermissions() { + public java.util.Map< + java.lang.String, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> + getMutableMatchedPermissions() { return internalGetMutableMatchedPermissions().getMutableMap(); } /** + * + * *
            * The map from roles to their included permissions that match the
            * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -1530,21 +1768,26 @@ public Builder removeMatchedPermissions(
            * map is populated only for requests with permission queries.
            * 
    * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; + * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; + * */ public Builder putMatchedPermissions( java.lang.String key, com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions value) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableMatchedPermissions().getMutableMap() - .put(key, value); + internalGetMutableMatchedPermissions().getMutableMap().put(key, value); return this; } /** + * + * *
            * The map from roles to their included permissions that match the
            * permission query (i.e., a query containing `policy.role.permissions:`).
    @@ -1555,15 +1798,19 @@ public Builder putMatchedPermissions(
            * map is populated only for requests with permission queries.
            * 
    * - * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; + * + * map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1; + * */ - public Builder putAllMatchedPermissions( - java.util.Map values) { - internalGetMutableMatchedPermissions().getMutableMap() - .putAll(values); + java.util.Map< + java.lang.String, + com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> + values) { + internalGetMutableMatchedPermissions().getMutableMap().putAll(values); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1576,12 +1823,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicySearchResult.Explanation) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicySearchResult.Explanation) - private static final com.google.cloud.asset.v1.IamPolicySearchResult.Explanation DEFAULT_INSTANCE; + private static final com.google.cloud.asset.v1.IamPolicySearchResult.Explanation + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicySearchResult.Explanation(); } @@ -1590,27 +1838,28 @@ public static com.google.cloud.asset.v1.IamPolicySearchResult.Explanation getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Explanation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Explanation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1625,12 +1874,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int RESOURCE_FIELD_NUMBER = 1; private volatile java.lang.Object resource_; /** + * + * *
        * The full resource name of the resource associated with this IAM policy.
        * Example:
    @@ -1643,6 +1893,7 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation getDefaultIns
        * 
    * * string resource = 1; + * * @return The resource. */ @java.lang.Override @@ -1651,14 +1902,15 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** + * + * *
        * The full resource name of the resource associated with this IAM policy.
        * Example:
    @@ -1671,16 +1923,15 @@ public java.lang.String getResource() {
        * 
    * * string resource = 1; + * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -1691,6 +1942,8 @@ public java.lang.String getResource() { public static final int ASSET_TYPE_FIELD_NUMBER = 5; private volatile java.lang.Object assetType_; /** + * + * *
        * The type of the resource associated with this IAM policy. Example:
        * `compute.googleapis.com/Disk`.
    @@ -1699,6 +1952,7 @@ public java.lang.String getResource() {
        * 
    * * string asset_type = 5; + * * @return The assetType. */ @java.lang.Override @@ -1707,14 +1961,15 @@ public java.lang.String getAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; } } /** + * + * *
        * The type of the resource associated with this IAM policy. Example:
        * `compute.googleapis.com/Disk`.
    @@ -1723,16 +1978,15 @@ public java.lang.String getAssetType() {
        * 
    * * string asset_type = 5; + * * @return The bytes for assetType. */ @java.lang.Override - public com.google.protobuf.ByteString - getAssetTypeBytes() { + public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetType_ = b; return b; } else { @@ -1743,6 +1997,8 @@ public java.lang.String getAssetType() { public static final int PROJECT_FIELD_NUMBER = 2; private volatile java.lang.Object project_; /** + * + * *
        * The project that the associated GCP resource belongs to, in the form of
        * projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource (like VM
    @@ -1754,6 +2010,7 @@ public java.lang.String getAssetType() {
        * 
    * * string project = 2; + * * @return The project. */ @java.lang.Override @@ -1762,14 +2019,15 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** + * + * *
        * The project that the associated GCP resource belongs to, in the form of
        * projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource (like VM
    @@ -1781,16 +2039,15 @@ public java.lang.String getProject() {
        * 
    * * string project = 2; + * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { @@ -1801,6 +2058,8 @@ public java.lang.String getProject() { public static final int FOLDERS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList folders_; /** + * + * *
        * The folder(s) that the IAM policy belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -1812,13 +2071,15 @@ public java.lang.String getProject() {
        * 
    * * repeated string folders = 6; + * * @return A list containing the folders. */ - public com.google.protobuf.ProtocolStringList - getFoldersList() { + public com.google.protobuf.ProtocolStringList getFoldersList() { return folders_; } /** + * + * *
        * The folder(s) that the IAM policy belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -1830,12 +2091,15 @@ public java.lang.String getProject() {
        * 
    * * repeated string folders = 6; + * * @return The count of folders. */ public int getFoldersCount() { return folders_.size(); } /** + * + * *
        * The folder(s) that the IAM policy belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -1847,6 +2111,7 @@ public int getFoldersCount() {
        * 
    * * repeated string folders = 6; + * * @param index The index of the element to return. * @return The folders at the given index. */ @@ -1854,6 +2119,8 @@ public java.lang.String getFolders(int index) { return folders_.get(index); } /** + * + * *
        * The folder(s) that the IAM policy belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -1865,17 +2132,19 @@ public java.lang.String getFolders(int index) {
        * 
    * * repeated string folders = 6; + * * @param index The index of the value to return. * @return The bytes of the folders at the given index. */ - public com.google.protobuf.ByteString - getFoldersBytes(int index) { + public com.google.protobuf.ByteString getFoldersBytes(int index) { return folders_.getByteString(index); } public static final int ORGANIZATION_FIELD_NUMBER = 7; private volatile java.lang.Object organization_; /** + * + * *
        * The organization that the IAM policy belongs to, in the form
        * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -1887,6 +2156,7 @@ public java.lang.String getFolders(int index) {
        * 
    * * string organization = 7; + * * @return The organization. */ @java.lang.Override @@ -1895,14 +2165,15 @@ public java.lang.String getOrganization() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organization_ = s; return s; } } /** + * + * *
        * The organization that the IAM policy belongs to, in the form
        * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -1914,16 +2185,15 @@ public java.lang.String getOrganization() {
        * 
    * * string organization = 7; + * * @return The bytes for organization. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrganizationBytes() { + public com.google.protobuf.ByteString getOrganizationBytes() { java.lang.Object ref = organization_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); organization_ = b; return b; } else { @@ -1934,6 +2204,8 @@ public java.lang.String getOrganization() { public static final int POLICY_FIELD_NUMBER = 3; private com.google.iam.v1.Policy policy_; /** + * + * *
        * The IAM policy directly set on the given resource. Note that the original
        * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -1950,6 +2222,7 @@ public java.lang.String getOrganization() {
        * 
    * * .google.iam.v1.Policy policy = 3; + * * @return Whether the policy field is set. */ @java.lang.Override @@ -1957,6 +2230,8 @@ public boolean hasPolicy() { return policy_ != null; } /** + * + * *
        * The IAM policy directly set on the given resource. Note that the original
        * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -1973,6 +2248,7 @@ public boolean hasPolicy() {
        * 
    * * .google.iam.v1.Policy policy = 3; + * * @return The policy. */ @java.lang.Override @@ -1980,6 +2256,8 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** + * + * *
        * The IAM policy directly set on the given resource. Note that the original
        * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -2005,12 +2283,15 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
       public static final int EXPLANATION_FIELD_NUMBER = 4;
       private com.google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation_;
       /**
    +   *
    +   *
        * 
        * Explanation about the IAM policy search result. It contains additional
        * information to explain why the search result matches the query.
        * 
    * * .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4; + * * @return Whether the explanation field is set. */ @java.lang.Override @@ -2018,19 +2299,26 @@ public boolean hasExplanation() { return explanation_ != null; } /** + * + * *
        * Explanation about the IAM policy search result. It contains additional
        * information to explain why the search result matches the query.
        * 
    * * .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4; + * * @return The explanation. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation getExplanation() { - return explanation_ == null ? com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.getDefaultInstance() : explanation_; + return explanation_ == null + ? com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.getDefaultInstance() + : explanation_; } /** + * + * *
        * Explanation about the IAM policy search result. It contains additional
        * information to explain why the search result matches the query.
    @@ -2039,11 +2327,13 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation getExplanatio
        * .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4;
        */
       @java.lang.Override
    -  public com.google.cloud.asset.v1.IamPolicySearchResult.ExplanationOrBuilder getExplanationOrBuilder() {
    +  public com.google.cloud.asset.v1.IamPolicySearchResult.ExplanationOrBuilder
    +      getExplanationOrBuilder() {
         return getExplanation();
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -2055,8 +2345,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_);
         }
    @@ -2094,12 +2383,10 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_);
         }
         if (policy_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(3, getPolicy());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPolicy());
         }
         if (explanation_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(4, getExplanation());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getExplanation());
         }
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetType_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, assetType_);
    @@ -2123,32 +2410,26 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1.IamPolicySearchResult)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1.IamPolicySearchResult other = (com.google.cloud.asset.v1.IamPolicySearchResult) obj;
    -
    -    if (!getResource()
    -        .equals(other.getResource())) return false;
    -    if (!getAssetType()
    -        .equals(other.getAssetType())) return false;
    -    if (!getProject()
    -        .equals(other.getProject())) return false;
    -    if (!getFoldersList()
    -        .equals(other.getFoldersList())) return false;
    -    if (!getOrganization()
    -        .equals(other.getOrganization())) return false;
    +    com.google.cloud.asset.v1.IamPolicySearchResult other =
    +        (com.google.cloud.asset.v1.IamPolicySearchResult) obj;
    +
    +    if (!getResource().equals(other.getResource())) return false;
    +    if (!getAssetType().equals(other.getAssetType())) return false;
    +    if (!getProject().equals(other.getProject())) return false;
    +    if (!getFoldersList().equals(other.getFoldersList())) return false;
    +    if (!getOrganization().equals(other.getOrganization())) return false;
         if (hasPolicy() != other.hasPolicy()) return false;
         if (hasPolicy()) {
    -      if (!getPolicy()
    -          .equals(other.getPolicy())) return false;
    +      if (!getPolicy().equals(other.getPolicy())) return false;
         }
         if (hasExplanation() != other.hasExplanation()) return false;
         if (hasExplanation()) {
    -      if (!getExplanation()
    -          .equals(other.getExplanation())) return false;
    +      if (!getExplanation().equals(other.getExplanation())) return false;
         }
         if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
    @@ -2186,130 +2467,136 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1.IamPolicySearchResult parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1.IamPolicySearchResult parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.IamPolicySearchResult parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.IamPolicySearchResult parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.IamPolicySearchResult 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.asset.v1.IamPolicySearchResult parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.IamPolicySearchResult parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.IamPolicySearchResult parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.IamPolicySearchResult parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.cloud.asset.v1.IamPolicySearchResult parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.cloud.asset.v1.IamPolicySearchResult parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.IamPolicySearchResult parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.IamPolicySearchResult parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.IamPolicySearchResult parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.cloud.asset.v1.IamPolicySearchResult prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * A result of IAM Policy search, containing information of an IAM policy.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.IamPolicySearchResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicySearchResult) com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicySearchResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.IamPolicySearchResult.class, com.google.cloud.asset.v1.IamPolicySearchResult.Builder.class); + com.google.cloud.asset.v1.IamPolicySearchResult.class, + com.google.cloud.asset.v1.IamPolicySearchResult.Builder.class); } // Construct using com.google.cloud.asset.v1.IamPolicySearchResult.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2339,9 +2626,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor; } @java.lang.Override @@ -2360,7 +2647,8 @@ public com.google.cloud.asset.v1.IamPolicySearchResult build() { @java.lang.Override public com.google.cloud.asset.v1.IamPolicySearchResult buildPartial() { - com.google.cloud.asset.v1.IamPolicySearchResult result = new com.google.cloud.asset.v1.IamPolicySearchResult(this); + com.google.cloud.asset.v1.IamPolicySearchResult result = + new com.google.cloud.asset.v1.IamPolicySearchResult(this); int from_bitField0_ = bitField0_; result.resource_ = resource_; result.assetType_ = assetType_; @@ -2389,38 +2677,39 @@ public com.google.cloud.asset.v1.IamPolicySearchResult buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.IamPolicySearchResult) { - return mergeFrom((com.google.cloud.asset.v1.IamPolicySearchResult)other); + return mergeFrom((com.google.cloud.asset.v1.IamPolicySearchResult) other); } else { super.mergeFrom(other); return this; @@ -2428,7 +2717,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicySearchResult other) { - if (other == com.google.cloud.asset.v1.IamPolicySearchResult.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1.IamPolicySearchResult.getDefaultInstance()) + return this; if (!other.getResource().isEmpty()) { resource_ = other.resource_; onChanged(); @@ -2487,52 +2777,56 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - resource_ = input.readStringRequireUtf8(); + case 10: + { + resource_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - project_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + project_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - input.readMessage( - getPolicyFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - case 34: { - input.readMessage( - getExplanationFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 26 + case 34: + { + input.readMessage(getExplanationFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 34 - case 42: { - assetType_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: + { + assetType_ = input.readStringRequireUtf8(); - break; - } // case 42 - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - ensureFoldersIsMutable(); - folders_.add(s); - break; - } // case 50 - case 58: { - organization_ = input.readStringRequireUtf8(); + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFoldersIsMutable(); + folders_.add(s); + break; + } // case 50 + case 58: + { + organization_ = input.readStringRequireUtf8(); - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2542,10 +2836,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object resource_ = ""; /** + * + * *
          * The full resource name of the resource associated with this IAM policy.
          * Example:
    @@ -2558,13 +2855,13 @@ public Builder mergeFrom(
          * 
    * * string resource = 1; + * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -2573,6 +2870,8 @@ public java.lang.String getResource() { } } /** + * + * *
          * The full resource name of the resource associated with this IAM policy.
          * Example:
    @@ -2585,15 +2884,14 @@ public java.lang.String getResource() {
          * 
    * * string resource = 1; + * * @return The bytes for resource. */ - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -2601,6 +2899,8 @@ public java.lang.String getResource() { } } /** + * + * *
          * The full resource name of the resource associated with this IAM policy.
          * Example:
    @@ -2613,20 +2913,22 @@ public java.lang.String getResource() {
          * 
    * * string resource = 1; + * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource( - java.lang.String value) { + public Builder setResource(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** + * + * *
          * The full resource name of the resource associated with this IAM policy.
          * Example:
    @@ -2639,15 +2941,18 @@ public Builder setResource(
          * 
    * * string resource = 1; + * * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** + * + * *
          * The full resource name of the resource associated with this IAM policy.
          * Example:
    @@ -2660,16 +2965,16 @@ public Builder clearResource() {
          * 
    * * string resource = 1; + * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; @@ -2677,6 +2982,8 @@ public Builder setResourceBytes( private java.lang.Object assetType_ = ""; /** + * + * *
          * The type of the resource associated with this IAM policy. Example:
          * `compute.googleapis.com/Disk`.
    @@ -2685,13 +2992,13 @@ public Builder setResourceBytes(
          * 
    * * string asset_type = 5; + * * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; @@ -2700,6 +3007,8 @@ public java.lang.String getAssetType() { } } /** + * + * *
          * The type of the resource associated with this IAM policy. Example:
          * `compute.googleapis.com/Disk`.
    @@ -2708,15 +3017,14 @@ public java.lang.String getAssetType() {
          * 
    * * string asset_type = 5; + * * @return The bytes for assetType. */ - public com.google.protobuf.ByteString - getAssetTypeBytes() { + public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetType_ = b; return b; } else { @@ -2724,6 +3032,8 @@ public java.lang.String getAssetType() { } } /** + * + * *
          * The type of the resource associated with this IAM policy. Example:
          * `compute.googleapis.com/Disk`.
    @@ -2732,20 +3042,22 @@ public java.lang.String getAssetType() {
          * 
    * * string asset_type = 5; + * * @param value The assetType to set. * @return This builder for chaining. */ - public Builder setAssetType( - java.lang.String value) { + public Builder setAssetType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + assetType_ = value; onChanged(); return this; } /** + * + * *
          * The type of the resource associated with this IAM policy. Example:
          * `compute.googleapis.com/Disk`.
    @@ -2754,15 +3066,18 @@ public Builder setAssetType(
          * 
    * * string asset_type = 5; + * * @return This builder for chaining. */ public Builder clearAssetType() { - + assetType_ = getDefaultInstance().getAssetType(); onChanged(); return this; } /** + * + * *
          * The type of the resource associated with this IAM policy. Example:
          * `compute.googleapis.com/Disk`.
    @@ -2771,16 +3086,16 @@ public Builder clearAssetType() {
          * 
    * * string asset_type = 5; + * * @param value The bytes for assetType to set. * @return This builder for chaining. */ - public Builder setAssetTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; onChanged(); return this; @@ -2788,6 +3103,8 @@ public Builder setAssetTypeBytes( private java.lang.Object project_ = ""; /** + * + * *
          * The project that the associated GCP resource belongs to, in the form of
          * projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource (like VM
    @@ -2799,13 +3116,13 @@ public Builder setAssetTypeBytes(
          * 
    * * string project = 2; + * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -2814,6 +3131,8 @@ public java.lang.String getProject() { } } /** + * + * *
          * The project that the associated GCP resource belongs to, in the form of
          * projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource (like VM
    @@ -2825,15 +3144,14 @@ public java.lang.String getProject() {
          * 
    * * string project = 2; + * * @return The bytes for project. */ - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { @@ -2841,6 +3159,8 @@ public java.lang.String getProject() { } } /** + * + * *
          * The project that the associated GCP resource belongs to, in the form of
          * projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource (like VM
    @@ -2852,20 +3172,22 @@ public java.lang.String getProject() {
          * 
    * * string project = 2; + * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject( - java.lang.String value) { + public Builder setProject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; onChanged(); return this; } /** + * + * *
          * The project that the associated GCP resource belongs to, in the form of
          * projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource (like VM
    @@ -2877,15 +3199,18 @@ public Builder setProject(
          * 
    * * string project = 2; + * * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** + * + * *
          * The project that the associated GCP resource belongs to, in the form of
          * projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource (like VM
    @@ -2897,29 +3222,33 @@ public Builder clearProject() {
          * 
    * * string project = 2; + * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList folders_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList folders_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureFoldersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { folders_ = new com.google.protobuf.LazyStringArrayList(folders_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
          * The folder(s) that the IAM policy belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -2931,13 +3260,15 @@ private void ensureFoldersIsMutable() {
          * 
    * * repeated string folders = 6; + * * @return A list containing the folders. */ - public com.google.protobuf.ProtocolStringList - getFoldersList() { + public com.google.protobuf.ProtocolStringList getFoldersList() { return folders_.getUnmodifiableView(); } /** + * + * *
          * The folder(s) that the IAM policy belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -2949,12 +3280,15 @@ private void ensureFoldersIsMutable() {
          * 
    * * repeated string folders = 6; + * * @return The count of folders. */ public int getFoldersCount() { return folders_.size(); } /** + * + * *
          * The folder(s) that the IAM policy belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -2966,6 +3300,7 @@ public int getFoldersCount() {
          * 
    * * repeated string folders = 6; + * * @param index The index of the element to return. * @return The folders at the given index. */ @@ -2973,6 +3308,8 @@ public java.lang.String getFolders(int index) { return folders_.get(index); } /** + * + * *
          * The folder(s) that the IAM policy belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -2984,14 +3321,16 @@ public java.lang.String getFolders(int index) {
          * 
    * * repeated string folders = 6; + * * @param index The index of the value to return. * @return The bytes of the folders at the given index. */ - public com.google.protobuf.ByteString - getFoldersBytes(int index) { + public com.google.protobuf.ByteString getFoldersBytes(int index) { return folders_.getByteString(index); } /** + * + * *
          * The folder(s) that the IAM policy belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -3003,21 +3342,23 @@ public java.lang.String getFolders(int index) {
          * 
    * * repeated string folders = 6; + * * @param index The index to set the value at. * @param value The folders to set. * @return This builder for chaining. */ - public Builder setFolders( - int index, java.lang.String value) { + public Builder setFolders(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFoldersIsMutable(); + throw new NullPointerException(); + } + ensureFoldersIsMutable(); folders_.set(index, value); onChanged(); return this; } /** + * + * *
          * The folder(s) that the IAM policy belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -3029,20 +3370,22 @@ public Builder setFolders(
          * 
    * * repeated string folders = 6; + * * @param value The folders to add. * @return This builder for chaining. */ - public Builder addFolders( - java.lang.String value) { + public Builder addFolders(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFoldersIsMutable(); + throw new NullPointerException(); + } + ensureFoldersIsMutable(); folders_.add(value); onChanged(); return this; } /** + * + * *
          * The folder(s) that the IAM policy belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -3054,18 +3397,19 @@ public Builder addFolders(
          * 
    * * repeated string folders = 6; + * * @param values The folders to add. * @return This builder for chaining. */ - public Builder addAllFolders( - java.lang.Iterable values) { + public Builder addAllFolders(java.lang.Iterable values) { ensureFoldersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, folders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_); onChanged(); return this; } /** + * + * *
          * The folder(s) that the IAM policy belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -3077,6 +3421,7 @@ public Builder addAllFolders(
          * 
    * * repeated string folders = 6; + * * @return This builder for chaining. */ public Builder clearFolders() { @@ -3086,6 +3431,8 @@ public Builder clearFolders() { return this; } /** + * + * *
          * The folder(s) that the IAM policy belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -3097,15 +3444,15 @@ public Builder clearFolders() {
          * 
    * * repeated string folders = 6; + * * @param value The bytes of the folders to add. * @return This builder for chaining. */ - public Builder addFoldersBytes( - com.google.protobuf.ByteString value) { + public Builder addFoldersBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFoldersIsMutable(); folders_.add(value); onChanged(); @@ -3114,6 +3461,8 @@ public Builder addFoldersBytes( private java.lang.Object organization_ = ""; /** + * + * *
          * The organization that the IAM policy belongs to, in the form
          * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -3125,13 +3474,13 @@ public Builder addFoldersBytes(
          * 
    * * string organization = 7; + * * @return The organization. */ public java.lang.String getOrganization() { java.lang.Object ref = organization_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organization_ = s; return s; @@ -3140,6 +3489,8 @@ public java.lang.String getOrganization() { } } /** + * + * *
          * The organization that the IAM policy belongs to, in the form
          * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -3151,15 +3502,14 @@ public java.lang.String getOrganization() {
          * 
    * * string organization = 7; + * * @return The bytes for organization. */ - public com.google.protobuf.ByteString - getOrganizationBytes() { + public com.google.protobuf.ByteString getOrganizationBytes() { java.lang.Object ref = organization_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); organization_ = b; return b; } else { @@ -3167,6 +3517,8 @@ public java.lang.String getOrganization() { } } /** + * + * *
          * The organization that the IAM policy belongs to, in the form
          * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -3178,20 +3530,22 @@ public java.lang.String getOrganization() {
          * 
    * * string organization = 7; + * * @param value The organization to set. * @return This builder for chaining. */ - public Builder setOrganization( - java.lang.String value) { + public Builder setOrganization(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + organization_ = value; onChanged(); return this; } /** + * + * *
          * The organization that the IAM policy belongs to, in the form
          * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -3203,15 +3557,18 @@ public Builder setOrganization(
          * 
    * * string organization = 7; + * * @return This builder for chaining. */ public Builder clearOrganization() { - + organization_ = getDefaultInstance().getOrganization(); onChanged(); return this; } /** + * + * *
          * The organization that the IAM policy belongs to, in the form
          * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -3223,16 +3580,16 @@ public Builder clearOrganization() {
          * 
    * * string organization = 7; + * * @param value The bytes for organization to set. * @return This builder for chaining. */ - public Builder setOrganizationBytes( - com.google.protobuf.ByteString value) { + public Builder setOrganizationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + organization_ = value; onChanged(); return this; @@ -3240,8 +3597,13 @@ public Builder setOrganizationBytes( private com.google.iam.v1.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> policyBuilder_; + com.google.iam.v1.Policy, + com.google.iam.v1.Policy.Builder, + com.google.iam.v1.PolicyOrBuilder> + policyBuilder_; /** + * + * *
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -3258,12 +3620,15 @@ public Builder setOrganizationBytes(
          * 
    * * .google.iam.v1.Policy policy = 3; + * * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || policy_ != null; } /** + * + * *
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -3280,6 +3645,7 @@ public boolean hasPolicy() {
          * 
    * * .google.iam.v1.Policy policy = 3; + * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -3290,6 +3656,8 @@ public com.google.iam.v1.Policy getPolicy() { } } /** + * + * *
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -3321,6 +3689,8 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -3338,8 +3708,7 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
          *
          * .google.iam.v1.Policy policy = 3;
          */
    -    public Builder setPolicy(
    -        com.google.iam.v1.Policy.Builder builderForValue) {
    +    public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
           if (policyBuilder_ == null) {
             policy_ = builderForValue.build();
             onChanged();
    @@ -3350,6 +3719,8 @@ public Builder setPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -3370,8 +3741,7 @@ public Builder setPolicy(
         public Builder mergePolicy(com.google.iam.v1.Policy value) {
           if (policyBuilder_ == null) {
             if (policy_ != null) {
    -          policy_ =
    -            com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
    +          policy_ = com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
             } else {
               policy_ = value;
             }
    @@ -3383,6 +3753,8 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -3412,6 +3784,8 @@ public Builder clearPolicy() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -3430,11 +3804,13 @@ public Builder clearPolicy() {
          * .google.iam.v1.Policy policy = 3;
          */
         public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
    -      
    +
           onChanged();
           return getPolicyFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -3456,11 +3832,12 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
           if (policyBuilder_ != null) {
             return policyBuilder_.getMessageOrBuilder();
           } else {
    -        return policy_ == null ?
    -            com.google.iam.v1.Policy.getDefaultInstance() : policy_;
    +        return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_;
           }
         }
         /**
    +     *
    +     *
          * 
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -3479,14 +3856,16 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
          * .google.iam.v1.Policy policy = 3;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> 
    +            com.google.iam.v1.Policy,
    +            com.google.iam.v1.Policy.Builder,
    +            com.google.iam.v1.PolicyOrBuilder>
             getPolicyFieldBuilder() {
           if (policyBuilder_ == null) {
    -        policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>(
    -                getPolicy(),
    -                getParentForChildren(),
    -                isClean());
    +        policyBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.iam.v1.Policy,
    +                com.google.iam.v1.Policy.Builder,
    +                com.google.iam.v1.PolicyOrBuilder>(getPolicy(), getParentForChildren(), isClean());
             policy_ = null;
           }
           return policyBuilder_;
    @@ -3494,36 +3873,49 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
     
         private com.google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1.IamPolicySearchResult.Explanation, com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder, com.google.cloud.asset.v1.IamPolicySearchResult.ExplanationOrBuilder> explanationBuilder_;
    +            com.google.cloud.asset.v1.IamPolicySearchResult.Explanation,
    +            com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder,
    +            com.google.cloud.asset.v1.IamPolicySearchResult.ExplanationOrBuilder>
    +        explanationBuilder_;
         /**
    +     *
    +     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
          * 
    * * .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4; + * * @return Whether the explanation field is set. */ public boolean hasExplanation() { return explanationBuilder_ != null || explanation_ != null; } /** + * + * *
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
          * 
    * * .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4; + * * @return The explanation. */ public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation getExplanation() { if (explanationBuilder_ == null) { - return explanation_ == null ? com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.getDefaultInstance() : explanation_; + return explanation_ == null + ? com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.getDefaultInstance() + : explanation_; } else { return explanationBuilder_.getMessage(); } } /** + * + * *
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -3531,7 +3923,8 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation getExplanatio
          *
          * .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4;
          */
    -    public Builder setExplanation(com.google.cloud.asset.v1.IamPolicySearchResult.Explanation value) {
    +    public Builder setExplanation(
    +        com.google.cloud.asset.v1.IamPolicySearchResult.Explanation value) {
           if (explanationBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -3545,6 +3938,8 @@ public Builder setExplanation(com.google.cloud.asset.v1.IamPolicySearchResult.Ex
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -3564,6 +3959,8 @@ public Builder setExplanation(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -3571,11 +3968,14 @@ public Builder setExplanation(
          *
          * .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4;
          */
    -    public Builder mergeExplanation(com.google.cloud.asset.v1.IamPolicySearchResult.Explanation value) {
    +    public Builder mergeExplanation(
    +        com.google.cloud.asset.v1.IamPolicySearchResult.Explanation value) {
           if (explanationBuilder_ == null) {
             if (explanation_ != null) {
               explanation_ =
    -            com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.newBuilder(explanation_).mergeFrom(value).buildPartial();
    +              com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.newBuilder(explanation_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               explanation_ = value;
             }
    @@ -3587,6 +3987,8 @@ public Builder mergeExplanation(com.google.cloud.asset.v1.IamPolicySearchResult.
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -3606,6 +4008,8 @@ public Builder clearExplanation() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -3613,12 +4017,15 @@ public Builder clearExplanation() {
          *
          * .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4;
          */
    -    public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder getExplanationBuilder() {
    -      
    +    public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder
    +        getExplanationBuilder() {
    +
           onChanged();
           return getExplanationFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -3626,15 +4033,19 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder getEx
          *
          * .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4;
          */
    -    public com.google.cloud.asset.v1.IamPolicySearchResult.ExplanationOrBuilder getExplanationOrBuilder() {
    +    public com.google.cloud.asset.v1.IamPolicySearchResult.ExplanationOrBuilder
    +        getExplanationOrBuilder() {
           if (explanationBuilder_ != null) {
             return explanationBuilder_.getMessageOrBuilder();
           } else {
    -        return explanation_ == null ?
    -            com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.getDefaultInstance() : explanation_;
    +        return explanation_ == null
    +            ? com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.getDefaultInstance()
    +            : explanation_;
           }
         }
         /**
    +     *
    +     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -3643,21 +4054,24 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.ExplanationOrBuilder getE
          * .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1.IamPolicySearchResult.Explanation, com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder, com.google.cloud.asset.v1.IamPolicySearchResult.ExplanationOrBuilder> 
    +            com.google.cloud.asset.v1.IamPolicySearchResult.Explanation,
    +            com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder,
    +            com.google.cloud.asset.v1.IamPolicySearchResult.ExplanationOrBuilder>
             getExplanationFieldBuilder() {
           if (explanationBuilder_ == null) {
    -        explanationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.IamPolicySearchResult.Explanation, com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder, com.google.cloud.asset.v1.IamPolicySearchResult.ExplanationOrBuilder>(
    -                getExplanation(),
    -                getParentForChildren(),
    -                isClean());
    +        explanationBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.cloud.asset.v1.IamPolicySearchResult.Explanation,
    +                com.google.cloud.asset.v1.IamPolicySearchResult.Explanation.Builder,
    +                com.google.cloud.asset.v1.IamPolicySearchResult.ExplanationOrBuilder>(
    +                getExplanation(), getParentForChildren(), isClean());
             explanation_ = null;
           }
           return explanationBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -3667,12 +4081,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.IamPolicySearchResult)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.IamPolicySearchResult)
       private static final com.google.cloud.asset.v1.IamPolicySearchResult DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1.IamPolicySearchResult();
       }
    @@ -3681,27 +4095,27 @@ public static com.google.cloud.asset.v1.IamPolicySearchResult getDefaultInstance
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public IamPolicySearchResult parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      Builder builder = newBuilder();
    -      try {
    -        builder.mergeFrom(input, extensionRegistry);
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(builder.buildPartial());
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    -            .setUnfinishedMessage(builder.buildPartial());
    -      }
    -      return builder.buildPartial();
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public IamPolicySearchResult parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -3716,6 +4130,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1.IamPolicySearchResult getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResultOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResultOrBuilder.java
    similarity index 89%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResultOrBuilder.java
    rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResultOrBuilder.java
    index 6958f7f88c6c..a79c38011645 100644
    --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResultOrBuilder.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResultOrBuilder.java
    @@ -1,13 +1,31 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/assets.proto
     
     package com.google.cloud.asset.v1;
     
    -public interface IamPolicySearchResultOrBuilder extends
    +public interface IamPolicySearchResultOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicySearchResult)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The full resource name of the resource associated with this IAM policy.
        * Example:
    @@ -20,10 +38,13 @@ public interface IamPolicySearchResultOrBuilder extends
        * 
    * * string resource = 1; + * * @return The resource. */ java.lang.String getResource(); /** + * + * *
        * The full resource name of the resource associated with this IAM policy.
        * Example:
    @@ -36,12 +57,14 @@ public interface IamPolicySearchResultOrBuilder extends
        * 
    * * string resource = 1; + * * @return The bytes for resource. */ - com.google.protobuf.ByteString - getResourceBytes(); + com.google.protobuf.ByteString getResourceBytes(); /** + * + * *
        * The type of the resource associated with this IAM policy. Example:
        * `compute.googleapis.com/Disk`.
    @@ -50,10 +73,13 @@ public interface IamPolicySearchResultOrBuilder extends
        * 
    * * string asset_type = 5; + * * @return The assetType. */ java.lang.String getAssetType(); /** + * + * *
        * The type of the resource associated with this IAM policy. Example:
        * `compute.googleapis.com/Disk`.
    @@ -62,12 +88,14 @@ public interface IamPolicySearchResultOrBuilder extends
        * 
    * * string asset_type = 5; + * * @return The bytes for assetType. */ - com.google.protobuf.ByteString - getAssetTypeBytes(); + com.google.protobuf.ByteString getAssetTypeBytes(); /** + * + * *
        * The project that the associated GCP resource belongs to, in the form of
        * projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource (like VM
    @@ -79,10 +107,13 @@ public interface IamPolicySearchResultOrBuilder extends
        * 
    * * string project = 2; + * * @return The project. */ java.lang.String getProject(); /** + * + * *
        * The project that the associated GCP resource belongs to, in the form of
        * projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource (like VM
    @@ -94,12 +125,14 @@ public interface IamPolicySearchResultOrBuilder extends
        * 
    * * string project = 2; + * * @return The bytes for project. */ - com.google.protobuf.ByteString - getProjectBytes(); + com.google.protobuf.ByteString getProjectBytes(); /** + * + * *
        * The folder(s) that the IAM policy belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -111,11 +144,13 @@ public interface IamPolicySearchResultOrBuilder extends
        * 
    * * repeated string folders = 6; + * * @return A list containing the folders. */ - java.util.List - getFoldersList(); + java.util.List getFoldersList(); /** + * + * *
        * The folder(s) that the IAM policy belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -127,10 +162,13 @@ public interface IamPolicySearchResultOrBuilder extends
        * 
    * * repeated string folders = 6; + * * @return The count of folders. */ int getFoldersCount(); /** + * + * *
        * The folder(s) that the IAM policy belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -142,11 +180,14 @@ public interface IamPolicySearchResultOrBuilder extends
        * 
    * * repeated string folders = 6; + * * @param index The index of the element to return. * @return The folders at the given index. */ java.lang.String getFolders(int index); /** + * + * *
        * The folder(s) that the IAM policy belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    @@ -158,13 +199,15 @@ public interface IamPolicySearchResultOrBuilder extends
        * 
    * * repeated string folders = 6; + * * @param index The index of the value to return. * @return The bytes of the folders at the given index. */ - com.google.protobuf.ByteString - getFoldersBytes(int index); + com.google.protobuf.ByteString getFoldersBytes(int index); /** + * + * *
        * The organization that the IAM policy belongs to, in the form
        * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -176,10 +219,13 @@ public interface IamPolicySearchResultOrBuilder extends
        * 
    * * string organization = 7; + * * @return The organization. */ java.lang.String getOrganization(); /** + * + * *
        * The organization that the IAM policy belongs to, in the form
        * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -191,12 +237,14 @@ public interface IamPolicySearchResultOrBuilder extends
        * 
    * * string organization = 7; + * * @return The bytes for organization. */ - com.google.protobuf.ByteString - getOrganizationBytes(); + com.google.protobuf.ByteString getOrganizationBytes(); /** + * + * *
        * The IAM policy directly set on the given resource. Note that the original
        * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -213,10 +261,13 @@ public interface IamPolicySearchResultOrBuilder extends
        * 
    * * .google.iam.v1.Policy policy = 3; + * * @return Whether the policy field is set. */ boolean hasPolicy(); /** + * + * *
        * The IAM policy directly set on the given resource. Note that the original
        * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -233,10 +284,13 @@ public interface IamPolicySearchResultOrBuilder extends
        * 
    * * .google.iam.v1.Policy policy = 3; + * * @return The policy. */ com.google.iam.v1.Policy getPolicy(); /** + * + * *
        * The IAM policy directly set on the given resource. Note that the original
        * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -257,26 +311,34 @@ public interface IamPolicySearchResultOrBuilder extends
       com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * Explanation about the IAM policy search result. It contains additional
        * information to explain why the search result matches the query.
        * 
    * * .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4; + * * @return Whether the explanation field is set. */ boolean hasExplanation(); /** + * + * *
        * Explanation about the IAM policy search result. It contains additional
        * information to explain why the search result matches the query.
        * 
    * * .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4; + * * @return The explanation. */ com.google.cloud.asset.v1.IamPolicySearchResult.Explanation getExplanation(); /** + * + * *
        * Explanation about the IAM policy search result. It contains additional
        * information to explain why the search result matches the query.
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequest.java
    similarity index 81%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequest.java
    rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequest.java
    index a3381d8c299d..d9d96abeca3f 100644
    --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequest.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequest.java
    @@ -1,24 +1,42 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
     /**
    + *
    + *
      * 
      * ListAssets request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.ListAssetsRequest} */ -public final class ListAssetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAssetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.ListAssetsRequest) ListAssetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAssetsRequest.newBuilder() to construct. private ListAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAssetsRequest() { parent_ = ""; assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -29,32 +47,35 @@ private ListAssetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAssetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListAssetsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListAssetsRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ListAssetsRequest.class, com.google.cloud.asset.v1.ListAssetsRequest.Builder.class); + com.google.cloud.asset.v1.ListAssetsRequest.class, + com.google.cloud.asset.v1.ListAssetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
        * Required. Name of the organization, folder, or project the assets belong to. Format:
        * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -63,7 +84,10 @@ protected java.lang.Object newInstance(
        * "folders/[folder-number]" (such as "folders/12345").
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -72,14 +96,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
        * Required. Name of the organization, folder, or project the assets belong to. Format:
        * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -88,17 +113,18 @@ public java.lang.String getParent() {
        * "folders/[folder-number]" (such as "folders/12345").
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -109,6 +135,8 @@ public java.lang.String getParent() { public static final int READ_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp readTime_; /** + * + * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -118,6 +146,7 @@ public java.lang.String getParent() {
        * 
    * * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -125,6 +154,8 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -134,6 +165,7 @@ public boolean hasReadTime() {
        * 
    * * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ @java.lang.Override @@ -141,6 +173,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -159,6 +193,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       public static final int ASSET_TYPES_FIELD_NUMBER = 3;
       private com.google.protobuf.LazyStringList assetTypes_;
       /**
    +   *
    +   *
        * 
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -177,13 +213,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
        * 
    * * repeated string asset_types = 3; + * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList - getAssetTypesList() { + public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_; } /** + * + * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -202,12 +240,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
        * 
    * * repeated string asset_types = 3; + * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** + * + * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -226,6 +267,7 @@ public int getAssetTypesCount() {
        * 
    * * repeated string asset_types = 3; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -233,6 +275,8 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** + * + * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -251,52 +295,64 @@ public java.lang.String getAssetTypes(int index) {
        * 
    * * repeated string asset_types = 3; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString - getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } public static final int CONTENT_TYPE_FIELD_NUMBER = 4; private int contentType_; /** + * + * *
        * Asset content type. If not specified, no content but the asset name will
        * be returned.
        * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override public int getContentTypeValue() { + @java.lang.Override + public int getContentTypeValue() { return contentType_; } /** + * + * *
        * Asset content type. If not specified, no content but the asset name will
        * be returned.
        * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @return The contentType. */ - @java.lang.Override public com.google.cloud.asset.v1.ContentType getContentType() { + @java.lang.Override + public com.google.cloud.asset.v1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.ContentType result = com.google.cloud.asset.v1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1.ContentType result = + com.google.cloud.asset.v1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1.ContentType.UNRECOGNIZED : result; } public static final int PAGE_SIZE_FIELD_NUMBER = 5; private int pageSize_; /** + * + * *
        * The maximum number of assets to be returned in a single response. Default
        * is 100, minimum is 1, and maximum is 1000.
        * 
    * * int32 page_size = 5; + * * @return The pageSize. */ @java.lang.Override @@ -307,6 +363,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 6; private volatile java.lang.Object pageToken_; /** + * + * *
        * The `next_page_token` returned from the previous `ListAssetsResponse`, or
        * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -314,6 +372,7 @@ public int getPageSize() {
        * 
    * * string page_token = 6; + * * @return The pageToken. */ @java.lang.Override @@ -322,14 +381,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
        * The `next_page_token` returned from the previous `ListAssetsResponse`, or
        * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -337,16 +397,15 @@ public java.lang.String getPageToken() {
        * 
    * * string page_token = 6; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -357,6 +416,8 @@ public java.lang.String getPageToken() { public static final int RELATIONSHIP_TYPES_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList relationshipTypes_; /** + * + * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -376,13 +437,15 @@ public java.lang.String getPageToken() {
        * 
    * * repeated string relationship_types = 7; + * * @return A list containing the relationshipTypes. */ - public com.google.protobuf.ProtocolStringList - getRelationshipTypesList() { + public com.google.protobuf.ProtocolStringList getRelationshipTypesList() { return relationshipTypes_; } /** + * + * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -402,12 +465,15 @@ public java.lang.String getPageToken() {
        * 
    * * repeated string relationship_types = 7; + * * @return The count of relationshipTypes. */ public int getRelationshipTypesCount() { return relationshipTypes_.size(); } /** + * + * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -427,6 +493,7 @@ public int getRelationshipTypesCount() {
        * 
    * * repeated string relationship_types = 7; + * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -434,6 +501,8 @@ public java.lang.String getRelationshipTypes(int index) { return relationshipTypes_.get(index); } /** + * + * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -453,15 +522,16 @@ public java.lang.String getRelationshipTypes(int index) {
        * 
    * * repeated string relationship_types = 7; + * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - public com.google.protobuf.ByteString - getRelationshipTypesBytes(int index) { + public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) { return relationshipTypes_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -473,8 +543,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -484,7 +553,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < assetTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, assetTypes_.getRaw(i)); } - if (contentType_ != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + if (contentType_ + != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, contentType_); } if (pageSize_ != 0) { @@ -509,8 +579,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); } { int dataSize = 0; @@ -520,13 +589,12 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAssetTypesList().size(); } - if (contentType_ != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, contentType_); + if (contentType_ + != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, contentType_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); @@ -547,29 +615,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.ListAssetsRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.ListAssetsRequest other = (com.google.cloud.asset.v1.ListAssetsRequest) obj; + com.google.cloud.asset.v1.ListAssetsRequest other = + (com.google.cloud.asset.v1.ListAssetsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } - if (!getAssetTypesList() - .equals(other.getAssetTypesList())) return false; + if (!getAssetTypesList().equals(other.getAssetTypesList())) return false; if (contentType_ != other.contentType_) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getRelationshipTypesList() - .equals(other.getRelationshipTypesList())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getRelationshipTypesList().equals(other.getRelationshipTypesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -606,130 +669,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.ListAssetsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.ListAssetsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ListAssetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.ListAssetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ListAssetsRequest 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.asset.v1.ListAssetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ListAssetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.ListAssetsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ListAssetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.ListAssetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.ListAssetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ListAssetsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.ListAssetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ListAssetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.ListAssetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * ListAssets request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.ListAssetsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.ListAssetsRequest) com.google.cloud.asset.v1.ListAssetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListAssetsRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ListAssetsRequest.class, com.google.cloud.asset.v1.ListAssetsRequest.Builder.class); + com.google.cloud.asset.v1.ListAssetsRequest.class, + com.google.cloud.asset.v1.ListAssetsRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.ListAssetsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -755,9 +824,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListAssetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListAssetsRequest_descriptor; } @java.lang.Override @@ -776,7 +845,8 @@ public com.google.cloud.asset.v1.ListAssetsRequest build() { @java.lang.Override public com.google.cloud.asset.v1.ListAssetsRequest buildPartial() { - com.google.cloud.asset.v1.ListAssetsRequest result = new com.google.cloud.asset.v1.ListAssetsRequest(this); + com.google.cloud.asset.v1.ListAssetsRequest result = + new com.google.cloud.asset.v1.ListAssetsRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (readTimeBuilder_ == null) { @@ -805,38 +875,39 @@ public com.google.cloud.asset.v1.ListAssetsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.ListAssetsRequest) { - return mergeFrom((com.google.cloud.asset.v1.ListAssetsRequest)other); + return mergeFrom((com.google.cloud.asset.v1.ListAssetsRequest) other); } else { super.mergeFrom(other); return this; @@ -908,51 +979,57 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getReadTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAssetTypesIsMutable(); - assetTypes_.add(s); - break; - } // case 26 - case 32: { - contentType_ = input.readEnum(); - - break; - } // case 32 - case 40: { - pageSize_ = input.readInt32(); - - break; - } // case 40 - case 50: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - ensureRelationshipTypesIsMutable(); - relationshipTypes_.add(s); - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getReadTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAssetTypesIsMutable(); + assetTypes_.add(s); + break; + } // case 26 + case 32: + { + contentType_ = input.readEnum(); + + break; + } // case 32 + case 40: + { + pageSize_ = input.readInt32(); + + break; + } // case 40 + case 50: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRelationshipTypesIsMutable(); + relationshipTypes_.add(s); + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -962,10 +1039,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
          * Required. Name of the organization, folder, or project the assets belong to. Format:
          * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -974,14 +1054,16 @@ public Builder mergeFrom(
          * "folders/[folder-number]" (such as "folders/12345").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -990,6 +1072,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. Name of the organization, folder, or project the assets belong to. Format:
          * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -998,16 +1082,17 @@ public java.lang.String getParent() {
          * "folders/[folder-number]" (such as "folders/12345").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1015,6 +1100,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. Name of the organization, folder, or project the assets belong to. Format:
          * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -1023,21 +1110,25 @@ public java.lang.String getParent() {
          * "folders/[folder-number]" (such as "folders/12345").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
          * Required. Name of the organization, folder, or project the assets belong to. Format:
          * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -1046,16 +1137,21 @@ public Builder setParent(
          * "folders/[folder-number]" (such as "folders/12345").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
          * Required. Name of the organization, folder, or project the assets belong to. Format:
          * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -1064,17 +1160,19 @@ public Builder clearParent() {
          * "folders/[folder-number]" (such as "folders/12345").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1082,8 +1180,13 @@ public Builder setParentBytes( private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1093,12 +1196,15 @@ public Builder setParentBytes(
          * 
    * * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1108,6 +1214,7 @@ public boolean hasReadTime() {
          * 
    * * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1118,6 +1225,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1142,6 +1251,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1152,8 +1263,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
          *
          * .google.protobuf.Timestamp read_time = 2;
          */
    -    public Builder setReadTime(
    -        com.google.protobuf.Timestamp.Builder builderForValue) {
    +    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
           if (readTimeBuilder_ == null) {
             readTime_ = builderForValue.build();
             onChanged();
    @@ -1164,6 +1274,8 @@ public Builder setReadTime(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1178,7 +1290,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
           if (readTimeBuilder_ == null) {
             if (readTime_ != null) {
               readTime_ =
    -            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
    +              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
             } else {
               readTime_ = value;
             }
    @@ -1190,6 +1302,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1212,6 +1326,8 @@ public Builder clearReadTime() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1223,11 +1339,13 @@ public Builder clearReadTime() {
          * .google.protobuf.Timestamp read_time = 2;
          */
         public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
    -      
    +
           onChanged();
           return getReadTimeFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1242,11 +1360,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
           if (readTimeBuilder_ != null) {
             return readTimeBuilder_.getMessageOrBuilder();
           } else {
    -        return readTime_ == null ?
    -            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
    +        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
           }
         }
         /**
    +     *
    +     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1258,27 +1377,34 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
          * .google.protobuf.Timestamp read_time = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
    +            com.google.protobuf.Timestamp,
    +            com.google.protobuf.Timestamp.Builder,
    +            com.google.protobuf.TimestampOrBuilder>
             getReadTimeFieldBuilder() {
           if (readTimeBuilder_ == null) {
    -        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    -                getReadTime(),
    -                getParentForChildren(),
    -                isClean());
    +        readTimeBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.Timestamp,
    +                com.google.protobuf.Timestamp.Builder,
    +                com.google.protobuf.TimestampOrBuilder>(
    +                getReadTime(), getParentForChildren(), isClean());
             readTime_ = null;
           }
           return readTimeBuilder_;
         }
     
    -    private com.google.protobuf.LazyStringList assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    +    private com.google.protobuf.LazyStringList assetTypes_ =
    +        com.google.protobuf.LazyStringArrayList.EMPTY;
    +
         private void ensureAssetTypesIsMutable() {
           if (!((bitField0_ & 0x00000001) != 0)) {
             assetTypes_ = new com.google.protobuf.LazyStringArrayList(assetTypes_);
             bitField0_ |= 0x00000001;
    -       }
    +      }
         }
         /**
    +     *
    +     *
          * 
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1297,13 +1423,15 @@ private void ensureAssetTypesIsMutable() {
          * 
    * * repeated string asset_types = 3; + * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList - getAssetTypesList() { + public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_.getUnmodifiableView(); } /** + * + * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1322,12 +1450,15 @@ private void ensureAssetTypesIsMutable() {
          * 
    * * repeated string asset_types = 3; + * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** + * + * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1346,6 +1477,7 @@ public int getAssetTypesCount() {
          * 
    * * repeated string asset_types = 3; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -1353,6 +1485,8 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** + * + * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1371,14 +1505,16 @@ public java.lang.String getAssetTypes(int index) {
          * 
    * * repeated string asset_types = 3; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString - getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } /** + * + * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1397,21 +1533,23 @@ public java.lang.String getAssetTypes(int index) {
          * 
    * * repeated string asset_types = 3; + * * @param index The index to set the value at. * @param value The assetTypes to set. * @return This builder for chaining. */ - public Builder setAssetTypes( - int index, java.lang.String value) { + public Builder setAssetTypes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.set(index, value); onChanged(); return this; } /** + * + * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1430,20 +1568,22 @@ public Builder setAssetTypes(
          * 
    * * repeated string asset_types = 3; + * * @param value The assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypes( - java.lang.String value) { + public Builder addAssetTypes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); return this; } /** + * + * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1462,18 +1602,19 @@ public Builder addAssetTypes(
          * 
    * * repeated string asset_types = 3; + * * @param values The assetTypes to add. * @return This builder for chaining. */ - public Builder addAllAssetTypes( - java.lang.Iterable values) { + public Builder addAllAssetTypes(java.lang.Iterable values) { ensureAssetTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, assetTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetTypes_); onChanged(); return this; } /** + * + * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1492,6 +1633,7 @@ public Builder addAllAssetTypes(
          * 
    * * repeated string asset_types = 3; + * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1501,6 +1643,8 @@ public Builder clearAssetTypes() { return this; } /** + * + * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1519,15 +1663,15 @@ public Builder clearAssetTypes() {
          * 
    * * repeated string asset_types = 3; + * * @param value The bytes of the assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypesBytes( - com.google.protobuf.ByteString value) { + public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); @@ -1536,55 +1680,69 @@ public Builder addAssetTypesBytes( private int contentType_ = 0; /** + * + * *
          * Asset content type. If not specified, no content but the asset name will
          * be returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override public int getContentTypeValue() { + @java.lang.Override + public int getContentTypeValue() { return contentType_; } /** + * + * *
          * Asset content type. If not specified, no content but the asset name will
          * be returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @param value The enum numeric value on the wire for contentType to set. * @return This builder for chaining. */ public Builder setContentTypeValue(int value) { - + contentType_ = value; onChanged(); return this; } /** + * + * *
          * Asset content type. If not specified, no content but the asset name will
          * be returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @return The contentType. */ @java.lang.Override public com.google.cloud.asset.v1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.ContentType result = com.google.cloud.asset.v1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1.ContentType result = + com.google.cloud.asset.v1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1.ContentType.UNRECOGNIZED : result; } /** + * + * *
          * Asset content type. If not specified, no content but the asset name will
          * be returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @param value The contentType to set. * @return This builder for chaining. */ @@ -1592,35 +1750,41 @@ public Builder setContentType(com.google.cloud.asset.v1.ContentType value) { if (value == null) { throw new NullPointerException(); } - + contentType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
          * Asset content type. If not specified, no content but the asset name will
          * be returned.
          * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @return This builder for chaining. */ public Builder clearContentType() { - + contentType_ = 0; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
          * The maximum number of assets to be returned in a single response. Default
          * is 100, minimum is 1, and maximum is 1000.
          * 
    * * int32 page_size = 5; + * * @return The pageSize. */ @java.lang.Override @@ -1628,32 +1792,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
          * The maximum number of assets to be returned in a single response. Default
          * is 100, minimum is 1, and maximum is 1000.
          * 
    * * int32 page_size = 5; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
          * The maximum number of assets to be returned in a single response. Default
          * is 100, minimum is 1, and maximum is 1000.
          * 
    * * int32 page_size = 5; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1661,6 +1831,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
          * The `next_page_token` returned from the previous `ListAssetsResponse`, or
          * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -1668,13 +1840,13 @@ public Builder clearPageSize() {
          * 
    * * string page_token = 6; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1683,6 +1855,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
          * The `next_page_token` returned from the previous `ListAssetsResponse`, or
          * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -1690,15 +1864,14 @@ public java.lang.String getPageToken() {
          * 
    * * string page_token = 6; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1706,6 +1879,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
          * The `next_page_token` returned from the previous `ListAssetsResponse`, or
          * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -1713,20 +1888,22 @@ public java.lang.String getPageToken() {
          * 
    * * string page_token = 6; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
          * The `next_page_token` returned from the previous `ListAssetsResponse`, or
          * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -1734,15 +1911,18 @@ public Builder setPageToken(
          * 
    * * string page_token = 6; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
          * The `next_page_token` returned from the previous `ListAssetsResponse`, or
          * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -1750,29 +1930,33 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList relationshipTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList relationshipTypes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRelationshipTypesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { relationshipTypes_ = new com.google.protobuf.LazyStringArrayList(relationshipTypes_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1792,13 +1976,15 @@ private void ensureRelationshipTypesIsMutable() {
          * 
    * * repeated string relationship_types = 7; + * * @return A list containing the relationshipTypes. */ - public com.google.protobuf.ProtocolStringList - getRelationshipTypesList() { + public com.google.protobuf.ProtocolStringList getRelationshipTypesList() { return relationshipTypes_.getUnmodifiableView(); } /** + * + * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1818,12 +2004,15 @@ private void ensureRelationshipTypesIsMutable() {
          * 
    * * repeated string relationship_types = 7; + * * @return The count of relationshipTypes. */ public int getRelationshipTypesCount() { return relationshipTypes_.size(); } /** + * + * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1843,6 +2032,7 @@ public int getRelationshipTypesCount() {
          * 
    * * repeated string relationship_types = 7; + * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -1850,6 +2040,8 @@ public java.lang.String getRelationshipTypes(int index) { return relationshipTypes_.get(index); } /** + * + * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1869,14 +2061,16 @@ public java.lang.String getRelationshipTypes(int index) {
          * 
    * * repeated string relationship_types = 7; + * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - public com.google.protobuf.ByteString - getRelationshipTypesBytes(int index) { + public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) { return relationshipTypes_.getByteString(index); } /** + * + * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1896,21 +2090,23 @@ public java.lang.String getRelationshipTypes(int index) {
          * 
    * * repeated string relationship_types = 7; + * * @param index The index to set the value at. * @param value The relationshipTypes to set. * @return This builder for chaining. */ - public Builder setRelationshipTypes( - int index, java.lang.String value) { + public Builder setRelationshipTypes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRelationshipTypesIsMutable(); + throw new NullPointerException(); + } + ensureRelationshipTypesIsMutable(); relationshipTypes_.set(index, value); onChanged(); return this; } /** + * + * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1930,20 +2126,22 @@ public Builder setRelationshipTypes(
          * 
    * * repeated string relationship_types = 7; + * * @param value The relationshipTypes to add. * @return This builder for chaining. */ - public Builder addRelationshipTypes( - java.lang.String value) { + public Builder addRelationshipTypes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRelationshipTypesIsMutable(); + throw new NullPointerException(); + } + ensureRelationshipTypesIsMutable(); relationshipTypes_.add(value); onChanged(); return this; } /** + * + * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1963,18 +2161,19 @@ public Builder addRelationshipTypes(
          * 
    * * repeated string relationship_types = 7; + * * @param values The relationshipTypes to add. * @return This builder for chaining. */ - public Builder addAllRelationshipTypes( - java.lang.Iterable values) { + public Builder addAllRelationshipTypes(java.lang.Iterable values) { ensureRelationshipTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, relationshipTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relationshipTypes_); onChanged(); return this; } /** + * + * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1994,6 +2193,7 @@ public Builder addAllRelationshipTypes(
          * 
    * * repeated string relationship_types = 7; + * * @return This builder for chaining. */ public Builder clearRelationshipTypes() { @@ -2003,6 +2203,8 @@ public Builder clearRelationshipTypes() { return this; } /** + * + * *
          * A list of relationship types to output, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -2022,23 +2224,23 @@ public Builder clearRelationshipTypes() {
          * 
    * * repeated string relationship_types = 7; + * * @param value The bytes of the relationshipTypes to add. * @return This builder for chaining. */ - public Builder addRelationshipTypesBytes( - com.google.protobuf.ByteString value) { + public Builder addRelationshipTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureRelationshipTypesIsMutable(); relationshipTypes_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2048,12 +2250,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.ListAssetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.ListAssetsRequest) private static final com.google.cloud.asset.v1.ListAssetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.ListAssetsRequest(); } @@ -2062,27 +2264,27 @@ public static com.google.cloud.asset.v1.ListAssetsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2097,6 +2299,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.ListAssetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequestOrBuilder.java similarity index 89% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequestOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequestOrBuilder.java index e9783d1d8016..da5c520ef91a 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface ListAssetsRequestOrBuilder extends +public interface ListAssetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.ListAssetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. Name of the organization, folder, or project the assets belong to. Format:
        * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -16,11 +34,16 @@ public interface ListAssetsRequestOrBuilder extends
        * "folders/[folder-number]" (such as "folders/12345").
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
        * Required. Name of the organization, folder, or project the assets belong to. Format:
        * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -29,13 +52,17 @@ public interface ListAssetsRequestOrBuilder extends
        * "folders/[folder-number]" (such as "folders/12345").
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -45,10 +72,13 @@ public interface ListAssetsRequestOrBuilder extends
        * 
    * * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -58,10 +88,13 @@ public interface ListAssetsRequestOrBuilder extends
        * 
    * * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -75,6 +108,8 @@ public interface ListAssetsRequestOrBuilder extends
       com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -93,11 +128,13 @@ public interface ListAssetsRequestOrBuilder extends
        * 
    * * repeated string asset_types = 3; + * * @return A list containing the assetTypes. */ - java.util.List - getAssetTypesList(); + java.util.List getAssetTypesList(); /** + * + * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -116,10 +153,13 @@ public interface ListAssetsRequestOrBuilder extends
        * 
    * * repeated string asset_types = 3; + * * @return The count of assetTypes. */ int getAssetTypesCount(); /** + * + * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -138,11 +178,14 @@ public interface ListAssetsRequestOrBuilder extends
        * 
    * * repeated string asset_types = 3; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ java.lang.String getAssetTypes(int index); /** + * + * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -161,45 +204,56 @@ public interface ListAssetsRequestOrBuilder extends
        * 
    * * repeated string asset_types = 3; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - com.google.protobuf.ByteString - getAssetTypesBytes(int index); + com.google.protobuf.ByteString getAssetTypesBytes(int index); /** + * + * *
        * Asset content type. If not specified, no content but the asset name will
        * be returned.
        * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @return The enum numeric value on the wire for contentType. */ int getContentTypeValue(); /** + * + * *
        * Asset content type. If not specified, no content but the asset name will
        * be returned.
        * 
    * * .google.cloud.asset.v1.ContentType content_type = 4; + * * @return The contentType. */ com.google.cloud.asset.v1.ContentType getContentType(); /** + * + * *
        * The maximum number of assets to be returned in a single response. Default
        * is 100, minimum is 1, and maximum is 1000.
        * 
    * * int32 page_size = 5; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
        * The `next_page_token` returned from the previous `ListAssetsResponse`, or
        * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -207,10 +261,13 @@ public interface ListAssetsRequestOrBuilder extends
        * 
    * * string page_token = 6; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
        * The `next_page_token` returned from the previous `ListAssetsResponse`, or
        * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -218,12 +275,14 @@ public interface ListAssetsRequestOrBuilder extends
        * 
    * * string page_token = 6; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -243,11 +302,13 @@ public interface ListAssetsRequestOrBuilder extends
        * 
    * * repeated string relationship_types = 7; + * * @return A list containing the relationshipTypes. */ - java.util.List - getRelationshipTypesList(); + java.util.List getRelationshipTypesList(); /** + * + * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -267,10 +328,13 @@ public interface ListAssetsRequestOrBuilder extends
        * 
    * * repeated string relationship_types = 7; + * * @return The count of relationshipTypes. */ int getRelationshipTypesCount(); /** + * + * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -290,11 +354,14 @@ public interface ListAssetsRequestOrBuilder extends
        * 
    * * repeated string relationship_types = 7; + * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ java.lang.String getRelationshipTypes(int index); /** + * + * *
        * A list of relationship types to output, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -314,9 +381,9 @@ public interface ListAssetsRequestOrBuilder extends
        * 
    * * repeated string relationship_types = 7; + * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - com.google.protobuf.ByteString - getRelationshipTypesBytes(int index); + com.google.protobuf.ByteString getRelationshipTypesBytes(int index); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponse.java similarity index 72% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponse.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponse.java index c614f42714b3..77f756613c68 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponse.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * ListAssets response.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.ListAssetsResponse} */ -public final class ListAssetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAssetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.ListAssetsResponse) ListAssetsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAssetsResponse.newBuilder() to construct. private ListAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAssetsResponse() { assets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,37 +44,41 @@ private ListAssetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAssetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListAssetsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListAssetsResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ListAssetsResponse.class, com.google.cloud.asset.v1.ListAssetsResponse.Builder.class); + com.google.cloud.asset.v1.ListAssetsResponse.class, + com.google.cloud.asset.v1.ListAssetsResponse.Builder.class); } public static final int READ_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp readTime_; /** + * + * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -64,11 +86,14 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; + * * @return The readTime. */ @java.lang.Override @@ -76,6 +101,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
        * Time the snapshot was taken.
        * 
    @@ -90,6 +117,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int ASSETS_FIELD_NUMBER = 2; private java.util.List assets_; /** + * + * *
        * Assets.
        * 
    @@ -101,6 +130,8 @@ public java.util.List getAssetsList() { return assets_; } /** + * + * *
        * Assets.
        * 
    @@ -108,11 +139,13 @@ public java.util.List getAssetsList() { * repeated .google.cloud.asset.v1.Asset assets = 2; */ @java.lang.Override - public java.util.List + public java.util.List getAssetsOrBuilderList() { return assets_; } /** + * + * *
        * Assets.
        * 
    @@ -124,6 +157,8 @@ public int getAssetsCount() { return assets_.size(); } /** + * + * *
        * Assets.
        * 
    @@ -135,6 +170,8 @@ public com.google.cloud.asset.v1.Asset getAssets(int index) { return assets_.get(index); } /** + * + * *
        * Assets.
        * 
    @@ -142,14 +179,15 @@ public com.google.cloud.asset.v1.Asset getAssets(int index) { * repeated .google.cloud.asset.v1.Asset assets = 2; */ @java.lang.Override - public com.google.cloud.asset.v1.AssetOrBuilder getAssetsOrBuilder( - int index) { + public com.google.cloud.asset.v1.AssetOrBuilder getAssetsOrBuilder(int index) { return assets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** + * + * *
        * Token to retrieve the next page of results. It expires 72 hours after the
        * page token for the first page is generated. Set to empty if there are no
    @@ -157,6 +195,7 @@ public com.google.cloud.asset.v1.AssetOrBuilder getAssetsOrBuilder(
        * 
    * * string next_page_token = 3; + * * @return The nextPageToken. */ @java.lang.Override @@ -165,14 +204,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
        * Token to retrieve the next page of results. It expires 72 hours after the
        * page token for the first page is generated. Set to empty if there are no
    @@ -180,16 +220,15 @@ public java.lang.String getNextPageToken() {
        * 
    * * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -198,6 +237,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,8 +249,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (readTime_ != null) { output.writeMessage(1, getReadTime()); } @@ -230,12 +269,10 @@ public int getSerializedSize() { size = 0; if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReadTime()); } for (int i = 0; i < assets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, assets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, assets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); @@ -248,22 +285,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.ListAssetsResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1.ListAssetsResponse other = (com.google.cloud.asset.v1.ListAssetsResponse) obj; + com.google.cloud.asset.v1.ListAssetsResponse other = + (com.google.cloud.asset.v1.ListAssetsResponse) obj; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } - if (!getAssetsList() - .equals(other.getAssetsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getAssetsList().equals(other.getAssetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -290,130 +325,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.ListAssetsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.ListAssetsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ListAssetsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.ListAssetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ListAssetsResponse 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.asset.v1.ListAssetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ListAssetsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.ListAssetsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ListAssetsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.ListAssetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.ListAssetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ListAssetsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.ListAssetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ListAssetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.ListAssetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * ListAssets response.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.ListAssetsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.ListAssetsResponse) com.google.cloud.asset.v1.ListAssetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListAssetsResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ListAssetsResponse.class, com.google.cloud.asset.v1.ListAssetsResponse.Builder.class); + com.google.cloud.asset.v1.ListAssetsResponse.class, + com.google.cloud.asset.v1.ListAssetsResponse.Builder.class); } // Construct using com.google.cloud.asset.v1.ListAssetsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -436,9 +477,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListAssetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListAssetsResponse_descriptor; } @java.lang.Override @@ -457,7 +498,8 @@ public com.google.cloud.asset.v1.ListAssetsResponse build() { @java.lang.Override public com.google.cloud.asset.v1.ListAssetsResponse buildPartial() { - com.google.cloud.asset.v1.ListAssetsResponse result = new com.google.cloud.asset.v1.ListAssetsResponse(this); + com.google.cloud.asset.v1.ListAssetsResponse result = + new com.google.cloud.asset.v1.ListAssetsResponse(this); int from_bitField0_ = bitField0_; if (readTimeBuilder_ == null) { result.readTime_ = readTime_; @@ -482,38 +524,39 @@ public com.google.cloud.asset.v1.ListAssetsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.ListAssetsResponse) { - return mergeFrom((com.google.cloud.asset.v1.ListAssetsResponse)other); + return mergeFrom((com.google.cloud.asset.v1.ListAssetsResponse) other); } else { super.mergeFrom(other); return this; @@ -543,9 +586,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ListAssetsResponse other) { assetsBuilder_ = null; assets_ = other.assets_; bitField0_ = (bitField0_ & ~0x00000001); - assetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAssetsFieldBuilder() : null; + assetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAssetsFieldBuilder() + : null; } else { assetsBuilder_.addAllMessages(other.assets_); } @@ -581,37 +625,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getReadTimeFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage(getReadTimeFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 10 - case 18: { - com.google.cloud.asset.v1.Asset m = - input.readMessage( - com.google.cloud.asset.v1.Asset.parser(), - extensionRegistry); - if (assetsBuilder_ == null) { - ensureAssetsIsMutable(); - assets_.add(m); - } else { - assetsBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: { - nextPageToken_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + com.google.cloud.asset.v1.Asset m = + input.readMessage(com.google.cloud.asset.v1.Asset.parser(), extensionRegistry); + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.add(m); + } else { + assetsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -621,28 +665,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
          * Time the snapshot was taken.
          * 
    * * .google.protobuf.Timestamp read_time = 1; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
          * Time the snapshot was taken.
          * 
    * * .google.protobuf.Timestamp read_time = 1; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -653,6 +707,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
          * Time the snapshot was taken.
          * 
    @@ -673,14 +729,15 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * Time the snapshot was taken.
          * 
    * * .google.protobuf.Timestamp read_time = 1; */ - public Builder setReadTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -691,6 +748,8 @@ public Builder setReadTime( return this; } /** + * + * *
          * Time the snapshot was taken.
          * 
    @@ -701,7 +760,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -713,6 +772,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * Time the snapshot was taken.
          * 
    @@ -731,6 +792,8 @@ public Builder clearReadTime() { return this; } /** + * + * *
          * Time the snapshot was taken.
          * 
    @@ -738,11 +801,13 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 1; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** + * + * *
          * Time the snapshot was taken.
          * 
    @@ -753,11 +818,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** + * + * *
          * Time the snapshot was taken.
          * 
    @@ -765,32 +831,41 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getReadTime(), - getParentForChildren(), - isClean()); + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); readTime_ = null; } return readTimeBuilder_; } private java.util.List assets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAssetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assets_ = new java.util.ArrayList(assets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.Asset, com.google.cloud.asset.v1.Asset.Builder, com.google.cloud.asset.v1.AssetOrBuilder> assetsBuilder_; + com.google.cloud.asset.v1.Asset, + com.google.cloud.asset.v1.Asset.Builder, + com.google.cloud.asset.v1.AssetOrBuilder> + assetsBuilder_; /** + * + * *
          * Assets.
          * 
    @@ -805,6 +880,8 @@ public java.util.List getAssetsList() { } } /** + * + * *
          * Assets.
          * 
    @@ -819,6 +896,8 @@ public int getAssetsCount() { } } /** + * + * *
          * Assets.
          * 
    @@ -833,14 +912,15 @@ public com.google.cloud.asset.v1.Asset getAssets(int index) { } } /** + * + * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - public Builder setAssets( - int index, com.google.cloud.asset.v1.Asset value) { + public Builder setAssets(int index, com.google.cloud.asset.v1.Asset value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -854,14 +934,15 @@ public Builder setAssets( return this; } /** + * + * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - public Builder setAssets( - int index, com.google.cloud.asset.v1.Asset.Builder builderForValue) { + public Builder setAssets(int index, com.google.cloud.asset.v1.Asset.Builder builderForValue) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.set(index, builderForValue.build()); @@ -872,6 +953,8 @@ public Builder setAssets( return this; } /** + * + * *
          * Assets.
          * 
    @@ -892,14 +975,15 @@ public Builder addAssets(com.google.cloud.asset.v1.Asset value) { return this; } /** + * + * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - public Builder addAssets( - int index, com.google.cloud.asset.v1.Asset value) { + public Builder addAssets(int index, com.google.cloud.asset.v1.Asset value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -913,14 +997,15 @@ public Builder addAssets( return this; } /** + * + * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - public Builder addAssets( - com.google.cloud.asset.v1.Asset.Builder builderForValue) { + public Builder addAssets(com.google.cloud.asset.v1.Asset.Builder builderForValue) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.add(builderForValue.build()); @@ -931,14 +1016,15 @@ public Builder addAssets( return this; } /** + * + * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - public Builder addAssets( - int index, com.google.cloud.asset.v1.Asset.Builder builderForValue) { + public Builder addAssets(int index, com.google.cloud.asset.v1.Asset.Builder builderForValue) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.add(index, builderForValue.build()); @@ -949,6 +1035,8 @@ public Builder addAssets( return this; } /** + * + * *
          * Assets.
          * 
    @@ -959,8 +1047,7 @@ public Builder addAllAssets( java.lang.Iterable values) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, assets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assets_); onChanged(); } else { assetsBuilder_.addAllMessages(values); @@ -968,6 +1055,8 @@ public Builder addAllAssets( return this; } /** + * + * *
          * Assets.
          * 
    @@ -985,6 +1074,8 @@ public Builder clearAssets() { return this; } /** + * + * *
          * Assets.
          * 
    @@ -1002,39 +1093,44 @@ public Builder removeAssets(int index) { return this; } /** + * + * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - public com.google.cloud.asset.v1.Asset.Builder getAssetsBuilder( - int index) { + public com.google.cloud.asset.v1.Asset.Builder getAssetsBuilder(int index) { return getAssetsFieldBuilder().getBuilder(index); } /** + * + * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - public com.google.cloud.asset.v1.AssetOrBuilder getAssetsOrBuilder( - int index) { + public com.google.cloud.asset.v1.AssetOrBuilder getAssetsOrBuilder(int index) { if (assetsBuilder_ == null) { - return assets_.get(index); } else { + return assets_.get(index); + } else { return assetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - public java.util.List - getAssetsOrBuilderList() { + public java.util.List + getAssetsOrBuilderList() { if (assetsBuilder_ != null) { return assetsBuilder_.getMessageOrBuilderList(); } else { @@ -1042,6 +1138,8 @@ public com.google.cloud.asset.v1.AssetOrBuilder getAssetsOrBuilder( } } /** + * + * *
          * Assets.
          * 
    @@ -1049,42 +1147,47 @@ public com.google.cloud.asset.v1.AssetOrBuilder getAssetsOrBuilder( * repeated .google.cloud.asset.v1.Asset assets = 2; */ public com.google.cloud.asset.v1.Asset.Builder addAssetsBuilder() { - return getAssetsFieldBuilder().addBuilder( - com.google.cloud.asset.v1.Asset.getDefaultInstance()); + return getAssetsFieldBuilder() + .addBuilder(com.google.cloud.asset.v1.Asset.getDefaultInstance()); } /** + * + * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - public com.google.cloud.asset.v1.Asset.Builder addAssetsBuilder( - int index) { - return getAssetsFieldBuilder().addBuilder( - index, com.google.cloud.asset.v1.Asset.getDefaultInstance()); + public com.google.cloud.asset.v1.Asset.Builder addAssetsBuilder(int index) { + return getAssetsFieldBuilder() + .addBuilder(index, com.google.cloud.asset.v1.Asset.getDefaultInstance()); } /** + * + * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - public java.util.List - getAssetsBuilderList() { + public java.util.List getAssetsBuilderList() { return getAssetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.Asset, com.google.cloud.asset.v1.Asset.Builder, com.google.cloud.asset.v1.AssetOrBuilder> + com.google.cloud.asset.v1.Asset, + com.google.cloud.asset.v1.Asset.Builder, + com.google.cloud.asset.v1.AssetOrBuilder> getAssetsFieldBuilder() { if (assetsBuilder_ == null) { - assetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.Asset, com.google.cloud.asset.v1.Asset.Builder, com.google.cloud.asset.v1.AssetOrBuilder>( - assets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + assetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.Asset, + com.google.cloud.asset.v1.Asset.Builder, + com.google.cloud.asset.v1.AssetOrBuilder>( + assets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); assets_ = null; } return assetsBuilder_; @@ -1092,6 +1195,8 @@ public com.google.cloud.asset.v1.Asset.Builder addAssetsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
          * Token to retrieve the next page of results. It expires 72 hours after the
          * page token for the first page is generated. Set to empty if there are no
    @@ -1099,13 +1204,13 @@ public com.google.cloud.asset.v1.Asset.Builder addAssetsBuilder(
          * 
    * * string next_page_token = 3; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1114,6 +1219,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
          * Token to retrieve the next page of results. It expires 72 hours after the
          * page token for the first page is generated. Set to empty if there are no
    @@ -1121,15 +1228,14 @@ public java.lang.String getNextPageToken() {
          * 
    * * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1137,6 +1243,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
          * Token to retrieve the next page of results. It expires 72 hours after the
          * page token for the first page is generated. Set to empty if there are no
    @@ -1144,20 +1252,22 @@ public java.lang.String getNextPageToken() {
          * 
    * * string next_page_token = 3; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
          * Token to retrieve the next page of results. It expires 72 hours after the
          * page token for the first page is generated. Set to empty if there are no
    @@ -1165,15 +1275,18 @@ public Builder setNextPageToken(
          * 
    * * string next_page_token = 3; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
          * Token to retrieve the next page of results. It expires 72 hours after the
          * page token for the first page is generated. Set to empty if there are no
    @@ -1181,23 +1294,23 @@ 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1207,12 +1320,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.ListAssetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.ListAssetsResponse) private static final com.google.cloud.asset.v1.ListAssetsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.ListAssetsResponse(); } @@ -1221,27 +1334,27 @@ public static com.google.cloud.asset.v1.ListAssetsResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1256,6 +1369,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.ListAssetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponseOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponseOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponseOrBuilder.java index 788d4a5158c7..f44c37ceea77 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponseOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface ListAssetsResponseOrBuilder extends +public interface ListAssetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.ListAssetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
        * Time the snapshot was taken.
        * 
    @@ -35,15 +59,18 @@ public interface ListAssetsResponseOrBuilder extends com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** + * + * *
        * Assets.
        * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - java.util.List - getAssetsList(); + java.util.List getAssetsList(); /** + * + * *
        * Assets.
        * 
    @@ -52,6 +79,8 @@ public interface ListAssetsResponseOrBuilder extends */ com.google.cloud.asset.v1.Asset getAssets(int index); /** + * + * *
        * Assets.
        * 
    @@ -60,25 +89,29 @@ public interface ListAssetsResponseOrBuilder extends */ int getAssetsCount(); /** + * + * *
        * Assets.
        * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - java.util.List - getAssetsOrBuilderList(); + java.util.List getAssetsOrBuilderList(); /** + * + * *
        * Assets.
        * 
    * * repeated .google.cloud.asset.v1.Asset assets = 2; */ - com.google.cloud.asset.v1.AssetOrBuilder getAssetsOrBuilder( - int index); + com.google.cloud.asset.v1.AssetOrBuilder getAssetsOrBuilder(int index); /** + * + * *
        * Token to retrieve the next page of results. It expires 72 hours after the
        * page token for the first page is generated. Set to empty if there are no
    @@ -86,10 +119,13 @@ com.google.cloud.asset.v1.AssetOrBuilder getAssetsOrBuilder(
        * 
    * * string next_page_token = 3; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
        * Token to retrieve the next page of results. It expires 72 hours after the
        * page token for the first page is generated. Set to empty if there are no
    @@ -97,8 +133,8 @@ com.google.cloud.asset.v1.AssetOrBuilder getAssetsOrBuilder(
        * 
    * * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequest.java similarity index 67% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequest.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequest.java index 08dd5e15935b..2998c69f5249 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequest.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * List asset feeds request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.ListFeedsRequest} */ -public final class ListFeedsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFeedsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.ListFeedsRequest) ListFeedsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFeedsRequest.newBuilder() to construct. private ListFeedsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFeedsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFeedsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListFeedsRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListFeedsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ListFeedsRequest.class, com.google.cloud.asset.v1.ListFeedsRequest.Builder.class); + com.google.cloud.asset.v1.ListFeedsRequest.class, + com.google.cloud.asset.v1.ListFeedsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
        * Required. The parent project/folder/organization whose feeds are to be
        * listed. It can only be using project/folder/organization number (such as
    @@ -58,6 +79,7 @@ protected java.lang.Object newInstance(
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -66,14 +88,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
        * Required. The parent project/folder/organization whose feeds are to be
        * listed. It can only be using project/folder/organization number (such as
    @@ -81,16 +104,15 @@ public java.lang.String getParent() {
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -99,6 +121,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -135,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.ListFeedsRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.ListFeedsRequest other = (com.google.cloud.asset.v1.ListFeedsRequest) obj; + com.google.cloud.asset.v1.ListFeedsRequest other = + (com.google.cloud.asset.v1.ListFeedsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,130 +184,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ListFeedsRequest 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.asset.v1.ListFeedsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.ListFeedsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.ListFeedsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ListFeedsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ListFeedsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.ListFeedsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * List asset feeds request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.ListFeedsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.ListFeedsRequest) com.google.cloud.asset.v1.ListFeedsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListFeedsRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListFeedsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ListFeedsRequest.class, com.google.cloud.asset.v1.ListFeedsRequest.Builder.class); + com.google.cloud.asset.v1.ListFeedsRequest.class, + com.google.cloud.asset.v1.ListFeedsRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.ListFeedsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -295,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor; } @java.lang.Override @@ -316,7 +344,8 @@ public com.google.cloud.asset.v1.ListFeedsRequest build() { @java.lang.Override public com.google.cloud.asset.v1.ListFeedsRequest buildPartial() { - com.google.cloud.asset.v1.ListFeedsRequest result = new com.google.cloud.asset.v1.ListFeedsRequest(this); + com.google.cloud.asset.v1.ListFeedsRequest result = + new com.google.cloud.asset.v1.ListFeedsRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -326,38 +355,39 @@ public com.google.cloud.asset.v1.ListFeedsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.ListFeedsRequest) { - return mergeFrom((com.google.cloud.asset.v1.ListFeedsRequest)other); + return mergeFrom((com.google.cloud.asset.v1.ListFeedsRequest) other); } else { super.mergeFrom(other); return this; @@ -396,17 +426,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -419,6 +451,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
          * Required. The parent project/folder/organization whose feeds are to be
          * listed. It can only be using project/folder/organization number (such as
    @@ -426,13 +460,13 @@ public Builder mergeFrom(
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -441,6 +475,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. The parent project/folder/organization whose feeds are to be
          * listed. It can only be using project/folder/organization number (such as
    @@ -448,15 +484,14 @@ public java.lang.String getParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -464,6 +499,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. The parent project/folder/organization whose feeds are to be
          * listed. It can only be using project/folder/organization number (such as
    @@ -471,20 +508,22 @@ public java.lang.String getParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
          * Required. The parent project/folder/organization whose feeds are to be
          * listed. It can only be using project/folder/organization number (such as
    @@ -492,15 +531,18 @@ public Builder setParent(
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
          * Required. The parent project/folder/organization whose feeds are to be
          * listed. It can only be using project/folder/organization number (such as
    @@ -508,23 +550,23 @@ public Builder clearParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -534,12 +576,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.ListFeedsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.ListFeedsRequest) private static final com.google.cloud.asset.v1.ListFeedsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.ListFeedsRequest(); } @@ -548,27 +590,27 @@ public static com.google.cloud.asset.v1.ListFeedsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFeedsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeedsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -583,6 +625,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.ListFeedsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequestOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequestOrBuilder.java index be5ab6097189..7c4e5f3cb8b3 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface ListFeedsRequestOrBuilder extends +public interface ListFeedsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.ListFeedsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The parent project/folder/organization whose feeds are to be
        * listed. It can only be using project/folder/organization number (such as
    @@ -15,10 +33,13 @@ public interface ListFeedsRequestOrBuilder extends
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
        * Required. The parent project/folder/organization whose feeds are to be
        * listed. It can only be using project/folder/organization number (such as
    @@ -26,8 +47,8 @@ public interface ListFeedsRequestOrBuilder extends
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponse.java similarity index 68% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponse.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponse.java index 4ea1d13b5dc2..a8c959028792 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponse.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponse.java @@ -1,52 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -/** - * Protobuf type {@code google.cloud.asset.v1.ListFeedsResponse} - */ -public final class ListFeedsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.asset.v1.ListFeedsResponse} */ +public final class ListFeedsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.ListFeedsResponse) ListFeedsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFeedsResponse.newBuilder() to construct. private ListFeedsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFeedsResponse() { feeds_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFeedsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListFeedsResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListFeedsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ListFeedsResponse.class, com.google.cloud.asset.v1.ListFeedsResponse.Builder.class); + com.google.cloud.asset.v1.ListFeedsResponse.class, + com.google.cloud.asset.v1.ListFeedsResponse.Builder.class); } public static final int FEEDS_FIELD_NUMBER = 1; private java.util.List feeds_; /** + * + * *
        * A list of feeds.
        * 
    @@ -58,6 +75,8 @@ public java.util.List getFeedsList() { return feeds_; } /** + * + * *
        * A list of feeds.
        * 
    @@ -65,11 +84,12 @@ public java.util.List getFeedsList() { * repeated .google.cloud.asset.v1.Feed feeds = 1; */ @java.lang.Override - public java.util.List - getFeedsOrBuilderList() { + public java.util.List getFeedsOrBuilderList() { return feeds_; } /** + * + * *
        * A list of feeds.
        * 
    @@ -81,6 +101,8 @@ public int getFeedsCount() { return feeds_.size(); } /** + * + * *
        * A list of feeds.
        * 
    @@ -92,6 +114,8 @@ public com.google.cloud.asset.v1.Feed getFeeds(int index) { return feeds_.get(index); } /** + * + * *
        * A list of feeds.
        * 
    @@ -99,12 +123,12 @@ public com.google.cloud.asset.v1.Feed getFeeds(int index) { * repeated .google.cloud.asset.v1.Feed feeds = 1; */ @java.lang.Override - public com.google.cloud.asset.v1.FeedOrBuilder getFeedsOrBuilder( - int index) { + public com.google.cloud.asset.v1.FeedOrBuilder getFeedsOrBuilder(int index) { return feeds_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -116,8 +140,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < feeds_.size(); i++) { output.writeMessage(1, feeds_.get(i)); } @@ -131,8 +154,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < feeds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, feeds_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, feeds_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -142,15 +164,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.ListFeedsResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1.ListFeedsResponse other = (com.google.cloud.asset.v1.ListFeedsResponse) obj; + com.google.cloud.asset.v1.ListFeedsResponse other = + (com.google.cloud.asset.v1.ListFeedsResponse) obj; - if (!getFeedsList() - .equals(other.getFeedsList())) return false; + if (!getFeedsList().equals(other.getFeedsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -171,126 +193,128 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ListFeedsResponse 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.asset.v1.ListFeedsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.ListFeedsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.ListFeedsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ListFeedsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ListFeedsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.ListFeedsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.asset.v1.ListFeedsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.asset.v1.ListFeedsResponse} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.ListFeedsResponse) com.google.cloud.asset.v1.ListFeedsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListFeedsResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListFeedsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ListFeedsResponse.class, com.google.cloud.asset.v1.ListFeedsResponse.Builder.class); + com.google.cloud.asset.v1.ListFeedsResponse.class, + com.google.cloud.asset.v1.ListFeedsResponse.Builder.class); } // Construct using com.google.cloud.asset.v1.ListFeedsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -305,9 +329,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor; } @java.lang.Override @@ -326,7 +350,8 @@ public com.google.cloud.asset.v1.ListFeedsResponse build() { @java.lang.Override public com.google.cloud.asset.v1.ListFeedsResponse buildPartial() { - com.google.cloud.asset.v1.ListFeedsResponse result = new com.google.cloud.asset.v1.ListFeedsResponse(this); + com.google.cloud.asset.v1.ListFeedsResponse result = + new com.google.cloud.asset.v1.ListFeedsResponse(this); int from_bitField0_ = bitField0_; if (feedsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -345,38 +370,39 @@ public com.google.cloud.asset.v1.ListFeedsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.ListFeedsResponse) { - return mergeFrom((com.google.cloud.asset.v1.ListFeedsResponse)other); + return mergeFrom((com.google.cloud.asset.v1.ListFeedsResponse) other); } else { super.mergeFrom(other); return this; @@ -403,9 +429,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ListFeedsResponse other) { feedsBuilder_ = null; feeds_ = other.feeds_; bitField0_ = (bitField0_ & ~0x00000001); - feedsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFeedsFieldBuilder() : null; + feedsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFeedsFieldBuilder() + : null; } else { feedsBuilder_.addAllMessages(other.feeds_); } @@ -437,25 +464,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.asset.v1.Feed m = - input.readMessage( - com.google.cloud.asset.v1.Feed.parser(), - extensionRegistry); - if (feedsBuilder_ == null) { - ensureFeedsIsMutable(); - feeds_.add(m); - } else { - feedsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.asset.v1.Feed m = + input.readMessage(com.google.cloud.asset.v1.Feed.parser(), extensionRegistry); + if (feedsBuilder_ == null) { + ensureFeedsIsMutable(); + feeds_.add(m); + } else { + feedsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -465,21 +492,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List feeds_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFeedsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { feeds_ = new java.util.ArrayList(feeds_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.Feed, com.google.cloud.asset.v1.Feed.Builder, com.google.cloud.asset.v1.FeedOrBuilder> feedsBuilder_; + com.google.cloud.asset.v1.Feed, + com.google.cloud.asset.v1.Feed.Builder, + com.google.cloud.asset.v1.FeedOrBuilder> + feedsBuilder_; /** + * + * *
          * A list of feeds.
          * 
    @@ -494,6 +528,8 @@ public java.util.List getFeedsList() { } } /** + * + * *
          * A list of feeds.
          * 
    @@ -508,6 +544,8 @@ public int getFeedsCount() { } } /** + * + * *
          * A list of feeds.
          * 
    @@ -522,14 +560,15 @@ public com.google.cloud.asset.v1.Feed getFeeds(int index) { } } /** + * + * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - public Builder setFeeds( - int index, com.google.cloud.asset.v1.Feed value) { + public Builder setFeeds(int index, com.google.cloud.asset.v1.Feed value) { if (feedsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -543,14 +582,15 @@ public Builder setFeeds( return this; } /** + * + * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - public Builder setFeeds( - int index, com.google.cloud.asset.v1.Feed.Builder builderForValue) { + public Builder setFeeds(int index, com.google.cloud.asset.v1.Feed.Builder builderForValue) { if (feedsBuilder_ == null) { ensureFeedsIsMutable(); feeds_.set(index, builderForValue.build()); @@ -561,6 +601,8 @@ public Builder setFeeds( return this; } /** + * + * *
          * A list of feeds.
          * 
    @@ -581,14 +623,15 @@ public Builder addFeeds(com.google.cloud.asset.v1.Feed value) { return this; } /** + * + * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - public Builder addFeeds( - int index, com.google.cloud.asset.v1.Feed value) { + public Builder addFeeds(int index, com.google.cloud.asset.v1.Feed value) { if (feedsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -602,14 +645,15 @@ public Builder addFeeds( return this; } /** + * + * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - public Builder addFeeds( - com.google.cloud.asset.v1.Feed.Builder builderForValue) { + public Builder addFeeds(com.google.cloud.asset.v1.Feed.Builder builderForValue) { if (feedsBuilder_ == null) { ensureFeedsIsMutable(); feeds_.add(builderForValue.build()); @@ -620,14 +664,15 @@ public Builder addFeeds( return this; } /** + * + * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - public Builder addFeeds( - int index, com.google.cloud.asset.v1.Feed.Builder builderForValue) { + public Builder addFeeds(int index, com.google.cloud.asset.v1.Feed.Builder builderForValue) { if (feedsBuilder_ == null) { ensureFeedsIsMutable(); feeds_.add(index, builderForValue.build()); @@ -638,6 +683,8 @@ public Builder addFeeds( return this; } /** + * + * *
          * A list of feeds.
          * 
    @@ -648,8 +695,7 @@ public Builder addAllFeeds( java.lang.Iterable values) { if (feedsBuilder_ == null) { ensureFeedsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, feeds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, feeds_); onChanged(); } else { feedsBuilder_.addAllMessages(values); @@ -657,6 +703,8 @@ public Builder addAllFeeds( return this; } /** + * + * *
          * A list of feeds.
          * 
    @@ -674,6 +722,8 @@ public Builder clearFeeds() { return this; } /** + * + * *
          * A list of feeds.
          * 
    @@ -691,39 +741,44 @@ public Builder removeFeeds(int index) { return this; } /** + * + * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - public com.google.cloud.asset.v1.Feed.Builder getFeedsBuilder( - int index) { + public com.google.cloud.asset.v1.Feed.Builder getFeedsBuilder(int index) { return getFeedsFieldBuilder().getBuilder(index); } /** + * + * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - public com.google.cloud.asset.v1.FeedOrBuilder getFeedsOrBuilder( - int index) { + public com.google.cloud.asset.v1.FeedOrBuilder getFeedsOrBuilder(int index) { if (feedsBuilder_ == null) { - return feeds_.get(index); } else { + return feeds_.get(index); + } else { return feedsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - public java.util.List - getFeedsOrBuilderList() { + public java.util.List + getFeedsOrBuilderList() { if (feedsBuilder_ != null) { return feedsBuilder_.getMessageOrBuilderList(); } else { @@ -731,6 +786,8 @@ public com.google.cloud.asset.v1.FeedOrBuilder getFeedsOrBuilder( } } /** + * + * *
          * A list of feeds.
          * 
    @@ -738,49 +795,53 @@ public com.google.cloud.asset.v1.FeedOrBuilder getFeedsOrBuilder( * repeated .google.cloud.asset.v1.Feed feeds = 1; */ public com.google.cloud.asset.v1.Feed.Builder addFeedsBuilder() { - return getFeedsFieldBuilder().addBuilder( - com.google.cloud.asset.v1.Feed.getDefaultInstance()); + return getFeedsFieldBuilder().addBuilder(com.google.cloud.asset.v1.Feed.getDefaultInstance()); } /** + * + * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - public com.google.cloud.asset.v1.Feed.Builder addFeedsBuilder( - int index) { - return getFeedsFieldBuilder().addBuilder( - index, com.google.cloud.asset.v1.Feed.getDefaultInstance()); + public com.google.cloud.asset.v1.Feed.Builder addFeedsBuilder(int index) { + return getFeedsFieldBuilder() + .addBuilder(index, com.google.cloud.asset.v1.Feed.getDefaultInstance()); } /** + * + * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - public java.util.List - getFeedsBuilderList() { + public java.util.List getFeedsBuilderList() { return getFeedsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.Feed, com.google.cloud.asset.v1.Feed.Builder, com.google.cloud.asset.v1.FeedOrBuilder> + com.google.cloud.asset.v1.Feed, + com.google.cloud.asset.v1.Feed.Builder, + com.google.cloud.asset.v1.FeedOrBuilder> getFeedsFieldBuilder() { if (feedsBuilder_ == null) { - feedsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.Feed, com.google.cloud.asset.v1.Feed.Builder, com.google.cloud.asset.v1.FeedOrBuilder>( - feeds_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + feedsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.Feed, + com.google.cloud.asset.v1.Feed.Builder, + com.google.cloud.asset.v1.FeedOrBuilder>( + feeds_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); feeds_ = null; } return feedsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -790,12 +851,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.ListFeedsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.ListFeedsResponse) private static final com.google.cloud.asset.v1.ListFeedsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.ListFeedsResponse(); } @@ -804,27 +865,27 @@ public static com.google.cloud.asset.v1.ListFeedsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFeedsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeedsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -839,6 +900,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.ListFeedsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponseOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponseOrBuilder.java similarity index 55% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponseOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponseOrBuilder.java index d5bb75ca2b75..6cbe869863db 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponseOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListFeedsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface ListFeedsResponseOrBuilder extends +public interface ListFeedsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.ListFeedsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * A list of feeds.
        * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - java.util.List - getFeedsList(); + java.util.List getFeedsList(); /** + * + * *
        * A list of feeds.
        * 
    @@ -25,6 +44,8 @@ public interface ListFeedsResponseOrBuilder extends */ com.google.cloud.asset.v1.Feed getFeeds(int index); /** + * + * *
        * A list of feeds.
        * 
    @@ -33,21 +54,23 @@ public interface ListFeedsResponseOrBuilder extends */ int getFeedsCount(); /** + * + * *
        * A list of feeds.
        * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - java.util.List - getFeedsOrBuilderList(); + java.util.List getFeedsOrBuilderList(); /** + * + * *
        * A list of feeds.
        * 
    * * repeated .google.cloud.asset.v1.Feed feeds = 1; */ - com.google.cloud.asset.v1.FeedOrBuilder getFeedsOrBuilder( - int index); + com.google.cloud.asset.v1.FeedOrBuilder getFeedsOrBuilder(int index); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequest.java similarity index 72% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequest.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequest.java index b51be4312241..1ec30359d567 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * Request to list saved queries.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.ListSavedQueriesRequest} */ -public final class ListSavedQueriesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSavedQueriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.ListSavedQueriesRequest) ListSavedQueriesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSavedQueriesRequest.newBuilder() to construct. private ListSavedQueriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSavedQueriesRequest() { parent_ = ""; filter_ = ""; @@ -27,39 +45,45 @@ private ListSavedQueriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSavedQueriesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ListSavedQueriesRequest.class, com.google.cloud.asset.v1.ListSavedQueriesRequest.Builder.class); + com.google.cloud.asset.v1.ListSavedQueriesRequest.class, + com.google.cloud.asset.v1.ListSavedQueriesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
        * Required. The parent project/folder/organization whose savedQueries are to be
        * listed. It can only be using project/folder/organization number (such as
        * "folders/12345")", or a project ID (such as "projects/my-project-id").
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -68,31 +92,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
        * Required. The parent project/folder/organization whose savedQueries are to be
        * listed. It can only be using project/folder/organization number (such as
        * "folders/12345")", or a project ID (such as "projects/my-project-id").
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -103,6 +129,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
        * Optional. The expression to filter resources.
        * The expression is a list of zero or more restrictions combined via logical
    @@ -113,6 +141,7 @@ public java.lang.String getParent() {
        * 
    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -121,14 +150,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
        * Optional. The expression to filter resources.
        * The expression is a list of zero or more restrictions combined via logical
    @@ -139,16 +169,15 @@ public java.lang.String getFilter() {
        * 
    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -159,6 +188,8 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
        * Optional. The maximum number of saved queries to return per page. The service may
        * return fewer than this value. If unspecified, at most 50 will be returned.
    @@ -166,6 +197,7 @@ public java.lang.String getFilter() {
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -176,6 +208,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
        * Optional. A page token, received from a previous `ListSavedQueries` call.
        * Provide this to retrieve the subsequent page.
    @@ -184,6 +218,7 @@ public int getPageSize() {
        * 
    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -192,14 +227,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
        * Optional. A page token, received from a previous `ListSavedQueries` call.
        * Provide this to retrieve the subsequent page.
    @@ -208,16 +244,15 @@ public java.lang.String getPageToken() {
        * 
    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -226,6 +261,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,8 +273,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -264,8 +299,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -281,21 +315,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.ListSavedQueriesRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.ListSavedQueriesRequest other = (com.google.cloud.asset.v1.ListSavedQueriesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.cloud.asset.v1.ListSavedQueriesRequest other = + (com.google.cloud.asset.v1.ListSavedQueriesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -321,129 +352,135 @@ public int hashCode() { } public static com.google.cloud.asset.v1.ListSavedQueriesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ListSavedQueriesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.ListSavedQueriesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ListSavedQueriesRequest 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.asset.v1.ListSavedQueriesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ListSavedQueriesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.ListSavedQueriesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.ListSavedQueriesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ListSavedQueriesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.ListSavedQueriesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.ListSavedQueriesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ListSavedQueriesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.ListSavedQueriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ListSavedQueriesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.ListSavedQueriesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Request to list saved queries.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.ListSavedQueriesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.ListSavedQueriesRequest) com.google.cloud.asset.v1.ListSavedQueriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ListSavedQueriesRequest.class, com.google.cloud.asset.v1.ListSavedQueriesRequest.Builder.class); + com.google.cloud.asset.v1.ListSavedQueriesRequest.class, + com.google.cloud.asset.v1.ListSavedQueriesRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.ListSavedQueriesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -459,9 +496,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_descriptor; } @java.lang.Override @@ -480,7 +517,8 @@ public com.google.cloud.asset.v1.ListSavedQueriesRequest build() { @java.lang.Override public com.google.cloud.asset.v1.ListSavedQueriesRequest buildPartial() { - com.google.cloud.asset.v1.ListSavedQueriesRequest result = new com.google.cloud.asset.v1.ListSavedQueriesRequest(this); + com.google.cloud.asset.v1.ListSavedQueriesRequest result = + new com.google.cloud.asset.v1.ListSavedQueriesRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -493,38 +531,39 @@ public com.google.cloud.asset.v1.ListSavedQueriesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.ListSavedQueriesRequest) { - return mergeFrom((com.google.cloud.asset.v1.ListSavedQueriesRequest)other); + return mergeFrom((com.google.cloud.asset.v1.ListSavedQueriesRequest) other); } else { super.mergeFrom(other); return this; @@ -532,7 +571,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.ListSavedQueriesRequest other) { - if (other == com.google.cloud.asset.v1.ListSavedQueriesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1.ListSavedQueriesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -574,32 +614,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -612,20 +657,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
          * Required. The parent project/folder/organization whose savedQueries are to be
          * listed. It can only be using project/folder/organization number (such as
          * "folders/12345")", or a project ID (such as "projects/my-project-id").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -634,22 +683,25 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. The parent project/folder/organization whose savedQueries are to be
          * listed. It can only be using project/folder/organization number (such as
          * "folders/12345")", or a project ID (such as "projects/my-project-id").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -657,60 +709,73 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. The parent project/folder/organization whose savedQueries are to be
          * listed. It can only be using project/folder/organization number (such as
          * "folders/12345")", or a project ID (such as "projects/my-project-id").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
          * Required. The parent project/folder/organization whose savedQueries are to be
          * listed. It can only be using project/folder/organization number (such as
          * "folders/12345")", or a project ID (such as "projects/my-project-id").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
          * Required. The parent project/folder/organization whose savedQueries are to be
          * listed. It can only be using project/folder/organization number (such as
          * "folders/12345")", or a project ID (such as "projects/my-project-id").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -718,6 +783,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
          * Optional. The expression to filter resources.
          * The expression is a list of zero or more restrictions combined via logical
    @@ -728,13 +795,13 @@ public Builder setParentBytes(
          * 
    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -743,6 +810,8 @@ public java.lang.String getFilter() { } } /** + * + * *
          * Optional. The expression to filter resources.
          * The expression is a list of zero or more restrictions combined via logical
    @@ -753,15 +822,14 @@ public java.lang.String getFilter() {
          * 
    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -769,6 +837,8 @@ public java.lang.String getFilter() { } } /** + * + * *
          * Optional. The expression to filter resources.
          * The expression is a list of zero or more restrictions combined via logical
    @@ -779,20 +849,22 @@ public java.lang.String getFilter() {
          * 
    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
          * Optional. The expression to filter resources.
          * The expression is a list of zero or more restrictions combined via logical
    @@ -803,15 +875,18 @@ public Builder setFilter(
          * 
    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
          * Optional. The expression to filter resources.
          * The expression is a list of zero or more restrictions combined via logical
    @@ -822,23 +897,25 @@ public Builder clearFilter() {
          * 
    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
          * Optional. The maximum number of saved queries to return per page. The service may
          * return fewer than this value. If unspecified, at most 50 will be returned.
    @@ -846,6 +923,7 @@ public Builder setFilterBytes(
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -853,6 +931,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
          * Optional. The maximum number of saved queries to return per page. The service may
          * return fewer than this value. If unspecified, at most 50 will be returned.
    @@ -860,16 +940,19 @@ public int getPageSize() {
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
          * Optional. The maximum number of saved queries to return per page. The service may
          * return fewer than this value. If unspecified, at most 50 will be returned.
    @@ -877,10 +960,11 @@ public Builder setPageSize(int value) {
          * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -888,6 +972,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
          * Optional. A page token, received from a previous `ListSavedQueries` call.
          * Provide this to retrieve the subsequent page.
    @@ -896,13 +982,13 @@ public Builder clearPageSize() {
          * 
    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -911,6 +997,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
          * Optional. A page token, received from a previous `ListSavedQueries` call.
          * Provide this to retrieve the subsequent page.
    @@ -919,15 +1007,14 @@ public java.lang.String getPageToken() {
          * 
    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -935,6 +1022,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
          * Optional. A page token, received from a previous `ListSavedQueries` call.
          * Provide this to retrieve the subsequent page.
    @@ -943,20 +1032,22 @@ public java.lang.String getPageToken() {
          * 
    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
          * Optional. A page token, received from a previous `ListSavedQueries` call.
          * Provide this to retrieve the subsequent page.
    @@ -965,15 +1056,18 @@ public Builder setPageToken(
          * 
    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
          * Optional. A page token, received from a previous `ListSavedQueries` call.
          * Provide this to retrieve the subsequent page.
    @@ -982,23 +1076,23 @@ public Builder clearPageToken() {
          * 
    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1008,12 +1102,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.ListSavedQueriesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.ListSavedQueriesRequest) private static final com.google.cloud.asset.v1.ListSavedQueriesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.ListSavedQueriesRequest(); } @@ -1022,27 +1116,27 @@ public static com.google.cloud.asset.v1.ListSavedQueriesRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSavedQueriesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSavedQueriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1057,6 +1151,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.ListSavedQueriesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequestOrBuilder.java similarity index 74% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequestOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequestOrBuilder.java index 1d6918158cfc..ab160dfeaf21 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface ListSavedQueriesRequestOrBuilder extends +public interface ListSavedQueriesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.ListSavedQueriesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The parent project/folder/organization whose savedQueries are to be
        * listed. It can only be using project/folder/organization number (such as
        * "folders/12345")", or a project ID (such as "projects/my-project-id").
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
        * Required. The parent project/folder/organization whose savedQueries are to be
        * listed. It can only be using project/folder/organization number (such as
        * "folders/12345")", or a project ID (such as "projects/my-project-id").
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
        * Optional. The expression to filter resources.
        * The expression is a list of zero or more restrictions combined via logical
    @@ -42,10 +69,13 @@ public interface ListSavedQueriesRequestOrBuilder extends
        * 
    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
        * Optional. The expression to filter resources.
        * The expression is a list of zero or more restrictions combined via logical
    @@ -56,12 +86,14 @@ public interface ListSavedQueriesRequestOrBuilder extends
        * 
    * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
        * Optional. The maximum number of saved queries to return per page. The service may
        * return fewer than this value. If unspecified, at most 50 will be returned.
    @@ -69,11 +101,14 @@ public interface ListSavedQueriesRequestOrBuilder extends
        * 
    * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
        * Optional. A page token, received from a previous `ListSavedQueries` call.
        * Provide this to retrieve the subsequent page.
    @@ -82,10 +117,13 @@ public interface ListSavedQueriesRequestOrBuilder extends
        * 
    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
        * Optional. A page token, received from a previous `ListSavedQueries` call.
        * Provide this to retrieve the subsequent page.
    @@ -94,8 +132,8 @@ public interface ListSavedQueriesRequestOrBuilder extends
        * 
    * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponse.java similarity index 71% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponse.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponse.java index ded1578943f2..a91cad7d27ef 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponse.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * Response of listing saved queries.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.ListSavedQueriesResponse} */ -public final class ListSavedQueriesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSavedQueriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.ListSavedQueriesResponse) ListSavedQueriesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSavedQueriesResponse.newBuilder() to construct. private ListSavedQueriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSavedQueriesResponse() { savedQueries_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,32 +44,35 @@ private ListSavedQueriesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSavedQueriesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ListSavedQueriesResponse.class, com.google.cloud.asset.v1.ListSavedQueriesResponse.Builder.class); + com.google.cloud.asset.v1.ListSavedQueriesResponse.class, + com.google.cloud.asset.v1.ListSavedQueriesResponse.Builder.class); } public static final int SAVED_QUERIES_FIELD_NUMBER = 1; private java.util.List savedQueries_; /** + * + * *
        * A list of savedQueries.
        * 
    @@ -63,6 +84,8 @@ public java.util.List getSavedQueriesList( return savedQueries_; } /** + * + * *
        * A list of savedQueries.
        * 
    @@ -70,11 +93,13 @@ public java.util.List getSavedQueriesList( * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSavedQueriesOrBuilderList() { return savedQueries_; } /** + * + * *
        * A list of savedQueries.
        * 
    @@ -86,6 +111,8 @@ public int getSavedQueriesCount() { return savedQueries_.size(); } /** + * + * *
        * A list of savedQueries.
        * 
    @@ -97,6 +124,8 @@ public com.google.cloud.asset.v1.SavedQuery getSavedQueries(int index) { return savedQueries_.get(index); } /** + * + * *
        * A list of savedQueries.
        * 
    @@ -104,20 +133,22 @@ public com.google.cloud.asset.v1.SavedQuery getSavedQueries(int index) { * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ @java.lang.Override - public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueriesOrBuilder( - int index) { + public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueriesOrBuilder(int index) { return savedQueries_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
        * A token, which can be sent as `page_token` to retrieve the next page.
        * If this field is omitted, there are no subsequent pages.
        * 
    * * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -126,30 +157,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
        * A token, which can be sent as `page_token` to retrieve the next page.
        * If this field is omitted, there are no subsequent pages.
        * 
    * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -158,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < savedQueries_.size(); i++) { output.writeMessage(1, savedQueries_.get(i)); } @@ -187,8 +218,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < savedQueries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, savedQueries_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, savedQueries_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -201,17 +231,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.ListSavedQueriesResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1.ListSavedQueriesResponse other = (com.google.cloud.asset.v1.ListSavedQueriesResponse) obj; + com.google.cloud.asset.v1.ListSavedQueriesResponse other = + (com.google.cloud.asset.v1.ListSavedQueriesResponse) obj; - if (!getSavedQueriesList() - .equals(other.getSavedQueriesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getSavedQueriesList().equals(other.getSavedQueriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -235,129 +264,135 @@ public int hashCode() { } public static com.google.cloud.asset.v1.ListSavedQueriesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ListSavedQueriesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.ListSavedQueriesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ListSavedQueriesResponse 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.asset.v1.ListSavedQueriesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ListSavedQueriesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.ListSavedQueriesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.ListSavedQueriesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ListSavedQueriesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.ListSavedQueriesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.ListSavedQueriesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ListSavedQueriesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.ListSavedQueriesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ListSavedQueriesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.ListSavedQueriesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Response of listing saved queries.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.ListSavedQueriesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.ListSavedQueriesResponse) com.google.cloud.asset.v1.ListSavedQueriesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.ListSavedQueriesResponse.class, com.google.cloud.asset.v1.ListSavedQueriesResponse.Builder.class); + com.google.cloud.asset.v1.ListSavedQueriesResponse.class, + com.google.cloud.asset.v1.ListSavedQueriesResponse.Builder.class); } // Construct using com.google.cloud.asset.v1.ListSavedQueriesResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_descriptor; } @java.lang.Override @@ -395,7 +430,8 @@ public com.google.cloud.asset.v1.ListSavedQueriesResponse build() { @java.lang.Override public com.google.cloud.asset.v1.ListSavedQueriesResponse buildPartial() { - com.google.cloud.asset.v1.ListSavedQueriesResponse result = new com.google.cloud.asset.v1.ListSavedQueriesResponse(this); + com.google.cloud.asset.v1.ListSavedQueriesResponse result = + new com.google.cloud.asset.v1.ListSavedQueriesResponse(this); int from_bitField0_ = bitField0_; if (savedQueriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,38 +451,39 @@ public com.google.cloud.asset.v1.ListSavedQueriesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.ListSavedQueriesResponse) { - return mergeFrom((com.google.cloud.asset.v1.ListSavedQueriesResponse)other); + return mergeFrom((com.google.cloud.asset.v1.ListSavedQueriesResponse) other); } else { super.mergeFrom(other); return this; @@ -454,7 +491,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.ListSavedQueriesResponse other) { - if (other == com.google.cloud.asset.v1.ListSavedQueriesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1.ListSavedQueriesResponse.getDefaultInstance()) + return this; if (savedQueriesBuilder_ == null) { if (!other.savedQueries_.isEmpty()) { if (savedQueries_.isEmpty()) { @@ -473,9 +511,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ListSavedQueriesResponse othe savedQueriesBuilder_ = null; savedQueries_ = other.savedQueries_; bitField0_ = (bitField0_ & ~0x00000001); - savedQueriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSavedQueriesFieldBuilder() : null; + savedQueriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSavedQueriesFieldBuilder() + : null; } else { savedQueriesBuilder_.addAllMessages(other.savedQueries_); } @@ -511,30 +550,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.asset.v1.SavedQuery m = - input.readMessage( - com.google.cloud.asset.v1.SavedQuery.parser(), - extensionRegistry); - if (savedQueriesBuilder_ == null) { - ensureSavedQueriesIsMutable(); - savedQueries_.add(m); - } else { - savedQueriesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.asset.v1.SavedQuery m = + input.readMessage( + com.google.cloud.asset.v1.SavedQuery.parser(), extensionRegistry); + if (savedQueriesBuilder_ == null) { + ensureSavedQueriesIsMutable(); + savedQueries_.add(m); + } else { + savedQueriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -544,21 +585,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List savedQueries_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSavedQueriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - savedQueries_ = new java.util.ArrayList(savedQueries_); + savedQueries_ = + new java.util.ArrayList(savedQueries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.SavedQuery, com.google.cloud.asset.v1.SavedQuery.Builder, com.google.cloud.asset.v1.SavedQueryOrBuilder> savedQueriesBuilder_; + com.google.cloud.asset.v1.SavedQuery, + com.google.cloud.asset.v1.SavedQuery.Builder, + com.google.cloud.asset.v1.SavedQueryOrBuilder> + savedQueriesBuilder_; /** + * + * *
          * A list of savedQueries.
          * 
    @@ -573,6 +622,8 @@ public java.util.List getSavedQueriesList( } } /** + * + * *
          * A list of savedQueries.
          * 
    @@ -587,6 +638,8 @@ public int getSavedQueriesCount() { } } /** + * + * *
          * A list of savedQueries.
          * 
    @@ -601,14 +654,15 @@ public com.google.cloud.asset.v1.SavedQuery getSavedQueries(int index) { } } /** + * + * *
          * A list of savedQueries.
          * 
    * * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ - public Builder setSavedQueries( - int index, com.google.cloud.asset.v1.SavedQuery value) { + public Builder setSavedQueries(int index, com.google.cloud.asset.v1.SavedQuery value) { if (savedQueriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -622,6 +676,8 @@ public Builder setSavedQueries( return this; } /** + * + * *
          * A list of savedQueries.
          * 
    @@ -640,6 +696,8 @@ public Builder setSavedQueries( return this; } /** + * + * *
          * A list of savedQueries.
          * 
    @@ -660,14 +718,15 @@ public Builder addSavedQueries(com.google.cloud.asset.v1.SavedQuery value) { return this; } /** + * + * *
          * A list of savedQueries.
          * 
    * * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ - public Builder addSavedQueries( - int index, com.google.cloud.asset.v1.SavedQuery value) { + public Builder addSavedQueries(int index, com.google.cloud.asset.v1.SavedQuery value) { if (savedQueriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -681,14 +740,15 @@ public Builder addSavedQueries( return this; } /** + * + * *
          * A list of savedQueries.
          * 
    * * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ - public Builder addSavedQueries( - com.google.cloud.asset.v1.SavedQuery.Builder builderForValue) { + public Builder addSavedQueries(com.google.cloud.asset.v1.SavedQuery.Builder builderForValue) { if (savedQueriesBuilder_ == null) { ensureSavedQueriesIsMutable(); savedQueries_.add(builderForValue.build()); @@ -699,6 +759,8 @@ public Builder addSavedQueries( return this; } /** + * + * *
          * A list of savedQueries.
          * 
    @@ -717,6 +779,8 @@ public Builder addSavedQueries( return this; } /** + * + * *
          * A list of savedQueries.
          * 
    @@ -727,8 +791,7 @@ public Builder addAllSavedQueries( java.lang.Iterable values) { if (savedQueriesBuilder_ == null) { ensureSavedQueriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, savedQueries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, savedQueries_); onChanged(); } else { savedQueriesBuilder_.addAllMessages(values); @@ -736,6 +799,8 @@ public Builder addAllSavedQueries( return this; } /** + * + * *
          * A list of savedQueries.
          * 
    @@ -753,6 +818,8 @@ public Builder clearSavedQueries() { return this; } /** + * + * *
          * A list of savedQueries.
          * 
    @@ -770,39 +837,44 @@ public Builder removeSavedQueries(int index) { return this; } /** + * + * *
          * A list of savedQueries.
          * 
    * * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ - public com.google.cloud.asset.v1.SavedQuery.Builder getSavedQueriesBuilder( - int index) { + public com.google.cloud.asset.v1.SavedQuery.Builder getSavedQueriesBuilder(int index) { return getSavedQueriesFieldBuilder().getBuilder(index); } /** + * + * *
          * A list of savedQueries.
          * 
    * * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ - public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueriesOrBuilder( - int index) { + public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueriesOrBuilder(int index) { if (savedQueriesBuilder_ == null) { - return savedQueries_.get(index); } else { + return savedQueries_.get(index); + } else { return savedQueriesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
          * A list of savedQueries.
          * 
    * * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ - public java.util.List - getSavedQueriesOrBuilderList() { + public java.util.List + getSavedQueriesOrBuilderList() { if (savedQueriesBuilder_ != null) { return savedQueriesBuilder_.getMessageOrBuilderList(); } else { @@ -810,6 +882,8 @@ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueriesOrBuilder( } } /** + * + * *
          * A list of savedQueries.
          * 
    @@ -817,42 +891,48 @@ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueriesOrBuilder( * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ public com.google.cloud.asset.v1.SavedQuery.Builder addSavedQueriesBuilder() { - return getSavedQueriesFieldBuilder().addBuilder( - com.google.cloud.asset.v1.SavedQuery.getDefaultInstance()); + return getSavedQueriesFieldBuilder() + .addBuilder(com.google.cloud.asset.v1.SavedQuery.getDefaultInstance()); } /** + * + * *
          * A list of savedQueries.
          * 
    * * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ - public com.google.cloud.asset.v1.SavedQuery.Builder addSavedQueriesBuilder( - int index) { - return getSavedQueriesFieldBuilder().addBuilder( - index, com.google.cloud.asset.v1.SavedQuery.getDefaultInstance()); + public com.google.cloud.asset.v1.SavedQuery.Builder addSavedQueriesBuilder(int index) { + return getSavedQueriesFieldBuilder() + .addBuilder(index, com.google.cloud.asset.v1.SavedQuery.getDefaultInstance()); } /** + * + * *
          * A list of savedQueries.
          * 
    * * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ - public java.util.List - getSavedQueriesBuilderList() { + public java.util.List + getSavedQueriesBuilderList() { return getSavedQueriesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.SavedQuery, com.google.cloud.asset.v1.SavedQuery.Builder, com.google.cloud.asset.v1.SavedQueryOrBuilder> + com.google.cloud.asset.v1.SavedQuery, + com.google.cloud.asset.v1.SavedQuery.Builder, + com.google.cloud.asset.v1.SavedQueryOrBuilder> getSavedQueriesFieldBuilder() { if (savedQueriesBuilder_ == null) { - savedQueriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.SavedQuery, com.google.cloud.asset.v1.SavedQuery.Builder, com.google.cloud.asset.v1.SavedQueryOrBuilder>( - savedQueries_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + savedQueriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.SavedQuery, + com.google.cloud.asset.v1.SavedQuery.Builder, + com.google.cloud.asset.v1.SavedQueryOrBuilder>( + savedQueries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); savedQueries_ = null; } return savedQueriesBuilder_; @@ -860,19 +940,21 @@ public com.google.cloud.asset.v1.SavedQuery.Builder addSavedQueriesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
          * A token, which can be sent as `page_token` to retrieve the next page.
          * If this field is omitted, there are no subsequent pages.
          * 
    * * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -881,21 +963,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
          * A token, which can be sent as `page_token` to retrieve the next page.
          * If this field is omitted, there are no subsequent pages.
          * 
    * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -903,64 +986,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
          * A token, which can be sent as `page_token` to retrieve the next page.
          * If this field is omitted, there are no subsequent pages.
          * 
    * * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
          * A token, which can be sent as `page_token` to retrieve the next page.
          * If this field is omitted, there are no subsequent pages.
          * 
    * * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
          * A token, which can be sent as `page_token` to retrieve the next page.
          * If this field is omitted, there are no subsequent pages.
          * 
    * * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -970,12 +1060,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.ListSavedQueriesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.ListSavedQueriesResponse) private static final com.google.cloud.asset.v1.ListSavedQueriesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.ListSavedQueriesResponse(); } @@ -984,27 +1074,27 @@ public static com.google.cloud.asset.v1.ListSavedQueriesResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSavedQueriesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSavedQueriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1019,6 +1109,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.ListSavedQueriesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponseOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponseOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponseOrBuilder.java index 9c5fbc9067d6..4bd03e463e93 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponseOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListSavedQueriesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface ListSavedQueriesResponseOrBuilder extends +public interface ListSavedQueriesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.ListSavedQueriesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * A list of savedQueries.
        * 
    * * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ - java.util.List - getSavedQueriesList(); + java.util.List getSavedQueriesList(); /** + * + * *
        * A list of savedQueries.
        * 
    @@ -25,6 +44,8 @@ public interface ListSavedQueriesResponseOrBuilder extends */ com.google.cloud.asset.v1.SavedQuery getSavedQueries(int index); /** + * + * *
        * A list of savedQueries.
        * 
    @@ -33,43 +54,51 @@ public interface ListSavedQueriesResponseOrBuilder extends */ int getSavedQueriesCount(); /** + * + * *
        * A list of savedQueries.
        * 
    * * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ - java.util.List + java.util.List getSavedQueriesOrBuilderList(); /** + * + * *
        * A list of savedQueries.
        * 
    * * repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; */ - com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueriesOrBuilder( - int index); + com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueriesOrBuilder(int index); /** + * + * *
        * A token, which can be sent as `page_token` to retrieve the next page.
        * If this field is omitted, there are no subsequent pages.
        * 
    * * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
        * A token, which can be sent as `page_token` to retrieve the next page.
        * If this field is omitted, there are no subsequent pages.
        * 
    * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysis.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysis.java similarity index 71% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysis.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysis.java index 2e5294fd6954..d82321b9d802 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysis.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysis.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * A message to group the analysis information.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.MoveAnalysis} */ -public final class MoveAnalysis extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MoveAnalysis extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.MoveAnalysis) MoveAnalysisOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MoveAnalysis.newBuilder() to construct. private MoveAnalysis(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MoveAnalysis() { displayName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MoveAnalysis(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveAnalysis_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_MoveAnalysis_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveAnalysis_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_MoveAnalysis_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.MoveAnalysis.class, com.google.cloud.asset.v1.MoveAnalysis.Builder.class); + com.google.cloud.asset.v1.MoveAnalysis.class, + com.google.cloud.asset.v1.MoveAnalysis.Builder.class); } private int resultCase_ = 0; private java.lang.Object result_; + public enum ResultCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ANALYSIS(2), ERROR(3), RESULT_NOT_SET(0); private final int value; + private ResultCase(int value) { this.value = value; } @@ -72,32 +94,38 @@ public static ResultCase valueOf(int value) { public static ResultCase forNumber(int value) { switch (value) { - case 2: return ANALYSIS; - case 3: return ERROR; - case 0: return RESULT_NOT_SET; - default: return null; + case 2: + return ANALYSIS; + case 3: + return ERROR; + case 0: + return RESULT_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ResultCase - getResultCase() { - return ResultCase.forNumber( - resultCase_); + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); } public static final int DISPLAY_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object displayName_; /** + * + * *
        * The user friendly display name of the analysis. E.g. IAM, Organization
        * Policy etc.
        * 
    * * string display_name = 1; + * * @return The displayName. */ @java.lang.Override @@ -106,30 +134,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
        * The user friendly display name of the analysis. E.g. IAM, Organization
        * Policy etc.
        * 
    * * string display_name = 1; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -139,11 +167,14 @@ public java.lang.String getDisplayName() { public static final int ANALYSIS_FIELD_NUMBER = 2; /** + * + * *
        * Analysis result of moving the target resource.
        * 
    * * .google.cloud.asset.v1.MoveAnalysisResult analysis = 2; + * * @return Whether the analysis field is set. */ @java.lang.Override @@ -151,21 +182,26 @@ public boolean hasAnalysis() { return resultCase_ == 2; } /** + * + * *
        * Analysis result of moving the target resource.
        * 
    * * .google.cloud.asset.v1.MoveAnalysisResult analysis = 2; + * * @return The analysis. */ @java.lang.Override public com.google.cloud.asset.v1.MoveAnalysisResult getAnalysis() { if (resultCase_ == 2) { - return (com.google.cloud.asset.v1.MoveAnalysisResult) result_; + return (com.google.cloud.asset.v1.MoveAnalysisResult) result_; } return com.google.cloud.asset.v1.MoveAnalysisResult.getDefaultInstance(); } /** + * + * *
        * Analysis result of moving the target resource.
        * 
    @@ -175,18 +211,21 @@ public com.google.cloud.asset.v1.MoveAnalysisResult getAnalysis() { @java.lang.Override public com.google.cloud.asset.v1.MoveAnalysisResultOrBuilder getAnalysisOrBuilder() { if (resultCase_ == 2) { - return (com.google.cloud.asset.v1.MoveAnalysisResult) result_; + return (com.google.cloud.asset.v1.MoveAnalysisResult) result_; } return com.google.cloud.asset.v1.MoveAnalysisResult.getDefaultInstance(); } public static final int ERROR_FIELD_NUMBER = 3; /** + * + * *
        * Description of error encountered when performing the analysis.
        * 
    * * .google.rpc.Status error = 3; + * * @return Whether the error field is set. */ @java.lang.Override @@ -194,21 +233,26 @@ public boolean hasError() { return resultCase_ == 3; } /** + * + * *
        * Description of error encountered when performing the analysis.
        * 
    * * .google.rpc.Status error = 3; + * * @return The error. */ @java.lang.Override public com.google.rpc.Status getError() { if (resultCase_ == 3) { - return (com.google.rpc.Status) result_; + return (com.google.rpc.Status) result_; } return com.google.rpc.Status.getDefaultInstance(); } /** + * + * *
        * Description of error encountered when performing the analysis.
        * 
    @@ -218,12 +262,13 @@ public com.google.rpc.Status getError() { @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { if (resultCase_ == 3) { - return (com.google.rpc.Status) result_; + return (com.google.rpc.Status) result_; } return com.google.rpc.Status.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -235,8 +280,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); } @@ -259,12 +303,14 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); } if (resultCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.asset.v1.MoveAnalysisResult) result_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.asset.v1.MoveAnalysisResult) result_); } if (resultCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.rpc.Status) result_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.rpc.Status) result_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -274,24 +320,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.MoveAnalysis)) { return super.equals(obj); } com.google.cloud.asset.v1.MoveAnalysis other = (com.google.cloud.asset.v1.MoveAnalysis) obj; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getResultCase().equals(other.getResultCase())) return false; switch (resultCase_) { case 2: - if (!getAnalysis() - .equals(other.getAnalysis())) return false; + if (!getAnalysis().equals(other.getAnalysis())) return false; break; case 3: - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; break; case 0: default: @@ -326,130 +369,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.MoveAnalysis parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.MoveAnalysis parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.MoveAnalysis parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.MoveAnalysis parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.MoveAnalysis 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.asset.v1.MoveAnalysis parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.MoveAnalysis parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.MoveAnalysis parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.MoveAnalysis parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.MoveAnalysis parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.MoveAnalysis parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.MoveAnalysis parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.MoveAnalysis parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.MoveAnalysis prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * A message to group the analysis information.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.MoveAnalysis} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.MoveAnalysis) com.google.cloud.asset.v1.MoveAnalysisOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveAnalysis_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_MoveAnalysis_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveAnalysis_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_MoveAnalysis_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.MoveAnalysis.class, com.google.cloud.asset.v1.MoveAnalysis.Builder.class); + com.google.cloud.asset.v1.MoveAnalysis.class, + com.google.cloud.asset.v1.MoveAnalysis.Builder.class); } // Construct using com.google.cloud.asset.v1.MoveAnalysis.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -467,9 +516,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveAnalysis_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_MoveAnalysis_descriptor; } @java.lang.Override @@ -488,7 +537,8 @@ public com.google.cloud.asset.v1.MoveAnalysis build() { @java.lang.Override public com.google.cloud.asset.v1.MoveAnalysis buildPartial() { - com.google.cloud.asset.v1.MoveAnalysis result = new com.google.cloud.asset.v1.MoveAnalysis(this); + com.google.cloud.asset.v1.MoveAnalysis result = + new com.google.cloud.asset.v1.MoveAnalysis(this); result.displayName_ = displayName_; if (resultCase_ == 2) { if (analysisBuilder_ == null) { @@ -513,38 +563,39 @@ public com.google.cloud.asset.v1.MoveAnalysis buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.MoveAnalysis) { - return mergeFrom((com.google.cloud.asset.v1.MoveAnalysis)other); + return mergeFrom((com.google.cloud.asset.v1.MoveAnalysis) other); } else { super.mergeFrom(other); return this; @@ -558,17 +609,20 @@ public Builder mergeFrom(com.google.cloud.asset.v1.MoveAnalysis other) { onChanged(); } switch (other.getResultCase()) { - case ANALYSIS: { - mergeAnalysis(other.getAnalysis()); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case RESULT_NOT_SET: { - break; - } + case ANALYSIS: + { + mergeAnalysis(other.getAnalysis()); + break; + } + case ERROR: + { + mergeError(other.getError()); + break; + } + case RESULT_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -596,31 +650,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - displayName_ = input.readStringRequireUtf8(); + case 10: + { + displayName_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - input.readMessage( - getAnalysisFieldBuilder().getBuilder(), - extensionRegistry); - resultCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getErrorFieldBuilder().getBuilder(), - extensionRegistry); - resultCase_ = 3; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 10 + case 18: + { + input.readMessage(getAnalysisFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -630,12 +684,12 @@ public Builder mergeFrom( } // finally return this; } + private int resultCase_ = 0; private java.lang.Object result_; - public ResultCase - getResultCase() { - return ResultCase.forNumber( - resultCase_); + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); } public Builder clearResult() { @@ -645,22 +699,23 @@ public Builder clearResult() { return this; } - private java.lang.Object displayName_ = ""; /** + * + * *
          * The user friendly display name of the analysis. E.g. IAM, Organization
          * Policy etc.
          * 
    * * string display_name = 1; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -669,21 +724,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
          * The user friendly display name of the analysis. E.g. IAM, Organization
          * Policy etc.
          * 
    * * string display_name = 1; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -691,70 +747,83 @@ public java.lang.String getDisplayName() { } } /** + * + * *
          * The user friendly display name of the analysis. E.g. IAM, Organization
          * Policy etc.
          * 
    * * string display_name = 1; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
          * The user friendly display name of the analysis. E.g. IAM, Organization
          * Policy etc.
          * 
    * * string display_name = 1; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
          * The user friendly display name of the analysis. E.g. IAM, Organization
          * Policy etc.
          * 
    * * string display_name = 1; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.MoveAnalysisResult, com.google.cloud.asset.v1.MoveAnalysisResult.Builder, com.google.cloud.asset.v1.MoveAnalysisResultOrBuilder> analysisBuilder_; + com.google.cloud.asset.v1.MoveAnalysisResult, + com.google.cloud.asset.v1.MoveAnalysisResult.Builder, + com.google.cloud.asset.v1.MoveAnalysisResultOrBuilder> + analysisBuilder_; /** + * + * *
          * Analysis result of moving the target resource.
          * 
    * * .google.cloud.asset.v1.MoveAnalysisResult analysis = 2; + * * @return Whether the analysis field is set. */ @java.lang.Override @@ -762,11 +831,14 @@ public boolean hasAnalysis() { return resultCase_ == 2; } /** + * + * *
          * Analysis result of moving the target resource.
          * 
    * * .google.cloud.asset.v1.MoveAnalysisResult analysis = 2; + * * @return The analysis. */ @java.lang.Override @@ -784,6 +856,8 @@ public com.google.cloud.asset.v1.MoveAnalysisResult getAnalysis() { } } /** + * + * *
          * Analysis result of moving the target resource.
          * 
    @@ -804,6 +878,8 @@ public Builder setAnalysis(com.google.cloud.asset.v1.MoveAnalysisResult value) { return this; } /** + * + * *
          * Analysis result of moving the target resource.
          * 
    @@ -822,6 +898,8 @@ public Builder setAnalysis( return this; } /** + * + * *
          * Analysis result of moving the target resource.
          * 
    @@ -830,10 +908,13 @@ public Builder setAnalysis( */ public Builder mergeAnalysis(com.google.cloud.asset.v1.MoveAnalysisResult value) { if (analysisBuilder_ == null) { - if (resultCase_ == 2 && - result_ != com.google.cloud.asset.v1.MoveAnalysisResult.getDefaultInstance()) { - result_ = com.google.cloud.asset.v1.MoveAnalysisResult.newBuilder((com.google.cloud.asset.v1.MoveAnalysisResult) result_) - .mergeFrom(value).buildPartial(); + if (resultCase_ == 2 + && result_ != com.google.cloud.asset.v1.MoveAnalysisResult.getDefaultInstance()) { + result_ = + com.google.cloud.asset.v1.MoveAnalysisResult.newBuilder( + (com.google.cloud.asset.v1.MoveAnalysisResult) result_) + .mergeFrom(value) + .buildPartial(); } else { result_ = value; } @@ -849,6 +930,8 @@ public Builder mergeAnalysis(com.google.cloud.asset.v1.MoveAnalysisResult value) return this; } /** + * + * *
          * Analysis result of moving the target resource.
          * 
    @@ -872,6 +955,8 @@ public Builder clearAnalysis() { return this; } /** + * + * *
          * Analysis result of moving the target resource.
          * 
    @@ -882,6 +967,8 @@ public com.google.cloud.asset.v1.MoveAnalysisResult.Builder getAnalysisBuilder() return getAnalysisFieldBuilder().getBuilder(); } /** + * + * *
          * Analysis result of moving the target resource.
          * 
    @@ -900,6 +987,8 @@ public com.google.cloud.asset.v1.MoveAnalysisResultOrBuilder getAnalysisOrBuilde } } /** + * + * *
          * Analysis result of moving the target resource.
          * 
    @@ -907,32 +996,42 @@ public com.google.cloud.asset.v1.MoveAnalysisResultOrBuilder getAnalysisOrBuilde * .google.cloud.asset.v1.MoveAnalysisResult analysis = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.MoveAnalysisResult, com.google.cloud.asset.v1.MoveAnalysisResult.Builder, com.google.cloud.asset.v1.MoveAnalysisResultOrBuilder> + com.google.cloud.asset.v1.MoveAnalysisResult, + com.google.cloud.asset.v1.MoveAnalysisResult.Builder, + com.google.cloud.asset.v1.MoveAnalysisResultOrBuilder> getAnalysisFieldBuilder() { if (analysisBuilder_ == null) { if (!(resultCase_ == 2)) { result_ = com.google.cloud.asset.v1.MoveAnalysisResult.getDefaultInstance(); } - analysisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.MoveAnalysisResult, com.google.cloud.asset.v1.MoveAnalysisResult.Builder, com.google.cloud.asset.v1.MoveAnalysisResultOrBuilder>( + analysisBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.MoveAnalysisResult, + com.google.cloud.asset.v1.MoveAnalysisResult.Builder, + com.google.cloud.asset.v1.MoveAnalysisResultOrBuilder>( (com.google.cloud.asset.v1.MoveAnalysisResult) result_, getParentForChildren(), isClean()); result_ = null; } resultCase_ = 2; - onChanged();; + onChanged(); + ; return analysisBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; /** + * + * *
          * Description of error encountered when performing the analysis.
          * 
    * * .google.rpc.Status error = 3; + * * @return Whether the error field is set. */ @java.lang.Override @@ -940,11 +1039,14 @@ public boolean hasError() { return resultCase_ == 3; } /** + * + * *
          * Description of error encountered when performing the analysis.
          * 
    * * .google.rpc.Status error = 3; + * * @return The error. */ @java.lang.Override @@ -962,6 +1064,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
          * Description of error encountered when performing the analysis.
          * 
    @@ -982,14 +1086,15 @@ public Builder setError(com.google.rpc.Status value) { return this; } /** + * + * *
          * Description of error encountered when performing the analysis.
          * 
    * * .google.rpc.Status error = 3; */ - public Builder setError( - com.google.rpc.Status.Builder builderForValue) { + public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { result_ = builderForValue.build(); onChanged(); @@ -1000,6 +1105,8 @@ public Builder setError( return this; } /** + * + * *
          * Description of error encountered when performing the analysis.
          * 
    @@ -1008,10 +1115,11 @@ public Builder setError( */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (resultCase_ == 3 && - result_ != com.google.rpc.Status.getDefaultInstance()) { - result_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) result_) - .mergeFrom(value).buildPartial(); + if (resultCase_ == 3 && result_ != com.google.rpc.Status.getDefaultInstance()) { + result_ = + com.google.rpc.Status.newBuilder((com.google.rpc.Status) result_) + .mergeFrom(value) + .buildPartial(); } else { result_ = value; } @@ -1027,6 +1135,8 @@ public Builder mergeError(com.google.rpc.Status value) { return this; } /** + * + * *
          * Description of error encountered when performing the analysis.
          * 
    @@ -1050,6 +1160,8 @@ public Builder clearError() { return this; } /** + * + * *
          * Description of error encountered when performing the analysis.
          * 
    @@ -1060,6 +1172,8 @@ public com.google.rpc.Status.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** + * + * *
          * Description of error encountered when performing the analysis.
          * 
    @@ -1078,6 +1192,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { } } /** + * + * *
          * Description of error encountered when performing the analysis.
          * 
    @@ -1085,26 +1201,28 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * .google.rpc.Status error = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { if (!(resultCase_ == 3)) { result_ = com.google.rpc.Status.getDefaultInstance(); } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - (com.google.rpc.Status) result_, - getParentForChildren(), - isClean()); + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + (com.google.rpc.Status) result_, getParentForChildren(), isClean()); result_ = null; } resultCase_ = 3; - onChanged();; + onChanged(); + ; return errorBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1114,12 +1232,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.MoveAnalysis) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.MoveAnalysis) private static final com.google.cloud.asset.v1.MoveAnalysis DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.MoveAnalysis(); } @@ -1128,27 +1246,27 @@ public static com.google.cloud.asset.v1.MoveAnalysis getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MoveAnalysis parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MoveAnalysis parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1163,6 +1281,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.MoveAnalysis getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisOrBuilder.java similarity index 73% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisOrBuilder.java index 463a887902a6..82ca7d41b016 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisOrBuilder.java @@ -1,53 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface MoveAnalysisOrBuilder extends +public interface MoveAnalysisOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.MoveAnalysis) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The user friendly display name of the analysis. E.g. IAM, Organization
        * Policy etc.
        * 
    * * string display_name = 1; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
        * The user friendly display name of the analysis. E.g. IAM, Organization
        * Policy etc.
        * 
    * * string display_name = 1; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
        * Analysis result of moving the target resource.
        * 
    * * .google.cloud.asset.v1.MoveAnalysisResult analysis = 2; + * * @return Whether the analysis field is set. */ boolean hasAnalysis(); /** + * + * *
        * Analysis result of moving the target resource.
        * 
    * * .google.cloud.asset.v1.MoveAnalysisResult analysis = 2; + * * @return The analysis. */ com.google.cloud.asset.v1.MoveAnalysisResult getAnalysis(); /** + * + * *
        * Analysis result of moving the target resource.
        * 
    @@ -57,24 +86,32 @@ public interface MoveAnalysisOrBuilder extends com.google.cloud.asset.v1.MoveAnalysisResultOrBuilder getAnalysisOrBuilder(); /** + * + * *
        * Description of error encountered when performing the analysis.
        * 
    * * .google.rpc.Status error = 3; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
        * Description of error encountered when performing the analysis.
        * 
    * * .google.rpc.Status error = 3; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
        * Description of error encountered when performing the analysis.
        * 
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResult.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResult.java similarity index 77% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResult.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResult.java index 1d79eebbe9c4..953394bbbbcb 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResult.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResult.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * An analysis result including blockers and warnings.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.MoveAnalysisResult} */ -public final class MoveAnalysisResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MoveAnalysisResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.MoveAnalysisResult) MoveAnalysisResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MoveAnalysisResult.newBuilder() to construct. private MoveAnalysisResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MoveAnalysisResult() { blockers_ = java.util.Collections.emptyList(); warnings_ = java.util.Collections.emptyList(); @@ -26,32 +44,35 @@ private MoveAnalysisResult() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MoveAnalysisResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveAnalysisResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_MoveAnalysisResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveAnalysisResult_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_MoveAnalysisResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.MoveAnalysisResult.class, com.google.cloud.asset.v1.MoveAnalysisResult.Builder.class); + com.google.cloud.asset.v1.MoveAnalysisResult.class, + com.google.cloud.asset.v1.MoveAnalysisResult.Builder.class); } public static final int BLOCKERS_FIELD_NUMBER = 1; private java.util.List blockers_; /** + * + * *
        * Blocking information that would prevent the target resource from moving
        * to the specified destination at runtime.
    @@ -64,6 +85,8 @@ public java.util.List getBlockersList() {
         return blockers_;
       }
       /**
    +   *
    +   *
        * 
        * Blocking information that would prevent the target resource from moving
        * to the specified destination at runtime.
    @@ -72,11 +95,13 @@ public java.util.List getBlockersList() {
        * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
        */
       @java.lang.Override
    -  public java.util.List 
    +  public java.util.List
           getBlockersOrBuilderList() {
         return blockers_;
       }
       /**
    +   *
    +   *
        * 
        * Blocking information that would prevent the target resource from moving
        * to the specified destination at runtime.
    @@ -89,6 +114,8 @@ public int getBlockersCount() {
         return blockers_.size();
       }
       /**
    +   *
    +   *
        * 
        * Blocking information that would prevent the target resource from moving
        * to the specified destination at runtime.
    @@ -101,6 +128,8 @@ public com.google.cloud.asset.v1.MoveImpact getBlockers(int index) {
         return blockers_.get(index);
       }
       /**
    +   *
    +   *
        * 
        * Blocking information that would prevent the target resource from moving
        * to the specified destination at runtime.
    @@ -109,14 +138,15 @@ public com.google.cloud.asset.v1.MoveImpact getBlockers(int index) {
        * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
        */
       @java.lang.Override
    -  public com.google.cloud.asset.v1.MoveImpactOrBuilder getBlockersOrBuilder(
    -      int index) {
    +  public com.google.cloud.asset.v1.MoveImpactOrBuilder getBlockersOrBuilder(int index) {
         return blockers_.get(index);
       }
     
       public static final int WARNINGS_FIELD_NUMBER = 2;
       private java.util.List warnings_;
       /**
    +   *
    +   *
        * 
        * Warning information indicating that moving the target resource to the
        * specified destination might be unsafe. This can include important policy
    @@ -130,6 +160,8 @@ public java.util.List getWarningsList() {
         return warnings_;
       }
       /**
    +   *
    +   *
        * 
        * Warning information indicating that moving the target resource to the
        * specified destination might be unsafe. This can include important policy
    @@ -139,11 +171,13 @@ public java.util.List getWarningsList() {
        * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
        */
       @java.lang.Override
    -  public java.util.List 
    +  public java.util.List
           getWarningsOrBuilderList() {
         return warnings_;
       }
       /**
    +   *
    +   *
        * 
        * Warning information indicating that moving the target resource to the
        * specified destination might be unsafe. This can include important policy
    @@ -157,6 +191,8 @@ public int getWarningsCount() {
         return warnings_.size();
       }
       /**
    +   *
    +   *
        * 
        * Warning information indicating that moving the target resource to the
        * specified destination might be unsafe. This can include important policy
    @@ -170,6 +206,8 @@ public com.google.cloud.asset.v1.MoveImpact getWarnings(int index) {
         return warnings_.get(index);
       }
       /**
    +   *
    +   *
        * 
        * Warning information indicating that moving the target resource to the
        * specified destination might be unsafe. This can include important policy
    @@ -179,12 +217,12 @@ public com.google.cloud.asset.v1.MoveImpact getWarnings(int index) {
        * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
        */
       @java.lang.Override
    -  public com.google.cloud.asset.v1.MoveImpactOrBuilder getWarningsOrBuilder(
    -      int index) {
    +  public com.google.cloud.asset.v1.MoveImpactOrBuilder getWarningsOrBuilder(int index) {
         return warnings_.get(index);
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -196,8 +234,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         for (int i = 0; i < blockers_.size(); i++) {
           output.writeMessage(1, blockers_.get(i));
         }
    @@ -214,12 +251,10 @@ public int getSerializedSize() {
     
         size = 0;
         for (int i = 0; i < blockers_.size(); i++) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(1, blockers_.get(i));
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, blockers_.get(i));
         }
         for (int i = 0; i < warnings_.size(); i++) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(2, warnings_.get(i));
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, warnings_.get(i));
         }
         size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
    @@ -229,17 +264,16 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1.MoveAnalysisResult)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1.MoveAnalysisResult other = (com.google.cloud.asset.v1.MoveAnalysisResult) obj;
    +    com.google.cloud.asset.v1.MoveAnalysisResult other =
    +        (com.google.cloud.asset.v1.MoveAnalysisResult) obj;
     
    -    if (!getBlockersList()
    -        .equals(other.getBlockersList())) return false;
    -    if (!getWarningsList()
    -        .equals(other.getWarningsList())) return false;
    +    if (!getBlockersList().equals(other.getBlockersList())) return false;
    +    if (!getWarningsList().equals(other.getWarningsList())) return false;
         if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
    @@ -264,130 +298,136 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1.MoveAnalysisResult parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1.MoveAnalysisResult parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.MoveAnalysisResult parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.MoveAnalysisResult parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.MoveAnalysisResult 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.asset.v1.MoveAnalysisResult parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.MoveAnalysisResult parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.MoveAnalysisResult parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.MoveAnalysisResult parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.cloud.asset.v1.MoveAnalysisResult parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.cloud.asset.v1.MoveAnalysisResult parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.MoveAnalysisResult parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.MoveAnalysisResult parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.MoveAnalysisResult parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.cloud.asset.v1.MoveAnalysisResult prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * An analysis result including blockers and warnings.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.MoveAnalysisResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.MoveAnalysisResult) com.google.cloud.asset.v1.MoveAnalysisResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveAnalysisResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_MoveAnalysisResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveAnalysisResult_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_MoveAnalysisResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.MoveAnalysisResult.class, com.google.cloud.asset.v1.MoveAnalysisResult.Builder.class); + com.google.cloud.asset.v1.MoveAnalysisResult.class, + com.google.cloud.asset.v1.MoveAnalysisResult.Builder.class); } // Construct using com.google.cloud.asset.v1.MoveAnalysisResult.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +449,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveAnalysisResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_MoveAnalysisResult_descriptor; } @java.lang.Override @@ -430,7 +470,8 @@ public com.google.cloud.asset.v1.MoveAnalysisResult build() { @java.lang.Override public com.google.cloud.asset.v1.MoveAnalysisResult buildPartial() { - com.google.cloud.asset.v1.MoveAnalysisResult result = new com.google.cloud.asset.v1.MoveAnalysisResult(this); + com.google.cloud.asset.v1.MoveAnalysisResult result = + new com.google.cloud.asset.v1.MoveAnalysisResult(this); int from_bitField0_ = bitField0_; if (blockersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -458,38 +499,39 @@ public com.google.cloud.asset.v1.MoveAnalysisResult buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.MoveAnalysisResult) { - return mergeFrom((com.google.cloud.asset.v1.MoveAnalysisResult)other); + return mergeFrom((com.google.cloud.asset.v1.MoveAnalysisResult) other); } else { super.mergeFrom(other); return this; @@ -516,9 +558,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.MoveAnalysisResult other) { blockersBuilder_ = null; blockers_ = other.blockers_; bitField0_ = (bitField0_ & ~0x00000001); - blockersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBlockersFieldBuilder() : null; + blockersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBlockersFieldBuilder() + : null; } else { blockersBuilder_.addAllMessages(other.blockers_); } @@ -542,9 +585,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.MoveAnalysisResult other) { warningsBuilder_ = null; warnings_ = other.warnings_; bitField0_ = (bitField0_ & ~0x00000002); - warningsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWarningsFieldBuilder() : null; + warningsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWarningsFieldBuilder() + : null; } else { warningsBuilder_.addAllMessages(other.warnings_); } @@ -576,38 +620,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.asset.v1.MoveImpact m = - input.readMessage( - com.google.cloud.asset.v1.MoveImpact.parser(), - extensionRegistry); - if (blockersBuilder_ == null) { - ensureBlockersIsMutable(); - blockers_.add(m); - } else { - blockersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - com.google.cloud.asset.v1.MoveImpact m = - input.readMessage( - com.google.cloud.asset.v1.MoveImpact.parser(), - extensionRegistry); - if (warningsBuilder_ == null) { - ensureWarningsIsMutable(); - warnings_.add(m); - } else { - warningsBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.asset.v1.MoveImpact m = + input.readMessage( + com.google.cloud.asset.v1.MoveImpact.parser(), extensionRegistry); + if (blockersBuilder_ == null) { + ensureBlockersIsMutable(); + blockers_.add(m); + } else { + blockersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.asset.v1.MoveImpact m = + input.readMessage( + com.google.cloud.asset.v1.MoveImpact.parser(), extensionRegistry); + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.add(m); + } else { + warningsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -617,21 +662,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List blockers_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureBlockersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { blockers_ = new java.util.ArrayList(blockers_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.MoveImpact, com.google.cloud.asset.v1.MoveImpact.Builder, com.google.cloud.asset.v1.MoveImpactOrBuilder> blockersBuilder_; + com.google.cloud.asset.v1.MoveImpact, + com.google.cloud.asset.v1.MoveImpact.Builder, + com.google.cloud.asset.v1.MoveImpactOrBuilder> + blockersBuilder_; /** + * + * *
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -647,6 +699,8 @@ public java.util.List getBlockersList() {
           }
         }
         /**
    +     *
    +     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -662,6 +716,8 @@ public int getBlockersCount() {
           }
         }
         /**
    +     *
    +     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -677,6 +733,8 @@ public com.google.cloud.asset.v1.MoveImpact getBlockers(int index) {
           }
         }
         /**
    +     *
    +     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -684,8 +742,7 @@ public com.google.cloud.asset.v1.MoveImpact getBlockers(int index) {
          *
          * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
          */
    -    public Builder setBlockers(
    -        int index, com.google.cloud.asset.v1.MoveImpact value) {
    +    public Builder setBlockers(int index, com.google.cloud.asset.v1.MoveImpact value) {
           if (blockersBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -699,6 +756,8 @@ public Builder setBlockers(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -718,6 +777,8 @@ public Builder setBlockers(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -739,6 +800,8 @@ public Builder addBlockers(com.google.cloud.asset.v1.MoveImpact value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -746,8 +809,7 @@ public Builder addBlockers(com.google.cloud.asset.v1.MoveImpact value) {
          *
          * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
          */
    -    public Builder addBlockers(
    -        int index, com.google.cloud.asset.v1.MoveImpact value) {
    +    public Builder addBlockers(int index, com.google.cloud.asset.v1.MoveImpact value) {
           if (blockersBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -761,6 +823,8 @@ public Builder addBlockers(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -768,8 +832,7 @@ public Builder addBlockers(
          *
          * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
          */
    -    public Builder addBlockers(
    -        com.google.cloud.asset.v1.MoveImpact.Builder builderForValue) {
    +    public Builder addBlockers(com.google.cloud.asset.v1.MoveImpact.Builder builderForValue) {
           if (blockersBuilder_ == null) {
             ensureBlockersIsMutable();
             blockers_.add(builderForValue.build());
    @@ -780,6 +843,8 @@ public Builder addBlockers(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -799,6 +864,8 @@ public Builder addBlockers(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -810,8 +877,7 @@ public Builder addAllBlockers(
             java.lang.Iterable values) {
           if (blockersBuilder_ == null) {
             ensureBlockersIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    -            values, blockers_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blockers_);
             onChanged();
           } else {
             blockersBuilder_.addAllMessages(values);
    @@ -819,6 +885,8 @@ public Builder addAllBlockers(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -837,6 +905,8 @@ public Builder clearBlockers() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -855,6 +925,8 @@ public Builder removeBlockers(int index) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -862,11 +934,12 @@ public Builder removeBlockers(int index) {
          *
          * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
          */
    -    public com.google.cloud.asset.v1.MoveImpact.Builder getBlockersBuilder(
    -        int index) {
    +    public com.google.cloud.asset.v1.MoveImpact.Builder getBlockersBuilder(int index) {
           return getBlockersFieldBuilder().getBuilder(index);
         }
         /**
    +     *
    +     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -874,14 +947,16 @@ public com.google.cloud.asset.v1.MoveImpact.Builder getBlockersBuilder(
          *
          * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
          */
    -    public com.google.cloud.asset.v1.MoveImpactOrBuilder getBlockersOrBuilder(
    -        int index) {
    +    public com.google.cloud.asset.v1.MoveImpactOrBuilder getBlockersOrBuilder(int index) {
           if (blockersBuilder_ == null) {
    -        return blockers_.get(index);  } else {
    +        return blockers_.get(index);
    +      } else {
             return blockersBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    +     *
    +     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -889,8 +964,8 @@ public com.google.cloud.asset.v1.MoveImpactOrBuilder getBlockersOrBuilder(
          *
          * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
          */
    -    public java.util.List 
    -         getBlockersOrBuilderList() {
    +    public java.util.List
    +        getBlockersOrBuilderList() {
           if (blockersBuilder_ != null) {
             return blockersBuilder_.getMessageOrBuilderList();
           } else {
    @@ -898,6 +973,8 @@ public com.google.cloud.asset.v1.MoveImpactOrBuilder getBlockersOrBuilder(
           }
         }
         /**
    +     *
    +     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -906,10 +983,12 @@ public com.google.cloud.asset.v1.MoveImpactOrBuilder getBlockersOrBuilder(
          * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
          */
         public com.google.cloud.asset.v1.MoveImpact.Builder addBlockersBuilder() {
    -      return getBlockersFieldBuilder().addBuilder(
    -          com.google.cloud.asset.v1.MoveImpact.getDefaultInstance());
    +      return getBlockersFieldBuilder()
    +          .addBuilder(com.google.cloud.asset.v1.MoveImpact.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -917,12 +996,13 @@ public com.google.cloud.asset.v1.MoveImpact.Builder addBlockersBuilder() {
          *
          * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
          */
    -    public com.google.cloud.asset.v1.MoveImpact.Builder addBlockersBuilder(
    -        int index) {
    -      return getBlockersFieldBuilder().addBuilder(
    -          index, com.google.cloud.asset.v1.MoveImpact.getDefaultInstance());
    +    public com.google.cloud.asset.v1.MoveImpact.Builder addBlockersBuilder(int index) {
    +      return getBlockersFieldBuilder()
    +          .addBuilder(index, com.google.cloud.asset.v1.MoveImpact.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * Blocking information that would prevent the target resource from moving
          * to the specified destination at runtime.
    @@ -930,38 +1010,46 @@ public com.google.cloud.asset.v1.MoveImpact.Builder addBlockersBuilder(
          *
          * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
          */
    -    public java.util.List 
    -         getBlockersBuilderList() {
    +    public java.util.List getBlockersBuilderList() {
           return getBlockersFieldBuilder().getBuilderList();
         }
    +
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -        com.google.cloud.asset.v1.MoveImpact, com.google.cloud.asset.v1.MoveImpact.Builder, com.google.cloud.asset.v1.MoveImpactOrBuilder> 
    +            com.google.cloud.asset.v1.MoveImpact,
    +            com.google.cloud.asset.v1.MoveImpact.Builder,
    +            com.google.cloud.asset.v1.MoveImpactOrBuilder>
             getBlockersFieldBuilder() {
           if (blockersBuilder_ == null) {
    -        blockersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.asset.v1.MoveImpact, com.google.cloud.asset.v1.MoveImpact.Builder, com.google.cloud.asset.v1.MoveImpactOrBuilder>(
    -                blockers_,
    -                ((bitField0_ & 0x00000001) != 0),
    -                getParentForChildren(),
    -                isClean());
    +        blockersBuilder_ =
    +            new com.google.protobuf.RepeatedFieldBuilderV3<
    +                com.google.cloud.asset.v1.MoveImpact,
    +                com.google.cloud.asset.v1.MoveImpact.Builder,
    +                com.google.cloud.asset.v1.MoveImpactOrBuilder>(
    +                blockers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
             blockers_ = null;
           }
           return blockersBuilder_;
         }
     
         private java.util.List warnings_ =
    -      java.util.Collections.emptyList();
    +        java.util.Collections.emptyList();
    +
         private void ensureWarningsIsMutable() {
           if (!((bitField0_ & 0x00000002) != 0)) {
             warnings_ = new java.util.ArrayList(warnings_);
             bitField0_ |= 0x00000002;
    -       }
    +      }
         }
     
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -        com.google.cloud.asset.v1.MoveImpact, com.google.cloud.asset.v1.MoveImpact.Builder, com.google.cloud.asset.v1.MoveImpactOrBuilder> warningsBuilder_;
    +            com.google.cloud.asset.v1.MoveImpact,
    +            com.google.cloud.asset.v1.MoveImpact.Builder,
    +            com.google.cloud.asset.v1.MoveImpactOrBuilder>
    +        warningsBuilder_;
     
         /**
    +     *
    +     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -978,6 +1066,8 @@ public java.util.List getWarningsList() {
           }
         }
         /**
    +     *
    +     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -994,6 +1084,8 @@ public int getWarningsCount() {
           }
         }
         /**
    +     *
    +     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1010,6 +1102,8 @@ public com.google.cloud.asset.v1.MoveImpact getWarnings(int index) {
           }
         }
         /**
    +     *
    +     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1018,8 +1112,7 @@ public com.google.cloud.asset.v1.MoveImpact getWarnings(int index) {
          *
          * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
          */
    -    public Builder setWarnings(
    -        int index, com.google.cloud.asset.v1.MoveImpact value) {
    +    public Builder setWarnings(int index, com.google.cloud.asset.v1.MoveImpact value) {
           if (warningsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -1033,6 +1126,8 @@ public Builder setWarnings(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1053,6 +1148,8 @@ public Builder setWarnings(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1075,6 +1172,8 @@ public Builder addWarnings(com.google.cloud.asset.v1.MoveImpact value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1083,8 +1182,7 @@ public Builder addWarnings(com.google.cloud.asset.v1.MoveImpact value) {
          *
          * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
          */
    -    public Builder addWarnings(
    -        int index, com.google.cloud.asset.v1.MoveImpact value) {
    +    public Builder addWarnings(int index, com.google.cloud.asset.v1.MoveImpact value) {
           if (warningsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -1098,6 +1196,8 @@ public Builder addWarnings(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1106,8 +1206,7 @@ public Builder addWarnings(
          *
          * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
          */
    -    public Builder addWarnings(
    -        com.google.cloud.asset.v1.MoveImpact.Builder builderForValue) {
    +    public Builder addWarnings(com.google.cloud.asset.v1.MoveImpact.Builder builderForValue) {
           if (warningsBuilder_ == null) {
             ensureWarningsIsMutable();
             warnings_.add(builderForValue.build());
    @@ -1118,6 +1217,8 @@ public Builder addWarnings(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1138,6 +1239,8 @@ public Builder addWarnings(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1150,8 +1253,7 @@ public Builder addAllWarnings(
             java.lang.Iterable values) {
           if (warningsBuilder_ == null) {
             ensureWarningsIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    -            values, warnings_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_);
             onChanged();
           } else {
             warningsBuilder_.addAllMessages(values);
    @@ -1159,6 +1261,8 @@ public Builder addAllWarnings(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1178,6 +1282,8 @@ public Builder clearWarnings() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1197,6 +1303,8 @@ public Builder removeWarnings(int index) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1205,11 +1313,12 @@ public Builder removeWarnings(int index) {
          *
          * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
          */
    -    public com.google.cloud.asset.v1.MoveImpact.Builder getWarningsBuilder(
    -        int index) {
    +    public com.google.cloud.asset.v1.MoveImpact.Builder getWarningsBuilder(int index) {
           return getWarningsFieldBuilder().getBuilder(index);
         }
         /**
    +     *
    +     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1218,14 +1327,16 @@ public com.google.cloud.asset.v1.MoveImpact.Builder getWarningsBuilder(
          *
          * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
          */
    -    public com.google.cloud.asset.v1.MoveImpactOrBuilder getWarningsOrBuilder(
    -        int index) {
    +    public com.google.cloud.asset.v1.MoveImpactOrBuilder getWarningsOrBuilder(int index) {
           if (warningsBuilder_ == null) {
    -        return warnings_.get(index);  } else {
    +        return warnings_.get(index);
    +      } else {
             return warningsBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    +     *
    +     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1234,8 +1345,8 @@ public com.google.cloud.asset.v1.MoveImpactOrBuilder getWarningsOrBuilder(
          *
          * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
          */
    -    public java.util.List 
    -         getWarningsOrBuilderList() {
    +    public java.util.List
    +        getWarningsOrBuilderList() {
           if (warningsBuilder_ != null) {
             return warningsBuilder_.getMessageOrBuilderList();
           } else {
    @@ -1243,6 +1354,8 @@ public com.google.cloud.asset.v1.MoveImpactOrBuilder getWarningsOrBuilder(
           }
         }
         /**
    +     *
    +     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1252,10 +1365,12 @@ public com.google.cloud.asset.v1.MoveImpactOrBuilder getWarningsOrBuilder(
          * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
          */
         public com.google.cloud.asset.v1.MoveImpact.Builder addWarningsBuilder() {
    -      return getWarningsFieldBuilder().addBuilder(
    -          com.google.cloud.asset.v1.MoveImpact.getDefaultInstance());
    +      return getWarningsFieldBuilder()
    +          .addBuilder(com.google.cloud.asset.v1.MoveImpact.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1264,12 +1379,13 @@ public com.google.cloud.asset.v1.MoveImpact.Builder addWarningsBuilder() {
          *
          * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
          */
    -    public com.google.cloud.asset.v1.MoveImpact.Builder addWarningsBuilder(
    -        int index) {
    -      return getWarningsFieldBuilder().addBuilder(
    -          index, com.google.cloud.asset.v1.MoveImpact.getDefaultInstance());
    +    public com.google.cloud.asset.v1.MoveImpact.Builder addWarningsBuilder(int index) {
    +      return getWarningsFieldBuilder()
    +          .addBuilder(index, com.google.cloud.asset.v1.MoveImpact.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * Warning information indicating that moving the target resource to the
          * specified destination might be unsafe. This can include important policy
    @@ -1278,27 +1394,29 @@ public com.google.cloud.asset.v1.MoveImpact.Builder addWarningsBuilder(
          *
          * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
          */
    -    public java.util.List 
    -         getWarningsBuilderList() {
    +    public java.util.List getWarningsBuilderList() {
           return getWarningsFieldBuilder().getBuilderList();
         }
    +
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -        com.google.cloud.asset.v1.MoveImpact, com.google.cloud.asset.v1.MoveImpact.Builder, com.google.cloud.asset.v1.MoveImpactOrBuilder> 
    +            com.google.cloud.asset.v1.MoveImpact,
    +            com.google.cloud.asset.v1.MoveImpact.Builder,
    +            com.google.cloud.asset.v1.MoveImpactOrBuilder>
             getWarningsFieldBuilder() {
           if (warningsBuilder_ == null) {
    -        warningsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.asset.v1.MoveImpact, com.google.cloud.asset.v1.MoveImpact.Builder, com.google.cloud.asset.v1.MoveImpactOrBuilder>(
    -                warnings_,
    -                ((bitField0_ & 0x00000002) != 0),
    -                getParentForChildren(),
    -                isClean());
    +        warningsBuilder_ =
    +            new com.google.protobuf.RepeatedFieldBuilderV3<
    +                com.google.cloud.asset.v1.MoveImpact,
    +                com.google.cloud.asset.v1.MoveImpact.Builder,
    +                com.google.cloud.asset.v1.MoveImpactOrBuilder>(
    +                warnings_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
             warnings_ = null;
           }
           return warningsBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -1308,12 +1426,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.MoveAnalysisResult)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.MoveAnalysisResult)
       private static final com.google.cloud.asset.v1.MoveAnalysisResult DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1.MoveAnalysisResult();
       }
    @@ -1322,27 +1440,27 @@ public static com.google.cloud.asset.v1.MoveAnalysisResult getDefaultInstance()
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public MoveAnalysisResult parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      Builder builder = newBuilder();
    -      try {
    -        builder.mergeFrom(input, extensionRegistry);
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(builder.buildPartial());
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    -            .setUnfinishedMessage(builder.buildPartial());
    -      }
    -      return builder.buildPartial();
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public MoveAnalysisResult parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1357,6 +1475,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1.MoveAnalysisResult getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResultOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResultOrBuilder.java
    similarity index 79%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResultOrBuilder.java
    rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResultOrBuilder.java
    index 2d63ef150fcd..d8b667ad2f22 100644
    --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResultOrBuilder.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResultOrBuilder.java
    @@ -1,13 +1,31 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
    -public interface MoveAnalysisResultOrBuilder extends
    +public interface MoveAnalysisResultOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.MoveAnalysisResult)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * Blocking information that would prevent the target resource from moving
        * to the specified destination at runtime.
    @@ -15,9 +33,10 @@ public interface MoveAnalysisResultOrBuilder extends
        *
        * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
        */
    -  java.util.List 
    -      getBlockersList();
    +  java.util.List getBlockersList();
       /**
    +   *
    +   *
        * 
        * Blocking information that would prevent the target resource from moving
        * to the specified destination at runtime.
    @@ -27,6 +46,8 @@ public interface MoveAnalysisResultOrBuilder extends
        */
       com.google.cloud.asset.v1.MoveImpact getBlockers(int index);
       /**
    +   *
    +   *
        * 
        * Blocking information that would prevent the target resource from moving
        * to the specified destination at runtime.
    @@ -36,6 +57,8 @@ public interface MoveAnalysisResultOrBuilder extends
        */
       int getBlockersCount();
       /**
    +   *
    +   *
        * 
        * Blocking information that would prevent the target resource from moving
        * to the specified destination at runtime.
    @@ -43,9 +66,11 @@ public interface MoveAnalysisResultOrBuilder extends
        *
        * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
        */
    -  java.util.List 
    +  java.util.List
           getBlockersOrBuilderList();
       /**
    +   *
    +   *
        * 
        * Blocking information that would prevent the target resource from moving
        * to the specified destination at runtime.
    @@ -53,10 +78,11 @@ public interface MoveAnalysisResultOrBuilder extends
        *
        * repeated .google.cloud.asset.v1.MoveImpact blockers = 1;
        */
    -  com.google.cloud.asset.v1.MoveImpactOrBuilder getBlockersOrBuilder(
    -      int index);
    +  com.google.cloud.asset.v1.MoveImpactOrBuilder getBlockersOrBuilder(int index);
     
       /**
    +   *
    +   *
        * 
        * Warning information indicating that moving the target resource to the
        * specified destination might be unsafe. This can include important policy
    @@ -65,9 +91,10 @@ com.google.cloud.asset.v1.MoveImpactOrBuilder getBlockersOrBuilder(
        *
        * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
        */
    -  java.util.List 
    -      getWarningsList();
    +  java.util.List getWarningsList();
       /**
    +   *
    +   *
        * 
        * Warning information indicating that moving the target resource to the
        * specified destination might be unsafe. This can include important policy
    @@ -78,6 +105,8 @@ com.google.cloud.asset.v1.MoveImpactOrBuilder getBlockersOrBuilder(
        */
       com.google.cloud.asset.v1.MoveImpact getWarnings(int index);
       /**
    +   *
    +   *
        * 
        * Warning information indicating that moving the target resource to the
        * specified destination might be unsafe. This can include important policy
    @@ -88,6 +117,8 @@ com.google.cloud.asset.v1.MoveImpactOrBuilder getBlockersOrBuilder(
        */
       int getWarningsCount();
       /**
    +   *
    +   *
        * 
        * Warning information indicating that moving the target resource to the
        * specified destination might be unsafe. This can include important policy
    @@ -96,9 +127,11 @@ com.google.cloud.asset.v1.MoveImpactOrBuilder getBlockersOrBuilder(
        *
        * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
        */
    -  java.util.List 
    +  java.util.List
           getWarningsOrBuilderList();
       /**
    +   *
    +   *
        * 
        * Warning information indicating that moving the target resource to the
        * specified destination might be unsafe. This can include important policy
    @@ -107,6 +140,5 @@ com.google.cloud.asset.v1.MoveImpactOrBuilder getBlockersOrBuilder(
        *
        * repeated .google.cloud.asset.v1.MoveImpact warnings = 2;
        */
    -  com.google.cloud.asset.v1.MoveImpactOrBuilder getWarningsOrBuilder(
    -      int index);
    +  com.google.cloud.asset.v1.MoveImpactOrBuilder getWarningsOrBuilder(int index);
     }
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpact.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpact.java
    similarity index 64%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpact.java
    rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpact.java
    index 625253bbddb9..f292982aeab1 100644
    --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpact.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpact.java
    @@ -1,61 +1,83 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
     /**
    + *
    + *
      * 
      * A message to group impacts of moving the target resource.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.MoveImpact} */ -public final class MoveImpact extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MoveImpact extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.MoveImpact) MoveImpactOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MoveImpact.newBuilder() to construct. private MoveImpact(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MoveImpact() { detail_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MoveImpact(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveImpact_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_MoveImpact_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveImpact_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_MoveImpact_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.MoveImpact.class, com.google.cloud.asset.v1.MoveImpact.Builder.class); + com.google.cloud.asset.v1.MoveImpact.class, + com.google.cloud.asset.v1.MoveImpact.Builder.class); } public static final int DETAIL_FIELD_NUMBER = 1; private volatile java.lang.Object detail_; /** + * + * *
        * User friendly impact detail in a free form message.
        * 
    * * string detail = 1; + * * @return The detail. */ @java.lang.Override @@ -64,29 +86,29 @@ public java.lang.String getDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detail_ = s; return s; } } /** + * + * *
        * User friendly impact detail in a free form message.
        * 
    * * string detail = 1; + * * @return The bytes for detail. */ @java.lang.Override - public com.google.protobuf.ByteString - getDetailBytes() { + public com.google.protobuf.ByteString getDetailBytes() { java.lang.Object ref = detail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detail_ = b; return b; } else { @@ -95,6 +117,7 @@ public java.lang.String getDetail() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +129,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, detail_); } @@ -131,15 +153,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.MoveImpact)) { return super.equals(obj); } com.google.cloud.asset.v1.MoveImpact other = (com.google.cloud.asset.v1.MoveImpact) obj; - if (!getDetail() - .equals(other.getDetail())) return false; + if (!getDetail().equals(other.getDetail())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,130 +179,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.MoveImpact parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.MoveImpact parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.MoveImpact parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.MoveImpact parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.asset.v1.MoveImpact parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.MoveImpact 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.asset.v1.MoveImpact parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.MoveImpact parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.MoveImpact parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.MoveImpact parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.MoveImpact parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.MoveImpact parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.MoveImpact parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.MoveImpact parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.MoveImpact prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * A message to group impacts of moving the target resource.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.MoveImpact} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.MoveImpact) com.google.cloud.asset.v1.MoveImpactOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveImpact_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_MoveImpact_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveImpact_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_MoveImpact_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.MoveImpact.class, com.google.cloud.asset.v1.MoveImpact.Builder.class); + com.google.cloud.asset.v1.MoveImpact.class, + com.google.cloud.asset.v1.MoveImpact.Builder.class); } // Construct using com.google.cloud.asset.v1.MoveImpact.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +317,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_MoveImpact_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_MoveImpact_descriptor; } @java.lang.Override @@ -322,38 +348,39 @@ public com.google.cloud.asset.v1.MoveImpact buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.MoveImpact) { - return mergeFrom((com.google.cloud.asset.v1.MoveImpact)other); + return mergeFrom((com.google.cloud.asset.v1.MoveImpact) other); } else { super.mergeFrom(other); return this; @@ -392,17 +419,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - detail_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + detail_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,18 +444,20 @@ public Builder mergeFrom( private java.lang.Object detail_ = ""; /** + * + * *
          * User friendly impact detail in a free form message.
          * 
    * * string detail = 1; + * * @return The detail. */ public java.lang.String getDetail() { java.lang.Object ref = detail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detail_ = s; return s; @@ -435,20 +466,21 @@ public java.lang.String getDetail() { } } /** + * + * *
          * User friendly impact detail in a free form message.
          * 
    * * string detail = 1; + * * @return The bytes for detail. */ - public com.google.protobuf.ByteString - getDetailBytes() { + public com.google.protobuf.ByteString getDetailBytes() { java.lang.Object ref = detail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); detail_ = b; return b; } else { @@ -456,61 +488,68 @@ public java.lang.String getDetail() { } } /** + * + * *
          * User friendly impact detail in a free form message.
          * 
    * * string detail = 1; + * * @param value The detail to set. * @return This builder for chaining. */ - public Builder setDetail( - java.lang.String value) { + public Builder setDetail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + detail_ = value; onChanged(); return this; } /** + * + * *
          * User friendly impact detail in a free form message.
          * 
    * * string detail = 1; + * * @return This builder for chaining. */ public Builder clearDetail() { - + detail_ = getDefaultInstance().getDetail(); onChanged(); return this; } /** + * + * *
          * User friendly impact detail in a free form message.
          * 
    * * string detail = 1; + * * @param value The bytes for detail to set. * @return This builder for chaining. */ - public Builder setDetailBytes( - com.google.protobuf.ByteString value) { + public Builder setDetailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + detail_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -520,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.MoveImpact) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.MoveImpact) private static final com.google.cloud.asset.v1.MoveImpact DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.MoveImpact(); } @@ -534,27 +573,27 @@ public static com.google.cloud.asset.v1.MoveImpact getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MoveImpact parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MoveImpact parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,6 +608,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.MoveImpact getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpactOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpactOrBuilder.java new file mode 100644 index 000000000000..c6ae2623efc2 --- /dev/null +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpactOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface MoveImpactOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.MoveImpact) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * User friendly impact detail in a free form message.
    +   * 
    + * + * string detail = 1; + * + * @return The detail. + */ + java.lang.String getDetail(); + /** + * + * + *
    +   * User friendly impact detail in a free form message.
    +   * 
    + * + * string detail = 1; + * + * @return The bytes for detail. + */ + com.google.protobuf.ByteString getDetailBytes(); +} diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OrganizationName.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OrganizationName.java similarity index 100% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OrganizationName.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OrganizationName.java diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfig.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfig.java similarity index 71% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfig.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfig.java index 748c82f6c438..e637ada7cb96 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfig.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfig.java @@ -1,61 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * Output configuration for export assets destination.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.OutputConfig} */ -public final class OutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.OutputConfig) OutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutputConfig() { - } + + private OutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_OutputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_OutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.OutputConfig.class, com.google.cloud.asset.v1.OutputConfig.Builder.class); + com.google.cloud.asset.v1.OutputConfig.class, + com.google.cloud.asset.v1.OutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), BIGQUERY_DESTINATION(2), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -71,30 +92,36 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return GCS_DESTINATION; - case 2: return BIGQUERY_DESTINATION; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return GCS_DESTINATION; + case 2: + return BIGQUERY_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** + * + * *
        * Destination on Cloud Storage.
        * 
    * * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -102,21 +129,26 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
        * Destination on Cloud Storage.
        * 
    * * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.asset.v1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1.GcsDestination) destination_; + return (com.google.cloud.asset.v1.GcsDestination) destination_; } return com.google.cloud.asset.v1.GcsDestination.getDefaultInstance(); } /** + * + * *
        * Destination on Cloud Storage.
        * 
    @@ -126,19 +158,22 @@ public com.google.cloud.asset.v1.GcsDestination getGcsDestination() { @java.lang.Override public com.google.cloud.asset.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1.GcsDestination) destination_; + return (com.google.cloud.asset.v1.GcsDestination) destination_; } return com.google.cloud.asset.v1.GcsDestination.getDefaultInstance(); } public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 2; /** + * + * *
        * Destination on BigQuery. The output table stores the fields in asset
        * Protobuf as columns in BigQuery.
        * 
    * * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; + * * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -146,22 +181,27 @@ public boolean hasBigqueryDestination() { return destinationCase_ == 2; } /** + * + * *
        * Destination on BigQuery. The output table stores the fields in asset
        * Protobuf as columns in BigQuery.
        * 
    * * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; + * * @return The bigqueryDestination. */ @java.lang.Override public com.google.cloud.asset.v1.BigQueryDestination getBigqueryDestination() { if (destinationCase_ == 2) { - return (com.google.cloud.asset.v1.BigQueryDestination) destination_; + return (com.google.cloud.asset.v1.BigQueryDestination) destination_; } return com.google.cloud.asset.v1.BigQueryDestination.getDefaultInstance(); } /** + * + * *
        * Destination on BigQuery. The output table stores the fields in asset
        * Protobuf as columns in BigQuery.
    @@ -172,12 +212,13 @@ public com.google.cloud.asset.v1.BigQueryDestination getBigqueryDestination() {
       @java.lang.Override
       public com.google.cloud.asset.v1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() {
         if (destinationCase_ == 2) {
    -       return (com.google.cloud.asset.v1.BigQueryDestination) destination_;
    +      return (com.google.cloud.asset.v1.BigQueryDestination) destination_;
         }
         return com.google.cloud.asset.v1.BigQueryDestination.getDefaultInstance();
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -189,8 +230,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (destinationCase_ == 1) {
           output.writeMessage(1, (com.google.cloud.asset.v1.GcsDestination) destination_);
         }
    @@ -207,12 +247,14 @@ public int getSerializedSize() {
     
         size = 0;
         if (destinationCase_ == 1) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(1, (com.google.cloud.asset.v1.GcsDestination) destination_);
    +      size +=
    +          com.google.protobuf.CodedOutputStream.computeMessageSize(
    +              1, (com.google.cloud.asset.v1.GcsDestination) destination_);
         }
         if (destinationCase_ == 2) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(2, (com.google.cloud.asset.v1.BigQueryDestination) destination_);
    +      size +=
    +          com.google.protobuf.CodedOutputStream.computeMessageSize(
    +              2, (com.google.cloud.asset.v1.BigQueryDestination) destination_);
         }
         size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
    @@ -222,7 +264,7 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1.OutputConfig)) {
           return super.equals(obj);
    @@ -232,12 +274,10 @@ public boolean equals(final java.lang.Object obj) {
         if (!getDestinationCase().equals(other.getDestinationCase())) return false;
         switch (destinationCase_) {
           case 1:
    -        if (!getGcsDestination()
    -            .equals(other.getGcsDestination())) return false;
    +        if (!getGcsDestination().equals(other.getGcsDestination())) return false;
             break;
           case 2:
    -        if (!getBigqueryDestination()
    -            .equals(other.getBigqueryDestination())) return false;
    +        if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false;
             break;
           case 0:
           default:
    @@ -270,130 +310,136 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1.OutputConfig parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1.OutputConfig parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.OutputConfig parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.OutputConfig parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.OutputConfig 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.asset.v1.OutputConfig parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.OutputConfig parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.OutputConfig parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.OutputConfig parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.OutputConfig parseDelimitedFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.OutputConfig parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.OutputConfig parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.OutputConfig parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.cloud.asset.v1.OutputConfig prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Output configuration for export assets destination.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.OutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.OutputConfig) com.google.cloud.asset.v1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_OutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.OutputConfig.class, com.google.cloud.asset.v1.OutputConfig.Builder.class); + com.google.cloud.asset.v1.OutputConfig.class, + com.google.cloud.asset.v1.OutputConfig.Builder.class); } // Construct using com.google.cloud.asset.v1.OutputConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +455,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_OutputConfig_descriptor; } @java.lang.Override @@ -430,7 +476,8 @@ public com.google.cloud.asset.v1.OutputConfig build() { @java.lang.Override public com.google.cloud.asset.v1.OutputConfig buildPartial() { - com.google.cloud.asset.v1.OutputConfig result = new com.google.cloud.asset.v1.OutputConfig(this); + com.google.cloud.asset.v1.OutputConfig result = + new com.google.cloud.asset.v1.OutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -454,38 +501,39 @@ public com.google.cloud.asset.v1.OutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.OutputConfig) { - return mergeFrom((com.google.cloud.asset.v1.OutputConfig)other); + return mergeFrom((com.google.cloud.asset.v1.OutputConfig) other); } else { super.mergeFrom(other); return this; @@ -495,17 +543,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.asset.v1.OutputConfig other) { if (other == com.google.cloud.asset.v1.OutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case BIGQUERY_DESTINATION: { - mergeBigqueryDestination(other.getBigqueryDestination()); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case BIGQUERY_DESTINATION: + { + mergeBigqueryDestination(other.getBigqueryDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -533,26 +584,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsDestinationFieldBuilder().getBuilder(), - extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getBigqueryDestinationFieldBuilder().getBuilder(), - extensionRegistry); - destinationCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getBigqueryDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -562,12 +613,12 @@ public Builder mergeFrom( } // finally return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -577,15 +628,20 @@ public Builder clearDestination() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.GcsDestination, com.google.cloud.asset.v1.GcsDestination.Builder, com.google.cloud.asset.v1.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.asset.v1.GcsDestination, + com.google.cloud.asset.v1.GcsDestination.Builder, + com.google.cloud.asset.v1.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
          * Destination on Cloud Storage.
          * 
    * * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -593,11 +649,14 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
          * Destination on Cloud Storage.
          * 
    * * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override @@ -615,6 +674,8 @@ public com.google.cloud.asset.v1.GcsDestination getGcsDestination() { } } /** + * + * *
          * Destination on Cloud Storage.
          * 
    @@ -635,6 +696,8 @@ public Builder setGcsDestination(com.google.cloud.asset.v1.GcsDestination value) return this; } /** + * + * *
          * Destination on Cloud Storage.
          * 
    @@ -653,6 +716,8 @@ public Builder setGcsDestination( return this; } /** + * + * *
          * Destination on Cloud Storage.
          * 
    @@ -661,10 +726,13 @@ public Builder setGcsDestination( */ public Builder mergeGcsDestination(com.google.cloud.asset.v1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 && - destination_ != com.google.cloud.asset.v1.GcsDestination.getDefaultInstance()) { - destination_ = com.google.cloud.asset.v1.GcsDestination.newBuilder((com.google.cloud.asset.v1.GcsDestination) destination_) - .mergeFrom(value).buildPartial(); + if (destinationCase_ == 1 + && destination_ != com.google.cloud.asset.v1.GcsDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.asset.v1.GcsDestination.newBuilder( + (com.google.cloud.asset.v1.GcsDestination) destination_) + .mergeFrom(value) + .buildPartial(); } else { destination_ = value; } @@ -680,6 +748,8 @@ public Builder mergeGcsDestination(com.google.cloud.asset.v1.GcsDestination valu return this; } /** + * + * *
          * Destination on Cloud Storage.
          * 
    @@ -703,6 +773,8 @@ public Builder clearGcsDestination() { return this; } /** + * + * *
          * Destination on Cloud Storage.
          * 
    @@ -713,6 +785,8 @@ public com.google.cloud.asset.v1.GcsDestination.Builder getGcsDestinationBuilder return getGcsDestinationFieldBuilder().getBuilder(); } /** + * + * *
          * Destination on Cloud Storage.
          * 
    @@ -731,6 +805,8 @@ public com.google.cloud.asset.v1.GcsDestinationOrBuilder getGcsDestinationOrBuil } } /** + * + * *
          * Destination on Cloud Storage.
          * 
    @@ -738,33 +814,45 @@ public com.google.cloud.asset.v1.GcsDestinationOrBuilder getGcsDestinationOrBuil * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.GcsDestination, com.google.cloud.asset.v1.GcsDestination.Builder, com.google.cloud.asset.v1.GcsDestinationOrBuilder> + com.google.cloud.asset.v1.GcsDestination, + com.google.cloud.asset.v1.GcsDestination.Builder, + com.google.cloud.asset.v1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.asset.v1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.GcsDestination, com.google.cloud.asset.v1.GcsDestination.Builder, com.google.cloud.asset.v1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.GcsDestination, + com.google.cloud.asset.v1.GcsDestination.Builder, + com.google.cloud.asset.v1.GcsDestinationOrBuilder>( (com.google.cloud.asset.v1.GcsDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 1; - onChanged();; + onChanged(); + ; return gcsDestinationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.BigQueryDestination, com.google.cloud.asset.v1.BigQueryDestination.Builder, com.google.cloud.asset.v1.BigQueryDestinationOrBuilder> bigqueryDestinationBuilder_; + com.google.cloud.asset.v1.BigQueryDestination, + com.google.cloud.asset.v1.BigQueryDestination.Builder, + com.google.cloud.asset.v1.BigQueryDestinationOrBuilder> + bigqueryDestinationBuilder_; /** + * + * *
          * Destination on BigQuery. The output table stores the fields in asset
          * Protobuf as columns in BigQuery.
          * 
    * * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; + * * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -772,12 +860,15 @@ public boolean hasBigqueryDestination() { return destinationCase_ == 2; } /** + * + * *
          * Destination on BigQuery. The output table stores the fields in asset
          * Protobuf as columns in BigQuery.
          * 
    * * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; + * * @return The bigqueryDestination. */ @java.lang.Override @@ -795,6 +886,8 @@ public com.google.cloud.asset.v1.BigQueryDestination getBigqueryDestination() { } } /** + * + * *
          * Destination on BigQuery. The output table stores the fields in asset
          * Protobuf as columns in BigQuery.
    @@ -816,6 +909,8 @@ public Builder setBigqueryDestination(com.google.cloud.asset.v1.BigQueryDestinat
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Destination on BigQuery. The output table stores the fields in asset
          * Protobuf as columns in BigQuery.
    @@ -835,6 +930,8 @@ public Builder setBigqueryDestination(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Destination on BigQuery. The output table stores the fields in asset
          * Protobuf as columns in BigQuery.
    @@ -844,10 +941,13 @@ public Builder setBigqueryDestination(
          */
         public Builder mergeBigqueryDestination(com.google.cloud.asset.v1.BigQueryDestination value) {
           if (bigqueryDestinationBuilder_ == null) {
    -        if (destinationCase_ == 2 &&
    -            destination_ != com.google.cloud.asset.v1.BigQueryDestination.getDefaultInstance()) {
    -          destination_ = com.google.cloud.asset.v1.BigQueryDestination.newBuilder((com.google.cloud.asset.v1.BigQueryDestination) destination_)
    -              .mergeFrom(value).buildPartial();
    +        if (destinationCase_ == 2
    +            && destination_ != com.google.cloud.asset.v1.BigQueryDestination.getDefaultInstance()) {
    +          destination_ =
    +              com.google.cloud.asset.v1.BigQueryDestination.newBuilder(
    +                      (com.google.cloud.asset.v1.BigQueryDestination) destination_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               destination_ = value;
             }
    @@ -863,6 +963,8 @@ public Builder mergeBigqueryDestination(com.google.cloud.asset.v1.BigQueryDestin
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Destination on BigQuery. The output table stores the fields in asset
          * Protobuf as columns in BigQuery.
    @@ -887,6 +989,8 @@ public Builder clearBigqueryDestination() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Destination on BigQuery. The output table stores the fields in asset
          * Protobuf as columns in BigQuery.
    @@ -898,6 +1002,8 @@ public com.google.cloud.asset.v1.BigQueryDestination.Builder getBigqueryDestinat
           return getBigqueryDestinationFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Destination on BigQuery. The output table stores the fields in asset
          * Protobuf as columns in BigQuery.
    @@ -906,7 +1012,8 @@ public com.google.cloud.asset.v1.BigQueryDestination.Builder getBigqueryDestinat
          * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2;
          */
         @java.lang.Override
    -    public com.google.cloud.asset.v1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() {
    +    public com.google.cloud.asset.v1.BigQueryDestinationOrBuilder
    +        getBigqueryDestinationOrBuilder() {
           if ((destinationCase_ == 2) && (bigqueryDestinationBuilder_ != null)) {
             return bigqueryDestinationBuilder_.getMessageOrBuilder();
           } else {
    @@ -917,6 +1024,8 @@ public com.google.cloud.asset.v1.BigQueryDestinationOrBuilder getBigqueryDestina
           }
         }
         /**
    +     *
    +     *
          * 
          * Destination on BigQuery. The output table stores the fields in asset
          * Protobuf as columns in BigQuery.
    @@ -925,26 +1034,32 @@ public com.google.cloud.asset.v1.BigQueryDestinationOrBuilder getBigqueryDestina
          * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1.BigQueryDestination, com.google.cloud.asset.v1.BigQueryDestination.Builder, com.google.cloud.asset.v1.BigQueryDestinationOrBuilder> 
    +            com.google.cloud.asset.v1.BigQueryDestination,
    +            com.google.cloud.asset.v1.BigQueryDestination.Builder,
    +            com.google.cloud.asset.v1.BigQueryDestinationOrBuilder>
             getBigqueryDestinationFieldBuilder() {
           if (bigqueryDestinationBuilder_ == null) {
             if (!(destinationCase_ == 2)) {
               destination_ = com.google.cloud.asset.v1.BigQueryDestination.getDefaultInstance();
             }
    -        bigqueryDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.BigQueryDestination, com.google.cloud.asset.v1.BigQueryDestination.Builder, com.google.cloud.asset.v1.BigQueryDestinationOrBuilder>(
    +        bigqueryDestinationBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.cloud.asset.v1.BigQueryDestination,
    +                com.google.cloud.asset.v1.BigQueryDestination.Builder,
    +                com.google.cloud.asset.v1.BigQueryDestinationOrBuilder>(
                     (com.google.cloud.asset.v1.BigQueryDestination) destination_,
                     getParentForChildren(),
                     isClean());
             destination_ = null;
           }
           destinationCase_ = 2;
    -      onChanged();;
    +      onChanged();
    +      ;
           return bigqueryDestinationBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -954,12 +1069,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.OutputConfig)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.OutputConfig)
       private static final com.google.cloud.asset.v1.OutputConfig DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1.OutputConfig();
       }
    @@ -968,27 +1083,27 @@ public static com.google.cloud.asset.v1.OutputConfig getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public OutputConfig parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      Builder builder = newBuilder();
    -      try {
    -        builder.mergeFrom(input, extensionRegistry);
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(builder.buildPartial());
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    -            .setUnfinishedMessage(builder.buildPartial());
    -      }
    -      return builder.buildPartial();
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public OutputConfig parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1003,6 +1118,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1.OutputConfig getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfigOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfigOrBuilder.java
    similarity index 74%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfigOrBuilder.java
    rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfigOrBuilder.java
    index de717d5a0d5d..ce0fc0dedae4 100644
    --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfigOrBuilder.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfigOrBuilder.java
    @@ -1,31 +1,55 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
    -public interface OutputConfigOrBuilder extends
    +public interface OutputConfigOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.OutputConfig)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * Destination on Cloud Storage.
        * 
    * * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
        * Destination on Cloud Storage.
        * 
    * * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ com.google.cloud.asset.v1.GcsDestination getGcsDestination(); /** + * + * *
        * Destination on Cloud Storage.
        * 
    @@ -35,26 +59,34 @@ public interface OutputConfigOrBuilder extends com.google.cloud.asset.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** + * + * *
        * Destination on BigQuery. The output table stores the fields in asset
        * Protobuf as columns in BigQuery.
        * 
    * * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; + * * @return Whether the bigqueryDestination field is set. */ boolean hasBigqueryDestination(); /** + * + * *
        * Destination on BigQuery. The output table stores the fields in asset
        * Protobuf as columns in BigQuery.
        * 
    * * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; + * * @return The bigqueryDestination. */ com.google.cloud.asset.v1.BigQueryDestination getBigqueryDestination(); /** + * + * *
        * Destination on BigQuery. The output table stores the fields in asset
        * Protobuf as columns in BigQuery.
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResult.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResult.java
    similarity index 67%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResult.java
    rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResult.java
    index 443b755b645e..6f8249d647c8 100644
    --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResult.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResult.java
    @@ -1,60 +1,81 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
     /**
    + *
    + *
      * 
      * Output result of export assets.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.OutputResult} */ -public final class OutputResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OutputResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.OutputResult) OutputResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OutputResult.newBuilder() to construct. private OutputResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutputResult() { - } + + private OutputResult() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutputResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_OutputResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_OutputResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_OutputResult_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_OutputResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.OutputResult.class, com.google.cloud.asset.v1.OutputResult.Builder.class); + com.google.cloud.asset.v1.OutputResult.class, + com.google.cloud.asset.v1.OutputResult.Builder.class); } private int resultCase_ = 0; private java.lang.Object result_; + public enum ResultCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_RESULT(1), RESULT_NOT_SET(0); private final int value; + private ResultCase(int value) { this.value = value; } @@ -70,29 +91,34 @@ public static ResultCase valueOf(int value) { public static ResultCase forNumber(int value) { switch (value) { - case 1: return GCS_RESULT; - case 0: return RESULT_NOT_SET; - default: return null; + case 1: + return GCS_RESULT; + case 0: + return RESULT_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ResultCase - getResultCase() { - return ResultCase.forNumber( - resultCase_); + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); } public static final int GCS_RESULT_FIELD_NUMBER = 1; /** + * + * *
        * Export result on Cloud Storage.
        * 
    * * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; + * * @return Whether the gcsResult field is set. */ @java.lang.Override @@ -100,21 +126,26 @@ public boolean hasGcsResult() { return resultCase_ == 1; } /** + * + * *
        * Export result on Cloud Storage.
        * 
    * * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; + * * @return The gcsResult. */ @java.lang.Override public com.google.cloud.asset.v1.GcsOutputResult getGcsResult() { if (resultCase_ == 1) { - return (com.google.cloud.asset.v1.GcsOutputResult) result_; + return (com.google.cloud.asset.v1.GcsOutputResult) result_; } return com.google.cloud.asset.v1.GcsOutputResult.getDefaultInstance(); } /** + * + * *
        * Export result on Cloud Storage.
        * 
    @@ -124,12 +155,13 @@ public com.google.cloud.asset.v1.GcsOutputResult getGcsResult() { @java.lang.Override public com.google.cloud.asset.v1.GcsOutputResultOrBuilder getGcsResultOrBuilder() { if (resultCase_ == 1) { - return (com.google.cloud.asset.v1.GcsOutputResult) result_; + return (com.google.cloud.asset.v1.GcsOutputResult) result_; } return com.google.cloud.asset.v1.GcsOutputResult.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -141,8 +173,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (resultCase_ == 1) { output.writeMessage(1, (com.google.cloud.asset.v1.GcsOutputResult) result_); } @@ -156,8 +187,9 @@ public int getSerializedSize() { size = 0; if (resultCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.asset.v1.GcsOutputResult) result_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.asset.v1.GcsOutputResult) result_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -167,7 +199,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.OutputResult)) { return super.equals(obj); @@ -177,8 +209,7 @@ public boolean equals(final java.lang.Object obj) { if (!getResultCase().equals(other.getResultCase())) return false; switch (resultCase_) { case 1: - if (!getGcsResult() - .equals(other.getGcsResult())) return false; + if (!getGcsResult().equals(other.getGcsResult())) return false; break; case 0: default: @@ -207,130 +238,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.OutputResult parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.OutputResult parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.OutputResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.OutputResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.OutputResult 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.asset.v1.OutputResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.OutputResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.OutputResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.OutputResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.OutputResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.OutputResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.OutputResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.OutputResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.OutputResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Output result of export assets.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.OutputResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.OutputResult) com.google.cloud.asset.v1.OutputResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_OutputResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_OutputResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_OutputResult_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_OutputResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.OutputResult.class, com.google.cloud.asset.v1.OutputResult.Builder.class); + com.google.cloud.asset.v1.OutputResult.class, + com.google.cloud.asset.v1.OutputResult.Builder.class); } // Construct using com.google.cloud.asset.v1.OutputResult.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_OutputResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_OutputResult_descriptor; } @java.lang.Override @@ -364,7 +401,8 @@ public com.google.cloud.asset.v1.OutputResult build() { @java.lang.Override public com.google.cloud.asset.v1.OutputResult buildPartial() { - com.google.cloud.asset.v1.OutputResult result = new com.google.cloud.asset.v1.OutputResult(this); + com.google.cloud.asset.v1.OutputResult result = + new com.google.cloud.asset.v1.OutputResult(this); if (resultCase_ == 1) { if (gcsResultBuilder_ == null) { result.result_ = result_; @@ -381,38 +419,39 @@ public com.google.cloud.asset.v1.OutputResult buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.OutputResult) { - return mergeFrom((com.google.cloud.asset.v1.OutputResult)other); + return mergeFrom((com.google.cloud.asset.v1.OutputResult) other); } else { super.mergeFrom(other); return this; @@ -422,13 +461,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.asset.v1.OutputResult other) { if (other == com.google.cloud.asset.v1.OutputResult.getDefaultInstance()) return this; switch (other.getResultCase()) { - case GCS_RESULT: { - mergeGcsResult(other.getGcsResult()); - break; - } - case RESULT_NOT_SET: { - break; - } + case GCS_RESULT: + { + mergeGcsResult(other.getGcsResult()); + break; + } + case RESULT_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -456,19 +497,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsResultFieldBuilder().getBuilder(), - extensionRegistry); - resultCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsResultFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -478,12 +519,12 @@ public Builder mergeFrom( } // finally return this; } + private int resultCase_ = 0; private java.lang.Object result_; - public ResultCase - getResultCase() { - return ResultCase.forNumber( - resultCase_); + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); } public Builder clearResult() { @@ -493,15 +534,20 @@ public Builder clearResult() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.GcsOutputResult, com.google.cloud.asset.v1.GcsOutputResult.Builder, com.google.cloud.asset.v1.GcsOutputResultOrBuilder> gcsResultBuilder_; + com.google.cloud.asset.v1.GcsOutputResult, + com.google.cloud.asset.v1.GcsOutputResult.Builder, + com.google.cloud.asset.v1.GcsOutputResultOrBuilder> + gcsResultBuilder_; /** + * + * *
          * Export result on Cloud Storage.
          * 
    * * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; + * * @return Whether the gcsResult field is set. */ @java.lang.Override @@ -509,11 +555,14 @@ public boolean hasGcsResult() { return resultCase_ == 1; } /** + * + * *
          * Export result on Cloud Storage.
          * 
    * * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; + * * @return The gcsResult. */ @java.lang.Override @@ -531,6 +580,8 @@ public com.google.cloud.asset.v1.GcsOutputResult getGcsResult() { } } /** + * + * *
          * Export result on Cloud Storage.
          * 
    @@ -551,14 +602,15 @@ public Builder setGcsResult(com.google.cloud.asset.v1.GcsOutputResult value) { return this; } /** + * + * *
          * Export result on Cloud Storage.
          * 
    * * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; */ - public Builder setGcsResult( - com.google.cloud.asset.v1.GcsOutputResult.Builder builderForValue) { + public Builder setGcsResult(com.google.cloud.asset.v1.GcsOutputResult.Builder builderForValue) { if (gcsResultBuilder_ == null) { result_ = builderForValue.build(); onChanged(); @@ -569,6 +621,8 @@ public Builder setGcsResult( return this; } /** + * + * *
          * Export result on Cloud Storage.
          * 
    @@ -577,10 +631,13 @@ public Builder setGcsResult( */ public Builder mergeGcsResult(com.google.cloud.asset.v1.GcsOutputResult value) { if (gcsResultBuilder_ == null) { - if (resultCase_ == 1 && - result_ != com.google.cloud.asset.v1.GcsOutputResult.getDefaultInstance()) { - result_ = com.google.cloud.asset.v1.GcsOutputResult.newBuilder((com.google.cloud.asset.v1.GcsOutputResult) result_) - .mergeFrom(value).buildPartial(); + if (resultCase_ == 1 + && result_ != com.google.cloud.asset.v1.GcsOutputResult.getDefaultInstance()) { + result_ = + com.google.cloud.asset.v1.GcsOutputResult.newBuilder( + (com.google.cloud.asset.v1.GcsOutputResult) result_) + .mergeFrom(value) + .buildPartial(); } else { result_ = value; } @@ -596,6 +653,8 @@ public Builder mergeGcsResult(com.google.cloud.asset.v1.GcsOutputResult value) { return this; } /** + * + * *
          * Export result on Cloud Storage.
          * 
    @@ -619,6 +678,8 @@ public Builder clearGcsResult() { return this; } /** + * + * *
          * Export result on Cloud Storage.
          * 
    @@ -629,6 +690,8 @@ public com.google.cloud.asset.v1.GcsOutputResult.Builder getGcsResultBuilder() { return getGcsResultFieldBuilder().getBuilder(); } /** + * + * *
          * Export result on Cloud Storage.
          * 
    @@ -647,6 +710,8 @@ public com.google.cloud.asset.v1.GcsOutputResultOrBuilder getGcsResultOrBuilder( } } /** + * + * *
          * Export result on Cloud Storage.
          * 
    @@ -654,26 +719,32 @@ public com.google.cloud.asset.v1.GcsOutputResultOrBuilder getGcsResultOrBuilder( * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.GcsOutputResult, com.google.cloud.asset.v1.GcsOutputResult.Builder, com.google.cloud.asset.v1.GcsOutputResultOrBuilder> + com.google.cloud.asset.v1.GcsOutputResult, + com.google.cloud.asset.v1.GcsOutputResult.Builder, + com.google.cloud.asset.v1.GcsOutputResultOrBuilder> getGcsResultFieldBuilder() { if (gcsResultBuilder_ == null) { if (!(resultCase_ == 1)) { result_ = com.google.cloud.asset.v1.GcsOutputResult.getDefaultInstance(); } - gcsResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.GcsOutputResult, com.google.cloud.asset.v1.GcsOutputResult.Builder, com.google.cloud.asset.v1.GcsOutputResultOrBuilder>( + gcsResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.GcsOutputResult, + com.google.cloud.asset.v1.GcsOutputResult.Builder, + com.google.cloud.asset.v1.GcsOutputResultOrBuilder>( (com.google.cloud.asset.v1.GcsOutputResult) result_, getParentForChildren(), isClean()); result_ = null; } resultCase_ = 1; - onChanged();; + onChanged(); + ; return gcsResultBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -683,12 +754,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.OutputResult) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.OutputResult) private static final com.google.cloud.asset.v1.OutputResult DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.OutputResult(); } @@ -697,27 +768,27 @@ public static com.google.cloud.asset.v1.OutputResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -732,6 +803,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.OutputResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResultOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResultOrBuilder.java similarity index 60% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResultOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResultOrBuilder.java index 68dc7c1ed1ae..454ff49af346 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResultOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResultOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface OutputResultOrBuilder extends +public interface OutputResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.OutputResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Export result on Cloud Storage.
        * 
    * * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; + * * @return Whether the gcsResult field is set. */ boolean hasGcsResult(); /** + * + * *
        * Export result on Cloud Storage.
        * 
    * * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; + * * @return The gcsResult. */ com.google.cloud.asset.v1.GcsOutputResult getGcsResult(); /** + * + * *
        * Export result on Cloud Storage.
        * 
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpec.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpec.java similarity index 68% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpec.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpec.java index aafc6af3fafe..4a844504ecce 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpec.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpec.java @@ -1,54 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * Specifications of BigQuery partitioned table as export destination.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.PartitionSpec} */ -public final class PartitionSpec extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PartitionSpec extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.PartitionSpec) PartitionSpecOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PartitionSpec.newBuilder() to construct. private PartitionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PartitionSpec() { partitionKey_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PartitionSpec(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_PartitionSpec_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_PartitionSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_PartitionSpec_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_PartitionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.PartitionSpec.class, com.google.cloud.asset.v1.PartitionSpec.Builder.class); + com.google.cloud.asset.v1.PartitionSpec.class, + com.google.cloud.asset.v1.PartitionSpec.Builder.class); } /** + * + * *
        * This enum is used to determine the partition key column when exporting
        * assets to BigQuery partitioned table(s). Note that, if the partition key is
    @@ -59,9 +80,10 @@ protected java.lang.Object newInstance(
        *
        * Protobuf enum {@code google.cloud.asset.v1.PartitionSpec.PartitionKey}
        */
    -  public enum PartitionKey
    -      implements com.google.protobuf.ProtocolMessageEnum {
    +  public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum {
         /**
    +     *
    +     *
          * 
          * Unspecified partition key. If used, it means using non-partitioned table.
          * 
    @@ -70,6 +92,8 @@ public enum PartitionKey */ PARTITION_KEY_UNSPECIFIED(0), /** + * + * *
          * The time when the snapshot is taken. If specified as partition key, the
          * result table(s) is partitoned by the additional timestamp column,
    @@ -82,6 +106,8 @@ public enum PartitionKey
          */
         READ_TIME(1),
         /**
    +     *
    +     *
          * 
          * The time when the request is received and started to be processed. If
          * specified as partition key, the result table(s) is partitoned by the
    @@ -96,6 +122,8 @@ public enum PartitionKey
         ;
     
         /**
    +     *
    +     *
          * 
          * Unspecified partition key. If used, it means using non-partitioned table.
          * 
    @@ -104,6 +132,8 @@ public enum PartitionKey */ public static final int PARTITION_KEY_UNSPECIFIED_VALUE = 0; /** + * + * *
          * The time when the snapshot is taken. If specified as partition key, the
          * result table(s) is partitoned by the additional timestamp column,
    @@ -116,6 +146,8 @@ public enum PartitionKey
          */
         public static final int READ_TIME_VALUE = 1;
         /**
    +     *
    +     *
          * 
          * The time when the request is received and started to be processed. If
          * specified as partition key, the result table(s) is partitoned by the
    @@ -127,7 +159,6 @@ public enum PartitionKey
          */
         public static final int REQUEST_TIME_VALUE = 2;
     
    -
         public final int getNumber() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalArgumentException(
    @@ -152,49 +183,49 @@ public static PartitionKey valueOf(int value) {
          */
         public static PartitionKey forNumber(int value) {
           switch (value) {
    -        case 0: return PARTITION_KEY_UNSPECIFIED;
    -        case 1: return READ_TIME;
    -        case 2: return REQUEST_TIME;
    -        default: return null;
    +        case 0:
    +          return PARTITION_KEY_UNSPECIFIED;
    +        case 1:
    +          return READ_TIME;
    +        case 2:
    +          return REQUEST_TIME;
    +        default:
    +          return null;
           }
         }
     
    -    public static com.google.protobuf.Internal.EnumLiteMap
    -        internalGetValueMap() {
    +    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
           return internalValueMap;
         }
    -    private static final com.google.protobuf.Internal.EnumLiteMap<
    -        PartitionKey> internalValueMap =
    -          new com.google.protobuf.Internal.EnumLiteMap() {
    -            public PartitionKey findValueByNumber(int number) {
    -              return PartitionKey.forNumber(number);
    -            }
    -          };
     
    -    public final com.google.protobuf.Descriptors.EnumValueDescriptor
    -        getValueDescriptor() {
    +    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
    +        new com.google.protobuf.Internal.EnumLiteMap() {
    +          public PartitionKey findValueByNumber(int number) {
    +            return PartitionKey.forNumber(number);
    +          }
    +        };
    +
    +    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalStateException(
                 "Can't get the descriptor of an unrecognized enum value.");
           }
           return getDescriptor().getValues().get(ordinal());
         }
    -    public final com.google.protobuf.Descriptors.EnumDescriptor
    -        getDescriptorForType() {
    +
    +    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
           return getDescriptor();
         }
    -    public static final com.google.protobuf.Descriptors.EnumDescriptor
    -        getDescriptor() {
    +
    +    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
           return com.google.cloud.asset.v1.PartitionSpec.getDescriptor().getEnumTypes().get(0);
         }
     
         private static final PartitionKey[] VALUES = values();
     
    -    public static PartitionKey valueOf(
    -        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
    +    public static PartitionKey valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
           if (desc.getType() != getDescriptor()) {
    -        throw new java.lang.IllegalArgumentException(
    -          "EnumValueDescriptor is not for this type.");
    +        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
           }
           if (desc.getIndex() == -1) {
             return UNRECOGNIZED;
    @@ -214,31 +245,43 @@ private PartitionKey(int value) {
       public static final int PARTITION_KEY_FIELD_NUMBER = 1;
       private int partitionKey_;
       /**
    +   *
    +   *
        * 
        * The partition key for BigQuery partitioned table.
        * 
    * * .google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1; + * * @return The enum numeric value on the wire for partitionKey. */ - @java.lang.Override public int getPartitionKeyValue() { + @java.lang.Override + public int getPartitionKeyValue() { return partitionKey_; } /** + * + * *
        * The partition key for BigQuery partitioned table.
        * 
    * * .google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1; + * * @return The partitionKey. */ - @java.lang.Override public com.google.cloud.asset.v1.PartitionSpec.PartitionKey getPartitionKey() { + @java.lang.Override + public com.google.cloud.asset.v1.PartitionSpec.PartitionKey getPartitionKey() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.PartitionSpec.PartitionKey result = com.google.cloud.asset.v1.PartitionSpec.PartitionKey.valueOf(partitionKey_); - return result == null ? com.google.cloud.asset.v1.PartitionSpec.PartitionKey.UNRECOGNIZED : result; + com.google.cloud.asset.v1.PartitionSpec.PartitionKey result = + com.google.cloud.asset.v1.PartitionSpec.PartitionKey.valueOf(partitionKey_); + return result == null + ? com.google.cloud.asset.v1.PartitionSpec.PartitionKey.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,9 +293,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (partitionKey_ != com.google.cloud.asset.v1.PartitionSpec.PartitionKey.PARTITION_KEY_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (partitionKey_ + != com.google.cloud.asset.v1.PartitionSpec.PartitionKey.PARTITION_KEY_UNSPECIFIED + .getNumber()) { output.writeEnum(1, partitionKey_); } getUnknownFields().writeTo(output); @@ -264,9 +308,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (partitionKey_ != com.google.cloud.asset.v1.PartitionSpec.PartitionKey.PARTITION_KEY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, partitionKey_); + if (partitionKey_ + != com.google.cloud.asset.v1.PartitionSpec.PartitionKey.PARTITION_KEY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, partitionKey_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -276,7 +321,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.PartitionSpec)) { return super.equals(obj); @@ -302,130 +347,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.PartitionSpec parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.PartitionSpec parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.PartitionSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.PartitionSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.PartitionSpec 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.asset.v1.PartitionSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.PartitionSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.PartitionSpec parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.PartitionSpec parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.PartitionSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.PartitionSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.PartitionSpec parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.PartitionSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.PartitionSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.PartitionSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Specifications of BigQuery partitioned table as export destination.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.PartitionSpec} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.PartitionSpec) com.google.cloud.asset.v1.PartitionSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_PartitionSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_PartitionSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_PartitionSpec_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_PartitionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.PartitionSpec.class, com.google.cloud.asset.v1.PartitionSpec.Builder.class); + com.google.cloud.asset.v1.PartitionSpec.class, + com.google.cloud.asset.v1.PartitionSpec.Builder.class); } // Construct using com.google.cloud.asset.v1.PartitionSpec.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +486,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_PartitionSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_PartitionSpec_descriptor; } @java.lang.Override @@ -456,7 +507,8 @@ public com.google.cloud.asset.v1.PartitionSpec build() { @java.lang.Override public com.google.cloud.asset.v1.PartitionSpec buildPartial() { - com.google.cloud.asset.v1.PartitionSpec result = new com.google.cloud.asset.v1.PartitionSpec(this); + com.google.cloud.asset.v1.PartitionSpec result = + new com.google.cloud.asset.v1.PartitionSpec(this); result.partitionKey_ = partitionKey_; onBuilt(); return result; @@ -466,38 +518,39 @@ public com.google.cloud.asset.v1.PartitionSpec buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.PartitionSpec) { - return mergeFrom((com.google.cloud.asset.v1.PartitionSpec)other); + return mergeFrom((com.google.cloud.asset.v1.PartitionSpec) other); } else { super.mergeFrom(other); return this; @@ -535,17 +588,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - partitionKey_ = input.readEnum(); - - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + partitionKey_ = input.readEnum(); + + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -558,51 +613,67 @@ public Builder mergeFrom( private int partitionKey_ = 0; /** + * + * *
          * The partition key for BigQuery partitioned table.
          * 
    * * .google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1; + * * @return The enum numeric value on the wire for partitionKey. */ - @java.lang.Override public int getPartitionKeyValue() { + @java.lang.Override + public int getPartitionKeyValue() { return partitionKey_; } /** + * + * *
          * The partition key for BigQuery partitioned table.
          * 
    * * .google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1; + * * @param value The enum numeric value on the wire for partitionKey to set. * @return This builder for chaining. */ public Builder setPartitionKeyValue(int value) { - + partitionKey_ = value; onChanged(); return this; } /** + * + * *
          * The partition key for BigQuery partitioned table.
          * 
    * * .google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1; + * * @return The partitionKey. */ @java.lang.Override public com.google.cloud.asset.v1.PartitionSpec.PartitionKey getPartitionKey() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.PartitionSpec.PartitionKey result = com.google.cloud.asset.v1.PartitionSpec.PartitionKey.valueOf(partitionKey_); - return result == null ? com.google.cloud.asset.v1.PartitionSpec.PartitionKey.UNRECOGNIZED : result; + com.google.cloud.asset.v1.PartitionSpec.PartitionKey result = + com.google.cloud.asset.v1.PartitionSpec.PartitionKey.valueOf(partitionKey_); + return result == null + ? com.google.cloud.asset.v1.PartitionSpec.PartitionKey.UNRECOGNIZED + : result; } /** + * + * *
          * The partition key for BigQuery partitioned table.
          * 
    * * .google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1; + * * @param value The partitionKey to set. * @return This builder for chaining. */ @@ -610,28 +681,31 @@ public Builder setPartitionKey(com.google.cloud.asset.v1.PartitionSpec.Partition if (value == null) { throw new NullPointerException(); } - + partitionKey_ = value.getNumber(); onChanged(); return this; } /** + * + * *
          * The partition key for BigQuery partitioned table.
          * 
    * * .google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1; + * * @return This builder for chaining. */ public Builder clearPartitionKey() { - + partitionKey_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -641,12 +715,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.PartitionSpec) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.PartitionSpec) private static final com.google.cloud.asset.v1.PartitionSpec DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.PartitionSpec(); } @@ -655,27 +729,27 @@ public static com.google.cloud.asset.v1.PartitionSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartitionSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartitionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -690,6 +764,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.PartitionSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpecOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpecOrBuilder.java similarity index 55% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpecOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpecOrBuilder.java index 0dd5bf8780fd..78bec335e2aa 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpecOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpecOrBuilder.java @@ -1,27 +1,49 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface PartitionSpecOrBuilder extends +public interface PartitionSpecOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.PartitionSpec) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The partition key for BigQuery partitioned table.
        * 
    * * .google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1; + * * @return The enum numeric value on the wire for partitionKey. */ int getPartitionKeyValue(); /** + * + * *
        * The partition key for BigQuery partitioned table.
        * 
    * * .google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1; + * * @return The partitionKey. */ com.google.cloud.asset.v1.PartitionSpec.PartitionKey getPartitionKey(); diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java similarity index 65% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java index 5d6ae1b2b918..97aa01169529 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestination.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * A Pub/Sub destination.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.PubsubDestination} */ -public final class PubsubDestination extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PubsubDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.PubsubDestination) PubsubDestinationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PubsubDestination.newBuilder() to construct. private PubsubDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PubsubDestination() { topic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PubsubDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_PubsubDestination_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_PubsubDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_PubsubDestination_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_PubsubDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.PubsubDestination.class, com.google.cloud.asset.v1.PubsubDestination.Builder.class); + com.google.cloud.asset.v1.PubsubDestination.class, + com.google.cloud.asset.v1.PubsubDestination.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; private volatile java.lang.Object topic_; /** + * + * *
        * The name of the Pub/Sub topic to publish to.
        * Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
        * 
    * * string topic = 1; + * * @return The topic. */ @java.lang.Override @@ -65,30 +87,30 @@ public java.lang.String getTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } } /** + * + * *
        * The name of the Pub/Sub topic to publish to.
        * Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
        * 
    * * string topic = 1; + * * @return The bytes for topic. */ @java.lang.Override - public com.google.protobuf.ByteString - getTopicBytes() { + public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topic_ = b; return b; } else { @@ -97,6 +119,7 @@ public java.lang.String getTopic() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +131,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } @@ -133,15 +155,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.PubsubDestination)) { return super.equals(obj); } - com.google.cloud.asset.v1.PubsubDestination other = (com.google.cloud.asset.v1.PubsubDestination) obj; + com.google.cloud.asset.v1.PubsubDestination other = + (com.google.cloud.asset.v1.PubsubDestination) obj; - if (!getTopic() - .equals(other.getTopic())) return false; + if (!getTopic().equals(other.getTopic())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,130 +182,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.PubsubDestination parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.PubsubDestination parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.PubsubDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.PubsubDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.PubsubDestination 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.asset.v1.PubsubDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.PubsubDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.PubsubDestination parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.PubsubDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.PubsubDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.PubsubDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.PubsubDestination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.PubsubDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.PubsubDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.PubsubDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * A Pub/Sub destination.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.PubsubDestination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.PubsubDestination) com.google.cloud.asset.v1.PubsubDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_PubsubDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_PubsubDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_PubsubDestination_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_PubsubDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.PubsubDestination.class, com.google.cloud.asset.v1.PubsubDestination.Builder.class); + com.google.cloud.asset.v1.PubsubDestination.class, + com.google.cloud.asset.v1.PubsubDestination.Builder.class); } // Construct using com.google.cloud.asset.v1.PubsubDestination.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +321,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_PubsubDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_PubsubDestination_descriptor; } @java.lang.Override @@ -314,7 +342,8 @@ public com.google.cloud.asset.v1.PubsubDestination build() { @java.lang.Override public com.google.cloud.asset.v1.PubsubDestination buildPartial() { - com.google.cloud.asset.v1.PubsubDestination result = new com.google.cloud.asset.v1.PubsubDestination(this); + com.google.cloud.asset.v1.PubsubDestination result = + new com.google.cloud.asset.v1.PubsubDestination(this); result.topic_ = topic_; onBuilt(); return result; @@ -324,38 +353,39 @@ public com.google.cloud.asset.v1.PubsubDestination buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.PubsubDestination) { - return mergeFrom((com.google.cloud.asset.v1.PubsubDestination)other); + return mergeFrom((com.google.cloud.asset.v1.PubsubDestination) other); } else { super.mergeFrom(other); return this; @@ -394,17 +424,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - topic_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + topic_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -417,19 +449,21 @@ public Builder mergeFrom( private java.lang.Object topic_ = ""; /** + * + * *
          * The name of the Pub/Sub topic to publish to.
          * Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
          * 
    * * string topic = 1; + * * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; @@ -438,21 +472,22 @@ public java.lang.String getTopic() { } } /** + * + * *
          * The name of the Pub/Sub topic to publish to.
          * Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
          * 
    * * string topic = 1; + * * @return The bytes for topic. */ - public com.google.protobuf.ByteString - getTopicBytes() { + public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topic_ = b; return b; } else { @@ -460,64 +495,71 @@ public java.lang.String getTopic() { } } /** + * + * *
          * The name of the Pub/Sub topic to publish to.
          * Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
          * 
    * * string topic = 1; + * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic( - java.lang.String value) { + public Builder setTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; onChanged(); return this; } /** + * + * *
          * The name of the Pub/Sub topic to publish to.
          * Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
          * 
    * * string topic = 1; + * * @return This builder for chaining. */ public Builder clearTopic() { - + topic_ = getDefaultInstance().getTopic(); onChanged(); return this; } /** + * + * *
          * The name of the Pub/Sub topic to publish to.
          * Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
          * 
    * * string topic = 1; + * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { + public Builder setTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -527,12 +569,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.PubsubDestination) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.PubsubDestination) private static final com.google.cloud.asset.v1.PubsubDestination DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.PubsubDestination(); } @@ -541,27 +583,27 @@ public static com.google.cloud.asset.v1.PubsubDestination getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PubsubDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PubsubDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,6 +618,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.PubsubDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestinationOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestinationOrBuilder.java similarity index 50% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestinationOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestinationOrBuilder.java index 05bb241e5e96..ba1e2e54c2b7 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestinationOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PubsubDestinationOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface PubsubDestinationOrBuilder extends +public interface PubsubDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.PubsubDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The name of the Pub/Sub topic to publish to.
        * Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
        * 
    * * string topic = 1; + * * @return The topic. */ java.lang.String getTopic(); /** + * + * *
        * The name of the Pub/Sub topic to publish to.
        * Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
        * 
    * * string topic = 1; + * * @return The bytes for topic. */ - com.google.protobuf.ByteString - getTopicBytes(); + com.google.protobuf.ByteString getTopicBytes(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfig.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfig.java similarity index 68% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfig.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfig.java index ba172c9e95a9..f42d76968f9f 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfig.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfig.java @@ -1,101 +1,132 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * Output configuration query assets.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.QueryAssetsOutputConfig} */ -public final class QueryAssetsOutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class QueryAssetsOutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.QueryAssetsOutputConfig) QueryAssetsOutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QueryAssetsOutputConfig.newBuilder() to construct. private QueryAssetsOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private QueryAssetsOutputConfig() { - } + + private QueryAssetsOutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new QueryAssetsOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.QueryAssetsOutputConfig.class, com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder.class); + com.google.cloud.asset.v1.QueryAssetsOutputConfig.class, + com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder.class); } - public interface BigQueryDestinationOrBuilder extends + public interface BigQueryDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * Required. The BigQuery dataset where the query results will be saved. It has the
          * format of "projects/{projectId}/datasets/{datasetId}".
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The dataset. */ java.lang.String getDataset(); /** + * + * *
          * Required. The BigQuery dataset where the query results will be saved. It has the
          * format of "projects/{projectId}/datasets/{datasetId}".
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for dataset. */ - com.google.protobuf.ByteString - getDatasetBytes(); + com.google.protobuf.ByteString getDatasetBytes(); /** + * + * *
          * Required. The BigQuery table where the query results will be saved. If this table
          * does not exist, a new table with the given name will be created.
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The table. */ java.lang.String getTable(); /** + * + * *
          * Required. The BigQuery table where the query results will be saved. If this table
          * does not exist, a new table with the given name will be created.
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for table. */ - com.google.protobuf.ByteString - getTableBytes(); + com.google.protobuf.ByteString getTableBytes(); /** + * + * *
          * Specifies the action that occurs if the destination table or partition
          * already exists. The following values are supported:
    @@ -109,10 +140,13 @@ public interface BigQueryDestinationOrBuilder extends
          * 
    * * string write_disposition = 3; + * * @return The writeDisposition. */ java.lang.String getWriteDisposition(); /** + * + * *
          * Specifies the action that occurs if the destination table or partition
          * already exists. The following values are supported:
    @@ -126,27 +160,30 @@ public interface BigQueryDestinationOrBuilder extends
          * 
    * * string write_disposition = 3; + * * @return The bytes for writeDisposition. */ - com.google.protobuf.ByteString - getWriteDispositionBytes(); + com.google.protobuf.ByteString getWriteDispositionBytes(); } /** + * + * *
        * BigQuery destination.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination} */ - public static final class BigQueryDestination extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class BigQueryDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination) BigQueryDestinationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BigQueryDestination.newBuilder() to construct. private BigQueryDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BigQueryDestination() { dataset_ = ""; table_ = ""; @@ -155,38 +192,42 @@ private BigQueryDestination() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BigQueryDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.class, com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder.class); + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.class, + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder.class); } public static final int DATASET_FIELD_NUMBER = 1; private volatile java.lang.Object dataset_; /** + * + * *
          * Required. The BigQuery dataset where the query results will be saved. It has the
          * format of "projects/{projectId}/datasets/{datasetId}".
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The dataset. */ @java.lang.Override @@ -195,30 +236,30 @@ public java.lang.String getDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; } } /** + * + * *
          * Required. The BigQuery dataset where the query results will be saved. It has the
          * format of "projects/{projectId}/datasets/{datasetId}".
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for dataset. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatasetBytes() { + public com.google.protobuf.ByteString getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataset_ = b; return b; } else { @@ -229,12 +270,15 @@ public java.lang.String getDataset() { public static final int TABLE_FIELD_NUMBER = 2; private volatile java.lang.Object table_; /** + * + * *
          * Required. The BigQuery table where the query results will be saved. If this table
          * does not exist, a new table with the given name will be created.
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The table. */ @java.lang.Override @@ -243,30 +287,30 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** + * + * *
          * Required. The BigQuery table where the query results will be saved. If this table
          * does not exist, a new table with the given name will be created.
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString - getTableBytes() { + public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); table_ = b; return b; } else { @@ -277,6 +321,8 @@ public java.lang.String getTable() { public static final int WRITE_DISPOSITION_FIELD_NUMBER = 3; private volatile java.lang.Object writeDisposition_; /** + * + * *
          * Specifies the action that occurs if the destination table or partition
          * already exists. The following values are supported:
    @@ -290,6 +336,7 @@ public java.lang.String getTable() {
          * 
    * * string write_disposition = 3; + * * @return The writeDisposition. */ @java.lang.Override @@ -298,14 +345,15 @@ public java.lang.String getWriteDisposition() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeDisposition_ = s; return s; } } /** + * + * *
          * Specifies the action that occurs if the destination table or partition
          * already exists. The following values are supported:
    @@ -319,16 +367,15 @@ public java.lang.String getWriteDisposition() {
          * 
    * * string write_disposition = 3; + * * @return The bytes for writeDisposition. */ @java.lang.Override - public com.google.protobuf.ByteString - getWriteDispositionBytes() { + public com.google.protobuf.ByteString getWriteDispositionBytes() { java.lang.Object ref = writeDisposition_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); writeDisposition_ = b; return b; } else { @@ -337,6 +384,7 @@ public java.lang.String getWriteDisposition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -348,8 +396,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); } @@ -385,19 +432,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination)) { return super.equals(obj); } - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination other = (com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination) obj; - - if (!getDataset() - .equals(other.getDataset())) return false; - if (!getTable() - .equals(other.getTable())) return false; - if (!getWriteDisposition() - .equals(other.getWriteDisposition())) return false; + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination other = + (com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination) obj; + + if (!getDataset().equals(other.getDataset())) return false; + if (!getTable().equals(other.getTable())) return false; + if (!getWriteDisposition().equals(other.getWriteDisposition())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -421,87 +466,95 @@ public int hashCode() { } public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination 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.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination 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.asset.v1.QueryAssetsOutputConfig.BigQueryDestination + 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.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -511,39 +564,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * BigQuery destination.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination) com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.class, com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder.class); + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.class, + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder + .class); } - // Construct using com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -557,19 +614,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination getDefaultInstanceForType() { - return com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.getDefaultInstance(); + public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination + getDefaultInstanceForType() { + return com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination build() { - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination result = buildPartial(); + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -578,7 +638,8 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bui @java.lang.Override public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination buildPartial() { - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination result = new com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination(this); + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination result = + new com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination(this); result.dataset_ = dataset_; result.table_ = table_; result.writeDisposition_ = writeDisposition_; @@ -590,46 +651,54 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bui public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.QueryAssetsOutputConfig.BigQueryDestination) { - return mergeFrom((com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination)other); + if (other + instanceof com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination) { + return mergeFrom( + (com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination other) { - if (other == com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination other) { + if (other + == com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination + .getDefaultInstance()) return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; onChanged(); @@ -668,27 +737,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - dataset_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - table_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - writeDisposition_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + dataset_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + table_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + writeDisposition_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -701,19 +774,21 @@ public Builder mergeFrom( private java.lang.Object dataset_ = ""; /** + * + * *
            * Required. The BigQuery dataset where the query results will be saved. It has the
            * format of "projects/{projectId}/datasets/{datasetId}".
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The dataset. */ public java.lang.String getDataset() { java.lang.Object ref = dataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; @@ -722,21 +797,22 @@ public java.lang.String getDataset() { } } /** + * + * *
            * Required. The BigQuery dataset where the query results will be saved. It has the
            * format of "projects/{projectId}/datasets/{datasetId}".
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for dataset. */ - public com.google.protobuf.ByteString - getDatasetBytes() { + public com.google.protobuf.ByteString getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataset_ = b; return b; } else { @@ -744,57 +820,64 @@ public java.lang.String getDataset() { } } /** + * + * *
            * Required. The BigQuery dataset where the query results will be saved. It has the
            * format of "projects/{projectId}/datasets/{datasetId}".
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The dataset to set. * @return This builder for chaining. */ - public Builder setDataset( - java.lang.String value) { + public Builder setDataset(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataset_ = value; onChanged(); return this; } /** + * + * *
            * Required. The BigQuery dataset where the query results will be saved. It has the
            * format of "projects/{projectId}/datasets/{datasetId}".
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDataset() { - + dataset_ = getDefaultInstance().getDataset(); onChanged(); return this; } /** + * + * *
            * Required. The BigQuery dataset where the query results will be saved. It has the
            * format of "projects/{projectId}/datasets/{datasetId}".
            * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for dataset to set. * @return This builder for chaining. */ - public Builder setDatasetBytes( - com.google.protobuf.ByteString value) { + public Builder setDatasetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; onChanged(); return this; @@ -802,19 +885,21 @@ public Builder setDatasetBytes( private java.lang.Object table_ = ""; /** + * + * *
            * Required. The BigQuery table where the query results will be saved. If this table
            * does not exist, a new table with the given name will be created.
            * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -823,21 +908,22 @@ public java.lang.String getTable() { } } /** + * + * *
            * Required. The BigQuery table where the query results will be saved. If this table
            * does not exist, a new table with the given name will be created.
            * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for table. */ - public com.google.protobuf.ByteString - getTableBytes() { + public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); table_ = b; return b; } else { @@ -845,57 +931,64 @@ public java.lang.String getTable() { } } /** + * + * *
            * Required. The BigQuery table where the query results will be saved. If this table
            * does not exist, a new table with the given name will be created.
            * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable( - java.lang.String value) { + public Builder setTable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + table_ = value; onChanged(); return this; } /** + * + * *
            * Required. The BigQuery table where the query results will be saved. If this table
            * does not exist, a new table with the given name will be created.
            * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTable() { - + table_ = getDefaultInstance().getTable(); onChanged(); return this; } /** + * + * *
            * Required. The BigQuery table where the query results will be saved. If this table
            * does not exist, a new table with the given name will be created.
            * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for table to set. * @return This builder for chaining. */ - public Builder setTableBytes( - com.google.protobuf.ByteString value) { + public Builder setTableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + table_ = value; onChanged(); return this; @@ -903,6 +996,8 @@ public Builder setTableBytes( private java.lang.Object writeDisposition_ = ""; /** + * + * *
            * Specifies the action that occurs if the destination table or partition
            * already exists. The following values are supported:
    @@ -916,13 +1011,13 @@ public Builder setTableBytes(
            * 
    * * string write_disposition = 3; + * * @return The writeDisposition. */ public java.lang.String getWriteDisposition() { java.lang.Object ref = writeDisposition_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeDisposition_ = s; return s; @@ -931,6 +1026,8 @@ public java.lang.String getWriteDisposition() { } } /** + * + * *
            * Specifies the action that occurs if the destination table or partition
            * already exists. The following values are supported:
    @@ -944,15 +1041,14 @@ public java.lang.String getWriteDisposition() {
            * 
    * * string write_disposition = 3; + * * @return The bytes for writeDisposition. */ - public com.google.protobuf.ByteString - getWriteDispositionBytes() { + public com.google.protobuf.ByteString getWriteDispositionBytes() { java.lang.Object ref = writeDisposition_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); writeDisposition_ = b; return b; } else { @@ -960,6 +1056,8 @@ public java.lang.String getWriteDisposition() { } } /** + * + * *
            * Specifies the action that occurs if the destination table or partition
            * already exists. The following values are supported:
    @@ -973,20 +1071,22 @@ public java.lang.String getWriteDisposition() {
            * 
    * * string write_disposition = 3; + * * @param value The writeDisposition to set. * @return This builder for chaining. */ - public Builder setWriteDisposition( - java.lang.String value) { + public Builder setWriteDisposition(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + writeDisposition_ = value; onChanged(); return this; } /** + * + * *
            * Specifies the action that occurs if the destination table or partition
            * already exists. The following values are supported:
    @@ -1000,15 +1100,18 @@ public Builder setWriteDisposition(
            * 
    * * string write_disposition = 3; + * * @return This builder for chaining. */ public Builder clearWriteDisposition() { - + writeDisposition_ = getDefaultInstance().getWriteDisposition(); onChanged(); return this; } /** + * + * *
            * Specifies the action that occurs if the destination table or partition
            * already exists. The following values are supported:
    @@ -1022,20 +1125,21 @@ public Builder clearWriteDisposition() {
            * 
    * * string write_disposition = 3; + * * @param value The bytes for writeDisposition to set. * @return This builder for chaining. */ - public Builder setWriteDispositionBytes( - com.google.protobuf.ByteString value) { + public Builder setWriteDispositionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + writeDisposition_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1048,41 +1152,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination) - private static final com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination DEFAULT_INSTANCE; + private static final com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination(); + DEFAULT_INSTANCE = + new com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination(); } - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination getDefaultInstance() { + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1094,20 +1202,26 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination getDefaultInstanceForType() { + public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 1; - private com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigqueryDestination_; + private com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination + bigqueryDestination_; /** + * + * *
        * BigQuery destination where the query results will be saved.
        * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * + * * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -1115,30 +1229,44 @@ public boolean hasBigqueryDestination() { return bigqueryDestination_ != null; } /** + * + * *
        * BigQuery destination where the query results will be saved.
        * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * + * * @return The bigqueryDestination. */ @java.lang.Override - public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination getBigqueryDestination() { - return bigqueryDestination_ == null ? com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.getDefaultInstance() : bigqueryDestination_; + public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination + getBigqueryDestination() { + return bigqueryDestination_ == null + ? com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.getDefaultInstance() + : bigqueryDestination_; } /** + * + * *
        * BigQuery destination where the query results will be saved.
        * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * */ @java.lang.Override - public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() { + public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { return getBigqueryDestination(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1150,8 +1278,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (bigqueryDestination_ != null) { output.writeMessage(1, getBigqueryDestination()); } @@ -1165,8 +1292,7 @@ public int getSerializedSize() { size = 0; if (bigqueryDestination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBigqueryDestination()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBigqueryDestination()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1176,17 +1302,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.QueryAssetsOutputConfig)) { return super.equals(obj); } - com.google.cloud.asset.v1.QueryAssetsOutputConfig other = (com.google.cloud.asset.v1.QueryAssetsOutputConfig) obj; + com.google.cloud.asset.v1.QueryAssetsOutputConfig other = + (com.google.cloud.asset.v1.QueryAssetsOutputConfig) obj; if (hasBigqueryDestination() != other.hasBigqueryDestination()) return false; if (hasBigqueryDestination()) { - if (!getBigqueryDestination() - .equals(other.getBigqueryDestination())) return false; + if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1209,129 +1335,135 @@ public int hashCode() { } public static com.google.cloud.asset.v1.QueryAssetsOutputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig 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.asset.v1.QueryAssetsOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.QueryAssetsOutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.QueryAssetsOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.QueryAssetsOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Output configuration query assets.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.QueryAssetsOutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.QueryAssetsOutputConfig) com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.QueryAssetsOutputConfig.class, com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder.class); + com.google.cloud.asset.v1.QueryAssetsOutputConfig.class, + com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder.class); } // Construct using com.google.cloud.asset.v1.QueryAssetsOutputConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1345,9 +1477,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor; } @java.lang.Override @@ -1366,7 +1498,8 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfig build() { @java.lang.Override public com.google.cloud.asset.v1.QueryAssetsOutputConfig buildPartial() { - com.google.cloud.asset.v1.QueryAssetsOutputConfig result = new com.google.cloud.asset.v1.QueryAssetsOutputConfig(this); + com.google.cloud.asset.v1.QueryAssetsOutputConfig result = + new com.google.cloud.asset.v1.QueryAssetsOutputConfig(this); if (bigqueryDestinationBuilder_ == null) { result.bigqueryDestination_ = bigqueryDestination_; } else { @@ -1380,38 +1513,39 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.QueryAssetsOutputConfig) { - return mergeFrom((com.google.cloud.asset.v1.QueryAssetsOutputConfig)other); + return mergeFrom((com.google.cloud.asset.v1.QueryAssetsOutputConfig) other); } else { super.mergeFrom(other); return this; @@ -1419,7 +1553,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.QueryAssetsOutputConfig other) { - if (other == com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance()) + return this; if (other.hasBigqueryDestination()) { mergeBigqueryDestination(other.getBigqueryDestination()); } @@ -1449,19 +1584,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getBigqueryDestinationFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage( + getBigqueryDestinationFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1472,43 +1608,66 @@ public Builder mergeFrom( return this; } - private com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigqueryDestination_; + private com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination + bigqueryDestination_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination, com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder, com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder> bigqueryDestinationBuilder_; + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination, + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder, + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder> + bigqueryDestinationBuilder_; /** + * + * *
          * BigQuery destination where the query results will be saved.
          * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * + * * @return Whether the bigqueryDestination field is set. */ public boolean hasBigqueryDestination() { return bigqueryDestinationBuilder_ != null || bigqueryDestination_ != null; } /** + * + * *
          * BigQuery destination where the query results will be saved.
          * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * + * * @return The bigqueryDestination. */ - public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination getBigqueryDestination() { + public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination + getBigqueryDestination() { if (bigqueryDestinationBuilder_ == null) { - return bigqueryDestination_ == null ? com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.getDefaultInstance() : bigqueryDestination_; + return bigqueryDestination_ == null + ? com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination + .getDefaultInstance() + : bigqueryDestination_; } else { return bigqueryDestinationBuilder_.getMessage(); } } /** + * + * *
          * BigQuery destination where the query results will be saved.
          * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * */ - public Builder setBigqueryDestination(com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination value) { + public Builder setBigqueryDestination( + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination value) { if (bigqueryDestinationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1522,14 +1681,19 @@ public Builder setBigqueryDestination(com.google.cloud.asset.v1.QueryAssetsOutpu return this; } /** + * + * *
          * BigQuery destination where the query results will be saved.
          * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * */ public Builder setBigqueryDestination( - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder builderForValue) { + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder + builderForValue) { if (bigqueryDestinationBuilder_ == null) { bigqueryDestination_ = builderForValue.build(); onChanged(); @@ -1540,17 +1704,25 @@ public Builder setBigqueryDestination( return this; } /** + * + * *
          * BigQuery destination where the query results will be saved.
          * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * */ - public Builder mergeBigqueryDestination(com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination value) { + public Builder mergeBigqueryDestination( + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination value) { if (bigqueryDestinationBuilder_ == null) { if (bigqueryDestination_ != null) { bigqueryDestination_ = - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.newBuilder(bigqueryDestination_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.newBuilder( + bigqueryDestination_) + .mergeFrom(value) + .buildPartial(); } else { bigqueryDestination_ = value; } @@ -1562,11 +1734,15 @@ public Builder mergeBigqueryDestination(com.google.cloud.asset.v1.QueryAssetsOut return this; } /** + * + * *
          * BigQuery destination where the query results will be saved.
          * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * */ public Builder clearBigqueryDestination() { if (bigqueryDestinationBuilder_ == null) { @@ -1580,55 +1756,74 @@ public Builder clearBigqueryDestination() { return this; } /** + * + * *
          * BigQuery destination where the query results will be saved.
          * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * */ - public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder getBigqueryDestinationBuilder() { - + public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder + getBigqueryDestinationBuilder() { + onChanged(); return getBigqueryDestinationFieldBuilder().getBuilder(); } /** + * + * *
          * BigQuery destination where the query results will be saved.
          * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * */ - public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() { + public com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { if (bigqueryDestinationBuilder_ != null) { return bigqueryDestinationBuilder_.getMessageOrBuilder(); } else { - return bigqueryDestination_ == null ? - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.getDefaultInstance() : bigqueryDestination_; + return bigqueryDestination_ == null + ? com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination + .getDefaultInstance() + : bigqueryDestination_; } } /** + * + * *
          * BigQuery destination where the query results will be saved.
          * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination, com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder, com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder> + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination, + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder, + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder> getBigqueryDestinationFieldBuilder() { if (bigqueryDestinationBuilder_ == null) { - bigqueryDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination, com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder, com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder>( - getBigqueryDestination(), - getParentForChildren(), - isClean()); + bigqueryDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination, + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination.Builder, + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder>( + getBigqueryDestination(), getParentForChildren(), isClean()); bigqueryDestination_ = null; } return bigqueryDestinationBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1638,12 +1833,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.QueryAssetsOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.QueryAssetsOutputConfig) private static final com.google.cloud.asset.v1.QueryAssetsOutputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.QueryAssetsOutputConfig(); } @@ -1652,27 +1847,27 @@ public static com.google.cloud.asset.v1.QueryAssetsOutputConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryAssetsOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryAssetsOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1687,6 +1882,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.QueryAssetsOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfigOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfigOrBuilder.java new file mode 100644 index 000000000000..20ecdf921721 --- /dev/null +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfigOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1/asset_service.proto + +package com.google.cloud.asset.v1; + +public interface QueryAssetsOutputConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.QueryAssetsOutputConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * BigQuery destination where the query results will be saved.
    +   * 
    + * + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * + * + * @return Whether the bigqueryDestination field is set. + */ + boolean hasBigqueryDestination(); + /** + * + * + *
    +   * BigQuery destination where the query results will be saved.
    +   * 
    + * + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * + * + * @return The bigqueryDestination. + */ + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination getBigqueryDestination(); + /** + * + * + *
    +   * BigQuery destination where the query results will be saved.
    +   * 
    + * + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; + * + */ + com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder(); +} diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequest.java similarity index 74% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequest.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequest.java index 692b5b25671c..601e85137530 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * QueryAssets request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.QueryAssetsRequest} */ -public final class QueryAssetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class QueryAssetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.QueryAssetsRequest) QueryAssetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QueryAssetsRequest.newBuilder() to construct. private QueryAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private QueryAssetsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,38 +44,42 @@ private QueryAssetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new QueryAssetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_QueryAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_QueryAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.QueryAssetsRequest.class, com.google.cloud.asset.v1.QueryAssetsRequest.Builder.class); + com.google.cloud.asset.v1.QueryAssetsRequest.class, + com.google.cloud.asset.v1.QueryAssetsRequest.Builder.class); } private int queryCase_ = 0; private java.lang.Object query_; + public enum QueryCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STATEMENT(2), JOB_REFERENCE(3), QUERY_NOT_SET(0); private final int value; + private QueryCase(int value) { this.value = value; } @@ -73,32 +95,38 @@ public static QueryCase valueOf(int value) { public static QueryCase forNumber(int value) { switch (value) { - case 2: return STATEMENT; - case 3: return JOB_REFERENCE; - case 0: return QUERY_NOT_SET; - default: return null; + case 2: + return STATEMENT; + case 3: + return JOB_REFERENCE; + case 0: + return QUERY_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public QueryCase - getQueryCase() { - return QueryCase.forNumber( - queryCase_); + public QueryCase getQueryCase() { + return QueryCase.forNumber(queryCase_); } private int timeCase_ = 0; private java.lang.Object time_; + public enum TimeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { READ_TIME_WINDOW(7), READ_TIME(8), TIME_NOT_SET(0); private final int value; + private TimeCase(int value) { this.value = value; } @@ -114,26 +142,31 @@ public static TimeCase valueOf(int value) { public static TimeCase forNumber(int value) { switch (value) { - case 7: return READ_TIME_WINDOW; - case 8: return READ_TIME; - case 0: return TIME_NOT_SET; - default: return null; + case 7: + return READ_TIME_WINDOW; + case 8: + return READ_TIME; + case 0: + return TIME_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public TimeCase - getTimeCase() { - return TimeCase.forNumber( - timeCase_); + public TimeCase getTimeCase() { + return TimeCase.forNumber(timeCase_); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
        * Required. The relative name of the root asset. This can only be an
        * organization number (such as "organizations/123"), a project ID (such as
    @@ -142,7 +175,10 @@ public int getNumber() {
        * Only assets belonging to the `parent` will be returned.
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -151,14 +187,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
        * Required. The relative name of the root asset. This can only be an
        * organization number (such as "organizations/123"), a project ID (such as
    @@ -167,17 +204,18 @@ public java.lang.String getParent() {
        * Only assets belonging to the `parent` will be returned.
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -187,24 +225,30 @@ public java.lang.String getParent() { public static final int STATEMENT_FIELD_NUMBER = 2; /** + * + * *
        * Optional. A SQL statement that's compatible with [BigQuery Standard
        * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
        * 
    * * string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the statement field is set. */ public boolean hasStatement() { return queryCase_ == 2; } /** + * + * *
        * Optional. A SQL statement that's compatible with [BigQuery Standard
        * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
        * 
    * * string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The statement. */ public java.lang.String getStatement() { @@ -215,8 +259,7 @@ public java.lang.String getStatement() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (queryCase_ == 2) { query_ = s; @@ -225,24 +268,25 @@ public java.lang.String getStatement() { } } /** + * + * *
        * Optional. A SQL statement that's compatible with [BigQuery Standard
        * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
        * 
    * * string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for statement. */ - public com.google.protobuf.ByteString - getStatementBytes() { + public com.google.protobuf.ByteString getStatementBytes() { java.lang.Object ref = ""; if (queryCase_ == 2) { ref = query_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (queryCase_ == 2) { query_ = b; } @@ -254,24 +298,30 @@ public java.lang.String getStatement() { public static final int JOB_REFERENCE_FIELD_NUMBER = 3; /** + * + * *
        * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
        * previous `QueryAssets` call.
        * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the jobReference field is set. */ public boolean hasJobReference() { return queryCase_ == 3; } /** + * + * *
        * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
        * previous `QueryAssets` call.
        * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The jobReference. */ public java.lang.String getJobReference() { @@ -282,8 +332,7 @@ public java.lang.String getJobReference() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (queryCase_ == 3) { query_ = s; @@ -292,24 +341,25 @@ public java.lang.String getJobReference() { } } /** + * + * *
        * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
        * previous `QueryAssets` call.
        * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for jobReference. */ - public com.google.protobuf.ByteString - getJobReferenceBytes() { + public com.google.protobuf.ByteString getJobReferenceBytes() { java.lang.Object ref = ""; if (queryCase_ == 3) { ref = query_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (queryCase_ == 3) { query_ = b; } @@ -322,6 +372,8 @@ public java.lang.String getJobReference() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** + * + * *
        * Optional. The maximum number of rows to return in the results. Responses are limited
        * to 10 MB and 1000 rows.
    @@ -331,6 +383,7 @@ public java.lang.String getJobReference() {
        * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -341,12 +394,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 5; private volatile java.lang.Object pageToken_; /** + * + * *
        * Optional. A page token received from previous `QueryAssets`.
        * The field will be ignored when [output_config] is specified.
        * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -355,30 +411,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
        * Optional. A page token received from previous `QueryAssets`.
        * The field will be ignored when [output_config] is specified.
        * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -389,6 +445,8 @@ public java.lang.String getPageToken() { public static final int TIMEOUT_FIELD_NUMBER = 6; private com.google.protobuf.Duration timeout_; /** + * + * *
        * Optional. Specifies the maximum amount of time that the client is willing to wait
        * for the query to complete. By default, this limit is 5 min for the first
    @@ -403,6 +461,7 @@ public java.lang.String getPageToken() {
        * 
    * * .google.protobuf.Duration timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the timeout field is set. */ @java.lang.Override @@ -410,6 +469,8 @@ public boolean hasTimeout() { return timeout_ != null; } /** + * + * *
        * Optional. Specifies the maximum amount of time that the client is willing to wait
        * for the query to complete. By default, this limit is 5 min for the first
    @@ -424,6 +485,7 @@ public boolean hasTimeout() {
        * 
    * * .google.protobuf.Duration timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The timeout. */ @java.lang.Override @@ -431,6 +493,8 @@ public com.google.protobuf.Duration getTimeout() { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } /** + * + * *
        * Optional. Specifies the maximum amount of time that the client is willing to wait
        * for the query to complete. By default, this limit is 5 min for the first
    @@ -453,13 +517,18 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
     
       public static final int READ_TIME_WINDOW_FIELD_NUMBER = 7;
       /**
    +   *
    +   *
        * 
        * Optional. [start_time] is required. [start_time] must be less than [end_time]
        * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
        * Maximum permitted time range is 7 days.
        * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readTimeWindow field is set. */ @java.lang.Override @@ -467,46 +536,59 @@ public boolean hasReadTimeWindow() { return timeCase_ == 7; } /** + * + * *
        * Optional. [start_time] is required. [start_time] must be less than [end_time]
        * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
        * Maximum permitted time range is 7 days.
        * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readTimeWindow. */ @java.lang.Override public com.google.cloud.asset.v1.TimeWindow getReadTimeWindow() { if (timeCase_ == 7) { - return (com.google.cloud.asset.v1.TimeWindow) time_; + return (com.google.cloud.asset.v1.TimeWindow) time_; } return com.google.cloud.asset.v1.TimeWindow.getDefaultInstance(); } /** + * + * *
        * Optional. [start_time] is required. [start_time] must be less than [end_time]
        * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
        * Maximum permitted time range is 7 days.
        * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder() { if (timeCase_ == 7) { - return (com.google.cloud.asset.v1.TimeWindow) time_; + return (com.google.cloud.asset.v1.TimeWindow) time_; } return com.google.cloud.asset.v1.TimeWindow.getDefaultInstance(); } public static final int READ_TIME_FIELD_NUMBER = 8; /** + * + * *
        * Optional. Queries cloud assets as they appeared at the specified point in time.
        * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -514,31 +596,38 @@ public boolean hasReadTime() { return timeCase_ == 8; } /** + * + * *
        * Optional. Queries cloud assets as they appeared at the specified point in time.
        * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readTime. */ @java.lang.Override public com.google.protobuf.Timestamp getReadTime() { if (timeCase_ == 8) { - return (com.google.protobuf.Timestamp) time_; + return (com.google.protobuf.Timestamp) time_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** + * + * *
        * Optional. Queries cloud assets as they appeared at the specified point in time.
        * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (timeCase_ == 8) { - return (com.google.protobuf.Timestamp) time_; + return (com.google.protobuf.Timestamp) time_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } @@ -546,6 +635,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 9; private com.google.cloud.asset.v1.QueryAssetsOutputConfig outputConfig_; /** + * + * *
        * Optional. Destination where the query results will be saved.
        * When this field is specified, the query results won't be saved in the
    @@ -556,7 +647,10 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
        * [QueryAssets] API call.
        * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -564,6 +658,8 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
        * Optional. Destination where the query results will be saved.
        * When this field is specified, the query results won't be saved in the
    @@ -574,14 +670,21 @@ public boolean hasOutputConfig() {
        * [QueryAssets] API call.
        * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.asset.v1.QueryAssetsOutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
        * Optional. Destination where the query results will be saved.
        * When this field is specified, the query results won't be saved in the
    @@ -592,7 +695,9 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfig getOutputConfig() {
        * [QueryAssets] API call.
        * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -600,6 +705,7 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder getOutputConfi } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -611,8 +717,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -659,27 +764,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, query_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); } if (timeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getTimeout()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getTimeout()); } if (timeCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.cloud.asset.v1.TimeWindow) time_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.asset.v1.TimeWindow) time_); } if (timeCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.protobuf.Timestamp) time_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.protobuf.Timestamp) time_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getOutputConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -689,38 +793,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.QueryAssetsRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.QueryAssetsRequest other = (com.google.cloud.asset.v1.QueryAssetsRequest) obj; + com.google.cloud.asset.v1.QueryAssetsRequest other = + (com.google.cloud.asset.v1.QueryAssetsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (hasTimeout() != other.hasTimeout()) return false; if (hasTimeout()) { - if (!getTimeout() - .equals(other.getTimeout())) return false; + if (!getTimeout().equals(other.getTimeout())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!getQueryCase().equals(other.getQueryCase())) return false; switch (queryCase_) { case 2: - if (!getStatement() - .equals(other.getStatement())) return false; + if (!getStatement().equals(other.getStatement())) return false; break; case 3: - if (!getJobReference() - .equals(other.getJobReference())) return false; + if (!getJobReference().equals(other.getJobReference())) return false; break; case 0: default: @@ -728,12 +826,10 @@ public boolean equals(final java.lang.Object obj) { if (!getTimeCase().equals(other.getTimeCase())) return false; switch (timeCase_) { case 7: - if (!getReadTimeWindow() - .equals(other.getReadTimeWindow())) return false; + if (!getReadTimeWindow().equals(other.getReadTimeWindow())) return false; break; case 8: - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; break; case 0: default: @@ -792,130 +888,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.QueryAssetsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.QueryAssetsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.QueryAssetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.QueryAssetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.QueryAssetsRequest 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.asset.v1.QueryAssetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.QueryAssetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.QueryAssetsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.QueryAssetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.QueryAssetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.QueryAssetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.QueryAssetsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.QueryAssetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.QueryAssetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.QueryAssetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * QueryAssets request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.QueryAssetsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.QueryAssetsRequest) com.google.cloud.asset.v1.QueryAssetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_QueryAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_QueryAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.QueryAssetsRequest.class, com.google.cloud.asset.v1.QueryAssetsRequest.Builder.class); + com.google.cloud.asset.v1.QueryAssetsRequest.class, + com.google.cloud.asset.v1.QueryAssetsRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.QueryAssetsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -951,9 +1053,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_QueryAssetsRequest_descriptor; } @java.lang.Override @@ -972,7 +1074,8 @@ public com.google.cloud.asset.v1.QueryAssetsRequest build() { @java.lang.Override public com.google.cloud.asset.v1.QueryAssetsRequest buildPartial() { - com.google.cloud.asset.v1.QueryAssetsRequest result = new com.google.cloud.asset.v1.QueryAssetsRequest(this); + com.google.cloud.asset.v1.QueryAssetsRequest result = + new com.google.cloud.asset.v1.QueryAssetsRequest(this); result.parent_ = parent_; if (queryCase_ == 2) { result.query_ = query_; @@ -1016,38 +1119,39 @@ public com.google.cloud.asset.v1.QueryAssetsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.QueryAssetsRequest) { - return mergeFrom((com.google.cloud.asset.v1.QueryAssetsRequest)other); + return mergeFrom((com.google.cloud.asset.v1.QueryAssetsRequest) other); } else { super.mergeFrom(other); return this; @@ -1074,34 +1178,40 @@ public Builder mergeFrom(com.google.cloud.asset.v1.QueryAssetsRequest other) { mergeOutputConfig(other.getOutputConfig()); } switch (other.getQueryCase()) { - case STATEMENT: { - queryCase_ = 2; - query_ = other.query_; - onChanged(); - break; - } - case JOB_REFERENCE: { - queryCase_ = 3; - query_ = other.query_; - onChanged(); - break; - } - case QUERY_NOT_SET: { - break; - } + case STATEMENT: + { + queryCase_ = 2; + query_ = other.query_; + onChanged(); + break; + } + case JOB_REFERENCE: + { + queryCase_ = 3; + query_ = other.query_; + onChanged(); + break; + } + case QUERY_NOT_SET: + { + break; + } } switch (other.getTimeCase()) { - case READ_TIME_WINDOW: { - mergeReadTimeWindow(other.getReadTimeWindow()); - break; - } - case READ_TIME: { - mergeReadTime(other.getReadTime()); - break; - } - case TIME_NOT_SET: { - break; - } + case READ_TIME_WINDOW: + { + mergeReadTimeWindow(other.getReadTimeWindow()); + break; + } + case READ_TIME: + { + mergeReadTime(other.getReadTime()); + break; + } + case TIME_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1129,67 +1239,69 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - queryCase_ = 2; - query_ = s; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - queryCase_ = 3; - query_ = s; - break; - } // case 26 - case 32: { - pageSize_ = input.readInt32(); - - break; - } // case 32 - case 42: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - input.readMessage( - getTimeoutFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 50 - case 58: { - input.readMessage( - getReadTimeWindowFieldBuilder().getBuilder(), - extensionRegistry); - timeCase_ = 7; - break; - } // case 58 - case 66: { - input.readMessage( - getReadTimeFieldBuilder().getBuilder(), - extensionRegistry); - timeCase_ = 8; - break; - } // case 66 - case 74: { - input.readMessage( - getOutputConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 74 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + queryCase_ = 2; + query_ = s; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + queryCase_ = 3; + query_ = s; + break; + } // case 26 + case 32: + { + pageSize_ = input.readInt32(); + + break; + } // case 32 + case 42: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + input.readMessage(getTimeoutFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 58: + { + input.readMessage(getReadTimeWindowFieldBuilder().getBuilder(), extensionRegistry); + timeCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage(getReadTimeFieldBuilder().getBuilder(), extensionRegistry); + timeCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1199,12 +1311,12 @@ public Builder mergeFrom( } // finally return this; } + private int queryCase_ = 0; private java.lang.Object query_; - public QueryCase - getQueryCase() { - return QueryCase.forNumber( - queryCase_); + + public QueryCase getQueryCase() { + return QueryCase.forNumber(queryCase_); } public Builder clearQuery() { @@ -1216,10 +1328,9 @@ public Builder clearQuery() { private int timeCase_ = 0; private java.lang.Object time_; - public TimeCase - getTimeCase() { - return TimeCase.forNumber( - timeCase_); + + public TimeCase getTimeCase() { + return TimeCase.forNumber(timeCase_); } public Builder clearTime() { @@ -1229,9 +1340,10 @@ public Builder clearTime() { return this; } - private java.lang.Object parent_ = ""; /** + * + * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -1240,14 +1352,16 @@ public Builder clearTime() {
          * Only assets belonging to the `parent` will be returned.
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1256,6 +1370,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -1264,16 +1380,17 @@ public java.lang.String getParent() {
          * Only assets belonging to the `parent` will be returned.
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1281,6 +1398,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -1289,21 +1408,25 @@ public java.lang.String getParent() {
          * Only assets belonging to the `parent` will be returned.
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -1312,16 +1435,21 @@ public Builder setParent(
          * Only assets belonging to the `parent` will be returned.
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -1330,29 +1458,34 @@ public Builder clearParent() {
          * Only assets belonging to the `parent` will be returned.
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } /** + * + * *
          * Optional. A SQL statement that's compatible with [BigQuery Standard
          * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
          * 
    * * string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the statement field is set. */ @java.lang.Override @@ -1360,12 +1493,15 @@ public boolean hasStatement() { return queryCase_ == 2; } /** + * + * *
          * Optional. A SQL statement that's compatible with [BigQuery Standard
          * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
          * 
    * * string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The statement. */ @java.lang.Override @@ -1375,8 +1511,7 @@ public java.lang.String getStatement() { ref = query_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (queryCase_ == 2) { query_ = s; @@ -1387,25 +1522,26 @@ public java.lang.String getStatement() { } } /** + * + * *
          * Optional. A SQL statement that's compatible with [BigQuery Standard
          * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
          * 
    * * string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for statement. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatementBytes() { + public com.google.protobuf.ByteString getStatementBytes() { java.lang.Object ref = ""; if (queryCase_ == 2) { ref = query_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (queryCase_ == 2) { query_ = b; } @@ -1415,32 +1551,37 @@ public java.lang.String getStatement() { } } /** + * + * *
          * Optional. A SQL statement that's compatible with [BigQuery Standard
          * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
          * 
    * * string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The statement to set. * @return This builder for chaining. */ - public Builder setStatement( - java.lang.String value) { + public Builder setStatement(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - queryCase_ = 2; + throw new NullPointerException(); + } + queryCase_ = 2; query_ = value; onChanged(); return this; } /** + * + * *
          * Optional. A SQL statement that's compatible with [BigQuery Standard
          * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
          * 
    * * string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearStatement() { @@ -1452,21 +1593,23 @@ public Builder clearStatement() { return this; } /** + * + * *
          * Optional. A SQL statement that's compatible with [BigQuery Standard
          * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
          * 
    * * string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for statement to set. * @return This builder for chaining. */ - public Builder setStatementBytes( - com.google.protobuf.ByteString value) { + public Builder setStatementBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); queryCase_ = 2; query_ = value; onChanged(); @@ -1474,12 +1617,15 @@ public Builder setStatementBytes( } /** + * + * *
          * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
          * previous `QueryAssets` call.
          * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the jobReference field is set. */ @java.lang.Override @@ -1487,12 +1633,15 @@ public boolean hasJobReference() { return queryCase_ == 3; } /** + * + * *
          * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
          * previous `QueryAssets` call.
          * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The jobReference. */ @java.lang.Override @@ -1502,8 +1651,7 @@ public java.lang.String getJobReference() { ref = query_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (queryCase_ == 3) { query_ = s; @@ -1514,25 +1662,26 @@ public java.lang.String getJobReference() { } } /** + * + * *
          * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
          * previous `QueryAssets` call.
          * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for jobReference. */ @java.lang.Override - public com.google.protobuf.ByteString - getJobReferenceBytes() { + public com.google.protobuf.ByteString getJobReferenceBytes() { java.lang.Object ref = ""; if (queryCase_ == 3) { ref = query_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (queryCase_ == 3) { query_ = b; } @@ -1542,32 +1691,37 @@ public java.lang.String getJobReference() { } } /** + * + * *
          * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
          * previous `QueryAssets` call.
          * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The jobReference to set. * @return This builder for chaining. */ - public Builder setJobReference( - java.lang.String value) { + public Builder setJobReference(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - queryCase_ = 3; + throw new NullPointerException(); + } + queryCase_ = 3; query_ = value; onChanged(); return this; } /** + * + * *
          * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
          * previous `QueryAssets` call.
          * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearJobReference() { @@ -1579,29 +1733,33 @@ public Builder clearJobReference() { return this; } /** + * + * *
          * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
          * previous `QueryAssets` call.
          * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for jobReference to set. * @return This builder for chaining. */ - public Builder setJobReferenceBytes( - com.google.protobuf.ByteString value) { + public Builder setJobReferenceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); queryCase_ = 3; query_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
          * Optional. The maximum number of rows to return in the results. Responses are limited
          * to 10 MB and 1000 rows.
    @@ -1611,6 +1769,7 @@ public Builder setJobReferenceBytes(
          * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -1618,6 +1777,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
          * Optional. The maximum number of rows to return in the results. Responses are limited
          * to 10 MB and 1000 rows.
    @@ -1627,16 +1788,19 @@ public int getPageSize() {
          * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
          * Optional. The maximum number of rows to return in the results. Responses are limited
          * to 10 MB and 1000 rows.
    @@ -1646,10 +1810,11 @@ public Builder setPageSize(int value) {
          * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1657,19 +1822,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
          * Optional. A page token received from previous `QueryAssets`.
          * The field will be ignored when [output_config] is specified.
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1678,21 +1845,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
          * Optional. A page token received from previous `QueryAssets`.
          * The field will be ignored when [output_config] is specified.
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1700,57 +1868,64 @@ public java.lang.String getPageToken() { } } /** + * + * *
          * Optional. A page token received from previous `QueryAssets`.
          * The field will be ignored when [output_config] is specified.
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
          * Optional. A page token received from previous `QueryAssets`.
          * The field will be ignored when [output_config] is specified.
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
          * Optional. A page token received from previous `QueryAssets`.
          * The field will be ignored when [output_config] is specified.
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1758,8 +1933,13 @@ public Builder setPageTokenBytes( private com.google.protobuf.Duration timeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + timeoutBuilder_; /** + * + * *
          * Optional. Specifies the maximum amount of time that the client is willing to wait
          * for the query to complete. By default, this limit is 5 min for the first
    @@ -1774,12 +1954,15 @@ public Builder setPageTokenBytes(
          * 
    * * .google.protobuf.Duration timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the timeout field is set. */ public boolean hasTimeout() { return timeoutBuilder_ != null || timeout_ != null; } /** + * + * *
          * Optional. Specifies the maximum amount of time that the client is willing to wait
          * for the query to complete. By default, this limit is 5 min for the first
    @@ -1794,6 +1977,7 @@ public boolean hasTimeout() {
          * 
    * * .google.protobuf.Duration timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { @@ -1804,6 +1988,8 @@ public com.google.protobuf.Duration getTimeout() { } } /** + * + * *
          * Optional. Specifies the maximum amount of time that the client is willing to wait
          * for the query to complete. By default, this limit is 5 min for the first
    @@ -1833,6 +2019,8 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Optional. Specifies the maximum amount of time that the client is willing to wait
          * for the query to complete. By default, this limit is 5 min for the first
    @@ -1848,8 +2036,7 @@ public Builder setTimeout(com.google.protobuf.Duration value) {
          *
          * .google.protobuf.Duration timeout = 6 [(.google.api.field_behavior) = OPTIONAL];
          */
    -    public Builder setTimeout(
    -        com.google.protobuf.Duration.Builder builderForValue) {
    +    public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) {
           if (timeoutBuilder_ == null) {
             timeout_ = builderForValue.build();
             onChanged();
    @@ -1860,6 +2047,8 @@ public Builder setTimeout(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Optional. Specifies the maximum amount of time that the client is willing to wait
          * for the query to complete. By default, this limit is 5 min for the first
    @@ -1879,7 +2068,7 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) {
           if (timeoutBuilder_ == null) {
             if (timeout_ != null) {
               timeout_ =
    -            com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial();
    +              com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial();
             } else {
               timeout_ = value;
             }
    @@ -1891,6 +2080,8 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Optional. Specifies the maximum amount of time that the client is willing to wait
          * for the query to complete. By default, this limit is 5 min for the first
    @@ -1918,6 +2109,8 @@ public Builder clearTimeout() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Optional. Specifies the maximum amount of time that the client is willing to wait
          * for the query to complete. By default, this limit is 5 min for the first
    @@ -1934,11 +2127,13 @@ public Builder clearTimeout() {
          * .google.protobuf.Duration timeout = 6 [(.google.api.field_behavior) = OPTIONAL];
          */
         public com.google.protobuf.Duration.Builder getTimeoutBuilder() {
    -      
    +
           onChanged();
           return getTimeoutFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Optional. Specifies the maximum amount of time that the client is willing to wait
          * for the query to complete. By default, this limit is 5 min for the first
    @@ -1958,11 +2153,12 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
           if (timeoutBuilder_ != null) {
             return timeoutBuilder_.getMessageOrBuilder();
           } else {
    -        return timeout_ == null ?
    -            com.google.protobuf.Duration.getDefaultInstance() : timeout_;
    +        return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_;
           }
         }
         /**
    +     *
    +     *
          * 
          * Optional. Specifies the maximum amount of time that the client is willing to wait
          * for the query to complete. By default, this limit is 5 min for the first
    @@ -1979,29 +2175,40 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
          * .google.protobuf.Duration timeout = 6 [(.google.api.field_behavior) = OPTIONAL];
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
    +            com.google.protobuf.Duration,
    +            com.google.protobuf.Duration.Builder,
    +            com.google.protobuf.DurationOrBuilder>
             getTimeoutFieldBuilder() {
           if (timeoutBuilder_ == null) {
    -        timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
    -                getTimeout(),
    -                getParentForChildren(),
    -                isClean());
    +        timeoutBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.Duration,
    +                com.google.protobuf.Duration.Builder,
    +                com.google.protobuf.DurationOrBuilder>(
    +                getTimeout(), getParentForChildren(), isClean());
             timeout_ = null;
           }
           return timeoutBuilder_;
         }
     
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1.TimeWindow, com.google.cloud.asset.v1.TimeWindow.Builder, com.google.cloud.asset.v1.TimeWindowOrBuilder> readTimeWindowBuilder_;
    +            com.google.cloud.asset.v1.TimeWindow,
    +            com.google.cloud.asset.v1.TimeWindow.Builder,
    +            com.google.cloud.asset.v1.TimeWindowOrBuilder>
    +        readTimeWindowBuilder_;
         /**
    +     *
    +     *
          * 
          * Optional. [start_time] is required. [start_time] must be less than [end_time]
          * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
          * Maximum permitted time range is 7 days.
          * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readTimeWindow field is set. */ @java.lang.Override @@ -2009,13 +2216,18 @@ public boolean hasReadTimeWindow() { return timeCase_ == 7; } /** + * + * *
          * Optional. [start_time] is required. [start_time] must be less than [end_time]
          * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
          * Maximum permitted time range is 7 days.
          * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readTimeWindow. */ @java.lang.Override @@ -2033,13 +2245,17 @@ public com.google.cloud.asset.v1.TimeWindow getReadTimeWindow() { } } /** + * + * *
          * Optional. [start_time] is required. [start_time] must be less than [end_time]
          * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
          * Maximum permitted time range is 7 days.
          * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReadTimeWindow(com.google.cloud.asset.v1.TimeWindow value) { if (readTimeWindowBuilder_ == null) { @@ -2055,16 +2271,19 @@ public Builder setReadTimeWindow(com.google.cloud.asset.v1.TimeWindow value) { return this; } /** + * + * *
          * Optional. [start_time] is required. [start_time] must be less than [end_time]
          * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
          * Maximum permitted time range is 7 days.
          * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setReadTimeWindow( - com.google.cloud.asset.v1.TimeWindow.Builder builderForValue) { + public Builder setReadTimeWindow(com.google.cloud.asset.v1.TimeWindow.Builder builderForValue) { if (readTimeWindowBuilder_ == null) { time_ = builderForValue.build(); onChanged(); @@ -2075,20 +2294,26 @@ public Builder setReadTimeWindow( return this; } /** + * + * *
          * Optional. [start_time] is required. [start_time] must be less than [end_time]
          * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
          * Maximum permitted time range is 7 days.
          * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeReadTimeWindow(com.google.cloud.asset.v1.TimeWindow value) { if (readTimeWindowBuilder_ == null) { - if (timeCase_ == 7 && - time_ != com.google.cloud.asset.v1.TimeWindow.getDefaultInstance()) { - time_ = com.google.cloud.asset.v1.TimeWindow.newBuilder((com.google.cloud.asset.v1.TimeWindow) time_) - .mergeFrom(value).buildPartial(); + if (timeCase_ == 7 && time_ != com.google.cloud.asset.v1.TimeWindow.getDefaultInstance()) { + time_ = + com.google.cloud.asset.v1.TimeWindow.newBuilder( + (com.google.cloud.asset.v1.TimeWindow) time_) + .mergeFrom(value) + .buildPartial(); } else { time_ = value; } @@ -2104,13 +2329,17 @@ public Builder mergeReadTimeWindow(com.google.cloud.asset.v1.TimeWindow value) { return this; } /** + * + * *
          * Optional. [start_time] is required. [start_time] must be less than [end_time]
          * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
          * Maximum permitted time range is 7 days.
          * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearReadTimeWindow() { if (readTimeWindowBuilder_ == null) { @@ -2129,25 +2358,33 @@ public Builder clearReadTimeWindow() { return this; } /** + * + * *
          * Optional. [start_time] is required. [start_time] must be less than [end_time]
          * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
          * Maximum permitted time range is 7 days.
          * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.asset.v1.TimeWindow.Builder getReadTimeWindowBuilder() { return getReadTimeWindowFieldBuilder().getBuilder(); } /** + * + * *
          * Optional. [start_time] is required. [start_time] must be less than [end_time]
          * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
          * Maximum permitted time range is 7 days.
          * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder() { @@ -2161,41 +2398,56 @@ public com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder( } } /** + * + * *
          * Optional. [start_time] is required. [start_time] must be less than [end_time]
          * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
          * Maximum permitted time range is 7 days.
          * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.TimeWindow, com.google.cloud.asset.v1.TimeWindow.Builder, com.google.cloud.asset.v1.TimeWindowOrBuilder> + com.google.cloud.asset.v1.TimeWindow, + com.google.cloud.asset.v1.TimeWindow.Builder, + com.google.cloud.asset.v1.TimeWindowOrBuilder> getReadTimeWindowFieldBuilder() { if (readTimeWindowBuilder_ == null) { if (!(timeCase_ == 7)) { time_ = com.google.cloud.asset.v1.TimeWindow.getDefaultInstance(); } - readTimeWindowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.TimeWindow, com.google.cloud.asset.v1.TimeWindow.Builder, com.google.cloud.asset.v1.TimeWindowOrBuilder>( - (com.google.cloud.asset.v1.TimeWindow) time_, - getParentForChildren(), - isClean()); + readTimeWindowBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.TimeWindow, + com.google.cloud.asset.v1.TimeWindow.Builder, + com.google.cloud.asset.v1.TimeWindowOrBuilder>( + (com.google.cloud.asset.v1.TimeWindow) time_, getParentForChildren(), isClean()); time_ = null; } timeCase_ = 7; - onChanged();; + onChanged(); + ; return readTimeWindowBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
          * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -2203,11 +2455,15 @@ public boolean hasReadTime() { return timeCase_ == 8; } /** + * + * *
          * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readTime. */ @java.lang.Override @@ -2225,11 +2481,14 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
          * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { @@ -2245,14 +2504,16 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setReadTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { time_ = builderForValue.build(); onChanged(); @@ -2263,18 +2524,22 @@ public Builder setReadTime( return this; } /** + * + * *
          * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { - if (timeCase_ == 8 && - time_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - time_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) time_) - .mergeFrom(value).buildPartial(); + if (timeCase_ == 8 && time_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + time_ = + com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) time_) + .mergeFrom(value) + .buildPartial(); } else { time_ = value; } @@ -2290,11 +2555,14 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearReadTime() { if (readTimeBuilder_ == null) { @@ -2313,21 +2581,27 @@ public Builder clearReadTime() { return this; } /** + * + * *
          * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { return getReadTimeFieldBuilder().getBuilder(); } /** + * + * *
          * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { @@ -2341,35 +2615,47 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { } } /** + * + * *
          * Optional. Queries cloud assets as they appeared at the specified point in time.
          * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { if (!(timeCase_ == 8)) { time_ = com.google.protobuf.Timestamp.getDefaultInstance(); } - readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - (com.google.protobuf.Timestamp) time_, - getParentForChildren(), - isClean()); + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) time_, getParentForChildren(), isClean()); time_ = null; } timeCase_ = 8; - onChanged();; + onChanged(); + ; return readTimeBuilder_; } private com.google.cloud.asset.v1.QueryAssetsOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.QueryAssetsOutputConfig, com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder, com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.asset.v1.QueryAssetsOutputConfig, + com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder, + com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
          * Optional. Destination where the query results will be saved.
          * When this field is specified, the query results won't be saved in the
    @@ -2380,13 +2666,18 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
          * [QueryAssets] API call.
          * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
          * Optional. Destination where the query results will be saved.
          * When this field is specified, the query results won't be saved in the
    @@ -2397,17 +2688,24 @@ public boolean hasOutputConfig() {
          * [QueryAssets] API call.
          * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The outputConfig. */ public com.google.cloud.asset.v1.QueryAssetsOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
          * Optional. Destination where the query results will be saved.
          * When this field is specified, the query results won't be saved in the
    @@ -2418,7 +2716,9 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfig getOutputConfig() {
          * [QueryAssets] API call.
          * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOutputConfig(com.google.cloud.asset.v1.QueryAssetsOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -2434,6 +2734,8 @@ public Builder setOutputConfig(com.google.cloud.asset.v1.QueryAssetsOutputConfig return this; } /** + * + * *
          * Optional. Destination where the query results will be saved.
          * When this field is specified, the query results won't be saved in the
    @@ -2444,7 +2746,9 @@ public Builder setOutputConfig(com.google.cloud.asset.v1.QueryAssetsOutputConfig
          * [QueryAssets] API call.
          * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOutputConfig( com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder builderForValue) { @@ -2458,6 +2762,8 @@ public Builder setOutputConfig( return this; } /** + * + * *
          * Optional. Destination where the query results will be saved.
          * When this field is specified, the query results won't be saved in the
    @@ -2468,13 +2774,17 @@ public Builder setOutputConfig(
          * [QueryAssets] API call.
          * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeOutputConfig(com.google.cloud.asset.v1.QueryAssetsOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.asset.v1.QueryAssetsOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.QueryAssetsOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -2486,6 +2796,8 @@ public Builder mergeOutputConfig(com.google.cloud.asset.v1.QueryAssetsOutputConf return this; } /** + * + * *
          * Optional. Destination where the query results will be saved.
          * When this field is specified, the query results won't be saved in the
    @@ -2496,7 +2808,9 @@ public Builder mergeOutputConfig(com.google.cloud.asset.v1.QueryAssetsOutputConf
          * [QueryAssets] API call.
          * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -2510,6 +2824,8 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
          * Optional. Destination where the query results will be saved.
          * When this field is specified, the query results won't be saved in the
    @@ -2520,14 +2836,18 @@ public Builder clearOutputConfig() {
          * [QueryAssets] API call.
          * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
          * Optional. Destination where the query results will be saved.
          * When this field is specified, the query results won't be saved in the
    @@ -2538,17 +2858,22 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder getOutputConfig
          * [QueryAssets] API call.
          * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
          * Optional. Destination where the query results will be saved.
          * When this field is specified, the query results won't be saved in the
    @@ -2559,24 +2884,29 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder getOutputConfi
          * [QueryAssets] API call.
          * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.QueryAssetsOutputConfig, com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder, com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder> + com.google.cloud.asset.v1.QueryAssetsOutputConfig, + com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder, + com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.QueryAssetsOutputConfig, com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder, com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.QueryAssetsOutputConfig, + com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder, + com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2586,12 +2916,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.QueryAssetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.QueryAssetsRequest) private static final com.google.cloud.asset.v1.QueryAssetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.QueryAssetsRequest(); } @@ -2600,27 +2930,27 @@ public static com.google.cloud.asset.v1.QueryAssetsRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryAssetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2635,6 +2965,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.QueryAssetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequestOrBuilder.java similarity index 81% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequestOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequestOrBuilder.java index 355136bdae80..65d9cf5b9b2d 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface QueryAssetsRequestOrBuilder extends +public interface QueryAssetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.QueryAssetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The relative name of the root asset. This can only be an
        * organization number (such as "organizations/123"), a project ID (such as
    @@ -16,11 +34,16 @@ public interface QueryAssetsRequestOrBuilder extends
        * Only assets belonging to the `parent` will be returned.
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
        * Required. The relative name of the root asset. This can only be an
        * organization number (such as "organizations/123"), a project ID (such as
    @@ -29,77 +52,97 @@ public interface QueryAssetsRequestOrBuilder extends
        * Only assets belonging to the `parent` will be returned.
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
        * Optional. A SQL statement that's compatible with [BigQuery Standard
        * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
        * 
    * * string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the statement field is set. */ boolean hasStatement(); /** + * + * *
        * Optional. A SQL statement that's compatible with [BigQuery Standard
        * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
        * 
    * * string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The statement. */ java.lang.String getStatement(); /** + * + * *
        * Optional. A SQL statement that's compatible with [BigQuery Standard
        * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
        * 
    * * string statement = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for statement. */ - com.google.protobuf.ByteString - getStatementBytes(); + com.google.protobuf.ByteString getStatementBytes(); /** + * + * *
        * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
        * previous `QueryAssets` call.
        * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the jobReference field is set. */ boolean hasJobReference(); /** + * + * *
        * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
        * previous `QueryAssets` call.
        * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The jobReference. */ java.lang.String getJobReference(); /** + * + * *
        * Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
        * previous `QueryAssets` call.
        * 
    * * string job_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for jobReference. */ - com.google.protobuf.ByteString - getJobReferenceBytes(); + com.google.protobuf.ByteString getJobReferenceBytes(); /** + * + * *
        * Optional. The maximum number of rows to return in the results. Responses are limited
        * to 10 MB and 1000 rows.
    @@ -109,33 +152,41 @@ public interface QueryAssetsRequestOrBuilder extends
        * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
        * Optional. A page token received from previous `QueryAssets`.
        * The field will be ignored when [output_config] is specified.
        * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
        * Optional. A page token received from previous `QueryAssets`.
        * The field will be ignored when [output_config] is specified.
        * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
        * Optional. Specifies the maximum amount of time that the client is willing to wait
        * for the query to complete. By default, this limit is 5 min for the first
    @@ -150,10 +201,13 @@ public interface QueryAssetsRequestOrBuilder extends
        * 
    * * .google.protobuf.Duration timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the timeout field is set. */ boolean hasTimeout(); /** + * + * *
        * Optional. Specifies the maximum amount of time that the client is willing to wait
        * for the query to complete. By default, this limit is 5 min for the first
    @@ -168,10 +222,13 @@ public interface QueryAssetsRequestOrBuilder extends
        * 
    * * .google.protobuf.Duration timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The timeout. */ com.google.protobuf.Duration getTimeout(); /** + * + * *
        * Optional. Specifies the maximum amount of time that the client is willing to wait
        * for the query to complete. By default, this limit is 5 min for the first
    @@ -190,66 +247,93 @@ public interface QueryAssetsRequestOrBuilder extends
       com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * Optional. [start_time] is required. [start_time] must be less than [end_time]
        * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
        * Maximum permitted time range is 7 days.
        * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readTimeWindow field is set. */ boolean hasReadTimeWindow(); /** + * + * *
        * Optional. [start_time] is required. [start_time] must be less than [end_time]
        * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
        * Maximum permitted time range is 7 days.
        * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readTimeWindow. */ com.google.cloud.asset.v1.TimeWindow getReadTimeWindow(); /** + * + * *
        * Optional. [start_time] is required. [start_time] must be less than [end_time]
        * Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
        * Maximum permitted time range is 7 days.
        * 
    * - * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.TimeWindow read_time_window = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder(); /** + * + * *
        * Optional. Queries cloud assets as they appeared at the specified point in time.
        * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
        * Optional. Queries cloud assets as they appeared at the specified point in time.
        * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
        * Optional. Queries cloud assets as they appeared at the specified point in time.
        * 
    * - * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp read_time = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** + * + * *
        * Optional. Destination where the query results will be saved.
        * When this field is specified, the query results won't be saved in the
    @@ -260,11 +344,16 @@ public interface QueryAssetsRequestOrBuilder extends
        * [QueryAssets] API call.
        * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
        * Optional. Destination where the query results will be saved.
        * When this field is specified, the query results won't be saved in the
    @@ -275,11 +364,16 @@ public interface QueryAssetsRequestOrBuilder extends
        * [QueryAssets] API call.
        * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The outputConfig. */ com.google.cloud.asset.v1.QueryAssetsOutputConfig getOutputConfig(); /** + * + * *
        * Optional. Destination where the query results will be saved.
        * When this field is specified, the query results won't be saved in the
    @@ -290,7 +384,9 @@ public interface QueryAssetsRequestOrBuilder extends
        * [QueryAssets] API call.
        * 
    * - * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder getOutputConfigOrBuilder(); diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponse.java similarity index 73% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponse.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponse.java index 2246639494dc..1bd4becddb9c 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponse.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponse.java @@ -1,63 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * QueryAssets response.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.QueryAssetsResponse} */ -public final class QueryAssetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class QueryAssetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.QueryAssetsResponse) QueryAssetsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QueryAssetsResponse.newBuilder() to construct. private QueryAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private QueryAssetsResponse() { jobReference_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new QueryAssetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_QueryAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_QueryAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.QueryAssetsResponse.class, com.google.cloud.asset.v1.QueryAssetsResponse.Builder.class); + com.google.cloud.asset.v1.QueryAssetsResponse.class, + com.google.cloud.asset.v1.QueryAssetsResponse.Builder.class); } private int responseCase_ = 0; private java.lang.Object response_; + public enum ResponseCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ERROR(3), QUERY_RESULT(4), OUTPUT_CONFIG(5), RESPONSE_NOT_SET(0); private final int value; + private ResponseCase(int value) { this.value = value; } @@ -73,32 +95,39 @@ public static ResponseCase valueOf(int value) { public static ResponseCase forNumber(int value) { switch (value) { - case 3: return ERROR; - case 4: return QUERY_RESULT; - case 5: return OUTPUT_CONFIG; - case 0: return RESPONSE_NOT_SET; - default: return null; + case 3: + return ERROR; + case 4: + return QUERY_RESULT; + case 5: + return OUTPUT_CONFIG; + case 0: + return RESPONSE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ResponseCase - getResponseCase() { - return ResponseCase.forNumber( - responseCase_); + public ResponseCase getResponseCase() { + return ResponseCase.forNumber(responseCase_); } public static final int JOB_REFERENCE_FIELD_NUMBER = 1; private volatile java.lang.Object jobReference_; /** + * + * *
        * Reference to a query job.
        * 
    * * string job_reference = 1; + * * @return The jobReference. */ @java.lang.Override @@ -107,29 +136,29 @@ public java.lang.String getJobReference() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobReference_ = s; return s; } } /** + * + * *
        * Reference to a query job.
        * 
    * * string job_reference = 1; + * * @return The bytes for jobReference. */ @java.lang.Override - public com.google.protobuf.ByteString - getJobReferenceBytes() { + public com.google.protobuf.ByteString getJobReferenceBytes() { java.lang.Object ref = jobReference_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobReference_ = b; return b; } else { @@ -140,6 +169,8 @@ public java.lang.String getJobReference() { public static final int DONE_FIELD_NUMBER = 2; private boolean done_; /** + * + * *
        * The query response, which can be either an `error` or a valid `response`.
        * If `done` == `false` and the query result is being saved in a output, the
    @@ -149,6 +180,7 @@ public java.lang.String getJobReference() {
        * 
    * * bool done = 2; + * * @return The done. */ @java.lang.Override @@ -158,11 +190,14 @@ public boolean getDone() { public static final int ERROR_FIELD_NUMBER = 3; /** + * + * *
        * Error status.
        * 
    * * .google.rpc.Status error = 3; + * * @return Whether the error field is set. */ @java.lang.Override @@ -170,21 +205,26 @@ public boolean hasError() { return responseCase_ == 3; } /** + * + * *
        * Error status.
        * 
    * * .google.rpc.Status error = 3; + * * @return The error. */ @java.lang.Override public com.google.rpc.Status getError() { if (responseCase_ == 3) { - return (com.google.rpc.Status) response_; + return (com.google.rpc.Status) response_; } return com.google.rpc.Status.getDefaultInstance(); } /** + * + * *
        * Error status.
        * 
    @@ -194,18 +234,21 @@ public com.google.rpc.Status getError() { @java.lang.Override public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { if (responseCase_ == 3) { - return (com.google.rpc.Status) response_; + return (com.google.rpc.Status) response_; } return com.google.rpc.Status.getDefaultInstance(); } public static final int QUERY_RESULT_FIELD_NUMBER = 4; /** + * + * *
        * Result of the query.
        * 
    * * .google.cloud.asset.v1.QueryResult query_result = 4; + * * @return Whether the queryResult field is set. */ @java.lang.Override @@ -213,21 +256,26 @@ public boolean hasQueryResult() { return responseCase_ == 4; } /** + * + * *
        * Result of the query.
        * 
    * * .google.cloud.asset.v1.QueryResult query_result = 4; + * * @return The queryResult. */ @java.lang.Override public com.google.cloud.asset.v1.QueryResult getQueryResult() { if (responseCase_ == 4) { - return (com.google.cloud.asset.v1.QueryResult) response_; + return (com.google.cloud.asset.v1.QueryResult) response_; } return com.google.cloud.asset.v1.QueryResult.getDefaultInstance(); } /** + * + * *
        * Result of the query.
        * 
    @@ -237,19 +285,22 @@ public com.google.cloud.asset.v1.QueryResult getQueryResult() { @java.lang.Override public com.google.cloud.asset.v1.QueryResultOrBuilder getQueryResultOrBuilder() { if (responseCase_ == 4) { - return (com.google.cloud.asset.v1.QueryResult) response_; + return (com.google.cloud.asset.v1.QueryResult) response_; } return com.google.cloud.asset.v1.QueryResult.getDefaultInstance(); } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 5; /** + * + * *
        * Output configuration which indicates instead of being returned in API
        * response on the fly, the query result will be saved in a specific output.
        * 
    * * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5; + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -257,22 +308,27 @@ public boolean hasOutputConfig() { return responseCase_ == 5; } /** + * + * *
        * Output configuration which indicates instead of being returned in API
        * response on the fly, the query result will be saved in a specific output.
        * 
    * * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5; + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.asset.v1.QueryAssetsOutputConfig getOutputConfig() { if (responseCase_ == 5) { - return (com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_; + return (com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_; } return com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance(); } /** + * + * *
        * Output configuration which indicates instead of being returned in API
        * response on the fly, the query result will be saved in a specific output.
    @@ -283,12 +339,13 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfig getOutputConfig() {
       @java.lang.Override
       public com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder getOutputConfigOrBuilder() {
         if (responseCase_ == 5) {
    -       return (com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_;
    +      return (com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_;
         }
         return com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance();
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -300,8 +357,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobReference_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, jobReference_);
         }
    @@ -330,20 +386,22 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, jobReference_);
         }
         if (done_ != false) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeBoolSize(2, done_);
    +      size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, done_);
         }
         if (responseCase_ == 3) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(3, (com.google.rpc.Status) response_);
    +      size +=
    +          com.google.protobuf.CodedOutputStream.computeMessageSize(
    +              3, (com.google.rpc.Status) response_);
         }
         if (responseCase_ == 4) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(4, (com.google.cloud.asset.v1.QueryResult) response_);
    +      size +=
    +          com.google.protobuf.CodedOutputStream.computeMessageSize(
    +              4, (com.google.cloud.asset.v1.QueryResult) response_);
         }
         if (responseCase_ == 5) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(5, (com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_);
    +      size +=
    +          com.google.protobuf.CodedOutputStream.computeMessageSize(
    +              5, (com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_);
         }
         size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
    @@ -353,30 +411,26 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1.QueryAssetsResponse)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1.QueryAssetsResponse other = (com.google.cloud.asset.v1.QueryAssetsResponse) obj;
    +    com.google.cloud.asset.v1.QueryAssetsResponse other =
    +        (com.google.cloud.asset.v1.QueryAssetsResponse) obj;
     
    -    if (!getJobReference()
    -        .equals(other.getJobReference())) return false;
    -    if (getDone()
    -        != other.getDone()) return false;
    +    if (!getJobReference().equals(other.getJobReference())) return false;
    +    if (getDone() != other.getDone()) return false;
         if (!getResponseCase().equals(other.getResponseCase())) return false;
         switch (responseCase_) {
           case 3:
    -        if (!getError()
    -            .equals(other.getError())) return false;
    +        if (!getError().equals(other.getError())) return false;
             break;
           case 4:
    -        if (!getQueryResult()
    -            .equals(other.getQueryResult())) return false;
    +        if (!getQueryResult().equals(other.getQueryResult())) return false;
             break;
           case 5:
    -        if (!getOutputConfig()
    -            .equals(other.getOutputConfig())) return false;
    +        if (!getOutputConfig().equals(other.getOutputConfig())) return false;
             break;
           case 0:
           default:
    @@ -395,8 +449,7 @@ public int hashCode() {
         hash = (37 * hash) + JOB_REFERENCE_FIELD_NUMBER;
         hash = (53 * hash) + getJobReference().hashCode();
         hash = (37 * hash) + DONE_FIELD_NUMBER;
    -    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
    -        getDone());
    +    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDone());
         switch (responseCase_) {
           case 3:
             hash = (37 * hash) + ERROR_FIELD_NUMBER;
    @@ -418,130 +471,136 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1.QueryAssetsResponse parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1.QueryAssetsResponse parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.QueryAssetsResponse parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.QueryAssetsResponse parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.QueryAssetsResponse 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.asset.v1.QueryAssetsResponse parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.QueryAssetsResponse parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.QueryAssetsResponse parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.QueryAssetsResponse parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.cloud.asset.v1.QueryAssetsResponse parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.cloud.asset.v1.QueryAssetsResponse parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.QueryAssetsResponse parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.QueryAssetsResponse parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.QueryAssetsResponse parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.cloud.asset.v1.QueryAssetsResponse prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * QueryAssets response.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.QueryAssetsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.QueryAssetsResponse) com.google.cloud.asset.v1.QueryAssetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_QueryAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_QueryAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.QueryAssetsResponse.class, com.google.cloud.asset.v1.QueryAssetsResponse.Builder.class); + com.google.cloud.asset.v1.QueryAssetsResponse.class, + com.google.cloud.asset.v1.QueryAssetsResponse.Builder.class); } // Construct using com.google.cloud.asset.v1.QueryAssetsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -564,9 +623,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryAssetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_QueryAssetsResponse_descriptor; } @java.lang.Override @@ -585,7 +644,8 @@ public com.google.cloud.asset.v1.QueryAssetsResponse build() { @java.lang.Override public com.google.cloud.asset.v1.QueryAssetsResponse buildPartial() { - com.google.cloud.asset.v1.QueryAssetsResponse result = new com.google.cloud.asset.v1.QueryAssetsResponse(this); + com.google.cloud.asset.v1.QueryAssetsResponse result = + new com.google.cloud.asset.v1.QueryAssetsResponse(this); result.jobReference_ = jobReference_; result.done_ = done_; if (responseCase_ == 3) { @@ -618,38 +678,39 @@ public com.google.cloud.asset.v1.QueryAssetsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.QueryAssetsResponse) { - return mergeFrom((com.google.cloud.asset.v1.QueryAssetsResponse)other); + return mergeFrom((com.google.cloud.asset.v1.QueryAssetsResponse) other); } else { super.mergeFrom(other); return this; @@ -666,21 +727,25 @@ public Builder mergeFrom(com.google.cloud.asset.v1.QueryAssetsResponse other) { setDone(other.getDone()); } switch (other.getResponseCase()) { - case ERROR: { - mergeError(other.getError()); - break; - } - case QUERY_RESULT: { - mergeQueryResult(other.getQueryResult()); - break; - } - case OUTPUT_CONFIG: { - mergeOutputConfig(other.getOutputConfig()); - break; - } - case RESPONSE_NOT_SET: { - break; - } + case ERROR: + { + mergeError(other.getError()); + break; + } + case QUERY_RESULT: + { + mergeQueryResult(other.getQueryResult()); + break; + } + case OUTPUT_CONFIG: + { + mergeOutputConfig(other.getOutputConfig()); + break; + } + case RESPONSE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -708,43 +773,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - jobReference_ = input.readStringRequireUtf8(); + case 10: + { + jobReference_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: { - done_ = input.readBool(); + break; + } // case 10 + case 16: + { + done_ = input.readBool(); - break; - } // case 16 - case 26: { - input.readMessage( - getErrorFieldBuilder().getBuilder(), - extensionRegistry); - responseCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getQueryResultFieldBuilder().getBuilder(), - extensionRegistry); - responseCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getOutputConfigFieldBuilder().getBuilder(), - extensionRegistry); - responseCase_ = 5; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 16 + case 26: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getQueryResultFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -754,12 +819,12 @@ public Builder mergeFrom( } // finally return this; } + private int responseCase_ = 0; private java.lang.Object response_; - public ResponseCase - getResponseCase() { - return ResponseCase.forNumber( - responseCase_); + + public ResponseCase getResponseCase() { + return ResponseCase.forNumber(responseCase_); } public Builder clearResponse() { @@ -769,21 +834,22 @@ public Builder clearResponse() { return this; } - private java.lang.Object jobReference_ = ""; /** + * + * *
          * Reference to a query job.
          * 
    * * string job_reference = 1; + * * @return The jobReference. */ public java.lang.String getJobReference() { java.lang.Object ref = jobReference_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobReference_ = s; return s; @@ -792,20 +858,21 @@ public java.lang.String getJobReference() { } } /** + * + * *
          * Reference to a query job.
          * 
    * * string job_reference = 1; + * * @return The bytes for jobReference. */ - public com.google.protobuf.ByteString - getJobReferenceBytes() { + public com.google.protobuf.ByteString getJobReferenceBytes() { java.lang.Object ref = jobReference_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobReference_ = b; return b; } else { @@ -813,61 +880,70 @@ public java.lang.String getJobReference() { } } /** + * + * *
          * Reference to a query job.
          * 
    * * string job_reference = 1; + * * @param value The jobReference to set. * @return This builder for chaining. */ - public Builder setJobReference( - java.lang.String value) { + public Builder setJobReference(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + jobReference_ = value; onChanged(); return this; } /** + * + * *
          * Reference to a query job.
          * 
    * * string job_reference = 1; + * * @return This builder for chaining. */ public Builder clearJobReference() { - + jobReference_ = getDefaultInstance().getJobReference(); onChanged(); return this; } /** + * + * *
          * Reference to a query job.
          * 
    * * string job_reference = 1; + * * @param value The bytes for jobReference to set. * @return This builder for chaining. */ - public Builder setJobReferenceBytes( - com.google.protobuf.ByteString value) { + public Builder setJobReferenceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jobReference_ = value; onChanged(); return this; } - private boolean done_ ; + private boolean done_; /** + * + * *
          * The query response, which can be either an `error` or a valid `response`.
          * If `done` == `false` and the query result is being saved in a output, the
    @@ -877,6 +953,7 @@ public Builder setJobReferenceBytes(
          * 
    * * bool done = 2; + * * @return The done. */ @java.lang.Override @@ -884,6 +961,8 @@ public boolean getDone() { return done_; } /** + * + * *
          * The query response, which can be either an `error` or a valid `response`.
          * If `done` == `false` and the query result is being saved in a output, the
    @@ -893,16 +972,19 @@ public boolean getDone() {
          * 
    * * bool done = 2; + * * @param value The done to set. * @return This builder for chaining. */ public Builder setDone(boolean value) { - + done_ = value; onChanged(); return this; } /** + * + * *
          * The query response, which can be either an `error` or a valid `response`.
          * If `done` == `false` and the query result is being saved in a output, the
    @@ -912,23 +994,28 @@ public Builder setDone(boolean value) {
          * 
    * * bool done = 2; + * * @return This builder for chaining. */ public Builder clearDone() { - + done_ = false; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; /** + * + * *
          * Error status.
          * 
    * * .google.rpc.Status error = 3; + * * @return Whether the error field is set. */ @java.lang.Override @@ -936,11 +1023,14 @@ public boolean hasError() { return responseCase_ == 3; } /** + * + * *
          * Error status.
          * 
    * * .google.rpc.Status error = 3; + * * @return The error. */ @java.lang.Override @@ -958,6 +1048,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
          * Error status.
          * 
    @@ -978,14 +1070,15 @@ public Builder setError(com.google.rpc.Status value) { return this; } /** + * + * *
          * Error status.
          * 
    * * .google.rpc.Status error = 3; */ - public Builder setError( - com.google.rpc.Status.Builder builderForValue) { + public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { response_ = builderForValue.build(); onChanged(); @@ -996,6 +1089,8 @@ public Builder setError( return this; } /** + * + * *
          * Error status.
          * 
    @@ -1004,10 +1099,11 @@ public Builder setError( */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (responseCase_ == 3 && - response_ != com.google.rpc.Status.getDefaultInstance()) { - response_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) response_) - .mergeFrom(value).buildPartial(); + if (responseCase_ == 3 && response_ != com.google.rpc.Status.getDefaultInstance()) { + response_ = + com.google.rpc.Status.newBuilder((com.google.rpc.Status) response_) + .mergeFrom(value) + .buildPartial(); } else { response_ = value; } @@ -1023,6 +1119,8 @@ public Builder mergeError(com.google.rpc.Status value) { return this; } /** + * + * *
          * Error status.
          * 
    @@ -1046,6 +1144,8 @@ public Builder clearError() { return this; } /** + * + * *
          * Error status.
          * 
    @@ -1056,6 +1156,8 @@ public com.google.rpc.Status.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** + * + * *
          * Error status.
          * 
    @@ -1074,6 +1176,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { } } /** + * + * *
          * Error status.
          * 
    @@ -1081,32 +1185,40 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * .google.rpc.Status error = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { if (!(responseCase_ == 3)) { response_ = com.google.rpc.Status.getDefaultInstance(); } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - (com.google.rpc.Status) response_, - getParentForChildren(), - isClean()); + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + (com.google.rpc.Status) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 3; - onChanged();; + onChanged(); + ; return errorBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.QueryResult, com.google.cloud.asset.v1.QueryResult.Builder, com.google.cloud.asset.v1.QueryResultOrBuilder> queryResultBuilder_; + com.google.cloud.asset.v1.QueryResult, + com.google.cloud.asset.v1.QueryResult.Builder, + com.google.cloud.asset.v1.QueryResultOrBuilder> + queryResultBuilder_; /** + * + * *
          * Result of the query.
          * 
    * * .google.cloud.asset.v1.QueryResult query_result = 4; + * * @return Whether the queryResult field is set. */ @java.lang.Override @@ -1114,11 +1226,14 @@ public boolean hasQueryResult() { return responseCase_ == 4; } /** + * + * *
          * Result of the query.
          * 
    * * .google.cloud.asset.v1.QueryResult query_result = 4; + * * @return The queryResult. */ @java.lang.Override @@ -1136,6 +1251,8 @@ public com.google.cloud.asset.v1.QueryResult getQueryResult() { } } /** + * + * *
          * Result of the query.
          * 
    @@ -1156,14 +1273,15 @@ public Builder setQueryResult(com.google.cloud.asset.v1.QueryResult value) { return this; } /** + * + * *
          * Result of the query.
          * 
    * * .google.cloud.asset.v1.QueryResult query_result = 4; */ - public Builder setQueryResult( - com.google.cloud.asset.v1.QueryResult.Builder builderForValue) { + public Builder setQueryResult(com.google.cloud.asset.v1.QueryResult.Builder builderForValue) { if (queryResultBuilder_ == null) { response_ = builderForValue.build(); onChanged(); @@ -1174,6 +1292,8 @@ public Builder setQueryResult( return this; } /** + * + * *
          * Result of the query.
          * 
    @@ -1182,10 +1302,13 @@ public Builder setQueryResult( */ public Builder mergeQueryResult(com.google.cloud.asset.v1.QueryResult value) { if (queryResultBuilder_ == null) { - if (responseCase_ == 4 && - response_ != com.google.cloud.asset.v1.QueryResult.getDefaultInstance()) { - response_ = com.google.cloud.asset.v1.QueryResult.newBuilder((com.google.cloud.asset.v1.QueryResult) response_) - .mergeFrom(value).buildPartial(); + if (responseCase_ == 4 + && response_ != com.google.cloud.asset.v1.QueryResult.getDefaultInstance()) { + response_ = + com.google.cloud.asset.v1.QueryResult.newBuilder( + (com.google.cloud.asset.v1.QueryResult) response_) + .mergeFrom(value) + .buildPartial(); } else { response_ = value; } @@ -1201,6 +1324,8 @@ public Builder mergeQueryResult(com.google.cloud.asset.v1.QueryResult value) { return this; } /** + * + * *
          * Result of the query.
          * 
    @@ -1224,6 +1349,8 @@ public Builder clearQueryResult() { return this; } /** + * + * *
          * Result of the query.
          * 
    @@ -1234,6 +1361,8 @@ public com.google.cloud.asset.v1.QueryResult.Builder getQueryResultBuilder() { return getQueryResultFieldBuilder().getBuilder(); } /** + * + * *
          * Result of the query.
          * 
    @@ -1252,6 +1381,8 @@ public com.google.cloud.asset.v1.QueryResultOrBuilder getQueryResultOrBuilder() } } /** + * + * *
          * Result of the query.
          * 
    @@ -1259,33 +1390,45 @@ public com.google.cloud.asset.v1.QueryResultOrBuilder getQueryResultOrBuilder() * .google.cloud.asset.v1.QueryResult query_result = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.QueryResult, com.google.cloud.asset.v1.QueryResult.Builder, com.google.cloud.asset.v1.QueryResultOrBuilder> + com.google.cloud.asset.v1.QueryResult, + com.google.cloud.asset.v1.QueryResult.Builder, + com.google.cloud.asset.v1.QueryResultOrBuilder> getQueryResultFieldBuilder() { if (queryResultBuilder_ == null) { if (!(responseCase_ == 4)) { response_ = com.google.cloud.asset.v1.QueryResult.getDefaultInstance(); } - queryResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.QueryResult, com.google.cloud.asset.v1.QueryResult.Builder, com.google.cloud.asset.v1.QueryResultOrBuilder>( + queryResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.QueryResult, + com.google.cloud.asset.v1.QueryResult.Builder, + com.google.cloud.asset.v1.QueryResultOrBuilder>( (com.google.cloud.asset.v1.QueryResult) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 4; - onChanged();; + onChanged(); + ; return queryResultBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.QueryAssetsOutputConfig, com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder, com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.asset.v1.QueryAssetsOutputConfig, + com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder, + com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
          * Output configuration which indicates instead of being returned in API
          * response on the fly, the query result will be saved in a specific output.
          * 
    * * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5; + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -1293,12 +1436,15 @@ public boolean hasOutputConfig() { return responseCase_ == 5; } /** + * + * *
          * Output configuration which indicates instead of being returned in API
          * response on the fly, the query result will be saved in a specific output.
          * 
    * * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5; + * * @return The outputConfig. */ @java.lang.Override @@ -1316,6 +1462,8 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfig getOutputConfig() { } } /** + * + * *
          * Output configuration which indicates instead of being returned in API
          * response on the fly, the query result will be saved in a specific output.
    @@ -1337,6 +1485,8 @@ public Builder setOutputConfig(com.google.cloud.asset.v1.QueryAssetsOutputConfig
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Output configuration which indicates instead of being returned in API
          * response on the fly, the query result will be saved in a specific output.
    @@ -1356,6 +1506,8 @@ public Builder setOutputConfig(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Output configuration which indicates instead of being returned in API
          * response on the fly, the query result will be saved in a specific output.
    @@ -1365,10 +1517,14 @@ public Builder setOutputConfig(
          */
         public Builder mergeOutputConfig(com.google.cloud.asset.v1.QueryAssetsOutputConfig value) {
           if (outputConfigBuilder_ == null) {
    -        if (responseCase_ == 5 &&
    -            response_ != com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance()) {
    -          response_ = com.google.cloud.asset.v1.QueryAssetsOutputConfig.newBuilder((com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_)
    -              .mergeFrom(value).buildPartial();
    +        if (responseCase_ == 5
    +            && response_
    +                != com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance()) {
    +          response_ =
    +              com.google.cloud.asset.v1.QueryAssetsOutputConfig.newBuilder(
    +                      (com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               response_ = value;
             }
    @@ -1384,6 +1540,8 @@ public Builder mergeOutputConfig(com.google.cloud.asset.v1.QueryAssetsOutputConf
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Output configuration which indicates instead of being returned in API
          * response on the fly, the query result will be saved in a specific output.
    @@ -1408,6 +1566,8 @@ public Builder clearOutputConfig() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Output configuration which indicates instead of being returned in API
          * response on the fly, the query result will be saved in a specific output.
    @@ -1419,6 +1579,8 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder getOutputConfig
           return getOutputConfigFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Output configuration which indicates instead of being returned in API
          * response on the fly, the query result will be saved in a specific output.
    @@ -1438,6 +1600,8 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder getOutputConfi
           }
         }
         /**
    +     *
    +     *
          * 
          * Output configuration which indicates instead of being returned in API
          * response on the fly, the query result will be saved in a specific output.
    @@ -1446,26 +1610,32 @@ public com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder getOutputConfi
          * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1.QueryAssetsOutputConfig, com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder, com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder> 
    +            com.google.cloud.asset.v1.QueryAssetsOutputConfig,
    +            com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder,
    +            com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder>
             getOutputConfigFieldBuilder() {
           if (outputConfigBuilder_ == null) {
             if (!(responseCase_ == 5)) {
               response_ = com.google.cloud.asset.v1.QueryAssetsOutputConfig.getDefaultInstance();
             }
    -        outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.QueryAssetsOutputConfig, com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder, com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder>(
    +        outputConfigBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.cloud.asset.v1.QueryAssetsOutputConfig,
    +                com.google.cloud.asset.v1.QueryAssetsOutputConfig.Builder,
    +                com.google.cloud.asset.v1.QueryAssetsOutputConfigOrBuilder>(
                     (com.google.cloud.asset.v1.QueryAssetsOutputConfig) response_,
                     getParentForChildren(),
                     isClean());
             response_ = null;
           }
           responseCase_ = 5;
    -      onChanged();;
    +      onChanged();
    +      ;
           return outputConfigBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -1475,12 +1645,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.QueryAssetsResponse)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.QueryAssetsResponse)
       private static final com.google.cloud.asset.v1.QueryAssetsResponse DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1.QueryAssetsResponse();
       }
    @@ -1489,27 +1659,27 @@ public static com.google.cloud.asset.v1.QueryAssetsResponse getDefaultInstance()
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public QueryAssetsResponse parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      Builder builder = newBuilder();
    -      try {
    -        builder.mergeFrom(input, extensionRegistry);
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(builder.buildPartial());
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    -            .setUnfinishedMessage(builder.buildPartial());
    -      }
    -      return builder.buildPartial();
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public QueryAssetsResponse parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1524,6 +1694,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1.QueryAssetsResponse getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponseOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponseOrBuilder.java
    similarity index 79%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponseOrBuilder.java
    rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponseOrBuilder.java
    index e13d2857eeca..ea17915a345d 100644
    --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponseOrBuilder.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponseOrBuilder.java
    @@ -1,33 +1,56 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
    -public interface QueryAssetsResponseOrBuilder extends
    +public interface QueryAssetsResponseOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.QueryAssetsResponse)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * Reference to a query job.
        * 
    * * string job_reference = 1; + * * @return The jobReference. */ java.lang.String getJobReference(); /** + * + * *
        * Reference to a query job.
        * 
    * * string job_reference = 1; + * * @return The bytes for jobReference. */ - com.google.protobuf.ByteString - getJobReferenceBytes(); + com.google.protobuf.ByteString getJobReferenceBytes(); /** + * + * *
        * The query response, which can be either an `error` or a valid `response`.
        * If `done` == `false` and the query result is being saved in a output, the
    @@ -37,29 +60,38 @@ public interface QueryAssetsResponseOrBuilder extends
        * 
    * * bool done = 2; + * * @return The done. */ boolean getDone(); /** + * + * *
        * Error status.
        * 
    * * .google.rpc.Status error = 3; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
        * Error status.
        * 
    * * .google.rpc.Status error = 3; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
        * Error status.
        * 
    @@ -69,24 +101,32 @@ public interface QueryAssetsResponseOrBuilder extends com.google.rpc.StatusOrBuilder getErrorOrBuilder(); /** + * + * *
        * Result of the query.
        * 
    * * .google.cloud.asset.v1.QueryResult query_result = 4; + * * @return Whether the queryResult field is set. */ boolean hasQueryResult(); /** + * + * *
        * Result of the query.
        * 
    * * .google.cloud.asset.v1.QueryResult query_result = 4; + * * @return The queryResult. */ com.google.cloud.asset.v1.QueryResult getQueryResult(); /** + * + * *
        * Result of the query.
        * 
    @@ -96,26 +136,34 @@ public interface QueryAssetsResponseOrBuilder extends com.google.cloud.asset.v1.QueryResultOrBuilder getQueryResultOrBuilder(); /** + * + * *
        * Output configuration which indicates instead of being returned in API
        * response on the fly, the query result will be saved in a specific output.
        * 
    * * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5; + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
        * Output configuration which indicates instead of being returned in API
        * response on the fly, the query result will be saved in a specific output.
        * 
    * * .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5; + * * @return The outputConfig. */ com.google.cloud.asset.v1.QueryAssetsOutputConfig getOutputConfig(); /** + * + * *
        * Output configuration which indicates instead of being returned in API
        * response on the fly, the query result will be saved in a specific output.
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResult.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResult.java
    similarity index 71%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResult.java
    rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResult.java
    index 882ea5f07c44..257ca57f419e 100644
    --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResult.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResult.java
    @@ -1,9 +1,26 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
     /**
    + *
    + *
      * 
      * Execution results of the query.
      * The result is formatted as rows represented by BigQuery compatible [schema].
    @@ -13,15 +30,16 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.QueryResult}
      */
    -public final class QueryResult extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class QueryResult extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.QueryResult)
         QueryResultOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use QueryResult.newBuilder() to construct.
       private QueryResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private QueryResult() {
         rows_ = java.util.Collections.emptyList();
         nextPageToken_ = "";
    @@ -29,32 +47,35 @@ private QueryResult() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(
    -      UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new QueryResult();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryResult_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetServiceProto
    +        .internal_static_google_cloud_asset_v1_QueryResult_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryResult_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetServiceProto
    +        .internal_static_google_cloud_asset_v1_QueryResult_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1.QueryResult.class, com.google.cloud.asset.v1.QueryResult.Builder.class);
    +            com.google.cloud.asset.v1.QueryResult.class,
    +            com.google.cloud.asset.v1.QueryResult.Builder.class);
       }
     
       public static final int ROWS_FIELD_NUMBER = 1;
       private java.util.List rows_;
       /**
    +   *
    +   *
        * 
        * Each row hold a query result in the format of `Struct`.
        * 
    @@ -66,6 +87,8 @@ public java.util.List getRowsList() { return rows_; } /** + * + * *
        * Each row hold a query result in the format of `Struct`.
        * 
    @@ -73,11 +96,12 @@ public java.util.List getRowsList() { * repeated .google.protobuf.Struct rows = 1; */ @java.lang.Override - public java.util.List - getRowsOrBuilderList() { + public java.util.List getRowsOrBuilderList() { return rows_; } /** + * + * *
        * Each row hold a query result in the format of `Struct`.
        * 
    @@ -89,6 +113,8 @@ public int getRowsCount() { return rows_.size(); } /** + * + * *
        * Each row hold a query result in the format of `Struct`.
        * 
    @@ -100,6 +126,8 @@ public com.google.protobuf.Struct getRows(int index) { return rows_.get(index); } /** + * + * *
        * Each row hold a query result in the format of `Struct`.
        * 
    @@ -107,19 +135,21 @@ public com.google.protobuf.Struct getRows(int index) { * repeated .google.protobuf.Struct rows = 1; */ @java.lang.Override - public com.google.protobuf.StructOrBuilder getRowsOrBuilder( - int index) { + public com.google.protobuf.StructOrBuilder getRowsOrBuilder(int index) { return rows_.get(index); } public static final int SCHEMA_FIELD_NUMBER = 2; private com.google.cloud.asset.v1.TableSchema schema_; /** + * + * *
        * Describes the format of the [rows].
        * 
    * * .google.cloud.asset.v1.TableSchema schema = 2; + * * @return Whether the schema field is set. */ @java.lang.Override @@ -127,11 +157,14 @@ public boolean hasSchema() { return schema_ != null; } /** + * + * *
        * Describes the format of the [rows].
        * 
    * * .google.cloud.asset.v1.TableSchema schema = 2; + * * @return The schema. */ @java.lang.Override @@ -139,6 +172,8 @@ public com.google.cloud.asset.v1.TableSchema getSchema() { return schema_ == null ? com.google.cloud.asset.v1.TableSchema.getDefaultInstance() : schema_; } /** + * + * *
        * Describes the format of the [rows].
        * 
    @@ -153,11 +188,14 @@ public com.google.cloud.asset.v1.TableSchemaOrBuilder getSchemaOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** + * + * *
        * Token to retrieve the next page of the results.
        * 
    * * string next_page_token = 3; + * * @return The nextPageToken. */ @java.lang.Override @@ -166,29 +204,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
        * Token to retrieve the next page of the results.
        * 
    * * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -199,11 +237,14 @@ public java.lang.String getNextPageToken() { public static final int TOTAL_ROWS_FIELD_NUMBER = 4; private long totalRows_; /** + * + * *
        * Total rows of the whole query results.
        * 
    * * int64 total_rows = 4; + * * @return The totalRows. */ @java.lang.Override @@ -212,6 +253,7 @@ public long getTotalRows() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,8 +265,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < rows_.size(); i++) { output.writeMessage(1, rows_.get(i)); } @@ -247,19 +288,16 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < rows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, rows_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rows_.get(i)); } if (schema_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSchema()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } if (totalRows_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, totalRows_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, totalRows_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -269,24 +307,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.QueryResult)) { return super.equals(obj); } com.google.cloud.asset.v1.QueryResult other = (com.google.cloud.asset.v1.QueryResult) obj; - if (!getRowsList() - .equals(other.getRowsList())) return false; + if (!getRowsList().equals(other.getRowsList())) return false; if (hasSchema() != other.hasSchema()) return false; if (hasSchema()) { - if (!getSchema() - .equals(other.getSchema())) return false; + if (!getSchema().equals(other.getSchema())) return false; } - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (getTotalRows() - != other.getTotalRows()) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalRows() != other.getTotalRows()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -309,104 +343,109 @@ public int hashCode() { hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (37 * hash) + TOTAL_ROWS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalRows()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalRows()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.asset.v1.QueryResult parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.QueryResult parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.QueryResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.QueryResult parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.asset.v1.QueryResult parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.QueryResult 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.asset.v1.QueryResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.QueryResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.QueryResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.QueryResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.QueryResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.QueryResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.QueryResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.QueryResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.QueryResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Execution results of the query.
        * The result is formatted as rows represented by BigQuery compatible [schema].
    @@ -416,33 +455,32 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.asset.v1.QueryResult}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.QueryResult)
           com.google.cloud.asset.v1.QueryResultOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryResult_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetServiceProto
    +          .internal_static_google_cloud_asset_v1_QueryResult_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryResult_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetServiceProto
    +          .internal_static_google_cloud_asset_v1_QueryResult_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.QueryResult.class, com.google.cloud.asset.v1.QueryResult.Builder.class);
    +              com.google.cloud.asset.v1.QueryResult.class,
    +              com.google.cloud.asset.v1.QueryResult.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.QueryResult.newBuilder()
    -    private Builder() {
    -
    -    }
    +    private Builder() {}
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -467,9 +505,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_QueryResult_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetServiceProto
    +          .internal_static_google_cloud_asset_v1_QueryResult_descriptor;
         }
     
         @java.lang.Override
    @@ -488,7 +526,8 @@ public com.google.cloud.asset.v1.QueryResult build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1.QueryResult buildPartial() {
    -      com.google.cloud.asset.v1.QueryResult result = new com.google.cloud.asset.v1.QueryResult(this);
    +      com.google.cloud.asset.v1.QueryResult result =
    +          new com.google.cloud.asset.v1.QueryResult(this);
           int from_bitField0_ = bitField0_;
           if (rowsBuilder_ == null) {
             if (((bitField0_ & 0x00000001) != 0)) {
    @@ -514,38 +553,39 @@ public com.google.cloud.asset.v1.QueryResult buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.QueryResult) {
    -        return mergeFrom((com.google.cloud.asset.v1.QueryResult)other);
    +        return mergeFrom((com.google.cloud.asset.v1.QueryResult) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -572,9 +612,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.QueryResult other) {
                 rowsBuilder_ = null;
                 rows_ = other.rows_;
                 bitField0_ = (bitField0_ & ~0x00000001);
    -            rowsBuilder_ = 
    -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
    -                 getRowsFieldBuilder() : null;
    +            rowsBuilder_ =
    +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
    +                    ? getRowsFieldBuilder()
    +                    : null;
               } else {
                 rowsBuilder_.addAllMessages(other.rows_);
               }
    @@ -616,42 +657,43 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
    -            case 10: {
    -              com.google.protobuf.Struct m =
    -                  input.readMessage(
    -                      com.google.protobuf.Struct.parser(),
    -                      extensionRegistry);
    -              if (rowsBuilder_ == null) {
    -                ensureRowsIsMutable();
    -                rows_.add(m);
    -              } else {
    -                rowsBuilder_.addMessage(m);
    -              }
    -              break;
    -            } // case 10
    -            case 18: {
    -              input.readMessage(
    -                  getSchemaFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    +            case 10:
    +              {
    +                com.google.protobuf.Struct m =
    +                    input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
    +                if (rowsBuilder_ == null) {
    +                  ensureRowsIsMutable();
    +                  rows_.add(m);
    +                } else {
    +                  rowsBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry);
     
    -              break;
    -            } // case 18
    -            case 26: {
    -              nextPageToken_ = input.readStringRequireUtf8();
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                nextPageToken_ = input.readStringRequireUtf8();
     
    -              break;
    -            } // case 26
    -            case 32: {
    -              totalRows_ = input.readInt64();
    +                break;
    +              } // case 26
    +            case 32:
    +              {
    +                totalRows_ = input.readInt64();
     
    -              break;
    -            } // case 32
    -            default: {
    -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                done = true; // was an endgroup tag
    -              }
    -              break;
    -            } // default:
    +                break;
    +              } // case 32
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -661,21 +703,27 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
    +
         private int bitField0_;
     
    -    private java.util.List rows_ =
    -      java.util.Collections.emptyList();
    +    private java.util.List rows_ = java.util.Collections.emptyList();
    +
         private void ensureRowsIsMutable() {
           if (!((bitField0_ & 0x00000001) != 0)) {
             rows_ = new java.util.ArrayList(rows_);
             bitField0_ |= 0x00000001;
    -       }
    +      }
         }
     
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> rowsBuilder_;
    +            com.google.protobuf.Struct,
    +            com.google.protobuf.Struct.Builder,
    +            com.google.protobuf.StructOrBuilder>
    +        rowsBuilder_;
     
         /**
    +     *
    +     *
          * 
          * Each row hold a query result in the format of `Struct`.
          * 
    @@ -690,6 +738,8 @@ public java.util.List getRowsList() { } } /** + * + * *
          * Each row hold a query result in the format of `Struct`.
          * 
    @@ -704,6 +754,8 @@ public int getRowsCount() { } } /** + * + * *
          * Each row hold a query result in the format of `Struct`.
          * 
    @@ -718,14 +770,15 @@ public com.google.protobuf.Struct getRows(int index) { } } /** + * + * *
          * Each row hold a query result in the format of `Struct`.
          * 
    * * repeated .google.protobuf.Struct rows = 1; */ - public Builder setRows( - int index, com.google.protobuf.Struct value) { + public Builder setRows(int index, com.google.protobuf.Struct value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -739,14 +792,15 @@ public Builder setRows( return this; } /** + * + * *
          * Each row hold a query result in the format of `Struct`.
          * 
    * * repeated .google.protobuf.Struct rows = 1; */ - public Builder setRows( - int index, com.google.protobuf.Struct.Builder builderForValue) { + public Builder setRows(int index, com.google.protobuf.Struct.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.set(index, builderForValue.build()); @@ -757,6 +811,8 @@ public Builder setRows( return this; } /** + * + * *
          * Each row hold a query result in the format of `Struct`.
          * 
    @@ -777,14 +833,15 @@ public Builder addRows(com.google.protobuf.Struct value) { return this; } /** + * + * *
          * Each row hold a query result in the format of `Struct`.
          * 
    * * repeated .google.protobuf.Struct rows = 1; */ - public Builder addRows( - int index, com.google.protobuf.Struct value) { + public Builder addRows(int index, com.google.protobuf.Struct value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -798,14 +855,15 @@ public Builder addRows( return this; } /** + * + * *
          * Each row hold a query result in the format of `Struct`.
          * 
    * * repeated .google.protobuf.Struct rows = 1; */ - public Builder addRows( - com.google.protobuf.Struct.Builder builderForValue) { + public Builder addRows(com.google.protobuf.Struct.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.add(builderForValue.build()); @@ -816,14 +874,15 @@ public Builder addRows( return this; } /** + * + * *
          * Each row hold a query result in the format of `Struct`.
          * 
    * * repeated .google.protobuf.Struct rows = 1; */ - public Builder addRows( - int index, com.google.protobuf.Struct.Builder builderForValue) { + public Builder addRows(int index, com.google.protobuf.Struct.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.add(index, builderForValue.build()); @@ -834,18 +893,18 @@ public Builder addRows( return this; } /** + * + * *
          * Each row hold a query result in the format of `Struct`.
          * 
    * * repeated .google.protobuf.Struct rows = 1; */ - public Builder addAllRows( - java.lang.Iterable values) { + public Builder addAllRows(java.lang.Iterable values) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rows_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rows_); onChanged(); } else { rowsBuilder_.addAllMessages(values); @@ -853,6 +912,8 @@ public Builder addAllRows( return this; } /** + * + * *
          * Each row hold a query result in the format of `Struct`.
          * 
    @@ -870,6 +931,8 @@ public Builder clearRows() { return this; } /** + * + * *
          * Each row hold a query result in the format of `Struct`.
          * 
    @@ -887,39 +950,43 @@ public Builder removeRows(int index) { return this; } /** + * + * *
          * Each row hold a query result in the format of `Struct`.
          * 
    * * repeated .google.protobuf.Struct rows = 1; */ - public com.google.protobuf.Struct.Builder getRowsBuilder( - int index) { + public com.google.protobuf.Struct.Builder getRowsBuilder(int index) { return getRowsFieldBuilder().getBuilder(index); } /** + * + * *
          * Each row hold a query result in the format of `Struct`.
          * 
    * * repeated .google.protobuf.Struct rows = 1; */ - public com.google.protobuf.StructOrBuilder getRowsOrBuilder( - int index) { + public com.google.protobuf.StructOrBuilder getRowsOrBuilder(int index) { if (rowsBuilder_ == null) { - return rows_.get(index); } else { + return rows_.get(index); + } else { return rowsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
          * Each row hold a query result in the format of `Struct`.
          * 
    * * repeated .google.protobuf.Struct rows = 1; */ - public java.util.List - getRowsOrBuilderList() { + public java.util.List getRowsOrBuilderList() { if (rowsBuilder_ != null) { return rowsBuilder_.getMessageOrBuilderList(); } else { @@ -927,6 +994,8 @@ public com.google.protobuf.StructOrBuilder getRowsOrBuilder( } } /** + * + * *
          * Each row hold a query result in the format of `Struct`.
          * 
    @@ -934,42 +1003,46 @@ public com.google.protobuf.StructOrBuilder getRowsOrBuilder( * repeated .google.protobuf.Struct rows = 1; */ public com.google.protobuf.Struct.Builder addRowsBuilder() { - return getRowsFieldBuilder().addBuilder( - com.google.protobuf.Struct.getDefaultInstance()); + return getRowsFieldBuilder().addBuilder(com.google.protobuf.Struct.getDefaultInstance()); } /** + * + * *
          * Each row hold a query result in the format of `Struct`.
          * 
    * * repeated .google.protobuf.Struct rows = 1; */ - public com.google.protobuf.Struct.Builder addRowsBuilder( - int index) { - return getRowsFieldBuilder().addBuilder( - index, com.google.protobuf.Struct.getDefaultInstance()); + public com.google.protobuf.Struct.Builder addRowsBuilder(int index) { + return getRowsFieldBuilder() + .addBuilder(index, com.google.protobuf.Struct.getDefaultInstance()); } /** + * + * *
          * Each row hold a query result in the format of `Struct`.
          * 
    * * repeated .google.protobuf.Struct rows = 1; */ - public java.util.List - getRowsBuilderList() { + public java.util.List getRowsBuilderList() { return getRowsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> getRowsFieldBuilder() { if (rowsBuilder_ == null) { - rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - rows_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + rowsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + rows_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); rows_ = null; } return rowsBuilder_; @@ -977,34 +1050,47 @@ public com.google.protobuf.Struct.Builder addRowsBuilder( private com.google.cloud.asset.v1.TableSchema schema_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.TableSchema, com.google.cloud.asset.v1.TableSchema.Builder, com.google.cloud.asset.v1.TableSchemaOrBuilder> schemaBuilder_; + com.google.cloud.asset.v1.TableSchema, + com.google.cloud.asset.v1.TableSchema.Builder, + com.google.cloud.asset.v1.TableSchemaOrBuilder> + schemaBuilder_; /** + * + * *
          * Describes the format of the [rows].
          * 
    * * .google.cloud.asset.v1.TableSchema schema = 2; + * * @return Whether the schema field is set. */ public boolean hasSchema() { return schemaBuilder_ != null || schema_ != null; } /** + * + * *
          * Describes the format of the [rows].
          * 
    * * .google.cloud.asset.v1.TableSchema schema = 2; + * * @return The schema. */ public com.google.cloud.asset.v1.TableSchema getSchema() { if (schemaBuilder_ == null) { - return schema_ == null ? com.google.cloud.asset.v1.TableSchema.getDefaultInstance() : schema_; + return schema_ == null + ? com.google.cloud.asset.v1.TableSchema.getDefaultInstance() + : schema_; } else { return schemaBuilder_.getMessage(); } } /** + * + * *
          * Describes the format of the [rows].
          * 
    @@ -1025,14 +1111,15 @@ public Builder setSchema(com.google.cloud.asset.v1.TableSchema value) { return this; } /** + * + * *
          * Describes the format of the [rows].
          * 
    * * .google.cloud.asset.v1.TableSchema schema = 2; */ - public Builder setSchema( - com.google.cloud.asset.v1.TableSchema.Builder builderForValue) { + public Builder setSchema(com.google.cloud.asset.v1.TableSchema.Builder builderForValue) { if (schemaBuilder_ == null) { schema_ = builderForValue.build(); onChanged(); @@ -1043,6 +1130,8 @@ public Builder setSchema( return this; } /** + * + * *
          * Describes the format of the [rows].
          * 
    @@ -1053,7 +1142,9 @@ public Builder mergeSchema(com.google.cloud.asset.v1.TableSchema value) { if (schemaBuilder_ == null) { if (schema_ != null) { schema_ = - com.google.cloud.asset.v1.TableSchema.newBuilder(schema_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.TableSchema.newBuilder(schema_) + .mergeFrom(value) + .buildPartial(); } else { schema_ = value; } @@ -1065,6 +1156,8 @@ public Builder mergeSchema(com.google.cloud.asset.v1.TableSchema value) { return this; } /** + * + * *
          * Describes the format of the [rows].
          * 
    @@ -1083,6 +1176,8 @@ public Builder clearSchema() { return this; } /** + * + * *
          * Describes the format of the [rows].
          * 
    @@ -1090,11 +1185,13 @@ public Builder clearSchema() { * .google.cloud.asset.v1.TableSchema schema = 2; */ public com.google.cloud.asset.v1.TableSchema.Builder getSchemaBuilder() { - + onChanged(); return getSchemaFieldBuilder().getBuilder(); } /** + * + * *
          * Describes the format of the [rows].
          * 
    @@ -1105,11 +1202,14 @@ public com.google.cloud.asset.v1.TableSchemaOrBuilder getSchemaOrBuilder() { if (schemaBuilder_ != null) { return schemaBuilder_.getMessageOrBuilder(); } else { - return schema_ == null ? - com.google.cloud.asset.v1.TableSchema.getDefaultInstance() : schema_; + return schema_ == null + ? com.google.cloud.asset.v1.TableSchema.getDefaultInstance() + : schema_; } } /** + * + * *
          * Describes the format of the [rows].
          * 
    @@ -1117,14 +1217,17 @@ public com.google.cloud.asset.v1.TableSchemaOrBuilder getSchemaOrBuilder() { * .google.cloud.asset.v1.TableSchema schema = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.TableSchema, com.google.cloud.asset.v1.TableSchema.Builder, com.google.cloud.asset.v1.TableSchemaOrBuilder> + com.google.cloud.asset.v1.TableSchema, + com.google.cloud.asset.v1.TableSchema.Builder, + com.google.cloud.asset.v1.TableSchemaOrBuilder> getSchemaFieldBuilder() { if (schemaBuilder_ == null) { - schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.TableSchema, com.google.cloud.asset.v1.TableSchema.Builder, com.google.cloud.asset.v1.TableSchemaOrBuilder>( - getSchema(), - getParentForChildren(), - isClean()); + schemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.TableSchema, + com.google.cloud.asset.v1.TableSchema.Builder, + com.google.cloud.asset.v1.TableSchemaOrBuilder>( + getSchema(), getParentForChildren(), isClean()); schema_ = null; } return schemaBuilder_; @@ -1132,18 +1235,20 @@ public com.google.cloud.asset.v1.TableSchemaOrBuilder getSchemaOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** + * + * *
          * Token to retrieve the next page of the results.
          * 
    * * string next_page_token = 3; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1152,20 +1257,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
          * Token to retrieve the next page of the results.
          * 
    * * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1173,66 +1279,76 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
          * Token to retrieve the next page of the results.
          * 
    * * string next_page_token = 3; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
          * Token to retrieve the next page of the results.
          * 
    * * string next_page_token = 3; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
          * Token to retrieve the next page of the results.
          * 
    * * 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private long totalRows_ ; + private long totalRows_; /** + * + * *
          * Total rows of the whole query results.
          * 
    * * int64 total_rows = 4; + * * @return The totalRows. */ @java.lang.Override @@ -1240,37 +1356,43 @@ public long getTotalRows() { return totalRows_; } /** + * + * *
          * Total rows of the whole query results.
          * 
    * * int64 total_rows = 4; + * * @param value The totalRows to set. * @return This builder for chaining. */ public Builder setTotalRows(long value) { - + totalRows_ = value; onChanged(); return this; } /** + * + * *
          * Total rows of the whole query results.
          * 
    * * int64 total_rows = 4; + * * @return This builder for chaining. */ public Builder clearTotalRows() { - + totalRows_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1280,12 +1402,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.QueryResult) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.QueryResult) private static final com.google.cloud.asset.v1.QueryResult DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.QueryResult(); } @@ -1294,27 +1416,27 @@ public static com.google.cloud.asset.v1.QueryResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1329,6 +1451,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.QueryResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResultOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResultOrBuilder.java similarity index 71% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResultOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResultOrBuilder.java index a811e4bcb818..dd583f8df19f 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResultOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryResultOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface QueryResultOrBuilder extends +public interface QueryResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.QueryResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Each row hold a query result in the format of `Struct`.
        * 
    * * repeated .google.protobuf.Struct rows = 1; */ - java.util.List - getRowsList(); + java.util.List getRowsList(); /** + * + * *
        * Each row hold a query result in the format of `Struct`.
        * 
    @@ -25,6 +44,8 @@ public interface QueryResultOrBuilder extends */ com.google.protobuf.Struct getRows(int index); /** + * + * *
        * Each row hold a query result in the format of `Struct`.
        * 
    @@ -33,43 +54,53 @@ public interface QueryResultOrBuilder extends */ int getRowsCount(); /** + * + * *
        * Each row hold a query result in the format of `Struct`.
        * 
    * * repeated .google.protobuf.Struct rows = 1; */ - java.util.List - getRowsOrBuilderList(); + java.util.List getRowsOrBuilderList(); /** + * + * *
        * Each row hold a query result in the format of `Struct`.
        * 
    * * repeated .google.protobuf.Struct rows = 1; */ - com.google.protobuf.StructOrBuilder getRowsOrBuilder( - int index); + com.google.protobuf.StructOrBuilder getRowsOrBuilder(int index); /** + * + * *
        * Describes the format of the [rows].
        * 
    * * .google.cloud.asset.v1.TableSchema schema = 2; + * * @return Whether the schema field is set. */ boolean hasSchema(); /** + * + * *
        * Describes the format of the [rows].
        * 
    * * .google.cloud.asset.v1.TableSchema schema = 2; + * * @return The schema. */ com.google.cloud.asset.v1.TableSchema getSchema(); /** + * + * *
        * Describes the format of the [rows].
        * 
    @@ -79,31 +110,39 @@ com.google.protobuf.StructOrBuilder getRowsOrBuilder( com.google.cloud.asset.v1.TableSchemaOrBuilder getSchemaOrBuilder(); /** + * + * *
        * Token to retrieve the next page of the results.
        * 
    * * string next_page_token = 3; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
        * Token to retrieve the next page of the results.
        * 
    * * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
        * Total rows of the whole query results.
        * 
    * * int64 total_rows = 4; + * * @return The totalRows. */ long getTotalRows(); diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAsset.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAsset.java similarity index 76% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAsset.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAsset.java index 1286059df5bb..309b2dd704fe 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAsset.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAsset.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** + * + * *
      * An asset identifier in Google Cloud which contains its name, type and
      * ancestors. An asset can be any resource in the Google Cloud [resource
    @@ -17,15 +34,16 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.RelatedAsset}
      */
    -public final class RelatedAsset extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class RelatedAsset extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.RelatedAsset)
         RelatedAssetOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use RelatedAsset.newBuilder() to construct.
       private RelatedAsset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private RelatedAsset() {
         asset_ = "";
         assetType_ = "";
    @@ -35,32 +53,35 @@ private RelatedAsset() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(
    -      UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new RelatedAsset();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedAsset_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetProto
    +        .internal_static_google_cloud_asset_v1_RelatedAsset_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedAsset_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetProto
    +        .internal_static_google_cloud_asset_v1_RelatedAsset_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1.RelatedAsset.class, com.google.cloud.asset.v1.RelatedAsset.Builder.class);
    +            com.google.cloud.asset.v1.RelatedAsset.class,
    +            com.google.cloud.asset.v1.RelatedAsset.Builder.class);
       }
     
       public static final int ASSET_FIELD_NUMBER = 1;
       private volatile java.lang.Object asset_;
       /**
    +   *
    +   *
        * 
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -70,6 +91,7 @@ protected java.lang.Object newInstance(
        * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } + * * @return The asset. */ @java.lang.Override @@ -78,14 +100,15 @@ public java.lang.String getAsset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); asset_ = s; return s; } } /** + * + * *
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -95,16 +118,15 @@ public java.lang.String getAsset() {
        * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for asset. */ @java.lang.Override - public com.google.protobuf.ByteString - getAssetBytes() { + public com.google.protobuf.ByteString getAssetBytes() { java.lang.Object ref = asset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); asset_ = b; return b; } else { @@ -115,6 +137,8 @@ public java.lang.String getAsset() { public static final int ASSET_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object assetType_; /** + * + * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -123,6 +147,7 @@ public java.lang.String getAsset() {
        * 
    * * string asset_type = 2; + * * @return The assetType. */ @java.lang.Override @@ -131,14 +156,15 @@ public java.lang.String getAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; } } /** + * + * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -147,16 +173,15 @@ public java.lang.String getAssetType() {
        * 
    * * string asset_type = 2; + * * @return The bytes for assetType. */ @java.lang.Override - public com.google.protobuf.ByteString - getAssetTypeBytes() { + public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetType_ = b; return b; } else { @@ -167,6 +192,8 @@ public java.lang.String getAssetType() { public static final int ANCESTORS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList ancestors_; /** + * + * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -176,13 +203,15 @@ public java.lang.String getAssetType() {
        * 
    * * repeated string ancestors = 3; + * * @return A list containing the ancestors. */ - public com.google.protobuf.ProtocolStringList - getAncestorsList() { + public com.google.protobuf.ProtocolStringList getAncestorsList() { return ancestors_; } /** + * + * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -192,12 +221,15 @@ public java.lang.String getAssetType() {
        * 
    * * repeated string ancestors = 3; + * * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); } /** + * + * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -207,6 +239,7 @@ public int getAncestorsCount() {
        * 
    * * repeated string ancestors = 3; + * * @param index The index of the element to return. * @return The ancestors at the given index. */ @@ -214,6 +247,8 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** + * + * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -223,23 +258,26 @@ public java.lang.String getAncestors(int index) {
        * 
    * * repeated string ancestors = 3; + * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - public com.google.protobuf.ByteString - getAncestorsBytes(int index) { + public com.google.protobuf.ByteString getAncestorsBytes(int index) { return ancestors_.getByteString(index); } public static final int RELATIONSHIP_TYPE_FIELD_NUMBER = 4; private volatile java.lang.Object relationshipType_; /** + * + * *
        * The unique identifier of the relationship type. Example:
        * `INSTANCE_TO_INSTANCEGROUP`
        * 
    * * string relationship_type = 4; + * * @return The relationshipType. */ @java.lang.Override @@ -248,30 +286,30 @@ public java.lang.String getRelationshipType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); relationshipType_ = s; return s; } } /** + * + * *
        * The unique identifier of the relationship type. Example:
        * `INSTANCE_TO_INSTANCEGROUP`
        * 
    * * string relationship_type = 4; + * * @return The bytes for relationshipType. */ @java.lang.Override - public com.google.protobuf.ByteString - getRelationshipTypeBytes() { + public com.google.protobuf.ByteString getRelationshipTypeBytes() { java.lang.Object ref = relationshipType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); relationshipType_ = b; return b; } else { @@ -280,6 +318,7 @@ public java.lang.String getRelationshipType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -291,8 +330,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(asset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, asset_); } @@ -339,21 +377,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.RelatedAsset)) { return super.equals(obj); } com.google.cloud.asset.v1.RelatedAsset other = (com.google.cloud.asset.v1.RelatedAsset) obj; - if (!getAsset() - .equals(other.getAsset())) return false; - if (!getAssetType() - .equals(other.getAssetType())) return false; - if (!getAncestorsList() - .equals(other.getAncestorsList())) return false; - if (!getRelationshipType() - .equals(other.getRelationshipType())) return false; + if (!getAsset().equals(other.getAsset())) return false; + if (!getAssetType().equals(other.getAssetType())) return false; + if (!getAncestorsList().equals(other.getAncestorsList())) return false; + if (!getRelationshipType().equals(other.getRelationshipType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -380,97 +414,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.RelatedAsset parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.RelatedAsset parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.RelatedAsset parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.RelatedAsset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.RelatedAsset 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.asset.v1.RelatedAsset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.RelatedAsset parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.RelatedAsset parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.RelatedAsset parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.RelatedAsset parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.RelatedAsset parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.RelatedAsset parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.RelatedAsset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.RelatedAsset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * An asset identifier in Google Cloud which contains its name, type and
        * ancestors. An asset can be any resource in the Google Cloud [resource
    @@ -484,33 +525,32 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.asset.v1.RelatedAsset}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.RelatedAsset)
           com.google.cloud.asset.v1.RelatedAssetOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedAsset_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_RelatedAsset_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedAsset_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_RelatedAsset_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.RelatedAsset.class, com.google.cloud.asset.v1.RelatedAsset.Builder.class);
    +              com.google.cloud.asset.v1.RelatedAsset.class,
    +              com.google.cloud.asset.v1.RelatedAsset.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.RelatedAsset.newBuilder()
    -    private Builder() {
    -
    -    }
    +    private Builder() {}
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -526,9 +566,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedAsset_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_RelatedAsset_descriptor;
         }
     
         @java.lang.Override
    @@ -547,7 +587,8 @@ public com.google.cloud.asset.v1.RelatedAsset build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1.RelatedAsset buildPartial() {
    -      com.google.cloud.asset.v1.RelatedAsset result = new com.google.cloud.asset.v1.RelatedAsset(this);
    +      com.google.cloud.asset.v1.RelatedAsset result =
    +          new com.google.cloud.asset.v1.RelatedAsset(this);
           int from_bitField0_ = bitField0_;
           result.asset_ = asset_;
           result.assetType_ = assetType_;
    @@ -565,38 +606,39 @@ public com.google.cloud.asset.v1.RelatedAsset buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.RelatedAsset) {
    -        return mergeFrom((com.google.cloud.asset.v1.RelatedAsset)other);
    +        return mergeFrom((com.google.cloud.asset.v1.RelatedAsset) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -653,33 +695,38 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
    -            case 10: {
    -              asset_ = input.readStringRequireUtf8();
    +            case 10:
    +              {
    +                asset_ = input.readStringRequireUtf8();
     
    -              break;
    -            } // case 10
    -            case 18: {
    -              assetType_ = input.readStringRequireUtf8();
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                assetType_ = input.readStringRequireUtf8();
     
    -              break;
    -            } // case 18
    -            case 26: {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              ensureAncestorsIsMutable();
    -              ancestors_.add(s);
    -              break;
    -            } // case 26
    -            case 34: {
    -              relationshipType_ = input.readStringRequireUtf8();
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAncestorsIsMutable();
    +                ancestors_.add(s);
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                relationshipType_ = input.readStringRequireUtf8();
     
    -              break;
    -            } // case 34
    -            default: {
    -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                done = true; // was an endgroup tag
    -              }
    -              break;
    -            } // default:
    +                break;
    +              } // case 34
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -689,10 +736,13 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
    +
         private int bitField0_;
     
         private java.lang.Object asset_ = "";
         /**
    +     *
    +     *
          * 
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -702,13 +752,13 @@ public Builder mergeFrom(
          * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } + * * @return The asset. */ public java.lang.String getAsset() { java.lang.Object ref = asset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); asset_ = s; return s; @@ -717,6 +767,8 @@ public java.lang.String getAsset() { } } /** + * + * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -726,15 +778,14 @@ public java.lang.String getAsset() {
          * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for asset. */ - public com.google.protobuf.ByteString - getAssetBytes() { + public com.google.protobuf.ByteString getAssetBytes() { java.lang.Object ref = asset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); asset_ = b; return b; } else { @@ -742,6 +793,8 @@ public java.lang.String getAsset() { } } /** + * + * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -751,20 +804,22 @@ public java.lang.String getAsset() {
          * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } + * * @param value The asset to set. * @return This builder for chaining. */ - public Builder setAsset( - java.lang.String value) { + public Builder setAsset(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + asset_ = value; onChanged(); return this; } /** + * + * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -774,15 +829,18 @@ public Builder setAsset(
          * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearAsset() { - + asset_ = getDefaultInstance().getAsset(); onChanged(); return this; } /** + * + * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -792,16 +850,16 @@ public Builder clearAsset() {
          * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for asset to set. * @return This builder for chaining. */ - public Builder setAssetBytes( - com.google.protobuf.ByteString value) { + public Builder setAssetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + asset_ = value; onChanged(); return this; @@ -809,6 +867,8 @@ public Builder setAssetBytes( private java.lang.Object assetType_ = ""; /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -817,13 +877,13 @@ public Builder setAssetBytes(
          * 
    * * string asset_type = 2; + * * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; @@ -832,6 +892,8 @@ public java.lang.String getAssetType() { } } /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -840,15 +902,14 @@ public java.lang.String getAssetType() {
          * 
    * * string asset_type = 2; + * * @return The bytes for assetType. */ - public com.google.protobuf.ByteString - getAssetTypeBytes() { + public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetType_ = b; return b; } else { @@ -856,6 +917,8 @@ public java.lang.String getAssetType() { } } /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -864,20 +927,22 @@ public java.lang.String getAssetType() {
          * 
    * * string asset_type = 2; + * * @param value The assetType to set. * @return This builder for chaining. */ - public Builder setAssetType( - java.lang.String value) { + public Builder setAssetType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + assetType_ = value; onChanged(); return this; } /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -886,15 +951,18 @@ public Builder setAssetType(
          * 
    * * string asset_type = 2; + * * @return This builder for chaining. */ public Builder clearAssetType() { - + assetType_ = getDefaultInstance().getAssetType(); onChanged(); return this; } /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -903,29 +971,33 @@ public Builder clearAssetType() {
          * 
    * * string asset_type = 2; + * * @param value The bytes for assetType to set. * @return This builder for chaining. */ - public Builder setAssetTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList ancestors_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAncestorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ancestors_ = new com.google.protobuf.LazyStringArrayList(ancestors_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -935,13 +1007,15 @@ private void ensureAncestorsIsMutable() {
          * 
    * * repeated string ancestors = 3; + * * @return A list containing the ancestors. */ - public com.google.protobuf.ProtocolStringList - getAncestorsList() { + public com.google.protobuf.ProtocolStringList getAncestorsList() { return ancestors_.getUnmodifiableView(); } /** + * + * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -951,12 +1025,15 @@ private void ensureAncestorsIsMutable() {
          * 
    * * repeated string ancestors = 3; + * * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); } /** + * + * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -966,6 +1043,7 @@ public int getAncestorsCount() {
          * 
    * * repeated string ancestors = 3; + * * @param index The index of the element to return. * @return The ancestors at the given index. */ @@ -973,6 +1051,8 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** + * + * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -982,14 +1062,16 @@ public java.lang.String getAncestors(int index) {
          * 
    * * repeated string ancestors = 3; + * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - public com.google.protobuf.ByteString - getAncestorsBytes(int index) { + public com.google.protobuf.ByteString getAncestorsBytes(int index) { return ancestors_.getByteString(index); } /** + * + * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -999,21 +1081,23 @@ public java.lang.String getAncestors(int index) {
          * 
    * * repeated string ancestors = 3; + * * @param index The index to set the value at. * @param value The ancestors to set. * @return This builder for chaining. */ - public Builder setAncestors( - int index, java.lang.String value) { + public Builder setAncestors(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAncestorsIsMutable(); + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); ancestors_.set(index, value); onChanged(); return this; } /** + * + * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1023,20 +1107,22 @@ public Builder setAncestors(
          * 
    * * repeated string ancestors = 3; + * * @param value The ancestors to add. * @return This builder for chaining. */ - public Builder addAncestors( - java.lang.String value) { + public Builder addAncestors(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAncestorsIsMutable(); + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); return this; } /** + * + * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1046,18 +1132,19 @@ public Builder addAncestors(
          * 
    * * repeated string ancestors = 3; + * * @param values The ancestors to add. * @return This builder for chaining. */ - public Builder addAllAncestors( - java.lang.Iterable values) { + public Builder addAllAncestors(java.lang.Iterable values) { ensureAncestorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ancestors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ancestors_); onChanged(); return this; } /** + * + * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1067,6 +1154,7 @@ public Builder addAllAncestors(
          * 
    * * repeated string ancestors = 3; + * * @return This builder for chaining. */ public Builder clearAncestors() { @@ -1076,6 +1164,8 @@ public Builder clearAncestors() { return this; } /** + * + * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1085,15 +1175,15 @@ public Builder clearAncestors() {
          * 
    * * repeated string ancestors = 3; + * * @param value The bytes of the ancestors to add. * @return This builder for chaining. */ - public Builder addAncestorsBytes( - com.google.protobuf.ByteString value) { + public Builder addAncestorsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); @@ -1102,19 +1192,21 @@ public Builder addAncestorsBytes( private java.lang.Object relationshipType_ = ""; /** + * + * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string relationship_type = 4; + * * @return The relationshipType. */ public java.lang.String getRelationshipType() { java.lang.Object ref = relationshipType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); relationshipType_ = s; return s; @@ -1123,21 +1215,22 @@ public java.lang.String getRelationshipType() { } } /** + * + * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string relationship_type = 4; + * * @return The bytes for relationshipType. */ - public com.google.protobuf.ByteString - getRelationshipTypeBytes() { + public com.google.protobuf.ByteString getRelationshipTypeBytes() { java.lang.Object ref = relationshipType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); relationshipType_ = b; return b; } else { @@ -1145,64 +1238,71 @@ public java.lang.String getRelationshipType() { } } /** + * + * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string relationship_type = 4; + * * @param value The relationshipType to set. * @return This builder for chaining. */ - public Builder setRelationshipType( - java.lang.String value) { + public Builder setRelationshipType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + relationshipType_ = value; onChanged(); return this; } /** + * + * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string relationship_type = 4; + * * @return This builder for chaining. */ public Builder clearRelationshipType() { - + relationshipType_ = getDefaultInstance().getRelationshipType(); onChanged(); return this; } /** + * + * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string relationship_type = 4; + * * @param value The bytes for relationshipType to set. * @return This builder for chaining. */ - public Builder setRelationshipTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setRelationshipTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + relationshipType_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1212,12 +1312,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.RelatedAsset) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.RelatedAsset) private static final com.google.cloud.asset.v1.RelatedAsset DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.RelatedAsset(); } @@ -1226,27 +1326,27 @@ public static com.google.cloud.asset.v1.RelatedAsset getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RelatedAsset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelatedAsset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1261,6 +1361,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.RelatedAsset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetOrBuilder.java similarity index 80% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetOrBuilder.java index da36685963fd..dc568a1f8408 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; -public interface RelatedAssetOrBuilder extends +public interface RelatedAssetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.RelatedAsset) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -17,10 +35,13 @@ public interface RelatedAssetOrBuilder extends
        * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } + * * @return The asset. */ java.lang.String getAsset(); /** + * + * *
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -30,12 +51,14 @@ public interface RelatedAssetOrBuilder extends
        * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for asset. */ - com.google.protobuf.ByteString - getAssetBytes(); + com.google.protobuf.ByteString getAssetBytes(); /** + * + * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -44,10 +67,13 @@ public interface RelatedAssetOrBuilder extends
        * 
    * * string asset_type = 2; + * * @return The assetType. */ java.lang.String getAssetType(); /** + * + * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -56,12 +82,14 @@ public interface RelatedAssetOrBuilder extends
        * 
    * * string asset_type = 2; + * * @return The bytes for assetType. */ - com.google.protobuf.ByteString - getAssetTypeBytes(); + com.google.protobuf.ByteString getAssetTypeBytes(); /** + * + * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -71,11 +99,13 @@ public interface RelatedAssetOrBuilder extends
        * 
    * * repeated string ancestors = 3; + * * @return A list containing the ancestors. */ - java.util.List - getAncestorsList(); + java.util.List getAncestorsList(); /** + * + * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -85,10 +115,13 @@ public interface RelatedAssetOrBuilder extends
        * 
    * * repeated string ancestors = 3; + * * @return The count of ancestors. */ int getAncestorsCount(); /** + * + * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -98,11 +131,14 @@ public interface RelatedAssetOrBuilder extends
        * 
    * * repeated string ancestors = 3; + * * @param index The index of the element to return. * @return The ancestors at the given index. */ java.lang.String getAncestors(int index); /** + * + * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -112,31 +148,36 @@ public interface RelatedAssetOrBuilder extends
        * 
    * * repeated string ancestors = 3; + * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - com.google.protobuf.ByteString - getAncestorsBytes(int index); + com.google.protobuf.ByteString getAncestorsBytes(int index); /** + * + * *
        * The unique identifier of the relationship type. Example:
        * `INSTANCE_TO_INSTANCEGROUP`
        * 
    * * string relationship_type = 4; + * * @return The relationshipType. */ java.lang.String getRelationshipType(); /** + * + * *
        * The unique identifier of the relationship type. Example:
        * `INSTANCE_TO_INSTANCEGROUP`
        * 
    * * string relationship_type = 4; + * * @return The bytes for relationshipType. */ - com.google.protobuf.ByteString - getRelationshipTypeBytes(); + com.google.protobuf.ByteString getRelationshipTypeBytes(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssets.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssets.java similarity index 71% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssets.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssets.java index 543a27588570..0650cd7d16ce 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssets.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssets.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** + * + * *
      * DEPRECATED. This message only presents for the purpose of
      * backward-compatibility. The server will never populate this message in
    @@ -13,52 +30,58 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.RelatedAssets}
      */
    -@java.lang.Deprecated public final class RelatedAssets extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +@java.lang.Deprecated
    +public final class RelatedAssets extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.RelatedAssets)
         RelatedAssetsOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use RelatedAssets.newBuilder() to construct.
       private RelatedAssets(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private RelatedAssets() {
         assets_ = java.util.Collections.emptyList();
       }
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(
    -      UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new RelatedAssets();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedAssets_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetProto
    +        .internal_static_google_cloud_asset_v1_RelatedAssets_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedAssets_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetProto
    +        .internal_static_google_cloud_asset_v1_RelatedAssets_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1.RelatedAssets.class, com.google.cloud.asset.v1.RelatedAssets.Builder.class);
    +            com.google.cloud.asset.v1.RelatedAssets.class,
    +            com.google.cloud.asset.v1.RelatedAssets.Builder.class);
       }
     
       public static final int RELATIONSHIP_ATTRIBUTES_FIELD_NUMBER = 1;
       private com.google.cloud.asset.v1.RelationshipAttributes relationshipAttributes_;
       /**
    +   *
    +   *
        * 
        * The detailed relationship attributes.
        * 
    * * .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; + * * @return Whether the relationshipAttributes field is set. */ @java.lang.Override @@ -66,18 +89,25 @@ public boolean hasRelationshipAttributes() { return relationshipAttributes_ != null; } /** + * + * *
        * The detailed relationship attributes.
        * 
    * * .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; + * * @return The relationshipAttributes. */ @java.lang.Override public com.google.cloud.asset.v1.RelationshipAttributes getRelationshipAttributes() { - return relationshipAttributes_ == null ? com.google.cloud.asset.v1.RelationshipAttributes.getDefaultInstance() : relationshipAttributes_; + return relationshipAttributes_ == null + ? com.google.cloud.asset.v1.RelationshipAttributes.getDefaultInstance() + : relationshipAttributes_; } /** + * + * *
        * The detailed relationship attributes.
        * 
    @@ -85,13 +115,16 @@ public com.google.cloud.asset.v1.RelationshipAttributes getRelationshipAttribute * .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; */ @java.lang.Override - public com.google.cloud.asset.v1.RelationshipAttributesOrBuilder getRelationshipAttributesOrBuilder() { + public com.google.cloud.asset.v1.RelationshipAttributesOrBuilder + getRelationshipAttributesOrBuilder() { return getRelationshipAttributes(); } public static final int ASSETS_FIELD_NUMBER = 2; private java.util.List assets_; /** + * + * *
        * The peer resources of the relationship.
        * 
    @@ -103,6 +136,8 @@ public java.util.List getAssetsList() { return assets_; } /** + * + * *
        * The peer resources of the relationship.
        * 
    @@ -110,11 +145,13 @@ public java.util.List getAssetsList() { * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ @java.lang.Override - public java.util.List + public java.util.List getAssetsOrBuilderList() { return assets_; } /** + * + * *
        * The peer resources of the relationship.
        * 
    @@ -126,6 +163,8 @@ public int getAssetsCount() { return assets_.size(); } /** + * + * *
        * The peer resources of the relationship.
        * 
    @@ -137,6 +176,8 @@ public com.google.cloud.asset.v1.RelatedAsset getAssets(int index) { return assets_.get(index); } /** + * + * *
        * The peer resources of the relationship.
        * 
    @@ -144,12 +185,12 @@ public com.google.cloud.asset.v1.RelatedAsset getAssets(int index) { * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ @java.lang.Override - public com.google.cloud.asset.v1.RelatedAssetOrBuilder getAssetsOrBuilder( - int index) { + public com.google.cloud.asset.v1.RelatedAssetOrBuilder getAssetsOrBuilder(int index) { return assets_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,8 +202,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (relationshipAttributes_ != null) { output.writeMessage(1, getRelationshipAttributes()); } @@ -179,12 +219,11 @@ public int getSerializedSize() { size = 0; if (relationshipAttributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRelationshipAttributes()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRelationshipAttributes()); } for (int i = 0; i < assets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, assets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, assets_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -194,7 +233,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.RelatedAssets)) { return super.equals(obj); @@ -203,11 +242,9 @@ public boolean equals(final java.lang.Object obj) { if (hasRelationshipAttributes() != other.hasRelationshipAttributes()) return false; if (hasRelationshipAttributes()) { - if (!getRelationshipAttributes() - .equals(other.getRelationshipAttributes())) return false; + if (!getRelationshipAttributes().equals(other.getRelationshipAttributes())) return false; } - if (!getAssetsList() - .equals(other.getAssetsList())) return false; + if (!getAssetsList().equals(other.getAssetsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,97 +269,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.RelatedAssets parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.RelatedAssets parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.RelatedAssets parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.RelatedAssets parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.RelatedAssets 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.asset.v1.RelatedAssets parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.RelatedAssets parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.RelatedAssets parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.RelatedAssets parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.RelatedAssets parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.RelatedAssets parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.RelatedAssets parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.RelatedAssets parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.RelatedAssets parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.RelatedAssets prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * DEPRECATED. This message only presents for the purpose of
        * backward-compatibility. The server will never populate this message in
    @@ -332,33 +376,32 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.asset.v1.RelatedAssets}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.RelatedAssets)
           com.google.cloud.asset.v1.RelatedAssetsOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedAssets_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_RelatedAssets_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedAssets_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_RelatedAssets_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.RelatedAssets.class, com.google.cloud.asset.v1.RelatedAssets.Builder.class);
    +              com.google.cloud.asset.v1.RelatedAssets.class,
    +              com.google.cloud.asset.v1.RelatedAssets.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.RelatedAssets.newBuilder()
    -    private Builder() {
    -
    -    }
    +    private Builder() {}
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -379,9 +422,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedAssets_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_RelatedAssets_descriptor;
         }
     
         @java.lang.Override
    @@ -400,7 +443,8 @@ public com.google.cloud.asset.v1.RelatedAssets build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1.RelatedAssets buildPartial() {
    -      com.google.cloud.asset.v1.RelatedAssets result = new com.google.cloud.asset.v1.RelatedAssets(this);
    +      com.google.cloud.asset.v1.RelatedAssets result =
    +          new com.google.cloud.asset.v1.RelatedAssets(this);
           int from_bitField0_ = bitField0_;
           if (relationshipAttributesBuilder_ == null) {
             result.relationshipAttributes_ = relationshipAttributes_;
    @@ -424,38 +468,39 @@ public com.google.cloud.asset.v1.RelatedAssets buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.RelatedAssets) {
    -        return mergeFrom((com.google.cloud.asset.v1.RelatedAssets)other);
    +        return mergeFrom((com.google.cloud.asset.v1.RelatedAssets) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -485,9 +530,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.RelatedAssets other) {
                 assetsBuilder_ = null;
                 assets_ = other.assets_;
                 bitField0_ = (bitField0_ & ~0x00000001);
    -            assetsBuilder_ = 
    -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
    -                 getAssetsFieldBuilder() : null;
    +            assetsBuilder_ =
    +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
    +                    ? getAssetsFieldBuilder()
    +                    : null;
               } else {
                 assetsBuilder_.addAllMessages(other.assets_);
               }
    @@ -519,32 +565,33 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
    -            case 10: {
    -              input.readMessage(
    -                  getRelationshipAttributesFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    +            case 10:
    +              {
    +                input.readMessage(
    +                    getRelationshipAttributesFieldBuilder().getBuilder(), extensionRegistry);
     
    -              break;
    -            } // case 10
    -            case 18: {
    -              com.google.cloud.asset.v1.RelatedAsset m =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.RelatedAsset.parser(),
    -                      extensionRegistry);
    -              if (assetsBuilder_ == null) {
    -                ensureAssetsIsMutable();
    -                assets_.add(m);
    -              } else {
    -                assetsBuilder_.addMessage(m);
    -              }
    -              break;
    -            } // case 18
    -            default: {
    -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                done = true; // was an endgroup tag
    -              }
    -              break;
    -            } // default:
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                com.google.cloud.asset.v1.RelatedAsset m =
    +                    input.readMessage(
    +                        com.google.cloud.asset.v1.RelatedAsset.parser(), extensionRegistry);
    +                if (assetsBuilder_ == null) {
    +                  ensureAssetsIsMutable();
    +                  assets_.add(m);
    +                } else {
    +                  assetsBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -554,45 +601,60 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
    +
         private int bitField0_;
     
         private com.google.cloud.asset.v1.RelationshipAttributes relationshipAttributes_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1.RelationshipAttributes, com.google.cloud.asset.v1.RelationshipAttributes.Builder, com.google.cloud.asset.v1.RelationshipAttributesOrBuilder> relationshipAttributesBuilder_;
    +            com.google.cloud.asset.v1.RelationshipAttributes,
    +            com.google.cloud.asset.v1.RelationshipAttributes.Builder,
    +            com.google.cloud.asset.v1.RelationshipAttributesOrBuilder>
    +        relationshipAttributesBuilder_;
         /**
    +     *
    +     *
          * 
          * The detailed relationship attributes.
          * 
    * * .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; + * * @return Whether the relationshipAttributes field is set. */ public boolean hasRelationshipAttributes() { return relationshipAttributesBuilder_ != null || relationshipAttributes_ != null; } /** + * + * *
          * The detailed relationship attributes.
          * 
    * * .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; + * * @return The relationshipAttributes. */ public com.google.cloud.asset.v1.RelationshipAttributes getRelationshipAttributes() { if (relationshipAttributesBuilder_ == null) { - return relationshipAttributes_ == null ? com.google.cloud.asset.v1.RelationshipAttributes.getDefaultInstance() : relationshipAttributes_; + return relationshipAttributes_ == null + ? com.google.cloud.asset.v1.RelationshipAttributes.getDefaultInstance() + : relationshipAttributes_; } else { return relationshipAttributesBuilder_.getMessage(); } } /** + * + * *
          * The detailed relationship attributes.
          * 
    * * .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; */ - public Builder setRelationshipAttributes(com.google.cloud.asset.v1.RelationshipAttributes value) { + public Builder setRelationshipAttributes( + com.google.cloud.asset.v1.RelationshipAttributes value) { if (relationshipAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -606,6 +668,8 @@ public Builder setRelationshipAttributes(com.google.cloud.asset.v1.RelationshipA return this; } /** + * + * *
          * The detailed relationship attributes.
          * 
    @@ -624,17 +688,22 @@ public Builder setRelationshipAttributes( return this; } /** + * + * *
          * The detailed relationship attributes.
          * 
    * * .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; */ - public Builder mergeRelationshipAttributes(com.google.cloud.asset.v1.RelationshipAttributes value) { + public Builder mergeRelationshipAttributes( + com.google.cloud.asset.v1.RelationshipAttributes value) { if (relationshipAttributesBuilder_ == null) { if (relationshipAttributes_ != null) { relationshipAttributes_ = - com.google.cloud.asset.v1.RelationshipAttributes.newBuilder(relationshipAttributes_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.RelationshipAttributes.newBuilder(relationshipAttributes_) + .mergeFrom(value) + .buildPartial(); } else { relationshipAttributes_ = value; } @@ -646,6 +715,8 @@ public Builder mergeRelationshipAttributes(com.google.cloud.asset.v1.Relationshi return this; } /** + * + * *
          * The detailed relationship attributes.
          * 
    @@ -664,33 +735,42 @@ public Builder clearRelationshipAttributes() { return this; } /** + * + * *
          * The detailed relationship attributes.
          * 
    * * .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; */ - public com.google.cloud.asset.v1.RelationshipAttributes.Builder getRelationshipAttributesBuilder() { - + public com.google.cloud.asset.v1.RelationshipAttributes.Builder + getRelationshipAttributesBuilder() { + onChanged(); return getRelationshipAttributesFieldBuilder().getBuilder(); } /** + * + * *
          * The detailed relationship attributes.
          * 
    * * .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; */ - public com.google.cloud.asset.v1.RelationshipAttributesOrBuilder getRelationshipAttributesOrBuilder() { + public com.google.cloud.asset.v1.RelationshipAttributesOrBuilder + getRelationshipAttributesOrBuilder() { if (relationshipAttributesBuilder_ != null) { return relationshipAttributesBuilder_.getMessageOrBuilder(); } else { - return relationshipAttributes_ == null ? - com.google.cloud.asset.v1.RelationshipAttributes.getDefaultInstance() : relationshipAttributes_; + return relationshipAttributes_ == null + ? com.google.cloud.asset.v1.RelationshipAttributes.getDefaultInstance() + : relationshipAttributes_; } } /** + * + * *
          * The detailed relationship attributes.
          * 
    @@ -698,32 +778,41 @@ public com.google.cloud.asset.v1.RelationshipAttributesOrBuilder getRelationship * .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.RelationshipAttributes, com.google.cloud.asset.v1.RelationshipAttributes.Builder, com.google.cloud.asset.v1.RelationshipAttributesOrBuilder> + com.google.cloud.asset.v1.RelationshipAttributes, + com.google.cloud.asset.v1.RelationshipAttributes.Builder, + com.google.cloud.asset.v1.RelationshipAttributesOrBuilder> getRelationshipAttributesFieldBuilder() { if (relationshipAttributesBuilder_ == null) { - relationshipAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.RelationshipAttributes, com.google.cloud.asset.v1.RelationshipAttributes.Builder, com.google.cloud.asset.v1.RelationshipAttributesOrBuilder>( - getRelationshipAttributes(), - getParentForChildren(), - isClean()); + relationshipAttributesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.RelationshipAttributes, + com.google.cloud.asset.v1.RelationshipAttributes.Builder, + com.google.cloud.asset.v1.RelationshipAttributesOrBuilder>( + getRelationshipAttributes(), getParentForChildren(), isClean()); relationshipAttributes_ = null; } return relationshipAttributesBuilder_; } private java.util.List assets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAssetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assets_ = new java.util.ArrayList(assets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.RelatedAsset, com.google.cloud.asset.v1.RelatedAsset.Builder, com.google.cloud.asset.v1.RelatedAssetOrBuilder> assetsBuilder_; + com.google.cloud.asset.v1.RelatedAsset, + com.google.cloud.asset.v1.RelatedAsset.Builder, + com.google.cloud.asset.v1.RelatedAssetOrBuilder> + assetsBuilder_; /** + * + * *
          * The peer resources of the relationship.
          * 
    @@ -738,6 +827,8 @@ public java.util.List getAssetsList() { } } /** + * + * *
          * The peer resources of the relationship.
          * 
    @@ -752,6 +843,8 @@ public int getAssetsCount() { } } /** + * + * *
          * The peer resources of the relationship.
          * 
    @@ -766,14 +859,15 @@ public com.google.cloud.asset.v1.RelatedAsset getAssets(int index) { } } /** + * + * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ - public Builder setAssets( - int index, com.google.cloud.asset.v1.RelatedAsset value) { + public Builder setAssets(int index, com.google.cloud.asset.v1.RelatedAsset value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -787,6 +881,8 @@ public Builder setAssets( return this; } /** + * + * *
          * The peer resources of the relationship.
          * 
    @@ -805,6 +901,8 @@ public Builder setAssets( return this; } /** + * + * *
          * The peer resources of the relationship.
          * 
    @@ -825,14 +923,15 @@ public Builder addAssets(com.google.cloud.asset.v1.RelatedAsset value) { return this; } /** + * + * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ - public Builder addAssets( - int index, com.google.cloud.asset.v1.RelatedAsset value) { + public Builder addAssets(int index, com.google.cloud.asset.v1.RelatedAsset value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -846,14 +945,15 @@ public Builder addAssets( return this; } /** + * + * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ - public Builder addAssets( - com.google.cloud.asset.v1.RelatedAsset.Builder builderForValue) { + public Builder addAssets(com.google.cloud.asset.v1.RelatedAsset.Builder builderForValue) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.add(builderForValue.build()); @@ -864,6 +964,8 @@ public Builder addAssets( return this; } /** + * + * *
          * The peer resources of the relationship.
          * 
    @@ -882,6 +984,8 @@ public Builder addAssets( return this; } /** + * + * *
          * The peer resources of the relationship.
          * 
    @@ -892,8 +996,7 @@ public Builder addAllAssets( java.lang.Iterable values) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, assets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assets_); onChanged(); } else { assetsBuilder_.addAllMessages(values); @@ -901,6 +1004,8 @@ public Builder addAllAssets( return this; } /** + * + * *
          * The peer resources of the relationship.
          * 
    @@ -918,6 +1023,8 @@ public Builder clearAssets() { return this; } /** + * + * *
          * The peer resources of the relationship.
          * 
    @@ -935,39 +1042,44 @@ public Builder removeAssets(int index) { return this; } /** + * + * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ - public com.google.cloud.asset.v1.RelatedAsset.Builder getAssetsBuilder( - int index) { + public com.google.cloud.asset.v1.RelatedAsset.Builder getAssetsBuilder(int index) { return getAssetsFieldBuilder().getBuilder(index); } /** + * + * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ - public com.google.cloud.asset.v1.RelatedAssetOrBuilder getAssetsOrBuilder( - int index) { + public com.google.cloud.asset.v1.RelatedAssetOrBuilder getAssetsOrBuilder(int index) { if (assetsBuilder_ == null) { - return assets_.get(index); } else { + return assets_.get(index); + } else { return assetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ - public java.util.List - getAssetsOrBuilderList() { + public java.util.List + getAssetsOrBuilderList() { if (assetsBuilder_ != null) { return assetsBuilder_.getMessageOrBuilderList(); } else { @@ -975,6 +1087,8 @@ public com.google.cloud.asset.v1.RelatedAssetOrBuilder getAssetsOrBuilder( } } /** + * + * *
          * The peer resources of the relationship.
          * 
    @@ -982,49 +1096,54 @@ public com.google.cloud.asset.v1.RelatedAssetOrBuilder getAssetsOrBuilder( * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ public com.google.cloud.asset.v1.RelatedAsset.Builder addAssetsBuilder() { - return getAssetsFieldBuilder().addBuilder( - com.google.cloud.asset.v1.RelatedAsset.getDefaultInstance()); + return getAssetsFieldBuilder() + .addBuilder(com.google.cloud.asset.v1.RelatedAsset.getDefaultInstance()); } /** + * + * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ - public com.google.cloud.asset.v1.RelatedAsset.Builder addAssetsBuilder( - int index) { - return getAssetsFieldBuilder().addBuilder( - index, com.google.cloud.asset.v1.RelatedAsset.getDefaultInstance()); + public com.google.cloud.asset.v1.RelatedAsset.Builder addAssetsBuilder(int index) { + return getAssetsFieldBuilder() + .addBuilder(index, com.google.cloud.asset.v1.RelatedAsset.getDefaultInstance()); } /** + * + * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ - public java.util.List - getAssetsBuilderList() { + public java.util.List getAssetsBuilderList() { return getAssetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.RelatedAsset, com.google.cloud.asset.v1.RelatedAsset.Builder, com.google.cloud.asset.v1.RelatedAssetOrBuilder> + com.google.cloud.asset.v1.RelatedAsset, + com.google.cloud.asset.v1.RelatedAsset.Builder, + com.google.cloud.asset.v1.RelatedAssetOrBuilder> getAssetsFieldBuilder() { if (assetsBuilder_ == null) { - assetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.RelatedAsset, com.google.cloud.asset.v1.RelatedAsset.Builder, com.google.cloud.asset.v1.RelatedAssetOrBuilder>( - assets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + assetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.RelatedAsset, + com.google.cloud.asset.v1.RelatedAsset.Builder, + com.google.cloud.asset.v1.RelatedAssetOrBuilder>( + assets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); assets_ = null; } return assetsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1034,12 +1153,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.RelatedAssets) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.RelatedAssets) private static final com.google.cloud.asset.v1.RelatedAssets DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.RelatedAssets(); } @@ -1048,27 +1167,27 @@ public static com.google.cloud.asset.v1.RelatedAssets getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RelatedAssets parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelatedAssets parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1083,6 +1202,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.RelatedAssets getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetsOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetsOrBuilder.java similarity index 71% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetsOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetsOrBuilder.java index befe6f913733..00b60868d088 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetsOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssetsOrBuilder.java @@ -1,31 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; -@java.lang.Deprecated public interface RelatedAssetsOrBuilder extends +@java.lang.Deprecated +public interface RelatedAssetsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.RelatedAssets) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The detailed relationship attributes.
        * 
    * * .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; + * * @return Whether the relationshipAttributes field is set. */ boolean hasRelationshipAttributes(); /** + * + * *
        * The detailed relationship attributes.
        * 
    * * .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; + * * @return The relationshipAttributes. */ com.google.cloud.asset.v1.RelationshipAttributes getRelationshipAttributes(); /** + * + * *
        * The detailed relationship attributes.
        * 
    @@ -35,15 +60,18 @@ com.google.cloud.asset.v1.RelationshipAttributesOrBuilder getRelationshipAttributesOrBuilder(); /** + * + * *
        * The peer resources of the relationship.
        * 
    * * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ - java.util.List - getAssetsList(); + java.util.List getAssetsList(); /** + * + * *
        * The peer resources of the relationship.
        * 
    @@ -52,6 +80,8 @@ */ com.google.cloud.asset.v1.RelatedAsset getAssets(int index); /** + * + * *
        * The peer resources of the relationship.
        * 
    @@ -60,21 +90,24 @@ */ int getAssetsCount(); /** + * + * *
        * The peer resources of the relationship.
        * 
    * * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ - java.util.List + java.util.List getAssetsOrBuilderList(); /** + * + * *
        * The peer resources of the relationship.
        * 
    * * repeated .google.cloud.asset.v1.RelatedAsset assets = 2; */ - com.google.cloud.asset.v1.RelatedAssetOrBuilder getAssetsOrBuilder( - int index); + com.google.cloud.asset.v1.RelatedAssetOrBuilder getAssetsOrBuilder(int index); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResource.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResource.java similarity index 68% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResource.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResource.java index 0381859cc626..80d9fd5e6e8d 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResource.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResource.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** + * + * *
      * The detailed related resource.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.RelatedResource} */ -public final class RelatedResource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RelatedResource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.RelatedResource) RelatedResourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RelatedResource.newBuilder() to construct. private RelatedResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RelatedResource() { assetType_ = ""; fullResourceName_ = ""; @@ -26,37 +44,41 @@ private RelatedResource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RelatedResource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedResource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_RelatedResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedResource_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_RelatedResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.RelatedResource.class, com.google.cloud.asset.v1.RelatedResource.Builder.class); + com.google.cloud.asset.v1.RelatedResource.class, + com.google.cloud.asset.v1.RelatedResource.Builder.class); } public static final int ASSET_TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object assetType_; /** + * + * *
        * The type of the asset. Example: `compute.googleapis.com/Instance`
        * 
    * * string asset_type = 1; + * * @return The assetType. */ @java.lang.Override @@ -65,29 +87,29 @@ public java.lang.String getAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; } } /** + * + * *
        * The type of the asset. Example: `compute.googleapis.com/Instance`
        * 
    * * string asset_type = 1; + * * @return The bytes for assetType. */ @java.lang.Override - public com.google.protobuf.ByteString - getAssetTypeBytes() { + public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetType_ = b; return b; } else { @@ -98,12 +120,15 @@ public java.lang.String getAssetType() { public static final int FULL_RESOURCE_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object fullResourceName_; /** + * + * *
        * The full resource name of the related resource. Example:
        * `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`
        * 
    * * string full_resource_name = 2; + * * @return The fullResourceName. */ @java.lang.Override @@ -112,30 +137,30 @@ public java.lang.String getFullResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fullResourceName_ = s; return s; } } /** + * + * *
        * The full resource name of the related resource. Example:
        * `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`
        * 
    * * string full_resource_name = 2; + * * @return The bytes for fullResourceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getFullResourceNameBytes() { + public com.google.protobuf.ByteString getFullResourceNameBytes() { java.lang.Object ref = fullResourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fullResourceName_ = b; return b; } else { @@ -144,6 +169,7 @@ public java.lang.String getFullResourceName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, assetType_); } @@ -186,17 +211,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.RelatedResource)) { return super.equals(obj); } - com.google.cloud.asset.v1.RelatedResource other = (com.google.cloud.asset.v1.RelatedResource) obj; + com.google.cloud.asset.v1.RelatedResource other = + (com.google.cloud.asset.v1.RelatedResource) obj; - if (!getAssetType() - .equals(other.getAssetType())) return false; - if (!getFullResourceName() - .equals(other.getFullResourceName())) return false; + if (!getAssetType().equals(other.getAssetType())) return false; + if (!getFullResourceName().equals(other.getFullResourceName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -217,130 +241,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.RelatedResource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.RelatedResource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.RelatedResource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.RelatedResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.RelatedResource 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.asset.v1.RelatedResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.RelatedResource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.RelatedResource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.RelatedResource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.RelatedResource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.RelatedResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.RelatedResource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.RelatedResource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.RelatedResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.RelatedResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * The detailed related resource.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.RelatedResource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.RelatedResource) com.google.cloud.asset.v1.RelatedResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedResource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_RelatedResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedResource_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_RelatedResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.RelatedResource.class, com.google.cloud.asset.v1.RelatedResource.Builder.class); + com.google.cloud.asset.v1.RelatedResource.class, + com.google.cloud.asset.v1.RelatedResource.Builder.class); } // Construct using com.google.cloud.asset.v1.RelatedResource.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -352,9 +382,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedResource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_RelatedResource_descriptor; } @java.lang.Override @@ -373,7 +403,8 @@ public com.google.cloud.asset.v1.RelatedResource build() { @java.lang.Override public com.google.cloud.asset.v1.RelatedResource buildPartial() { - com.google.cloud.asset.v1.RelatedResource result = new com.google.cloud.asset.v1.RelatedResource(this); + com.google.cloud.asset.v1.RelatedResource result = + new com.google.cloud.asset.v1.RelatedResource(this); result.assetType_ = assetType_; result.fullResourceName_ = fullResourceName_; onBuilt(); @@ -384,38 +415,39 @@ public com.google.cloud.asset.v1.RelatedResource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.RelatedResource) { - return mergeFrom((com.google.cloud.asset.v1.RelatedResource)other); + return mergeFrom((com.google.cloud.asset.v1.RelatedResource) other); } else { super.mergeFrom(other); return this; @@ -458,22 +490,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - assetType_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - fullResourceName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + assetType_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + fullResourceName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -486,18 +521,20 @@ public Builder mergeFrom( private java.lang.Object assetType_ = ""; /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Instance`
          * 
    * * string asset_type = 1; + * * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; @@ -506,20 +543,21 @@ public java.lang.String getAssetType() { } } /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Instance`
          * 
    * * string asset_type = 1; + * * @return The bytes for assetType. */ - public com.google.protobuf.ByteString - getAssetTypeBytes() { + public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetType_ = b; return b; } else { @@ -527,54 +565,61 @@ public java.lang.String getAssetType() { } } /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Instance`
          * 
    * * string asset_type = 1; + * * @param value The assetType to set. * @return This builder for chaining. */ - public Builder setAssetType( - java.lang.String value) { + public Builder setAssetType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + assetType_ = value; onChanged(); return this; } /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Instance`
          * 
    * * string asset_type = 1; + * * @return This builder for chaining. */ public Builder clearAssetType() { - + assetType_ = getDefaultInstance().getAssetType(); onChanged(); return this; } /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Instance`
          * 
    * * string asset_type = 1; + * * @param value The bytes for assetType to set. * @return This builder for chaining. */ - public Builder setAssetTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; onChanged(); return this; @@ -582,19 +627,21 @@ public Builder setAssetTypeBytes( private java.lang.Object fullResourceName_ = ""; /** + * + * *
          * The full resource name of the related resource. Example:
          * `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`
          * 
    * * string full_resource_name = 2; + * * @return The fullResourceName. */ public java.lang.String getFullResourceName() { java.lang.Object ref = fullResourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fullResourceName_ = s; return s; @@ -603,21 +650,22 @@ public java.lang.String getFullResourceName() { } } /** + * + * *
          * The full resource name of the related resource. Example:
          * `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`
          * 
    * * string full_resource_name = 2; + * * @return The bytes for fullResourceName. */ - public com.google.protobuf.ByteString - getFullResourceNameBytes() { + public com.google.protobuf.ByteString getFullResourceNameBytes() { java.lang.Object ref = fullResourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fullResourceName_ = b; return b; } else { @@ -625,64 +673,71 @@ public java.lang.String getFullResourceName() { } } /** + * + * *
          * The full resource name of the related resource. Example:
          * `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`
          * 
    * * string full_resource_name = 2; + * * @param value The fullResourceName to set. * @return This builder for chaining. */ - public Builder setFullResourceName( - java.lang.String value) { + public Builder setFullResourceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fullResourceName_ = value; onChanged(); return this; } /** + * + * *
          * The full resource name of the related resource. Example:
          * `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`
          * 
    * * string full_resource_name = 2; + * * @return This builder for chaining. */ public Builder clearFullResourceName() { - + fullResourceName_ = getDefaultInstance().getFullResourceName(); onChanged(); return this; } /** + * + * *
          * The full resource name of the related resource. Example:
          * `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`
          * 
    * * string full_resource_name = 2; + * * @param value The bytes for fullResourceName to set. * @return This builder for chaining. */ - public Builder setFullResourceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setFullResourceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fullResourceName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -692,12 +747,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.RelatedResource) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.RelatedResource) private static final com.google.cloud.asset.v1.RelatedResource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.RelatedResource(); } @@ -706,27 +761,27 @@ public static com.google.cloud.asset.v1.RelatedResource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RelatedResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelatedResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -741,6 +796,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.RelatedResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourceOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourceOrBuilder.java similarity index 60% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourceOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourceOrBuilder.java index 4a184b2490d1..e23e9a341a6b 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourceOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourceOrBuilder.java @@ -1,51 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; -public interface RelatedResourceOrBuilder extends +public interface RelatedResourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.RelatedResource) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The type of the asset. Example: `compute.googleapis.com/Instance`
        * 
    * * string asset_type = 1; + * * @return The assetType. */ java.lang.String getAssetType(); /** + * + * *
        * The type of the asset. Example: `compute.googleapis.com/Instance`
        * 
    * * string asset_type = 1; + * * @return The bytes for assetType. */ - com.google.protobuf.ByteString - getAssetTypeBytes(); + com.google.protobuf.ByteString getAssetTypeBytes(); /** + * + * *
        * The full resource name of the related resource. Example:
        * `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`
        * 
    * * string full_resource_name = 2; + * * @return The fullResourceName. */ java.lang.String getFullResourceName(); /** + * + * *
        * The full resource name of the related resource. Example:
        * `//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123`
        * 
    * * string full_resource_name = 2; + * * @return The bytes for fullResourceName. */ - com.google.protobuf.ByteString - getFullResourceNameBytes(); + com.google.protobuf.ByteString getFullResourceNameBytes(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResources.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResources.java similarity index 72% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResources.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResources.java index be77ef9cd992..a6c6df76791a 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResources.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResources.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** + * + * *
      * The related resources of the primary resource.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.RelatedResources} */ -public final class RelatedResources extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RelatedResources extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.RelatedResources) RelatedResourcesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RelatedResources.newBuilder() to construct. private RelatedResources(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RelatedResources() { relatedResources_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RelatedResources(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedResources_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_RelatedResources_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedResources_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_RelatedResources_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.RelatedResources.class, com.google.cloud.asset.v1.RelatedResources.Builder.class); + com.google.cloud.asset.v1.RelatedResources.class, + com.google.cloud.asset.v1.RelatedResources.Builder.class); } public static final int RELATED_RESOURCES_FIELD_NUMBER = 1; private java.util.List relatedResources_; /** + * + * *
        * The detailed related resources of the primary resource.
        * 
    @@ -62,6 +83,8 @@ public java.util.List getRelatedResou return relatedResources_; } /** + * + * *
        * The detailed related resources of the primary resource.
        * 
    @@ -69,11 +92,13 @@ public java.util.List getRelatedResou * repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRelatedResourcesOrBuilderList() { return relatedResources_; } /** + * + * *
        * The detailed related resources of the primary resource.
        * 
    @@ -85,6 +110,8 @@ public int getRelatedResourcesCount() { return relatedResources_.size(); } /** + * + * *
        * The detailed related resources of the primary resource.
        * 
    @@ -96,6 +123,8 @@ public com.google.cloud.asset.v1.RelatedResource getRelatedResources(int index) return relatedResources_.get(index); } /** + * + * *
        * The detailed related resources of the primary resource.
        * 
    @@ -109,6 +138,7 @@ public com.google.cloud.asset.v1.RelatedResourceOrBuilder getRelatedResourcesOrB } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +150,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < relatedResources_.size(); i++) { output.writeMessage(1, relatedResources_.get(i)); } @@ -135,8 +164,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < relatedResources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, relatedResources_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, relatedResources_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -146,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.RelatedResources)) { return super.equals(obj); } - com.google.cloud.asset.v1.RelatedResources other = (com.google.cloud.asset.v1.RelatedResources) obj; + com.google.cloud.asset.v1.RelatedResources other = + (com.google.cloud.asset.v1.RelatedResources) obj; - if (!getRelatedResourcesList() - .equals(other.getRelatedResourcesList())) return false; + if (!getRelatedResourcesList().equals(other.getRelatedResourcesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -175,130 +203,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.RelatedResources parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.RelatedResources parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.RelatedResources parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.RelatedResources parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.RelatedResources 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.asset.v1.RelatedResources parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.RelatedResources parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.RelatedResources parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.RelatedResources parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.RelatedResources parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.RelatedResources parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.RelatedResources parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.RelatedResources parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.RelatedResources parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.RelatedResources prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * The related resources of the primary resource.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.RelatedResources} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.RelatedResources) com.google.cloud.asset.v1.RelatedResourcesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedResources_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_RelatedResources_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedResources_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_RelatedResources_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.RelatedResources.class, com.google.cloud.asset.v1.RelatedResources.Builder.class); + com.google.cloud.asset.v1.RelatedResources.class, + com.google.cloud.asset.v1.RelatedResources.Builder.class); } // Construct using com.google.cloud.asset.v1.RelatedResources.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -313,9 +347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelatedResources_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_RelatedResources_descriptor; } @java.lang.Override @@ -334,7 +368,8 @@ public com.google.cloud.asset.v1.RelatedResources build() { @java.lang.Override public com.google.cloud.asset.v1.RelatedResources buildPartial() { - com.google.cloud.asset.v1.RelatedResources result = new com.google.cloud.asset.v1.RelatedResources(this); + com.google.cloud.asset.v1.RelatedResources result = + new com.google.cloud.asset.v1.RelatedResources(this); int from_bitField0_ = bitField0_; if (relatedResourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -353,38 +388,39 @@ public com.google.cloud.asset.v1.RelatedResources buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.RelatedResources) { - return mergeFrom((com.google.cloud.asset.v1.RelatedResources)other); + return mergeFrom((com.google.cloud.asset.v1.RelatedResources) other); } else { super.mergeFrom(other); return this; @@ -411,9 +447,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.RelatedResources other) { relatedResourcesBuilder_ = null; relatedResources_ = other.relatedResources_; bitField0_ = (bitField0_ & ~0x00000001); - relatedResourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRelatedResourcesFieldBuilder() : null; + relatedResourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRelatedResourcesFieldBuilder() + : null; } else { relatedResourcesBuilder_.addAllMessages(other.relatedResources_); } @@ -445,25 +482,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.asset.v1.RelatedResource m = - input.readMessage( - com.google.cloud.asset.v1.RelatedResource.parser(), - extensionRegistry); - if (relatedResourcesBuilder_ == null) { - ensureRelatedResourcesIsMutable(); - relatedResources_.add(m); - } else { - relatedResourcesBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.asset.v1.RelatedResource m = + input.readMessage( + com.google.cloud.asset.v1.RelatedResource.parser(), extensionRegistry); + if (relatedResourcesBuilder_ == null) { + ensureRelatedResourcesIsMutable(); + relatedResources_.add(m); + } else { + relatedResourcesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -473,21 +511,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List relatedResources_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRelatedResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - relatedResources_ = new java.util.ArrayList(relatedResources_); + relatedResources_ = + new java.util.ArrayList(relatedResources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.RelatedResource, com.google.cloud.asset.v1.RelatedResource.Builder, com.google.cloud.asset.v1.RelatedResourceOrBuilder> relatedResourcesBuilder_; + com.google.cloud.asset.v1.RelatedResource, + com.google.cloud.asset.v1.RelatedResource.Builder, + com.google.cloud.asset.v1.RelatedResourceOrBuilder> + relatedResourcesBuilder_; /** + * + * *
          * The detailed related resources of the primary resource.
          * 
    @@ -502,6 +548,8 @@ public java.util.List getRelatedResou } } /** + * + * *
          * The detailed related resources of the primary resource.
          * 
    @@ -516,6 +564,8 @@ public int getRelatedResourcesCount() { } } /** + * + * *
          * The detailed related resources of the primary resource.
          * 
    @@ -530,14 +580,15 @@ public com.google.cloud.asset.v1.RelatedResource getRelatedResources(int index) } } /** + * + * *
          * The detailed related resources of the primary resource.
          * 
    * * repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; */ - public Builder setRelatedResources( - int index, com.google.cloud.asset.v1.RelatedResource value) { + public Builder setRelatedResources(int index, com.google.cloud.asset.v1.RelatedResource value) { if (relatedResourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -551,6 +602,8 @@ public Builder setRelatedResources( return this; } /** + * + * *
          * The detailed related resources of the primary resource.
          * 
    @@ -569,6 +622,8 @@ public Builder setRelatedResources( return this; } /** + * + * *
          * The detailed related resources of the primary resource.
          * 
    @@ -589,14 +644,15 @@ public Builder addRelatedResources(com.google.cloud.asset.v1.RelatedResource val return this; } /** + * + * *
          * The detailed related resources of the primary resource.
          * 
    * * repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; */ - public Builder addRelatedResources( - int index, com.google.cloud.asset.v1.RelatedResource value) { + public Builder addRelatedResources(int index, com.google.cloud.asset.v1.RelatedResource value) { if (relatedResourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -610,6 +666,8 @@ public Builder addRelatedResources( return this; } /** + * + * *
          * The detailed related resources of the primary resource.
          * 
    @@ -628,6 +686,8 @@ public Builder addRelatedResources( return this; } /** + * + * *
          * The detailed related resources of the primary resource.
          * 
    @@ -646,6 +706,8 @@ public Builder addRelatedResources( return this; } /** + * + * *
          * The detailed related resources of the primary resource.
          * 
    @@ -656,8 +718,7 @@ public Builder addAllRelatedResources( java.lang.Iterable values) { if (relatedResourcesBuilder_ == null) { ensureRelatedResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, relatedResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relatedResources_); onChanged(); } else { relatedResourcesBuilder_.addAllMessages(values); @@ -665,6 +726,8 @@ public Builder addAllRelatedResources( return this; } /** + * + * *
          * The detailed related resources of the primary resource.
          * 
    @@ -682,6 +745,8 @@ public Builder clearRelatedResources() { return this; } /** + * + * *
          * The detailed related resources of the primary resource.
          * 
    @@ -699,17 +764,20 @@ public Builder removeRelatedResources(int index) { return this; } /** + * + * *
          * The detailed related resources of the primary resource.
          * 
    * * repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; */ - public com.google.cloud.asset.v1.RelatedResource.Builder getRelatedResourcesBuilder( - int index) { + public com.google.cloud.asset.v1.RelatedResource.Builder getRelatedResourcesBuilder(int index) { return getRelatedResourcesFieldBuilder().getBuilder(index); } /** + * + * *
          * The detailed related resources of the primary resource.
          * 
    @@ -719,19 +787,22 @@ public com.google.cloud.asset.v1.RelatedResource.Builder getRelatedResourcesBuil public com.google.cloud.asset.v1.RelatedResourceOrBuilder getRelatedResourcesOrBuilder( int index) { if (relatedResourcesBuilder_ == null) { - return relatedResources_.get(index); } else { + return relatedResources_.get(index); + } else { return relatedResourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
          * The detailed related resources of the primary resource.
          * 
    * * repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; */ - public java.util.List - getRelatedResourcesOrBuilderList() { + public java.util.List + getRelatedResourcesOrBuilderList() { if (relatedResourcesBuilder_ != null) { return relatedResourcesBuilder_.getMessageOrBuilderList(); } else { @@ -739,6 +810,8 @@ public com.google.cloud.asset.v1.RelatedResourceOrBuilder getRelatedResourcesOrB } } /** + * + * *
          * The detailed related resources of the primary resource.
          * 
    @@ -746,38 +819,47 @@ public com.google.cloud.asset.v1.RelatedResourceOrBuilder getRelatedResourcesOrB * repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; */ public com.google.cloud.asset.v1.RelatedResource.Builder addRelatedResourcesBuilder() { - return getRelatedResourcesFieldBuilder().addBuilder( - com.google.cloud.asset.v1.RelatedResource.getDefaultInstance()); + return getRelatedResourcesFieldBuilder() + .addBuilder(com.google.cloud.asset.v1.RelatedResource.getDefaultInstance()); } /** + * + * *
          * The detailed related resources of the primary resource.
          * 
    * * repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; */ - public com.google.cloud.asset.v1.RelatedResource.Builder addRelatedResourcesBuilder( - int index) { - return getRelatedResourcesFieldBuilder().addBuilder( - index, com.google.cloud.asset.v1.RelatedResource.getDefaultInstance()); + public com.google.cloud.asset.v1.RelatedResource.Builder addRelatedResourcesBuilder(int index) { + return getRelatedResourcesFieldBuilder() + .addBuilder(index, com.google.cloud.asset.v1.RelatedResource.getDefaultInstance()); } /** + * + * *
          * The detailed related resources of the primary resource.
          * 
    * * repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; */ - public java.util.List - getRelatedResourcesBuilderList() { + public java.util.List + getRelatedResourcesBuilderList() { return getRelatedResourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.RelatedResource, com.google.cloud.asset.v1.RelatedResource.Builder, com.google.cloud.asset.v1.RelatedResourceOrBuilder> + com.google.cloud.asset.v1.RelatedResource, + com.google.cloud.asset.v1.RelatedResource.Builder, + com.google.cloud.asset.v1.RelatedResourceOrBuilder> getRelatedResourcesFieldBuilder() { if (relatedResourcesBuilder_ == null) { - relatedResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.RelatedResource, com.google.cloud.asset.v1.RelatedResource.Builder, com.google.cloud.asset.v1.RelatedResourceOrBuilder>( + relatedResourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.RelatedResource, + com.google.cloud.asset.v1.RelatedResource.Builder, + com.google.cloud.asset.v1.RelatedResourceOrBuilder>( relatedResources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -786,9 +868,9 @@ public com.google.cloud.asset.v1.RelatedResource.Builder addRelatedResourcesBuil } return relatedResourcesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -798,12 +880,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.RelatedResources) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.RelatedResources) private static final com.google.cloud.asset.v1.RelatedResources DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.RelatedResources(); } @@ -812,27 +894,27 @@ public static com.google.cloud.asset.v1.RelatedResources getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RelatedResources parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelatedResources parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -847,6 +929,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.RelatedResources getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourcesOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourcesOrBuilder.java similarity index 64% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourcesOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourcesOrBuilder.java index 10384ab80468..7e13b3b81889 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourcesOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedResourcesOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; -public interface RelatedResourcesOrBuilder extends +public interface RelatedResourcesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.RelatedResources) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The detailed related resources of the primary resource.
        * 
    * * repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; */ - java.util.List - getRelatedResourcesList(); + java.util.List getRelatedResourcesList(); /** + * + * *
        * The detailed related resources of the primary resource.
        * 
    @@ -25,6 +44,8 @@ public interface RelatedResourcesOrBuilder extends */ com.google.cloud.asset.v1.RelatedResource getRelatedResources(int index); /** + * + * *
        * The detailed related resources of the primary resource.
        * 
    @@ -33,21 +54,24 @@ public interface RelatedResourcesOrBuilder extends */ int getRelatedResourcesCount(); /** + * + * *
        * The detailed related resources of the primary resource.
        * 
    * * repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; */ - java.util.List + java.util.List getRelatedResourcesOrBuilderList(); /** + * + * *
        * The detailed related resources of the primary resource.
        * 
    * * repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; */ - com.google.cloud.asset.v1.RelatedResourceOrBuilder getRelatedResourcesOrBuilder( - int index); + com.google.cloud.asset.v1.RelatedResourceOrBuilder getRelatedResourcesOrBuilder(int index); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributes.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributes.java similarity index 70% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributes.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributes.java index 6002159cbb01..7076d6b7c4d1 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributes.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributes.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** + * + * *
      * DEPRECATED. This message only presents for the purpose of
      * backward-compatibility. The server will never populate this message in
    @@ -14,15 +31,17 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.RelationshipAttributes}
      */
    -@java.lang.Deprecated public final class RelationshipAttributes extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +@java.lang.Deprecated
    +public final class RelationshipAttributes extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.RelationshipAttributes)
         RelationshipAttributesOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use RelationshipAttributes.newBuilder() to construct.
       private RelationshipAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private RelationshipAttributes() {
         type_ = "";
         sourceResourceType_ = "";
    @@ -32,38 +51,42 @@ private RelationshipAttributes() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(
    -      UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new RelationshipAttributes();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetProto
    +        .internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelationshipAttributes_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetProto
    +        .internal_static_google_cloud_asset_v1_RelationshipAttributes_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1.RelationshipAttributes.class, com.google.cloud.asset.v1.RelationshipAttributes.Builder.class);
    +            com.google.cloud.asset.v1.RelationshipAttributes.class,
    +            com.google.cloud.asset.v1.RelationshipAttributes.Builder.class);
       }
     
       public static final int TYPE_FIELD_NUMBER = 4;
       private volatile java.lang.Object type_;
       /**
    +   *
    +   *
        * 
        * The unique identifier of the relationship type. Example:
        * `INSTANCE_TO_INSTANCEGROUP`
        * 
    * * string type = 4; + * * @return The type. */ @java.lang.Override @@ -72,30 +95,30 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
        * The unique identifier of the relationship type. Example:
        * `INSTANCE_TO_INSTANCEGROUP`
        * 
    * * string type = 4; + * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -106,11 +129,14 @@ public java.lang.String getType() { public static final int SOURCE_RESOURCE_TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object sourceResourceType_; /** + * + * *
        * The source asset type. Example: `compute.googleapis.com/Instance`
        * 
    * * string source_resource_type = 1; + * * @return The sourceResourceType. */ @java.lang.Override @@ -119,29 +145,29 @@ public java.lang.String getSourceResourceType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceResourceType_ = s; return s; } } /** + * + * *
        * The source asset type. Example: `compute.googleapis.com/Instance`
        * 
    * * string source_resource_type = 1; + * * @return The bytes for sourceResourceType. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceResourceTypeBytes() { + public com.google.protobuf.ByteString getSourceResourceTypeBytes() { java.lang.Object ref = sourceResourceType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceResourceType_ = b; return b; } else { @@ -152,11 +178,14 @@ public java.lang.String getSourceResourceType() { public static final int TARGET_RESOURCE_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object targetResourceType_; /** + * + * *
        * The target asset type. Example: `compute.googleapis.com/Disk`
        * 
    * * string target_resource_type = 2; + * * @return The targetResourceType. */ @java.lang.Override @@ -165,29 +194,29 @@ public java.lang.String getTargetResourceType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetResourceType_ = s; return s; } } /** + * + * *
        * The target asset type. Example: `compute.googleapis.com/Disk`
        * 
    * * string target_resource_type = 2; + * * @return The bytes for targetResourceType. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetResourceTypeBytes() { + public com.google.protobuf.ByteString getTargetResourceTypeBytes() { java.lang.Object ref = targetResourceType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetResourceType_ = b; return b; } else { @@ -198,11 +227,14 @@ public java.lang.String getTargetResourceType() { public static final int ACTION_FIELD_NUMBER = 3; private volatile java.lang.Object action_; /** + * + * *
        * The detail of the relationship, e.g. `contains`, `attaches`
        * 
    * * string action = 3; + * * @return The action. */ @java.lang.Override @@ -211,29 +243,29 @@ public java.lang.String getAction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); action_ = s; return s; } } /** + * + * *
        * The detail of the relationship, e.g. `contains`, `attaches`
        * 
    * * string action = 3; + * * @return The bytes for action. */ @java.lang.Override - public com.google.protobuf.ByteString - getActionBytes() { + public com.google.protobuf.ByteString getActionBytes() { java.lang.Object ref = action_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); action_ = b; return b; } else { @@ -242,6 +274,7 @@ public java.lang.String getAction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,8 +286,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceResourceType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceResourceType_); } @@ -296,21 +328,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.RelationshipAttributes)) { return super.equals(obj); } - com.google.cloud.asset.v1.RelationshipAttributes other = (com.google.cloud.asset.v1.RelationshipAttributes) obj; - - if (!getType() - .equals(other.getType())) return false; - if (!getSourceResourceType() - .equals(other.getSourceResourceType())) return false; - if (!getTargetResourceType() - .equals(other.getTargetResourceType())) return false; - if (!getAction() - .equals(other.getAction())) return false; + com.google.cloud.asset.v1.RelationshipAttributes other = + (com.google.cloud.asset.v1.RelationshipAttributes) obj; + + if (!getType().equals(other.getType())) return false; + if (!getSourceResourceType().equals(other.getSourceResourceType())) return false; + if (!getTargetResourceType().equals(other.getTargetResourceType())) return false; + if (!getAction().equals(other.getAction())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -335,97 +364,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.RelationshipAttributes parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.RelationshipAttributes parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.RelationshipAttributes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.RelationshipAttributes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.RelationshipAttributes 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.asset.v1.RelationshipAttributes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.RelationshipAttributes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.RelationshipAttributes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.RelationshipAttributes parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.RelationshipAttributes parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.RelationshipAttributes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.RelationshipAttributes parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.RelationshipAttributes parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.RelationshipAttributes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.RelationshipAttributes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.RelationshipAttributes prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * DEPRECATED. This message only presents for the purpose of
        * backward-compatibility. The server will never populate this message in
    @@ -436,33 +472,32 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.asset.v1.RelationshipAttributes}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.RelationshipAttributes)
           com.google.cloud.asset.v1.RelationshipAttributesOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelationshipAttributes_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_RelationshipAttributes_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.RelationshipAttributes.class, com.google.cloud.asset.v1.RelationshipAttributes.Builder.class);
    +              com.google.cloud.asset.v1.RelationshipAttributes.class,
    +              com.google.cloud.asset.v1.RelationshipAttributes.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.RelationshipAttributes.newBuilder()
    -    private Builder() {
    +    private Builder() {}
     
    -    }
    -
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -478,9 +513,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor;
         }
     
         @java.lang.Override
    @@ -499,7 +534,8 @@ public com.google.cloud.asset.v1.RelationshipAttributes build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1.RelationshipAttributes buildPartial() {
    -      com.google.cloud.asset.v1.RelationshipAttributes result = new com.google.cloud.asset.v1.RelationshipAttributes(this);
    +      com.google.cloud.asset.v1.RelationshipAttributes result =
    +          new com.google.cloud.asset.v1.RelationshipAttributes(this);
           result.type_ = type_;
           result.sourceResourceType_ = sourceResourceType_;
           result.targetResourceType_ = targetResourceType_;
    @@ -512,38 +548,39 @@ public com.google.cloud.asset.v1.RelationshipAttributes buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.RelationshipAttributes) {
    -        return mergeFrom((com.google.cloud.asset.v1.RelationshipAttributes)other);
    +        return mergeFrom((com.google.cloud.asset.v1.RelationshipAttributes) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -551,7 +588,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
         }
     
         public Builder mergeFrom(com.google.cloud.asset.v1.RelationshipAttributes other) {
    -      if (other == com.google.cloud.asset.v1.RelationshipAttributes.getDefaultInstance()) return this;
    +      if (other == com.google.cloud.asset.v1.RelationshipAttributes.getDefaultInstance())
    +        return this;
           if (!other.getType().isEmpty()) {
             type_ = other.type_;
             onChanged();
    @@ -594,32 +632,37 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
    -            case 10: {
    -              sourceResourceType_ = input.readStringRequireUtf8();
    +            case 10:
    +              {
    +                sourceResourceType_ = input.readStringRequireUtf8();
     
    -              break;
    -            } // case 10
    -            case 18: {
    -              targetResourceType_ = input.readStringRequireUtf8();
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                targetResourceType_ = input.readStringRequireUtf8();
     
    -              break;
    -            } // case 18
    -            case 26: {
    -              action_ = input.readStringRequireUtf8();
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                action_ = input.readStringRequireUtf8();
     
    -              break;
    -            } // case 26
    -            case 34: {
    -              type_ = input.readStringRequireUtf8();
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                type_ = input.readStringRequireUtf8();
     
    -              break;
    -            } // case 34
    -            default: {
    -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                done = true; // was an endgroup tag
    -              }
    -              break;
    -            } // default:
    +                break;
    +              } // case 34
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -632,19 +675,21 @@ public Builder mergeFrom(
     
         private java.lang.Object type_ = "";
         /**
    +     *
    +     *
          * 
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string type = 4; + * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -653,21 +698,22 @@ public java.lang.String getType() { } } /** + * + * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string type = 4; + * * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -675,57 +721,64 @@ public java.lang.String getType() { } } /** + * + * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string type = 4; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - java.lang.String value) { + public Builder setType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** + * + * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string type = 4; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** + * + * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string type = 4; + * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; @@ -733,18 +786,20 @@ public Builder setTypeBytes( private java.lang.Object sourceResourceType_ = ""; /** + * + * *
          * The source asset type. Example: `compute.googleapis.com/Instance`
          * 
    * * string source_resource_type = 1; + * * @return The sourceResourceType. */ public java.lang.String getSourceResourceType() { java.lang.Object ref = sourceResourceType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceResourceType_ = s; return s; @@ -753,20 +808,21 @@ public java.lang.String getSourceResourceType() { } } /** + * + * *
          * The source asset type. Example: `compute.googleapis.com/Instance`
          * 
    * * string source_resource_type = 1; + * * @return The bytes for sourceResourceType. */ - public com.google.protobuf.ByteString - getSourceResourceTypeBytes() { + public com.google.protobuf.ByteString getSourceResourceTypeBytes() { java.lang.Object ref = sourceResourceType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceResourceType_ = b; return b; } else { @@ -774,54 +830,61 @@ public java.lang.String getSourceResourceType() { } } /** + * + * *
          * The source asset type. Example: `compute.googleapis.com/Instance`
          * 
    * * string source_resource_type = 1; + * * @param value The sourceResourceType to set. * @return This builder for chaining. */ - public Builder setSourceResourceType( - java.lang.String value) { + public Builder setSourceResourceType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceResourceType_ = value; onChanged(); return this; } /** + * + * *
          * The source asset type. Example: `compute.googleapis.com/Instance`
          * 
    * * string source_resource_type = 1; + * * @return This builder for chaining. */ public Builder clearSourceResourceType() { - + sourceResourceType_ = getDefaultInstance().getSourceResourceType(); onChanged(); return this; } /** + * + * *
          * The source asset type. Example: `compute.googleapis.com/Instance`
          * 
    * * string source_resource_type = 1; + * * @param value The bytes for sourceResourceType to set. * @return This builder for chaining. */ - public Builder setSourceResourceTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceResourceTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceResourceType_ = value; onChanged(); return this; @@ -829,18 +892,20 @@ public Builder setSourceResourceTypeBytes( private java.lang.Object targetResourceType_ = ""; /** + * + * *
          * The target asset type. Example: `compute.googleapis.com/Disk`
          * 
    * * string target_resource_type = 2; + * * @return The targetResourceType. */ public java.lang.String getTargetResourceType() { java.lang.Object ref = targetResourceType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetResourceType_ = s; return s; @@ -849,20 +914,21 @@ public java.lang.String getTargetResourceType() { } } /** + * + * *
          * The target asset type. Example: `compute.googleapis.com/Disk`
          * 
    * * string target_resource_type = 2; + * * @return The bytes for targetResourceType. */ - public com.google.protobuf.ByteString - getTargetResourceTypeBytes() { + public com.google.protobuf.ByteString getTargetResourceTypeBytes() { java.lang.Object ref = targetResourceType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetResourceType_ = b; return b; } else { @@ -870,54 +936,61 @@ public java.lang.String getTargetResourceType() { } } /** + * + * *
          * The target asset type. Example: `compute.googleapis.com/Disk`
          * 
    * * string target_resource_type = 2; + * * @param value The targetResourceType to set. * @return This builder for chaining. */ - public Builder setTargetResourceType( - java.lang.String value) { + public Builder setTargetResourceType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetResourceType_ = value; onChanged(); return this; } /** + * + * *
          * The target asset type. Example: `compute.googleapis.com/Disk`
          * 
    * * string target_resource_type = 2; + * * @return This builder for chaining. */ public Builder clearTargetResourceType() { - + targetResourceType_ = getDefaultInstance().getTargetResourceType(); onChanged(); return this; } /** + * + * *
          * The target asset type. Example: `compute.googleapis.com/Disk`
          * 
    * * string target_resource_type = 2; + * * @param value The bytes for targetResourceType to set. * @return This builder for chaining. */ - public Builder setTargetResourceTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetResourceTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetResourceType_ = value; onChanged(); return this; @@ -925,18 +998,20 @@ public Builder setTargetResourceTypeBytes( private java.lang.Object action_ = ""; /** + * + * *
          * The detail of the relationship, e.g. `contains`, `attaches`
          * 
    * * string action = 3; + * * @return The action. */ public java.lang.String getAction() { java.lang.Object ref = action_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); action_ = s; return s; @@ -945,20 +1020,21 @@ public java.lang.String getAction() { } } /** + * + * *
          * The detail of the relationship, e.g. `contains`, `attaches`
          * 
    * * string action = 3; + * * @return The bytes for action. */ - public com.google.protobuf.ByteString - getActionBytes() { + public com.google.protobuf.ByteString getActionBytes() { java.lang.Object ref = action_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); action_ = b; return b; } else { @@ -966,61 +1042,68 @@ public java.lang.String getAction() { } } /** + * + * *
          * The detail of the relationship, e.g. `contains`, `attaches`
          * 
    * * string action = 3; + * * @param value The action to set. * @return This builder for chaining. */ - public Builder setAction( - java.lang.String value) { + public Builder setAction(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + action_ = value; onChanged(); return this; } /** + * + * *
          * The detail of the relationship, e.g. `contains`, `attaches`
          * 
    * * string action = 3; + * * @return This builder for chaining. */ public Builder clearAction() { - + action_ = getDefaultInstance().getAction(); onChanged(); return this; } /** + * + * *
          * The detail of the relationship, e.g. `contains`, `attaches`
          * 
    * * string action = 3; + * * @param value The bytes for action to set. * @return This builder for chaining. */ - public Builder setActionBytes( - com.google.protobuf.ByteString value) { + public Builder setActionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + action_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1030,12 +1113,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.RelationshipAttributes) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.RelationshipAttributes) private static final com.google.cloud.asset.v1.RelationshipAttributes DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.RelationshipAttributes(); } @@ -1044,27 +1127,27 @@ public static com.google.cloud.asset.v1.RelationshipAttributes getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RelationshipAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelationshipAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1079,6 +1162,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.RelationshipAttributes getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributesOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributesOrBuilder.java similarity index 65% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributesOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributesOrBuilder.java index 5030889b1b69..254c4fbbba60 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributesOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelationshipAttributesOrBuilder.java @@ -1,91 +1,128 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; -@java.lang.Deprecated public interface RelationshipAttributesOrBuilder extends +@java.lang.Deprecated +public interface RelationshipAttributesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.RelationshipAttributes) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The unique identifier of the relationship type. Example:
        * `INSTANCE_TO_INSTANCEGROUP`
        * 
    * * string type = 4; + * * @return The type. */ java.lang.String getType(); /** + * + * *
        * The unique identifier of the relationship type. Example:
        * `INSTANCE_TO_INSTANCEGROUP`
        * 
    * * string type = 4; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
        * The source asset type. Example: `compute.googleapis.com/Instance`
        * 
    * * string source_resource_type = 1; + * * @return The sourceResourceType. */ java.lang.String getSourceResourceType(); /** + * + * *
        * The source asset type. Example: `compute.googleapis.com/Instance`
        * 
    * * string source_resource_type = 1; + * * @return The bytes for sourceResourceType. */ - com.google.protobuf.ByteString - getSourceResourceTypeBytes(); + com.google.protobuf.ByteString getSourceResourceTypeBytes(); /** + * + * *
        * The target asset type. Example: `compute.googleapis.com/Disk`
        * 
    * * string target_resource_type = 2; + * * @return The targetResourceType. */ java.lang.String getTargetResourceType(); /** + * + * *
        * The target asset type. Example: `compute.googleapis.com/Disk`
        * 
    * * string target_resource_type = 2; + * * @return The bytes for targetResourceType. */ - com.google.protobuf.ByteString - getTargetResourceTypeBytes(); + com.google.protobuf.ByteString getTargetResourceTypeBytes(); /** + * + * *
        * The detail of the relationship, e.g. `contains`, `attaches`
        * 
    * * string action = 3; + * * @return The action. */ java.lang.String getAction(); /** + * + * *
        * The detail of the relationship, e.g. `contains`, `attaches`
        * 
    * * string action = 3; + * * @return The bytes for action. */ - com.google.protobuf.ByteString - getActionBytes(); + com.google.protobuf.ByteString getActionBytes(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java similarity index 76% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java index 0859118b1219..e4672184dba9 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Resource.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** + * + * *
      * A representation of a Google Cloud resource.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.Resource} */ -public final class Resource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Resource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.Resource) ResourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Resource.newBuilder() to construct. private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Resource() { version_ = ""; discoveryDocumentUri_ = ""; @@ -30,37 +48,41 @@ private Resource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Resource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_Resource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_Resource_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.Resource.class, com.google.cloud.asset.v1.Resource.Builder.class); + com.google.cloud.asset.v1.Resource.class, + com.google.cloud.asset.v1.Resource.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** + * + * *
        * The API version. Example: `v1`
        * 
    * * string version = 1; + * * @return The version. */ @java.lang.Override @@ -69,29 +91,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
        * The API version. Example: `v1`
        * 
    * * string version = 1; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -102,6 +124,8 @@ public java.lang.String getVersion() { public static final int DISCOVERY_DOCUMENT_URI_FIELD_NUMBER = 2; private volatile java.lang.Object discoveryDocumentUri_; /** + * + * *
        * The URL of the discovery document containing the resource's JSON schema.
        * Example:
    @@ -111,6 +135,7 @@ public java.lang.String getVersion() {
        * 
    * * string discovery_document_uri = 2; + * * @return The discoveryDocumentUri. */ @java.lang.Override @@ -119,14 +144,15 @@ public java.lang.String getDiscoveryDocumentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryDocumentUri_ = s; return s; } } /** + * + * *
        * The URL of the discovery document containing the resource's JSON schema.
        * Example:
    @@ -136,16 +162,15 @@ public java.lang.String getDiscoveryDocumentUri() {
        * 
    * * string discovery_document_uri = 2; + * * @return The bytes for discoveryDocumentUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getDiscoveryDocumentUriBytes() { + public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { java.lang.Object ref = discoveryDocumentUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); discoveryDocumentUri_ = b; return b; } else { @@ -156,6 +181,8 @@ public java.lang.String getDiscoveryDocumentUri() { public static final int DISCOVERY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object discoveryName_; /** + * + * *
        * The JSON schema name listed in the discovery document. Example:
        * `Project`
    @@ -164,6 +191,7 @@ public java.lang.String getDiscoveryDocumentUri() {
        * 
    * * string discovery_name = 3; + * * @return The discoveryName. */ @java.lang.Override @@ -172,14 +200,15 @@ public java.lang.String getDiscoveryName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryName_ = s; return s; } } /** + * + * *
        * The JSON schema name listed in the discovery document. Example:
        * `Project`
    @@ -188,16 +217,15 @@ public java.lang.String getDiscoveryName() {
        * 
    * * string discovery_name = 3; + * * @return The bytes for discoveryName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDiscoveryNameBytes() { + public com.google.protobuf.ByteString getDiscoveryNameBytes() { java.lang.Object ref = discoveryName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); discoveryName_ = b; return b; } else { @@ -208,6 +236,8 @@ public java.lang.String getDiscoveryName() { public static final int RESOURCE_URL_FIELD_NUMBER = 4; private volatile java.lang.Object resourceUrl_; /** + * + * *
        * The REST URL for accessing the resource. An HTTP `GET` request using this
        * URL returns the resource itself. Example:
    @@ -216,6 +246,7 @@ public java.lang.String getDiscoveryName() {
        * 
    * * string resource_url = 4; + * * @return The resourceUrl. */ @java.lang.Override @@ -224,14 +255,15 @@ public java.lang.String getResourceUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; } } /** + * + * *
        * The REST URL for accessing the resource. An HTTP `GET` request using this
        * URL returns the resource itself. Example:
    @@ -240,16 +272,15 @@ public java.lang.String getResourceUrl() {
        * 
    * * string resource_url = 4; + * * @return The bytes for resourceUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceUrlBytes() { + public com.google.protobuf.ByteString getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -260,6 +291,8 @@ public java.lang.String getResourceUrl() { public static final int PARENT_FIELD_NUMBER = 5; private volatile java.lang.Object parent_; /** + * + * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -274,6 +307,7 @@ public java.lang.String getResourceUrl() {
        * 
    * * string parent = 5; + * * @return The parent. */ @java.lang.Override @@ -282,14 +316,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -304,16 +339,15 @@ public java.lang.String getParent() {
        * 
    * * string parent = 5; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -324,12 +358,15 @@ public java.lang.String getParent() { public static final int DATA_FIELD_NUMBER = 6; private com.google.protobuf.Struct data_; /** + * + * *
        * The content of the resource, in which some sensitive fields are removed
        * and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; + * * @return Whether the data field is set. */ @java.lang.Override @@ -337,12 +374,15 @@ public boolean hasData() { return data_ != null; } /** + * + * *
        * The content of the resource, in which some sensitive fields are removed
        * and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; + * * @return The data. */ @java.lang.Override @@ -350,6 +390,8 @@ public com.google.protobuf.Struct getData() { return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_; } /** + * + * *
        * The content of the resource, in which some sensitive fields are removed
        * and may not be present.
    @@ -365,12 +407,15 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
       public static final int LOCATION_FIELD_NUMBER = 8;
       private volatile java.lang.Object location_;
       /**
    +   *
    +   *
        * 
        * The location of the resource in Google Cloud, such as its zone and region.
        * For more information, see https://cloud.google.com/about/locations/.
        * 
    * * string location = 8; + * * @return The location. */ @java.lang.Override @@ -379,30 +424,30 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** + * + * *
        * The location of the resource in Google Cloud, such as its zone and region.
        * For more information, see https://cloud.google.com/about/locations/.
        * 
    * * string location = 8; + * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -411,6 +456,7 @@ public java.lang.String getLocation() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -422,8 +468,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } @@ -470,8 +515,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_); } if (data_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getData()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getData()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, location_); @@ -484,30 +528,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.Resource)) { return super.equals(obj); } com.google.cloud.asset.v1.Resource other = (com.google.cloud.asset.v1.Resource) obj; - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getDiscoveryDocumentUri() - .equals(other.getDiscoveryDocumentUri())) return false; - if (!getDiscoveryName() - .equals(other.getDiscoveryName())) return false; - if (!getResourceUrl() - .equals(other.getResourceUrl())) return false; - if (!getParent() - .equals(other.getParent())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getDiscoveryDocumentUri().equals(other.getDiscoveryDocumentUri())) return false; + if (!getDiscoveryName().equals(other.getDiscoveryName())) return false; + if (!getResourceUrl().equals(other.getResourceUrl())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasData() != other.hasData()) return false; if (hasData()) { - if (!getData() - .equals(other.getData())) return false; + if (!getData().equals(other.getData())) return false; } - if (!getLocation() - .equals(other.getLocation())) return false; + if (!getLocation().equals(other.getLocation())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -540,130 +577,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.Resource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.Resource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.Resource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.Resource parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.asset.v1.Resource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.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.asset.v1.Resource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.Resource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.Resource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.Resource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.Resource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.Resource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.Resource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.Resource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * A representation of a Google Cloud resource.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.Resource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.Resource) com.google.cloud.asset.v1.ResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_Resource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_Resource_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.Resource.class, com.google.cloud.asset.v1.Resource.Builder.class); + com.google.cloud.asset.v1.Resource.class, + com.google.cloud.asset.v1.Resource.Builder.class); } // Construct using com.google.cloud.asset.v1.Resource.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -689,9 +731,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_Resource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_Resource_descriptor; } @java.lang.Override @@ -730,38 +772,39 @@ public com.google.cloud.asset.v1.Resource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.Resource) { - return mergeFrom((com.google.cloud.asset.v1.Resource)other); + return mergeFrom((com.google.cloud.asset.v1.Resource) other); } else { super.mergeFrom(other); return this; @@ -823,49 +866,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - version_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - discoveryDocumentUri_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - discoveryName_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - resourceUrl_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - input.readMessage( - getDataFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 50 - case 66: { - location_ = input.readStringRequireUtf8(); - - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + version_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + discoveryDocumentUri_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + discoveryName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + resourceUrl_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + input.readMessage(getDataFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 66: + { + location_ = input.readStringRequireUtf8(); + + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -878,18 +927,20 @@ public Builder mergeFrom( private java.lang.Object version_ = ""; /** + * + * *
          * The API version. Example: `v1`
          * 
    * * string version = 1; + * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -898,20 +949,21 @@ public java.lang.String getVersion() { } } /** + * + * *
          * The API version. Example: `v1`
          * 
    * * string version = 1; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -919,54 +971,61 @@ public java.lang.String getVersion() { } } /** + * + * *
          * The API version. Example: `v1`
          * 
    * * string version = 1; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
          * The API version. Example: `v1`
          * 
    * * string version = 1; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
          * The API version. Example: `v1`
          * 
    * * string version = 1; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -974,6 +1033,8 @@ public Builder setVersionBytes( private java.lang.Object discoveryDocumentUri_ = ""; /** + * + * *
          * The URL of the discovery document containing the resource's JSON schema.
          * Example:
    @@ -983,13 +1044,13 @@ public Builder setVersionBytes(
          * 
    * * string discovery_document_uri = 2; + * * @return The discoveryDocumentUri. */ public java.lang.String getDiscoveryDocumentUri() { java.lang.Object ref = discoveryDocumentUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryDocumentUri_ = s; return s; @@ -998,6 +1059,8 @@ public java.lang.String getDiscoveryDocumentUri() { } } /** + * + * *
          * The URL of the discovery document containing the resource's JSON schema.
          * Example:
    @@ -1007,15 +1070,14 @@ public java.lang.String getDiscoveryDocumentUri() {
          * 
    * * string discovery_document_uri = 2; + * * @return The bytes for discoveryDocumentUri. */ - public com.google.protobuf.ByteString - getDiscoveryDocumentUriBytes() { + public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { java.lang.Object ref = discoveryDocumentUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); discoveryDocumentUri_ = b; return b; } else { @@ -1023,6 +1085,8 @@ public java.lang.String getDiscoveryDocumentUri() { } } /** + * + * *
          * The URL of the discovery document containing the resource's JSON schema.
          * Example:
    @@ -1032,20 +1096,22 @@ public java.lang.String getDiscoveryDocumentUri() {
          * 
    * * string discovery_document_uri = 2; + * * @param value The discoveryDocumentUri to set. * @return This builder for chaining. */ - public Builder setDiscoveryDocumentUri( - java.lang.String value) { + public Builder setDiscoveryDocumentUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + discoveryDocumentUri_ = value; onChanged(); return this; } /** + * + * *
          * The URL of the discovery document containing the resource's JSON schema.
          * Example:
    @@ -1055,15 +1121,18 @@ public Builder setDiscoveryDocumentUri(
          * 
    * * string discovery_document_uri = 2; + * * @return This builder for chaining. */ public Builder clearDiscoveryDocumentUri() { - + discoveryDocumentUri_ = getDefaultInstance().getDiscoveryDocumentUri(); onChanged(); return this; } /** + * + * *
          * The URL of the discovery document containing the resource's JSON schema.
          * Example:
    @@ -1073,16 +1142,16 @@ public Builder clearDiscoveryDocumentUri() {
          * 
    * * string discovery_document_uri = 2; + * * @param value The bytes for discoveryDocumentUri to set. * @return This builder for chaining. */ - public Builder setDiscoveryDocumentUriBytes( - com.google.protobuf.ByteString value) { + public Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + discoveryDocumentUri_ = value; onChanged(); return this; @@ -1090,6 +1159,8 @@ public Builder setDiscoveryDocumentUriBytes( private java.lang.Object discoveryName_ = ""; /** + * + * *
          * The JSON schema name listed in the discovery document. Example:
          * `Project`
    @@ -1098,13 +1169,13 @@ public Builder setDiscoveryDocumentUriBytes(
          * 
    * * string discovery_name = 3; + * * @return The discoveryName. */ public java.lang.String getDiscoveryName() { java.lang.Object ref = discoveryName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryName_ = s; return s; @@ -1113,6 +1184,8 @@ public java.lang.String getDiscoveryName() { } } /** + * + * *
          * The JSON schema name listed in the discovery document. Example:
          * `Project`
    @@ -1121,15 +1194,14 @@ public java.lang.String getDiscoveryName() {
          * 
    * * string discovery_name = 3; + * * @return The bytes for discoveryName. */ - public com.google.protobuf.ByteString - getDiscoveryNameBytes() { + public com.google.protobuf.ByteString getDiscoveryNameBytes() { java.lang.Object ref = discoveryName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); discoveryName_ = b; return b; } else { @@ -1137,6 +1209,8 @@ public java.lang.String getDiscoveryName() { } } /** + * + * *
          * The JSON schema name listed in the discovery document. Example:
          * `Project`
    @@ -1145,20 +1219,22 @@ public java.lang.String getDiscoveryName() {
          * 
    * * string discovery_name = 3; + * * @param value The discoveryName to set. * @return This builder for chaining. */ - public Builder setDiscoveryName( - java.lang.String value) { + public Builder setDiscoveryName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + discoveryName_ = value; onChanged(); return this; } /** + * + * *
          * The JSON schema name listed in the discovery document. Example:
          * `Project`
    @@ -1167,15 +1243,18 @@ public Builder setDiscoveryName(
          * 
    * * string discovery_name = 3; + * * @return This builder for chaining. */ public Builder clearDiscoveryName() { - + discoveryName_ = getDefaultInstance().getDiscoveryName(); onChanged(); return this; } /** + * + * *
          * The JSON schema name listed in the discovery document. Example:
          * `Project`
    @@ -1184,16 +1263,16 @@ public Builder clearDiscoveryName() {
          * 
    * * string discovery_name = 3; + * * @param value The bytes for discoveryName to set. * @return This builder for chaining. */ - public Builder setDiscoveryNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDiscoveryNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + discoveryName_ = value; onChanged(); return this; @@ -1201,6 +1280,8 @@ public Builder setDiscoveryNameBytes( private java.lang.Object resourceUrl_ = ""; /** + * + * *
          * The REST URL for accessing the resource. An HTTP `GET` request using this
          * URL returns the resource itself. Example:
    @@ -1209,13 +1290,13 @@ public Builder setDiscoveryNameBytes(
          * 
    * * string resource_url = 4; + * * @return The resourceUrl. */ public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; @@ -1224,6 +1305,8 @@ public java.lang.String getResourceUrl() { } } /** + * + * *
          * The REST URL for accessing the resource. An HTTP `GET` request using this
          * URL returns the resource itself. Example:
    @@ -1232,15 +1315,14 @@ public java.lang.String getResourceUrl() {
          * 
    * * string resource_url = 4; + * * @return The bytes for resourceUrl. */ - public com.google.protobuf.ByteString - getResourceUrlBytes() { + public com.google.protobuf.ByteString getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -1248,6 +1330,8 @@ public java.lang.String getResourceUrl() { } } /** + * + * *
          * The REST URL for accessing the resource. An HTTP `GET` request using this
          * URL returns the resource itself. Example:
    @@ -1256,20 +1340,22 @@ public java.lang.String getResourceUrl() {
          * 
    * * string resource_url = 4; + * * @param value The resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrl( - java.lang.String value) { + public Builder setResourceUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceUrl_ = value; onChanged(); return this; } /** + * + * *
          * The REST URL for accessing the resource. An HTTP `GET` request using this
          * URL returns the resource itself. Example:
    @@ -1278,15 +1364,18 @@ public Builder setResourceUrl(
          * 
    * * string resource_url = 4; + * * @return This builder for chaining. */ public Builder clearResourceUrl() { - + resourceUrl_ = getDefaultInstance().getResourceUrl(); onChanged(); return this; } /** + * + * *
          * The REST URL for accessing the resource. An HTTP `GET` request using this
          * URL returns the resource itself. Example:
    @@ -1295,16 +1384,16 @@ public Builder clearResourceUrl() {
          * 
    * * string resource_url = 4; + * * @param value The bytes for resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceUrl_ = value; onChanged(); return this; @@ -1312,6 +1401,8 @@ public Builder setResourceUrlBytes( private java.lang.Object parent_ = ""; /** + * + * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1326,13 +1417,13 @@ public Builder setResourceUrlBytes(
          * 
    * * string parent = 5; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1341,6 +1432,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1355,15 +1448,14 @@ public java.lang.String getParent() {
          * 
    * * string parent = 5; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1371,6 +1463,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1385,20 +1479,22 @@ public java.lang.String getParent() {
          * 
    * * string parent = 5; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1413,15 +1509,18 @@ public Builder setParent(
          * 
    * * string parent = 5; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1436,16 +1535,16 @@ public Builder clearParent() {
          * 
    * * string parent = 5; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1453,26 +1552,35 @@ public Builder setParentBytes( private com.google.protobuf.Struct data_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> dataBuilder_; + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + dataBuilder_; /** + * + * *
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
          * 
    * * .google.protobuf.Struct data = 6; + * * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** + * + * *
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
          * 
    * * .google.protobuf.Struct data = 6; + * * @return The data. */ public com.google.protobuf.Struct getData() { @@ -1483,6 +1591,8 @@ public com.google.protobuf.Struct getData() { } } /** + * + * *
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1504,6 +1614,8 @@ public Builder setData(com.google.protobuf.Struct value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1511,8 +1623,7 @@ public Builder setData(com.google.protobuf.Struct value) {
          *
          * .google.protobuf.Struct data = 6;
          */
    -    public Builder setData(
    -        com.google.protobuf.Struct.Builder builderForValue) {
    +    public Builder setData(com.google.protobuf.Struct.Builder builderForValue) {
           if (dataBuilder_ == null) {
             data_ = builderForValue.build();
             onChanged();
    @@ -1523,6 +1634,8 @@ public Builder setData(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1533,8 +1646,7 @@ public Builder setData(
         public Builder mergeData(com.google.protobuf.Struct value) {
           if (dataBuilder_ == null) {
             if (data_ != null) {
    -          data_ =
    -            com.google.protobuf.Struct.newBuilder(data_).mergeFrom(value).buildPartial();
    +          data_ = com.google.protobuf.Struct.newBuilder(data_).mergeFrom(value).buildPartial();
             } else {
               data_ = value;
             }
    @@ -1546,6 +1658,8 @@ public Builder mergeData(com.google.protobuf.Struct value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1565,6 +1679,8 @@ public Builder clearData() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1573,11 +1689,13 @@ public Builder clearData() {
          * .google.protobuf.Struct data = 6;
          */
         public com.google.protobuf.Struct.Builder getDataBuilder() {
    -      
    +
           onChanged();
           return getDataFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1589,11 +1707,12 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
           if (dataBuilder_ != null) {
             return dataBuilder_.getMessageOrBuilder();
           } else {
    -        return data_ == null ?
    -            com.google.protobuf.Struct.getDefaultInstance() : data_;
    +        return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_;
           }
         }
         /**
    +     *
    +     *
          * 
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1602,14 +1721,16 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
          * .google.protobuf.Struct data = 6;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
    +            com.google.protobuf.Struct,
    +            com.google.protobuf.Struct.Builder,
    +            com.google.protobuf.StructOrBuilder>
             getDataFieldBuilder() {
           if (dataBuilder_ == null) {
    -        dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
    -                getData(),
    -                getParentForChildren(),
    -                isClean());
    +        dataBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.Struct,
    +                com.google.protobuf.Struct.Builder,
    +                com.google.protobuf.StructOrBuilder>(getData(), getParentForChildren(), isClean());
             data_ = null;
           }
           return dataBuilder_;
    @@ -1617,19 +1738,21 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
     
         private java.lang.Object location_ = "";
         /**
    +     *
    +     *
          * 
          * The location of the resource in Google Cloud, such as its zone and region.
          * For more information, see https://cloud.google.com/about/locations/.
          * 
    * * string location = 8; + * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -1638,21 +1761,22 @@ public java.lang.String getLocation() { } } /** + * + * *
          * The location of the resource in Google Cloud, such as its zone and region.
          * For more information, see https://cloud.google.com/about/locations/.
          * 
    * * string location = 8; + * * @return The bytes for location. */ - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -1660,64 +1784,71 @@ public java.lang.String getLocation() { } } /** + * + * *
          * The location of the resource in Google Cloud, such as its zone and region.
          * For more information, see https://cloud.google.com/about/locations/.
          * 
    * * string location = 8; + * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation( - java.lang.String value) { + public Builder setLocation(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** + * + * *
          * The location of the resource in Google Cloud, such as its zone and region.
          * For more information, see https://cloud.google.com/about/locations/.
          * 
    * * string location = 8; + * * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** + * + * *
          * The location of the resource in Google Cloud, such as its zone and region.
          * For more information, see https://cloud.google.com/about/locations/.
          * 
    * * string location = 8; + * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes( - com.google.protobuf.ByteString value) { + public Builder setLocationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1727,12 +1858,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.Resource) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.Resource) private static final com.google.cloud.asset.v1.Resource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.Resource(); } @@ -1741,27 +1872,27 @@ public static com.google.cloud.asset.v1.Resource getDefaultInstance() { return DEFAULT_INSTANCE; } - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1776,6 +1907,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.Resource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java similarity index 82% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java index ba179d56e8d2..72cf57aa5294 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java @@ -1,33 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; -public interface ResourceOrBuilder extends +public interface ResourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.Resource) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The API version. Example: `v1`
        * 
    * * string version = 1; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
        * The API version. Example: `v1`
        * 
    * * string version = 1; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
        * The URL of the discovery document containing the resource's JSON schema.
        * Example:
    @@ -37,10 +60,13 @@ public interface ResourceOrBuilder extends
        * 
    * * string discovery_document_uri = 2; + * * @return The discoveryDocumentUri. */ java.lang.String getDiscoveryDocumentUri(); /** + * + * *
        * The URL of the discovery document containing the resource's JSON schema.
        * Example:
    @@ -50,12 +76,14 @@ public interface ResourceOrBuilder extends
        * 
    * * string discovery_document_uri = 2; + * * @return The bytes for discoveryDocumentUri. */ - com.google.protobuf.ByteString - getDiscoveryDocumentUriBytes(); + com.google.protobuf.ByteString getDiscoveryDocumentUriBytes(); /** + * + * *
        * The JSON schema name listed in the discovery document. Example:
        * `Project`
    @@ -64,10 +92,13 @@ public interface ResourceOrBuilder extends
        * 
    * * string discovery_name = 3; + * * @return The discoveryName. */ java.lang.String getDiscoveryName(); /** + * + * *
        * The JSON schema name listed in the discovery document. Example:
        * `Project`
    @@ -76,12 +107,14 @@ public interface ResourceOrBuilder extends
        * 
    * * string discovery_name = 3; + * * @return The bytes for discoveryName. */ - com.google.protobuf.ByteString - getDiscoveryNameBytes(); + com.google.protobuf.ByteString getDiscoveryNameBytes(); /** + * + * *
        * The REST URL for accessing the resource. An HTTP `GET` request using this
        * URL returns the resource itself. Example:
    @@ -90,10 +123,13 @@ public interface ResourceOrBuilder extends
        * 
    * * string resource_url = 4; + * * @return The resourceUrl. */ java.lang.String getResourceUrl(); /** + * + * *
        * The REST URL for accessing the resource. An HTTP `GET` request using this
        * URL returns the resource itself. Example:
    @@ -102,12 +138,14 @@ public interface ResourceOrBuilder extends
        * 
    * * string resource_url = 4; + * * @return The bytes for resourceUrl. */ - com.google.protobuf.ByteString - getResourceUrlBytes(); + com.google.protobuf.ByteString getResourceUrlBytes(); /** + * + * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -122,10 +160,13 @@ public interface ResourceOrBuilder extends
        * 
    * * string parent = 5; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -140,32 +181,40 @@ public interface ResourceOrBuilder extends
        * 
    * * string parent = 5; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
        * The content of the resource, in which some sensitive fields are removed
        * and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; + * * @return Whether the data field is set. */ boolean hasData(); /** + * + * *
        * The content of the resource, in which some sensitive fields are removed
        * and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; + * * @return The data. */ com.google.protobuf.Struct getData(); /** + * + * *
        * The content of the resource, in which some sensitive fields are removed
        * and may not be present.
    @@ -176,24 +225,29 @@ public interface ResourceOrBuilder extends
       com.google.protobuf.StructOrBuilder getDataOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * The location of the resource in Google Cloud, such as its zone and region.
        * For more information, see https://cloud.google.com/about/locations/.
        * 
    * * string location = 8; + * * @return The location. */ java.lang.String getLocation(); /** + * + * *
        * The location of the resource in Google Cloud, such as its zone and region.
        * For more information, see https://cloud.google.com/about/locations/.
        * 
    * * string location = 8; + * * @return The bytes for location. */ - com.google.protobuf.ByteString - getLocationBytes(); + com.google.protobuf.ByteString getLocationBytes(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResult.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResult.java similarity index 83% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResult.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResult.java index ab32175f294f..bde1f7c0d26f 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResult.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResult.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** + * + * *
      * A result of Resource Search, containing information of a cloud resource.
      * Next ID: 31
    @@ -11,15 +28,16 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.ResourceSearchResult}
      */
    -public final class ResourceSearchResult extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class ResourceSearchResult extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.ResourceSearchResult)
         ResourceSearchResultOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use ResourceSearchResult.newBuilder() to construct.
       private ResourceSearchResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private ResourceSearchResult() {
         name_ = "";
         assetType_ = "";
    @@ -44,46 +62,48 @@ private ResourceSearchResult() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(
    -      UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new ResourceSearchResult();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetProto
    +        .internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor;
       }
     
       @SuppressWarnings({"rawtypes"})
       @java.lang.Override
    -  protected com.google.protobuf.MapField internalGetMapField(
    -      int number) {
    +  protected com.google.protobuf.MapField internalGetMapField(int number) {
         switch (number) {
           case 7:
             return internalGetLabels();
           case 21:
             return internalGetRelationships();
           default:
    -        throw new RuntimeException(
    -            "Invalid map field number: " + number);
    +        throw new RuntimeException("Invalid map field number: " + number);
         }
       }
    +
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_ResourceSearchResult_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetProto
    +        .internal_static_google_cloud_asset_v1_ResourceSearchResult_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1.ResourceSearchResult.class, com.google.cloud.asset.v1.ResourceSearchResult.Builder.class);
    +            com.google.cloud.asset.v1.ResourceSearchResult.class,
    +            com.google.cloud.asset.v1.ResourceSearchResult.Builder.class);
       }
     
       public static final int NAME_FIELD_NUMBER = 1;
       private volatile java.lang.Object name_;
       /**
    +   *
    +   *
        * 
        * The full resource name of this resource. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -96,6 +116,7 @@ protected com.google.protobuf.MapField internalGetMapField(
        * 
    * * string name = 1; + * * @return The name. */ @java.lang.Override @@ -104,14 +125,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + 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 this resource. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -124,16 +146,15 @@ public java.lang.String getName() {
        * 
    * * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +165,8 @@ public java.lang.String getName() { public static final int ASSET_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object assetType_; /** + * + * *
        * The type of this resource. Example: `compute.googleapis.com/Disk`.
        * To search against the `asset_type`:
    @@ -151,6 +174,7 @@ public java.lang.String getName() {
        * 
    * * string asset_type = 2; + * * @return The assetType. */ @java.lang.Override @@ -159,14 +183,15 @@ public java.lang.String getAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; } } /** + * + * *
        * The type of this resource. Example: `compute.googleapis.com/Disk`.
        * To search against the `asset_type`:
    @@ -174,16 +199,15 @@ public java.lang.String getAssetType() {
        * 
    * * string asset_type = 2; + * * @return The bytes for assetType. */ @java.lang.Override - public com.google.protobuf.ByteString - getAssetTypeBytes() { + public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetType_ = b; return b; } else { @@ -194,6 +218,8 @@ public java.lang.String getAssetType() { public static final int PROJECT_FIELD_NUMBER = 3; private volatile java.lang.Object project_; /** + * + * *
        * The project that this resource belongs to, in the form of
        * projects/{PROJECT_NUMBER}. This field is available when the resource
    @@ -205,6 +231,7 @@ public java.lang.String getAssetType() {
        * 
    * * string project = 3; + * * @return The project. */ @java.lang.Override @@ -213,14 +240,15 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** + * + * *
        * The project that this resource belongs to, in the form of
        * projects/{PROJECT_NUMBER}. This field is available when the resource
    @@ -232,16 +260,15 @@ public java.lang.String getProject() {
        * 
    * * string project = 3; + * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { @@ -252,6 +279,8 @@ public java.lang.String getProject() { public static final int FOLDERS_FIELD_NUMBER = 17; private com.google.protobuf.LazyStringList folders_; /** + * + * *
        * The folder(s) that this resource belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the resource
    @@ -263,13 +292,15 @@ public java.lang.String getProject() {
        * 
    * * repeated string folders = 17; + * * @return A list containing the folders. */ - public com.google.protobuf.ProtocolStringList - getFoldersList() { + public com.google.protobuf.ProtocolStringList getFoldersList() { return folders_; } /** + * + * *
        * The folder(s) that this resource belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the resource
    @@ -281,12 +312,15 @@ public java.lang.String getProject() {
        * 
    * * repeated string folders = 17; + * * @return The count of folders. */ public int getFoldersCount() { return folders_.size(); } /** + * + * *
        * The folder(s) that this resource belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the resource
    @@ -298,6 +332,7 @@ public int getFoldersCount() {
        * 
    * * repeated string folders = 17; + * * @param index The index of the element to return. * @return The folders at the given index. */ @@ -305,6 +340,8 @@ public java.lang.String getFolders(int index) { return folders_.get(index); } /** + * + * *
        * The folder(s) that this resource belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the resource
    @@ -316,17 +353,19 @@ public java.lang.String getFolders(int index) {
        * 
    * * repeated string folders = 17; + * * @param index The index of the value to return. * @return The bytes of the folders at the given index. */ - public com.google.protobuf.ByteString - getFoldersBytes(int index) { + public com.google.protobuf.ByteString getFoldersBytes(int index) { return folders_.getByteString(index); } public static final int ORGANIZATION_FIELD_NUMBER = 18; private volatile java.lang.Object organization_; /** + * + * *
        * The organization that this resource belongs to, in the form of
        * organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -338,6 +377,7 @@ public java.lang.String getFolders(int index) {
        * 
    * * string organization = 18; + * * @return The organization. */ @java.lang.Override @@ -346,14 +386,15 @@ public java.lang.String getOrganization() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organization_ = s; return s; } } /** + * + * *
        * The organization that this resource belongs to, in the form of
        * organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -365,16 +406,15 @@ public java.lang.String getOrganization() {
        * 
    * * string organization = 18; + * * @return The bytes for organization. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrganizationBytes() { + public com.google.protobuf.ByteString getOrganizationBytes() { java.lang.Object ref = organization_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); organization_ = b; return b; } else { @@ -385,6 +425,8 @@ public java.lang.String getOrganization() { public static final int DISPLAY_NAME_FIELD_NUMBER = 4; private volatile java.lang.Object displayName_; /** + * + * *
        * The display name of this resource. This field is available only when the
        * resource's Protobuf contains it.
    @@ -394,6 +436,7 @@ public java.lang.String getOrganization() {
        * 
    * * string display_name = 4; + * * @return The displayName. */ @java.lang.Override @@ -402,14 +445,15 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
        * The display name of this resource. This field is available only when the
        * resource's Protobuf contains it.
    @@ -419,16 +463,15 @@ public java.lang.String getDisplayName() {
        * 
    * * string display_name = 4; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -439,6 +482,8 @@ public java.lang.String getDisplayName() { public static final int DESCRIPTION_FIELD_NUMBER = 5; private volatile java.lang.Object description_; /** + * + * *
        * One or more paragraphs of text description of this resource. Maximum length
        * could be up to 1M bytes. This field is available only when the resource's
    @@ -449,6 +494,7 @@ public java.lang.String getDisplayName() {
        * 
    * * string description = 5; + * * @return The description. */ @java.lang.Override @@ -457,14 +503,15 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
        * One or more paragraphs of text description of this resource. Maximum length
        * could be up to 1M bytes. This field is available only when the resource's
    @@ -475,16 +522,15 @@ public java.lang.String getDescription() {
        * 
    * * string description = 5; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -495,6 +541,8 @@ public java.lang.String getDescription() { public static final int LOCATION_FIELD_NUMBER = 6; private volatile java.lang.Object location_; /** + * + * *
        * Location can be `global`, regional like `us-east1`, or zonal like
        * `us-west1-b`. This field is available only when the resource's Protobuf
    @@ -505,6 +553,7 @@ public java.lang.String getDescription() {
        * 
    * * string location = 6; + * * @return The location. */ @java.lang.Override @@ -513,14 +562,15 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** + * + * *
        * Location can be `global`, regional like `us-east1`, or zonal like
        * `us-west1-b`. This field is available only when the resource's Protobuf
    @@ -531,16 +581,15 @@ public java.lang.String getLocation() {
        * 
    * * string location = 6; + * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -549,24 +598,23 @@ public java.lang.String getLocation() { } public static final int LABELS_FIELD_NUMBER = 7; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_ResourceSearchResult_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_ResourceSearchResult_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -575,6 +623,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -590,22 +640,22 @@ public int getLabelsCount() {
        *
        * map<string, string> labels = 7;
        */
    -
       @java.lang.Override
    -  public boolean containsLabels(
    -      java.lang.String key) {
    -    if (key == null) { throw new NullPointerException("map key"); }
    +  public boolean containsLabels(java.lang.String key) {
    +    if (key == null) {
    +      throw new NullPointerException("map key");
    +    }
         return internalGetLabels().getMap().containsKey(key);
       }
    -  /**
    -   * Use {@link #getLabelsMap()} instead.
    -   */
    +  /** Use {@link #getLabelsMap()} instead. */
       @java.lang.Override
       @java.lang.Deprecated
       public java.util.Map getLabels() {
         return getLabelsMap();
       }
       /**
    +   *
    +   *
        * 
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -622,11 +672,12 @@ public java.util.Map getLabels() {
        * map<string, string> labels = 7;
        */
       @java.lang.Override
    -
       public java.util.Map getLabelsMap() {
         return internalGetLabels().getMap();
       }
       /**
    +   *
    +   *
        * 
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -643,16 +694,16 @@ public java.util.Map getLabelsMap() {
        * map<string, string> labels = 7;
        */
       @java.lang.Override
    -
    -  public java.lang.String getLabelsOrDefault(
    -      java.lang.String key,
    -      java.lang.String defaultValue) {
    -    if (key == null) { throw new NullPointerException("map key"); }
    -    java.util.Map map =
    -        internalGetLabels().getMap();
    +  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
    +    if (key == null) {
    +      throw new NullPointerException("map key");
    +    }
    +    java.util.Map map = internalGetLabels().getMap();
         return map.containsKey(key) ? map.get(key) : defaultValue;
       }
       /**
    +   *
    +   *
        * 
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -669,12 +720,11 @@ public java.lang.String getLabelsOrDefault(
        * map<string, string> labels = 7;
        */
       @java.lang.Override
    -
    -  public java.lang.String getLabelsOrThrow(
    -      java.lang.String key) {
    -    if (key == null) { throw new NullPointerException("map key"); }
    -    java.util.Map map =
    -        internalGetLabels().getMap();
    +  public java.lang.String getLabelsOrThrow(java.lang.String key) {
    +    if (key == null) {
    +      throw new NullPointerException("map key");
    +    }
    +    java.util.Map map = internalGetLabels().getMap();
         if (!map.containsKey(key)) {
           throw new java.lang.IllegalArgumentException();
         }
    @@ -684,6 +734,8 @@ public java.lang.String getLabelsOrThrow(
       public static final int NETWORK_TAGS_FIELD_NUMBER = 8;
       private com.google.protobuf.LazyStringList networkTags_;
       /**
    +   *
    +   *
        * 
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -696,13 +748,15 @@ public java.lang.String getLabelsOrThrow(
        * 
    * * repeated string network_tags = 8; + * * @return A list containing the networkTags. */ - public com.google.protobuf.ProtocolStringList - getNetworkTagsList() { + public com.google.protobuf.ProtocolStringList getNetworkTagsList() { return networkTags_; } /** + * + * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -715,12 +769,15 @@ public java.lang.String getLabelsOrThrow(
        * 
    * * repeated string network_tags = 8; + * * @return The count of networkTags. */ public int getNetworkTagsCount() { return networkTags_.size(); } /** + * + * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -733,6 +790,7 @@ public int getNetworkTagsCount() {
        * 
    * * repeated string network_tags = 8; + * * @param index The index of the element to return. * @return The networkTags at the given index. */ @@ -740,6 +798,8 @@ public java.lang.String getNetworkTags(int index) { return networkTags_.get(index); } /** + * + * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -752,17 +812,19 @@ public java.lang.String getNetworkTags(int index) {
        * 
    * * repeated string network_tags = 8; + * * @param index The index of the value to return. * @return The bytes of the networkTags at the given index. */ - public com.google.protobuf.ByteString - getNetworkTagsBytes(int index) { + public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { return networkTags_.getByteString(index); } public static final int KMS_KEY_FIELD_NUMBER = 10; private volatile java.lang.Object kmsKey_; /** + * + * *
        * The Cloud KMS
        * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -781,24 +843,27 @@ public java.lang.String getNetworkTags(int index) {
        * 
    * * string kms_key = 10 [deprecated = true]; - * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. - * See google/cloud/asset/v1/assets.proto;l=434 + * + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See + * google/cloud/asset/v1/assets.proto;l=434 * @return The kmsKey. */ @java.lang.Override - @java.lang.Deprecated public java.lang.String getKmsKey() { + @java.lang.Deprecated + public java.lang.String getKmsKey() { java.lang.Object ref = kmsKey_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKey_ = s; return s; } } /** + * + * *
        * The Cloud KMS
        * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -817,18 +882,18 @@ public java.lang.String getNetworkTags(int index) {
        * 
    * * string kms_key = 10 [deprecated = true]; - * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. - * See google/cloud/asset/v1/assets.proto;l=434 + * + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See + * google/cloud/asset/v1/assets.proto;l=434 * @return The bytes for kmsKey. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getKmsKeyBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getKmsKeyBytes() { java.lang.Object ref = kmsKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKey_ = b; return b; } else { @@ -839,6 +904,8 @@ public java.lang.String getNetworkTags(int index) { public static final int KMS_KEYS_FIELD_NUMBER = 28; private com.google.protobuf.LazyStringList kmsKeys_; /** + * + * *
        * The Cloud KMS
        * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -852,13 +919,15 @@ public java.lang.String getNetworkTags(int index) {
        * 
    * * repeated string kms_keys = 28; + * * @return A list containing the kmsKeys. */ - public com.google.protobuf.ProtocolStringList - getKmsKeysList() { + public com.google.protobuf.ProtocolStringList getKmsKeysList() { return kmsKeys_; } /** + * + * *
        * The Cloud KMS
        * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -872,12 +941,15 @@ public java.lang.String getNetworkTags(int index) {
        * 
    * * repeated string kms_keys = 28; + * * @return The count of kmsKeys. */ public int getKmsKeysCount() { return kmsKeys_.size(); } /** + * + * *
        * The Cloud KMS
        * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -891,6 +963,7 @@ public int getKmsKeysCount() {
        * 
    * * repeated string kms_keys = 28; + * * @param index The index of the element to return. * @return The kmsKeys at the given index. */ @@ -898,6 +971,8 @@ public java.lang.String getKmsKeys(int index) { return kmsKeys_.get(index); } /** + * + * *
        * The Cloud KMS
        * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -911,17 +986,19 @@ public java.lang.String getKmsKeys(int index) {
        * 
    * * repeated string kms_keys = 28; + * * @param index The index of the value to return. * @return The bytes of the kmsKeys at the given index. */ - public com.google.protobuf.ByteString - getKmsKeysBytes(int index) { + public com.google.protobuf.ByteString getKmsKeysBytes(int index) { return kmsKeys_.getByteString(index); } public static final int CREATE_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp createTime_; /** + * + * *
        * The create timestamp of this resource, at which the resource was created.
        * The granularity is in seconds. Timestamp.nanos will always be 0. This field
    @@ -935,6 +1012,7 @@ public java.lang.String getKmsKeys(int index) {
        * 
    * * .google.protobuf.Timestamp create_time = 11; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -942,6 +1020,8 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
        * The create timestamp of this resource, at which the resource was created.
        * The granularity is in seconds. Timestamp.nanos will always be 0. This field
    @@ -955,6 +1035,7 @@ public boolean hasCreateTime() {
        * 
    * * .google.protobuf.Timestamp create_time = 11; + * * @return The createTime. */ @java.lang.Override @@ -962,6 +1043,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
        * The create timestamp of this resource, at which the resource was created.
        * The granularity is in seconds. Timestamp.nanos will always be 0. This field
    @@ -984,6 +1067,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
       public static final int UPDATE_TIME_FIELD_NUMBER = 12;
       private com.google.protobuf.Timestamp updateTime_;
       /**
    +   *
    +   *
        * 
        * The last update timestamp of this resource, at which the resource was last
        * modified or deleted. The granularity is in seconds. Timestamp.nanos will
    @@ -998,6 +1083,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
        * 
    * * .google.protobuf.Timestamp update_time = 12; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1005,6 +1091,8 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
        * The last update timestamp of this resource, at which the resource was last
        * modified or deleted. The granularity is in seconds. Timestamp.nanos will
    @@ -1019,6 +1107,7 @@ public boolean hasUpdateTime() {
        * 
    * * .google.protobuf.Timestamp update_time = 12; + * * @return The updateTime. */ @java.lang.Override @@ -1026,6 +1115,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
        * The last update timestamp of this resource, at which the resource was last
        * modified or deleted. The granularity is in seconds. Timestamp.nanos will
    @@ -1049,6 +1140,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
       public static final int STATE_FIELD_NUMBER = 13;
       private volatile java.lang.Object state_;
       /**
    +   *
    +   *
        * 
        * The state of this resource. Different resources types have different state
        * definitions that are mapped from various fields of different resource
    @@ -1070,6 +1163,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
        * 
    * * string state = 13; + * * @return The state. */ @java.lang.Override @@ -1078,14 +1172,15 @@ public java.lang.String getState() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); state_ = s; return s; } } /** + * + * *
        * The state of this resource. Different resources types have different state
        * definitions that are mapped from various fields of different resource
    @@ -1107,16 +1202,15 @@ public java.lang.String getState() {
        * 
    * * string state = 13; + * * @return The bytes for state. */ @java.lang.Override - public com.google.protobuf.ByteString - getStateBytes() { + public com.google.protobuf.ByteString getStateBytes() { java.lang.Object ref = state_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); state_ = b; return b; } else { @@ -1127,6 +1221,8 @@ public java.lang.String getState() { public static final int ADDITIONAL_ATTRIBUTES_FIELD_NUMBER = 9; private com.google.protobuf.Struct additionalAttributes_; /** + * + * *
        * The additional searchable attributes of this resource. The attributes may
        * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -1147,6 +1243,7 @@ public java.lang.String getState() {
        * 
    * * .google.protobuf.Struct additional_attributes = 9; + * * @return Whether the additionalAttributes field is set. */ @java.lang.Override @@ -1154,6 +1251,8 @@ public boolean hasAdditionalAttributes() { return additionalAttributes_ != null; } /** + * + * *
        * The additional searchable attributes of this resource. The attributes may
        * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -1174,13 +1273,18 @@ public boolean hasAdditionalAttributes() {
        * 
    * * .google.protobuf.Struct additional_attributes = 9; + * * @return The additionalAttributes. */ @java.lang.Override public com.google.protobuf.Struct getAdditionalAttributes() { - return additionalAttributes_ == null ? com.google.protobuf.Struct.getDefaultInstance() : additionalAttributes_; + return additionalAttributes_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : additionalAttributes_; } /** + * + * *
        * The additional searchable attributes of this resource. The attributes may
        * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -1210,6 +1314,8 @@ public com.google.protobuf.StructOrBuilder getAdditionalAttributesOrBuilder() {
       public static final int PARENT_FULL_RESOURCE_NAME_FIELD_NUMBER = 19;
       private volatile java.lang.Object parentFullResourceName_;
       /**
    +   *
    +   *
        * 
        * The full resource name of this resource's parent, if it has one.
        * To search against the `parent_full_resource_name`:
    @@ -1220,6 +1326,7 @@ public com.google.protobuf.StructOrBuilder getAdditionalAttributesOrBuilder() {
        * 
    * * string parent_full_resource_name = 19; + * * @return The parentFullResourceName. */ @java.lang.Override @@ -1228,14 +1335,15 @@ public java.lang.String getParentFullResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentFullResourceName_ = s; return s; } } /** + * + * *
        * The full resource name of this resource's parent, if it has one.
        * To search against the `parent_full_resource_name`:
    @@ -1246,16 +1354,15 @@ public java.lang.String getParentFullResourceName() {
        * 
    * * string parent_full_resource_name = 19; + * * @return The bytes for parentFullResourceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentFullResourceNameBytes() { + public com.google.protobuf.ByteString getParentFullResourceNameBytes() { java.lang.Object ref = parentFullResourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentFullResourceName_ = b; return b; } else { @@ -1266,6 +1373,8 @@ public java.lang.String getParentFullResourceName() { public static final int VERSIONED_RESOURCES_FIELD_NUMBER = 16; private java.util.List versionedResources_; /** + * + * *
        * Versioned resource representations of this resource. This is repeated
        * because there could be multiple versions of resource representations during
    @@ -1282,6 +1391,8 @@ public java.util.List getVersionedR
         return versionedResources_;
       }
       /**
    +   *
    +   *
        * 
        * Versioned resource representations of this resource. This is repeated
        * because there could be multiple versions of resource representations during
    @@ -1294,11 +1405,13 @@ public java.util.List getVersionedR
        * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 16;
        */
       @java.lang.Override
    -  public java.util.List 
    +  public java.util.List
           getVersionedResourcesOrBuilderList() {
         return versionedResources_;
       }
       /**
    +   *
    +   *
        * 
        * Versioned resource representations of this resource. This is repeated
        * because there could be multiple versions of resource representations during
    @@ -1315,6 +1428,8 @@ public int getVersionedResourcesCount() {
         return versionedResources_.size();
       }
       /**
    +   *
    +   *
        * 
        * Versioned resource representations of this resource. This is repeated
        * because there could be multiple versions of resource representations during
    @@ -1331,6 +1446,8 @@ public com.google.cloud.asset.v1.VersionedResource getVersionedResources(int ind
         return versionedResources_.get(index);
       }
       /**
    +   *
    +   *
        * 
        * Versioned resource representations of this resource. This is repeated
        * because there could be multiple versions of resource representations during
    @@ -1351,6 +1468,8 @@ public com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResource
       public static final int ATTACHED_RESOURCES_FIELD_NUMBER = 20;
       private java.util.List attachedResources_;
       /**
    +   *
    +   *
        * 
        * Attached resources of this resource. For example, an OSConfig
        * Inventory is an attached resource of a Compute Instance. This field is
    @@ -1367,6 +1486,8 @@ public java.util.List getAttachedRes
         return attachedResources_;
       }
       /**
    +   *
    +   *
        * 
        * Attached resources of this resource. For example, an OSConfig
        * Inventory is an attached resource of a Compute Instance. This field is
    @@ -1379,11 +1500,13 @@ public java.util.List getAttachedRes
        * repeated .google.cloud.asset.v1.AttachedResource attached_resources = 20;
        */
       @java.lang.Override
    -  public java.util.List 
    +  public java.util.List
           getAttachedResourcesOrBuilderList() {
         return attachedResources_;
       }
       /**
    +   *
    +   *
        * 
        * Attached resources of this resource. For example, an OSConfig
        * Inventory is an attached resource of a Compute Instance. This field is
    @@ -1400,6 +1523,8 @@ public int getAttachedResourcesCount() {
         return attachedResources_.size();
       }
       /**
    +   *
    +   *
        * 
        * Attached resources of this resource. For example, an OSConfig
        * Inventory is an attached resource of a Compute Instance. This field is
    @@ -1416,6 +1541,8 @@ public com.google.cloud.asset.v1.AttachedResource getAttachedResources(int index
         return attachedResources_.get(index);
       }
       /**
    +   *
    +   *
        * 
        * Attached resources of this resource. For example, an OSConfig
        * Inventory is an attached resource of a Compute Instance. This field is
    @@ -1434,21 +1561,26 @@ public com.google.cloud.asset.v1.AttachedResourceOrBuilder getAttachedResourcesO
       }
     
       public static final int RELATIONSHIPS_FIELD_NUMBER = 21;
    +
       private static final class RelationshipsDefaultEntryHolder {
         static final com.google.protobuf.MapEntry<
    -        java.lang.String, com.google.cloud.asset.v1.RelatedResources> defaultEntry =
    +            java.lang.String, com.google.cloud.asset.v1.RelatedResources>
    +        defaultEntry =
                 com.google.protobuf.MapEntry
    -            .newDefaultInstance(
    -                com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_ResourceSearchResult_RelationshipsEntry_descriptor, 
    -                com.google.protobuf.WireFormat.FieldType.STRING,
    -                "",
    -                com.google.protobuf.WireFormat.FieldType.MESSAGE,
    -                com.google.cloud.asset.v1.RelatedResources.getDefaultInstance());
    +                .newDefaultInstance(
    +                    com.google.cloud.asset.v1.AssetProto
    +                        .internal_static_google_cloud_asset_v1_ResourceSearchResult_RelationshipsEntry_descriptor,
    +                    com.google.protobuf.WireFormat.FieldType.STRING,
    +                    "",
    +                    com.google.protobuf.WireFormat.FieldType.MESSAGE,
    +                    com.google.cloud.asset.v1.RelatedResources.getDefaultInstance());
       }
    -  private com.google.protobuf.MapField<
    -      java.lang.String, com.google.cloud.asset.v1.RelatedResources> relationships_;
    +
       private com.google.protobuf.MapField
    -  internalGetRelationships() {
    +      relationships_;
    +
    +  private com.google.protobuf.MapField
    +      internalGetRelationships() {
         if (relationships_ == null) {
           return com.google.protobuf.MapField.emptyMapField(
               RelationshipsDefaultEntryHolder.defaultEntry);
    @@ -1460,6 +1592,8 @@ public int getRelationshipsCount() {
         return internalGetRelationships().getMap().size();
       }
       /**
    +   *
    +   *
        * 
        * A map of related resources of this resource, keyed by the
        * relationship type. A relationship type is in the format of
    @@ -1471,22 +1605,23 @@ public int getRelationshipsCount() {
        *
        * map<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
        */
    -
       @java.lang.Override
    -  public boolean containsRelationships(
    -      java.lang.String key) {
    -    if (key == null) { throw new NullPointerException("map key"); }
    +  public boolean containsRelationships(java.lang.String key) {
    +    if (key == null) {
    +      throw new NullPointerException("map key");
    +    }
         return internalGetRelationships().getMap().containsKey(key);
       }
    -  /**
    -   * Use {@link #getRelationshipsMap()} instead.
    -   */
    +  /** Use {@link #getRelationshipsMap()} instead. */
       @java.lang.Override
       @java.lang.Deprecated
    -  public java.util.Map getRelationships() {
    +  public java.util.Map
    +      getRelationships() {
         return getRelationshipsMap();
       }
       /**
    +   *
    +   *
        * 
        * A map of related resources of this resource, keyed by the
        * relationship type. A relationship type is in the format of
    @@ -1499,11 +1634,13 @@ public java.util.Mapmap<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
        */
       @java.lang.Override
    -
    -  public java.util.Map getRelationshipsMap() {
    +  public java.util.Map
    +      getRelationshipsMap() {
         return internalGetRelationships().getMap();
       }
       /**
    +   *
    +   *
        * 
        * A map of related resources of this resource, keyed by the
        * relationship type. A relationship type is in the format of
    @@ -1516,16 +1653,18 @@ public java.util.Mapmap<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
        */
       @java.lang.Override
    -
       public com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
    -      java.lang.String key,
    -      com.google.cloud.asset.v1.RelatedResources defaultValue) {
    -    if (key == null) { throw new NullPointerException("map key"); }
    +      java.lang.String key, com.google.cloud.asset.v1.RelatedResources defaultValue) {
    +    if (key == null) {
    +      throw new NullPointerException("map key");
    +    }
         java.util.Map map =
             internalGetRelationships().getMap();
         return map.containsKey(key) ? map.get(key) : defaultValue;
       }
       /**
    +   *
    +   *
        * 
        * A map of related resources of this resource, keyed by the
        * relationship type. A relationship type is in the format of
    @@ -1538,10 +1677,10 @@ public com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
        * map<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
        */
       @java.lang.Override
    -
    -  public com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
    -      java.lang.String key) {
    -    if (key == null) { throw new NullPointerException("map key"); }
    +  public com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(java.lang.String key) {
    +    if (key == null) {
    +      throw new NullPointerException("map key");
    +    }
         java.util.Map map =
             internalGetRelationships().getMap();
         if (!map.containsKey(key)) {
    @@ -1553,6 +1692,8 @@ public com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
       public static final int TAG_KEYS_FIELD_NUMBER = 23;
       private com.google.protobuf.LazyStringList tagKeys_;
       /**
    +   *
    +   *
        * 
        * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
        * To search against the `tagKeys`:
    @@ -1565,13 +1706,15 @@ public com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
        * 
    * * repeated string tag_keys = 23; + * * @return A list containing the tagKeys. */ - public com.google.protobuf.ProtocolStringList - getTagKeysList() { + public com.google.protobuf.ProtocolStringList getTagKeysList() { return tagKeys_; } /** + * + * *
        * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
        * To search against the `tagKeys`:
    @@ -1584,12 +1727,15 @@ public com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
        * 
    * * repeated string tag_keys = 23; + * * @return The count of tagKeys. */ public int getTagKeysCount() { return tagKeys_.size(); } /** + * + * *
        * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
        * To search against the `tagKeys`:
    @@ -1602,6 +1748,7 @@ public int getTagKeysCount() {
        * 
    * * repeated string tag_keys = 23; + * * @param index The index of the element to return. * @return The tagKeys at the given index. */ @@ -1609,6 +1756,8 @@ public java.lang.String getTagKeys(int index) { return tagKeys_.get(index); } /** + * + * *
        * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
        * To search against the `tagKeys`:
    @@ -1621,17 +1770,19 @@ public java.lang.String getTagKeys(int index) {
        * 
    * * repeated string tag_keys = 23; + * * @param index The index of the value to return. * @return The bytes of the tagKeys at the given index. */ - public com.google.protobuf.ByteString - getTagKeysBytes(int index) { + public com.google.protobuf.ByteString getTagKeysBytes(int index) { return tagKeys_.getByteString(index); } public static final int TAG_VALUES_FIELD_NUMBER = 25; private com.google.protobuf.LazyStringList tagValues_; /** + * + * *
        * TagValue namespaced names, in the format of
        * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
    @@ -1646,13 +1797,15 @@ public java.lang.String getTagKeys(int index) {
        * 
    * * repeated string tag_values = 25; + * * @return A list containing the tagValues. */ - public com.google.protobuf.ProtocolStringList - getTagValuesList() { + public com.google.protobuf.ProtocolStringList getTagValuesList() { return tagValues_; } /** + * + * *
        * TagValue namespaced names, in the format of
        * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
    @@ -1667,12 +1820,15 @@ public java.lang.String getTagKeys(int index) {
        * 
    * * repeated string tag_values = 25; + * * @return The count of tagValues. */ public int getTagValuesCount() { return tagValues_.size(); } /** + * + * *
        * TagValue namespaced names, in the format of
        * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
    @@ -1687,6 +1843,7 @@ public int getTagValuesCount() {
        * 
    * * repeated string tag_values = 25; + * * @param index The index of the element to return. * @return The tagValues at the given index. */ @@ -1694,6 +1851,8 @@ public java.lang.String getTagValues(int index) { return tagValues_.get(index); } /** + * + * *
        * TagValue namespaced names, in the format of
        * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
    @@ -1708,17 +1867,19 @@ public java.lang.String getTagValues(int index) {
        * 
    * * repeated string tag_values = 25; + * * @param index The index of the value to return. * @return The bytes of the tagValues at the given index. */ - public com.google.protobuf.ByteString - getTagValuesBytes(int index) { + public com.google.protobuf.ByteString getTagValuesBytes(int index) { return tagValues_.getByteString(index); } public static final int TAG_VALUE_IDS_FIELD_NUMBER = 26; private com.google.protobuf.LazyStringList tagValueIds_; /** + * + * *
        * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
        * To search against the `tagValueIds`:
    @@ -1730,13 +1891,15 @@ public java.lang.String getTagValues(int index) {
        * 
    * * repeated string tag_value_ids = 26; + * * @return A list containing the tagValueIds. */ - public com.google.protobuf.ProtocolStringList - getTagValueIdsList() { + public com.google.protobuf.ProtocolStringList getTagValueIdsList() { return tagValueIds_; } /** + * + * *
        * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
        * To search against the `tagValueIds`:
    @@ -1748,12 +1911,15 @@ public java.lang.String getTagValues(int index) {
        * 
    * * repeated string tag_value_ids = 26; + * * @return The count of tagValueIds. */ public int getTagValueIdsCount() { return tagValueIds_.size(); } /** + * + * *
        * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
        * To search against the `tagValueIds`:
    @@ -1765,6 +1931,7 @@ public int getTagValueIdsCount() {
        * 
    * * repeated string tag_value_ids = 26; + * * @param index The index of the element to return. * @return The tagValueIds at the given index. */ @@ -1772,6 +1939,8 @@ public java.lang.String getTagValueIds(int index) { return tagValueIds_.get(index); } /** + * + * *
        * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
        * To search against the `tagValueIds`:
    @@ -1783,17 +1952,19 @@ public java.lang.String getTagValueIds(int index) {
        * 
    * * repeated string tag_value_ids = 26; + * * @param index The index of the value to return. * @return The bytes of the tagValueIds at the given index. */ - public com.google.protobuf.ByteString - getTagValueIdsBytes(int index) { + public com.google.protobuf.ByteString getTagValueIdsBytes(int index) { return tagValueIds_.getByteString(index); } public static final int PARENT_ASSET_TYPE_FIELD_NUMBER = 103; private volatile java.lang.Object parentAssetType_; /** + * + * *
        * The type of this resource's immediate parent, if there is one.
        * To search against the `parent_asset_type`:
    @@ -1804,6 +1975,7 @@ public java.lang.String getTagValueIds(int index) {
        * 
    * * string parent_asset_type = 103; + * * @return The parentAssetType. */ @java.lang.Override @@ -1812,14 +1984,15 @@ public java.lang.String getParentAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentAssetType_ = s; return s; } } /** + * + * *
        * The type of this resource's immediate parent, if there is one.
        * To search against the `parent_asset_type`:
    @@ -1830,16 +2003,15 @@ public java.lang.String getParentAssetType() {
        * 
    * * string parent_asset_type = 103; + * * @return The bytes for parentAssetType. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentAssetTypeBytes() { + public com.google.protobuf.ByteString getParentAssetTypeBytes() { java.lang.Object ref = parentAssetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentAssetType_ = b; return b; } else { @@ -1848,6 +2020,7 @@ public java.lang.String getParentAssetType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1859,8 +2032,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1879,12 +2051,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, location_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 7); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); for (int i = 0; i < networkTags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, networkTags_.getRaw(i)); } @@ -1918,12 +2086,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < attachedResources_.size(); i++) { output.writeMessage(20, attachedResources_.get(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetRelationships(), - RelationshipsDefaultEntryHolder.defaultEntry, - 21); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetRelationships(), RelationshipsDefaultEntryHolder.defaultEntry, 21); for (int i = 0; i < tagKeys_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 23, tagKeys_.getRaw(i)); } @@ -1966,15 +2130,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, location_); } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, labels__); + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__); } { int dataSize = 0; @@ -1985,26 +2149,24 @@ public int getSerializedSize() { size += 1 * getNetworkTagsList().size(); } if (additionalAttributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getAdditionalAttributes()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(9, getAdditionalAttributes()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, kmsKey_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(state_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, state_); } for (int i = 0; i < versionedResources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, versionedResources_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(16, versionedResources_.get(i)); } { int dataSize = 0; @@ -2021,18 +2183,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, parentFullResourceName_); } for (int i = 0; i < attachedResources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, attachedResources_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(20, attachedResources_.get(i)); } - for (java.util.Map.Entry entry - : internalGetRelationships().getMap().entrySet()) { + for (java.util.Map.Entry entry : + internalGetRelationships().getMap().entrySet()) { com.google.protobuf.MapEntry - relationships__ = RelationshipsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, relationships__); + relationships__ = + RelationshipsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, relationships__); } { int dataSize = 0; @@ -2077,70 +2240,47 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.ResourceSearchResult)) { return super.equals(obj); } - com.google.cloud.asset.v1.ResourceSearchResult other = (com.google.cloud.asset.v1.ResourceSearchResult) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getAssetType() - .equals(other.getAssetType())) return false; - if (!getProject() - .equals(other.getProject())) return false; - if (!getFoldersList() - .equals(other.getFoldersList())) return false; - if (!getOrganization() - .equals(other.getOrganization())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getLocation() - .equals(other.getLocation())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getNetworkTagsList() - .equals(other.getNetworkTagsList())) return false; - if (!getKmsKey() - .equals(other.getKmsKey())) return false; - if (!getKmsKeysList() - .equals(other.getKmsKeysList())) return false; + com.google.cloud.asset.v1.ResourceSearchResult other = + (com.google.cloud.asset.v1.ResourceSearchResult) obj; + + if (!getName().equals(other.getName())) return false; + if (!getAssetType().equals(other.getAssetType())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getFoldersList().equals(other.getFoldersList())) return false; + if (!getOrganization().equals(other.getOrganization())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getLocation().equals(other.getLocation())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getNetworkTagsList().equals(other.getNetworkTagsList())) return false; + if (!getKmsKey().equals(other.getKmsKey())) return false; + if (!getKmsKeysList().equals(other.getKmsKeysList())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!getState() - .equals(other.getState())) return false; + if (!getState().equals(other.getState())) return false; if (hasAdditionalAttributes() != other.hasAdditionalAttributes()) return false; if (hasAdditionalAttributes()) { - if (!getAdditionalAttributes() - .equals(other.getAdditionalAttributes())) return false; - } - if (!getParentFullResourceName() - .equals(other.getParentFullResourceName())) return false; - if (!getVersionedResourcesList() - .equals(other.getVersionedResourcesList())) return false; - if (!getAttachedResourcesList() - .equals(other.getAttachedResourcesList())) return false; - if (!internalGetRelationships().equals( - other.internalGetRelationships())) return false; - if (!getTagKeysList() - .equals(other.getTagKeysList())) return false; - if (!getTagValuesList() - .equals(other.getTagValuesList())) return false; - if (!getTagValueIdsList() - .equals(other.getTagValueIdsList())) return false; - if (!getParentAssetType() - .equals(other.getParentAssetType())) return false; + if (!getAdditionalAttributes().equals(other.getAdditionalAttributes())) return false; + } + if (!getParentFullResourceName().equals(other.getParentFullResourceName())) return false; + if (!getVersionedResourcesList().equals(other.getVersionedResourcesList())) return false; + if (!getAttachedResourcesList().equals(other.getAttachedResourcesList())) return false; + if (!internalGetRelationships().equals(other.internalGetRelationships())) return false; + if (!getTagKeysList().equals(other.getTagKeysList())) return false; + if (!getTagValuesList().equals(other.getTagValuesList())) return false; + if (!getTagValueIdsList().equals(other.getTagValueIdsList())) return false; + if (!getParentAssetType().equals(other.getParentAssetType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2231,97 +2371,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.ResourceSearchResult parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.ResourceSearchResult parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ResourceSearchResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.ResourceSearchResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ResourceSearchResult 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.asset.v1.ResourceSearchResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.ResourceSearchResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.ResourceSearchResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ResourceSearchResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.ResourceSearchResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.ResourceSearchResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ResourceSearchResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.ResourceSearchResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.ResourceSearchResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.ResourceSearchResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * A result of Resource Search, containing information of a cloud resource.
        * Next ID: 31
    @@ -2329,59 +2476,56 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.asset.v1.ResourceSearchResult}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.ResourceSearchResult)
           com.google.cloud.asset.v1.ResourceSearchResultOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor;
         }
     
         @SuppressWarnings({"rawtypes"})
    -    protected com.google.protobuf.MapField internalGetMapField(
    -        int number) {
    +    protected com.google.protobuf.MapField internalGetMapField(int number) {
           switch (number) {
             case 7:
               return internalGetLabels();
             case 21:
               return internalGetRelationships();
             default:
    -          throw new RuntimeException(
    -              "Invalid map field number: " + number);
    +          throw new RuntimeException("Invalid map field number: " + number);
           }
         }
    +
         @SuppressWarnings({"rawtypes"})
    -    protected com.google.protobuf.MapField internalGetMutableMapField(
    -        int number) {
    +    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
           switch (number) {
             case 7:
               return internalGetMutableLabels();
             case 21:
               return internalGetMutableRelationships();
             default:
    -          throw new RuntimeException(
    -              "Invalid map field number: " + number);
    +          throw new RuntimeException("Invalid map field number: " + number);
           }
         }
    +
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_ResourceSearchResult_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_ResourceSearchResult_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.ResourceSearchResult.class, com.google.cloud.asset.v1.ResourceSearchResult.Builder.class);
    +              com.google.cloud.asset.v1.ResourceSearchResult.class,
    +              com.google.cloud.asset.v1.ResourceSearchResult.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.ResourceSearchResult.newBuilder()
    -    private Builder() {
    -
    -    }
    +    private Builder() {}
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -2457,9 +2601,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor;
         }
     
         @java.lang.Override
    @@ -2478,7 +2622,8 @@ public com.google.cloud.asset.v1.ResourceSearchResult build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1.ResourceSearchResult buildPartial() {
    -      com.google.cloud.asset.v1.ResourceSearchResult result = new com.google.cloud.asset.v1.ResourceSearchResult(this);
    +      com.google.cloud.asset.v1.ResourceSearchResult result =
    +          new com.google.cloud.asset.v1.ResourceSearchResult(this);
           int from_bitField0_ = bitField0_;
           result.name_ = name_;
           result.assetType_ = assetType_;
    @@ -2566,38 +2711,39 @@ public com.google.cloud.asset.v1.ResourceSearchResult buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.ResourceSearchResult) {
    -        return mergeFrom((com.google.cloud.asset.v1.ResourceSearchResult)other);
    +        return mergeFrom((com.google.cloud.asset.v1.ResourceSearchResult) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -2644,8 +2790,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ResourceSearchResult other) {
             location_ = other.location_;
             onChanged();
           }
    -      internalGetMutableLabels().mergeFrom(
    -          other.internalGetLabels());
    +      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
           if (!other.networkTags_.isEmpty()) {
             if (networkTags_.isEmpty()) {
               networkTags_ = other.networkTags_;
    @@ -2705,9 +2850,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ResourceSearchResult other) {
                 versionedResourcesBuilder_ = null;
                 versionedResources_ = other.versionedResources_;
                 bitField0_ = (bitField0_ & ~0x00000010);
    -            versionedResourcesBuilder_ = 
    -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
    -                 getVersionedResourcesFieldBuilder() : null;
    +            versionedResourcesBuilder_ =
    +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
    +                    ? getVersionedResourcesFieldBuilder()
    +                    : null;
               } else {
                 versionedResourcesBuilder_.addAllMessages(other.versionedResources_);
               }
    @@ -2731,16 +2877,16 @@ public Builder mergeFrom(com.google.cloud.asset.v1.ResourceSearchResult other) {
                 attachedResourcesBuilder_ = null;
                 attachedResources_ = other.attachedResources_;
                 bitField0_ = (bitField0_ & ~0x00000020);
    -            attachedResourcesBuilder_ = 
    -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
    -                 getAttachedResourcesFieldBuilder() : null;
    +            attachedResourcesBuilder_ =
    +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
    +                    ? getAttachedResourcesFieldBuilder()
    +                    : null;
               } else {
                 attachedResourcesBuilder_.addAllMessages(other.attachedResources_);
               }
             }
           }
    -      internalGetMutableRelationships().mergeFrom(
    -          other.internalGetRelationships());
    +      internalGetMutableRelationships().mergeFrom(other.internalGetRelationships());
           if (!other.tagKeys_.isEmpty()) {
             if (tagKeys_.isEmpty()) {
               tagKeys_ = other.tagKeys_;
    @@ -2801,166 +2947,190 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
    -            case 10: {
    -              name_ = input.readStringRequireUtf8();
    -
    -              break;
    -            } // case 10
    -            case 18: {
    -              assetType_ = input.readStringRequireUtf8();
    -
    -              break;
    -            } // case 18
    -            case 26: {
    -              project_ = input.readStringRequireUtf8();
    -
    -              break;
    -            } // case 26
    -            case 34: {
    -              displayName_ = input.readStringRequireUtf8();
    -
    -              break;
    -            } // case 34
    -            case 42: {
    -              description_ = input.readStringRequireUtf8();
    -
    -              break;
    -            } // case 42
    -            case 50: {
    -              location_ = input.readStringRequireUtf8();
    -
    -              break;
    -            } // case 50
    -            case 58: {
    -              com.google.protobuf.MapEntry
    -              labels__ = input.readMessage(
    -                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
    -              internalGetMutableLabels().getMutableMap().put(
    -                  labels__.getKey(), labels__.getValue());
    -              break;
    -            } // case 58
    -            case 66: {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              ensureNetworkTagsIsMutable();
    -              networkTags_.add(s);
    -              break;
    -            } // case 66
    -            case 74: {
    -              input.readMessage(
    -                  getAdditionalAttributesFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -
    -              break;
    -            } // case 74
    -            case 82: {
    -              kmsKey_ = input.readStringRequireUtf8();
    -
    -              break;
    -            } // case 82
    -            case 90: {
    -              input.readMessage(
    -                  getCreateTimeFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -
    -              break;
    -            } // case 90
    -            case 98: {
    -              input.readMessage(
    -                  getUpdateTimeFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -
    -              break;
    -            } // case 98
    -            case 106: {
    -              state_ = input.readStringRequireUtf8();
    -
    -              break;
    -            } // case 106
    -            case 130: {
    -              com.google.cloud.asset.v1.VersionedResource m =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.VersionedResource.parser(),
    -                      extensionRegistry);
    -              if (versionedResourcesBuilder_ == null) {
    -                ensureVersionedResourcesIsMutable();
    -                versionedResources_.add(m);
    -              } else {
    -                versionedResourcesBuilder_.addMessage(m);
    -              }
    -              break;
    -            } // case 130
    -            case 138: {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              ensureFoldersIsMutable();
    -              folders_.add(s);
    -              break;
    -            } // case 138
    -            case 146: {
    -              organization_ = input.readStringRequireUtf8();
    -
    -              break;
    -            } // case 146
    -            case 154: {
    -              parentFullResourceName_ = input.readStringRequireUtf8();
    -
    -              break;
    -            } // case 154
    -            case 162: {
    -              com.google.cloud.asset.v1.AttachedResource m =
    -                  input.readMessage(
    -                      com.google.cloud.asset.v1.AttachedResource.parser(),
    -                      extensionRegistry);
    -              if (attachedResourcesBuilder_ == null) {
    -                ensureAttachedResourcesIsMutable();
    -                attachedResources_.add(m);
    -              } else {
    -                attachedResourcesBuilder_.addMessage(m);
    -              }
    -              break;
    -            } // case 162
    -            case 170: {
    -              com.google.protobuf.MapEntry
    -              relationships__ = input.readMessage(
    -                  RelationshipsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
    -              internalGetMutableRelationships().getMutableMap().put(
    -                  relationships__.getKey(), relationships__.getValue());
    -              break;
    -            } // case 170
    -            case 186: {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              ensureTagKeysIsMutable();
    -              tagKeys_.add(s);
    -              break;
    -            } // case 186
    -            case 202: {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              ensureTagValuesIsMutable();
    -              tagValues_.add(s);
    -              break;
    -            } // case 202
    -            case 210: {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              ensureTagValueIdsIsMutable();
    -              tagValueIds_.add(s);
    -              break;
    -            } // case 210
    -            case 226: {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              ensureKmsKeysIsMutable();
    -              kmsKeys_.add(s);
    -              break;
    -            } // case 226
    -            case 826: {
    -              parentAssetType_ = input.readStringRequireUtf8();
    -
    -              break;
    -            } // case 826
    -            default: {
    -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                done = true; // was an endgroup tag
    -              }
    -              break;
    -            } // default:
    +            case 10:
    +              {
    +                name_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                assetType_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                project_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                displayName_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 34
    +            case 42:
    +              {
    +                description_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 42
    +            case 50:
    +              {
    +                location_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 50
    +            case 58:
    +              {
    +                com.google.protobuf.MapEntry labels__ =
    +                    input.readMessage(
    +                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
    +                        extensionRegistry);
    +                internalGetMutableLabels()
    +                    .getMutableMap()
    +                    .put(labels__.getKey(), labels__.getValue());
    +                break;
    +              } // case 58
    +            case 66:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureNetworkTagsIsMutable();
    +                networkTags_.add(s);
    +                break;
    +              } // case 66
    +            case 74:
    +              {
    +                input.readMessage(
    +                    getAdditionalAttributesFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 74
    +            case 82:
    +              {
    +                kmsKey_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 82
    +            case 90:
    +              {
    +                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 90
    +            case 98:
    +              {
    +                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 98
    +            case 106:
    +              {
    +                state_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 106
    +            case 130:
    +              {
    +                com.google.cloud.asset.v1.VersionedResource m =
    +                    input.readMessage(
    +                        com.google.cloud.asset.v1.VersionedResource.parser(), extensionRegistry);
    +                if (versionedResourcesBuilder_ == null) {
    +                  ensureVersionedResourcesIsMutable();
    +                  versionedResources_.add(m);
    +                } else {
    +                  versionedResourcesBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 130
    +            case 138:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureFoldersIsMutable();
    +                folders_.add(s);
    +                break;
    +              } // case 138
    +            case 146:
    +              {
    +                organization_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 146
    +            case 154:
    +              {
    +                parentFullResourceName_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 154
    +            case 162:
    +              {
    +                com.google.cloud.asset.v1.AttachedResource m =
    +                    input.readMessage(
    +                        com.google.cloud.asset.v1.AttachedResource.parser(), extensionRegistry);
    +                if (attachedResourcesBuilder_ == null) {
    +                  ensureAttachedResourcesIsMutable();
    +                  attachedResources_.add(m);
    +                } else {
    +                  attachedResourcesBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 162
    +            case 170:
    +              {
    +                com.google.protobuf.MapEntry<
    +                        java.lang.String, com.google.cloud.asset.v1.RelatedResources>
    +                    relationships__ =
    +                        input.readMessage(
    +                            RelationshipsDefaultEntryHolder.defaultEntry.getParserForType(),
    +                            extensionRegistry);
    +                internalGetMutableRelationships()
    +                    .getMutableMap()
    +                    .put(relationships__.getKey(), relationships__.getValue());
    +                break;
    +              } // case 170
    +            case 186:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureTagKeysIsMutable();
    +                tagKeys_.add(s);
    +                break;
    +              } // case 186
    +            case 202:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureTagValuesIsMutable();
    +                tagValues_.add(s);
    +                break;
    +              } // case 202
    +            case 210:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureTagValueIdsIsMutable();
    +                tagValueIds_.add(s);
    +                break;
    +              } // case 210
    +            case 226:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureKmsKeysIsMutable();
    +                kmsKeys_.add(s);
    +                break;
    +              } // case 226
    +            case 826:
    +              {
    +                parentAssetType_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 826
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -2970,10 +3140,13 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
    +
         private int bitField0_;
     
         private java.lang.Object name_ = "";
         /**
    +     *
    +     *
          * 
          * The full resource name of this resource. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -2986,13 +3159,13 @@ public Builder mergeFrom(
          * 
    * * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -3001,6 +3174,8 @@ public java.lang.String getName() { } } /** + * + * *
          * The full resource name of this resource. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -3013,15 +3188,14 @@ public java.lang.String getName() {
          * 
    * * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -3029,6 +3203,8 @@ public java.lang.String getName() { } } /** + * + * *
          * The full resource name of this resource. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -3041,20 +3217,22 @@ public java.lang.String getName() {
          * 
    * * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
          * The full resource name of this resource. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -3067,15 +3245,18 @@ public Builder setName(
          * 
    * * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
          * The full resource name of this resource. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -3088,16 +3269,16 @@ public Builder clearName() {
          * 
    * * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -3105,6 +3286,8 @@ public Builder setNameBytes( private java.lang.Object assetType_ = ""; /** + * + * *
          * The type of this resource. Example: `compute.googleapis.com/Disk`.
          * To search against the `asset_type`:
    @@ -3112,13 +3295,13 @@ public Builder setNameBytes(
          * 
    * * string asset_type = 2; + * * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; @@ -3127,6 +3310,8 @@ public java.lang.String getAssetType() { } } /** + * + * *
          * The type of this resource. Example: `compute.googleapis.com/Disk`.
          * To search against the `asset_type`:
    @@ -3134,15 +3319,14 @@ public java.lang.String getAssetType() {
          * 
    * * string asset_type = 2; + * * @return The bytes for assetType. */ - public com.google.protobuf.ByteString - getAssetTypeBytes() { + public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetType_ = b; return b; } else { @@ -3150,6 +3334,8 @@ public java.lang.String getAssetType() { } } /** + * + * *
          * The type of this resource. Example: `compute.googleapis.com/Disk`.
          * To search against the `asset_type`:
    @@ -3157,20 +3343,22 @@ public java.lang.String getAssetType() {
          * 
    * * string asset_type = 2; + * * @param value The assetType to set. * @return This builder for chaining. */ - public Builder setAssetType( - java.lang.String value) { + public Builder setAssetType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + assetType_ = value; onChanged(); return this; } /** + * + * *
          * The type of this resource. Example: `compute.googleapis.com/Disk`.
          * To search against the `asset_type`:
    @@ -3178,15 +3366,18 @@ public Builder setAssetType(
          * 
    * * string asset_type = 2; + * * @return This builder for chaining. */ public Builder clearAssetType() { - + assetType_ = getDefaultInstance().getAssetType(); onChanged(); return this; } /** + * + * *
          * The type of this resource. Example: `compute.googleapis.com/Disk`.
          * To search against the `asset_type`:
    @@ -3194,16 +3385,16 @@ public Builder clearAssetType() {
          * 
    * * string asset_type = 2; + * * @param value The bytes for assetType to set. * @return This builder for chaining. */ - public Builder setAssetTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; onChanged(); return this; @@ -3211,6 +3402,8 @@ public Builder setAssetTypeBytes( private java.lang.Object project_ = ""; /** + * + * *
          * The project that this resource belongs to, in the form of
          * projects/{PROJECT_NUMBER}. This field is available when the resource
    @@ -3222,13 +3415,13 @@ public Builder setAssetTypeBytes(
          * 
    * * string project = 3; + * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -3237,6 +3430,8 @@ public java.lang.String getProject() { } } /** + * + * *
          * The project that this resource belongs to, in the form of
          * projects/{PROJECT_NUMBER}. This field is available when the resource
    @@ -3248,15 +3443,14 @@ public java.lang.String getProject() {
          * 
    * * string project = 3; + * * @return The bytes for project. */ - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { @@ -3264,6 +3458,8 @@ public java.lang.String getProject() { } } /** + * + * *
          * The project that this resource belongs to, in the form of
          * projects/{PROJECT_NUMBER}. This field is available when the resource
    @@ -3275,20 +3471,22 @@ public java.lang.String getProject() {
          * 
    * * string project = 3; + * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject( - java.lang.String value) { + public Builder setProject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; onChanged(); return this; } /** + * + * *
          * The project that this resource belongs to, in the form of
          * projects/{PROJECT_NUMBER}. This field is available when the resource
    @@ -3300,15 +3498,18 @@ public Builder setProject(
          * 
    * * string project = 3; + * * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** + * + * *
          * The project that this resource belongs to, in the form of
          * projects/{PROJECT_NUMBER}. This field is available when the resource
    @@ -3320,29 +3521,33 @@ public Builder clearProject() {
          * 
    * * string project = 3; + * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList folders_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList folders_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureFoldersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { folders_ = new com.google.protobuf.LazyStringArrayList(folders_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
          * The folder(s) that this resource belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the resource
    @@ -3354,13 +3559,15 @@ private void ensureFoldersIsMutable() {
          * 
    * * repeated string folders = 17; + * * @return A list containing the folders. */ - public com.google.protobuf.ProtocolStringList - getFoldersList() { + public com.google.protobuf.ProtocolStringList getFoldersList() { return folders_.getUnmodifiableView(); } /** + * + * *
          * The folder(s) that this resource belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the resource
    @@ -3372,12 +3579,15 @@ private void ensureFoldersIsMutable() {
          * 
    * * repeated string folders = 17; + * * @return The count of folders. */ public int getFoldersCount() { return folders_.size(); } /** + * + * *
          * The folder(s) that this resource belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the resource
    @@ -3389,6 +3599,7 @@ public int getFoldersCount() {
          * 
    * * repeated string folders = 17; + * * @param index The index of the element to return. * @return The folders at the given index. */ @@ -3396,6 +3607,8 @@ public java.lang.String getFolders(int index) { return folders_.get(index); } /** + * + * *
          * The folder(s) that this resource belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the resource
    @@ -3407,14 +3620,16 @@ public java.lang.String getFolders(int index) {
          * 
    * * repeated string folders = 17; + * * @param index The index of the value to return. * @return The bytes of the folders at the given index. */ - public com.google.protobuf.ByteString - getFoldersBytes(int index) { + public com.google.protobuf.ByteString getFoldersBytes(int index) { return folders_.getByteString(index); } /** + * + * *
          * The folder(s) that this resource belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the resource
    @@ -3426,21 +3641,23 @@ public java.lang.String getFolders(int index) {
          * 
    * * repeated string folders = 17; + * * @param index The index to set the value at. * @param value The folders to set. * @return This builder for chaining. */ - public Builder setFolders( - int index, java.lang.String value) { + public Builder setFolders(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFoldersIsMutable(); + throw new NullPointerException(); + } + ensureFoldersIsMutable(); folders_.set(index, value); onChanged(); return this; } /** + * + * *
          * The folder(s) that this resource belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the resource
    @@ -3452,20 +3669,22 @@ public Builder setFolders(
          * 
    * * repeated string folders = 17; + * * @param value The folders to add. * @return This builder for chaining. */ - public Builder addFolders( - java.lang.String value) { + public Builder addFolders(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFoldersIsMutable(); + throw new NullPointerException(); + } + ensureFoldersIsMutable(); folders_.add(value); onChanged(); return this; } /** + * + * *
          * The folder(s) that this resource belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the resource
    @@ -3477,18 +3696,19 @@ public Builder addFolders(
          * 
    * * repeated string folders = 17; + * * @param values The folders to add. * @return This builder for chaining. */ - public Builder addAllFolders( - java.lang.Iterable values) { + public Builder addAllFolders(java.lang.Iterable values) { ensureFoldersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, folders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_); onChanged(); return this; } /** + * + * *
          * The folder(s) that this resource belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the resource
    @@ -3500,6 +3720,7 @@ public Builder addAllFolders(
          * 
    * * repeated string folders = 17; + * * @return This builder for chaining. */ public Builder clearFolders() { @@ -3509,6 +3730,8 @@ public Builder clearFolders() { return this; } /** + * + * *
          * The folder(s) that this resource belongs to, in the form of
          * folders/{FOLDER_NUMBER}. This field is available when the resource
    @@ -3520,15 +3743,15 @@ public Builder clearFolders() {
          * 
    * * repeated string folders = 17; + * * @param value The bytes of the folders to add. * @return This builder for chaining. */ - public Builder addFoldersBytes( - com.google.protobuf.ByteString value) { + public Builder addFoldersBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFoldersIsMutable(); folders_.add(value); onChanged(); @@ -3537,6 +3760,8 @@ public Builder addFoldersBytes( private java.lang.Object organization_ = ""; /** + * + * *
          * The organization that this resource belongs to, in the form of
          * organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -3548,13 +3773,13 @@ public Builder addFoldersBytes(
          * 
    * * string organization = 18; + * * @return The organization. */ public java.lang.String getOrganization() { java.lang.Object ref = organization_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); organization_ = s; return s; @@ -3563,6 +3788,8 @@ public java.lang.String getOrganization() { } } /** + * + * *
          * The organization that this resource belongs to, in the form of
          * organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -3574,15 +3801,14 @@ public java.lang.String getOrganization() {
          * 
    * * string organization = 18; + * * @return The bytes for organization. */ - public com.google.protobuf.ByteString - getOrganizationBytes() { + public com.google.protobuf.ByteString getOrganizationBytes() { java.lang.Object ref = organization_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); organization_ = b; return b; } else { @@ -3590,6 +3816,8 @@ public java.lang.String getOrganization() { } } /** + * + * *
          * The organization that this resource belongs to, in the form of
          * organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -3601,20 +3829,22 @@ public java.lang.String getOrganization() {
          * 
    * * string organization = 18; + * * @param value The organization to set. * @return This builder for chaining. */ - public Builder setOrganization( - java.lang.String value) { + public Builder setOrganization(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + organization_ = value; onChanged(); return this; } /** + * + * *
          * The organization that this resource belongs to, in the form of
          * organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -3626,15 +3856,18 @@ public Builder setOrganization(
          * 
    * * string organization = 18; + * * @return This builder for chaining. */ public Builder clearOrganization() { - + organization_ = getDefaultInstance().getOrganization(); onChanged(); return this; } /** + * + * *
          * The organization that this resource belongs to, in the form of
          * organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -3646,16 +3879,16 @@ public Builder clearOrganization() {
          * 
    * * string organization = 18; + * * @param value The bytes for organization to set. * @return This builder for chaining. */ - public Builder setOrganizationBytes( - com.google.protobuf.ByteString value) { + public Builder setOrganizationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + organization_ = value; onChanged(); return this; @@ -3663,6 +3896,8 @@ public Builder setOrganizationBytes( private java.lang.Object displayName_ = ""; /** + * + * *
          * The display name of this resource. This field is available only when the
          * resource's Protobuf contains it.
    @@ -3672,13 +3907,13 @@ public Builder setOrganizationBytes(
          * 
    * * string display_name = 4; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -3687,6 +3922,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
          * The display name of this resource. This field is available only when the
          * resource's Protobuf contains it.
    @@ -3696,15 +3933,14 @@ public java.lang.String getDisplayName() {
          * 
    * * string display_name = 4; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -3712,6 +3948,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
          * The display name of this resource. This field is available only when the
          * resource's Protobuf contains it.
    @@ -3721,20 +3959,22 @@ public java.lang.String getDisplayName() {
          * 
    * * string display_name = 4; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
          * The display name of this resource. This field is available only when the
          * resource's Protobuf contains it.
    @@ -3744,15 +3984,18 @@ public Builder setDisplayName(
          * 
    * * string display_name = 4; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
          * The display name of this resource. This field is available only when the
          * resource's Protobuf contains it.
    @@ -3762,16 +4005,16 @@ public Builder clearDisplayName() {
          * 
    * * string display_name = 4; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -3779,6 +4022,8 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
          * One or more paragraphs of text description of this resource. Maximum length
          * could be up to 1M bytes. This field is available only when the resource's
    @@ -3789,13 +4034,13 @@ public Builder setDisplayNameBytes(
          * 
    * * string description = 5; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -3804,6 +4049,8 @@ public java.lang.String getDescription() { } } /** + * + * *
          * One or more paragraphs of text description of this resource. Maximum length
          * could be up to 1M bytes. This field is available only when the resource's
    @@ -3814,15 +4061,14 @@ public java.lang.String getDescription() {
          * 
    * * string description = 5; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -3830,6 +4076,8 @@ public java.lang.String getDescription() { } } /** + * + * *
          * One or more paragraphs of text description of this resource. Maximum length
          * could be up to 1M bytes. This field is available only when the resource's
    @@ -3840,20 +4088,22 @@ public java.lang.String getDescription() {
          * 
    * * string description = 5; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
          * One or more paragraphs of text description of this resource. Maximum length
          * could be up to 1M bytes. This field is available only when the resource's
    @@ -3864,15 +4114,18 @@ public Builder setDescription(
          * 
    * * string description = 5; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
          * One or more paragraphs of text description of this resource. Maximum length
          * could be up to 1M bytes. This field is available only when the resource's
    @@ -3883,16 +4136,16 @@ public Builder clearDescription() {
          * 
    * * string description = 5; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -3900,6 +4153,8 @@ public Builder setDescriptionBytes( private java.lang.Object location_ = ""; /** + * + * *
          * Location can be `global`, regional like `us-east1`, or zonal like
          * `us-west1-b`. This field is available only when the resource's Protobuf
    @@ -3910,13 +4165,13 @@ public Builder setDescriptionBytes(
          * 
    * * string location = 6; + * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -3925,6 +4180,8 @@ public java.lang.String getLocation() { } } /** + * + * *
          * Location can be `global`, regional like `us-east1`, or zonal like
          * `us-west1-b`. This field is available only when the resource's Protobuf
    @@ -3935,15 +4192,14 @@ public java.lang.String getLocation() {
          * 
    * * string location = 6; + * * @return The bytes for location. */ - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -3951,6 +4207,8 @@ public java.lang.String getLocation() { } } /** + * + * *
          * Location can be `global`, regional like `us-east1`, or zonal like
          * `us-west1-b`. This field is available only when the resource's Protobuf
    @@ -3961,20 +4219,22 @@ public java.lang.String getLocation() {
          * 
    * * string location = 6; + * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation( - java.lang.String value) { + public Builder setLocation(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** + * + * *
          * Location can be `global`, regional like `us-east1`, or zonal like
          * `us-west1-b`. This field is available only when the resource's Protobuf
    @@ -3985,15 +4245,18 @@ public Builder setLocation(
          * 
    * * string location = 6; + * * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** + * + * *
          * Location can be `global`, regional like `us-east1`, or zonal like
          * `us-west1-b`. This field is available only when the resource's Protobuf
    @@ -4004,37 +4267,36 @@ public Builder clearLocation() {
          * 
    * * string location = 6; + * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes( - com.google.protobuf.ByteString value) { + public Builder setLocationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -4046,6 +4308,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -4061,22 +4325,22 @@ public int getLabelsCount() {
          *
          * map<string, string> labels = 7;
          */
    -
         @java.lang.Override
    -    public boolean containsLabels(
    -        java.lang.String key) {
    -      if (key == null) { throw new NullPointerException("map key"); }
    +    public boolean containsLabels(java.lang.String key) {
    +      if (key == null) {
    +        throw new NullPointerException("map key");
    +      }
           return internalGetLabels().getMap().containsKey(key);
         }
    -    /**
    -     * Use {@link #getLabelsMap()} instead.
    -     */
    +    /** Use {@link #getLabelsMap()} instead. */
         @java.lang.Override
         @java.lang.Deprecated
         public java.util.Map getLabels() {
           return getLabelsMap();
         }
         /**
    +     *
    +     *
          * 
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -4093,11 +4357,12 @@ public java.util.Map getLabels() {
          * map<string, string> labels = 7;
          */
         @java.lang.Override
    -
         public java.util.Map getLabelsMap() {
           return internalGetLabels().getMap();
         }
         /**
    +     *
    +     *
          * 
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -4114,16 +4379,17 @@ public java.util.Map getLabelsMap() {
          * map<string, string> labels = 7;
          */
         @java.lang.Override
    -
         public java.lang.String getLabelsOrDefault(
    -        java.lang.String key,
    -        java.lang.String defaultValue) {
    -      if (key == null) { throw new NullPointerException("map key"); }
    -      java.util.Map map =
    -          internalGetLabels().getMap();
    +        java.lang.String key, java.lang.String defaultValue) {
    +      if (key == null) {
    +        throw new NullPointerException("map key");
    +      }
    +      java.util.Map map = internalGetLabels().getMap();
           return map.containsKey(key) ? map.get(key) : defaultValue;
         }
         /**
    +     *
    +     *
          * 
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -4140,12 +4406,11 @@ public java.lang.String getLabelsOrDefault(
          * map<string, string> labels = 7;
          */
         @java.lang.Override
    -
    -    public java.lang.String getLabelsOrThrow(
    -        java.lang.String key) {
    -      if (key == null) { throw new NullPointerException("map key"); }
    -      java.util.Map map =
    -          internalGetLabels().getMap();
    +    public java.lang.String getLabelsOrThrow(java.lang.String key) {
    +      if (key == null) {
    +        throw new NullPointerException("map key");
    +      }
    +      java.util.Map map = internalGetLabels().getMap();
           if (!map.containsKey(key)) {
             throw new java.lang.IllegalArgumentException();
           }
    @@ -4153,11 +4418,12 @@ public java.lang.String getLabelsOrThrow(
         }
     
         public Builder clearLabels() {
    -      internalGetMutableLabels().getMutableMap()
    -          .clear();
    +      internalGetMutableLabels().getMutableMap().clear();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -4173,23 +4439,21 @@ public Builder clearLabels() {
          *
          * map<string, string> labels = 7;
          */
    -
    -    public Builder removeLabels(
    -        java.lang.String key) {
    -      if (key == null) { throw new NullPointerException("map key"); }
    -      internalGetMutableLabels().getMutableMap()
    -          .remove(key);
    +    public Builder removeLabels(java.lang.String key) {
    +      if (key == null) {
    +        throw new NullPointerException("map key");
    +      }
    +      internalGetMutableLabels().getMutableMap().remove(key);
           return this;
         }
    -    /**
    -     * Use alternate mutation accessors instead.
    -     */
    +    /** Use alternate mutation accessors instead. */
         @java.lang.Deprecated
    -    public java.util.Map
    -    getMutableLabels() {
    +    public java.util.Map getMutableLabels() {
           return internalGetMutableLabels().getMutableMap();
         }
         /**
    +     *
    +     *
          * 
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -4205,19 +4469,20 @@ public Builder removeLabels(
          *
          * map<string, string> labels = 7;
          */
    -    public Builder putLabels(
    -        java.lang.String key,
    -        java.lang.String value) {
    -      if (key == null) { throw new NullPointerException("map key"); }
    +    public Builder putLabels(java.lang.String key, java.lang.String value) {
    +      if (key == null) {
    +        throw new NullPointerException("map key");
    +      }
           if (value == null) {
    -  throw new NullPointerException("map value");
    -}
    +        throw new NullPointerException("map value");
    +      }
     
    -      internalGetMutableLabels().getMutableMap()
    -          .put(key, value);
    +      internalGetMutableLabels().getMutableMap().put(key, value);
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -4233,22 +4498,23 @@ public Builder putLabels(
          *
          * map<string, string> labels = 7;
          */
    -
    -    public Builder putAllLabels(
    -        java.util.Map values) {
    -      internalGetMutableLabels().getMutableMap()
    -          .putAll(values);
    +    public Builder putAllLabels(java.util.Map values) {
    +      internalGetMutableLabels().getMutableMap().putAll(values);
           return this;
         }
     
    -    private com.google.protobuf.LazyStringList networkTags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    +    private com.google.protobuf.LazyStringList networkTags_ =
    +        com.google.protobuf.LazyStringArrayList.EMPTY;
    +
         private void ensureNetworkTagsIsMutable() {
           if (!((bitField0_ & 0x00000004) != 0)) {
             networkTags_ = new com.google.protobuf.LazyStringArrayList(networkTags_);
             bitField0_ |= 0x00000004;
    -       }
    +      }
         }
         /**
    +     *
    +     *
          * 
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -4261,13 +4527,15 @@ private void ensureNetworkTagsIsMutable() {
          * 
    * * repeated string network_tags = 8; + * * @return A list containing the networkTags. */ - public com.google.protobuf.ProtocolStringList - getNetworkTagsList() { + public com.google.protobuf.ProtocolStringList getNetworkTagsList() { return networkTags_.getUnmodifiableView(); } /** + * + * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -4280,12 +4548,15 @@ private void ensureNetworkTagsIsMutable() {
          * 
    * * repeated string network_tags = 8; + * * @return The count of networkTags. */ public int getNetworkTagsCount() { return networkTags_.size(); } /** + * + * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -4298,6 +4569,7 @@ public int getNetworkTagsCount() {
          * 
    * * repeated string network_tags = 8; + * * @param index The index of the element to return. * @return The networkTags at the given index. */ @@ -4305,6 +4577,8 @@ public java.lang.String getNetworkTags(int index) { return networkTags_.get(index); } /** + * + * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -4317,14 +4591,16 @@ public java.lang.String getNetworkTags(int index) {
          * 
    * * repeated string network_tags = 8; + * * @param index The index of the value to return. * @return The bytes of the networkTags at the given index. */ - public com.google.protobuf.ByteString - getNetworkTagsBytes(int index) { + public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { return networkTags_.getByteString(index); } /** + * + * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -4337,21 +4613,23 @@ public java.lang.String getNetworkTags(int index) {
          * 
    * * repeated string network_tags = 8; + * * @param index The index to set the value at. * @param value The networkTags to set. * @return This builder for chaining. */ - public Builder setNetworkTags( - int index, java.lang.String value) { + public Builder setNetworkTags(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNetworkTagsIsMutable(); + throw new NullPointerException(); + } + ensureNetworkTagsIsMutable(); networkTags_.set(index, value); onChanged(); return this; } /** + * + * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -4364,20 +4642,22 @@ public Builder setNetworkTags(
          * 
    * * repeated string network_tags = 8; + * * @param value The networkTags to add. * @return This builder for chaining. */ - public Builder addNetworkTags( - java.lang.String value) { + public Builder addNetworkTags(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNetworkTagsIsMutable(); + throw new NullPointerException(); + } + ensureNetworkTagsIsMutable(); networkTags_.add(value); onChanged(); return this; } /** + * + * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -4390,18 +4670,19 @@ public Builder addNetworkTags(
          * 
    * * repeated string network_tags = 8; + * * @param values The networkTags to add. * @return This builder for chaining. */ - public Builder addAllNetworkTags( - java.lang.Iterable values) { + public Builder addAllNetworkTags(java.lang.Iterable values) { ensureNetworkTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, networkTags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkTags_); onChanged(); return this; } /** + * + * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -4414,6 +4695,7 @@ public Builder addAllNetworkTags(
          * 
    * * repeated string network_tags = 8; + * * @return This builder for chaining. */ public Builder clearNetworkTags() { @@ -4423,6 +4705,8 @@ public Builder clearNetworkTags() { return this; } /** + * + * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -4435,15 +4719,15 @@ public Builder clearNetworkTags() {
          * 
    * * repeated string network_tags = 8; + * * @param value The bytes of the networkTags to add. * @return This builder for chaining. */ - public Builder addNetworkTagsBytes( - com.google.protobuf.ByteString value) { + public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureNetworkTagsIsMutable(); networkTags_.add(value); onChanged(); @@ -4452,6 +4736,8 @@ public Builder addNetworkTagsBytes( private java.lang.Object kmsKey_ = ""; /** + * + * *
          * The Cloud KMS
          * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -4470,15 +4756,16 @@ public Builder addNetworkTagsBytes(
          * 
    * * string kms_key = 10 [deprecated = true]; - * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. - * See google/cloud/asset/v1/assets.proto;l=434 + * + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See + * google/cloud/asset/v1/assets.proto;l=434 * @return The kmsKey. */ - @java.lang.Deprecated public java.lang.String getKmsKey() { + @java.lang.Deprecated + public java.lang.String getKmsKey() { java.lang.Object ref = kmsKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKey_ = s; return s; @@ -4487,6 +4774,8 @@ public Builder addNetworkTagsBytes( } } /** + * + * *
          * The Cloud KMS
          * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -4505,17 +4794,17 @@ public Builder addNetworkTagsBytes(
          * 
    * * string kms_key = 10 [deprecated = true]; - * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. - * See google/cloud/asset/v1/assets.proto;l=434 + * + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See + * google/cloud/asset/v1/assets.proto;l=434 * @return The bytes for kmsKey. */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getKmsKeyBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getKmsKeyBytes() { java.lang.Object ref = kmsKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKey_ = b; return b; } else { @@ -4523,6 +4812,8 @@ public Builder addNetworkTagsBytes( } } /** + * + * *
          * The Cloud KMS
          * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -4541,22 +4832,25 @@ public Builder addNetworkTagsBytes(
          * 
    * * string kms_key = 10 [deprecated = true]; - * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. - * See google/cloud/asset/v1/assets.proto;l=434 + * + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See + * google/cloud/asset/v1/assets.proto;l=434 * @param value The kmsKey to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setKmsKey( - java.lang.String value) { + @java.lang.Deprecated + public Builder setKmsKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKey_ = value; onChanged(); return this; } /** + * + * *
          * The Cloud KMS
          * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -4575,17 +4869,21 @@ public Builder addNetworkTagsBytes(
          * 
    * * string kms_key = 10 [deprecated = true]; - * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. - * See google/cloud/asset/v1/assets.proto;l=434 + * + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See + * google/cloud/asset/v1/assets.proto;l=434 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearKmsKey() { - + @java.lang.Deprecated + public Builder clearKmsKey() { + kmsKey_ = getDefaultInstance().getKmsKey(); onChanged(); return this; } /** + * + * *
          * The Cloud KMS
          * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -4604,31 +4902,36 @@ public Builder addNetworkTagsBytes(
          * 
    * * string kms_key = 10 [deprecated = true]; - * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. - * See google/cloud/asset/v1/assets.proto;l=434 + * + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See + * google/cloud/asset/v1/assets.proto;l=434 * @param value The bytes for kmsKey to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setKmsKeyBytes( - com.google.protobuf.ByteString value) { + @java.lang.Deprecated + public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKey_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList kmsKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList kmsKeys_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureKmsKeysIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { kmsKeys_ = new com.google.protobuf.LazyStringArrayList(kmsKeys_); bitField0_ |= 0x00000008; - } + } } /** + * + * *
          * The Cloud KMS
          * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -4642,13 +4945,15 @@ private void ensureKmsKeysIsMutable() {
          * 
    * * repeated string kms_keys = 28; + * * @return A list containing the kmsKeys. */ - public com.google.protobuf.ProtocolStringList - getKmsKeysList() { + public com.google.protobuf.ProtocolStringList getKmsKeysList() { return kmsKeys_.getUnmodifiableView(); } /** + * + * *
          * The Cloud KMS
          * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -4662,12 +4967,15 @@ private void ensureKmsKeysIsMutable() {
          * 
    * * repeated string kms_keys = 28; + * * @return The count of kmsKeys. */ public int getKmsKeysCount() { return kmsKeys_.size(); } /** + * + * *
          * The Cloud KMS
          * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -4681,6 +4989,7 @@ public int getKmsKeysCount() {
          * 
    * * repeated string kms_keys = 28; + * * @param index The index of the element to return. * @return The kmsKeys at the given index. */ @@ -4688,6 +4997,8 @@ public java.lang.String getKmsKeys(int index) { return kmsKeys_.get(index); } /** + * + * *
          * The Cloud KMS
          * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -4701,14 +5012,16 @@ public java.lang.String getKmsKeys(int index) {
          * 
    * * repeated string kms_keys = 28; + * * @param index The index of the value to return. * @return The bytes of the kmsKeys at the given index. */ - public com.google.protobuf.ByteString - getKmsKeysBytes(int index) { + public com.google.protobuf.ByteString getKmsKeysBytes(int index) { return kmsKeys_.getByteString(index); } /** + * + * *
          * The Cloud KMS
          * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -4722,21 +5035,23 @@ public java.lang.String getKmsKeys(int index) {
          * 
    * * repeated string kms_keys = 28; + * * @param index The index to set the value at. * @param value The kmsKeys to set. * @return This builder for chaining. */ - public Builder setKmsKeys( - int index, java.lang.String value) { + public Builder setKmsKeys(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureKmsKeysIsMutable(); + throw new NullPointerException(); + } + ensureKmsKeysIsMutable(); kmsKeys_.set(index, value); onChanged(); return this; } /** + * + * *
          * The Cloud KMS
          * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -4750,20 +5065,22 @@ public Builder setKmsKeys(
          * 
    * * repeated string kms_keys = 28; + * * @param value The kmsKeys to add. * @return This builder for chaining. */ - public Builder addKmsKeys( - java.lang.String value) { + public Builder addKmsKeys(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureKmsKeysIsMutable(); + throw new NullPointerException(); + } + ensureKmsKeysIsMutable(); kmsKeys_.add(value); onChanged(); return this; } /** + * + * *
          * The Cloud KMS
          * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -4777,18 +5094,19 @@ public Builder addKmsKeys(
          * 
    * * repeated string kms_keys = 28; + * * @param values The kmsKeys to add. * @return This builder for chaining. */ - public Builder addAllKmsKeys( - java.lang.Iterable values) { + public Builder addAllKmsKeys(java.lang.Iterable values) { ensureKmsKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, kmsKeys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, kmsKeys_); onChanged(); return this; } /** + * + * *
          * The Cloud KMS
          * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -4802,6 +5120,7 @@ public Builder addAllKmsKeys(
          * 
    * * repeated string kms_keys = 28; + * * @return This builder for chaining. */ public Builder clearKmsKeys() { @@ -4811,6 +5130,8 @@ public Builder clearKmsKeys() { return this; } /** + * + * *
          * The Cloud KMS
          * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -4824,15 +5145,15 @@ public Builder clearKmsKeys() {
          * 
    * * repeated string kms_keys = 28; + * * @param value The bytes of the kmsKeys to add. * @return This builder for chaining. */ - public Builder addKmsKeysBytes( - com.google.protobuf.ByteString value) { + public Builder addKmsKeysBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureKmsKeysIsMutable(); kmsKeys_.add(value); onChanged(); @@ -4841,8 +5162,13 @@ public Builder addKmsKeysBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
          * The create timestamp of this resource, at which the resource was created.
          * The granularity is in seconds. Timestamp.nanos will always be 0. This field
    @@ -4856,12 +5182,15 @@ public Builder addKmsKeysBytes(
          * 
    * * .google.protobuf.Timestamp create_time = 11; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
          * The create timestamp of this resource, at which the resource was created.
          * The granularity is in seconds. Timestamp.nanos will always be 0. This field
    @@ -4875,16 +5204,21 @@ public boolean hasCreateTime() {
          * 
    * * .google.protobuf.Timestamp create_time = 11; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
          * The create timestamp of this resource, at which the resource was created.
          * The granularity is in seconds. Timestamp.nanos will always be 0. This field
    @@ -4913,6 +5247,8 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The create timestamp of this resource, at which the resource was created.
          * The granularity is in seconds. Timestamp.nanos will always be 0. This field
    @@ -4927,8 +5263,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
          *
          * .google.protobuf.Timestamp create_time = 11;
          */
    -    public Builder setCreateTime(
    -        com.google.protobuf.Timestamp.Builder builderForValue) {
    +    public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
           if (createTimeBuilder_ == null) {
             createTime_ = builderForValue.build();
             onChanged();
    @@ -4939,6 +5274,8 @@ public Builder setCreateTime(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The create timestamp of this resource, at which the resource was created.
          * The granularity is in seconds. Timestamp.nanos will always be 0. This field
    @@ -4957,7 +5294,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
           if (createTimeBuilder_ == null) {
             if (createTime_ != null) {
               createTime_ =
    -            com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial();
    +              com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial();
             } else {
               createTime_ = value;
             }
    @@ -4969,6 +5306,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The create timestamp of this resource, at which the resource was created.
          * The granularity is in seconds. Timestamp.nanos will always be 0. This field
    @@ -4995,6 +5334,8 @@ public Builder clearCreateTime() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The create timestamp of this resource, at which the resource was created.
          * The granularity is in seconds. Timestamp.nanos will always be 0. This field
    @@ -5010,11 +5351,13 @@ public Builder clearCreateTime() {
          * .google.protobuf.Timestamp create_time = 11;
          */
         public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
    -      
    +
           onChanged();
           return getCreateTimeFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * The create timestamp of this resource, at which the resource was created.
          * The granularity is in seconds. Timestamp.nanos will always be 0. This field
    @@ -5033,11 +5376,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
           if (createTimeBuilder_ != null) {
             return createTimeBuilder_.getMessageOrBuilder();
           } else {
    -        return createTime_ == null ?
    -            com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
    +        return createTime_ == null
    +            ? com.google.protobuf.Timestamp.getDefaultInstance()
    +            : createTime_;
           }
         }
         /**
    +     *
    +     *
          * 
          * The create timestamp of this resource, at which the resource was created.
          * The granularity is in seconds. Timestamp.nanos will always be 0. This field
    @@ -5053,14 +5399,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
          * .google.protobuf.Timestamp create_time = 11;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
    +            com.google.protobuf.Timestamp,
    +            com.google.protobuf.Timestamp.Builder,
    +            com.google.protobuf.TimestampOrBuilder>
             getCreateTimeFieldBuilder() {
           if (createTimeBuilder_ == null) {
    -        createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    -                getCreateTime(),
    -                getParentForChildren(),
    -                isClean());
    +        createTimeBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.Timestamp,
    +                com.google.protobuf.Timestamp.Builder,
    +                com.google.protobuf.TimestampOrBuilder>(
    +                getCreateTime(), getParentForChildren(), isClean());
             createTime_ = null;
           }
           return createTimeBuilder_;
    @@ -5068,8 +5417,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
     
         private com.google.protobuf.Timestamp updateTime_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_;
    +            com.google.protobuf.Timestamp,
    +            com.google.protobuf.Timestamp.Builder,
    +            com.google.protobuf.TimestampOrBuilder>
    +        updateTimeBuilder_;
         /**
    +     *
    +     *
          * 
          * The last update timestamp of this resource, at which the resource was last
          * modified or deleted. The granularity is in seconds. Timestamp.nanos will
    @@ -5084,12 +5438,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
          * 
    * * .google.protobuf.Timestamp update_time = 12; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
          * The last update timestamp of this resource, at which the resource was last
          * modified or deleted. The granularity is in seconds. Timestamp.nanos will
    @@ -5104,16 +5461,21 @@ public boolean hasUpdateTime() {
          * 
    * * .google.protobuf.Timestamp update_time = 12; + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
          * The last update timestamp of this resource, at which the resource was last
          * modified or deleted. The granularity is in seconds. Timestamp.nanos will
    @@ -5143,6 +5505,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The last update timestamp of this resource, at which the resource was last
          * modified or deleted. The granularity is in seconds. Timestamp.nanos will
    @@ -5158,8 +5522,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
          *
          * .google.protobuf.Timestamp update_time = 12;
          */
    -    public Builder setUpdateTime(
    -        com.google.protobuf.Timestamp.Builder builderForValue) {
    +    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
           if (updateTimeBuilder_ == null) {
             updateTime_ = builderForValue.build();
             onChanged();
    @@ -5170,6 +5533,8 @@ public Builder setUpdateTime(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The last update timestamp of this resource, at which the resource was last
          * modified or deleted. The granularity is in seconds. Timestamp.nanos will
    @@ -5189,7 +5554,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
           if (updateTimeBuilder_ == null) {
             if (updateTime_ != null) {
               updateTime_ =
    -            com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
    +              com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
             } else {
               updateTime_ = value;
             }
    @@ -5201,6 +5566,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The last update timestamp of this resource, at which the resource was last
          * modified or deleted. The granularity is in seconds. Timestamp.nanos will
    @@ -5228,6 +5595,8 @@ public Builder clearUpdateTime() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The last update timestamp of this resource, at which the resource was last
          * modified or deleted. The granularity is in seconds. Timestamp.nanos will
    @@ -5244,11 +5613,13 @@ public Builder clearUpdateTime() {
          * .google.protobuf.Timestamp update_time = 12;
          */
         public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
    -      
    +
           onChanged();
           return getUpdateTimeFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * The last update timestamp of this resource, at which the resource was last
          * modified or deleted. The granularity is in seconds. Timestamp.nanos will
    @@ -5268,11 +5639,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
           if (updateTimeBuilder_ != null) {
             return updateTimeBuilder_.getMessageOrBuilder();
           } else {
    -        return updateTime_ == null ?
    -            com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
    +        return updateTime_ == null
    +            ? com.google.protobuf.Timestamp.getDefaultInstance()
    +            : updateTime_;
           }
         }
         /**
    +     *
    +     *
          * 
          * The last update timestamp of this resource, at which the resource was last
          * modified or deleted. The granularity is in seconds. Timestamp.nanos will
    @@ -5289,14 +5663,17 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
          * .google.protobuf.Timestamp update_time = 12;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
    +            com.google.protobuf.Timestamp,
    +            com.google.protobuf.Timestamp.Builder,
    +            com.google.protobuf.TimestampOrBuilder>
             getUpdateTimeFieldBuilder() {
           if (updateTimeBuilder_ == null) {
    -        updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    -                getUpdateTime(),
    -                getParentForChildren(),
    -                isClean());
    +        updateTimeBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.Timestamp,
    +                com.google.protobuf.Timestamp.Builder,
    +                com.google.protobuf.TimestampOrBuilder>(
    +                getUpdateTime(), getParentForChildren(), isClean());
             updateTime_ = null;
           }
           return updateTimeBuilder_;
    @@ -5304,6 +5681,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
     
         private java.lang.Object state_ = "";
         /**
    +     *
    +     *
          * 
          * The state of this resource. Different resources types have different state
          * definitions that are mapped from various fields of different resource
    @@ -5325,13 +5704,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
          * 
    * * string state = 13; + * * @return The state. */ public java.lang.String getState() { java.lang.Object ref = state_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); state_ = s; return s; @@ -5340,6 +5719,8 @@ public java.lang.String getState() { } } /** + * + * *
          * The state of this resource. Different resources types have different state
          * definitions that are mapped from various fields of different resource
    @@ -5361,15 +5742,14 @@ public java.lang.String getState() {
          * 
    * * string state = 13; + * * @return The bytes for state. */ - public com.google.protobuf.ByteString - getStateBytes() { + public com.google.protobuf.ByteString getStateBytes() { java.lang.Object ref = state_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); state_ = b; return b; } else { @@ -5377,6 +5757,8 @@ public java.lang.String getState() { } } /** + * + * *
          * The state of this resource. Different resources types have different state
          * definitions that are mapped from various fields of different resource
    @@ -5398,20 +5780,22 @@ public java.lang.String getState() {
          * 
    * * string state = 13; + * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState( - java.lang.String value) { + public Builder setState(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + state_ = value; onChanged(); return this; } /** + * + * *
          * The state of this resource. Different resources types have different state
          * definitions that are mapped from various fields of different resource
    @@ -5433,15 +5817,18 @@ public Builder setState(
          * 
    * * string state = 13; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = getDefaultInstance().getState(); onChanged(); return this; } /** + * + * *
          * The state of this resource. Different resources types have different state
          * definitions that are mapped from various fields of different resource
    @@ -5463,16 +5850,16 @@ public Builder clearState() {
          * 
    * * string state = 13; + * * @param value The bytes for state to set. * @return This builder for chaining. */ - public Builder setStateBytes( - com.google.protobuf.ByteString value) { + public Builder setStateBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + state_ = value; onChanged(); return this; @@ -5480,8 +5867,13 @@ public Builder setStateBytes( private com.google.protobuf.Struct additionalAttributes_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> additionalAttributesBuilder_; + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + additionalAttributesBuilder_; /** + * + * *
          * The additional searchable attributes of this resource. The attributes may
          * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -5502,12 +5894,15 @@ public Builder setStateBytes(
          * 
    * * .google.protobuf.Struct additional_attributes = 9; + * * @return Whether the additionalAttributes field is set. */ public boolean hasAdditionalAttributes() { return additionalAttributesBuilder_ != null || additionalAttributes_ != null; } /** + * + * *
          * The additional searchable attributes of this resource. The attributes may
          * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -5528,16 +5923,21 @@ public boolean hasAdditionalAttributes() {
          * 
    * * .google.protobuf.Struct additional_attributes = 9; + * * @return The additionalAttributes. */ public com.google.protobuf.Struct getAdditionalAttributes() { if (additionalAttributesBuilder_ == null) { - return additionalAttributes_ == null ? com.google.protobuf.Struct.getDefaultInstance() : additionalAttributes_; + return additionalAttributes_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : additionalAttributes_; } else { return additionalAttributesBuilder_.getMessage(); } } /** + * + * *
          * The additional searchable attributes of this resource. The attributes may
          * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -5573,6 +5973,8 @@ public Builder setAdditionalAttributes(com.google.protobuf.Struct value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The additional searchable attributes of this resource. The attributes may
          * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -5594,8 +5996,7 @@ public Builder setAdditionalAttributes(com.google.protobuf.Struct value) {
          *
          * .google.protobuf.Struct additional_attributes = 9;
          */
    -    public Builder setAdditionalAttributes(
    -        com.google.protobuf.Struct.Builder builderForValue) {
    +    public Builder setAdditionalAttributes(com.google.protobuf.Struct.Builder builderForValue) {
           if (additionalAttributesBuilder_ == null) {
             additionalAttributes_ = builderForValue.build();
             onChanged();
    @@ -5606,6 +6007,8 @@ public Builder setAdditionalAttributes(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The additional searchable attributes of this resource. The attributes may
          * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -5631,7 +6034,9 @@ public Builder mergeAdditionalAttributes(com.google.protobuf.Struct value) {
           if (additionalAttributesBuilder_ == null) {
             if (additionalAttributes_ != null) {
               additionalAttributes_ =
    -            com.google.protobuf.Struct.newBuilder(additionalAttributes_).mergeFrom(value).buildPartial();
    +              com.google.protobuf.Struct.newBuilder(additionalAttributes_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               additionalAttributes_ = value;
             }
    @@ -5643,6 +6048,8 @@ public Builder mergeAdditionalAttributes(com.google.protobuf.Struct value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The additional searchable attributes of this resource. The attributes may
          * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -5676,6 +6083,8 @@ public Builder clearAdditionalAttributes() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The additional searchable attributes of this resource. The attributes may
          * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -5698,11 +6107,13 @@ public Builder clearAdditionalAttributes() {
          * .google.protobuf.Struct additional_attributes = 9;
          */
         public com.google.protobuf.Struct.Builder getAdditionalAttributesBuilder() {
    -      
    +
           onChanged();
           return getAdditionalAttributesFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * The additional searchable attributes of this resource. The attributes may
          * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -5728,11 +6139,14 @@ public com.google.protobuf.StructOrBuilder getAdditionalAttributesOrBuilder() {
           if (additionalAttributesBuilder_ != null) {
             return additionalAttributesBuilder_.getMessageOrBuilder();
           } else {
    -        return additionalAttributes_ == null ?
    -            com.google.protobuf.Struct.getDefaultInstance() : additionalAttributes_;
    +        return additionalAttributes_ == null
    +            ? com.google.protobuf.Struct.getDefaultInstance()
    +            : additionalAttributes_;
           }
         }
         /**
    +     *
    +     *
          * 
          * The additional searchable attributes of this resource. The attributes may
          * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -5755,14 +6169,17 @@ public com.google.protobuf.StructOrBuilder getAdditionalAttributesOrBuilder() {
          * .google.protobuf.Struct additional_attributes = 9;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
    +            com.google.protobuf.Struct,
    +            com.google.protobuf.Struct.Builder,
    +            com.google.protobuf.StructOrBuilder>
             getAdditionalAttributesFieldBuilder() {
           if (additionalAttributesBuilder_ == null) {
    -        additionalAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
    -                getAdditionalAttributes(),
    -                getParentForChildren(),
    -                isClean());
    +        additionalAttributesBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.Struct,
    +                com.google.protobuf.Struct.Builder,
    +                com.google.protobuf.StructOrBuilder>(
    +                getAdditionalAttributes(), getParentForChildren(), isClean());
             additionalAttributes_ = null;
           }
           return additionalAttributesBuilder_;
    @@ -5770,6 +6187,8 @@ public com.google.protobuf.StructOrBuilder getAdditionalAttributesOrBuilder() {
     
         private java.lang.Object parentFullResourceName_ = "";
         /**
    +     *
    +     *
          * 
          * The full resource name of this resource's parent, if it has one.
          * To search against the `parent_full_resource_name`:
    @@ -5780,13 +6199,13 @@ public com.google.protobuf.StructOrBuilder getAdditionalAttributesOrBuilder() {
          * 
    * * string parent_full_resource_name = 19; + * * @return The parentFullResourceName. */ public java.lang.String getParentFullResourceName() { java.lang.Object ref = parentFullResourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentFullResourceName_ = s; return s; @@ -5795,6 +6214,8 @@ public java.lang.String getParentFullResourceName() { } } /** + * + * *
          * The full resource name of this resource's parent, if it has one.
          * To search against the `parent_full_resource_name`:
    @@ -5805,15 +6226,14 @@ public java.lang.String getParentFullResourceName() {
          * 
    * * string parent_full_resource_name = 19; + * * @return The bytes for parentFullResourceName. */ - public com.google.protobuf.ByteString - getParentFullResourceNameBytes() { + public com.google.protobuf.ByteString getParentFullResourceNameBytes() { java.lang.Object ref = parentFullResourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentFullResourceName_ = b; return b; } else { @@ -5821,6 +6241,8 @@ public java.lang.String getParentFullResourceName() { } } /** + * + * *
          * The full resource name of this resource's parent, if it has one.
          * To search against the `parent_full_resource_name`:
    @@ -5831,20 +6253,22 @@ public java.lang.String getParentFullResourceName() {
          * 
    * * string parent_full_resource_name = 19; + * * @param value The parentFullResourceName to set. * @return This builder for chaining. */ - public Builder setParentFullResourceName( - java.lang.String value) { + public Builder setParentFullResourceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parentFullResourceName_ = value; onChanged(); return this; } /** + * + * *
          * The full resource name of this resource's parent, if it has one.
          * To search against the `parent_full_resource_name`:
    @@ -5855,15 +6279,18 @@ public Builder setParentFullResourceName(
          * 
    * * string parent_full_resource_name = 19; + * * @return This builder for chaining. */ public Builder clearParentFullResourceName() { - + parentFullResourceName_ = getDefaultInstance().getParentFullResourceName(); onChanged(); return this; } /** + * + * *
          * The full resource name of this resource's parent, if it has one.
          * To search against the `parent_full_resource_name`:
    @@ -5874,34 +6301,42 @@ public Builder clearParentFullResourceName() {
          * 
    * * string parent_full_resource_name = 19; + * * @param value The bytes for parentFullResourceName to set. * @return This builder for chaining. */ - public Builder setParentFullResourceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setParentFullResourceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parentFullResourceName_ = value; onChanged(); return this; } private java.util.List versionedResources_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureVersionedResourcesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - versionedResources_ = new java.util.ArrayList(versionedResources_); + versionedResources_ = + new java.util.ArrayList( + versionedResources_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.VersionedResource, com.google.cloud.asset.v1.VersionedResource.Builder, com.google.cloud.asset.v1.VersionedResourceOrBuilder> versionedResourcesBuilder_; + com.google.cloud.asset.v1.VersionedResource, + com.google.cloud.asset.v1.VersionedResource.Builder, + com.google.cloud.asset.v1.VersionedResourceOrBuilder> + versionedResourcesBuilder_; /** + * + * *
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -5921,6 +6356,8 @@ public java.util.List getVersionedR
           }
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -5940,6 +6377,8 @@ public int getVersionedResourcesCount() {
           }
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -5959,6 +6398,8 @@ public com.google.cloud.asset.v1.VersionedResource getVersionedResources(int ind
           }
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -5985,6 +6426,8 @@ public Builder setVersionedResources(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6008,6 +6451,8 @@ public Builder setVersionedResources(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6033,6 +6478,8 @@ public Builder addVersionedResources(com.google.cloud.asset.v1.VersionedResource
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6059,6 +6506,8 @@ public Builder addVersionedResources(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6082,6 +6531,8 @@ public Builder addVersionedResources(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6105,6 +6556,8 @@ public Builder addVersionedResources(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6120,8 +6573,7 @@ public Builder addAllVersionedResources(
             java.lang.Iterable values) {
           if (versionedResourcesBuilder_ == null) {
             ensureVersionedResourcesIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    -            values, versionedResources_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, versionedResources_);
             onChanged();
           } else {
             versionedResourcesBuilder_.addAllMessages(values);
    @@ -6129,6 +6581,8 @@ public Builder addAllVersionedResources(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6151,6 +6605,8 @@ public Builder clearVersionedResources() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6173,6 +6629,8 @@ public Builder removeVersionedResources(int index) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6189,6 +6647,8 @@ public com.google.cloud.asset.v1.VersionedResource.Builder getVersionedResources
           return getVersionedResourcesFieldBuilder().getBuilder(index);
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6203,11 +6663,14 @@ public com.google.cloud.asset.v1.VersionedResource.Builder getVersionedResources
         public com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResourcesOrBuilder(
             int index) {
           if (versionedResourcesBuilder_ == null) {
    -        return versionedResources_.get(index);  } else {
    +        return versionedResources_.get(index);
    +      } else {
             return versionedResourcesBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6219,8 +6682,8 @@ public com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResource
          *
          * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 16;
          */
    -    public java.util.List 
    -         getVersionedResourcesOrBuilderList() {
    +    public java.util.List
    +        getVersionedResourcesOrBuilderList() {
           if (versionedResourcesBuilder_ != null) {
             return versionedResourcesBuilder_.getMessageOrBuilderList();
           } else {
    @@ -6228,6 +6691,8 @@ public com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResource
           }
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6240,10 +6705,12 @@ public com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResource
          * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 16;
          */
         public com.google.cloud.asset.v1.VersionedResource.Builder addVersionedResourcesBuilder() {
    -      return getVersionedResourcesFieldBuilder().addBuilder(
    -          com.google.cloud.asset.v1.VersionedResource.getDefaultInstance());
    +      return getVersionedResourcesFieldBuilder()
    +          .addBuilder(com.google.cloud.asset.v1.VersionedResource.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6257,10 +6724,12 @@ public com.google.cloud.asset.v1.VersionedResource.Builder addVersionedResources
          */
         public com.google.cloud.asset.v1.VersionedResource.Builder addVersionedResourcesBuilder(
             int index) {
    -      return getVersionedResourcesFieldBuilder().addBuilder(
    -          index, com.google.cloud.asset.v1.VersionedResource.getDefaultInstance());
    +      return getVersionedResourcesFieldBuilder()
    +          .addBuilder(index, com.google.cloud.asset.v1.VersionedResource.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * Versioned resource representations of this resource. This is repeated
          * because there could be multiple versions of resource representations during
    @@ -6272,16 +6741,22 @@ public com.google.cloud.asset.v1.VersionedResource.Builder addVersionedResources
          *
          * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 16;
          */
    -    public java.util.List 
    -         getVersionedResourcesBuilderList() {
    +    public java.util.List
    +        getVersionedResourcesBuilderList() {
           return getVersionedResourcesFieldBuilder().getBuilderList();
         }
    +
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -        com.google.cloud.asset.v1.VersionedResource, com.google.cloud.asset.v1.VersionedResource.Builder, com.google.cloud.asset.v1.VersionedResourceOrBuilder> 
    +            com.google.cloud.asset.v1.VersionedResource,
    +            com.google.cloud.asset.v1.VersionedResource.Builder,
    +            com.google.cloud.asset.v1.VersionedResourceOrBuilder>
             getVersionedResourcesFieldBuilder() {
           if (versionedResourcesBuilder_ == null) {
    -        versionedResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.asset.v1.VersionedResource, com.google.cloud.asset.v1.VersionedResource.Builder, com.google.cloud.asset.v1.VersionedResourceOrBuilder>(
    +        versionedResourcesBuilder_ =
    +            new com.google.protobuf.RepeatedFieldBuilderV3<
    +                com.google.cloud.asset.v1.VersionedResource,
    +                com.google.cloud.asset.v1.VersionedResource.Builder,
    +                com.google.cloud.asset.v1.VersionedResourceOrBuilder>(
                     versionedResources_,
                     ((bitField0_ & 0x00000010) != 0),
                     getParentForChildren(),
    @@ -6292,18 +6767,25 @@ public com.google.cloud.asset.v1.VersionedResource.Builder addVersionedResources
         }
     
         private java.util.List attachedResources_ =
    -      java.util.Collections.emptyList();
    +        java.util.Collections.emptyList();
    +
         private void ensureAttachedResourcesIsMutable() {
           if (!((bitField0_ & 0x00000020) != 0)) {
    -        attachedResources_ = new java.util.ArrayList(attachedResources_);
    +        attachedResources_ =
    +            new java.util.ArrayList(attachedResources_);
             bitField0_ |= 0x00000020;
    -       }
    +      }
         }
     
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -        com.google.cloud.asset.v1.AttachedResource, com.google.cloud.asset.v1.AttachedResource.Builder, com.google.cloud.asset.v1.AttachedResourceOrBuilder> attachedResourcesBuilder_;
    +            com.google.cloud.asset.v1.AttachedResource,
    +            com.google.cloud.asset.v1.AttachedResource.Builder,
    +            com.google.cloud.asset.v1.AttachedResourceOrBuilder>
    +        attachedResourcesBuilder_;
     
         /**
    +     *
    +     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6323,6 +6805,8 @@ public java.util.List getAttachedRes
           }
         }
         /**
    +     *
    +     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6342,6 +6826,8 @@ public int getAttachedResourcesCount() {
           }
         }
         /**
    +     *
    +     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6361,6 +6847,8 @@ public com.google.cloud.asset.v1.AttachedResource getAttachedResources(int index
           }
         }
         /**
    +     *
    +     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6387,6 +6875,8 @@ public Builder setAttachedResources(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6410,6 +6900,8 @@ public Builder setAttachedResources(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6435,6 +6927,8 @@ public Builder addAttachedResources(com.google.cloud.asset.v1.AttachedResource v
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6461,6 +6955,8 @@ public Builder addAttachedResources(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6484,6 +6980,8 @@ public Builder addAttachedResources(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6507,6 +7005,8 @@ public Builder addAttachedResources(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6522,8 +7022,7 @@ public Builder addAllAttachedResources(
             java.lang.Iterable values) {
           if (attachedResourcesBuilder_ == null) {
             ensureAttachedResourcesIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    -            values, attachedResources_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attachedResources_);
             onChanged();
           } else {
             attachedResourcesBuilder_.addAllMessages(values);
    @@ -6531,6 +7030,8 @@ public Builder addAllAttachedResources(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6553,6 +7054,8 @@ public Builder clearAttachedResources() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6575,6 +7078,8 @@ public Builder removeAttachedResources(int index) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6591,6 +7096,8 @@ public com.google.cloud.asset.v1.AttachedResource.Builder getAttachedResourcesBu
           return getAttachedResourcesFieldBuilder().getBuilder(index);
         }
         /**
    +     *
    +     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6605,11 +7112,14 @@ public com.google.cloud.asset.v1.AttachedResource.Builder getAttachedResourcesBu
         public com.google.cloud.asset.v1.AttachedResourceOrBuilder getAttachedResourcesOrBuilder(
             int index) {
           if (attachedResourcesBuilder_ == null) {
    -        return attachedResources_.get(index);  } else {
    +        return attachedResources_.get(index);
    +      } else {
             return attachedResourcesBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    +     *
    +     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6621,8 +7131,8 @@ public com.google.cloud.asset.v1.AttachedResourceOrBuilder getAttachedResourcesO
          *
          * repeated .google.cloud.asset.v1.AttachedResource attached_resources = 20;
          */
    -    public java.util.List 
    -         getAttachedResourcesOrBuilderList() {
    +    public java.util.List
    +        getAttachedResourcesOrBuilderList() {
           if (attachedResourcesBuilder_ != null) {
             return attachedResourcesBuilder_.getMessageOrBuilderList();
           } else {
    @@ -6630,6 +7140,8 @@ public com.google.cloud.asset.v1.AttachedResourceOrBuilder getAttachedResourcesO
           }
         }
         /**
    +     *
    +     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6642,10 +7154,12 @@ public com.google.cloud.asset.v1.AttachedResourceOrBuilder getAttachedResourcesO
          * repeated .google.cloud.asset.v1.AttachedResource attached_resources = 20;
          */
         public com.google.cloud.asset.v1.AttachedResource.Builder addAttachedResourcesBuilder() {
    -      return getAttachedResourcesFieldBuilder().addBuilder(
    -          com.google.cloud.asset.v1.AttachedResource.getDefaultInstance());
    +      return getAttachedResourcesFieldBuilder()
    +          .addBuilder(com.google.cloud.asset.v1.AttachedResource.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6659,10 +7173,12 @@ public com.google.cloud.asset.v1.AttachedResource.Builder addAttachedResourcesBu
          */
         public com.google.cloud.asset.v1.AttachedResource.Builder addAttachedResourcesBuilder(
             int index) {
    -      return getAttachedResourcesFieldBuilder().addBuilder(
    -          index, com.google.cloud.asset.v1.AttachedResource.getDefaultInstance());
    +      return getAttachedResourcesFieldBuilder()
    +          .addBuilder(index, com.google.cloud.asset.v1.AttachedResource.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * Attached resources of this resource. For example, an OSConfig
          * Inventory is an attached resource of a Compute Instance. This field is
    @@ -6674,16 +7190,22 @@ public com.google.cloud.asset.v1.AttachedResource.Builder addAttachedResourcesBu
          *
          * repeated .google.cloud.asset.v1.AttachedResource attached_resources = 20;
          */
    -    public java.util.List 
    -         getAttachedResourcesBuilderList() {
    +    public java.util.List
    +        getAttachedResourcesBuilderList() {
           return getAttachedResourcesFieldBuilder().getBuilderList();
         }
    +
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -        com.google.cloud.asset.v1.AttachedResource, com.google.cloud.asset.v1.AttachedResource.Builder, com.google.cloud.asset.v1.AttachedResourceOrBuilder> 
    +            com.google.cloud.asset.v1.AttachedResource,
    +            com.google.cloud.asset.v1.AttachedResource.Builder,
    +            com.google.cloud.asset.v1.AttachedResourceOrBuilder>
             getAttachedResourcesFieldBuilder() {
           if (attachedResourcesBuilder_ == null) {
    -        attachedResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.asset.v1.AttachedResource, com.google.cloud.asset.v1.AttachedResource.Builder, com.google.cloud.asset.v1.AttachedResourceOrBuilder>(
    +        attachedResourcesBuilder_ =
    +            new com.google.protobuf.RepeatedFieldBuilderV3<
    +                com.google.cloud.asset.v1.AttachedResource,
    +                com.google.cloud.asset.v1.AttachedResource.Builder,
    +                com.google.cloud.asset.v1.AttachedResourceOrBuilder>(
                     attachedResources_,
                     ((bitField0_ & 0x00000020) != 0),
                     getParentForChildren(),
    @@ -6694,21 +7216,27 @@ public com.google.cloud.asset.v1.AttachedResource.Builder addAttachedResourcesBu
         }
     
         private com.google.protobuf.MapField<
    -        java.lang.String, com.google.cloud.asset.v1.RelatedResources> relationships_;
    -    private com.google.protobuf.MapField
    -    internalGetRelationships() {
    +            java.lang.String, com.google.cloud.asset.v1.RelatedResources>
    +        relationships_;
    +
    +    private com.google.protobuf.MapField<
    +            java.lang.String, com.google.cloud.asset.v1.RelatedResources>
    +        internalGetRelationships() {
           if (relationships_ == null) {
             return com.google.protobuf.MapField.emptyMapField(
                 RelationshipsDefaultEntryHolder.defaultEntry);
           }
           return relationships_;
         }
    -    private com.google.protobuf.MapField
    -    internalGetMutableRelationships() {
    -      onChanged();;
    +
    +    private com.google.protobuf.MapField<
    +            java.lang.String, com.google.cloud.asset.v1.RelatedResources>
    +        internalGetMutableRelationships() {
    +      onChanged();
    +      ;
           if (relationships_ == null) {
    -        relationships_ = com.google.protobuf.MapField.newMapField(
    -            RelationshipsDefaultEntryHolder.defaultEntry);
    +        relationships_ =
    +            com.google.protobuf.MapField.newMapField(RelationshipsDefaultEntryHolder.defaultEntry);
           }
           if (!relationships_.isMutable()) {
             relationships_ = relationships_.copy();
    @@ -6720,6 +7248,8 @@ public int getRelationshipsCount() {
           return internalGetRelationships().getMap().size();
         }
         /**
    +     *
    +     *
          * 
          * A map of related resources of this resource, keyed by the
          * relationship type. A relationship type is in the format of
    @@ -6731,22 +7261,23 @@ public int getRelationshipsCount() {
          *
          * map<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
          */
    -
         @java.lang.Override
    -    public boolean containsRelationships(
    -        java.lang.String key) {
    -      if (key == null) { throw new NullPointerException("map key"); }
    +    public boolean containsRelationships(java.lang.String key) {
    +      if (key == null) {
    +        throw new NullPointerException("map key");
    +      }
           return internalGetRelationships().getMap().containsKey(key);
         }
    -    /**
    -     * Use {@link #getRelationshipsMap()} instead.
    -     */
    +    /** Use {@link #getRelationshipsMap()} instead. */
         @java.lang.Override
         @java.lang.Deprecated
    -    public java.util.Map getRelationships() {
    +    public java.util.Map
    +        getRelationships() {
           return getRelationshipsMap();
         }
         /**
    +     *
    +     *
          * 
          * A map of related resources of this resource, keyed by the
          * relationship type. A relationship type is in the format of
    @@ -6759,11 +7290,13 @@ public java.util.Mapmap<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
          */
         @java.lang.Override
    -
    -    public java.util.Map getRelationshipsMap() {
    +    public java.util.Map
    +        getRelationshipsMap() {
           return internalGetRelationships().getMap();
         }
         /**
    +     *
    +     *
          * 
          * A map of related resources of this resource, keyed by the
          * relationship type. A relationship type is in the format of
    @@ -6776,16 +7309,18 @@ public java.util.Mapmap<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
          */
         @java.lang.Override
    -
         public com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
    -        java.lang.String key,
    -        com.google.cloud.asset.v1.RelatedResources defaultValue) {
    -      if (key == null) { throw new NullPointerException("map key"); }
    +        java.lang.String key, com.google.cloud.asset.v1.RelatedResources defaultValue) {
    +      if (key == null) {
    +        throw new NullPointerException("map key");
    +      }
           java.util.Map map =
               internalGetRelationships().getMap();
           return map.containsKey(key) ? map.get(key) : defaultValue;
         }
         /**
    +     *
    +     *
          * 
          * A map of related resources of this resource, keyed by the
          * relationship type. A relationship type is in the format of
    @@ -6798,10 +7333,11 @@ public com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
          * map<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
          */
         @java.lang.Override
    -
         public com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
             java.lang.String key) {
    -      if (key == null) { throw new NullPointerException("map key"); }
    +      if (key == null) {
    +        throw new NullPointerException("map key");
    +      }
           java.util.Map map =
               internalGetRelationships().getMap();
           if (!map.containsKey(key)) {
    @@ -6811,11 +7347,12 @@ public com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
         }
     
         public Builder clearRelationships() {
    -      internalGetMutableRelationships().getMutableMap()
    -          .clear();
    +      internalGetMutableRelationships().getMutableMap().clear();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A map of related resources of this resource, keyed by the
          * relationship type. A relationship type is in the format of
    @@ -6827,23 +7364,22 @@ public Builder clearRelationships() {
          *
          * map<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
          */
    -
    -    public Builder removeRelationships(
    -        java.lang.String key) {
    -      if (key == null) { throw new NullPointerException("map key"); }
    -      internalGetMutableRelationships().getMutableMap()
    -          .remove(key);
    +    public Builder removeRelationships(java.lang.String key) {
    +      if (key == null) {
    +        throw new NullPointerException("map key");
    +      }
    +      internalGetMutableRelationships().getMutableMap().remove(key);
           return this;
         }
    -    /**
    -     * Use alternate mutation accessors instead.
    -     */
    +    /** Use alternate mutation accessors instead. */
         @java.lang.Deprecated
         public java.util.Map
    -    getMutableRelationships() {
    +        getMutableRelationships() {
           return internalGetMutableRelationships().getMutableMap();
         }
         /**
    +     *
    +     *
          * 
          * A map of related resources of this resource, keyed by the
          * relationship type. A relationship type is in the format of
    @@ -6856,18 +7392,20 @@ public Builder removeRelationships(
          * map<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
          */
         public Builder putRelationships(
    -        java.lang.String key,
    -        com.google.cloud.asset.v1.RelatedResources value) {
    -      if (key == null) { throw new NullPointerException("map key"); }
    +        java.lang.String key, com.google.cloud.asset.v1.RelatedResources value) {
    +      if (key == null) {
    +        throw new NullPointerException("map key");
    +      }
           if (value == null) {
    -  throw new NullPointerException("map value");
    -}
    +        throw new NullPointerException("map value");
    +      }
     
    -      internalGetMutableRelationships().getMutableMap()
    -          .put(key, value);
    +      internalGetMutableRelationships().getMutableMap().put(key, value);
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A map of related resources of this resource, keyed by the
          * relationship type. A relationship type is in the format of
    @@ -6879,22 +7417,24 @@ public Builder putRelationships(
          *
          * map<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
          */
    -
         public Builder putAllRelationships(
             java.util.Map values) {
    -      internalGetMutableRelationships().getMutableMap()
    -          .putAll(values);
    +      internalGetMutableRelationships().getMutableMap().putAll(values);
           return this;
         }
     
    -    private com.google.protobuf.LazyStringList tagKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    +    private com.google.protobuf.LazyStringList tagKeys_ =
    +        com.google.protobuf.LazyStringArrayList.EMPTY;
    +
         private void ensureTagKeysIsMutable() {
           if (!((bitField0_ & 0x00000080) != 0)) {
             tagKeys_ = new com.google.protobuf.LazyStringArrayList(tagKeys_);
             bitField0_ |= 0x00000080;
    -       }
    +      }
         }
         /**
    +     *
    +     *
          * 
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    @@ -6907,13 +7447,15 @@ private void ensureTagKeysIsMutable() {
          * 
    * * repeated string tag_keys = 23; + * * @return A list containing the tagKeys. */ - public com.google.protobuf.ProtocolStringList - getTagKeysList() { + public com.google.protobuf.ProtocolStringList getTagKeysList() { return tagKeys_.getUnmodifiableView(); } /** + * + * *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    @@ -6926,12 +7468,15 @@ private void ensureTagKeysIsMutable() {
          * 
    * * repeated string tag_keys = 23; + * * @return The count of tagKeys. */ public int getTagKeysCount() { return tagKeys_.size(); } /** + * + * *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    @@ -6944,6 +7489,7 @@ public int getTagKeysCount() {
          * 
    * * repeated string tag_keys = 23; + * * @param index The index of the element to return. * @return The tagKeys at the given index. */ @@ -6951,6 +7497,8 @@ public java.lang.String getTagKeys(int index) { return tagKeys_.get(index); } /** + * + * *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    @@ -6963,14 +7511,16 @@ public java.lang.String getTagKeys(int index) {
          * 
    * * repeated string tag_keys = 23; + * * @param index The index of the value to return. * @return The bytes of the tagKeys at the given index. */ - public com.google.protobuf.ByteString - getTagKeysBytes(int index) { + public com.google.protobuf.ByteString getTagKeysBytes(int index) { return tagKeys_.getByteString(index); } /** + * + * *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    @@ -6983,21 +7533,23 @@ public java.lang.String getTagKeys(int index) {
          * 
    * * repeated string tag_keys = 23; + * * @param index The index to set the value at. * @param value The tagKeys to set. * @return This builder for chaining. */ - public Builder setTagKeys( - int index, java.lang.String value) { + public Builder setTagKeys(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagKeysIsMutable(); + throw new NullPointerException(); + } + ensureTagKeysIsMutable(); tagKeys_.set(index, value); onChanged(); return this; } /** + * + * *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    @@ -7010,20 +7562,22 @@ public Builder setTagKeys(
          * 
    * * repeated string tag_keys = 23; + * * @param value The tagKeys to add. * @return This builder for chaining. */ - public Builder addTagKeys( - java.lang.String value) { + public Builder addTagKeys(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagKeysIsMutable(); + throw new NullPointerException(); + } + ensureTagKeysIsMutable(); tagKeys_.add(value); onChanged(); return this; } /** + * + * *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    @@ -7036,18 +7590,19 @@ public Builder addTagKeys(
          * 
    * * repeated string tag_keys = 23; + * * @param values The tagKeys to add. * @return This builder for chaining. */ - public Builder addAllTagKeys( - java.lang.Iterable values) { + public Builder addAllTagKeys(java.lang.Iterable values) { ensureTagKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tagKeys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tagKeys_); onChanged(); return this; } /** + * + * *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    @@ -7060,6 +7615,7 @@ public Builder addAllTagKeys(
          * 
    * * repeated string tag_keys = 23; + * * @return This builder for chaining. */ public Builder clearTagKeys() { @@ -7069,6 +7625,8 @@ public Builder clearTagKeys() { return this; } /** + * + * *
          * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
          * To search against the `tagKeys`:
    @@ -7081,29 +7639,33 @@ public Builder clearTagKeys() {
          * 
    * * repeated string tag_keys = 23; + * * @param value The bytes of the tagKeys to add. * @return This builder for chaining. */ - public Builder addTagKeysBytes( - com.google.protobuf.ByteString value) { + public Builder addTagKeysBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTagKeysIsMutable(); tagKeys_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList tagValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList tagValues_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagValuesIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { tagValues_ = new com.google.protobuf.LazyStringArrayList(tagValues_); bitField0_ |= 0x00000100; - } + } } /** + * + * *
          * TagValue namespaced names, in the format of
          * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
    @@ -7118,13 +7680,15 @@ private void ensureTagValuesIsMutable() {
          * 
    * * repeated string tag_values = 25; + * * @return A list containing the tagValues. */ - public com.google.protobuf.ProtocolStringList - getTagValuesList() { + public com.google.protobuf.ProtocolStringList getTagValuesList() { return tagValues_.getUnmodifiableView(); } /** + * + * *
          * TagValue namespaced names, in the format of
          * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
    @@ -7139,12 +7703,15 @@ private void ensureTagValuesIsMutable() {
          * 
    * * repeated string tag_values = 25; + * * @return The count of tagValues. */ public int getTagValuesCount() { return tagValues_.size(); } /** + * + * *
          * TagValue namespaced names, in the format of
          * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
    @@ -7159,6 +7726,7 @@ public int getTagValuesCount() {
          * 
    * * repeated string tag_values = 25; + * * @param index The index of the element to return. * @return The tagValues at the given index. */ @@ -7166,6 +7734,8 @@ public java.lang.String getTagValues(int index) { return tagValues_.get(index); } /** + * + * *
          * TagValue namespaced names, in the format of
          * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
    @@ -7180,14 +7750,16 @@ public java.lang.String getTagValues(int index) {
          * 
    * * repeated string tag_values = 25; + * * @param index The index of the value to return. * @return The bytes of the tagValues at the given index. */ - public com.google.protobuf.ByteString - getTagValuesBytes(int index) { + public com.google.protobuf.ByteString getTagValuesBytes(int index) { return tagValues_.getByteString(index); } /** + * + * *
          * TagValue namespaced names, in the format of
          * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
    @@ -7202,21 +7774,23 @@ public java.lang.String getTagValues(int index) {
          * 
    * * repeated string tag_values = 25; + * * @param index The index to set the value at. * @param value The tagValues to set. * @return This builder for chaining. */ - public Builder setTagValues( - int index, java.lang.String value) { + public Builder setTagValues(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagValuesIsMutable(); + throw new NullPointerException(); + } + ensureTagValuesIsMutable(); tagValues_.set(index, value); onChanged(); return this; } /** + * + * *
          * TagValue namespaced names, in the format of
          * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
    @@ -7231,20 +7805,22 @@ public Builder setTagValues(
          * 
    * * repeated string tag_values = 25; + * * @param value The tagValues to add. * @return This builder for chaining. */ - public Builder addTagValues( - java.lang.String value) { + public Builder addTagValues(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagValuesIsMutable(); + throw new NullPointerException(); + } + ensureTagValuesIsMutable(); tagValues_.add(value); onChanged(); return this; } /** + * + * *
          * TagValue namespaced names, in the format of
          * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
    @@ -7259,18 +7835,19 @@ public Builder addTagValues(
          * 
    * * repeated string tag_values = 25; + * * @param values The tagValues to add. * @return This builder for chaining. */ - public Builder addAllTagValues( - java.lang.Iterable values) { + public Builder addAllTagValues(java.lang.Iterable values) { ensureTagValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tagValues_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tagValues_); onChanged(); return this; } /** + * + * *
          * TagValue namespaced names, in the format of
          * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
    @@ -7285,6 +7862,7 @@ public Builder addAllTagValues(
          * 
    * * repeated string tag_values = 25; + * * @return This builder for chaining. */ public Builder clearTagValues() { @@ -7294,6 +7872,8 @@ public Builder clearTagValues() { return this; } /** + * + * *
          * TagValue namespaced names, in the format of
          * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
    @@ -7308,29 +7888,33 @@ public Builder clearTagValues() {
          * 
    * * repeated string tag_values = 25; + * * @param value The bytes of the tagValues to add. * @return This builder for chaining. */ - public Builder addTagValuesBytes( - com.google.protobuf.ByteString value) { + public Builder addTagValuesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTagValuesIsMutable(); tagValues_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList tagValueIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList tagValueIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagValueIdsIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { tagValueIds_ = new com.google.protobuf.LazyStringArrayList(tagValueIds_); bitField0_ |= 0x00000200; - } + } } /** + * + * *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    @@ -7342,13 +7926,15 @@ private void ensureTagValueIdsIsMutable() {
          * 
    * * repeated string tag_value_ids = 26; + * * @return A list containing the tagValueIds. */ - public com.google.protobuf.ProtocolStringList - getTagValueIdsList() { + public com.google.protobuf.ProtocolStringList getTagValueIdsList() { return tagValueIds_.getUnmodifiableView(); } /** + * + * *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    @@ -7360,12 +7946,15 @@ private void ensureTagValueIdsIsMutable() {
          * 
    * * repeated string tag_value_ids = 26; + * * @return The count of tagValueIds. */ public int getTagValueIdsCount() { return tagValueIds_.size(); } /** + * + * *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    @@ -7377,6 +7966,7 @@ public int getTagValueIdsCount() {
          * 
    * * repeated string tag_value_ids = 26; + * * @param index The index of the element to return. * @return The tagValueIds at the given index. */ @@ -7384,6 +7974,8 @@ public java.lang.String getTagValueIds(int index) { return tagValueIds_.get(index); } /** + * + * *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    @@ -7395,14 +7987,16 @@ public java.lang.String getTagValueIds(int index) {
          * 
    * * repeated string tag_value_ids = 26; + * * @param index The index of the value to return. * @return The bytes of the tagValueIds at the given index. */ - public com.google.protobuf.ByteString - getTagValueIdsBytes(int index) { + public com.google.protobuf.ByteString getTagValueIdsBytes(int index) { return tagValueIds_.getByteString(index); } /** + * + * *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    @@ -7414,21 +8008,23 @@ public java.lang.String getTagValueIds(int index) {
          * 
    * * repeated string tag_value_ids = 26; + * * @param index The index to set the value at. * @param value The tagValueIds to set. * @return This builder for chaining. */ - public Builder setTagValueIds( - int index, java.lang.String value) { + public Builder setTagValueIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagValueIdsIsMutable(); + throw new NullPointerException(); + } + ensureTagValueIdsIsMutable(); tagValueIds_.set(index, value); onChanged(); return this; } /** + * + * *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    @@ -7440,20 +8036,22 @@ public Builder setTagValueIds(
          * 
    * * repeated string tag_value_ids = 26; + * * @param value The tagValueIds to add. * @return This builder for chaining. */ - public Builder addTagValueIds( - java.lang.String value) { + public Builder addTagValueIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagValueIdsIsMutable(); + throw new NullPointerException(); + } + ensureTagValueIdsIsMutable(); tagValueIds_.add(value); onChanged(); return this; } /** + * + * *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    @@ -7465,18 +8063,19 @@ public Builder addTagValueIds(
          * 
    * * repeated string tag_value_ids = 26; + * * @param values The tagValueIds to add. * @return This builder for chaining. */ - public Builder addAllTagValueIds( - java.lang.Iterable values) { + public Builder addAllTagValueIds(java.lang.Iterable values) { ensureTagValueIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tagValueIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tagValueIds_); onChanged(); return this; } /** + * + * *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    @@ -7488,6 +8087,7 @@ public Builder addAllTagValueIds(
          * 
    * * repeated string tag_value_ids = 26; + * * @return This builder for chaining. */ public Builder clearTagValueIds() { @@ -7497,6 +8097,8 @@ public Builder clearTagValueIds() { return this; } /** + * + * *
          * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
          * To search against the `tagValueIds`:
    @@ -7508,15 +8110,15 @@ public Builder clearTagValueIds() {
          * 
    * * repeated string tag_value_ids = 26; + * * @param value The bytes of the tagValueIds to add. * @return This builder for chaining. */ - public Builder addTagValueIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addTagValueIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTagValueIdsIsMutable(); tagValueIds_.add(value); onChanged(); @@ -7525,6 +8127,8 @@ public Builder addTagValueIdsBytes( private java.lang.Object parentAssetType_ = ""; /** + * + * *
          * The type of this resource's immediate parent, if there is one.
          * To search against the `parent_asset_type`:
    @@ -7535,13 +8139,13 @@ public Builder addTagValueIdsBytes(
          * 
    * * string parent_asset_type = 103; + * * @return The parentAssetType. */ public java.lang.String getParentAssetType() { java.lang.Object ref = parentAssetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentAssetType_ = s; return s; @@ -7550,6 +8154,8 @@ public java.lang.String getParentAssetType() { } } /** + * + * *
          * The type of this resource's immediate parent, if there is one.
          * To search against the `parent_asset_type`:
    @@ -7560,15 +8166,14 @@ public java.lang.String getParentAssetType() {
          * 
    * * string parent_asset_type = 103; + * * @return The bytes for parentAssetType. */ - public com.google.protobuf.ByteString - getParentAssetTypeBytes() { + public com.google.protobuf.ByteString getParentAssetTypeBytes() { java.lang.Object ref = parentAssetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentAssetType_ = b; return b; } else { @@ -7576,6 +8181,8 @@ public java.lang.String getParentAssetType() { } } /** + * + * *
          * The type of this resource's immediate parent, if there is one.
          * To search against the `parent_asset_type`:
    @@ -7586,20 +8193,22 @@ public java.lang.String getParentAssetType() {
          * 
    * * string parent_asset_type = 103; + * * @param value The parentAssetType to set. * @return This builder for chaining. */ - public Builder setParentAssetType( - java.lang.String value) { + public Builder setParentAssetType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parentAssetType_ = value; onChanged(); return this; } /** + * + * *
          * The type of this resource's immediate parent, if there is one.
          * To search against the `parent_asset_type`:
    @@ -7610,15 +8219,18 @@ public Builder setParentAssetType(
          * 
    * * string parent_asset_type = 103; + * * @return This builder for chaining. */ public Builder clearParentAssetType() { - + parentAssetType_ = getDefaultInstance().getParentAssetType(); onChanged(); return this; } /** + * + * *
          * The type of this resource's immediate parent, if there is one.
          * To search against the `parent_asset_type`:
    @@ -7629,23 +8241,23 @@ public Builder clearParentAssetType() {
          * 
    * * string parent_asset_type = 103; + * * @param value The bytes for parentAssetType to set. * @return This builder for chaining. */ - public Builder setParentAssetTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setParentAssetTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parentAssetType_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -7655,12 +8267,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.ResourceSearchResult) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.ResourceSearchResult) private static final com.google.cloud.asset.v1.ResourceSearchResult DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.ResourceSearchResult(); } @@ -7669,27 +8281,27 @@ public static com.google.cloud.asset.v1.ResourceSearchResult getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceSearchResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceSearchResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7704,6 +8316,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.ResourceSearchResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResultOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResultOrBuilder.java similarity index 91% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResultOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResultOrBuilder.java index acc32c1612fa..629c71ab92ee 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResultOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResultOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; -public interface ResourceSearchResultOrBuilder extends +public interface ResourceSearchResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.ResourceSearchResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The full resource name of this resource. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -20,10 +38,13 @@ public interface ResourceSearchResultOrBuilder extends
        * 
    * * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
        * The full resource name of this resource. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -36,12 +57,14 @@ public interface ResourceSearchResultOrBuilder extends
        * 
    * * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
        * The type of this resource. Example: `compute.googleapis.com/Disk`.
        * To search against the `asset_type`:
    @@ -49,10 +72,13 @@ public interface ResourceSearchResultOrBuilder extends
        * 
    * * string asset_type = 2; + * * @return The assetType. */ java.lang.String getAssetType(); /** + * + * *
        * The type of this resource. Example: `compute.googleapis.com/Disk`.
        * To search against the `asset_type`:
    @@ -60,12 +86,14 @@ public interface ResourceSearchResultOrBuilder extends
        * 
    * * string asset_type = 2; + * * @return The bytes for assetType. */ - com.google.protobuf.ByteString - getAssetTypeBytes(); + com.google.protobuf.ByteString getAssetTypeBytes(); /** + * + * *
        * The project that this resource belongs to, in the form of
        * projects/{PROJECT_NUMBER}. This field is available when the resource
    @@ -77,10 +105,13 @@ public interface ResourceSearchResultOrBuilder extends
        * 
    * * string project = 3; + * * @return The project. */ java.lang.String getProject(); /** + * + * *
        * The project that this resource belongs to, in the form of
        * projects/{PROJECT_NUMBER}. This field is available when the resource
    @@ -92,12 +123,14 @@ public interface ResourceSearchResultOrBuilder extends
        * 
    * * string project = 3; + * * @return The bytes for project. */ - com.google.protobuf.ByteString - getProjectBytes(); + com.google.protobuf.ByteString getProjectBytes(); /** + * + * *
        * The folder(s) that this resource belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the resource
    @@ -109,11 +142,13 @@ public interface ResourceSearchResultOrBuilder extends
        * 
    * * repeated string folders = 17; + * * @return A list containing the folders. */ - java.util.List - getFoldersList(); + java.util.List getFoldersList(); /** + * + * *
        * The folder(s) that this resource belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the resource
    @@ -125,10 +160,13 @@ public interface ResourceSearchResultOrBuilder extends
        * 
    * * repeated string folders = 17; + * * @return The count of folders. */ int getFoldersCount(); /** + * + * *
        * The folder(s) that this resource belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the resource
    @@ -140,11 +178,14 @@ public interface ResourceSearchResultOrBuilder extends
        * 
    * * repeated string folders = 17; + * * @param index The index of the element to return. * @return The folders at the given index. */ java.lang.String getFolders(int index); /** + * + * *
        * The folder(s) that this resource belongs to, in the form of
        * folders/{FOLDER_NUMBER}. This field is available when the resource
    @@ -156,13 +197,15 @@ public interface ResourceSearchResultOrBuilder extends
        * 
    * * repeated string folders = 17; + * * @param index The index of the value to return. * @return The bytes of the folders at the given index. */ - com.google.protobuf.ByteString - getFoldersBytes(int index); + com.google.protobuf.ByteString getFoldersBytes(int index); /** + * + * *
        * The organization that this resource belongs to, in the form of
        * organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -174,10 +217,13 @@ public interface ResourceSearchResultOrBuilder extends
        * 
    * * string organization = 18; + * * @return The organization. */ java.lang.String getOrganization(); /** + * + * *
        * The organization that this resource belongs to, in the form of
        * organizations/{ORGANIZATION_NUMBER}. This field is available when the
    @@ -189,12 +235,14 @@ public interface ResourceSearchResultOrBuilder extends
        * 
    * * string organization = 18; + * * @return The bytes for organization. */ - com.google.protobuf.ByteString - getOrganizationBytes(); + com.google.protobuf.ByteString getOrganizationBytes(); /** + * + * *
        * The display name of this resource. This field is available only when the
        * resource's Protobuf contains it.
    @@ -204,10 +252,13 @@ public interface ResourceSearchResultOrBuilder extends
        * 
    * * string display_name = 4; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
        * The display name of this resource. This field is available only when the
        * resource's Protobuf contains it.
    @@ -217,12 +268,14 @@ public interface ResourceSearchResultOrBuilder extends
        * 
    * * string display_name = 4; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
        * One or more paragraphs of text description of this resource. Maximum length
        * could be up to 1M bytes. This field is available only when the resource's
    @@ -233,10 +286,13 @@ public interface ResourceSearchResultOrBuilder extends
        * 
    * * string description = 5; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
        * One or more paragraphs of text description of this resource. Maximum length
        * could be up to 1M bytes. This field is available only when the resource's
    @@ -247,12 +303,14 @@ public interface ResourceSearchResultOrBuilder extends
        * 
    * * string description = 5; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
        * Location can be `global`, regional like `us-east1`, or zonal like
        * `us-west1-b`. This field is available only when the resource's Protobuf
    @@ -263,10 +321,13 @@ public interface ResourceSearchResultOrBuilder extends
        * 
    * * string location = 6; + * * @return The location. */ java.lang.String getLocation(); /** + * + * *
        * Location can be `global`, regional like `us-east1`, or zonal like
        * `us-west1-b`. This field is available only when the resource's Protobuf
    @@ -277,12 +338,14 @@ public interface ResourceSearchResultOrBuilder extends
        * 
    * * string location = 6; + * * @return The bytes for location. */ - com.google.protobuf.ByteString - getLocationBytes(); + com.google.protobuf.ByteString getLocationBytes(); /** + * + * *
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -300,6 +363,8 @@ public interface ResourceSearchResultOrBuilder extends
        */
       int getLabelsCount();
       /**
    +   *
    +   *
        * 
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -315,15 +380,13 @@ public interface ResourceSearchResultOrBuilder extends
        *
        * map<string, string> labels = 7;
        */
    -  boolean containsLabels(
    -      java.lang.String key);
    -  /**
    -   * Use {@link #getLabelsMap()} instead.
    -   */
    +  boolean containsLabels(java.lang.String key);
    +  /** Use {@link #getLabelsMap()} instead. */
       @java.lang.Deprecated
    -  java.util.Map
    -  getLabels();
    +  java.util.Map getLabels();
       /**
    +   *
    +   *
        * 
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -339,9 +402,10 @@ boolean containsLabels(
        *
        * map<string, string> labels = 7;
        */
    -  java.util.Map
    -  getLabelsMap();
    +  java.util.Map getLabelsMap();
       /**
    +   *
    +   *
        * 
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -359,11 +423,13 @@ boolean containsLabels(
        */
     
       /* nullable */
    -java.lang.String getLabelsOrDefault(
    +  java.lang.String getLabelsOrDefault(
           java.lang.String key,
           /* nullable */
    -java.lang.String defaultValue);
    +      java.lang.String defaultValue);
       /**
    +   *
    +   *
        * 
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -379,11 +445,11 @@ java.lang.String getLabelsOrDefault(
        *
        * map<string, string> labels = 7;
        */
    -
    -  java.lang.String getLabelsOrThrow(
    -      java.lang.String key);
    +  java.lang.String getLabelsOrThrow(java.lang.String key);
     
       /**
    +   *
    +   *
        * 
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -396,11 +462,13 @@ java.lang.String getLabelsOrThrow(
        * 
    * * repeated string network_tags = 8; + * * @return A list containing the networkTags. */ - java.util.List - getNetworkTagsList(); + java.util.List getNetworkTagsList(); /** + * + * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -413,10 +481,13 @@ java.lang.String getLabelsOrThrow(
        * 
    * * repeated string network_tags = 8; + * * @return The count of networkTags. */ int getNetworkTagsCount(); /** + * + * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -429,11 +500,14 @@ java.lang.String getLabelsOrThrow(
        * 
    * * repeated string network_tags = 8; + * * @param index The index of the element to return. * @return The networkTags at the given index. */ java.lang.String getNetworkTags(int index); /** + * + * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -446,13 +520,15 @@ java.lang.String getLabelsOrThrow(
        * 
    * * repeated string network_tags = 8; + * * @param index The index of the value to return. * @return The bytes of the networkTags at the given index. */ - com.google.protobuf.ByteString - getNetworkTagsBytes(int index); + com.google.protobuf.ByteString getNetworkTagsBytes(int index); /** + * + * *
        * The Cloud KMS
        * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -471,12 +547,16 @@ java.lang.String getLabelsOrThrow(
        * 
    * * string kms_key = 10 [deprecated = true]; - * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. - * See google/cloud/asset/v1/assets.proto;l=434 + * + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See + * google/cloud/asset/v1/assets.proto;l=434 * @return The kmsKey. */ - @java.lang.Deprecated java.lang.String getKmsKey(); + @java.lang.Deprecated + java.lang.String getKmsKey(); /** + * + * *
        * The Cloud KMS
        * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -495,14 +575,17 @@ java.lang.String getLabelsOrThrow(
        * 
    * * string kms_key = 10 [deprecated = true]; - * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. - * See google/cloud/asset/v1/assets.proto;l=434 + * + * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See + * google/cloud/asset/v1/assets.proto;l=434 * @return The bytes for kmsKey. */ - @java.lang.Deprecated com.google.protobuf.ByteString - getKmsKeyBytes(); + @java.lang.Deprecated + com.google.protobuf.ByteString getKmsKeyBytes(); /** + * + * *
        * The Cloud KMS
        * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -516,11 +599,13 @@ java.lang.String getLabelsOrThrow(
        * 
    * * repeated string kms_keys = 28; + * * @return A list containing the kmsKeys. */ - java.util.List - getKmsKeysList(); + java.util.List getKmsKeysList(); /** + * + * *
        * The Cloud KMS
        * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -534,10 +619,13 @@ java.lang.String getLabelsOrThrow(
        * 
    * * repeated string kms_keys = 28; + * * @return The count of kmsKeys. */ int getKmsKeysCount(); /** + * + * *
        * The Cloud KMS
        * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -551,11 +639,14 @@ java.lang.String getLabelsOrThrow(
        * 
    * * repeated string kms_keys = 28; + * * @param index The index of the element to return. * @return The kmsKeys at the given index. */ java.lang.String getKmsKeys(int index); /** + * + * *
        * The Cloud KMS
        * [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
    @@ -569,13 +660,15 @@ java.lang.String getLabelsOrThrow(
        * 
    * * repeated string kms_keys = 28; + * * @param index The index of the value to return. * @return The bytes of the kmsKeys at the given index. */ - com.google.protobuf.ByteString - getKmsKeysBytes(int index); + com.google.protobuf.ByteString getKmsKeysBytes(int index); /** + * + * *
        * The create timestamp of this resource, at which the resource was created.
        * The granularity is in seconds. Timestamp.nanos will always be 0. This field
    @@ -589,10 +682,13 @@ java.lang.String getLabelsOrThrow(
        * 
    * * .google.protobuf.Timestamp create_time = 11; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
        * The create timestamp of this resource, at which the resource was created.
        * The granularity is in seconds. Timestamp.nanos will always be 0. This field
    @@ -606,10 +702,13 @@ java.lang.String getLabelsOrThrow(
        * 
    * * .google.protobuf.Timestamp create_time = 11; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
        * The create timestamp of this resource, at which the resource was created.
        * The granularity is in seconds. Timestamp.nanos will always be 0. This field
    @@ -627,6 +726,8 @@ java.lang.String getLabelsOrThrow(
       com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * The last update timestamp of this resource, at which the resource was last
        * modified or deleted. The granularity is in seconds. Timestamp.nanos will
    @@ -641,10 +742,13 @@ java.lang.String getLabelsOrThrow(
        * 
    * * .google.protobuf.Timestamp update_time = 12; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
        * The last update timestamp of this resource, at which the resource was last
        * modified or deleted. The granularity is in seconds. Timestamp.nanos will
    @@ -659,10 +763,13 @@ java.lang.String getLabelsOrThrow(
        * 
    * * .google.protobuf.Timestamp update_time = 12; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
        * The last update timestamp of this resource, at which the resource was last
        * modified or deleted. The granularity is in seconds. Timestamp.nanos will
    @@ -681,6 +788,8 @@ java.lang.String getLabelsOrThrow(
       com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * The state of this resource. Different resources types have different state
        * definitions that are mapped from various fields of different resource
    @@ -702,10 +811,13 @@ java.lang.String getLabelsOrThrow(
        * 
    * * string state = 13; + * * @return The state. */ java.lang.String getState(); /** + * + * *
        * The state of this resource. Different resources types have different state
        * definitions that are mapped from various fields of different resource
    @@ -727,12 +839,14 @@ java.lang.String getLabelsOrThrow(
        * 
    * * string state = 13; + * * @return The bytes for state. */ - com.google.protobuf.ByteString - getStateBytes(); + com.google.protobuf.ByteString getStateBytes(); /** + * + * *
        * The additional searchable attributes of this resource. The attributes may
        * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -753,10 +867,13 @@ java.lang.String getLabelsOrThrow(
        * 
    * * .google.protobuf.Struct additional_attributes = 9; + * * @return Whether the additionalAttributes field is set. */ boolean hasAdditionalAttributes(); /** + * + * *
        * The additional searchable attributes of this resource. The attributes may
        * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -777,10 +894,13 @@ java.lang.String getLabelsOrThrow(
        * 
    * * .google.protobuf.Struct additional_attributes = 9; + * * @return The additionalAttributes. */ com.google.protobuf.Struct getAdditionalAttributes(); /** + * + * *
        * The additional searchable attributes of this resource. The attributes may
        * vary from one resource type to another. Examples: `projectId` for Project,
    @@ -805,6 +925,8 @@ java.lang.String getLabelsOrThrow(
       com.google.protobuf.StructOrBuilder getAdditionalAttributesOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * The full resource name of this resource's parent, if it has one.
        * To search against the `parent_full_resource_name`:
    @@ -815,10 +937,13 @@ java.lang.String getLabelsOrThrow(
        * 
    * * string parent_full_resource_name = 19; + * * @return The parentFullResourceName. */ java.lang.String getParentFullResourceName(); /** + * + * *
        * The full resource name of this resource's parent, if it has one.
        * To search against the `parent_full_resource_name`:
    @@ -829,12 +954,14 @@ java.lang.String getLabelsOrThrow(
        * 
    * * string parent_full_resource_name = 19; + * * @return The bytes for parentFullResourceName. */ - com.google.protobuf.ByteString - getParentFullResourceNameBytes(); + com.google.protobuf.ByteString getParentFullResourceNameBytes(); /** + * + * *
        * Versioned resource representations of this resource. This is repeated
        * because there could be multiple versions of resource representations during
    @@ -846,9 +973,10 @@ java.lang.String getLabelsOrThrow(
        *
        * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 16;
        */
    -  java.util.List 
    -      getVersionedResourcesList();
    +  java.util.List getVersionedResourcesList();
       /**
    +   *
    +   *
        * 
        * Versioned resource representations of this resource. This is repeated
        * because there could be multiple versions of resource representations during
    @@ -862,6 +990,8 @@ java.lang.String getLabelsOrThrow(
        */
       com.google.cloud.asset.v1.VersionedResource getVersionedResources(int index);
       /**
    +   *
    +   *
        * 
        * Versioned resource representations of this resource. This is repeated
        * because there could be multiple versions of resource representations during
    @@ -875,6 +1005,8 @@ java.lang.String getLabelsOrThrow(
        */
       int getVersionedResourcesCount();
       /**
    +   *
    +   *
        * 
        * Versioned resource representations of this resource. This is repeated
        * because there could be multiple versions of resource representations during
    @@ -886,9 +1018,11 @@ java.lang.String getLabelsOrThrow(
        *
        * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 16;
        */
    -  java.util.List 
    +  java.util.List
           getVersionedResourcesOrBuilderList();
       /**
    +   *
    +   *
        * 
        * Versioned resource representations of this resource. This is repeated
        * because there could be multiple versions of resource representations during
    @@ -900,10 +1034,11 @@ java.lang.String getLabelsOrThrow(
        *
        * repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 16;
        */
    -  com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResourcesOrBuilder(
    -      int index);
    +  com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResourcesOrBuilder(int index);
     
       /**
    +   *
    +   *
        * 
        * Attached resources of this resource. For example, an OSConfig
        * Inventory is an attached resource of a Compute Instance. This field is
    @@ -915,9 +1050,10 @@ com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResourcesOrBuil
        *
        * repeated .google.cloud.asset.v1.AttachedResource attached_resources = 20;
        */
    -  java.util.List 
    -      getAttachedResourcesList();
    +  java.util.List getAttachedResourcesList();
       /**
    +   *
    +   *
        * 
        * Attached resources of this resource. For example, an OSConfig
        * Inventory is an attached resource of a Compute Instance. This field is
    @@ -931,6 +1067,8 @@ com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResourcesOrBuil
        */
       com.google.cloud.asset.v1.AttachedResource getAttachedResources(int index);
       /**
    +   *
    +   *
        * 
        * Attached resources of this resource. For example, an OSConfig
        * Inventory is an attached resource of a Compute Instance. This field is
    @@ -944,6 +1082,8 @@ com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResourcesOrBuil
        */
       int getAttachedResourcesCount();
       /**
    +   *
    +   *
        * 
        * Attached resources of this resource. For example, an OSConfig
        * Inventory is an attached resource of a Compute Instance. This field is
    @@ -955,9 +1095,11 @@ com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResourcesOrBuil
        *
        * repeated .google.cloud.asset.v1.AttachedResource attached_resources = 20;
        */
    -  java.util.List 
    +  java.util.List
           getAttachedResourcesOrBuilderList();
       /**
    +   *
    +   *
        * 
        * Attached resources of this resource. For example, an OSConfig
        * Inventory is an attached resource of a Compute Instance. This field is
    @@ -969,10 +1111,11 @@ com.google.cloud.asset.v1.VersionedResourceOrBuilder getVersionedResourcesOrBuil
        *
        * repeated .google.cloud.asset.v1.AttachedResource attached_resources = 20;
        */
    -  com.google.cloud.asset.v1.AttachedResourceOrBuilder getAttachedResourcesOrBuilder(
    -      int index);
    +  com.google.cloud.asset.v1.AttachedResourceOrBuilder getAttachedResourcesOrBuilder(int index);
     
       /**
    +   *
    +   *
        * 
        * A map of related resources of this resource, keyed by the
        * relationship type. A relationship type is in the format of
    @@ -986,6 +1129,8 @@ com.google.cloud.asset.v1.AttachedResourceOrBuilder getAttachedResourcesOrBuilde
        */
       int getRelationshipsCount();
       /**
    +   *
    +   *
        * 
        * A map of related resources of this resource, keyed by the
        * relationship type. A relationship type is in the format of
    @@ -997,15 +1142,13 @@ com.google.cloud.asset.v1.AttachedResourceOrBuilder getAttachedResourcesOrBuilde
        *
        * map<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
        */
    -  boolean containsRelationships(
    -      java.lang.String key);
    -  /**
    -   * Use {@link #getRelationshipsMap()} instead.
    -   */
    +  boolean containsRelationships(java.lang.String key);
    +  /** Use {@link #getRelationshipsMap()} instead. */
       @java.lang.Deprecated
    -  java.util.Map
    -  getRelationships();
    +  java.util.Map getRelationships();
       /**
    +   *
    +   *
        * 
        * A map of related resources of this resource, keyed by the
        * relationship type. A relationship type is in the format of
    @@ -1017,9 +1160,10 @@ boolean containsRelationships(
        *
        * map<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
        */
    -  java.util.Map
    -  getRelationshipsMap();
    +  java.util.Map getRelationshipsMap();
       /**
    +   *
    +   *
        * 
        * A map of related resources of this resource, keyed by the
        * relationship type. A relationship type is in the format of
    @@ -1033,11 +1177,13 @@ boolean containsRelationships(
        */
     
       /* nullable */
    -com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
    +  com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
           java.lang.String key,
           /* nullable */
    -com.google.cloud.asset.v1.RelatedResources defaultValue);
    +      com.google.cloud.asset.v1.RelatedResources defaultValue);
       /**
    +   *
    +   *
        * 
        * A map of related resources of this resource, keyed by the
        * relationship type. A relationship type is in the format of
    @@ -1049,11 +1195,11 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
        *
        * map<string, .google.cloud.asset.v1.RelatedResources> relationships = 21;
        */
    -
    -  com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
    -      java.lang.String key);
    +  com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(java.lang.String key);
     
       /**
    +   *
    +   *
        * 
        * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
        * To search against the `tagKeys`:
    @@ -1066,11 +1212,13 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
        * 
    * * repeated string tag_keys = 23; + * * @return A list containing the tagKeys. */ - java.util.List - getTagKeysList(); + java.util.List getTagKeysList(); /** + * + * *
        * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
        * To search against the `tagKeys`:
    @@ -1083,10 +1231,13 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
        * 
    * * repeated string tag_keys = 23; + * * @return The count of tagKeys. */ int getTagKeysCount(); /** + * + * *
        * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
        * To search against the `tagKeys`:
    @@ -1099,11 +1250,14 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
        * 
    * * repeated string tag_keys = 23; + * * @param index The index of the element to return. * @return The tagKeys at the given index. */ java.lang.String getTagKeys(int index); /** + * + * *
        * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
        * To search against the `tagKeys`:
    @@ -1116,13 +1270,15 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
        * 
    * * repeated string tag_keys = 23; + * * @param index The index of the value to return. * @return The bytes of the tagKeys at the given index. */ - com.google.protobuf.ByteString - getTagKeysBytes(int index); + com.google.protobuf.ByteString getTagKeysBytes(int index); /** + * + * *
        * TagValue namespaced names, in the format of
        * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
    @@ -1137,11 +1293,13 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
        * 
    * * repeated string tag_values = 25; + * * @return A list containing the tagValues. */ - java.util.List - getTagValuesList(); + java.util.List getTagValuesList(); /** + * + * *
        * TagValue namespaced names, in the format of
        * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
    @@ -1156,10 +1314,13 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
        * 
    * * repeated string tag_values = 25; + * * @return The count of tagValues. */ int getTagValuesCount(); /** + * + * *
        * TagValue namespaced names, in the format of
        * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
    @@ -1174,11 +1335,14 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
        * 
    * * repeated string tag_values = 25; + * * @param index The index of the element to return. * @return The tagValues at the given index. */ java.lang.String getTagValues(int index); /** + * + * *
        * TagValue namespaced names, in the format of
        * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
    @@ -1193,13 +1357,15 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
        * 
    * * repeated string tag_values = 25; + * * @param index The index of the value to return. * @return The bytes of the tagValues at the given index. */ - com.google.protobuf.ByteString - getTagValuesBytes(int index); + com.google.protobuf.ByteString getTagValuesBytes(int index); /** + * + * *
        * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
        * To search against the `tagValueIds`:
    @@ -1211,11 +1377,13 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
        * 
    * * repeated string tag_value_ids = 26; + * * @return A list containing the tagValueIds. */ - java.util.List - getTagValueIdsList(); + java.util.List getTagValueIdsList(); /** + * + * *
        * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
        * To search against the `tagValueIds`:
    @@ -1227,10 +1395,13 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
        * 
    * * repeated string tag_value_ids = 26; + * * @return The count of tagValueIds. */ int getTagValueIdsCount(); /** + * + * *
        * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
        * To search against the `tagValueIds`:
    @@ -1242,11 +1413,14 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
        * 
    * * repeated string tag_value_ids = 26; + * * @param index The index of the element to return. * @return The tagValueIds at the given index. */ java.lang.String getTagValueIds(int index); /** + * + * *
        * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
        * To search against the `tagValueIds`:
    @@ -1258,13 +1432,15 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
        * 
    * * repeated string tag_value_ids = 26; + * * @param index The index of the value to return. * @return The bytes of the tagValueIds at the given index. */ - com.google.protobuf.ByteString - getTagValueIdsBytes(int index); + com.google.protobuf.ByteString getTagValueIdsBytes(int index); /** + * + * *
        * The type of this resource's immediate parent, if there is one.
        * To search against the `parent_asset_type`:
    @@ -1275,10 +1451,13 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
        * 
    * * string parent_asset_type = 103; + * * @return The parentAssetType. */ java.lang.String getParentAssetType(); /** + * + * *
        * The type of this resource's immediate parent, if there is one.
        * To search against the `parent_asset_type`:
    @@ -1289,8 +1468,8 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(
        * 
    * * string parent_asset_type = 103; + * * @return The bytes for parentAssetType. */ - com.google.protobuf.ByteString - getParentAssetTypeBytes(); + com.google.protobuf.ByteString getParentAssetTypeBytes(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQuery.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQuery.java similarity index 69% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQuery.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQuery.java index 3924255b6898..380c435ed825 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQuery.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQuery.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * A saved query which can be shared with others or used later.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.SavedQuery} */ -public final class SavedQuery extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SavedQuery extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.SavedQuery) SavedQueryOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SavedQuery.newBuilder() to construct. private SavedQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SavedQuery() { name_ = ""; description_ = ""; @@ -28,46 +46,49 @@ private SavedQuery() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SavedQuery(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SavedQuery_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SavedQuery_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 7: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SavedQuery_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SavedQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.SavedQuery.class, com.google.cloud.asset.v1.SavedQuery.Builder.class); + com.google.cloud.asset.v1.SavedQuery.class, + com.google.cloud.asset.v1.SavedQuery.Builder.class); } - public interface QueryContentOrBuilder extends + public interface QueryContentOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.SavedQuery.QueryContent) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * An IAM Policy Analysis query, which could be used in
          * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    @@ -75,10 +96,13 @@ public interface QueryContentOrBuilder extends
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; + * * @return Whether the iamPolicyAnalysisQuery field is set. */ boolean hasIamPolicyAnalysisQuery(); /** + * + * *
          * An IAM Policy Analysis query, which could be used in
          * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    @@ -86,10 +110,13 @@ public interface QueryContentOrBuilder extends
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; + * * @return The iamPolicyAnalysisQuery. */ com.google.cloud.asset.v1.IamPolicyAnalysisQuery getIamPolicyAnalysisQuery(); /** + * + * *
          * An IAM Policy Analysis query, which could be used in
          * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    @@ -103,57 +130,63 @@ public interface QueryContentOrBuilder extends
         public com.google.cloud.asset.v1.SavedQuery.QueryContent.QueryContentCase getQueryContentCase();
       }
       /**
    +   *
    +   *
        * 
        * The query content.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.SavedQuery.QueryContent} */ - public static final class QueryContent extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class QueryContent extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.SavedQuery.QueryContent) QueryContentOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QueryContent.newBuilder() to construct. private QueryContent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private QueryContent() { - } + + private QueryContent() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new QueryContent(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.SavedQuery.QueryContent.class, com.google.cloud.asset.v1.SavedQuery.QueryContent.Builder.class); + com.google.cloud.asset.v1.SavedQuery.QueryContent.class, + com.google.cloud.asset.v1.SavedQuery.QueryContent.Builder.class); } private int queryContentCase_ = 0; private java.lang.Object queryContent_; + public enum QueryContentCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { IAM_POLICY_ANALYSIS_QUERY(1), QUERYCONTENT_NOT_SET(0); private final int value; + private QueryContentCase(int value) { this.value = value; } @@ -169,24 +202,28 @@ public static QueryContentCase valueOf(int value) { public static QueryContentCase forNumber(int value) { switch (value) { - case 1: return IAM_POLICY_ANALYSIS_QUERY; - case 0: return QUERYCONTENT_NOT_SET; - default: return null; + case 1: + return IAM_POLICY_ANALYSIS_QUERY; + case 0: + return QUERYCONTENT_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public QueryContentCase - getQueryContentCase() { - return QueryContentCase.forNumber( - queryContentCase_); + public QueryContentCase getQueryContentCase() { + return QueryContentCase.forNumber(queryContentCase_); } public static final int IAM_POLICY_ANALYSIS_QUERY_FIELD_NUMBER = 1; /** + * + * *
          * An IAM Policy Analysis query, which could be used in
          * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    @@ -194,6 +231,7 @@ public int getNumber() {
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; + * * @return Whether the iamPolicyAnalysisQuery field is set. */ @java.lang.Override @@ -201,6 +239,8 @@ public boolean hasIamPolicyAnalysisQuery() { return queryContentCase_ == 1; } /** + * + * *
          * An IAM Policy Analysis query, which could be used in
          * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    @@ -208,16 +248,19 @@ public boolean hasIamPolicyAnalysisQuery() {
          * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; + * * @return The iamPolicyAnalysisQuery. */ @java.lang.Override public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getIamPolicyAnalysisQuery() { if (queryContentCase_ == 1) { - return (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_; + return (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_; } return com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance(); } /** + * + * *
          * An IAM Policy Analysis query, which could be used in
          * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    @@ -227,14 +270,16 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getIamPolicyAnalysisQuer
          * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1;
          */
         @java.lang.Override
    -    public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getIamPolicyAnalysisQueryOrBuilder() {
    +    public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder
    +        getIamPolicyAnalysisQueryOrBuilder() {
           if (queryContentCase_ == 1) {
    -         return (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_;
    +        return (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_;
           }
           return com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance();
         }
     
         private byte memoizedIsInitialized = -1;
    +
         @java.lang.Override
         public final boolean isInitialized() {
           byte isInitialized = memoizedIsInitialized;
    @@ -246,8 +291,7 @@ public final boolean isInitialized() {
         }
     
         @java.lang.Override
    -    public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                        throws java.io.IOException {
    +    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
           if (queryContentCase_ == 1) {
             output.writeMessage(1, (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_);
           }
    @@ -261,8 +305,9 @@ public int getSerializedSize() {
     
           size = 0;
           if (queryContentCase_ == 1) {
    -        size += com.google.protobuf.CodedOutputStream
    -          .computeMessageSize(1, (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_);
    +        size +=
    +            com.google.protobuf.CodedOutputStream.computeMessageSize(
    +                1, (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_);
           }
           size += getUnknownFields().getSerializedSize();
           memoizedSize = size;
    @@ -272,18 +317,18 @@ public int getSerializedSize() {
         @java.lang.Override
         public boolean equals(final java.lang.Object obj) {
           if (obj == this) {
    -       return true;
    +        return true;
           }
           if (!(obj instanceof com.google.cloud.asset.v1.SavedQuery.QueryContent)) {
             return super.equals(obj);
           }
    -      com.google.cloud.asset.v1.SavedQuery.QueryContent other = (com.google.cloud.asset.v1.SavedQuery.QueryContent) obj;
    +      com.google.cloud.asset.v1.SavedQuery.QueryContent other =
    +          (com.google.cloud.asset.v1.SavedQuery.QueryContent) obj;
     
           if (!getQueryContentCase().equals(other.getQueryContentCase())) return false;
           switch (queryContentCase_) {
             case 1:
    -          if (!getIamPolicyAnalysisQuery()
    -              .equals(other.getIamPolicyAnalysisQuery())) return false;
    +          if (!getIamPolicyAnalysisQuery().equals(other.getIamPolicyAnalysisQuery())) return false;
               break;
             case 0:
             default:
    @@ -313,87 +358,93 @@ public int hashCode() {
         }
     
         public static com.google.cloud.asset.v1.SavedQuery.QueryContent parseFrom(
    -        java.nio.ByteBuffer data)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    +        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
    +
         public static com.google.cloud.asset.v1.SavedQuery.QueryContent parseFrom(
    -        java.nio.ByteBuffer data,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data, extensionRegistry);
         }
    +
         public static com.google.cloud.asset.v1.SavedQuery.QueryContent parseFrom(
             com.google.protobuf.ByteString data)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
    +
         public static com.google.cloud.asset.v1.SavedQuery.QueryContent 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.asset.v1.SavedQuery.QueryContent parseFrom(byte[] data)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
    +
         public static com.google.cloud.asset.v1.SavedQuery.QueryContent parseFrom(
    -        byte[] data,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data, extensionRegistry);
         }
    -    public static com.google.cloud.asset.v1.SavedQuery.QueryContent parseFrom(java.io.InputStream input)
    -        throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3
    -          .parseWithIOException(PARSER, input);
    +
    +    public static com.google.cloud.asset.v1.SavedQuery.QueryContent parseFrom(
    +        java.io.InputStream input) throws java.io.IOException {
    +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
         }
    +
         public static com.google.cloud.asset.v1.SavedQuery.QueryContent parseFrom(
    -        java.io.InputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3
    -          .parseWithIOException(PARSER, input, extensionRegistry);
    +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +          PARSER, input, extensionRegistry);
         }
    -    public static com.google.cloud.asset.v1.SavedQuery.QueryContent parseDelimitedFrom(java.io.InputStream input)
    -        throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3
    -          .parseDelimitedWithIOException(PARSER, input);
    +
    +    public static com.google.cloud.asset.v1.SavedQuery.QueryContent parseDelimitedFrom(
    +        java.io.InputStream input) throws java.io.IOException {
    +      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
         }
    +
         public static com.google.cloud.asset.v1.SavedQuery.QueryContent parseDelimitedFrom(
    -        java.io.InputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3
    -          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +          PARSER, input, extensionRegistry);
         }
    +
         public static com.google.cloud.asset.v1.SavedQuery.QueryContent parseFrom(
    -        com.google.protobuf.CodedInputStream input)
    -        throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3
    -          .parseWithIOException(PARSER, input);
    +        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
         }
    +
         public static com.google.cloud.asset.v1.SavedQuery.QueryContent parseFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      return com.google.protobuf.GeneratedMessageV3
    -          .parseWithIOException(PARSER, input, extensionRegistry);
    +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +          PARSER, input, extensionRegistry);
         }
     
         @java.lang.Override
    -    public Builder newBuilderForType() { return newBuilder(); }
    +    public Builder newBuilderForType() {
    +      return newBuilder();
    +    }
    +
         public static Builder newBuilder() {
           return DEFAULT_INSTANCE.toBuilder();
         }
    +
         public static Builder newBuilder(com.google.cloud.asset.v1.SavedQuery.QueryContent prototype) {
           return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
         }
    +
         @java.lang.Override
         public Builder toBuilder() {
    -      return this == DEFAULT_INSTANCE
    -          ? new Builder() : new Builder().mergeFrom(this);
    +      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
         }
     
         @java.lang.Override
    @@ -403,39 +454,41 @@ protected Builder newBuilderForType(
           return builder;
         }
         /**
    +     *
    +     *
          * 
          * The query content.
          * 
    * * Protobuf type {@code google.cloud.asset.v1.SavedQuery.QueryContent} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.SavedQuery.QueryContent) com.google.cloud.asset.v1.SavedQuery.QueryContentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.SavedQuery.QueryContent.class, com.google.cloud.asset.v1.SavedQuery.QueryContent.Builder.class); + com.google.cloud.asset.v1.SavedQuery.QueryContent.class, + com.google.cloud.asset.v1.SavedQuery.QueryContent.Builder.class); } // Construct using com.google.cloud.asset.v1.SavedQuery.QueryContent.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,9 +501,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_descriptor; } @java.lang.Override @@ -469,7 +522,8 @@ public com.google.cloud.asset.v1.SavedQuery.QueryContent build() { @java.lang.Override public com.google.cloud.asset.v1.SavedQuery.QueryContent buildPartial() { - com.google.cloud.asset.v1.SavedQuery.QueryContent result = new com.google.cloud.asset.v1.SavedQuery.QueryContent(this); + com.google.cloud.asset.v1.SavedQuery.QueryContent result = + new com.google.cloud.asset.v1.SavedQuery.QueryContent(this); if (queryContentCase_ == 1) { if (iamPolicyAnalysisQueryBuilder_ == null) { result.queryContent_ = queryContent_; @@ -486,38 +540,41 @@ public com.google.cloud.asset.v1.SavedQuery.QueryContent buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.SavedQuery.QueryContent) { - return mergeFrom((com.google.cloud.asset.v1.SavedQuery.QueryContent)other); + return mergeFrom((com.google.cloud.asset.v1.SavedQuery.QueryContent) other); } else { super.mergeFrom(other); return this; @@ -525,15 +582,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.SavedQuery.QueryContent other) { - if (other == com.google.cloud.asset.v1.SavedQuery.QueryContent.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1.SavedQuery.QueryContent.getDefaultInstance()) + return this; switch (other.getQueryContentCase()) { - case IAM_POLICY_ANALYSIS_QUERY: { - mergeIamPolicyAnalysisQuery(other.getIamPolicyAnalysisQuery()); - break; - } - case QUERYCONTENT_NOT_SET: { - break; - } + case IAM_POLICY_ANALYSIS_QUERY: + { + mergeIamPolicyAnalysisQuery(other.getIamPolicyAnalysisQuery()); + break; + } + case QUERYCONTENT_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -561,19 +621,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getIamPolicyAnalysisQueryFieldBuilder().getBuilder(), - extensionRegistry); - queryContentCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getIamPolicyAnalysisQueryFieldBuilder().getBuilder(), extensionRegistry); + queryContentCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -583,12 +644,12 @@ public Builder mergeFrom( } // finally return this; } + private int queryContentCase_ = 0; private java.lang.Object queryContent_; - public QueryContentCase - getQueryContentCase() { - return QueryContentCase.forNumber( - queryContentCase_); + + public QueryContentCase getQueryContentCase() { + return QueryContentCase.forNumber(queryContentCase_); } public Builder clearQueryContent() { @@ -598,10 +659,14 @@ public Builder clearQueryContent() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicyAnalysisQuery, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> iamPolicyAnalysisQueryBuilder_; + com.google.cloud.asset.v1.IamPolicyAnalysisQuery, + com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, + com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> + iamPolicyAnalysisQueryBuilder_; /** + * + * *
            * An IAM Policy Analysis query, which could be used in
            * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    @@ -609,6 +674,7 @@ public Builder clearQueryContent() {
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; + * * @return Whether the iamPolicyAnalysisQuery field is set. */ @java.lang.Override @@ -616,6 +682,8 @@ public boolean hasIamPolicyAnalysisQuery() { return queryContentCase_ == 1; } /** + * + * *
            * An IAM Policy Analysis query, which could be used in
            * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    @@ -623,6 +691,7 @@ public boolean hasIamPolicyAnalysisQuery() {
            * 
    * * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; + * * @return The iamPolicyAnalysisQuery. */ @java.lang.Override @@ -640,6 +709,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getIamPolicyAnalysisQuer } } /** + * + * *
            * An IAM Policy Analysis query, which could be used in
            * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    @@ -648,7 +719,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getIamPolicyAnalysisQuer
            *
            * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1;
            */
    -      public Builder setIamPolicyAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery value) {
    +      public Builder setIamPolicyAnalysisQuery(
    +          com.google.cloud.asset.v1.IamPolicyAnalysisQuery value) {
             if (iamPolicyAnalysisQueryBuilder_ == null) {
               if (value == null) {
                 throw new NullPointerException();
    @@ -662,6 +734,8 @@ public Builder setIamPolicyAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnal
             return this;
           }
           /**
    +       *
    +       *
            * 
            * An IAM Policy Analysis query, which could be used in
            * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    @@ -682,6 +756,8 @@ public Builder setIamPolicyAnalysisQuery(
             return this;
           }
           /**
    +       *
    +       *
            * 
            * An IAM Policy Analysis query, which could be used in
            * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    @@ -690,12 +766,17 @@ public Builder setIamPolicyAnalysisQuery(
            *
            * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1;
            */
    -      public Builder mergeIamPolicyAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery value) {
    +      public Builder mergeIamPolicyAnalysisQuery(
    +          com.google.cloud.asset.v1.IamPolicyAnalysisQuery value) {
             if (iamPolicyAnalysisQueryBuilder_ == null) {
    -          if (queryContentCase_ == 1 &&
    -              queryContent_ != com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance()) {
    -            queryContent_ = com.google.cloud.asset.v1.IamPolicyAnalysisQuery.newBuilder((com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_)
    -                .mergeFrom(value).buildPartial();
    +          if (queryContentCase_ == 1
    +              && queryContent_
    +                  != com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance()) {
    +            queryContent_ =
    +                com.google.cloud.asset.v1.IamPolicyAnalysisQuery.newBuilder(
    +                        (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_)
    +                    .mergeFrom(value)
    +                    .buildPartial();
               } else {
                 queryContent_ = value;
               }
    @@ -711,6 +792,8 @@ public Builder mergeIamPolicyAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAn
             return this;
           }
           /**
    +       *
    +       *
            * 
            * An IAM Policy Analysis query, which could be used in
            * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    @@ -736,6 +819,8 @@ public Builder clearIamPolicyAnalysisQuery() {
             return this;
           }
           /**
    +       *
    +       *
            * 
            * An IAM Policy Analysis query, which could be used in
            * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    @@ -744,10 +829,13 @@ public Builder clearIamPolicyAnalysisQuery() {
            *
            * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1;
            */
    -      public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder getIamPolicyAnalysisQueryBuilder() {
    +      public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder
    +          getIamPolicyAnalysisQueryBuilder() {
             return getIamPolicyAnalysisQueryFieldBuilder().getBuilder();
           }
           /**
    +       *
    +       *
            * 
            * An IAM Policy Analysis query, which could be used in
            * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    @@ -757,7 +845,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder getIamPolicyAnal
            * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1;
            */
           @java.lang.Override
    -      public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getIamPolicyAnalysisQueryOrBuilder() {
    +      public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder
    +          getIamPolicyAnalysisQueryOrBuilder() {
             if ((queryContentCase_ == 1) && (iamPolicyAnalysisQueryBuilder_ != null)) {
               return iamPolicyAnalysisQueryBuilder_.getMessageOrBuilder();
             } else {
    @@ -768,6 +857,8 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getIamPolicyAna
             }
           }
           /**
    +       *
    +       *
            * 
            * An IAM Policy Analysis query, which could be used in
            * the [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy] rpc or
    @@ -777,23 +868,30 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getIamPolicyAna
            * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1;
            */
           private com.google.protobuf.SingleFieldBuilderV3<
    -          com.google.cloud.asset.v1.IamPolicyAnalysisQuery, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder> 
    +              com.google.cloud.asset.v1.IamPolicyAnalysisQuery,
    +              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder,
    +              com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder>
               getIamPolicyAnalysisQueryFieldBuilder() {
             if (iamPolicyAnalysisQueryBuilder_ == null) {
               if (!(queryContentCase_ == 1)) {
                 queryContent_ = com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance();
               }
    -          iamPolicyAnalysisQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -              com.google.cloud.asset.v1.IamPolicyAnalysisQuery, com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder, com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder>(
    +          iamPolicyAnalysisQueryBuilder_ =
    +              new com.google.protobuf.SingleFieldBuilderV3<
    +                  com.google.cloud.asset.v1.IamPolicyAnalysisQuery,
    +                  com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder,
    +                  com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder>(
                       (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_,
                       getParentForChildren(),
                       isClean());
               queryContent_ = null;
             }
             queryContentCase_ = 1;
    -        onChanged();;
    +        onChanged();
    +        ;
             return iamPolicyAnalysisQueryBuilder_;
           }
    +
           @java.lang.Override
           public final Builder setUnknownFields(
               final com.google.protobuf.UnknownFieldSet unknownFields) {
    @@ -806,12 +904,12 @@ public final Builder mergeUnknownFields(
             return super.mergeUnknownFields(unknownFields);
           }
     
    -
           // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.SavedQuery.QueryContent)
         }
     
         // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.SavedQuery.QueryContent)
         private static final com.google.cloud.asset.v1.SavedQuery.QueryContent DEFAULT_INSTANCE;
    +
         static {
           DEFAULT_INSTANCE = new com.google.cloud.asset.v1.SavedQuery.QueryContent();
         }
    @@ -820,27 +918,28 @@ public static com.google.cloud.asset.v1.SavedQuery.QueryContent getDefaultInstan
           return DEFAULT_INSTANCE;
         }
     
    -    private static final com.google.protobuf.Parser
    -        PARSER = new com.google.protobuf.AbstractParser() {
    -      @java.lang.Override
    -      public QueryContent parsePartialFrom(
    -          com.google.protobuf.CodedInputStream input,
    -          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -          throws com.google.protobuf.InvalidProtocolBufferException {
    -        Builder builder = newBuilder();
    -        try {
    -          builder.mergeFrom(input, extensionRegistry);
    -        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -          throw e.setUnfinishedMessage(builder.buildPartial());
    -        } catch (com.google.protobuf.UninitializedMessageException e) {
    -          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    -        } catch (java.io.IOException e) {
    -          throw new com.google.protobuf.InvalidProtocolBufferException(e)
    -              .setUnfinishedMessage(builder.buildPartial());
    -        }
    -        return builder.buildPartial();
    -      }
    -    };
    +    private static final com.google.protobuf.Parser PARSER =
    +        new com.google.protobuf.AbstractParser() {
    +          @java.lang.Override
    +          public QueryContent parsePartialFrom(
    +              com.google.protobuf.CodedInputStream input,
    +              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +              throws com.google.protobuf.InvalidProtocolBufferException {
    +            Builder builder = newBuilder();
    +            try {
    +              builder.mergeFrom(input, extensionRegistry);
    +            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +              throw e.setUnfinishedMessage(builder.buildPartial());
    +            } catch (com.google.protobuf.UninitializedMessageException e) {
    +              throw e.asInvalidProtocolBufferException()
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            } catch (java.io.IOException e) {
    +              throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            }
    +            return builder.buildPartial();
    +          }
    +        };
     
         public static com.google.protobuf.Parser parser() {
           return PARSER;
    @@ -855,12 +954,13 @@ public com.google.protobuf.Parser getParserForType() {
         public com.google.cloud.asset.v1.SavedQuery.QueryContent getDefaultInstanceForType() {
           return DEFAULT_INSTANCE;
         }
    -
       }
     
       public static final int NAME_FIELD_NUMBER = 1;
       private volatile java.lang.Object name_;
       /**
    +   *
    +   *
        * 
        * The resource name of the saved query. The format must be:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -869,6 +969,7 @@ public com.google.cloud.asset.v1.SavedQuery.QueryContent getDefaultInstanceForTy
        * 
    * * string name = 1; + * * @return The name. */ @java.lang.Override @@ -877,14 +978,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
        * The resource name of the saved query. The format must be:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -893,16 +995,15 @@ public java.lang.String getName() {
        * 
    * * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -913,12 +1014,15 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** + * + * *
        * The description of this saved query. This value should be fewer than 255
        * characters.
        * 
    * * string description = 2; + * * @return The description. */ @java.lang.Override @@ -927,30 +1031,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
        * The description of this saved query. This value should be fewer than 255
        * characters.
        * 
    * * string description = 2; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -961,11 +1065,15 @@ public java.lang.String getDescription() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** + * + * *
        * Output only. The create time of this saved query.
        * 
    * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -973,11 +1081,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
        * Output only. The create time of this saved query.
        * 
    * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -985,11 +1097,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
        * Output only. The create time of this saved query.
        * 
    * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -999,11 +1114,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int CREATOR_FIELD_NUMBER = 4; private volatile java.lang.Object creator_; /** + * + * *
        * Output only. The account's email address who has created this saved query.
        * 
    * * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The creator. */ @java.lang.Override @@ -1012,29 +1130,29 @@ public java.lang.String getCreator() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); creator_ = s; return s; } } /** + * + * *
        * Output only. The account's email address who has created this saved query.
        * 
    * * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for creator. */ @java.lang.Override - public com.google.protobuf.ByteString - getCreatorBytes() { + public com.google.protobuf.ByteString getCreatorBytes() { java.lang.Object ref = creator_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); creator_ = b; return b; } else { @@ -1045,11 +1163,16 @@ public java.lang.String getCreator() { public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp lastUpdateTime_; /** + * + * *
        * Output only. The last update time of this saved query.
        * 
    * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the lastUpdateTime field is set. */ @java.lang.Override @@ -1057,23 +1180,34 @@ public boolean hasLastUpdateTime() { return lastUpdateTime_ != null; } /** + * + * *
        * Output only. The last update time of this saved query.
        * 
    * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lastUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastUpdateTime() { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } /** + * + * *
        * Output only. The last update time of this saved query.
        * 
    * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { @@ -1083,11 +1217,14 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { public static final int LAST_UPDATER_FIELD_NUMBER = 6; private volatile java.lang.Object lastUpdater_; /** + * + * *
        * Output only. The account's email address who has updated this saved query most recently.
        * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The lastUpdater. */ @java.lang.Override @@ -1096,29 +1233,29 @@ public java.lang.String getLastUpdater() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastUpdater_ = s; return s; } } /** + * + * *
        * Output only. The account's email address who has updated this saved query most recently.
        * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for lastUpdater. */ @java.lang.Override - public com.google.protobuf.ByteString - getLastUpdaterBytes() { + public com.google.protobuf.ByteString getLastUpdaterBytes() { java.lang.Object ref = lastUpdater_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lastUpdater_ = b; return b; } else { @@ -1127,24 +1264,23 @@ public java.lang.String getLastUpdater() { } public static final int LABELS_FIELD_NUMBER = 7; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SavedQuery_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SavedQuery_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -1153,6 +1289,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
        * Labels applied on the resource.
        * This value should not contain more than 10 entries. The key and value of
    @@ -1161,22 +1299,22 @@ public int getLabelsCount() {
        *
        * map<string, string> labels = 7;
        */
    -
       @java.lang.Override
    -  public boolean containsLabels(
    -      java.lang.String key) {
    -    if (key == null) { throw new NullPointerException("map key"); }
    +  public boolean containsLabels(java.lang.String key) {
    +    if (key == null) {
    +      throw new NullPointerException("map key");
    +    }
         return internalGetLabels().getMap().containsKey(key);
       }
    -  /**
    -   * Use {@link #getLabelsMap()} instead.
    -   */
    +  /** Use {@link #getLabelsMap()} instead. */
       @java.lang.Override
       @java.lang.Deprecated
       public java.util.Map getLabels() {
         return getLabelsMap();
       }
       /**
    +   *
    +   *
        * 
        * Labels applied on the resource.
        * This value should not contain more than 10 entries. The key and value of
    @@ -1186,11 +1324,12 @@ public java.util.Map getLabels() {
        * map<string, string> labels = 7;
        */
       @java.lang.Override
    -
       public java.util.Map getLabelsMap() {
         return internalGetLabels().getMap();
       }
       /**
    +   *
    +   *
        * 
        * Labels applied on the resource.
        * This value should not contain more than 10 entries. The key and value of
    @@ -1200,16 +1339,16 @@ public java.util.Map getLabelsMap() {
        * map<string, string> labels = 7;
        */
       @java.lang.Override
    -
    -  public java.lang.String getLabelsOrDefault(
    -      java.lang.String key,
    -      java.lang.String defaultValue) {
    -    if (key == null) { throw new NullPointerException("map key"); }
    -    java.util.Map map =
    -        internalGetLabels().getMap();
    +  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
    +    if (key == null) {
    +      throw new NullPointerException("map key");
    +    }
    +    java.util.Map map = internalGetLabels().getMap();
         return map.containsKey(key) ? map.get(key) : defaultValue;
       }
       /**
    +   *
    +   *
        * 
        * Labels applied on the resource.
        * This value should not contain more than 10 entries. The key and value of
    @@ -1219,12 +1358,11 @@ public java.lang.String getLabelsOrDefault(
        * map<string, string> labels = 7;
        */
       @java.lang.Override
    -
    -  public java.lang.String getLabelsOrThrow(
    -      java.lang.String key) {
    -    if (key == null) { throw new NullPointerException("map key"); }
    -    java.util.Map map =
    -        internalGetLabels().getMap();
    +  public java.lang.String getLabelsOrThrow(java.lang.String key) {
    +    if (key == null) {
    +      throw new NullPointerException("map key");
    +    }
    +    java.util.Map map = internalGetLabels().getMap();
         if (!map.containsKey(key)) {
           throw new java.lang.IllegalArgumentException();
         }
    @@ -1234,11 +1372,14 @@ public java.lang.String getLabelsOrThrow(
       public static final int CONTENT_FIELD_NUMBER = 8;
       private com.google.cloud.asset.v1.SavedQuery.QueryContent content_;
       /**
    +   *
    +   *
        * 
        * The query content.
        * 
    * * .google.cloud.asset.v1.SavedQuery.QueryContent content = 8; + * * @return Whether the content field is set. */ @java.lang.Override @@ -1246,18 +1387,25 @@ public boolean hasContent() { return content_ != null; } /** + * + * *
        * The query content.
        * 
    * * .google.cloud.asset.v1.SavedQuery.QueryContent content = 8; + * * @return The content. */ @java.lang.Override public com.google.cloud.asset.v1.SavedQuery.QueryContent getContent() { - return content_ == null ? com.google.cloud.asset.v1.SavedQuery.QueryContent.getDefaultInstance() : content_; + return content_ == null + ? com.google.cloud.asset.v1.SavedQuery.QueryContent.getDefaultInstance() + : content_; } /** + * + * *
        * The query content.
        * 
    @@ -1270,6 +1418,7 @@ public com.google.cloud.asset.v1.SavedQuery.QueryContentOrBuilder getContentOrBu } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1281,8 +1430,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1301,12 +1449,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastUpdater_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, lastUpdater_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 7); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); if (content_ != null) { output.writeMessage(8, getContent()); } @@ -1326,32 +1470,29 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, creator_); } if (lastUpdateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getLastUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getLastUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastUpdater_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, lastUpdater_); } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, labels__); + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__); } if (content_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getContent()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getContent()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1361,37 +1502,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.SavedQuery)) { return super.equals(obj); } com.google.cloud.asset.v1.SavedQuery other = (com.google.cloud.asset.v1.SavedQuery) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } - if (!getCreator() - .equals(other.getCreator())) return false; + if (!getCreator().equals(other.getCreator())) return false; if (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; if (hasLastUpdateTime()) { - if (!getLastUpdateTime() - .equals(other.getLastUpdateTime())) return false; + if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; } - if (!getLastUpdater() - .equals(other.getLastUpdater())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!getLastUpdater().equals(other.getLastUpdater())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (hasContent() != other.hasContent()) return false; if (hasContent()) { - if (!getContent() - .equals(other.getContent())) return false; + if (!getContent().equals(other.getContent())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1433,152 +1566,155 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.SavedQuery parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.SavedQuery parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.SavedQuery parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.SavedQuery parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.asset.v1.SavedQuery parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.SavedQuery 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.asset.v1.SavedQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.SavedQuery parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.SavedQuery parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.SavedQuery parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.SavedQuery parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.SavedQuery parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.SavedQuery parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.SavedQuery parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.SavedQuery prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * A saved query which can be shared with others or used later.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.SavedQuery} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.SavedQuery) com.google.cloud.asset.v1.SavedQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SavedQuery_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SavedQuery_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 7: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 7: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SavedQuery_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SavedQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.SavedQuery.class, com.google.cloud.asset.v1.SavedQuery.Builder.class); + com.google.cloud.asset.v1.SavedQuery.class, + com.google.cloud.asset.v1.SavedQuery.Builder.class); } // Construct using com.google.cloud.asset.v1.SavedQuery.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1613,9 +1749,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SavedQuery_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SavedQuery_descriptor; } @java.lang.Override @@ -1665,38 +1801,39 @@ public com.google.cloud.asset.v1.SavedQuery buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.SavedQuery) { - return mergeFrom((com.google.cloud.asset.v1.SavedQuery)other); + return mergeFrom((com.google.cloud.asset.v1.SavedQuery) other); } else { super.mergeFrom(other); return this; @@ -1727,8 +1864,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1.SavedQuery other) { lastUpdater_ = other.lastUpdater_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.hasContent()) { mergeContent(other.getContent()); } @@ -1758,61 +1894,66 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); + case 10: + { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - description_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - case 34: { - creator_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + creator_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: { - input.readMessage( - getLastUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 34 + case 42: + { + input.readMessage(getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 42 - case 50: { - lastUpdater_ = input.readStringRequireUtf8(); + break; + } // case 42 + case 50: + { + lastUpdater_ = input.readStringRequireUtf8(); - break; - } // case 50 - case 58: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 58 - case 66: { - input.readMessage( - getContentFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 58 + case 66: + { + input.readMessage(getContentFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1822,10 +1963,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
          * The resource name of the saved query. The format must be:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -1834,13 +1978,13 @@ public Builder mergeFrom(
          * 
    * * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1849,6 +1993,8 @@ public java.lang.String getName() { } } /** + * + * *
          * The resource name of the saved query. The format must be:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -1857,15 +2003,14 @@ public java.lang.String getName() {
          * 
    * * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1873,6 +2018,8 @@ public java.lang.String getName() { } } /** + * + * *
          * The resource name of the saved query. The format must be:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -1881,20 +2028,22 @@ public java.lang.String getName() {
          * 
    * * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
          * The resource name of the saved query. The format must be:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -1903,15 +2052,18 @@ public Builder setName(
          * 
    * * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
          * The resource name of the saved query. The format must be:
          * * projects/project_number/savedQueries/saved_query_id
    @@ -1920,16 +2072,16 @@ public Builder clearName() {
          * 
    * * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1937,19 +2089,21 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
          * The description of this saved query. This value should be fewer than 255
          * characters.
          * 
    * * string description = 2; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1958,21 +2112,22 @@ public java.lang.String getDescription() { } } /** + * + * *
          * The description of this saved query. This value should be fewer than 255
          * characters.
          * 
    * * string description = 2; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1980,57 +2135,64 @@ public java.lang.String getDescription() { } } /** + * + * *
          * The description of this saved query. This value should be fewer than 255
          * characters.
          * 
    * * string description = 2; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
          * The description of this saved query. This value should be fewer than 255
          * characters.
          * 
    * * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
          * The description of this saved query. This value should be fewer than 255
          * characters.
          * 
    * * string description = 2; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2038,39 +2200,58 @@ public Builder setDescriptionBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
          * Output only. The create time of this saved query.
          * 
    * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
          * Output only. The create time of this saved query.
          * 
    * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
          * Output only. The create time of this saved query.
          * 
    * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2086,14 +2267,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * Output only. The create time of this saved query.
          * 
    * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2104,17 +2288,21 @@ public Builder setCreateTime( return this; } /** + * + * *
          * Output only. The create time of this saved query.
          * 
    * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2126,11 +2314,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * Output only. The create time of this saved query.
          * 
    * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2144,48 +2336,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
          * Output only. The create time of this saved query.
          * 
    * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
          * Output only. The create time of this saved query.
          * 
    * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
          * Output only. The create time of this saved query.
          * 
    * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2193,18 +2401,20 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private java.lang.Object creator_ = ""; /** + * + * *
          * Output only. The account's email address who has created this saved query.
          * 
    * * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The creator. */ public java.lang.String getCreator() { java.lang.Object ref = creator_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); creator_ = s; return s; @@ -2213,20 +2423,21 @@ public java.lang.String getCreator() { } } /** + * + * *
          * Output only. The account's email address who has created this saved query.
          * 
    * * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for creator. */ - public com.google.protobuf.ByteString - getCreatorBytes() { + public com.google.protobuf.ByteString getCreatorBytes() { java.lang.Object ref = creator_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); creator_ = b; return b; } else { @@ -2234,54 +2445,61 @@ public java.lang.String getCreator() { } } /** + * + * *
          * Output only. The account's email address who has created this saved query.
          * 
    * * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The creator to set. * @return This builder for chaining. */ - public Builder setCreator( - java.lang.String value) { + public Builder setCreator(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + creator_ = value; onChanged(); return this; } /** + * + * *
          * Output only. The account's email address who has created this saved query.
          * 
    * * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCreator() { - + creator_ = getDefaultInstance().getCreator(); onChanged(); return this; } /** + * + * *
          * Output only. The account's email address who has created this saved query.
          * 
    * * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for creator to set. * @return This builder for chaining. */ - public Builder setCreatorBytes( - com.google.protobuf.ByteString value) { + public Builder setCreatorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + creator_ = value; onChanged(); return this; @@ -2289,39 +2507,58 @@ public Builder setCreatorBytes( private com.google.protobuf.Timestamp lastUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastUpdateTimeBuilder_; /** + * + * *
          * Output only. The last update time of this saved query.
          * 
    * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { return lastUpdateTimeBuilder_ != null || lastUpdateTime_ != null; } /** + * + * *
          * Output only. The last update time of this saved query.
          * 
    * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lastUpdateTime. */ public com.google.protobuf.Timestamp getLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } else { return lastUpdateTimeBuilder_.getMessage(); } } /** + * + * *
          * Output only. The last update time of this saved query.
          * 
    * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { @@ -2337,14 +2574,17 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * Output only. The last update time of this saved query.
          * 
    * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setLastUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); onChanged(); @@ -2355,17 +2595,23 @@ public Builder setLastUpdateTime( return this; } /** + * + * *
          * Output only. The last update time of this saved query.
          * 
    * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { if (lastUpdateTime_ != null) { lastUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_) + .mergeFrom(value) + .buildPartial(); } else { lastUpdateTime_ = value; } @@ -2377,11 +2623,15 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * Output only. The last update time of this saved query.
          * 
    * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { @@ -2395,48 +2645,64 @@ public Builder clearLastUpdateTime() { return this; } /** + * + * *
          * Output only. The last update time of this saved query.
          * 
    * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { - + onChanged(); return getLastUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
          * Output only. The last update time of this saved query.
          * 
    * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { if (lastUpdateTimeBuilder_ != null) { return lastUpdateTimeBuilder_.getMessageOrBuilder(); } else { - return lastUpdateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } } /** + * + * *
          * Output only. The last update time of this saved query.
          * 
    * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getLastUpdateTimeFieldBuilder() { if (lastUpdateTimeBuilder_ == null) { - lastUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLastUpdateTime(), - getParentForChildren(), - isClean()); + lastUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastUpdateTime(), getParentForChildren(), isClean()); lastUpdateTime_ = null; } return lastUpdateTimeBuilder_; @@ -2444,18 +2710,20 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { private java.lang.Object lastUpdater_ = ""; /** + * + * *
          * Output only. The account's email address who has updated this saved query most recently.
          * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The lastUpdater. */ public java.lang.String getLastUpdater() { java.lang.Object ref = lastUpdater_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastUpdater_ = s; return s; @@ -2464,20 +2732,21 @@ public java.lang.String getLastUpdater() { } } /** + * + * *
          * Output only. The account's email address who has updated this saved query most recently.
          * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for lastUpdater. */ - public com.google.protobuf.ByteString - getLastUpdaterBytes() { + public com.google.protobuf.ByteString getLastUpdaterBytes() { java.lang.Object ref = lastUpdater_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lastUpdater_ = b; return b; } else { @@ -2485,75 +2754,81 @@ public java.lang.String getLastUpdater() { } } /** + * + * *
          * Output only. The account's email address who has updated this saved query most recently.
          * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The lastUpdater to set. * @return This builder for chaining. */ - public Builder setLastUpdater( - java.lang.String value) { + public Builder setLastUpdater(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + lastUpdater_ = value; onChanged(); return this; } /** + * + * *
          * Output only. The account's email address who has updated this saved query most recently.
          * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLastUpdater() { - + lastUpdater_ = getDefaultInstance().getLastUpdater(); onChanged(); return this; } /** + * + * *
          * Output only. The account's email address who has updated this saved query most recently.
          * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for lastUpdater to set. * @return This builder for chaining. */ - public Builder setLastUpdaterBytes( - com.google.protobuf.ByteString value) { + public Builder setLastUpdaterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lastUpdater_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2565,6 +2840,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
          * Labels applied on the resource.
          * This value should not contain more than 10 entries. The key and value of
    @@ -2573,22 +2850,22 @@ public int getLabelsCount() {
          *
          * map<string, string> labels = 7;
          */
    -
         @java.lang.Override
    -    public boolean containsLabels(
    -        java.lang.String key) {
    -      if (key == null) { throw new NullPointerException("map key"); }
    +    public boolean containsLabels(java.lang.String key) {
    +      if (key == null) {
    +        throw new NullPointerException("map key");
    +      }
           return internalGetLabels().getMap().containsKey(key);
         }
    -    /**
    -     * Use {@link #getLabelsMap()} instead.
    -     */
    +    /** Use {@link #getLabelsMap()} instead. */
         @java.lang.Override
         @java.lang.Deprecated
         public java.util.Map getLabels() {
           return getLabelsMap();
         }
         /**
    +     *
    +     *
          * 
          * Labels applied on the resource.
          * This value should not contain more than 10 entries. The key and value of
    @@ -2598,11 +2875,12 @@ public java.util.Map getLabels() {
          * map<string, string> labels = 7;
          */
         @java.lang.Override
    -
         public java.util.Map getLabelsMap() {
           return internalGetLabels().getMap();
         }
         /**
    +     *
    +     *
          * 
          * Labels applied on the resource.
          * This value should not contain more than 10 entries. The key and value of
    @@ -2612,16 +2890,17 @@ public java.util.Map getLabelsMap() {
          * map<string, string> labels = 7;
          */
         @java.lang.Override
    -
         public java.lang.String getLabelsOrDefault(
    -        java.lang.String key,
    -        java.lang.String defaultValue) {
    -      if (key == null) { throw new NullPointerException("map key"); }
    -      java.util.Map map =
    -          internalGetLabels().getMap();
    +        java.lang.String key, java.lang.String defaultValue) {
    +      if (key == null) {
    +        throw new NullPointerException("map key");
    +      }
    +      java.util.Map map = internalGetLabels().getMap();
           return map.containsKey(key) ? map.get(key) : defaultValue;
         }
         /**
    +     *
    +     *
          * 
          * Labels applied on the resource.
          * This value should not contain more than 10 entries. The key and value of
    @@ -2631,12 +2910,11 @@ public java.lang.String getLabelsOrDefault(
          * map<string, string> labels = 7;
          */
         @java.lang.Override
    -
    -    public java.lang.String getLabelsOrThrow(
    -        java.lang.String key) {
    -      if (key == null) { throw new NullPointerException("map key"); }
    -      java.util.Map map =
    -          internalGetLabels().getMap();
    +    public java.lang.String getLabelsOrThrow(java.lang.String key) {
    +      if (key == null) {
    +        throw new NullPointerException("map key");
    +      }
    +      java.util.Map map = internalGetLabels().getMap();
           if (!map.containsKey(key)) {
             throw new java.lang.IllegalArgumentException();
           }
    @@ -2644,11 +2922,12 @@ public java.lang.String getLabelsOrThrow(
         }
     
         public Builder clearLabels() {
    -      internalGetMutableLabels().getMutableMap()
    -          .clear();
    +      internalGetMutableLabels().getMutableMap().clear();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Labels applied on the resource.
          * This value should not contain more than 10 entries. The key and value of
    @@ -2657,23 +2936,21 @@ public Builder clearLabels() {
          *
          * map<string, string> labels = 7;
          */
    -
    -    public Builder removeLabels(
    -        java.lang.String key) {
    -      if (key == null) { throw new NullPointerException("map key"); }
    -      internalGetMutableLabels().getMutableMap()
    -          .remove(key);
    +    public Builder removeLabels(java.lang.String key) {
    +      if (key == null) {
    +        throw new NullPointerException("map key");
    +      }
    +      internalGetMutableLabels().getMutableMap().remove(key);
           return this;
         }
    -    /**
    -     * Use alternate mutation accessors instead.
    -     */
    +    /** Use alternate mutation accessors instead. */
         @java.lang.Deprecated
    -    public java.util.Map
    -    getMutableLabels() {
    +    public java.util.Map getMutableLabels() {
           return internalGetMutableLabels().getMutableMap();
         }
         /**
    +     *
    +     *
          * 
          * Labels applied on the resource.
          * This value should not contain more than 10 entries. The key and value of
    @@ -2682,19 +2959,20 @@ public Builder removeLabels(
          *
          * map<string, string> labels = 7;
          */
    -    public Builder putLabels(
    -        java.lang.String key,
    -        java.lang.String value) {
    -      if (key == null) { throw new NullPointerException("map key"); }
    +    public Builder putLabels(java.lang.String key, java.lang.String value) {
    +      if (key == null) {
    +        throw new NullPointerException("map key");
    +      }
           if (value == null) {
    -  throw new NullPointerException("map value");
    -}
    +        throw new NullPointerException("map value");
    +      }
     
    -      internalGetMutableLabels().getMutableMap()
    -          .put(key, value);
    +      internalGetMutableLabels().getMutableMap().put(key, value);
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Labels applied on the resource.
          * This value should not contain more than 10 entries. The key and value of
    @@ -2703,44 +2981,54 @@ public Builder putLabels(
          *
          * map<string, string> labels = 7;
          */
    -
    -    public Builder putAllLabels(
    -        java.util.Map values) {
    -      internalGetMutableLabels().getMutableMap()
    -          .putAll(values);
    +    public Builder putAllLabels(java.util.Map values) {
    +      internalGetMutableLabels().getMutableMap().putAll(values);
           return this;
         }
     
         private com.google.cloud.asset.v1.SavedQuery.QueryContent content_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1.SavedQuery.QueryContent, com.google.cloud.asset.v1.SavedQuery.QueryContent.Builder, com.google.cloud.asset.v1.SavedQuery.QueryContentOrBuilder> contentBuilder_;
    +            com.google.cloud.asset.v1.SavedQuery.QueryContent,
    +            com.google.cloud.asset.v1.SavedQuery.QueryContent.Builder,
    +            com.google.cloud.asset.v1.SavedQuery.QueryContentOrBuilder>
    +        contentBuilder_;
         /**
    +     *
    +     *
          * 
          * The query content.
          * 
    * * .google.cloud.asset.v1.SavedQuery.QueryContent content = 8; + * * @return Whether the content field is set. */ public boolean hasContent() { return contentBuilder_ != null || content_ != null; } /** + * + * *
          * The query content.
          * 
    * * .google.cloud.asset.v1.SavedQuery.QueryContent content = 8; + * * @return The content. */ public com.google.cloud.asset.v1.SavedQuery.QueryContent getContent() { if (contentBuilder_ == null) { - return content_ == null ? com.google.cloud.asset.v1.SavedQuery.QueryContent.getDefaultInstance() : content_; + return content_ == null + ? com.google.cloud.asset.v1.SavedQuery.QueryContent.getDefaultInstance() + : content_; } else { return contentBuilder_.getMessage(); } } /** + * + * *
          * The query content.
          * 
    @@ -2761,6 +3049,8 @@ public Builder setContent(com.google.cloud.asset.v1.SavedQuery.QueryContent valu return this; } /** + * + * *
          * The query content.
          * 
    @@ -2779,6 +3069,8 @@ public Builder setContent( return this; } /** + * + * *
          * The query content.
          * 
    @@ -2789,7 +3081,9 @@ public Builder mergeContent(com.google.cloud.asset.v1.SavedQuery.QueryContent va if (contentBuilder_ == null) { if (content_ != null) { content_ = - com.google.cloud.asset.v1.SavedQuery.QueryContent.newBuilder(content_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.SavedQuery.QueryContent.newBuilder(content_) + .mergeFrom(value) + .buildPartial(); } else { content_ = value; } @@ -2801,6 +3095,8 @@ public Builder mergeContent(com.google.cloud.asset.v1.SavedQuery.QueryContent va return this; } /** + * + * *
          * The query content.
          * 
    @@ -2819,6 +3115,8 @@ public Builder clearContent() { return this; } /** + * + * *
          * The query content.
          * 
    @@ -2826,11 +3124,13 @@ public Builder clearContent() { * .google.cloud.asset.v1.SavedQuery.QueryContent content = 8; */ public com.google.cloud.asset.v1.SavedQuery.QueryContent.Builder getContentBuilder() { - + onChanged(); return getContentFieldBuilder().getBuilder(); } /** + * + * *
          * The query content.
          * 
    @@ -2841,11 +3141,14 @@ public com.google.cloud.asset.v1.SavedQuery.QueryContentOrBuilder getContentOrBu if (contentBuilder_ != null) { return contentBuilder_.getMessageOrBuilder(); } else { - return content_ == null ? - com.google.cloud.asset.v1.SavedQuery.QueryContent.getDefaultInstance() : content_; + return content_ == null + ? com.google.cloud.asset.v1.SavedQuery.QueryContent.getDefaultInstance() + : content_; } } /** + * + * *
          * The query content.
          * 
    @@ -2853,21 +3156,24 @@ public com.google.cloud.asset.v1.SavedQuery.QueryContentOrBuilder getContentOrBu * .google.cloud.asset.v1.SavedQuery.QueryContent content = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.SavedQuery.QueryContent, com.google.cloud.asset.v1.SavedQuery.QueryContent.Builder, com.google.cloud.asset.v1.SavedQuery.QueryContentOrBuilder> + com.google.cloud.asset.v1.SavedQuery.QueryContent, + com.google.cloud.asset.v1.SavedQuery.QueryContent.Builder, + com.google.cloud.asset.v1.SavedQuery.QueryContentOrBuilder> getContentFieldBuilder() { if (contentBuilder_ == null) { - contentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.SavedQuery.QueryContent, com.google.cloud.asset.v1.SavedQuery.QueryContent.Builder, com.google.cloud.asset.v1.SavedQuery.QueryContentOrBuilder>( - getContent(), - getParentForChildren(), - isClean()); + contentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.SavedQuery.QueryContent, + com.google.cloud.asset.v1.SavedQuery.QueryContent.Builder, + com.google.cloud.asset.v1.SavedQuery.QueryContentOrBuilder>( + getContent(), getParentForChildren(), isClean()); content_ = null; } return contentBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2877,12 +3183,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.SavedQuery) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.SavedQuery) private static final com.google.cloud.asset.v1.SavedQuery DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.SavedQuery(); } @@ -2891,27 +3197,27 @@ public static com.google.cloud.asset.v1.SavedQuery getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SavedQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SavedQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2926,6 +3232,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.SavedQuery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryName.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryName.java similarity index 100% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryName.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryName.java diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryOrBuilder.java similarity index 74% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryOrBuilder.java index 97c8fd013f74..47d332806297 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQueryOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface SavedQueryOrBuilder extends +public interface SavedQueryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.SavedQuery) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The resource name of the saved query. The format must be:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -16,10 +34,13 @@ public interface SavedQueryOrBuilder extends
        * 
    * * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
        * The resource name of the saved query. The format must be:
        * * projects/project_number/savedQueries/saved_query_id
    @@ -28,128 +49,170 @@ public interface SavedQueryOrBuilder extends
        * 
    * * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
        * The description of this saved query. This value should be fewer than 255
        * characters.
        * 
    * * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
        * The description of this saved query. This value should be fewer than 255
        * characters.
        * 
    * * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
        * Output only. The create time of this saved query.
        * 
    * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
        * Output only. The create time of this saved query.
        * 
    * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
        * Output only. The create time of this saved query.
        * 
    * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
        * Output only. The account's email address who has created this saved query.
        * 
    * * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The creator. */ java.lang.String getCreator(); /** + * + * *
        * Output only. The account's email address who has created this saved query.
        * 
    * * string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for creator. */ - com.google.protobuf.ByteString - getCreatorBytes(); + com.google.protobuf.ByteString getCreatorBytes(); /** + * + * *
        * Output only. The last update time of this saved query.
        * 
    * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the lastUpdateTime field is set. */ boolean hasLastUpdateTime(); /** + * + * *
        * Output only. The last update time of this saved query.
        * 
    * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lastUpdateTime. */ com.google.protobuf.Timestamp getLastUpdateTime(); /** + * + * *
        * Output only. The last update time of this saved query.
        * 
    * - * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); /** + * + * *
        * Output only. The account's email address who has updated this saved query most recently.
        * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The lastUpdater. */ java.lang.String getLastUpdater(); /** + * + * *
        * Output only. The account's email address who has updated this saved query most recently.
        * 
    * * string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for lastUpdater. */ - com.google.protobuf.ByteString - getLastUpdaterBytes(); + com.google.protobuf.ByteString getLastUpdaterBytes(); /** + * + * *
        * Labels applied on the resource.
        * This value should not contain more than 10 entries. The key and value of
    @@ -160,6 +223,8 @@ public interface SavedQueryOrBuilder extends
        */
       int getLabelsCount();
       /**
    +   *
    +   *
        * 
        * Labels applied on the resource.
        * This value should not contain more than 10 entries. The key and value of
    @@ -168,15 +233,13 @@ public interface SavedQueryOrBuilder extends
        *
        * map<string, string> labels = 7;
        */
    -  boolean containsLabels(
    -      java.lang.String key);
    -  /**
    -   * Use {@link #getLabelsMap()} instead.
    -   */
    +  boolean containsLabels(java.lang.String key);
    +  /** Use {@link #getLabelsMap()} instead. */
       @java.lang.Deprecated
    -  java.util.Map
    -  getLabels();
    +  java.util.Map getLabels();
       /**
    +   *
    +   *
        * 
        * Labels applied on the resource.
        * This value should not contain more than 10 entries. The key and value of
    @@ -185,9 +248,10 @@ boolean containsLabels(
        *
        * map<string, string> labels = 7;
        */
    -  java.util.Map
    -  getLabelsMap();
    +  java.util.Map getLabelsMap();
       /**
    +   *
    +   *
        * 
        * Labels applied on the resource.
        * This value should not contain more than 10 entries. The key and value of
    @@ -198,11 +262,13 @@ boolean containsLabels(
        */
     
       /* nullable */
    -java.lang.String getLabelsOrDefault(
    +  java.lang.String getLabelsOrDefault(
           java.lang.String key,
           /* nullable */
    -java.lang.String defaultValue);
    +      java.lang.String defaultValue);
       /**
    +   *
    +   *
        * 
        * Labels applied on the resource.
        * This value should not contain more than 10 entries. The key and value of
    @@ -211,29 +277,35 @@ java.lang.String getLabelsOrDefault(
        *
        * map<string, string> labels = 7;
        */
    -
    -  java.lang.String getLabelsOrThrow(
    -      java.lang.String key);
    +  java.lang.String getLabelsOrThrow(java.lang.String key);
     
       /**
    +   *
    +   *
        * 
        * The query content.
        * 
    * * .google.cloud.asset.v1.SavedQuery.QueryContent content = 8; + * * @return Whether the content field is set. */ boolean hasContent(); /** + * + * *
        * The query content.
        * 
    * * .google.cloud.asset.v1.SavedQuery.QueryContent content = 8; + * * @return The content. */ com.google.cloud.asset.v1.SavedQuery.QueryContent getContent(); /** + * + * *
        * The query content.
        * 
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequest.java similarity index 85% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequest.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequest.java index 91dfb794319b..6395b1ceddd7 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * Search all IAM policies request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.SearchAllIamPoliciesRequest} */ -public final class SearchAllIamPoliciesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SearchAllIamPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.SearchAllIamPoliciesRequest) SearchAllIamPoliciesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SearchAllIamPoliciesRequest.newBuilder() to construct. private SearchAllIamPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SearchAllIamPoliciesRequest() { scope_ = ""; query_ = ""; @@ -29,32 +47,35 @@ private SearchAllIamPoliciesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SearchAllIamPoliciesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.class, com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.Builder.class); + com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.class, + com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.Builder.class); } public static final int SCOPE_FIELD_NUMBER = 1; private volatile java.lang.Object scope_; /** + * + * *
        * Required. A scope can be a project, a folder, or an organization. The search is
        * limited to the IAM policies within the `scope`. The caller must be granted
    @@ -69,6 +90,7 @@ protected java.lang.Object newInstance(
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The scope. */ @java.lang.Override @@ -77,14 +99,15 @@ public java.lang.String getScope() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; } } /** + * + * *
        * Required. A scope can be a project, a folder, or an organization. The search is
        * limited to the IAM policies within the `scope`. The caller must be granted
    @@ -99,16 +122,15 @@ public java.lang.String getScope() {
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for scope. */ @java.lang.Override - public com.google.protobuf.ByteString - getScopeBytes() { + public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); scope_ = b; return b; } else { @@ -119,6 +141,8 @@ public java.lang.String getScope() { public static final int QUERY_FIELD_NUMBER = 2; private volatile java.lang.Object query_; /** + * + * *
        * Optional. The query statement. See [how to construct a
        * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
    @@ -163,6 +187,7 @@ public java.lang.String getScope() {
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The query. */ @java.lang.Override @@ -171,14 +196,15 @@ public java.lang.String getQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } } /** + * + * *
        * Optional. The query statement. See [how to construct a
        * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
    @@ -223,16 +249,15 @@ public java.lang.String getQuery() {
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for query. */ @java.lang.Override - public com.google.protobuf.ByteString - getQueryBytes() { + public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); query_ = b; return b; } else { @@ -243,6 +268,8 @@ public java.lang.String getQuery() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
        * Optional. The page size for search result pagination. Page size is capped at 500 even
        * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -251,6 +278,7 @@ public java.lang.String getQuery() {
        * 
    * * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -261,6 +289,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** + * + * *
        * Optional. If present, retrieve the next batch of results from the preceding call to
        * this method. `page_token` must be the value of `next_page_token` from the
    @@ -269,6 +299,7 @@ public int getPageSize() {
        * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -277,14 +308,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
        * Optional. If present, retrieve the next batch of results from the preceding call to
        * this method. `page_token` must be the value of `next_page_token` from the
    @@ -293,16 +325,15 @@ public java.lang.String getPageToken() {
        * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -313,6 +344,8 @@ public java.lang.String getPageToken() { public static final int ASSET_TYPES_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList assetTypes_; /** + * + * *
        * Optional. A list of asset types that the IAM policies are attached to. If empty, it
        * will search the IAM policies that are attached to all the [searchable asset
    @@ -330,13 +363,15 @@ public java.lang.String getPageToken() {
        * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList - getAssetTypesList() { + public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_; } /** + * + * *
        * Optional. A list of asset types that the IAM policies are attached to. If empty, it
        * will search the IAM policies that are attached to all the [searchable asset
    @@ -354,12 +389,15 @@ public java.lang.String getPageToken() {
        * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** + * + * *
        * Optional. A list of asset types that the IAM policies are attached to. If empty, it
        * will search the IAM policies that are attached to all the [searchable asset
    @@ -377,6 +415,7 @@ public int getAssetTypesCount() {
        * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -384,6 +423,8 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** + * + * *
        * Optional. A list of asset types that the IAM policies are attached to. If empty, it
        * will search the IAM policies that are attached to all the [searchable asset
    @@ -401,17 +442,19 @@ public java.lang.String getAssetTypes(int index) {
        * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString - getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } public static final int ORDER_BY_FIELD_NUMBER = 7; private volatile java.lang.Object orderBy_; /** + * + * *
        * Optional. A comma-separated list of fields specifying the sorting order of the
        * results. The default order is ascending. Add " DESC" after the field name
    @@ -426,6 +469,7 @@ public java.lang.String getAssetTypes(int index) {
        * 
    * * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ @java.lang.Override @@ -434,14 +478,15 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
        * Optional. A comma-separated list of fields specifying the sorting order of the
        * results. The default order is ascending. Add " DESC" after the field name
    @@ -456,16 +501,15 @@ public java.lang.String getOrderBy() {
        * 
    * * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -474,6 +518,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -485,8 +530,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scope_); } @@ -521,8 +565,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, query_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -546,25 +589,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.SearchAllIamPoliciesRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.SearchAllIamPoliciesRequest other = (com.google.cloud.asset.v1.SearchAllIamPoliciesRequest) obj; - - if (!getScope() - .equals(other.getScope())) return false; - if (!getQuery() - .equals(other.getQuery())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getAssetTypesList() - .equals(other.getAssetTypesList())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.asset.v1.SearchAllIamPoliciesRequest other = + (com.google.cloud.asset.v1.SearchAllIamPoliciesRequest) obj; + + if (!getScope().equals(other.getScope())) return false; + if (!getQuery().equals(other.getQuery())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getAssetTypesList().equals(other.getAssetTypesList())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -596,129 +634,136 @@ public int hashCode() { } public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest 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.asset.v1.SearchAllIamPoliciesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.SearchAllIamPoliciesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.SearchAllIamPoliciesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Search all IAM policies request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.SearchAllIamPoliciesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.SearchAllIamPoliciesRequest) com.google.cloud.asset.v1.SearchAllIamPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.class, com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.Builder.class); + com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.class, + com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -738,9 +783,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor; } @java.lang.Override @@ -759,7 +804,8 @@ public com.google.cloud.asset.v1.SearchAllIamPoliciesRequest build() { @java.lang.Override public com.google.cloud.asset.v1.SearchAllIamPoliciesRequest buildPartial() { - com.google.cloud.asset.v1.SearchAllIamPoliciesRequest result = new com.google.cloud.asset.v1.SearchAllIamPoliciesRequest(this); + com.google.cloud.asset.v1.SearchAllIamPoliciesRequest result = + new com.google.cloud.asset.v1.SearchAllIamPoliciesRequest(this); int from_bitField0_ = bitField0_; result.scope_ = scope_; result.query_ = query_; @@ -779,38 +825,39 @@ public com.google.cloud.asset.v1.SearchAllIamPoliciesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.SearchAllIamPoliciesRequest) { - return mergeFrom((com.google.cloud.asset.v1.SearchAllIamPoliciesRequest)other); + return mergeFrom((com.google.cloud.asset.v1.SearchAllIamPoliciesRequest) other); } else { super.mergeFrom(other); return this; @@ -818,7 +865,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.SearchAllIamPoliciesRequest other) { - if (other == com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.getDefaultInstance()) + return this; if (!other.getScope().isEmpty()) { scope_ = other.scope_; onChanged(); @@ -874,43 +922,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - scope_ = input.readStringRequireUtf8(); + case 10: + { + scope_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - query_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + query_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); - break; - } // case 24 - case 34: { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAssetTypesIsMutable(); - assetTypes_.add(s); - break; - } // case 42 - case 58: { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAssetTypesIsMutable(); + assetTypes_.add(s); + break; + } // case 42 + case 58: + { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -920,10 +975,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object scope_ = ""; /** + * + * *
          * Required. A scope can be a project, a folder, or an organization. The search is
          * limited to the IAM policies within the `scope`. The caller must be granted
    @@ -938,13 +996,13 @@ public Builder mergeFrom(
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The scope. */ public java.lang.String getScope() { java.lang.Object ref = scope_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; @@ -953,6 +1011,8 @@ public java.lang.String getScope() { } } /** + * + * *
          * Required. A scope can be a project, a folder, or an organization. The search is
          * limited to the IAM policies within the `scope`. The caller must be granted
    @@ -967,15 +1027,14 @@ public java.lang.String getScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for scope. */ - public com.google.protobuf.ByteString - getScopeBytes() { + public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); scope_ = b; return b; } else { @@ -983,6 +1042,8 @@ public java.lang.String getScope() { } } /** + * + * *
          * Required. A scope can be a project, a folder, or an organization. The search is
          * limited to the IAM policies within the `scope`. The caller must be granted
    @@ -997,20 +1058,22 @@ public java.lang.String getScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The scope to set. * @return This builder for chaining. */ - public Builder setScope( - java.lang.String value) { + public Builder setScope(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + scope_ = value; onChanged(); return this; } /** + * + * *
          * Required. A scope can be a project, a folder, or an organization. The search is
          * limited to the IAM policies within the `scope`. The caller must be granted
    @@ -1025,15 +1088,18 @@ public Builder setScope(
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearScope() { - + scope_ = getDefaultInstance().getScope(); onChanged(); return this; } /** + * + * *
          * Required. A scope can be a project, a folder, or an organization. The search is
          * limited to the IAM policies within the `scope`. The caller must be granted
    @@ -1048,16 +1114,16 @@ public Builder clearScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for scope to set. * @return This builder for chaining. */ - public Builder setScopeBytes( - com.google.protobuf.ByteString value) { + public Builder setScopeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scope_ = value; onChanged(); return this; @@ -1065,6 +1131,8 @@ public Builder setScopeBytes( private java.lang.Object query_ = ""; /** + * + * *
          * Optional. The query statement. See [how to construct a
          * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
    @@ -1109,13 +1177,13 @@ public Builder setScopeBytes(
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; @@ -1124,6 +1192,8 @@ public java.lang.String getQuery() { } } /** + * + * *
          * Optional. The query statement. See [how to construct a
          * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
    @@ -1168,15 +1238,14 @@ public java.lang.String getQuery() {
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for query. */ - public com.google.protobuf.ByteString - getQueryBytes() { + public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); query_ = b; return b; } else { @@ -1184,6 +1253,8 @@ public java.lang.String getQuery() { } } /** + * + * *
          * Optional. The query statement. See [how to construct a
          * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
    @@ -1228,20 +1299,22 @@ public java.lang.String getQuery() {
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The query to set. * @return This builder for chaining. */ - public Builder setQuery( - java.lang.String value) { + public Builder setQuery(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + query_ = value; onChanged(); return this; } /** + * + * *
          * Optional. The query statement. See [how to construct a
          * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
    @@ -1286,15 +1359,18 @@ public Builder setQuery(
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearQuery() { - + query_ = getDefaultInstance().getQuery(); onChanged(); return this; } /** + * + * *
          * Optional. The query statement. See [how to construct a
          * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
    @@ -1339,23 +1415,25 @@ public Builder clearQuery() {
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for query to set. * @return This builder for chaining. */ - public Builder setQueryBytes( - com.google.protobuf.ByteString value) { + public Builder setQueryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
          * Optional. The page size for search result pagination. Page size is capped at 500 even
          * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -1364,6 +1442,7 @@ public Builder setQueryBytes(
          * 
    * * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -1371,6 +1450,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
          * Optional. The page size for search result pagination. Page size is capped at 500 even
          * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -1379,16 +1460,19 @@ public int getPageSize() {
          * 
    * * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
          * Optional. The page size for search result pagination. Page size is capped at 500 even
          * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -1397,10 +1481,11 @@ public Builder setPageSize(int value) {
          * 
    * * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1408,6 +1493,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
          * Optional. If present, retrieve the next batch of results from the preceding call to
          * this method. `page_token` must be the value of `next_page_token` from the
    @@ -1416,13 +1503,13 @@ public Builder clearPageSize() {
          * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1431,6 +1518,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
          * Optional. If present, retrieve the next batch of results from the preceding call to
          * this method. `page_token` must be the value of `next_page_token` from the
    @@ -1439,15 +1528,14 @@ public java.lang.String getPageToken() {
          * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1455,6 +1543,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
          * Optional. If present, retrieve the next batch of results from the preceding call to
          * this method. `page_token` must be the value of `next_page_token` from the
    @@ -1463,20 +1553,22 @@ public java.lang.String getPageToken() {
          * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
          * Optional. If present, retrieve the next batch of results from the preceding call to
          * this method. `page_token` must be the value of `next_page_token` from the
    @@ -1485,15 +1577,18 @@ public Builder setPageToken(
          * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
          * Optional. If present, retrieve the next batch of results from the preceding call to
          * this method. `page_token` must be the value of `next_page_token` from the
    @@ -1502,29 +1597,33 @@ public Builder clearPageToken() {
          * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList assetTypes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAssetTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assetTypes_ = new com.google.protobuf.LazyStringArrayList(assetTypes_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
          * Optional. A list of asset types that the IAM policies are attached to. If empty, it
          * will search the IAM policies that are attached to all the [searchable asset
    @@ -1542,13 +1641,15 @@ private void ensureAssetTypesIsMutable() {
          * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList - getAssetTypesList() { + public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_.getUnmodifiableView(); } /** + * + * *
          * Optional. A list of asset types that the IAM policies are attached to. If empty, it
          * will search the IAM policies that are attached to all the [searchable asset
    @@ -1566,12 +1667,15 @@ private void ensureAssetTypesIsMutable() {
          * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** + * + * *
          * Optional. A list of asset types that the IAM policies are attached to. If empty, it
          * will search the IAM policies that are attached to all the [searchable asset
    @@ -1589,6 +1693,7 @@ public int getAssetTypesCount() {
          * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -1596,6 +1701,8 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** + * + * *
          * Optional. A list of asset types that the IAM policies are attached to. If empty, it
          * will search the IAM policies that are attached to all the [searchable asset
    @@ -1613,14 +1720,16 @@ public java.lang.String getAssetTypes(int index) {
          * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString - getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } /** + * + * *
          * Optional. A list of asset types that the IAM policies are attached to. If empty, it
          * will search the IAM policies that are attached to all the [searchable asset
    @@ -1638,21 +1747,23 @@ public java.lang.String getAssetTypes(int index) {
          * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The assetTypes to set. * @return This builder for chaining. */ - public Builder setAssetTypes( - int index, java.lang.String value) { + public Builder setAssetTypes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.set(index, value); onChanged(); return this; } /** + * + * *
          * Optional. A list of asset types that the IAM policies are attached to. If empty, it
          * will search the IAM policies that are attached to all the [searchable asset
    @@ -1670,20 +1781,22 @@ public Builder setAssetTypes(
          * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypes( - java.lang.String value) { + public Builder addAssetTypes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); return this; } /** + * + * *
          * Optional. A list of asset types that the IAM policies are attached to. If empty, it
          * will search the IAM policies that are attached to all the [searchable asset
    @@ -1701,18 +1814,19 @@ public Builder addAssetTypes(
          * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The assetTypes to add. * @return This builder for chaining. */ - public Builder addAllAssetTypes( - java.lang.Iterable values) { + public Builder addAllAssetTypes(java.lang.Iterable values) { ensureAssetTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, assetTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetTypes_); onChanged(); return this; } /** + * + * *
          * Optional. A list of asset types that the IAM policies are attached to. If empty, it
          * will search the IAM policies that are attached to all the [searchable asset
    @@ -1730,6 +1844,7 @@ public Builder addAllAssetTypes(
          * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1739,6 +1854,8 @@ public Builder clearAssetTypes() { return this; } /** + * + * *
          * Optional. A list of asset types that the IAM policies are attached to. If empty, it
          * will search the IAM policies that are attached to all the [searchable asset
    @@ -1756,15 +1873,15 @@ public Builder clearAssetTypes() {
          * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypesBytes( - com.google.protobuf.ByteString value) { + public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); @@ -1773,6 +1890,8 @@ public Builder addAssetTypesBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
          * Optional. A comma-separated list of fields specifying the sorting order of the
          * results. The default order is ascending. Add " DESC" after the field name
    @@ -1787,13 +1906,13 @@ public Builder addAssetTypesBytes(
          * 
    * * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1802,6 +1921,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
          * Optional. A comma-separated list of fields specifying the sorting order of the
          * results. The default order is ascending. Add " DESC" after the field name
    @@ -1816,15 +1937,14 @@ public java.lang.String getOrderBy() {
          * 
    * * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1832,6 +1952,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
          * Optional. A comma-separated list of fields specifying the sorting order of the
          * results. The default order is ascending. Add " DESC" after the field name
    @@ -1846,20 +1968,22 @@ public java.lang.String getOrderBy() {
          * 
    * * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
          * Optional. A comma-separated list of fields specifying the sorting order of the
          * results. The default order is ascending. Add " DESC" after the field name
    @@ -1874,15 +1998,18 @@ public Builder setOrderBy(
          * 
    * * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
          * Optional. A comma-separated list of fields specifying the sorting order of the
          * results. The default order is ascending. Add " DESC" after the field name
    @@ -1897,23 +2024,23 @@ public Builder clearOrderBy() {
          * 
    * * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1923,12 +2050,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.SearchAllIamPoliciesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.SearchAllIamPoliciesRequest) private static final com.google.cloud.asset.v1.SearchAllIamPoliciesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.SearchAllIamPoliciesRequest(); } @@ -1937,27 +2064,27 @@ public static com.google.cloud.asset.v1.SearchAllIamPoliciesRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchAllIamPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAllIamPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1972,6 +2099,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.asset.v1.SearchAllIamPoliciesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequestOrBuilder.java similarity index 92% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequestOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequestOrBuilder.java index beb0187685e8..091d9ca9146b 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface SearchAllIamPoliciesRequestOrBuilder extends +public interface SearchAllIamPoliciesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.SearchAllIamPoliciesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. A scope can be a project, a folder, or an organization. The search is
        * limited to the IAM policies within the `scope`. The caller must be granted
    @@ -22,10 +40,13 @@ public interface SearchAllIamPoliciesRequestOrBuilder extends
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The scope. */ java.lang.String getScope(); /** + * + * *
        * Required. A scope can be a project, a folder, or an organization. The search is
        * limited to the IAM policies within the `scope`. The caller must be granted
    @@ -40,12 +61,14 @@ public interface SearchAllIamPoliciesRequestOrBuilder extends
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for scope. */ - com.google.protobuf.ByteString - getScopeBytes(); + com.google.protobuf.ByteString getScopeBytes(); /** + * + * *
        * Optional. The query statement. See [how to construct a
        * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
    @@ -90,10 +113,13 @@ public interface SearchAllIamPoliciesRequestOrBuilder extends
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The query. */ java.lang.String getQuery(); /** + * + * *
        * Optional. The query statement. See [how to construct a
        * query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
    @@ -138,12 +164,14 @@ public interface SearchAllIamPoliciesRequestOrBuilder extends
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for query. */ - com.google.protobuf.ByteString - getQueryBytes(); + com.google.protobuf.ByteString getQueryBytes(); /** + * + * *
        * Optional. The page size for search result pagination. Page size is capped at 500 even
        * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -152,11 +180,14 @@ public interface SearchAllIamPoliciesRequestOrBuilder extends
        * 
    * * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
        * Optional. If present, retrieve the next batch of results from the preceding call to
        * this method. `page_token` must be the value of `next_page_token` from the
    @@ -165,10 +196,13 @@ public interface SearchAllIamPoliciesRequestOrBuilder extends
        * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
        * Optional. If present, retrieve the next batch of results from the preceding call to
        * this method. `page_token` must be the value of `next_page_token` from the
    @@ -177,12 +211,14 @@ public interface SearchAllIamPoliciesRequestOrBuilder extends
        * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
        * Optional. A list of asset types that the IAM policies are attached to. If empty, it
        * will search the IAM policies that are attached to all the [searchable asset
    @@ -200,11 +236,13 @@ public interface SearchAllIamPoliciesRequestOrBuilder extends
        * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the assetTypes. */ - java.util.List - getAssetTypesList(); + java.util.List getAssetTypesList(); /** + * + * *
        * Optional. A list of asset types that the IAM policies are attached to. If empty, it
        * will search the IAM policies that are attached to all the [searchable asset
    @@ -222,10 +260,13 @@ public interface SearchAllIamPoliciesRequestOrBuilder extends
        * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of assetTypes. */ int getAssetTypesCount(); /** + * + * *
        * Optional. A list of asset types that the IAM policies are attached to. If empty, it
        * will search the IAM policies that are attached to all the [searchable asset
    @@ -243,11 +284,14 @@ public interface SearchAllIamPoliciesRequestOrBuilder extends
        * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ java.lang.String getAssetTypes(int index); /** + * + * *
        * Optional. A list of asset types that the IAM policies are attached to. If empty, it
        * will search the IAM policies that are attached to all the [searchable asset
    @@ -265,13 +309,15 @@ public interface SearchAllIamPoliciesRequestOrBuilder extends
        * 
    * * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - com.google.protobuf.ByteString - getAssetTypesBytes(int index); + com.google.protobuf.ByteString getAssetTypesBytes(int index); /** + * + * *
        * Optional. A comma-separated list of fields specifying the sorting order of the
        * results. The default order is ascending. Add " DESC" after the field name
    @@ -286,10 +332,13 @@ public interface SearchAllIamPoliciesRequestOrBuilder extends
        * 
    * * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
        * Optional. A comma-separated list of fields specifying the sorting order of the
        * results. The default order is ascending. Add " DESC" after the field name
    @@ -304,8 +353,8 @@ public interface SearchAllIamPoliciesRequestOrBuilder extends
        * 
    * * string order_by = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponse.java similarity index 73% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponse.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponse.java index e6d1b1eb556a..fec542c8fade 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponse.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * Search all IAM policies response.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.SearchAllIamPoliciesResponse} */ -public final class SearchAllIamPoliciesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SearchAllIamPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.SearchAllIamPoliciesResponse) SearchAllIamPoliciesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SearchAllIamPoliciesResponse.newBuilder() to construct. private SearchAllIamPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SearchAllIamPoliciesResponse() { results_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,32 +44,35 @@ private SearchAllIamPoliciesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SearchAllIamPoliciesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.class, com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.Builder.class); + com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.class, + com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.Builder.class); } public static final int RESULTS_FIELD_NUMBER = 1; private java.util.List results_; /** + * + * *
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -64,6 +85,8 @@ public java.util.List getResult
         return results_;
       }
       /**
    +   *
    +   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -72,11 +95,13 @@ public java.util.List getResult
        * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
        */
       @java.lang.Override
    -  public java.util.List 
    +  public java.util.List
           getResultsOrBuilderList() {
         return results_;
       }
       /**
    +   *
    +   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -89,6 +114,8 @@ public int getResultsCount() {
         return results_.size();
       }
       /**
    +   *
    +   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -101,6 +128,8 @@ public com.google.cloud.asset.v1.IamPolicySearchResult getResults(int index) {
         return results_.get(index);
       }
       /**
    +   *
    +   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -109,14 +138,15 @@ public com.google.cloud.asset.v1.IamPolicySearchResult getResults(int index) {
        * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
        */
       @java.lang.Override
    -  public com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder getResultsOrBuilder(
    -      int index) {
    +  public com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder getResultsOrBuilder(int index) {
         return results_.get(index);
       }
     
       public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
       private volatile java.lang.Object nextPageToken_;
       /**
    +   *
    +   *
        * 
        * Set if there are more results than those appearing in this response; to get
        * the next set of results, call this method again, using this value as the
    @@ -124,6 +154,7 @@ public com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder getResultsOrBuil
        * 
    * * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -132,14 +163,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
        * Set if there are more results than those appearing in this response; to get
        * the next set of results, call this method again, using this value as the
    @@ -147,16 +179,15 @@ public java.lang.String getNextPageToken() {
        * 
    * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -165,6 +196,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,8 +208,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeMessage(1, results_.get(i)); } @@ -194,8 +225,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, results_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -208,17 +238,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.SearchAllIamPoliciesResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1.SearchAllIamPoliciesResponse other = (com.google.cloud.asset.v1.SearchAllIamPoliciesResponse) obj; + com.google.cloud.asset.v1.SearchAllIamPoliciesResponse other = + (com.google.cloud.asset.v1.SearchAllIamPoliciesResponse) obj; - if (!getResultsList() - .equals(other.getResultsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getResultsList().equals(other.getResultsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -242,129 +271,136 @@ public int hashCode() { } public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse 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.asset.v1.SearchAllIamPoliciesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1.SearchAllIamPoliciesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1.SearchAllIamPoliciesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Search all IAM policies response.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.SearchAllIamPoliciesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.SearchAllIamPoliciesResponse) com.google.cloud.asset.v1.SearchAllIamPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.class, com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.Builder.class); + com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.class, + com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.Builder.class); } // Construct using com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -381,9 +417,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor; } @java.lang.Override @@ -402,7 +438,8 @@ public com.google.cloud.asset.v1.SearchAllIamPoliciesResponse build() { @java.lang.Override public com.google.cloud.asset.v1.SearchAllIamPoliciesResponse buildPartial() { - com.google.cloud.asset.v1.SearchAllIamPoliciesResponse result = new com.google.cloud.asset.v1.SearchAllIamPoliciesResponse(this); + com.google.cloud.asset.v1.SearchAllIamPoliciesResponse result = + new com.google.cloud.asset.v1.SearchAllIamPoliciesResponse(this); int from_bitField0_ = bitField0_; if (resultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -422,38 +459,39 @@ public com.google.cloud.asset.v1.SearchAllIamPoliciesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.SearchAllIamPoliciesResponse) { - return mergeFrom((com.google.cloud.asset.v1.SearchAllIamPoliciesResponse)other); + return mergeFrom((com.google.cloud.asset.v1.SearchAllIamPoliciesResponse) other); } else { super.mergeFrom(other); return this; @@ -461,7 +499,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.SearchAllIamPoliciesResponse other) { - if (other == com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.getDefaultInstance()) + return this; if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { @@ -480,9 +519,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.SearchAllIamPoliciesResponse resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); - resultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResultsFieldBuilder() : null; + resultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResultsFieldBuilder() + : null; } else { resultsBuilder_.addAllMessages(other.results_); } @@ -518,30 +558,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.asset.v1.IamPolicySearchResult m = - input.readMessage( - com.google.cloud.asset.v1.IamPolicySearchResult.parser(), - extensionRegistry); - if (resultsBuilder_ == null) { - ensureResultsIsMutable(); - results_.add(m); - } else { - resultsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.asset.v1.IamPolicySearchResult m = + input.readMessage( + com.google.cloud.asset.v1.IamPolicySearchResult.parser(), + extensionRegistry); + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(m); + } else { + resultsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -551,21 +594,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List results_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - results_ = new java.util.ArrayList(results_); + results_ = + new java.util.ArrayList(results_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.IamPolicySearchResult, com.google.cloud.asset.v1.IamPolicySearchResult.Builder, com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder> resultsBuilder_; + com.google.cloud.asset.v1.IamPolicySearchResult, + com.google.cloud.asset.v1.IamPolicySearchResult.Builder, + com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder> + resultsBuilder_; /** + * + * *
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -581,6 +632,8 @@ public java.util.List getResult
           }
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -596,6 +649,8 @@ public int getResultsCount() {
           }
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -611,6 +666,8 @@ public com.google.cloud.asset.v1.IamPolicySearchResult getResults(int index) {
           }
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -618,8 +675,7 @@ public com.google.cloud.asset.v1.IamPolicySearchResult getResults(int index) {
          *
          * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
          */
    -    public Builder setResults(
    -        int index, com.google.cloud.asset.v1.IamPolicySearchResult value) {
    +    public Builder setResults(int index, com.google.cloud.asset.v1.IamPolicySearchResult value) {
           if (resultsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -633,6 +689,8 @@ public Builder setResults(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -652,6 +710,8 @@ public Builder setResults(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -673,6 +733,8 @@ public Builder addResults(com.google.cloud.asset.v1.IamPolicySearchResult value)
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -680,8 +742,7 @@ public Builder addResults(com.google.cloud.asset.v1.IamPolicySearchResult value)
          *
          * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
          */
    -    public Builder addResults(
    -        int index, com.google.cloud.asset.v1.IamPolicySearchResult value) {
    +    public Builder addResults(int index, com.google.cloud.asset.v1.IamPolicySearchResult value) {
           if (resultsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -695,6 +756,8 @@ public Builder addResults(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -714,6 +777,8 @@ public Builder addResults(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -733,6 +798,8 @@ public Builder addResults(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -744,8 +811,7 @@ public Builder addAllResults(
             java.lang.Iterable values) {
           if (resultsBuilder_ == null) {
             ensureResultsIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    -            values, results_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_);
             onChanged();
           } else {
             resultsBuilder_.addAllMessages(values);
    @@ -753,6 +819,8 @@ public Builder addAllResults(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -771,6 +839,8 @@ public Builder clearResults() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -789,6 +859,8 @@ public Builder removeResults(int index) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -796,11 +868,12 @@ public Builder removeResults(int index) {
          *
          * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
          */
    -    public com.google.cloud.asset.v1.IamPolicySearchResult.Builder getResultsBuilder(
    -        int index) {
    +    public com.google.cloud.asset.v1.IamPolicySearchResult.Builder getResultsBuilder(int index) {
           return getResultsFieldBuilder().getBuilder(index);
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -808,14 +881,16 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Builder getResultsBuilder
          *
          * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
          */
    -    public com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder getResultsOrBuilder(
    -        int index) {
    +    public com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder getResultsOrBuilder(int index) {
           if (resultsBuilder_ == null) {
    -        return results_.get(index);  } else {
    +        return results_.get(index);
    +      } else {
             return resultsBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -823,8 +898,8 @@ public com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder getResultsOrBuil
          *
          * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
          */
    -    public java.util.List 
    -         getResultsOrBuilderList() {
    +    public java.util.List
    +        getResultsOrBuilderList() {
           if (resultsBuilder_ != null) {
             return resultsBuilder_.getMessageOrBuilderList();
           } else {
    @@ -832,6 +907,8 @@ public com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder getResultsOrBuil
           }
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -840,10 +917,12 @@ public com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder getResultsOrBuil
          * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
          */
         public com.google.cloud.asset.v1.IamPolicySearchResult.Builder addResultsBuilder() {
    -      return getResultsFieldBuilder().addBuilder(
    -          com.google.cloud.asset.v1.IamPolicySearchResult.getDefaultInstance());
    +      return getResultsFieldBuilder()
    +          .addBuilder(com.google.cloud.asset.v1.IamPolicySearchResult.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -851,12 +930,13 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Builder addResultsBuilder
          *
          * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
          */
    -    public com.google.cloud.asset.v1.IamPolicySearchResult.Builder addResultsBuilder(
    -        int index) {
    -      return getResultsFieldBuilder().addBuilder(
    -          index, com.google.cloud.asset.v1.IamPolicySearchResult.getDefaultInstance());
    +    public com.google.cloud.asset.v1.IamPolicySearchResult.Builder addResultsBuilder(int index) {
    +      return getResultsFieldBuilder()
    +          .addBuilder(index, com.google.cloud.asset.v1.IamPolicySearchResult.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -864,20 +944,23 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Builder addResultsBuilder
          *
          * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
          */
    -    public java.util.List 
    -         getResultsBuilderList() {
    +    public java.util.List
    +        getResultsBuilderList() {
           return getResultsFieldBuilder().getBuilderList();
         }
    +
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -        com.google.cloud.asset.v1.IamPolicySearchResult, com.google.cloud.asset.v1.IamPolicySearchResult.Builder, com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder> 
    +            com.google.cloud.asset.v1.IamPolicySearchResult,
    +            com.google.cloud.asset.v1.IamPolicySearchResult.Builder,
    +            com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder>
             getResultsFieldBuilder() {
           if (resultsBuilder_ == null) {
    -        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.asset.v1.IamPolicySearchResult, com.google.cloud.asset.v1.IamPolicySearchResult.Builder, com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder>(
    -                results_,
    -                ((bitField0_ & 0x00000001) != 0),
    -                getParentForChildren(),
    -                isClean());
    +        resultsBuilder_ =
    +            new com.google.protobuf.RepeatedFieldBuilderV3<
    +                com.google.cloud.asset.v1.IamPolicySearchResult,
    +                com.google.cloud.asset.v1.IamPolicySearchResult.Builder,
    +                com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder>(
    +                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
             results_ = null;
           }
           return resultsBuilder_;
    @@ -885,6 +968,8 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Builder addResultsBuilder
     
         private java.lang.Object nextPageToken_ = "";
         /**
    +     *
    +     *
          * 
          * Set if there are more results than those appearing in this response; to get
          * the next set of results, call this method again, using this value as the
    @@ -892,13 +977,13 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Builder addResultsBuilder
          * 
    * * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -907,6 +992,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
          * Set if there are more results than those appearing in this response; to get
          * the next set of results, call this method again, using this value as the
    @@ -914,15 +1001,14 @@ public java.lang.String getNextPageToken() {
          * 
    * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -930,6 +1016,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
          * Set if there are more results than those appearing in this response; to get
          * the next set of results, call this method again, using this value as the
    @@ -937,20 +1025,22 @@ public java.lang.String getNextPageToken() {
          * 
    * * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
          * Set if there are more results than those appearing in this response; to get
          * the next set of results, call this method again, using this value as the
    @@ -958,15 +1048,18 @@ public Builder setNextPageToken(
          * 
    * * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
          * Set if there are more results than those appearing in this response; to get
          * the next set of results, call this method again, using this value as the
    @@ -974,23 +1067,23 @@ 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1000,12 +1093,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.SearchAllIamPoliciesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.SearchAllIamPoliciesResponse) private static final com.google.cloud.asset.v1.SearchAllIamPoliciesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.SearchAllIamPoliciesResponse(); } @@ -1014,27 +1107,27 @@ public static com.google.cloud.asset.v1.SearchAllIamPoliciesResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchAllIamPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAllIamPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1049,6 +1142,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.asset.v1.SearchAllIamPoliciesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponseOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponseOrBuilder.java similarity index 75% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponseOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponseOrBuilder.java index e1866ae585cc..56d9e7a7a971 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponseOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface SearchAllIamPoliciesResponseOrBuilder extends +public interface SearchAllIamPoliciesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.SearchAllIamPoliciesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -15,9 +33,10 @@ public interface SearchAllIamPoliciesResponseOrBuilder extends
        *
        * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
        */
    -  java.util.List 
    -      getResultsList();
    +  java.util.List getResultsList();
       /**
    +   *
    +   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -27,6 +46,8 @@ public interface SearchAllIamPoliciesResponseOrBuilder extends
        */
       com.google.cloud.asset.v1.IamPolicySearchResult getResults(int index);
       /**
    +   *
    +   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -36,6 +57,8 @@ public interface SearchAllIamPoliciesResponseOrBuilder extends
        */
       int getResultsCount();
       /**
    +   *
    +   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -43,9 +66,11 @@ public interface SearchAllIamPoliciesResponseOrBuilder extends
        *
        * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
        */
    -  java.util.List 
    +  java.util.List
           getResultsOrBuilderList();
       /**
    +   *
    +   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -53,10 +78,11 @@ public interface SearchAllIamPoliciesResponseOrBuilder extends
        *
        * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1;
        */
    -  com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder getResultsOrBuilder(
    -      int index);
    +  com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder getResultsOrBuilder(int index);
     
       /**
    +   *
    +   *
        * 
        * Set if there are more results than those appearing in this response; to get
        * the next set of results, call this method again, using this value as the
    @@ -64,10 +90,13 @@ com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder getResultsOrBuilder(
        * 
    * * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
        * Set if there are more results than those appearing in this response; to get
        * the next set of results, call this method again, using this value as the
    @@ -75,8 +104,8 @@ com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder getResultsOrBuilder(
        * 
    * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequest.java similarity index 86% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequest.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequest.java index 3e74d63b5c64..1004448093a8 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * Search all resources request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.SearchAllResourcesRequest} */ -public final class SearchAllResourcesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SearchAllResourcesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.SearchAllResourcesRequest) SearchAllResourcesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SearchAllResourcesRequest.newBuilder() to construct. private SearchAllResourcesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SearchAllResourcesRequest() { scope_ = ""; query_ = ""; @@ -29,32 +47,35 @@ private SearchAllResourcesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SearchAllResourcesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.SearchAllResourcesRequest.class, com.google.cloud.asset.v1.SearchAllResourcesRequest.Builder.class); + com.google.cloud.asset.v1.SearchAllResourcesRequest.class, + com.google.cloud.asset.v1.SearchAllResourcesRequest.Builder.class); } public static final int SCOPE_FIELD_NUMBER = 1; private volatile java.lang.Object scope_; /** + * + * *
        * Required. A scope can be a project, a folder, or an organization. The search is
        * limited to the resources within the `scope`. The caller must be granted the
    @@ -68,6 +89,7 @@ protected java.lang.Object newInstance(
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The scope. */ @java.lang.Override @@ -76,14 +98,15 @@ public java.lang.String getScope() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; } } /** + * + * *
        * Required. A scope can be a project, a folder, or an organization. The search is
        * limited to the resources within the `scope`. The caller must be granted the
    @@ -97,16 +120,15 @@ public java.lang.String getScope() {
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for scope. */ @java.lang.Override - public com.google.protobuf.ByteString - getScopeBytes() { + public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); scope_ = b; return b; } else { @@ -117,6 +139,8 @@ public java.lang.String getScope() { public static final int QUERY_FIELD_NUMBER = 2; private volatile java.lang.Object query_; /** + * + * *
        * Optional. The query statement. See [how to construct a
        * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
    @@ -171,6 +195,7 @@ public java.lang.String getScope() {
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The query. */ @java.lang.Override @@ -179,14 +204,15 @@ public java.lang.String getQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } } /** + * + * *
        * Optional. The query statement. See [how to construct a
        * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
    @@ -241,16 +267,15 @@ public java.lang.String getQuery() {
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for query. */ @java.lang.Override - public com.google.protobuf.ByteString - getQueryBytes() { + public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); query_ = b; return b; } else { @@ -261,6 +286,8 @@ public java.lang.String getQuery() { public static final int ASSET_TYPES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList assetTypes_; /** + * + * *
        * Optional. A list of asset types that this request searches for. If empty, it will
        * search all the [searchable asset
    @@ -276,13 +303,15 @@ public java.lang.String getQuery() {
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList - getAssetTypesList() { + public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_; } /** + * + * *
        * Optional. A list of asset types that this request searches for. If empty, it will
        * search all the [searchable asset
    @@ -298,12 +327,15 @@ public java.lang.String getQuery() {
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** + * + * *
        * Optional. A list of asset types that this request searches for. If empty, it will
        * search all the [searchable asset
    @@ -319,6 +351,7 @@ public int getAssetTypesCount() {
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -326,6 +359,8 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** + * + * *
        * Optional. A list of asset types that this request searches for. If empty, it will
        * search all the [searchable asset
    @@ -341,17 +376,19 @@ public java.lang.String getAssetTypes(int index) {
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString - getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** + * + * *
        * Optional. The page size for search result pagination. Page size is capped at 500 even
        * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -360,6 +397,7 @@ public java.lang.String getAssetTypes(int index) {
        * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -370,6 +408,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 5; private volatile java.lang.Object pageToken_; /** + * + * *
        * Optional. If present, then retrieve the next batch of results from the preceding call
        * to this method. `page_token` must be the value of `next_page_token` from
    @@ -378,6 +418,7 @@ public int getPageSize() {
        * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -386,14 +427,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
        * Optional. If present, then retrieve the next batch of results from the preceding call
        * to this method. `page_token` must be the value of `next_page_token` from
    @@ -402,16 +444,15 @@ public java.lang.String getPageToken() {
        * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -422,6 +463,8 @@ public java.lang.String getPageToken() { public static final int ORDER_BY_FIELD_NUMBER = 6; private volatile java.lang.Object orderBy_; /** + * + * *
        * Optional. A comma-separated list of fields specifying the sorting order of the
        * results. The default order is ascending. Add " DESC" after the field name
    @@ -445,6 +488,7 @@ public java.lang.String getPageToken() {
        * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ @java.lang.Override @@ -453,14 +497,15 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
        * Optional. A comma-separated list of fields specifying the sorting order of the
        * results. The default order is ascending. Add " DESC" after the field name
    @@ -484,16 +529,15 @@ public java.lang.String getOrderBy() {
        * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -504,6 +548,8 @@ public java.lang.String getOrderBy() { public static final int READ_MASK_FIELD_NUMBER = 8; private com.google.protobuf.FieldMask readMask_; /** + * + * *
        * Optional. A comma-separated list of fields specifying which fields to be returned in
        * ResourceSearchResult. Only '*' or combination of top level fields can be
    @@ -537,7 +583,9 @@ public java.lang.String getOrderBy() {
        * Any invalid field path will trigger INVALID_ARGUMENT error.
        * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readMask field is set. */ @java.lang.Override @@ -545,6 +593,8 @@ public boolean hasReadMask() { return readMask_ != null; } /** + * + * *
        * Optional. A comma-separated list of fields specifying which fields to be returned in
        * ResourceSearchResult. Only '*' or combination of top level fields can be
    @@ -578,7 +628,9 @@ public boolean hasReadMask() {
        * Any invalid field path will trigger INVALID_ARGUMENT error.
        * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readMask. */ @java.lang.Override @@ -586,6 +638,8 @@ public com.google.protobuf.FieldMask getReadMask() { return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } /** + * + * *
        * Optional. A comma-separated list of fields specifying which fields to be returned in
        * ResourceSearchResult. Only '*' or combination of top level fields can be
    @@ -619,7 +673,8 @@ public com.google.protobuf.FieldMask getReadMask() {
        * Any invalid field path will trigger INVALID_ARGUMENT error.
        * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { @@ -627,6 +682,7 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -638,8 +694,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scope_); } @@ -685,8 +740,7 @@ public int getSerializedSize() { size += 1 * getAssetTypesList().size(); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); @@ -695,8 +749,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, orderBy_); } if (readMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getReadMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getReadMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -706,29 +759,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.SearchAllResourcesRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.SearchAllResourcesRequest other = (com.google.cloud.asset.v1.SearchAllResourcesRequest) obj; - - if (!getScope() - .equals(other.getScope())) return false; - if (!getQuery() - .equals(other.getQuery())) return false; - if (!getAssetTypesList() - .equals(other.getAssetTypesList())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.asset.v1.SearchAllResourcesRequest other = + (com.google.cloud.asset.v1.SearchAllResourcesRequest) obj; + + if (!getScope().equals(other.getScope())) return false; + if (!getQuery().equals(other.getQuery())) return false; + if (!getAssetTypesList().equals(other.getAssetTypesList())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (hasReadMask() != other.hasReadMask()) return false; if (hasReadMask()) { - if (!getReadMask() - .equals(other.getReadMask())) return false; + if (!getReadMask().equals(other.getReadMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -765,129 +812,135 @@ public int hashCode() { } public static com.google.cloud.asset.v1.SearchAllResourcesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.SearchAllResourcesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.SearchAllResourcesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.SearchAllResourcesRequest 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.asset.v1.SearchAllResourcesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.SearchAllResourcesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.SearchAllResourcesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.SearchAllResourcesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.SearchAllResourcesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.SearchAllResourcesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.SearchAllResourcesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.SearchAllResourcesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.SearchAllResourcesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.SearchAllResourcesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.SearchAllResourcesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Search all resources request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.SearchAllResourcesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.SearchAllResourcesRequest) com.google.cloud.asset.v1.SearchAllResourcesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.SearchAllResourcesRequest.class, com.google.cloud.asset.v1.SearchAllResourcesRequest.Builder.class); + com.google.cloud.asset.v1.SearchAllResourcesRequest.class, + com.google.cloud.asset.v1.SearchAllResourcesRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.SearchAllResourcesRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -913,9 +966,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor; } @java.lang.Override @@ -934,7 +987,8 @@ public com.google.cloud.asset.v1.SearchAllResourcesRequest build() { @java.lang.Override public com.google.cloud.asset.v1.SearchAllResourcesRequest buildPartial() { - com.google.cloud.asset.v1.SearchAllResourcesRequest result = new com.google.cloud.asset.v1.SearchAllResourcesRequest(this); + com.google.cloud.asset.v1.SearchAllResourcesRequest result = + new com.google.cloud.asset.v1.SearchAllResourcesRequest(this); int from_bitField0_ = bitField0_; result.scope_ = scope_; result.query_ = query_; @@ -959,38 +1013,39 @@ public com.google.cloud.asset.v1.SearchAllResourcesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.SearchAllResourcesRequest) { - return mergeFrom((com.google.cloud.asset.v1.SearchAllResourcesRequest)other); + return mergeFrom((com.google.cloud.asset.v1.SearchAllResourcesRequest) other); } else { super.mergeFrom(other); return this; @@ -998,7 +1053,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.SearchAllResourcesRequest other) { - if (other == com.google.cloud.asset.v1.SearchAllResourcesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1.SearchAllResourcesRequest.getDefaultInstance()) + return this; if (!other.getScope().isEmpty()) { scope_ = other.scope_; onChanged(); @@ -1057,50 +1113,56 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - scope_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - query_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAssetTypesIsMutable(); - assetTypes_.add(s); - break; - } // case 26 - case 32: { - pageSize_ = input.readInt32(); - - break; - } // case 32 - case 42: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - orderBy_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 66: { - input.readMessage( - getReadMaskFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + scope_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + query_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAssetTypesIsMutable(); + assetTypes_.add(s); + break; + } // case 26 + case 32: + { + pageSize_ = input.readInt32(); + + break; + } // case 32 + case 42: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 66: + { + input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1110,10 +1172,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object scope_ = ""; /** + * + * *
          * Required. A scope can be a project, a folder, or an organization. The search is
          * limited to the resources within the `scope`. The caller must be granted the
    @@ -1127,13 +1192,13 @@ public Builder mergeFrom(
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The scope. */ public java.lang.String getScope() { java.lang.Object ref = scope_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; @@ -1142,6 +1207,8 @@ public java.lang.String getScope() { } } /** + * + * *
          * Required. A scope can be a project, a folder, or an organization. The search is
          * limited to the resources within the `scope`. The caller must be granted the
    @@ -1155,15 +1222,14 @@ public java.lang.String getScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for scope. */ - public com.google.protobuf.ByteString - getScopeBytes() { + public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); scope_ = b; return b; } else { @@ -1171,6 +1237,8 @@ public java.lang.String getScope() { } } /** + * + * *
          * Required. A scope can be a project, a folder, or an organization. The search is
          * limited to the resources within the `scope`. The caller must be granted the
    @@ -1184,20 +1252,22 @@ public java.lang.String getScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The scope to set. * @return This builder for chaining. */ - public Builder setScope( - java.lang.String value) { + public Builder setScope(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + scope_ = value; onChanged(); return this; } /** + * + * *
          * Required. A scope can be a project, a folder, or an organization. The search is
          * limited to the resources within the `scope`. The caller must be granted the
    @@ -1211,15 +1281,18 @@ public Builder setScope(
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearScope() { - + scope_ = getDefaultInstance().getScope(); onChanged(); return this; } /** + * + * *
          * Required. A scope can be a project, a folder, or an organization. The search is
          * limited to the resources within the `scope`. The caller must be granted the
    @@ -1233,16 +1306,16 @@ public Builder clearScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for scope to set. * @return This builder for chaining. */ - public Builder setScopeBytes( - com.google.protobuf.ByteString value) { + public Builder setScopeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scope_ = value; onChanged(); return this; @@ -1250,6 +1323,8 @@ public Builder setScopeBytes( private java.lang.Object query_ = ""; /** + * + * *
          * Optional. The query statement. See [how to construct a
          * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
    @@ -1304,13 +1379,13 @@ public Builder setScopeBytes(
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; @@ -1319,6 +1394,8 @@ public java.lang.String getQuery() { } } /** + * + * *
          * Optional. The query statement. See [how to construct a
          * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
    @@ -1373,15 +1450,14 @@ public java.lang.String getQuery() {
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for query. */ - public com.google.protobuf.ByteString - getQueryBytes() { + public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); query_ = b; return b; } else { @@ -1389,6 +1465,8 @@ public java.lang.String getQuery() { } } /** + * + * *
          * Optional. The query statement. See [how to construct a
          * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
    @@ -1443,20 +1521,22 @@ public java.lang.String getQuery() {
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The query to set. * @return This builder for chaining. */ - public Builder setQuery( - java.lang.String value) { + public Builder setQuery(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + query_ = value; onChanged(); return this; } /** + * + * *
          * Optional. The query statement. See [how to construct a
          * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
    @@ -1511,15 +1591,18 @@ public Builder setQuery(
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearQuery() { - + query_ = getDefaultInstance().getQuery(); onChanged(); return this; } /** + * + * *
          * Optional. The query statement. See [how to construct a
          * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
    @@ -1574,29 +1657,33 @@ public Builder clearQuery() {
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for query to set. * @return This builder for chaining. */ - public Builder setQueryBytes( - com.google.protobuf.ByteString value) { + public Builder setQueryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList assetTypes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAssetTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assetTypes_ = new com.google.protobuf.LazyStringArrayList(assetTypes_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the [searchable asset
    @@ -1612,13 +1699,15 @@ private void ensureAssetTypesIsMutable() {
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList - getAssetTypesList() { + public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_.getUnmodifiableView(); } /** + * + * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the [searchable asset
    @@ -1634,12 +1723,15 @@ private void ensureAssetTypesIsMutable() {
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** + * + * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the [searchable asset
    @@ -1655,6 +1747,7 @@ public int getAssetTypesCount() {
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -1662,6 +1755,8 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** + * + * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the [searchable asset
    @@ -1677,14 +1772,16 @@ public java.lang.String getAssetTypes(int index) {
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString - getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } /** + * + * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the [searchable asset
    @@ -1700,21 +1797,23 @@ public java.lang.String getAssetTypes(int index) {
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The assetTypes to set. * @return This builder for chaining. */ - public Builder setAssetTypes( - int index, java.lang.String value) { + public Builder setAssetTypes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.set(index, value); onChanged(); return this; } /** + * + * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the [searchable asset
    @@ -1730,20 +1829,22 @@ public Builder setAssetTypes(
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypes( - java.lang.String value) { + public Builder addAssetTypes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); return this; } /** + * + * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the [searchable asset
    @@ -1759,18 +1860,19 @@ public Builder addAssetTypes(
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The assetTypes to add. * @return This builder for chaining. */ - public Builder addAllAssetTypes( - java.lang.Iterable values) { + public Builder addAllAssetTypes(java.lang.Iterable values) { ensureAssetTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, assetTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetTypes_); onChanged(); return this; } /** + * + * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the [searchable asset
    @@ -1786,6 +1888,7 @@ public Builder addAllAssetTypes(
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1795,6 +1898,8 @@ public Builder clearAssetTypes() { return this; } /** + * + * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the [searchable asset
    @@ -1810,23 +1915,25 @@ public Builder clearAssetTypes() {
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypesBytes( - com.google.protobuf.ByteString value) { + public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
          * Optional. The page size for search result pagination. Page size is capped at 500 even
          * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -1835,6 +1942,7 @@ public Builder addAssetTypesBytes(
          * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -1842,6 +1950,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
          * Optional. The page size for search result pagination. Page size is capped at 500 even
          * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -1850,16 +1960,19 @@ public int getPageSize() {
          * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
          * Optional. The page size for search result pagination. Page size is capped at 500 even
          * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -1868,10 +1981,11 @@ public Builder setPageSize(int value) {
          * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1879,6 +1993,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
          * Optional. If present, then retrieve the next batch of results from the preceding call
          * to this method. `page_token` must be the value of `next_page_token` from
    @@ -1887,13 +2003,13 @@ public Builder clearPageSize() {
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1902,6 +2018,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
          * Optional. If present, then retrieve the next batch of results from the preceding call
          * to this method. `page_token` must be the value of `next_page_token` from
    @@ -1910,15 +2028,14 @@ public java.lang.String getPageToken() {
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1926,6 +2043,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
          * Optional. If present, then retrieve the next batch of results from the preceding call
          * to this method. `page_token` must be the value of `next_page_token` from
    @@ -1934,20 +2053,22 @@ public java.lang.String getPageToken() {
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
          * Optional. If present, then retrieve the next batch of results from the preceding call
          * to this method. `page_token` must be the value of `next_page_token` from
    @@ -1956,15 +2077,18 @@ public Builder setPageToken(
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
          * Optional. If present, then retrieve the next batch of results from the preceding call
          * to this method. `page_token` must be the value of `next_page_token` from
    @@ -1973,16 +2097,16 @@ public Builder clearPageToken() {
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1990,6 +2114,8 @@ public Builder setPageTokenBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
          * Optional. A comma-separated list of fields specifying the sorting order of the
          * results. The default order is ascending. Add " DESC" after the field name
    @@ -2013,13 +2139,13 @@ public Builder setPageTokenBytes(
          * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -2028,6 +2154,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
          * Optional. A comma-separated list of fields specifying the sorting order of the
          * results. The default order is ascending. Add " DESC" after the field name
    @@ -2051,15 +2179,14 @@ public java.lang.String getOrderBy() {
          * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -2067,6 +2194,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
          * Optional. A comma-separated list of fields specifying the sorting order of the
          * results. The default order is ascending. Add " DESC" after the field name
    @@ -2090,20 +2219,22 @@ public java.lang.String getOrderBy() {
          * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
          * Optional. A comma-separated list of fields specifying the sorting order of the
          * results. The default order is ascending. Add " DESC" after the field name
    @@ -2127,15 +2258,18 @@ public Builder setOrderBy(
          * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
          * Optional. A comma-separated list of fields specifying the sorting order of the
          * results. The default order is ascending. Add " DESC" after the field name
    @@ -2159,16 +2293,16 @@ public Builder clearOrderBy() {
          * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; @@ -2176,8 +2310,13 @@ public Builder setOrderByBytes( private com.google.protobuf.FieldMask readMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> readMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; /** + * + * *
          * Optional. A comma-separated list of fields specifying which fields to be returned in
          * ResourceSearchResult. Only '*' or combination of top level fields can be
    @@ -2211,13 +2350,17 @@ public Builder setOrderByBytes(
          * Any invalid field path will trigger INVALID_ARGUMENT error.
          * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readMask field is set. */ public boolean hasReadMask() { return readMaskBuilder_ != null || readMask_ != null; } /** + * + * *
          * Optional. A comma-separated list of fields specifying which fields to be returned in
          * ResourceSearchResult. Only '*' or combination of top level fields can be
    @@ -2251,7 +2394,9 @@ public boolean hasReadMask() {
          * Any invalid field path will trigger INVALID_ARGUMENT error.
          * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -2262,6 +2407,8 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** + * + * *
          * Optional. A comma-separated list of fields specifying which fields to be returned in
          * ResourceSearchResult. Only '*' or combination of top level fields can be
    @@ -2295,7 +2442,8 @@ public com.google.protobuf.FieldMask getReadMask() {
          * Any invalid field path will trigger INVALID_ARGUMENT error.
          * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { @@ -2311,6 +2459,8 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
          * Optional. A comma-separated list of fields specifying which fields to be returned in
          * ResourceSearchResult. Only '*' or combination of top level fields can be
    @@ -2344,10 +2494,10 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) {
          * Any invalid field path will trigger INVALID_ARGUMENT error.
          * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setReadMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (readMaskBuilder_ == null) { readMask_ = builderForValue.build(); onChanged(); @@ -2358,6 +2508,8 @@ public Builder setReadMask( return this; } /** + * + * *
          * Optional. A comma-separated list of fields specifying which fields to be returned in
          * ResourceSearchResult. Only '*' or combination of top level fields can be
    @@ -2391,13 +2543,14 @@ public Builder setReadMask(
          * Any invalid field path will trigger INVALID_ARGUMENT error.
          * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { if (readMaskBuilder_ == null) { if (readMask_ != null) { readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); } else { readMask_ = value; } @@ -2409,6 +2562,8 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
          * Optional. A comma-separated list of fields specifying which fields to be returned in
          * ResourceSearchResult. Only '*' or combination of top level fields can be
    @@ -2442,7 +2597,8 @@ public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
          * Any invalid field path will trigger INVALID_ARGUMENT error.
          * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearReadMask() { if (readMaskBuilder_ == null) { @@ -2456,6 +2612,8 @@ public Builder clearReadMask() { return this; } /** + * + * *
          * Optional. A comma-separated list of fields specifying which fields to be returned in
          * ResourceSearchResult. Only '*' or combination of top level fields can be
    @@ -2489,14 +2647,17 @@ public Builder clearReadMask() {
          * Any invalid field path will trigger INVALID_ARGUMENT error.
          * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - + onChanged(); return getReadMaskFieldBuilder().getBuilder(); } /** + * + * *
          * Optional. A comma-separated list of fields specifying which fields to be returned in
          * ResourceSearchResult. Only '*' or combination of top level fields can be
    @@ -2530,17 +2691,19 @@ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() {
          * Any invalid field path will trigger INVALID_ARGUMENT error.
          * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { if (readMaskBuilder_ != null) { return readMaskBuilder_.getMessageOrBuilder(); } else { - return readMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } } /** + * + * *
          * Optional. A comma-separated list of fields specifying which fields to be returned in
          * ResourceSearchResult. Only '*' or combination of top level fields can be
    @@ -2574,24 +2737,28 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
          * Any invalid field path will trigger INVALID_ARGUMENT error.
          * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getReadMaskFieldBuilder() { if (readMaskBuilder_ == null) { - readMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getReadMask(), - getParentForChildren(), - isClean()); + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); readMask_ = null; } return readMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2601,12 +2768,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.SearchAllResourcesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.SearchAllResourcesRequest) private static final com.google.cloud.asset.v1.SearchAllResourcesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.SearchAllResourcesRequest(); } @@ -2615,27 +2782,27 @@ public static com.google.cloud.asset.v1.SearchAllResourcesRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchAllResourcesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAllResourcesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2650,6 +2817,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.asset.v1.SearchAllResourcesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequestOrBuilder.java similarity index 93% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequestOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequestOrBuilder.java index 96eef4aab2f1..ca3584be025f 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface SearchAllResourcesRequestOrBuilder extends +public interface SearchAllResourcesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.SearchAllResourcesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. A scope can be a project, a folder, or an organization. The search is
        * limited to the resources within the `scope`. The caller must be granted the
    @@ -21,10 +39,13 @@ public interface SearchAllResourcesRequestOrBuilder extends
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The scope. */ java.lang.String getScope(); /** + * + * *
        * Required. A scope can be a project, a folder, or an organization. The search is
        * limited to the resources within the `scope`. The caller must be granted the
    @@ -38,12 +59,14 @@ public interface SearchAllResourcesRequestOrBuilder extends
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for scope. */ - com.google.protobuf.ByteString - getScopeBytes(); + com.google.protobuf.ByteString getScopeBytes(); /** + * + * *
        * Optional. The query statement. See [how to construct a
        * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
    @@ -98,10 +121,13 @@ public interface SearchAllResourcesRequestOrBuilder extends
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The query. */ java.lang.String getQuery(); /** + * + * *
        * Optional. The query statement. See [how to construct a
        * query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
    @@ -156,12 +182,14 @@ public interface SearchAllResourcesRequestOrBuilder extends
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for query. */ - com.google.protobuf.ByteString - getQueryBytes(); + com.google.protobuf.ByteString getQueryBytes(); /** + * + * *
        * Optional. A list of asset types that this request searches for. If empty, it will
        * search all the [searchable asset
    @@ -177,11 +205,13 @@ public interface SearchAllResourcesRequestOrBuilder extends
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the assetTypes. */ - java.util.List - getAssetTypesList(); + java.util.List getAssetTypesList(); /** + * + * *
        * Optional. A list of asset types that this request searches for. If empty, it will
        * search all the [searchable asset
    @@ -197,10 +227,13 @@ public interface SearchAllResourcesRequestOrBuilder extends
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of assetTypes. */ int getAssetTypesCount(); /** + * + * *
        * Optional. A list of asset types that this request searches for. If empty, it will
        * search all the [searchable asset
    @@ -216,11 +249,14 @@ public interface SearchAllResourcesRequestOrBuilder extends
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ java.lang.String getAssetTypes(int index); /** + * + * *
        * Optional. A list of asset types that this request searches for. If empty, it will
        * search all the [searchable asset
    @@ -236,13 +272,15 @@ public interface SearchAllResourcesRequestOrBuilder extends
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - com.google.protobuf.ByteString - getAssetTypesBytes(int index); + com.google.protobuf.ByteString getAssetTypesBytes(int index); /** + * + * *
        * Optional. The page size for search result pagination. Page size is capped at 500 even
        * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -251,11 +289,14 @@ public interface SearchAllResourcesRequestOrBuilder extends
        * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
        * Optional. If present, then retrieve the next batch of results from the preceding call
        * to this method. `page_token` must be the value of `next_page_token` from
    @@ -264,10 +305,13 @@ public interface SearchAllResourcesRequestOrBuilder extends
        * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
        * Optional. If present, then retrieve the next batch of results from the preceding call
        * to this method. `page_token` must be the value of `next_page_token` from
    @@ -276,12 +320,14 @@ public interface SearchAllResourcesRequestOrBuilder extends
        * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
        * Optional. A comma-separated list of fields specifying the sorting order of the
        * results. The default order is ascending. Add " DESC" after the field name
    @@ -305,10 +351,13 @@ public interface SearchAllResourcesRequestOrBuilder extends
        * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
        * Optional. A comma-separated list of fields specifying the sorting order of the
        * results. The default order is ascending. Add " DESC" after the field name
    @@ -332,12 +381,14 @@ public interface SearchAllResourcesRequestOrBuilder extends
        * 
    * * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); /** + * + * *
        * Optional. A comma-separated list of fields specifying which fields to be returned in
        * ResourceSearchResult. Only '*' or combination of top level fields can be
    @@ -371,11 +422,15 @@ public interface SearchAllResourcesRequestOrBuilder extends
        * Any invalid field path will trigger INVALID_ARGUMENT error.
        * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readMask field is set. */ boolean hasReadMask(); /** + * + * *
        * Optional. A comma-separated list of fields specifying which fields to be returned in
        * ResourceSearchResult. Only '*' or combination of top level fields can be
    @@ -409,11 +464,15 @@ public interface SearchAllResourcesRequestOrBuilder extends
        * Any invalid field path will trigger INVALID_ARGUMENT error.
        * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readMask. */ com.google.protobuf.FieldMask getReadMask(); /** + * + * *
        * Optional. A comma-separated list of fields specifying which fields to be returned in
        * ResourceSearchResult. Only '*' or combination of top level fields can be
    @@ -447,7 +506,8 @@ public interface SearchAllResourcesRequestOrBuilder extends
        * Any invalid field path will trigger INVALID_ARGUMENT error.
        * 
    * - * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask read_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponse.java similarity index 73% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponse.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponse.java index e082c67164a8..da48ddded3b7 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponse.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * Search all resources response.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.SearchAllResourcesResponse} */ -public final class SearchAllResourcesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SearchAllResourcesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.SearchAllResourcesResponse) SearchAllResourcesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SearchAllResourcesResponse.newBuilder() to construct. private SearchAllResourcesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SearchAllResourcesResponse() { results_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,32 +44,35 @@ private SearchAllResourcesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SearchAllResourcesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.SearchAllResourcesResponse.class, com.google.cloud.asset.v1.SearchAllResourcesResponse.Builder.class); + com.google.cloud.asset.v1.SearchAllResourcesResponse.class, + com.google.cloud.asset.v1.SearchAllResourcesResponse.Builder.class); } public static final int RESULTS_FIELD_NUMBER = 1; private java.util.List results_; /** + * + * *
        * A list of Resources that match the search query. It contains the resource
        * standard metadata information.
    @@ -64,6 +85,8 @@ public java.util.List getResults
         return results_;
       }
       /**
    +   *
    +   *
        * 
        * A list of Resources that match the search query. It contains the resource
        * standard metadata information.
    @@ -72,11 +95,13 @@ public java.util.List getResults
        * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
        */
       @java.lang.Override
    -  public java.util.List 
    +  public java.util.List
           getResultsOrBuilderList() {
         return results_;
       }
       /**
    +   *
    +   *
        * 
        * A list of Resources that match the search query. It contains the resource
        * standard metadata information.
    @@ -89,6 +114,8 @@ public int getResultsCount() {
         return results_.size();
       }
       /**
    +   *
    +   *
        * 
        * A list of Resources that match the search query. It contains the resource
        * standard metadata information.
    @@ -101,6 +128,8 @@ public com.google.cloud.asset.v1.ResourceSearchResult getResults(int index) {
         return results_.get(index);
       }
       /**
    +   *
    +   *
        * 
        * A list of Resources that match the search query. It contains the resource
        * standard metadata information.
    @@ -109,14 +138,15 @@ public com.google.cloud.asset.v1.ResourceSearchResult getResults(int index) {
        * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
        */
       @java.lang.Override
    -  public com.google.cloud.asset.v1.ResourceSearchResultOrBuilder getResultsOrBuilder(
    -      int index) {
    +  public com.google.cloud.asset.v1.ResourceSearchResultOrBuilder getResultsOrBuilder(int index) {
         return results_.get(index);
       }
     
       public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
       private volatile java.lang.Object nextPageToken_;
       /**
    +   *
    +   *
        * 
        * If there are more results than those appearing in this response, then
        * `next_page_token` is included. To get the next set of results, call this
    @@ -124,6 +154,7 @@ public com.google.cloud.asset.v1.ResourceSearchResultOrBuilder getResultsOrBuild
        * 
    * * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -132,14 +163,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
        * If there are more results than those appearing in this response, then
        * `next_page_token` is included. To get the next set of results, call this
    @@ -147,16 +179,15 @@ public java.lang.String getNextPageToken() {
        * 
    * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -165,6 +196,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,8 +208,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeMessage(1, results_.get(i)); } @@ -194,8 +225,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, results_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -208,17 +238,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.SearchAllResourcesResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1.SearchAllResourcesResponse other = (com.google.cloud.asset.v1.SearchAllResourcesResponse) obj; + com.google.cloud.asset.v1.SearchAllResourcesResponse other = + (com.google.cloud.asset.v1.SearchAllResourcesResponse) obj; - if (!getResultsList() - .equals(other.getResultsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getResultsList().equals(other.getResultsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -242,129 +271,135 @@ public int hashCode() { } public static com.google.cloud.asset.v1.SearchAllResourcesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.SearchAllResourcesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.SearchAllResourcesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.SearchAllResourcesResponse 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.asset.v1.SearchAllResourcesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.SearchAllResourcesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.SearchAllResourcesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.SearchAllResourcesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.SearchAllResourcesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.SearchAllResourcesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.SearchAllResourcesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.SearchAllResourcesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.SearchAllResourcesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.SearchAllResourcesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.SearchAllResourcesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Search all resources response.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.SearchAllResourcesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.SearchAllResourcesResponse) com.google.cloud.asset.v1.SearchAllResourcesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.SearchAllResourcesResponse.class, com.google.cloud.asset.v1.SearchAllResourcesResponse.Builder.class); + com.google.cloud.asset.v1.SearchAllResourcesResponse.class, + com.google.cloud.asset.v1.SearchAllResourcesResponse.Builder.class); } // Construct using com.google.cloud.asset.v1.SearchAllResourcesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -381,9 +416,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor; } @java.lang.Override @@ -402,7 +437,8 @@ public com.google.cloud.asset.v1.SearchAllResourcesResponse build() { @java.lang.Override public com.google.cloud.asset.v1.SearchAllResourcesResponse buildPartial() { - com.google.cloud.asset.v1.SearchAllResourcesResponse result = new com.google.cloud.asset.v1.SearchAllResourcesResponse(this); + com.google.cloud.asset.v1.SearchAllResourcesResponse result = + new com.google.cloud.asset.v1.SearchAllResourcesResponse(this); int from_bitField0_ = bitField0_; if (resultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -422,38 +458,39 @@ public com.google.cloud.asset.v1.SearchAllResourcesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.SearchAllResourcesResponse) { - return mergeFrom((com.google.cloud.asset.v1.SearchAllResourcesResponse)other); + return mergeFrom((com.google.cloud.asset.v1.SearchAllResourcesResponse) other); } else { super.mergeFrom(other); return this; @@ -461,7 +498,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.SearchAllResourcesResponse other) { - if (other == com.google.cloud.asset.v1.SearchAllResourcesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1.SearchAllResourcesResponse.getDefaultInstance()) + return this; if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { @@ -480,9 +518,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.SearchAllResourcesResponse ot resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); - resultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResultsFieldBuilder() : null; + resultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResultsFieldBuilder() + : null; } else { resultsBuilder_.addAllMessages(other.results_); } @@ -518,30 +557,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.asset.v1.ResourceSearchResult m = - input.readMessage( - com.google.cloud.asset.v1.ResourceSearchResult.parser(), - extensionRegistry); - if (resultsBuilder_ == null) { - ensureResultsIsMutable(); - results_.add(m); - } else { - resultsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.asset.v1.ResourceSearchResult m = + input.readMessage( + com.google.cloud.asset.v1.ResourceSearchResult.parser(), extensionRegistry); + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(m); + } else { + resultsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -551,21 +592,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List results_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - results_ = new java.util.ArrayList(results_); + results_ = + new java.util.ArrayList(results_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.ResourceSearchResult, com.google.cloud.asset.v1.ResourceSearchResult.Builder, com.google.cloud.asset.v1.ResourceSearchResultOrBuilder> resultsBuilder_; + com.google.cloud.asset.v1.ResourceSearchResult, + com.google.cloud.asset.v1.ResourceSearchResult.Builder, + com.google.cloud.asset.v1.ResourceSearchResultOrBuilder> + resultsBuilder_; /** + * + * *
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -581,6 +630,8 @@ public java.util.List getResults
           }
         }
         /**
    +     *
    +     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -596,6 +647,8 @@ public int getResultsCount() {
           }
         }
         /**
    +     *
    +     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -611,6 +664,8 @@ public com.google.cloud.asset.v1.ResourceSearchResult getResults(int index) {
           }
         }
         /**
    +     *
    +     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -618,8 +673,7 @@ public com.google.cloud.asset.v1.ResourceSearchResult getResults(int index) {
          *
          * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
          */
    -    public Builder setResults(
    -        int index, com.google.cloud.asset.v1.ResourceSearchResult value) {
    +    public Builder setResults(int index, com.google.cloud.asset.v1.ResourceSearchResult value) {
           if (resultsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -633,6 +687,8 @@ public Builder setResults(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -652,6 +708,8 @@ public Builder setResults(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -673,6 +731,8 @@ public Builder addResults(com.google.cloud.asset.v1.ResourceSearchResult value)
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -680,8 +740,7 @@ public Builder addResults(com.google.cloud.asset.v1.ResourceSearchResult value)
          *
          * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
          */
    -    public Builder addResults(
    -        int index, com.google.cloud.asset.v1.ResourceSearchResult value) {
    +    public Builder addResults(int index, com.google.cloud.asset.v1.ResourceSearchResult value) {
           if (resultsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -695,6 +754,8 @@ public Builder addResults(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -714,6 +775,8 @@ public Builder addResults(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -733,6 +796,8 @@ public Builder addResults(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -744,8 +809,7 @@ public Builder addAllResults(
             java.lang.Iterable values) {
           if (resultsBuilder_ == null) {
             ensureResultsIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    -            values, results_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_);
             onChanged();
           } else {
             resultsBuilder_.addAllMessages(values);
    @@ -753,6 +817,8 @@ public Builder addAllResults(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -771,6 +837,8 @@ public Builder clearResults() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -789,6 +857,8 @@ public Builder removeResults(int index) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -796,11 +866,12 @@ public Builder removeResults(int index) {
          *
          * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
          */
    -    public com.google.cloud.asset.v1.ResourceSearchResult.Builder getResultsBuilder(
    -        int index) {
    +    public com.google.cloud.asset.v1.ResourceSearchResult.Builder getResultsBuilder(int index) {
           return getResultsFieldBuilder().getBuilder(index);
         }
         /**
    +     *
    +     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -808,14 +879,16 @@ public com.google.cloud.asset.v1.ResourceSearchResult.Builder getResultsBuilder(
          *
          * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
          */
    -    public com.google.cloud.asset.v1.ResourceSearchResultOrBuilder getResultsOrBuilder(
    -        int index) {
    +    public com.google.cloud.asset.v1.ResourceSearchResultOrBuilder getResultsOrBuilder(int index) {
           if (resultsBuilder_ == null) {
    -        return results_.get(index);  } else {
    +        return results_.get(index);
    +      } else {
             return resultsBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    +     *
    +     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -823,8 +896,8 @@ public com.google.cloud.asset.v1.ResourceSearchResultOrBuilder getResultsOrBuild
          *
          * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
          */
    -    public java.util.List 
    -         getResultsOrBuilderList() {
    +    public java.util.List
    +        getResultsOrBuilderList() {
           if (resultsBuilder_ != null) {
             return resultsBuilder_.getMessageOrBuilderList();
           } else {
    @@ -832,6 +905,8 @@ public com.google.cloud.asset.v1.ResourceSearchResultOrBuilder getResultsOrBuild
           }
         }
         /**
    +     *
    +     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -840,10 +915,12 @@ public com.google.cloud.asset.v1.ResourceSearchResultOrBuilder getResultsOrBuild
          * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
          */
         public com.google.cloud.asset.v1.ResourceSearchResult.Builder addResultsBuilder() {
    -      return getResultsFieldBuilder().addBuilder(
    -          com.google.cloud.asset.v1.ResourceSearchResult.getDefaultInstance());
    +      return getResultsFieldBuilder()
    +          .addBuilder(com.google.cloud.asset.v1.ResourceSearchResult.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -851,12 +928,13 @@ public com.google.cloud.asset.v1.ResourceSearchResult.Builder addResultsBuilder(
          *
          * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
          */
    -    public com.google.cloud.asset.v1.ResourceSearchResult.Builder addResultsBuilder(
    -        int index) {
    -      return getResultsFieldBuilder().addBuilder(
    -          index, com.google.cloud.asset.v1.ResourceSearchResult.getDefaultInstance());
    +    public com.google.cloud.asset.v1.ResourceSearchResult.Builder addResultsBuilder(int index) {
    +      return getResultsFieldBuilder()
    +          .addBuilder(index, com.google.cloud.asset.v1.ResourceSearchResult.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * A list of Resources that match the search query. It contains the resource
          * standard metadata information.
    @@ -864,20 +942,23 @@ public com.google.cloud.asset.v1.ResourceSearchResult.Builder addResultsBuilder(
          *
          * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
          */
    -    public java.util.List 
    -         getResultsBuilderList() {
    +    public java.util.List
    +        getResultsBuilderList() {
           return getResultsFieldBuilder().getBuilderList();
         }
    +
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -        com.google.cloud.asset.v1.ResourceSearchResult, com.google.cloud.asset.v1.ResourceSearchResult.Builder, com.google.cloud.asset.v1.ResourceSearchResultOrBuilder> 
    +            com.google.cloud.asset.v1.ResourceSearchResult,
    +            com.google.cloud.asset.v1.ResourceSearchResult.Builder,
    +            com.google.cloud.asset.v1.ResourceSearchResultOrBuilder>
             getResultsFieldBuilder() {
           if (resultsBuilder_ == null) {
    -        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.asset.v1.ResourceSearchResult, com.google.cloud.asset.v1.ResourceSearchResult.Builder, com.google.cloud.asset.v1.ResourceSearchResultOrBuilder>(
    -                results_,
    -                ((bitField0_ & 0x00000001) != 0),
    -                getParentForChildren(),
    -                isClean());
    +        resultsBuilder_ =
    +            new com.google.protobuf.RepeatedFieldBuilderV3<
    +                com.google.cloud.asset.v1.ResourceSearchResult,
    +                com.google.cloud.asset.v1.ResourceSearchResult.Builder,
    +                com.google.cloud.asset.v1.ResourceSearchResultOrBuilder>(
    +                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
             results_ = null;
           }
           return resultsBuilder_;
    @@ -885,6 +966,8 @@ public com.google.cloud.asset.v1.ResourceSearchResult.Builder addResultsBuilder(
     
         private java.lang.Object nextPageToken_ = "";
         /**
    +     *
    +     *
          * 
          * If there are more results than those appearing in this response, then
          * `next_page_token` is included. To get the next set of results, call this
    @@ -892,13 +975,13 @@ public com.google.cloud.asset.v1.ResourceSearchResult.Builder addResultsBuilder(
          * 
    * * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -907,6 +990,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
          * If there are more results than those appearing in this response, then
          * `next_page_token` is included. To get the next set of results, call this
    @@ -914,15 +999,14 @@ public java.lang.String getNextPageToken() {
          * 
    * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -930,6 +1014,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
          * If there are more results than those appearing in this response, then
          * `next_page_token` is included. To get the next set of results, call this
    @@ -937,20 +1023,22 @@ public java.lang.String getNextPageToken() {
          * 
    * * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
          * If there are more results than those appearing in this response, then
          * `next_page_token` is included. To get the next set of results, call this
    @@ -958,15 +1046,18 @@ public Builder setNextPageToken(
          * 
    * * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
          * If there are more results than those appearing in this response, then
          * `next_page_token` is included. To get the next set of results, call this
    @@ -974,23 +1065,23 @@ 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1000,12 +1091,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.SearchAllResourcesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.SearchAllResourcesResponse) private static final com.google.cloud.asset.v1.SearchAllResourcesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.SearchAllResourcesResponse(); } @@ -1014,27 +1105,27 @@ public static com.google.cloud.asset.v1.SearchAllResourcesResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchAllResourcesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAllResourcesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1049,6 +1140,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.asset.v1.SearchAllResourcesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponseOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponseOrBuilder.java similarity index 74% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponseOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponseOrBuilder.java index d0999fac75c7..2a0215998613 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponseOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface SearchAllResourcesResponseOrBuilder extends +public interface SearchAllResourcesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.SearchAllResourcesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * A list of Resources that match the search query. It contains the resource
        * standard metadata information.
    @@ -15,9 +33,10 @@ public interface SearchAllResourcesResponseOrBuilder extends
        *
        * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
        */
    -  java.util.List 
    -      getResultsList();
    +  java.util.List getResultsList();
       /**
    +   *
    +   *
        * 
        * A list of Resources that match the search query. It contains the resource
        * standard metadata information.
    @@ -27,6 +46,8 @@ public interface SearchAllResourcesResponseOrBuilder extends
        */
       com.google.cloud.asset.v1.ResourceSearchResult getResults(int index);
       /**
    +   *
    +   *
        * 
        * A list of Resources that match the search query. It contains the resource
        * standard metadata information.
    @@ -36,6 +57,8 @@ public interface SearchAllResourcesResponseOrBuilder extends
        */
       int getResultsCount();
       /**
    +   *
    +   *
        * 
        * A list of Resources that match the search query. It contains the resource
        * standard metadata information.
    @@ -43,9 +66,11 @@ public interface SearchAllResourcesResponseOrBuilder extends
        *
        * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
        */
    -  java.util.List 
    +  java.util.List
           getResultsOrBuilderList();
       /**
    +   *
    +   *
        * 
        * A list of Resources that match the search query. It contains the resource
        * standard metadata information.
    @@ -53,10 +78,11 @@ public interface SearchAllResourcesResponseOrBuilder extends
        *
        * repeated .google.cloud.asset.v1.ResourceSearchResult results = 1;
        */
    -  com.google.cloud.asset.v1.ResourceSearchResultOrBuilder getResultsOrBuilder(
    -      int index);
    +  com.google.cloud.asset.v1.ResourceSearchResultOrBuilder getResultsOrBuilder(int index);
     
       /**
    +   *
    +   *
        * 
        * If there are more results than those appearing in this response, then
        * `next_page_token` is included. To get the next set of results, call this
    @@ -64,10 +90,13 @@ com.google.cloud.asset.v1.ResourceSearchResultOrBuilder getResultsOrBuilder(
        * 
    * * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
        * If there are more results than those appearing in this response, then
        * `next_page_token` is included. To get the next set of results, call this
    @@ -75,8 +104,8 @@ com.google.cloud.asset.v1.ResourceSearchResultOrBuilder getResultsOrBuilder(
        * 
    * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchema.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchema.java similarity index 74% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchema.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchema.java index 604b22927f60..9acb834fb75f 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchema.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchema.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * A field in TableSchema.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.TableFieldSchema} */ -public final class TableFieldSchema extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TableFieldSchema extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.TableFieldSchema) TableFieldSchemaOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TableFieldSchema.newBuilder() to construct. private TableFieldSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TableFieldSchema() { field_ = ""; type_ = ""; @@ -28,32 +46,35 @@ private TableFieldSchema() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TableFieldSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_TableFieldSchema_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_TableFieldSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_TableFieldSchema_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_TableFieldSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.TableFieldSchema.class, com.google.cloud.asset.v1.TableFieldSchema.Builder.class); + com.google.cloud.asset.v1.TableFieldSchema.class, + com.google.cloud.asset.v1.TableFieldSchema.Builder.class); } public static final int FIELD_FIELD_NUMBER = 1; private volatile java.lang.Object field_; /** + * + * *
        * The field name. The name must contain only letters (a-z, A-Z),
        * numbers (0-9), or underscores (_), and must start with a letter or
    @@ -61,6 +82,7 @@ protected java.lang.Object newInstance(
        * 
    * * string field = 1; + * * @return The field. */ @java.lang.Override @@ -69,14 +91,15 @@ public java.lang.String getField() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); field_ = s; return s; } } /** + * + * *
        * The field name. The name must contain only letters (a-z, A-Z),
        * numbers (0-9), or underscores (_), and must start with a letter or
    @@ -84,16 +107,15 @@ public java.lang.String getField() {
        * 
    * * string field = 1; + * * @return The bytes for field. */ @java.lang.Override - public com.google.protobuf.ByteString - getFieldBytes() { + public com.google.protobuf.ByteString getFieldBytes() { java.lang.Object ref = field_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); field_ = b; return b; } else { @@ -104,6 +126,8 @@ public java.lang.String getField() { public static final int TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object type_; /** + * + * *
        * The field data type. Possible values include
        * * STRING
    @@ -123,6 +147,7 @@ public java.lang.String getField() {
        * 
    * * string type = 2; + * * @return The type. */ @java.lang.Override @@ -131,14 +156,15 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
        * The field data type. Possible values include
        * * STRING
    @@ -158,16 +184,15 @@ public java.lang.String getType() {
        * 
    * * string type = 2; + * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -178,12 +203,15 @@ public java.lang.String getType() { public static final int MODE_FIELD_NUMBER = 3; private volatile java.lang.Object mode_; /** + * + * *
        * The field mode. Possible values include NULLABLE, REQUIRED and
        * REPEATED. The default value is NULLABLE.
        * 
    * * string mode = 3; + * * @return The mode. */ @java.lang.Override @@ -192,30 +220,30 @@ public java.lang.String getMode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mode_ = s; return s; } } /** + * + * *
        * The field mode. Possible values include NULLABLE, REQUIRED and
        * REPEATED. The default value is NULLABLE.
        * 
    * * string mode = 3; + * * @return The bytes for mode. */ @java.lang.Override - public com.google.protobuf.ByteString - getModeBytes() { + public com.google.protobuf.ByteString getModeBytes() { java.lang.Object ref = mode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mode_ = b; return b; } else { @@ -226,6 +254,8 @@ public java.lang.String getMode() { public static final int FIELDS_FIELD_NUMBER = 4; private java.util.List fields_; /** + * + * *
        * Describes the nested schema fields if the type property is set
        * to RECORD.
    @@ -238,6 +268,8 @@ public java.util.List getFieldsList(
         return fields_;
       }
       /**
    +   *
    +   *
        * 
        * Describes the nested schema fields if the type property is set
        * to RECORD.
    @@ -246,11 +278,13 @@ public java.util.List getFieldsList(
        * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
        */
       @java.lang.Override
    -  public java.util.List 
    +  public java.util.List
           getFieldsOrBuilderList() {
         return fields_;
       }
       /**
    +   *
    +   *
        * 
        * Describes the nested schema fields if the type property is set
        * to RECORD.
    @@ -263,6 +297,8 @@ public int getFieldsCount() {
         return fields_.size();
       }
       /**
    +   *
    +   *
        * 
        * Describes the nested schema fields if the type property is set
        * to RECORD.
    @@ -275,6 +311,8 @@ public com.google.cloud.asset.v1.TableFieldSchema getFields(int index) {
         return fields_.get(index);
       }
       /**
    +   *
    +   *
        * 
        * Describes the nested schema fields if the type property is set
        * to RECORD.
    @@ -283,12 +321,12 @@ public com.google.cloud.asset.v1.TableFieldSchema getFields(int index) {
        * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
        */
       @java.lang.Override
    -  public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(
    -      int index) {
    +  public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(int index) {
         return fields_.get(index);
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -300,8 +338,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(field_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, field_);
         }
    @@ -333,8 +370,7 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mode_);
         }
         for (int i = 0; i < fields_.size(); i++) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(4, fields_.get(i));
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, fields_.get(i));
         }
         size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
    @@ -344,21 +380,18 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1.TableFieldSchema)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1.TableFieldSchema other = (com.google.cloud.asset.v1.TableFieldSchema) obj;
    +    com.google.cloud.asset.v1.TableFieldSchema other =
    +        (com.google.cloud.asset.v1.TableFieldSchema) obj;
     
    -    if (!getField()
    -        .equals(other.getField())) return false;
    -    if (!getType()
    -        .equals(other.getType())) return false;
    -    if (!getMode()
    -        .equals(other.getMode())) return false;
    -    if (!getFieldsList()
    -        .equals(other.getFieldsList())) return false;
    +    if (!getField().equals(other.getField())) return false;
    +    if (!getType().equals(other.getType())) return false;
    +    if (!getMode().equals(other.getMode())) return false;
    +    if (!getFieldsList().equals(other.getFieldsList())) return false;
         if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
    @@ -385,130 +418,136 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1.TableFieldSchema parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1.TableFieldSchema parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.TableFieldSchema parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.TableFieldSchema parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.TableFieldSchema 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.asset.v1.TableFieldSchema parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.TableFieldSchema parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.TableFieldSchema parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.TableFieldSchema parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.cloud.asset.v1.TableFieldSchema parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.cloud.asset.v1.TableFieldSchema parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.TableFieldSchema parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.TableFieldSchema parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.TableFieldSchema parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.cloud.asset.v1.TableFieldSchema prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * A field in TableSchema.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.TableFieldSchema} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.TableFieldSchema) com.google.cloud.asset.v1.TableFieldSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_TableFieldSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_TableFieldSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_TableFieldSchema_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_TableFieldSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.TableFieldSchema.class, com.google.cloud.asset.v1.TableFieldSchema.Builder.class); + com.google.cloud.asset.v1.TableFieldSchema.class, + com.google.cloud.asset.v1.TableFieldSchema.Builder.class); } // Construct using com.google.cloud.asset.v1.TableFieldSchema.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -529,9 +568,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_TableFieldSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_TableFieldSchema_descriptor; } @java.lang.Override @@ -550,7 +589,8 @@ public com.google.cloud.asset.v1.TableFieldSchema build() { @java.lang.Override public com.google.cloud.asset.v1.TableFieldSchema buildPartial() { - com.google.cloud.asset.v1.TableFieldSchema result = new com.google.cloud.asset.v1.TableFieldSchema(this); + com.google.cloud.asset.v1.TableFieldSchema result = + new com.google.cloud.asset.v1.TableFieldSchema(this); int from_bitField0_ = bitField0_; result.field_ = field_; result.type_ = type_; @@ -572,38 +612,39 @@ public com.google.cloud.asset.v1.TableFieldSchema buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.TableFieldSchema) { - return mergeFrom((com.google.cloud.asset.v1.TableFieldSchema)other); + return mergeFrom((com.google.cloud.asset.v1.TableFieldSchema) other); } else { super.mergeFrom(other); return this; @@ -642,9 +683,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.TableFieldSchema other) { fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000001); - fieldsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFieldsFieldBuilder() : null; + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFieldsFieldBuilder() + : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } @@ -676,40 +718,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - field_ = input.readStringRequireUtf8(); + case 10: + { + field_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - type_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + type_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - mode_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: + { + mode_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - com.google.cloud.asset.v1.TableFieldSchema m = - input.readMessage( - com.google.cloud.asset.v1.TableFieldSchema.parser(), - extensionRegistry); - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.add(m); - } else { - fieldsBuilder_.addMessage(m); - } - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + case 34: + { + com.google.cloud.asset.v1.TableFieldSchema m = + input.readMessage( + com.google.cloud.asset.v1.TableFieldSchema.parser(), extensionRegistry); + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(m); + } else { + fieldsBuilder_.addMessage(m); + } + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -719,10 +765,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object field_ = ""; /** + * + * *
          * The field name. The name must contain only letters (a-z, A-Z),
          * numbers (0-9), or underscores (_), and must start with a letter or
    @@ -730,13 +779,13 @@ public Builder mergeFrom(
          * 
    * * string field = 1; + * * @return The field. */ public java.lang.String getField() { java.lang.Object ref = field_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); field_ = s; return s; @@ -745,6 +794,8 @@ public java.lang.String getField() { } } /** + * + * *
          * The field name. The name must contain only letters (a-z, A-Z),
          * numbers (0-9), or underscores (_), and must start with a letter or
    @@ -752,15 +803,14 @@ public java.lang.String getField() {
          * 
    * * string field = 1; + * * @return The bytes for field. */ - public com.google.protobuf.ByteString - getFieldBytes() { + public com.google.protobuf.ByteString getFieldBytes() { java.lang.Object ref = field_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); field_ = b; return b; } else { @@ -768,6 +818,8 @@ public java.lang.String getField() { } } /** + * + * *
          * The field name. The name must contain only letters (a-z, A-Z),
          * numbers (0-9), or underscores (_), and must start with a letter or
    @@ -775,20 +827,22 @@ public java.lang.String getField() {
          * 
    * * string field = 1; + * * @param value The field to set. * @return This builder for chaining. */ - public Builder setField( - java.lang.String value) { + public Builder setField(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + field_ = value; onChanged(); return this; } /** + * + * *
          * The field name. The name must contain only letters (a-z, A-Z),
          * numbers (0-9), or underscores (_), and must start with a letter or
    @@ -796,15 +850,18 @@ public Builder setField(
          * 
    * * string field = 1; + * * @return This builder for chaining. */ public Builder clearField() { - + field_ = getDefaultInstance().getField(); onChanged(); return this; } /** + * + * *
          * The field name. The name must contain only letters (a-z, A-Z),
          * numbers (0-9), or underscores (_), and must start with a letter or
    @@ -812,16 +869,16 @@ public Builder clearField() {
          * 
    * * string field = 1; + * * @param value The bytes for field to set. * @return This builder for chaining. */ - public Builder setFieldBytes( - com.google.protobuf.ByteString value) { + public Builder setFieldBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + field_ = value; onChanged(); return this; @@ -829,6 +886,8 @@ public Builder setFieldBytes( private java.lang.Object type_ = ""; /** + * + * *
          * The field data type. Possible values include
          * * STRING
    @@ -848,13 +907,13 @@ public Builder setFieldBytes(
          * 
    * * string type = 2; + * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -863,6 +922,8 @@ public java.lang.String getType() { } } /** + * + * *
          * The field data type. Possible values include
          * * STRING
    @@ -882,15 +943,14 @@ public java.lang.String getType() {
          * 
    * * string type = 2; + * * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -898,6 +958,8 @@ public java.lang.String getType() { } } /** + * + * *
          * The field data type. Possible values include
          * * STRING
    @@ -917,20 +979,22 @@ public java.lang.String getType() {
          * 
    * * string type = 2; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - java.lang.String value) { + public Builder setType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** + * + * *
          * The field data type. Possible values include
          * * STRING
    @@ -950,15 +1014,18 @@ public Builder setType(
          * 
    * * string type = 2; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** + * + * *
          * The field data type. Possible values include
          * * STRING
    @@ -978,16 +1045,16 @@ public Builder clearType() {
          * 
    * * string type = 2; + * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; @@ -995,19 +1062,21 @@ public Builder setTypeBytes( private java.lang.Object mode_ = ""; /** + * + * *
          * The field mode. Possible values include NULLABLE, REQUIRED and
          * REPEATED. The default value is NULLABLE.
          * 
    * * string mode = 3; + * * @return The mode. */ public java.lang.String getMode() { java.lang.Object ref = mode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mode_ = s; return s; @@ -1016,21 +1085,22 @@ public java.lang.String getMode() { } } /** + * + * *
          * The field mode. Possible values include NULLABLE, REQUIRED and
          * REPEATED. The default value is NULLABLE.
          * 
    * * string mode = 3; + * * @return The bytes for mode. */ - public com.google.protobuf.ByteString - getModeBytes() { + public com.google.protobuf.ByteString getModeBytes() { java.lang.Object ref = mode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mode_ = b; return b; } else { @@ -1038,75 +1108,88 @@ public java.lang.String getMode() { } } /** + * + * *
          * The field mode. Possible values include NULLABLE, REQUIRED and
          * REPEATED. The default value is NULLABLE.
          * 
    * * string mode = 3; + * * @param value The mode to set. * @return This builder for chaining. */ - public Builder setMode( - java.lang.String value) { + public Builder setMode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mode_ = value; onChanged(); return this; } /** + * + * *
          * The field mode. Possible values include NULLABLE, REQUIRED and
          * REPEATED. The default value is NULLABLE.
          * 
    * * string mode = 3; + * * @return This builder for chaining. */ public Builder clearMode() { - + mode_ = getDefaultInstance().getMode(); onChanged(); return this; } /** + * + * *
          * The field mode. Possible values include NULLABLE, REQUIRED and
          * REPEATED. The default value is NULLABLE.
          * 
    * * string mode = 3; + * * @param value The bytes for mode to set. * @return This builder for chaining. */ - public Builder setModeBytes( - com.google.protobuf.ByteString value) { + public Builder setModeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mode_ = value; onChanged(); return this; } private java.util.List fields_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { fields_ = new java.util.ArrayList(fields_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.TableFieldSchema, com.google.cloud.asset.v1.TableFieldSchema.Builder, com.google.cloud.asset.v1.TableFieldSchemaOrBuilder> fieldsBuilder_; + com.google.cloud.asset.v1.TableFieldSchema, + com.google.cloud.asset.v1.TableFieldSchema.Builder, + com.google.cloud.asset.v1.TableFieldSchemaOrBuilder> + fieldsBuilder_; /** + * + * *
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1122,6 +1205,8 @@ public java.util.List getFieldsList(
           }
         }
         /**
    +     *
    +     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1137,6 +1222,8 @@ public int getFieldsCount() {
           }
         }
         /**
    +     *
    +     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1152,6 +1239,8 @@ public com.google.cloud.asset.v1.TableFieldSchema getFields(int index) {
           }
         }
         /**
    +     *
    +     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1159,8 +1248,7 @@ public com.google.cloud.asset.v1.TableFieldSchema getFields(int index) {
          *
          * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
          */
    -    public Builder setFields(
    -        int index, com.google.cloud.asset.v1.TableFieldSchema value) {
    +    public Builder setFields(int index, com.google.cloud.asset.v1.TableFieldSchema value) {
           if (fieldsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -1174,6 +1262,8 @@ public Builder setFields(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1193,6 +1283,8 @@ public Builder setFields(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1214,6 +1306,8 @@ public Builder addFields(com.google.cloud.asset.v1.TableFieldSchema value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1221,8 +1315,7 @@ public Builder addFields(com.google.cloud.asset.v1.TableFieldSchema value) {
          *
          * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
          */
    -    public Builder addFields(
    -        int index, com.google.cloud.asset.v1.TableFieldSchema value) {
    +    public Builder addFields(int index, com.google.cloud.asset.v1.TableFieldSchema value) {
           if (fieldsBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -1236,6 +1329,8 @@ public Builder addFields(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1243,8 +1338,7 @@ public Builder addFields(
          *
          * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
          */
    -    public Builder addFields(
    -        com.google.cloud.asset.v1.TableFieldSchema.Builder builderForValue) {
    +    public Builder addFields(com.google.cloud.asset.v1.TableFieldSchema.Builder builderForValue) {
           if (fieldsBuilder_ == null) {
             ensureFieldsIsMutable();
             fields_.add(builderForValue.build());
    @@ -1255,6 +1349,8 @@ public Builder addFields(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1274,6 +1370,8 @@ public Builder addFields(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1285,8 +1383,7 @@ public Builder addAllFields(
             java.lang.Iterable values) {
           if (fieldsBuilder_ == null) {
             ensureFieldsIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    -            values, fields_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_);
             onChanged();
           } else {
             fieldsBuilder_.addAllMessages(values);
    @@ -1294,6 +1391,8 @@ public Builder addAllFields(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1312,6 +1411,8 @@ public Builder clearFields() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1330,6 +1431,8 @@ public Builder removeFields(int index) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1337,11 +1440,12 @@ public Builder removeFields(int index) {
          *
          * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
          */
    -    public com.google.cloud.asset.v1.TableFieldSchema.Builder getFieldsBuilder(
    -        int index) {
    +    public com.google.cloud.asset.v1.TableFieldSchema.Builder getFieldsBuilder(int index) {
           return getFieldsFieldBuilder().getBuilder(index);
         }
         /**
    +     *
    +     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1349,14 +1453,16 @@ public com.google.cloud.asset.v1.TableFieldSchema.Builder getFieldsBuilder(
          *
          * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
          */
    -    public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(
    -        int index) {
    +    public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(int index) {
           if (fieldsBuilder_ == null) {
    -        return fields_.get(index);  } else {
    +        return fields_.get(index);
    +      } else {
             return fieldsBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    +     *
    +     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1364,8 +1470,8 @@ public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(
          *
          * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
          */
    -    public java.util.List 
    -         getFieldsOrBuilderList() {
    +    public java.util.List
    +        getFieldsOrBuilderList() {
           if (fieldsBuilder_ != null) {
             return fieldsBuilder_.getMessageOrBuilderList();
           } else {
    @@ -1373,6 +1479,8 @@ public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(
           }
         }
         /**
    +     *
    +     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1381,10 +1489,12 @@ public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(
          * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
          */
         public com.google.cloud.asset.v1.TableFieldSchema.Builder addFieldsBuilder() {
    -      return getFieldsFieldBuilder().addBuilder(
    -          com.google.cloud.asset.v1.TableFieldSchema.getDefaultInstance());
    +      return getFieldsFieldBuilder()
    +          .addBuilder(com.google.cloud.asset.v1.TableFieldSchema.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1392,12 +1502,13 @@ public com.google.cloud.asset.v1.TableFieldSchema.Builder addFieldsBuilder() {
          *
          * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
          */
    -    public com.google.cloud.asset.v1.TableFieldSchema.Builder addFieldsBuilder(
    -        int index) {
    -      return getFieldsFieldBuilder().addBuilder(
    -          index, com.google.cloud.asset.v1.TableFieldSchema.getDefaultInstance());
    +    public com.google.cloud.asset.v1.TableFieldSchema.Builder addFieldsBuilder(int index) {
    +      return getFieldsFieldBuilder()
    +          .addBuilder(index, com.google.cloud.asset.v1.TableFieldSchema.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * Describes the nested schema fields if the type property is set
          * to RECORD.
    @@ -1405,27 +1516,30 @@ public com.google.cloud.asset.v1.TableFieldSchema.Builder addFieldsBuilder(
          *
          * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
          */
    -    public java.util.List 
    -         getFieldsBuilderList() {
    +    public java.util.List
    +        getFieldsBuilderList() {
           return getFieldsFieldBuilder().getBuilderList();
         }
    +
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -        com.google.cloud.asset.v1.TableFieldSchema, com.google.cloud.asset.v1.TableFieldSchema.Builder, com.google.cloud.asset.v1.TableFieldSchemaOrBuilder> 
    +            com.google.cloud.asset.v1.TableFieldSchema,
    +            com.google.cloud.asset.v1.TableFieldSchema.Builder,
    +            com.google.cloud.asset.v1.TableFieldSchemaOrBuilder>
             getFieldsFieldBuilder() {
           if (fieldsBuilder_ == null) {
    -        fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.asset.v1.TableFieldSchema, com.google.cloud.asset.v1.TableFieldSchema.Builder, com.google.cloud.asset.v1.TableFieldSchemaOrBuilder>(
    -                fields_,
    -                ((bitField0_ & 0x00000001) != 0),
    -                getParentForChildren(),
    -                isClean());
    +        fieldsBuilder_ =
    +            new com.google.protobuf.RepeatedFieldBuilderV3<
    +                com.google.cloud.asset.v1.TableFieldSchema,
    +                com.google.cloud.asset.v1.TableFieldSchema.Builder,
    +                com.google.cloud.asset.v1.TableFieldSchemaOrBuilder>(
    +                fields_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
             fields_ = null;
           }
           return fieldsBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -1435,12 +1549,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.TableFieldSchema)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.TableFieldSchema)
       private static final com.google.cloud.asset.v1.TableFieldSchema DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1.TableFieldSchema();
       }
    @@ -1449,27 +1563,27 @@ public static com.google.cloud.asset.v1.TableFieldSchema getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public TableFieldSchema parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      Builder builder = newBuilder();
    -      try {
    -        builder.mergeFrom(input, extensionRegistry);
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(builder.buildPartial());
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    -            .setUnfinishedMessage(builder.buildPartial());
    -      }
    -      return builder.buildPartial();
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public TableFieldSchema parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1484,6 +1598,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1.TableFieldSchema getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchemaOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchemaOrBuilder.java
    similarity index 76%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchemaOrBuilder.java
    rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchemaOrBuilder.java
    index a77eb8040bc5..6b7e088ab70e 100644
    --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchemaOrBuilder.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableFieldSchemaOrBuilder.java
    @@ -1,13 +1,31 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
    -public interface TableFieldSchemaOrBuilder extends
    +public interface TableFieldSchemaOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.TableFieldSchema)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The field name. The name must contain only letters (a-z, A-Z),
        * numbers (0-9), or underscores (_), and must start with a letter or
    @@ -15,10 +33,13 @@ public interface TableFieldSchemaOrBuilder extends
        * 
    * * string field = 1; + * * @return The field. */ java.lang.String getField(); /** + * + * *
        * The field name. The name must contain only letters (a-z, A-Z),
        * numbers (0-9), or underscores (_), and must start with a letter or
    @@ -26,12 +47,14 @@ public interface TableFieldSchemaOrBuilder extends
        * 
    * * string field = 1; + * * @return The bytes for field. */ - com.google.protobuf.ByteString - getFieldBytes(); + com.google.protobuf.ByteString getFieldBytes(); /** + * + * *
        * The field data type. Possible values include
        * * STRING
    @@ -51,10 +74,13 @@ public interface TableFieldSchemaOrBuilder extends
        * 
    * * string type = 2; + * * @return The type. */ java.lang.String getType(); /** + * + * *
        * The field data type. Possible values include
        * * STRING
    @@ -74,34 +100,41 @@ public interface TableFieldSchemaOrBuilder extends
        * 
    * * string type = 2; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
        * The field mode. Possible values include NULLABLE, REQUIRED and
        * REPEATED. The default value is NULLABLE.
        * 
    * * string mode = 3; + * * @return The mode. */ java.lang.String getMode(); /** + * + * *
        * The field mode. Possible values include NULLABLE, REQUIRED and
        * REPEATED. The default value is NULLABLE.
        * 
    * * string mode = 3; + * * @return The bytes for mode. */ - com.google.protobuf.ByteString - getModeBytes(); + com.google.protobuf.ByteString getModeBytes(); /** + * + * *
        * Describes the nested schema fields if the type property is set
        * to RECORD.
    @@ -109,9 +142,10 @@ public interface TableFieldSchemaOrBuilder extends
        *
        * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
        */
    -  java.util.List 
    -      getFieldsList();
    +  java.util.List getFieldsList();
       /**
    +   *
    +   *
        * 
        * Describes the nested schema fields if the type property is set
        * to RECORD.
    @@ -121,6 +155,8 @@ public interface TableFieldSchemaOrBuilder extends
        */
       com.google.cloud.asset.v1.TableFieldSchema getFields(int index);
       /**
    +   *
    +   *
        * 
        * Describes the nested schema fields if the type property is set
        * to RECORD.
    @@ -130,6 +166,8 @@ public interface TableFieldSchemaOrBuilder extends
        */
       int getFieldsCount();
       /**
    +   *
    +   *
        * 
        * Describes the nested schema fields if the type property is set
        * to RECORD.
    @@ -137,9 +175,11 @@ public interface TableFieldSchemaOrBuilder extends
        *
        * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
        */
    -  java.util.List 
    +  java.util.List
           getFieldsOrBuilderList();
       /**
    +   *
    +   *
        * 
        * Describes the nested schema fields if the type property is set
        * to RECORD.
    @@ -147,6 +187,5 @@ public interface TableFieldSchemaOrBuilder extends
        *
        * repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
        */
    -  com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(
    -      int index);
    +  com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(int index);
     }
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchema.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchema.java
    similarity index 70%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchema.java
    rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchema.java
    index c475f4cbe45d..3561b44fc316 100644
    --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchema.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchema.java
    @@ -1,56 +1,77 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
     /**
    + *
    + *
      * 
      * BigQuery Compatible table schema.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.TableSchema} */ -public final class TableSchema extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TableSchema extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.TableSchema) TableSchemaOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TableSchema.newBuilder() to construct. private TableSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TableSchema() { fields_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TableSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_TableSchema_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_TableSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_TableSchema_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_TableSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.TableSchema.class, com.google.cloud.asset.v1.TableSchema.Builder.class); + com.google.cloud.asset.v1.TableSchema.class, + com.google.cloud.asset.v1.TableSchema.Builder.class); } public static final int FIELDS_FIELD_NUMBER = 1; private java.util.List fields_; /** + * + * *
        * Describes the fields in a table.
        * 
    @@ -62,6 +83,8 @@ public java.util.List getFieldsList( return fields_; } /** + * + * *
        * Describes the fields in a table.
        * 
    @@ -69,11 +92,13 @@ public java.util.List getFieldsList( * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFieldsOrBuilderList() { return fields_; } /** + * + * *
        * Describes the fields in a table.
        * 
    @@ -85,6 +110,8 @@ public int getFieldsCount() { return fields_.size(); } /** + * + * *
        * Describes the fields in a table.
        * 
    @@ -96,6 +123,8 @@ public com.google.cloud.asset.v1.TableFieldSchema getFields(int index) { return fields_.get(index); } /** + * + * *
        * Describes the fields in a table.
        * 
    @@ -103,12 +132,12 @@ public com.google.cloud.asset.v1.TableFieldSchema getFields(int index) { * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ @java.lang.Override - public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder( - int index) { + public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(int index) { return fields_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +149,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < fields_.size(); i++) { output.writeMessage(1, fields_.get(i)); } @@ -135,8 +163,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < fields_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, fields_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fields_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -146,15 +173,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.TableSchema)) { return super.equals(obj); } com.google.cloud.asset.v1.TableSchema other = (com.google.cloud.asset.v1.TableSchema) obj; - if (!getFieldsList() - .equals(other.getFieldsList())) return false; + if (!getFieldsList().equals(other.getFieldsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -175,130 +201,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.TableSchema parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.TableSchema parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.TableSchema parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.TableSchema parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.asset.v1.TableSchema parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.TableSchema 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.asset.v1.TableSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.TableSchema parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.TableSchema parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.TableSchema parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.TableSchema parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.TableSchema parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.TableSchema parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.TableSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.TableSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * BigQuery Compatible table schema.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.TableSchema} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.TableSchema) com.google.cloud.asset.v1.TableSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_TableSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_TableSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_TableSchema_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_TableSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.TableSchema.class, com.google.cloud.asset.v1.TableSchema.Builder.class); + com.google.cloud.asset.v1.TableSchema.class, + com.google.cloud.asset.v1.TableSchema.Builder.class); } // Construct using com.google.cloud.asset.v1.TableSchema.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -313,9 +344,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_TableSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_TableSchema_descriptor; } @java.lang.Override @@ -334,7 +365,8 @@ public com.google.cloud.asset.v1.TableSchema build() { @java.lang.Override public com.google.cloud.asset.v1.TableSchema buildPartial() { - com.google.cloud.asset.v1.TableSchema result = new com.google.cloud.asset.v1.TableSchema(this); + com.google.cloud.asset.v1.TableSchema result = + new com.google.cloud.asset.v1.TableSchema(this); int from_bitField0_ = bitField0_; if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -353,38 +385,39 @@ public com.google.cloud.asset.v1.TableSchema buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.TableSchema) { - return mergeFrom((com.google.cloud.asset.v1.TableSchema)other); + return mergeFrom((com.google.cloud.asset.v1.TableSchema) other); } else { super.mergeFrom(other); return this; @@ -411,9 +444,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1.TableSchema other) { fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000001); - fieldsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFieldsFieldBuilder() : null; + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFieldsFieldBuilder() + : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } @@ -445,25 +479,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.asset.v1.TableFieldSchema m = - input.readMessage( - com.google.cloud.asset.v1.TableFieldSchema.parser(), - extensionRegistry); - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.add(m); - } else { - fieldsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.asset.v1.TableFieldSchema m = + input.readMessage( + com.google.cloud.asset.v1.TableFieldSchema.parser(), extensionRegistry); + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(m); + } else { + fieldsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -473,21 +508,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List fields_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { fields_ = new java.util.ArrayList(fields_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.TableFieldSchema, com.google.cloud.asset.v1.TableFieldSchema.Builder, com.google.cloud.asset.v1.TableFieldSchemaOrBuilder> fieldsBuilder_; + com.google.cloud.asset.v1.TableFieldSchema, + com.google.cloud.asset.v1.TableFieldSchema.Builder, + com.google.cloud.asset.v1.TableFieldSchemaOrBuilder> + fieldsBuilder_; /** + * + * *
          * Describes the fields in a table.
          * 
    @@ -502,6 +544,8 @@ public java.util.List getFieldsList( } } /** + * + * *
          * Describes the fields in a table.
          * 
    @@ -516,6 +560,8 @@ public int getFieldsCount() { } } /** + * + * *
          * Describes the fields in a table.
          * 
    @@ -530,14 +576,15 @@ public com.google.cloud.asset.v1.TableFieldSchema getFields(int index) { } } /** + * + * *
          * Describes the fields in a table.
          * 
    * * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ - public Builder setFields( - int index, com.google.cloud.asset.v1.TableFieldSchema value) { + public Builder setFields(int index, com.google.cloud.asset.v1.TableFieldSchema value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -551,6 +598,8 @@ public Builder setFields( return this; } /** + * + * *
          * Describes the fields in a table.
          * 
    @@ -569,6 +618,8 @@ public Builder setFields( return this; } /** + * + * *
          * Describes the fields in a table.
          * 
    @@ -589,14 +640,15 @@ public Builder addFields(com.google.cloud.asset.v1.TableFieldSchema value) { return this; } /** + * + * *
          * Describes the fields in a table.
          * 
    * * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ - public Builder addFields( - int index, com.google.cloud.asset.v1.TableFieldSchema value) { + public Builder addFields(int index, com.google.cloud.asset.v1.TableFieldSchema value) { if (fieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -610,14 +662,15 @@ public Builder addFields( return this; } /** + * + * *
          * Describes the fields in a table.
          * 
    * * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ - public Builder addFields( - com.google.cloud.asset.v1.TableFieldSchema.Builder builderForValue) { + public Builder addFields(com.google.cloud.asset.v1.TableFieldSchema.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(builderForValue.build()); @@ -628,6 +681,8 @@ public Builder addFields( return this; } /** + * + * *
          * Describes the fields in a table.
          * 
    @@ -646,6 +701,8 @@ public Builder addFields( return this; } /** + * + * *
          * Describes the fields in a table.
          * 
    @@ -656,8 +713,7 @@ public Builder addAllFields( java.lang.Iterable values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); @@ -665,6 +721,8 @@ public Builder addAllFields( return this; } /** + * + * *
          * Describes the fields in a table.
          * 
    @@ -682,6 +740,8 @@ public Builder clearFields() { return this; } /** + * + * *
          * Describes the fields in a table.
          * 
    @@ -699,39 +759,44 @@ public Builder removeFields(int index) { return this; } /** + * + * *
          * Describes the fields in a table.
          * 
    * * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ - public com.google.cloud.asset.v1.TableFieldSchema.Builder getFieldsBuilder( - int index) { + public com.google.cloud.asset.v1.TableFieldSchema.Builder getFieldsBuilder(int index) { return getFieldsFieldBuilder().getBuilder(index); } /** + * + * *
          * Describes the fields in a table.
          * 
    * * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ - public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder( - int index) { + public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(int index) { if (fieldsBuilder_ == null) { - return fields_.get(index); } else { + return fields_.get(index); + } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
          * Describes the fields in a table.
          * 
    * * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ - public java.util.List - getFieldsOrBuilderList() { + public java.util.List + getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { @@ -739,6 +804,8 @@ public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder( } } /** + * + * *
          * Describes the fields in a table.
          * 
    @@ -746,49 +813,55 @@ public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder( * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ public com.google.cloud.asset.v1.TableFieldSchema.Builder addFieldsBuilder() { - return getFieldsFieldBuilder().addBuilder( - com.google.cloud.asset.v1.TableFieldSchema.getDefaultInstance()); + return getFieldsFieldBuilder() + .addBuilder(com.google.cloud.asset.v1.TableFieldSchema.getDefaultInstance()); } /** + * + * *
          * Describes the fields in a table.
          * 
    * * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ - public com.google.cloud.asset.v1.TableFieldSchema.Builder addFieldsBuilder( - int index) { - return getFieldsFieldBuilder().addBuilder( - index, com.google.cloud.asset.v1.TableFieldSchema.getDefaultInstance()); + public com.google.cloud.asset.v1.TableFieldSchema.Builder addFieldsBuilder(int index) { + return getFieldsFieldBuilder() + .addBuilder(index, com.google.cloud.asset.v1.TableFieldSchema.getDefaultInstance()); } /** + * + * *
          * Describes the fields in a table.
          * 
    * * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ - public java.util.List - getFieldsBuilderList() { + public java.util.List + getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.TableFieldSchema, com.google.cloud.asset.v1.TableFieldSchema.Builder, com.google.cloud.asset.v1.TableFieldSchemaOrBuilder> + com.google.cloud.asset.v1.TableFieldSchema, + com.google.cloud.asset.v1.TableFieldSchema.Builder, + com.google.cloud.asset.v1.TableFieldSchemaOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { - fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1.TableFieldSchema, com.google.cloud.asset.v1.TableFieldSchema.Builder, com.google.cloud.asset.v1.TableFieldSchemaOrBuilder>( - fields_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + fieldsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.TableFieldSchema, + com.google.cloud.asset.v1.TableFieldSchema.Builder, + com.google.cloud.asset.v1.TableFieldSchemaOrBuilder>( + fields_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); fields_ = null; } return fieldsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -798,12 +871,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.TableSchema) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.TableSchema) private static final com.google.cloud.asset.v1.TableSchema DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.TableSchema(); } @@ -812,27 +885,27 @@ public static com.google.cloud.asset.v1.TableSchema getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -847,6 +920,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.TableSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchemaOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchemaOrBuilder.java similarity index 61% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchemaOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchemaOrBuilder.java index 80451085b595..ec840372a91e 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchemaOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TableSchemaOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface TableSchemaOrBuilder extends +public interface TableSchemaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.TableSchema) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Describes the fields in a table.
        * 
    * * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ - java.util.List - getFieldsList(); + java.util.List getFieldsList(); /** + * + * *
        * Describes the fields in a table.
        * 
    @@ -25,6 +44,8 @@ public interface TableSchemaOrBuilder extends */ com.google.cloud.asset.v1.TableFieldSchema getFields(int index); /** + * + * *
        * Describes the fields in a table.
        * 
    @@ -33,21 +54,24 @@ public interface TableSchemaOrBuilder extends */ int getFieldsCount(); /** + * + * *
        * Describes the fields in a table.
        * 
    * * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ - java.util.List + java.util.List getFieldsOrBuilderList(); /** + * + * *
        * Describes the fields in a table.
        * 
    * * repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; */ - com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder( - int index); + com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(int index); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java similarity index 72% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java index 5c6db4d03e10..eadbba5e6edd 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAsset.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** + * + * *
      * An asset in Google Cloud and its temporal metadata, including the time window
      * when it was observed and its status during that window.
    @@ -11,54 +28,59 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.TemporalAsset}
      */
    -public final class TemporalAsset extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class TemporalAsset extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.TemporalAsset)
         TemporalAssetOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use TemporalAsset.newBuilder() to construct.
       private TemporalAsset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private TemporalAsset() {
         priorAssetState_ = 0;
       }
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(
    -      UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new TemporalAsset();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_TemporalAsset_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetProto
    +        .internal_static_google_cloud_asset_v1_TemporalAsset_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_TemporalAsset_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetProto
    +        .internal_static_google_cloud_asset_v1_TemporalAsset_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1.TemporalAsset.class, com.google.cloud.asset.v1.TemporalAsset.Builder.class);
    +            com.google.cloud.asset.v1.TemporalAsset.class,
    +            com.google.cloud.asset.v1.TemporalAsset.Builder.class);
       }
     
       /**
    +   *
    +   *
        * 
        * State of prior asset.
        * 
    * * Protobuf enum {@code google.cloud.asset.v1.TemporalAsset.PriorAssetState} */ - public enum PriorAssetState - implements com.google.protobuf.ProtocolMessageEnum { + public enum PriorAssetState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
          * prior_asset is not applicable for the current asset.
          * 
    @@ -67,6 +89,8 @@ public enum PriorAssetState */ PRIOR_ASSET_STATE_UNSPECIFIED(0), /** + * + * *
          * prior_asset is populated correctly.
          * 
    @@ -75,6 +99,8 @@ public enum PriorAssetState */ PRESENT(1), /** + * + * *
          * Failed to set prior_asset.
          * 
    @@ -83,6 +109,8 @@ public enum PriorAssetState */ INVALID(2), /** + * + * *
          * Current asset is the first known state.
          * 
    @@ -91,6 +119,8 @@ public enum PriorAssetState */ DOES_NOT_EXIST(3), /** + * + * *
          * prior_asset is a deletion.
          * 
    @@ -102,6 +132,8 @@ public enum PriorAssetState ; /** + * + * *
          * prior_asset is not applicable for the current asset.
          * 
    @@ -110,6 +142,8 @@ public enum PriorAssetState */ public static final int PRIOR_ASSET_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
          * prior_asset is populated correctly.
          * 
    @@ -118,6 +152,8 @@ public enum PriorAssetState */ public static final int PRESENT_VALUE = 1; /** + * + * *
          * Failed to set prior_asset.
          * 
    @@ -126,6 +162,8 @@ public enum PriorAssetState */ public static final int INVALID_VALUE = 2; /** + * + * *
          * Current asset is the first known state.
          * 
    @@ -134,6 +172,8 @@ public enum PriorAssetState */ public static final int DOES_NOT_EXIST_VALUE = 3; /** + * + * *
          * prior_asset is a deletion.
          * 
    @@ -142,7 +182,6 @@ public enum PriorAssetState */ public static final int DELETED_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -167,41 +206,46 @@ public static PriorAssetState valueOf(int value) { */ public static PriorAssetState forNumber(int value) { switch (value) { - case 0: return PRIOR_ASSET_STATE_UNSPECIFIED; - case 1: return PRESENT; - case 2: return INVALID; - case 3: return DOES_NOT_EXIST; - case 4: return DELETED; - default: return null; + case 0: + return PRIOR_ASSET_STATE_UNSPECIFIED; + case 1: + return PRESENT; + case 2: + return INVALID; + case 3: + return DOES_NOT_EXIST; + case 4: + return DELETED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - PriorAssetState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PriorAssetState findValueByNumber(int number) { - return PriorAssetState.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PriorAssetState findValueByNumber(int number) { + return PriorAssetState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.asset.v1.TemporalAsset.getDescriptor().getEnumTypes().get(0); } @@ -210,8 +254,7 @@ public PriorAssetState findValueByNumber(int number) { public static PriorAssetState valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -231,11 +274,14 @@ private PriorAssetState(int value) { public static final int WINDOW_FIELD_NUMBER = 1; private com.google.cloud.asset.v1.TimeWindow window_; /** + * + * *
        * The time window when the asset data and state was observed.
        * 
    * * .google.cloud.asset.v1.TimeWindow window = 1; + * * @return Whether the window field is set. */ @java.lang.Override @@ -243,11 +289,14 @@ public boolean hasWindow() { return window_ != null; } /** + * + * *
        * The time window when the asset data and state was observed.
        * 
    * * .google.cloud.asset.v1.TimeWindow window = 1; + * * @return The window. */ @java.lang.Override @@ -255,6 +304,8 @@ public com.google.cloud.asset.v1.TimeWindow getWindow() { return window_ == null ? com.google.cloud.asset.v1.TimeWindow.getDefaultInstance() : window_; } /** + * + * *
        * The time window when the asset data and state was observed.
        * 
    @@ -269,11 +320,14 @@ public com.google.cloud.asset.v1.TimeWindowOrBuilder getWindowOrBuilder() { public static final int DELETED_FIELD_NUMBER = 2; private boolean deleted_; /** + * + * *
        * Whether the asset has been deleted or not.
        * 
    * * bool deleted = 2; + * * @return The deleted. */ @java.lang.Override @@ -284,11 +338,14 @@ public boolean getDeleted() { public static final int ASSET_FIELD_NUMBER = 3; private com.google.cloud.asset.v1.Asset asset_; /** + * + * *
        * An asset in Google Cloud.
        * 
    * * .google.cloud.asset.v1.Asset asset = 3; + * * @return Whether the asset field is set. */ @java.lang.Override @@ -296,11 +353,14 @@ public boolean hasAsset() { return asset_ != null; } /** + * + * *
        * An asset in Google Cloud.
        * 
    * * .google.cloud.asset.v1.Asset asset = 3; + * * @return The asset. */ @java.lang.Override @@ -308,6 +368,8 @@ public com.google.cloud.asset.v1.Asset getAsset() { return asset_ == null ? com.google.cloud.asset.v1.Asset.getDefaultInstance() : asset_; } /** + * + * *
        * An asset in Google Cloud.
        * 
    @@ -322,39 +384,53 @@ public com.google.cloud.asset.v1.AssetOrBuilder getAssetOrBuilder() { public static final int PRIOR_ASSET_STATE_FIELD_NUMBER = 4; private int priorAssetState_; /** + * + * *
        * State of prior_asset.
        * 
    * * .google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4; + * * @return The enum numeric value on the wire for priorAssetState. */ - @java.lang.Override public int getPriorAssetStateValue() { + @java.lang.Override + public int getPriorAssetStateValue() { return priorAssetState_; } /** + * + * *
        * State of prior_asset.
        * 
    * * .google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4; + * * @return The priorAssetState. */ - @java.lang.Override public com.google.cloud.asset.v1.TemporalAsset.PriorAssetState getPriorAssetState() { + @java.lang.Override + public com.google.cloud.asset.v1.TemporalAsset.PriorAssetState getPriorAssetState() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.TemporalAsset.PriorAssetState result = com.google.cloud.asset.v1.TemporalAsset.PriorAssetState.valueOf(priorAssetState_); - return result == null ? com.google.cloud.asset.v1.TemporalAsset.PriorAssetState.UNRECOGNIZED : result; + com.google.cloud.asset.v1.TemporalAsset.PriorAssetState result = + com.google.cloud.asset.v1.TemporalAsset.PriorAssetState.valueOf(priorAssetState_); + return result == null + ? com.google.cloud.asset.v1.TemporalAsset.PriorAssetState.UNRECOGNIZED + : result; } public static final int PRIOR_ASSET_FIELD_NUMBER = 5; private com.google.cloud.asset.v1.Asset priorAsset_; /** + * + * *
        * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
        * Currently this is only set for responses in Real-Time Feed.
        * 
    * * .google.cloud.asset.v1.Asset prior_asset = 5; + * * @return Whether the priorAsset field is set. */ @java.lang.Override @@ -362,12 +438,15 @@ public boolean hasPriorAsset() { return priorAsset_ != null; } /** + * + * *
        * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
        * Currently this is only set for responses in Real-Time Feed.
        * 
    * * .google.cloud.asset.v1.Asset prior_asset = 5; + * * @return The priorAsset. */ @java.lang.Override @@ -375,6 +454,8 @@ public com.google.cloud.asset.v1.Asset getPriorAsset() { return priorAsset_ == null ? com.google.cloud.asset.v1.Asset.getDefaultInstance() : priorAsset_; } /** + * + * *
        * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
        * Currently this is only set for responses in Real-Time Feed.
    @@ -388,6 +469,7 @@ public com.google.cloud.asset.v1.AssetOrBuilder getPriorAssetOrBuilder() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -399,8 +481,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (window_ != null) {
           output.writeMessage(1, getWindow());
         }
    @@ -410,7 +491,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
         if (asset_ != null) {
           output.writeMessage(3, getAsset());
         }
    -    if (priorAssetState_ != com.google.cloud.asset.v1.TemporalAsset.PriorAssetState.PRIOR_ASSET_STATE_UNSPECIFIED.getNumber()) {
    +    if (priorAssetState_
    +        != com.google.cloud.asset.v1.TemporalAsset.PriorAssetState.PRIOR_ASSET_STATE_UNSPECIFIED
    +            .getNumber()) {
           output.writeEnum(4, priorAssetState_);
         }
         if (priorAsset_ != null) {
    @@ -426,24 +509,21 @@ public int getSerializedSize() {
     
         size = 0;
         if (window_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(1, getWindow());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWindow());
         }
         if (deleted_ != false) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeBoolSize(2, deleted_);
    +      size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, deleted_);
         }
         if (asset_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(3, getAsset());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAsset());
         }
    -    if (priorAssetState_ != com.google.cloud.asset.v1.TemporalAsset.PriorAssetState.PRIOR_ASSET_STATE_UNSPECIFIED.getNumber()) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeEnumSize(4, priorAssetState_);
    +    if (priorAssetState_
    +        != com.google.cloud.asset.v1.TemporalAsset.PriorAssetState.PRIOR_ASSET_STATE_UNSPECIFIED
    +            .getNumber()) {
    +      size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, priorAssetState_);
         }
         if (priorAsset_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(5, getPriorAsset());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPriorAsset());
         }
         size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
    @@ -453,7 +533,7 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1.TemporalAsset)) {
           return super.equals(obj);
    @@ -462,21 +542,17 @@ public boolean equals(final java.lang.Object obj) {
     
         if (hasWindow() != other.hasWindow()) return false;
         if (hasWindow()) {
    -      if (!getWindow()
    -          .equals(other.getWindow())) return false;
    +      if (!getWindow().equals(other.getWindow())) return false;
         }
    -    if (getDeleted()
    -        != other.getDeleted()) return false;
    +    if (getDeleted() != other.getDeleted()) return false;
         if (hasAsset() != other.hasAsset()) return false;
         if (hasAsset()) {
    -      if (!getAsset()
    -          .equals(other.getAsset())) return false;
    +      if (!getAsset().equals(other.getAsset())) return false;
         }
         if (priorAssetState_ != other.priorAssetState_) return false;
         if (hasPriorAsset() != other.hasPriorAsset()) return false;
         if (hasPriorAsset()) {
    -      if (!getPriorAsset()
    -          .equals(other.getPriorAsset())) return false;
    +      if (!getPriorAsset().equals(other.getPriorAsset())) return false;
         }
         if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
    @@ -494,8 +570,7 @@ public int hashCode() {
           hash = (53 * hash) + getWindow().hashCode();
         }
         hash = (37 * hash) + DELETED_FIELD_NUMBER;
    -    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
    -        getDeleted());
    +    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeleted());
         if (hasAsset()) {
           hash = (37 * hash) + ASSET_FIELD_NUMBER;
           hash = (53 * hash) + getAsset().hashCode();
    @@ -511,97 +586,104 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1.TemporalAsset parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1.TemporalAsset parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.TemporalAsset parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.TemporalAsset parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.TemporalAsset 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.asset.v1.TemporalAsset parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.TemporalAsset parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.TemporalAsset parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.TemporalAsset parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.cloud.asset.v1.TemporalAsset parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.cloud.asset.v1.TemporalAsset parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.TemporalAsset parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.TemporalAsset parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.TemporalAsset parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.cloud.asset.v1.TemporalAsset prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * An asset in Google Cloud and its temporal metadata, including the time window
        * when it was observed and its status during that window.
    @@ -609,33 +691,32 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.asset.v1.TemporalAsset}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.TemporalAsset)
           com.google.cloud.asset.v1.TemporalAssetOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_TemporalAsset_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_TemporalAsset_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_TemporalAsset_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_TemporalAsset_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.TemporalAsset.class, com.google.cloud.asset.v1.TemporalAsset.Builder.class);
    +              com.google.cloud.asset.v1.TemporalAsset.class,
    +              com.google.cloud.asset.v1.TemporalAsset.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.TemporalAsset.newBuilder()
    -    private Builder() {
    -
    -    }
    +    private Builder() {}
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -665,9 +746,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_TemporalAsset_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_TemporalAsset_descriptor;
         }
     
         @java.lang.Override
    @@ -686,7 +767,8 @@ public com.google.cloud.asset.v1.TemporalAsset build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1.TemporalAsset buildPartial() {
    -      com.google.cloud.asset.v1.TemporalAsset result = new com.google.cloud.asset.v1.TemporalAsset(this);
    +      com.google.cloud.asset.v1.TemporalAsset result =
    +          new com.google.cloud.asset.v1.TemporalAsset(this);
           if (windowBuilder_ == null) {
             result.window_ = window_;
           } else {
    @@ -712,38 +794,39 @@ public com.google.cloud.asset.v1.TemporalAsset buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.TemporalAsset) {
    -        return mergeFrom((com.google.cloud.asset.v1.TemporalAsset)other);
    +        return mergeFrom((com.google.cloud.asset.v1.TemporalAsset) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -793,43 +876,43 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
    -            case 10: {
    -              input.readMessage(
    -                  getWindowFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -
    -              break;
    -            } // case 10
    -            case 16: {
    -              deleted_ = input.readBool();
    -
    -              break;
    -            } // case 16
    -            case 26: {
    -              input.readMessage(
    -                  getAssetFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -
    -              break;
    -            } // case 26
    -            case 32: {
    -              priorAssetState_ = input.readEnum();
    -
    -              break;
    -            } // case 32
    -            case 42: {
    -              input.readMessage(
    -                  getPriorAssetFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -
    -              break;
    -            } // case 42
    -            default: {
    -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                done = true; // was an endgroup tag
    -              }
    -              break;
    -            } // default:
    +            case 10:
    +              {
    +                input.readMessage(getWindowFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 10
    +            case 16:
    +              {
    +                deleted_ = input.readBool();
    +
    +                break;
    +              } // case 16
    +            case 26:
    +              {
    +                input.readMessage(getAssetFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 26
    +            case 32:
    +              {
    +                priorAssetState_ = input.readEnum();
    +
    +                break;
    +              } // case 32
    +            case 42:
    +              {
    +                input.readMessage(getPriorAssetFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 42
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -842,34 +925,47 @@ public Builder mergeFrom(
     
         private com.google.cloud.asset.v1.TimeWindow window_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1.TimeWindow, com.google.cloud.asset.v1.TimeWindow.Builder, com.google.cloud.asset.v1.TimeWindowOrBuilder> windowBuilder_;
    +            com.google.cloud.asset.v1.TimeWindow,
    +            com.google.cloud.asset.v1.TimeWindow.Builder,
    +            com.google.cloud.asset.v1.TimeWindowOrBuilder>
    +        windowBuilder_;
         /**
    +     *
    +     *
          * 
          * The time window when the asset data and state was observed.
          * 
    * * .google.cloud.asset.v1.TimeWindow window = 1; + * * @return Whether the window field is set. */ public boolean hasWindow() { return windowBuilder_ != null || window_ != null; } /** + * + * *
          * The time window when the asset data and state was observed.
          * 
    * * .google.cloud.asset.v1.TimeWindow window = 1; + * * @return The window. */ public com.google.cloud.asset.v1.TimeWindow getWindow() { if (windowBuilder_ == null) { - return window_ == null ? com.google.cloud.asset.v1.TimeWindow.getDefaultInstance() : window_; + return window_ == null + ? com.google.cloud.asset.v1.TimeWindow.getDefaultInstance() + : window_; } else { return windowBuilder_.getMessage(); } } /** + * + * *
          * The time window when the asset data and state was observed.
          * 
    @@ -890,14 +986,15 @@ public Builder setWindow(com.google.cloud.asset.v1.TimeWindow value) { return this; } /** + * + * *
          * The time window when the asset data and state was observed.
          * 
    * * .google.cloud.asset.v1.TimeWindow window = 1; */ - public Builder setWindow( - com.google.cloud.asset.v1.TimeWindow.Builder builderForValue) { + public Builder setWindow(com.google.cloud.asset.v1.TimeWindow.Builder builderForValue) { if (windowBuilder_ == null) { window_ = builderForValue.build(); onChanged(); @@ -908,6 +1005,8 @@ public Builder setWindow( return this; } /** + * + * *
          * The time window when the asset data and state was observed.
          * 
    @@ -918,7 +1017,9 @@ public Builder mergeWindow(com.google.cloud.asset.v1.TimeWindow value) { if (windowBuilder_ == null) { if (window_ != null) { window_ = - com.google.cloud.asset.v1.TimeWindow.newBuilder(window_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.TimeWindow.newBuilder(window_) + .mergeFrom(value) + .buildPartial(); } else { window_ = value; } @@ -930,6 +1031,8 @@ public Builder mergeWindow(com.google.cloud.asset.v1.TimeWindow value) { return this; } /** + * + * *
          * The time window when the asset data and state was observed.
          * 
    @@ -948,6 +1051,8 @@ public Builder clearWindow() { return this; } /** + * + * *
          * The time window when the asset data and state was observed.
          * 
    @@ -955,11 +1060,13 @@ public Builder clearWindow() { * .google.cloud.asset.v1.TimeWindow window = 1; */ public com.google.cloud.asset.v1.TimeWindow.Builder getWindowBuilder() { - + onChanged(); return getWindowFieldBuilder().getBuilder(); } /** + * + * *
          * The time window when the asset data and state was observed.
          * 
    @@ -970,11 +1077,14 @@ public com.google.cloud.asset.v1.TimeWindowOrBuilder getWindowOrBuilder() { if (windowBuilder_ != null) { return windowBuilder_.getMessageOrBuilder(); } else { - return window_ == null ? - com.google.cloud.asset.v1.TimeWindow.getDefaultInstance() : window_; + return window_ == null + ? com.google.cloud.asset.v1.TimeWindow.getDefaultInstance() + : window_; } } /** + * + * *
          * The time window when the asset data and state was observed.
          * 
    @@ -982,26 +1092,32 @@ public com.google.cloud.asset.v1.TimeWindowOrBuilder getWindowOrBuilder() { * .google.cloud.asset.v1.TimeWindow window = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.TimeWindow, com.google.cloud.asset.v1.TimeWindow.Builder, com.google.cloud.asset.v1.TimeWindowOrBuilder> + com.google.cloud.asset.v1.TimeWindow, + com.google.cloud.asset.v1.TimeWindow.Builder, + com.google.cloud.asset.v1.TimeWindowOrBuilder> getWindowFieldBuilder() { if (windowBuilder_ == null) { - windowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.TimeWindow, com.google.cloud.asset.v1.TimeWindow.Builder, com.google.cloud.asset.v1.TimeWindowOrBuilder>( - getWindow(), - getParentForChildren(), - isClean()); + windowBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.TimeWindow, + com.google.cloud.asset.v1.TimeWindow.Builder, + com.google.cloud.asset.v1.TimeWindowOrBuilder>( + getWindow(), getParentForChildren(), isClean()); window_ = null; } return windowBuilder_; } - private boolean deleted_ ; + private boolean deleted_; /** + * + * *
          * Whether the asset has been deleted or not.
          * 
    * * bool deleted = 2; + * * @return The deleted. */ @java.lang.Override @@ -1009,30 +1125,36 @@ public boolean getDeleted() { return deleted_; } /** + * + * *
          * Whether the asset has been deleted or not.
          * 
    * * bool deleted = 2; + * * @param value The deleted to set. * @return This builder for chaining. */ public Builder setDeleted(boolean value) { - + deleted_ = value; onChanged(); return this; } /** + * + * *
          * Whether the asset has been deleted or not.
          * 
    * * bool deleted = 2; + * * @return This builder for chaining. */ public Builder clearDeleted() { - + deleted_ = false; onChanged(); return this; @@ -1040,24 +1162,33 @@ public Builder clearDeleted() { private com.google.cloud.asset.v1.Asset asset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.Asset, com.google.cloud.asset.v1.Asset.Builder, com.google.cloud.asset.v1.AssetOrBuilder> assetBuilder_; + com.google.cloud.asset.v1.Asset, + com.google.cloud.asset.v1.Asset.Builder, + com.google.cloud.asset.v1.AssetOrBuilder> + assetBuilder_; /** + * + * *
          * An asset in Google Cloud.
          * 
    * * .google.cloud.asset.v1.Asset asset = 3; + * * @return Whether the asset field is set. */ public boolean hasAsset() { return assetBuilder_ != null || asset_ != null; } /** + * + * *
          * An asset in Google Cloud.
          * 
    * * .google.cloud.asset.v1.Asset asset = 3; + * * @return The asset. */ public com.google.cloud.asset.v1.Asset getAsset() { @@ -1068,6 +1199,8 @@ public com.google.cloud.asset.v1.Asset getAsset() { } } /** + * + * *
          * An asset in Google Cloud.
          * 
    @@ -1088,14 +1221,15 @@ public Builder setAsset(com.google.cloud.asset.v1.Asset value) { return this; } /** + * + * *
          * An asset in Google Cloud.
          * 
    * * .google.cloud.asset.v1.Asset asset = 3; */ - public Builder setAsset( - com.google.cloud.asset.v1.Asset.Builder builderForValue) { + public Builder setAsset(com.google.cloud.asset.v1.Asset.Builder builderForValue) { if (assetBuilder_ == null) { asset_ = builderForValue.build(); onChanged(); @@ -1106,6 +1240,8 @@ public Builder setAsset( return this; } /** + * + * *
          * An asset in Google Cloud.
          * 
    @@ -1116,7 +1252,7 @@ public Builder mergeAsset(com.google.cloud.asset.v1.Asset value) { if (assetBuilder_ == null) { if (asset_ != null) { asset_ = - com.google.cloud.asset.v1.Asset.newBuilder(asset_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.Asset.newBuilder(asset_).mergeFrom(value).buildPartial(); } else { asset_ = value; } @@ -1128,6 +1264,8 @@ public Builder mergeAsset(com.google.cloud.asset.v1.Asset value) { return this; } /** + * + * *
          * An asset in Google Cloud.
          * 
    @@ -1146,6 +1284,8 @@ public Builder clearAsset() { return this; } /** + * + * *
          * An asset in Google Cloud.
          * 
    @@ -1153,11 +1293,13 @@ public Builder clearAsset() { * .google.cloud.asset.v1.Asset asset = 3; */ public com.google.cloud.asset.v1.Asset.Builder getAssetBuilder() { - + onChanged(); return getAssetFieldBuilder().getBuilder(); } /** + * + * *
          * An asset in Google Cloud.
          * 
    @@ -1168,11 +1310,12 @@ public com.google.cloud.asset.v1.AssetOrBuilder getAssetOrBuilder() { if (assetBuilder_ != null) { return assetBuilder_.getMessageOrBuilder(); } else { - return asset_ == null ? - com.google.cloud.asset.v1.Asset.getDefaultInstance() : asset_; + return asset_ == null ? com.google.cloud.asset.v1.Asset.getDefaultInstance() : asset_; } } /** + * + * *
          * An asset in Google Cloud.
          * 
    @@ -1180,14 +1323,17 @@ public com.google.cloud.asset.v1.AssetOrBuilder getAssetOrBuilder() { * .google.cloud.asset.v1.Asset asset = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.Asset, com.google.cloud.asset.v1.Asset.Builder, com.google.cloud.asset.v1.AssetOrBuilder> + com.google.cloud.asset.v1.Asset, + com.google.cloud.asset.v1.Asset.Builder, + com.google.cloud.asset.v1.AssetOrBuilder> getAssetFieldBuilder() { if (assetBuilder_ == null) { - assetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.Asset, com.google.cloud.asset.v1.Asset.Builder, com.google.cloud.asset.v1.AssetOrBuilder>( - getAsset(), - getParentForChildren(), - isClean()); + assetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.Asset, + com.google.cloud.asset.v1.Asset.Builder, + com.google.cloud.asset.v1.AssetOrBuilder>( + getAsset(), getParentForChildren(), isClean()); asset_ = null; } return assetBuilder_; @@ -1195,73 +1341,93 @@ public com.google.cloud.asset.v1.AssetOrBuilder getAssetOrBuilder() { private int priorAssetState_ = 0; /** + * + * *
          * State of prior_asset.
          * 
    * * .google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4; + * * @return The enum numeric value on the wire for priorAssetState. */ - @java.lang.Override public int getPriorAssetStateValue() { + @java.lang.Override + public int getPriorAssetStateValue() { return priorAssetState_; } /** + * + * *
          * State of prior_asset.
          * 
    * * .google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4; + * * @param value The enum numeric value on the wire for priorAssetState to set. * @return This builder for chaining. */ public Builder setPriorAssetStateValue(int value) { - + priorAssetState_ = value; onChanged(); return this; } /** + * + * *
          * State of prior_asset.
          * 
    * * .google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4; + * * @return The priorAssetState. */ @java.lang.Override public com.google.cloud.asset.v1.TemporalAsset.PriorAssetState getPriorAssetState() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1.TemporalAsset.PriorAssetState result = com.google.cloud.asset.v1.TemporalAsset.PriorAssetState.valueOf(priorAssetState_); - return result == null ? com.google.cloud.asset.v1.TemporalAsset.PriorAssetState.UNRECOGNIZED : result; + com.google.cloud.asset.v1.TemporalAsset.PriorAssetState result = + com.google.cloud.asset.v1.TemporalAsset.PriorAssetState.valueOf(priorAssetState_); + return result == null + ? com.google.cloud.asset.v1.TemporalAsset.PriorAssetState.UNRECOGNIZED + : result; } /** + * + * *
          * State of prior_asset.
          * 
    * * .google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4; + * * @param value The priorAssetState to set. * @return This builder for chaining. */ - public Builder setPriorAssetState(com.google.cloud.asset.v1.TemporalAsset.PriorAssetState value) { + public Builder setPriorAssetState( + com.google.cloud.asset.v1.TemporalAsset.PriorAssetState value) { if (value == null) { throw new NullPointerException(); } - + priorAssetState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
          * State of prior_asset.
          * 
    * * .google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4; + * * @return This builder for chaining. */ public Builder clearPriorAssetState() { - + priorAssetState_ = 0; onChanged(); return this; @@ -1269,36 +1435,49 @@ public Builder clearPriorAssetState() { private com.google.cloud.asset.v1.Asset priorAsset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.Asset, com.google.cloud.asset.v1.Asset.Builder, com.google.cloud.asset.v1.AssetOrBuilder> priorAssetBuilder_; + com.google.cloud.asset.v1.Asset, + com.google.cloud.asset.v1.Asset.Builder, + com.google.cloud.asset.v1.AssetOrBuilder> + priorAssetBuilder_; /** + * + * *
          * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
          * Currently this is only set for responses in Real-Time Feed.
          * 
    * * .google.cloud.asset.v1.Asset prior_asset = 5; + * * @return Whether the priorAsset field is set. */ public boolean hasPriorAsset() { return priorAssetBuilder_ != null || priorAsset_ != null; } /** + * + * *
          * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
          * Currently this is only set for responses in Real-Time Feed.
          * 
    * * .google.cloud.asset.v1.Asset prior_asset = 5; + * * @return The priorAsset. */ public com.google.cloud.asset.v1.Asset getPriorAsset() { if (priorAssetBuilder_ == null) { - return priorAsset_ == null ? com.google.cloud.asset.v1.Asset.getDefaultInstance() : priorAsset_; + return priorAsset_ == null + ? com.google.cloud.asset.v1.Asset.getDefaultInstance() + : priorAsset_; } else { return priorAssetBuilder_.getMessage(); } } /** + * + * *
          * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
          * Currently this is only set for responses in Real-Time Feed.
    @@ -1320,6 +1499,8 @@ public Builder setPriorAsset(com.google.cloud.asset.v1.Asset value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
          * Currently this is only set for responses in Real-Time Feed.
    @@ -1327,8 +1508,7 @@ public Builder setPriorAsset(com.google.cloud.asset.v1.Asset value) {
          *
          * .google.cloud.asset.v1.Asset prior_asset = 5;
          */
    -    public Builder setPriorAsset(
    -        com.google.cloud.asset.v1.Asset.Builder builderForValue) {
    +    public Builder setPriorAsset(com.google.cloud.asset.v1.Asset.Builder builderForValue) {
           if (priorAssetBuilder_ == null) {
             priorAsset_ = builderForValue.build();
             onChanged();
    @@ -1339,6 +1519,8 @@ public Builder setPriorAsset(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
          * Currently this is only set for responses in Real-Time Feed.
    @@ -1350,7 +1532,9 @@ public Builder mergePriorAsset(com.google.cloud.asset.v1.Asset value) {
           if (priorAssetBuilder_ == null) {
             if (priorAsset_ != null) {
               priorAsset_ =
    -            com.google.cloud.asset.v1.Asset.newBuilder(priorAsset_).mergeFrom(value).buildPartial();
    +              com.google.cloud.asset.v1.Asset.newBuilder(priorAsset_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               priorAsset_ = value;
             }
    @@ -1362,6 +1546,8 @@ public Builder mergePriorAsset(com.google.cloud.asset.v1.Asset value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
          * Currently this is only set for responses in Real-Time Feed.
    @@ -1381,6 +1567,8 @@ public Builder clearPriorAsset() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
          * Currently this is only set for responses in Real-Time Feed.
    @@ -1389,11 +1577,13 @@ public Builder clearPriorAsset() {
          * .google.cloud.asset.v1.Asset prior_asset = 5;
          */
         public com.google.cloud.asset.v1.Asset.Builder getPriorAssetBuilder() {
    -      
    +
           onChanged();
           return getPriorAssetFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
          * Currently this is only set for responses in Real-Time Feed.
    @@ -1405,11 +1595,14 @@ public com.google.cloud.asset.v1.AssetOrBuilder getPriorAssetOrBuilder() {
           if (priorAssetBuilder_ != null) {
             return priorAssetBuilder_.getMessageOrBuilder();
           } else {
    -        return priorAsset_ == null ?
    -            com.google.cloud.asset.v1.Asset.getDefaultInstance() : priorAsset_;
    +        return priorAsset_ == null
    +            ? com.google.cloud.asset.v1.Asset.getDefaultInstance()
    +            : priorAsset_;
           }
         }
         /**
    +     *
    +     *
          * 
          * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
          * Currently this is only set for responses in Real-Time Feed.
    @@ -1418,21 +1611,24 @@ public com.google.cloud.asset.v1.AssetOrBuilder getPriorAssetOrBuilder() {
          * .google.cloud.asset.v1.Asset prior_asset = 5;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1.Asset, com.google.cloud.asset.v1.Asset.Builder, com.google.cloud.asset.v1.AssetOrBuilder> 
    +            com.google.cloud.asset.v1.Asset,
    +            com.google.cloud.asset.v1.Asset.Builder,
    +            com.google.cloud.asset.v1.AssetOrBuilder>
             getPriorAssetFieldBuilder() {
           if (priorAssetBuilder_ == null) {
    -        priorAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.Asset, com.google.cloud.asset.v1.Asset.Builder, com.google.cloud.asset.v1.AssetOrBuilder>(
    -                getPriorAsset(),
    -                getParentForChildren(),
    -                isClean());
    +        priorAssetBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.cloud.asset.v1.Asset,
    +                com.google.cloud.asset.v1.Asset.Builder,
    +                com.google.cloud.asset.v1.AssetOrBuilder>(
    +                getPriorAsset(), getParentForChildren(), isClean());
             priorAsset_ = null;
           }
           return priorAssetBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -1442,12 +1638,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.TemporalAsset)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.TemporalAsset)
       private static final com.google.cloud.asset.v1.TemporalAsset DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1.TemporalAsset();
       }
    @@ -1456,27 +1652,27 @@ public static com.google.cloud.asset.v1.TemporalAsset getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public TemporalAsset parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      Builder builder = newBuilder();
    -      try {
    -        builder.mergeFrom(input, extensionRegistry);
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(builder.buildPartial());
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    -            .setUnfinishedMessage(builder.buildPartial());
    -      }
    -      return builder.buildPartial();
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public TemporalAsset parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1491,6 +1687,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1.TemporalAsset getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAssetOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAssetOrBuilder.java
    similarity index 80%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAssetOrBuilder.java
    rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAssetOrBuilder.java
    index 40ba4db442af..68d9d1d37fad 100644
    --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAssetOrBuilder.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAssetOrBuilder.java
    @@ -1,31 +1,55 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/assets.proto
     
     package com.google.cloud.asset.v1;
     
    -public interface TemporalAssetOrBuilder extends
    +public interface TemporalAssetOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.TemporalAsset)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The time window when the asset data and state was observed.
        * 
    * * .google.cloud.asset.v1.TimeWindow window = 1; + * * @return Whether the window field is set. */ boolean hasWindow(); /** + * + * *
        * The time window when the asset data and state was observed.
        * 
    * * .google.cloud.asset.v1.TimeWindow window = 1; + * * @return The window. */ com.google.cloud.asset.v1.TimeWindow getWindow(); /** + * + * *
        * The time window when the asset data and state was observed.
        * 
    @@ -35,34 +59,45 @@ public interface TemporalAssetOrBuilder extends com.google.cloud.asset.v1.TimeWindowOrBuilder getWindowOrBuilder(); /** + * + * *
        * Whether the asset has been deleted or not.
        * 
    * * bool deleted = 2; + * * @return The deleted. */ boolean getDeleted(); /** + * + * *
        * An asset in Google Cloud.
        * 
    * * .google.cloud.asset.v1.Asset asset = 3; + * * @return Whether the asset field is set. */ boolean hasAsset(); /** + * + * *
        * An asset in Google Cloud.
        * 
    * * .google.cloud.asset.v1.Asset asset = 3; + * * @return The asset. */ com.google.cloud.asset.v1.Asset getAsset(); /** + * + * *
        * An asset in Google Cloud.
        * 
    @@ -72,45 +107,59 @@ public interface TemporalAssetOrBuilder extends com.google.cloud.asset.v1.AssetOrBuilder getAssetOrBuilder(); /** + * + * *
        * State of prior_asset.
        * 
    * * .google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4; + * * @return The enum numeric value on the wire for priorAssetState. */ int getPriorAssetStateValue(); /** + * + * *
        * State of prior_asset.
        * 
    * * .google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4; + * * @return The priorAssetState. */ com.google.cloud.asset.v1.TemporalAsset.PriorAssetState getPriorAssetState(); /** + * + * *
        * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
        * Currently this is only set for responses in Real-Time Feed.
        * 
    * * .google.cloud.asset.v1.Asset prior_asset = 5; + * * @return Whether the priorAsset field is set. */ boolean hasPriorAsset(); /** + * + * *
        * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
        * Currently this is only set for responses in Real-Time Feed.
        * 
    * * .google.cloud.asset.v1.Asset prior_asset = 5; + * * @return The priorAsset. */ com.google.cloud.asset.v1.Asset getPriorAsset(); /** + * + * *
        * Prior copy of the asset. Populated if prior_asset_state is PRESENT.
        * Currently this is only set for responses in Real-Time Feed.
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java
    similarity index 70%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java
    rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java
    index c2aaa24bd43f..ce73781a40ed 100644
    --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java
    @@ -1,60 +1,81 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/assets.proto
     
     package com.google.cloud.asset.v1;
     
     /**
    + *
    + *
      * 
      * A time window specified by its `start_time` and `end_time`.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.TimeWindow} */ -public final class TimeWindow extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TimeWindow extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.TimeWindow) TimeWindowOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TimeWindow.newBuilder() to construct. private TimeWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TimeWindow() { - } + + private TimeWindow() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TimeWindow(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_TimeWindow_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_TimeWindow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_TimeWindow_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_TimeWindow_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.TimeWindow.class, com.google.cloud.asset.v1.TimeWindow.Builder.class); + com.google.cloud.asset.v1.TimeWindow.class, + com.google.cloud.asset.v1.TimeWindow.Builder.class); } public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** + * + * *
        * Start time of the time window (exclusive).
        * 
    * * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -62,11 +83,14 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
        * Start time of the time window (exclusive).
        * 
    * * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -74,6 +98,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
        * Start time of the time window (exclusive).
        * 
    @@ -88,12 +114,15 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
        * End time of the time window (inclusive). If not specified, the current
        * timestamp is used instead.
        * 
    * * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -101,12 +130,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
        * End time of the time window (inclusive). If not specified, the current
        * timestamp is used instead.
        * 
    * * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -114,6 +146,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
        * End time of the time window (inclusive). If not specified, the current
        * timestamp is used instead.
    @@ -127,6 +161,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -138,8 +173,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (startTime_ != null) {
           output.writeMessage(1, getStartTime());
         }
    @@ -156,12 +190,10 @@ public int getSerializedSize() {
     
         size = 0;
         if (startTime_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(1, getStartTime());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime());
         }
         if (endTime_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(2, getEndTime());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime());
         }
         size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
    @@ -171,7 +203,7 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1.TimeWindow)) {
           return super.equals(obj);
    @@ -180,13 +212,11 @@ public boolean equals(final java.lang.Object obj) {
     
         if (hasStartTime() != other.hasStartTime()) return false;
         if (hasStartTime()) {
    -      if (!getStartTime()
    -          .equals(other.getStartTime())) return false;
    +      if (!getStartTime().equals(other.getStartTime())) return false;
         }
         if (hasEndTime() != other.hasEndTime()) return false;
         if (hasEndTime()) {
    -      if (!getEndTime()
    -          .equals(other.getEndTime())) return false;
    +      if (!getEndTime().equals(other.getEndTime())) return false;
         }
         if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
    @@ -212,130 +242,135 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1.TimeWindow parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1.TimeWindow parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.TimeWindow parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -  public static com.google.cloud.asset.v1.TimeWindow parseFrom(
    -      com.google.protobuf.ByteString data)
    +
    +  public static com.google.cloud.asset.v1.TimeWindow parseFrom(com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.TimeWindow 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.asset.v1.TimeWindow parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.TimeWindow parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.TimeWindow parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.TimeWindow parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.TimeWindow parseDelimitedFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.TimeWindow parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.TimeWindow parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.TimeWindow parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.cloud.asset.v1.TimeWindow prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * A time window specified by its `start_time` and `end_time`.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.TimeWindow} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.TimeWindow) com.google.cloud.asset.v1.TimeWindowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_TimeWindow_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_TimeWindow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_TimeWindow_fieldAccessorTable + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_TimeWindow_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.TimeWindow.class, com.google.cloud.asset.v1.TimeWindow.Builder.class); + com.google.cloud.asset.v1.TimeWindow.class, + com.google.cloud.asset.v1.TimeWindow.Builder.class); } // Construct using com.google.cloud.asset.v1.TimeWindow.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -355,9 +390,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_TimeWindow_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetProto + .internal_static_google_cloud_asset_v1_TimeWindow_descriptor; } @java.lang.Override @@ -395,38 +430,39 @@ public com.google.cloud.asset.v1.TimeWindow buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.TimeWindow) { - return mergeFrom((com.google.cloud.asset.v1.TimeWindow)other); + return mergeFrom((com.google.cloud.asset.v1.TimeWindow) other); } else { super.mergeFrom(other); return this; @@ -467,26 +503,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -499,24 +534,33 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
          * Start time of the time window (exclusive).
          * 
    * * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
          * Start time of the time window (exclusive).
          * 
    * * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -527,6 +571,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
          * Start time of the time window (exclusive).
          * 
    @@ -547,14 +593,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * Start time of the time window (exclusive).
          * 
    * * .google.protobuf.Timestamp start_time = 1; */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -565,6 +612,8 @@ public Builder setStartTime( return this; } /** + * + * *
          * Start time of the time window (exclusive).
          * 
    @@ -575,7 +624,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -587,6 +636,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * Start time of the time window (exclusive).
          * 
    @@ -605,6 +656,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
          * Start time of the time window (exclusive).
          * 
    @@ -612,11 +665,13 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 1; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
          * Start time of the time window (exclusive).
          * 
    @@ -627,11 +682,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
          * Start time of the time window (exclusive).
          * 
    @@ -639,14 +695,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -654,26 +713,35 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
          * End time of the time window (inclusive). If not specified, the current
          * timestamp is used instead.
          * 
    * * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
          * End time of the time window (inclusive). If not specified, the current
          * timestamp is used instead.
          * 
    * * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -684,6 +752,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
          * End time of the time window (inclusive). If not specified, the current
          * timestamp is used instead.
    @@ -705,6 +775,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * End time of the time window (inclusive). If not specified, the current
          * timestamp is used instead.
    @@ -712,8 +784,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
          *
          * .google.protobuf.Timestamp end_time = 2;
          */
    -    public Builder setEndTime(
    -        com.google.protobuf.Timestamp.Builder builderForValue) {
    +    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
           if (endTimeBuilder_ == null) {
             endTime_ = builderForValue.build();
             onChanged();
    @@ -724,6 +795,8 @@ public Builder setEndTime(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * End time of the time window (inclusive). If not specified, the current
          * timestamp is used instead.
    @@ -735,7 +808,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
           if (endTimeBuilder_ == null) {
             if (endTime_ != null) {
               endTime_ =
    -            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
    +              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
             } else {
               endTime_ = value;
             }
    @@ -747,6 +820,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * End time of the time window (inclusive). If not specified, the current
          * timestamp is used instead.
    @@ -766,6 +841,8 @@ public Builder clearEndTime() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * End time of the time window (inclusive). If not specified, the current
          * timestamp is used instead.
    @@ -774,11 +851,13 @@ public Builder clearEndTime() {
          * .google.protobuf.Timestamp end_time = 2;
          */
         public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
    -      
    +
           onChanged();
           return getEndTimeFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * End time of the time window (inclusive). If not specified, the current
          * timestamp is used instead.
    @@ -790,11 +869,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
           if (endTimeBuilder_ != null) {
             return endTimeBuilder_.getMessageOrBuilder();
           } else {
    -        return endTime_ == null ?
    -            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
    +        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
           }
         }
         /**
    +     *
    +     *
          * 
          * End time of the time window (inclusive). If not specified, the current
          * timestamp is used instead.
    @@ -803,21 +883,24 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
          * .google.protobuf.Timestamp end_time = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
    +            com.google.protobuf.Timestamp,
    +            com.google.protobuf.Timestamp.Builder,
    +            com.google.protobuf.TimestampOrBuilder>
             getEndTimeFieldBuilder() {
           if (endTimeBuilder_ == null) {
    -        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    -                getEndTime(),
    -                getParentForChildren(),
    -                isClean());
    +        endTimeBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.Timestamp,
    +                com.google.protobuf.Timestamp.Builder,
    +                com.google.protobuf.TimestampOrBuilder>(
    +                getEndTime(), getParentForChildren(), isClean());
             endTime_ = null;
           }
           return endTimeBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -827,12 +910,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.TimeWindow)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.TimeWindow)
       private static final com.google.cloud.asset.v1.TimeWindow DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1.TimeWindow();
       }
    @@ -841,27 +924,27 @@ public static com.google.cloud.asset.v1.TimeWindow getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public TimeWindow parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      Builder builder = newBuilder();
    -      try {
    -        builder.mergeFrom(input, extensionRegistry);
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(builder.buildPartial());
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    -            .setUnfinishedMessage(builder.buildPartial());
    -      }
    -      return builder.buildPartial();
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public TimeWindow parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -876,6 +959,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1.TimeWindow getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindowOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindowOrBuilder.java
    similarity index 70%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindowOrBuilder.java
    rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindowOrBuilder.java
    index 81646f3d1e72..a06e2ee594d4 100644
    --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindowOrBuilder.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindowOrBuilder.java
    @@ -1,31 +1,55 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/assets.proto
     
     package com.google.cloud.asset.v1;
     
    -public interface TimeWindowOrBuilder extends
    +public interface TimeWindowOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.TimeWindow)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * Start time of the time window (exclusive).
        * 
    * * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
        * Start time of the time window (exclusive).
        * 
    * * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
        * Start time of the time window (exclusive).
        * 
    @@ -35,26 +59,34 @@ public interface TimeWindowOrBuilder extends com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
        * End time of the time window (inclusive). If not specified, the current
        * timestamp is used instead.
        * 
    * * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
        * End time of the time window (inclusive). If not specified, the current
        * timestamp is used instead.
        * 
    * * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
        * End time of the time window (inclusive). If not specified, the current
        * timestamp is used instead.
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java
    similarity index 72%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java
    rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java
    index b2365d877cbe..ecd6fb6ad059 100644
    --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequest.java
    @@ -1,55 +1,75 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/asset_service.proto
     
     package com.google.cloud.asset.v1;
     
     /**
    + *
    + *
      * 
      * Update asset feed request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.UpdateFeedRequest} */ -public final class UpdateFeedRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateFeedRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.UpdateFeedRequest) UpdateFeedRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateFeedRequest.newBuilder() to construct. private UpdateFeedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateFeedRequest() { - } + + private UpdateFeedRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateFeedRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_UpdateFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_UpdateFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.UpdateFeedRequest.class, com.google.cloud.asset.v1.UpdateFeedRequest.Builder.class); + com.google.cloud.asset.v1.UpdateFeedRequest.class, + com.google.cloud.asset.v1.UpdateFeedRequest.Builder.class); } public static final int FEED_FIELD_NUMBER = 1; private com.google.cloud.asset.v1.Feed feed_; /** + * + * *
        * Required. The new values of feed details. It must match an existing feed and the
        * field `name` must be in the format of:
    @@ -59,6 +79,7 @@ protected java.lang.Object newInstance(
        * 
    * * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the feed field is set. */ @java.lang.Override @@ -66,6 +87,8 @@ public boolean hasFeed() { return feed_ != null; } /** + * + * *
        * Required. The new values of feed details. It must match an existing feed and the
        * field `name` must be in the format of:
    @@ -75,6 +98,7 @@ public boolean hasFeed() {
        * 
    * * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The feed. */ @java.lang.Override @@ -82,6 +106,8 @@ public com.google.cloud.asset.v1.Feed getFeed() { return feed_ == null ? com.google.cloud.asset.v1.Feed.getDefaultInstance() : feed_; } /** + * + * *
        * Required. The new values of feed details. It must match an existing feed and the
        * field `name` must be in the format of:
    @@ -100,13 +126,17 @@ public com.google.cloud.asset.v1.FeedOrBuilder getFeedOrBuilder() {
       public static final int UPDATE_MASK_FIELD_NUMBER = 2;
       private com.google.protobuf.FieldMask updateMask_;
       /**
    +   *
    +   *
        * 
        * Required. Only updates the `feed` fields indicated by this mask.
        * The field mask must not be empty, and it must not contain fields that
        * are immutable or only set by the server.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -114,13 +144,17 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
        * Required. Only updates the `feed` fields indicated by this mask.
        * The field mask must not be empty, and it must not contain fields that
        * are immutable or only set by the server.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -128,13 +162,16 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
        * Required. Only updates the `feed` fields indicated by this mask.
        * The field mask must not be empty, and it must not contain fields that
        * are immutable or only set by the server.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -142,6 +179,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +191,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (feed_ != null) { output.writeMessage(1, getFeed()); } @@ -171,12 +208,10 @@ public int getSerializedSize() { size = 0; if (feed_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getFeed()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFeed()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -186,22 +221,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.UpdateFeedRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.UpdateFeedRequest other = (com.google.cloud.asset.v1.UpdateFeedRequest) obj; + com.google.cloud.asset.v1.UpdateFeedRequest other = + (com.google.cloud.asset.v1.UpdateFeedRequest) obj; if (hasFeed() != other.hasFeed()) return false; if (hasFeed()) { - if (!getFeed() - .equals(other.getFeed())) return false; + if (!getFeed().equals(other.getFeed())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -227,130 +261,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.UpdateFeedRequest 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.asset.v1.UpdateFeedRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.UpdateFeedRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.UpdateFeedRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.UpdateFeedRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.UpdateFeedRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.UpdateFeedRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Update asset feed request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.UpdateFeedRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.UpdateFeedRequest) com.google.cloud.asset.v1.UpdateFeedRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_UpdateFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_UpdateFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.UpdateFeedRequest.class, com.google.cloud.asset.v1.UpdateFeedRequest.Builder.class); + com.google.cloud.asset.v1.UpdateFeedRequest.class, + com.google.cloud.asset.v1.UpdateFeedRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.UpdateFeedRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor; } @java.lang.Override @@ -391,7 +431,8 @@ public com.google.cloud.asset.v1.UpdateFeedRequest build() { @java.lang.Override public com.google.cloud.asset.v1.UpdateFeedRequest buildPartial() { - com.google.cloud.asset.v1.UpdateFeedRequest result = new com.google.cloud.asset.v1.UpdateFeedRequest(this); + com.google.cloud.asset.v1.UpdateFeedRequest result = + new com.google.cloud.asset.v1.UpdateFeedRequest(this); if (feedBuilder_ == null) { result.feed_ = feed_; } else { @@ -410,38 +451,39 @@ public com.google.cloud.asset.v1.UpdateFeedRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.UpdateFeedRequest) { - return mergeFrom((com.google.cloud.asset.v1.UpdateFeedRequest)other); + return mergeFrom((com.google.cloud.asset.v1.UpdateFeedRequest) other); } else { super.mergeFrom(other); return this; @@ -482,26 +524,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getFeedFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage(getFeedFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -514,8 +555,13 @@ public Builder mergeFrom( private com.google.cloud.asset.v1.Feed feed_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.Feed, com.google.cloud.asset.v1.Feed.Builder, com.google.cloud.asset.v1.FeedOrBuilder> feedBuilder_; + com.google.cloud.asset.v1.Feed, + com.google.cloud.asset.v1.Feed.Builder, + com.google.cloud.asset.v1.FeedOrBuilder> + feedBuilder_; /** + * + * *
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -525,12 +571,15 @@ public Builder mergeFrom(
          * 
    * * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the feed field is set. */ public boolean hasFeed() { return feedBuilder_ != null || feed_ != null; } /** + * + * *
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -540,6 +589,7 @@ public boolean hasFeed() {
          * 
    * * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The feed. */ public com.google.cloud.asset.v1.Feed getFeed() { @@ -550,6 +600,8 @@ public com.google.cloud.asset.v1.Feed getFeed() { } } /** + * + * *
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -574,6 +626,8 @@ public Builder setFeed(com.google.cloud.asset.v1.Feed value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -584,8 +638,7 @@ public Builder setFeed(com.google.cloud.asset.v1.Feed value) {
          *
          * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED];
          */
    -    public Builder setFeed(
    -        com.google.cloud.asset.v1.Feed.Builder builderForValue) {
    +    public Builder setFeed(com.google.cloud.asset.v1.Feed.Builder builderForValue) {
           if (feedBuilder_ == null) {
             feed_ = builderForValue.build();
             onChanged();
    @@ -596,6 +649,8 @@ public Builder setFeed(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -609,8 +664,7 @@ public Builder setFeed(
         public Builder mergeFeed(com.google.cloud.asset.v1.Feed value) {
           if (feedBuilder_ == null) {
             if (feed_ != null) {
    -          feed_ =
    -            com.google.cloud.asset.v1.Feed.newBuilder(feed_).mergeFrom(value).buildPartial();
    +          feed_ = com.google.cloud.asset.v1.Feed.newBuilder(feed_).mergeFrom(value).buildPartial();
             } else {
               feed_ = value;
             }
    @@ -622,6 +676,8 @@ public Builder mergeFeed(com.google.cloud.asset.v1.Feed value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -644,6 +700,8 @@ public Builder clearFeed() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -655,11 +713,13 @@ public Builder clearFeed() {
          * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED];
          */
         public com.google.cloud.asset.v1.Feed.Builder getFeedBuilder() {
    -      
    +
           onChanged();
           return getFeedFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -674,11 +734,12 @@ public com.google.cloud.asset.v1.FeedOrBuilder getFeedOrBuilder() {
           if (feedBuilder_ != null) {
             return feedBuilder_.getMessageOrBuilder();
           } else {
    -        return feed_ == null ?
    -            com.google.cloud.asset.v1.Feed.getDefaultInstance() : feed_;
    +        return feed_ == null ? com.google.cloud.asset.v1.Feed.getDefaultInstance() : feed_;
           }
         }
         /**
    +     *
    +     *
          * 
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -690,14 +751,17 @@ public com.google.cloud.asset.v1.FeedOrBuilder getFeedOrBuilder() {
          * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED];
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1.Feed, com.google.cloud.asset.v1.Feed.Builder, com.google.cloud.asset.v1.FeedOrBuilder> 
    +            com.google.cloud.asset.v1.Feed,
    +            com.google.cloud.asset.v1.Feed.Builder,
    +            com.google.cloud.asset.v1.FeedOrBuilder>
             getFeedFieldBuilder() {
           if (feedBuilder_ == null) {
    -        feedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1.Feed, com.google.cloud.asset.v1.Feed.Builder, com.google.cloud.asset.v1.FeedOrBuilder>(
    -                getFeed(),
    -                getParentForChildren(),
    -                isClean());
    +        feedBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.cloud.asset.v1.Feed,
    +                com.google.cloud.asset.v1.Feed.Builder,
    +                com.google.cloud.asset.v1.FeedOrBuilder>(
    +                getFeed(), getParentForChildren(), isClean());
             feed_ = null;
           }
           return feedBuilder_;
    @@ -705,45 +769,61 @@ public com.google.cloud.asset.v1.FeedOrBuilder getFeedOrBuilder() {
     
         private com.google.protobuf.FieldMask updateMask_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_;
    +            com.google.protobuf.FieldMask,
    +            com.google.protobuf.FieldMask.Builder,
    +            com.google.protobuf.FieldMaskOrBuilder>
    +        updateMaskBuilder_;
         /**
    +     *
    +     *
          * 
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -759,16 +839,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -779,19 +861,22 @@ public Builder setUpdateMask( return this; } /** + * + * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -803,13 +888,16 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -823,61 +911,74 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -887,12 +988,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.UpdateFeedRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.UpdateFeedRequest) private static final com.google.cloud.asset.v1.UpdateFeedRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.UpdateFeedRequest(); } @@ -901,27 +1002,27 @@ public static com.google.cloud.asset.v1.UpdateFeedRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateFeedRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFeedRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -936,6 +1037,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.UpdateFeedRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java similarity index 76% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java index 4188fa73ed16..fe7ebbc66c54 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface UpdateFeedRequestOrBuilder extends +public interface UpdateFeedRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.UpdateFeedRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The new values of feed details. It must match an existing feed and the
        * field `name` must be in the format of:
    @@ -17,10 +35,13 @@ public interface UpdateFeedRequestOrBuilder extends
        * 
    * * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the feed field is set. */ boolean hasFeed(); /** + * + * *
        * Required. The new values of feed details. It must match an existing feed and the
        * field `name` must be in the format of:
    @@ -30,10 +51,13 @@ public interface UpdateFeedRequestOrBuilder extends
        * 
    * * .google.cloud.asset.v1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The feed. */ com.google.cloud.asset.v1.Feed getFeed(); /** + * + * *
        * Required. The new values of feed details. It must match an existing feed and the
        * field `name` must be in the format of:
    @@ -47,35 +71,46 @@ public interface UpdateFeedRequestOrBuilder extends
       com.google.cloud.asset.v1.FeedOrBuilder getFeedOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * Required. Only updates the `feed` fields indicated by this mask.
        * The field mask must not be empty, and it must not contain fields that
        * are immutable or only set by the server.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
        * Required. Only updates the `feed` fields indicated by this mask.
        * The field mask must not be empty, and it must not contain fields that
        * are immutable or only set by the server.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
        * Required. Only updates the `feed` fields indicated by this mask.
        * The field mask must not be empty, and it must not contain fields that
        * are immutable or only set by the server.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequest.java similarity index 66% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequest.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequest.java index 02c824d413e2..d922bb788f21 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequest.java @@ -1,55 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; /** + * + * *
      * Request to update a saved query.
      * 
    * * Protobuf type {@code google.cloud.asset.v1.UpdateSavedQueryRequest} */ -public final class UpdateSavedQueryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateSavedQueryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.UpdateSavedQueryRequest) UpdateSavedQueryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateSavedQueryRequest.newBuilder() to construct. private UpdateSavedQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateSavedQueryRequest() { - } + + private UpdateSavedQueryRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateSavedQueryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.UpdateSavedQueryRequest.class, com.google.cloud.asset.v1.UpdateSavedQueryRequest.Builder.class); + com.google.cloud.asset.v1.UpdateSavedQueryRequest.class, + com.google.cloud.asset.v1.UpdateSavedQueryRequest.Builder.class); } public static final int SAVED_QUERY_FIELD_NUMBER = 1; private com.google.cloud.asset.v1.SavedQuery savedQuery_; /** + * + * *
        * Required. The saved query to update.
        * The saved query's `name` field is used to identify the one to update,
    @@ -59,7 +79,10 @@ protected java.lang.Object newInstance(
        * * organizations/organization_number/savedQueries/saved_query_id
        * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the savedQuery field is set. */ @java.lang.Override @@ -67,6 +90,8 @@ public boolean hasSavedQuery() { return savedQuery_ != null; } /** + * + * *
        * Required. The saved query to update.
        * The saved query's `name` field is used to identify the one to update,
    @@ -76,14 +101,21 @@ public boolean hasSavedQuery() {
        * * organizations/organization_number/savedQueries/saved_query_id
        * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The savedQuery. */ @java.lang.Override public com.google.cloud.asset.v1.SavedQuery getSavedQuery() { - return savedQuery_ == null ? com.google.cloud.asset.v1.SavedQuery.getDefaultInstance() : savedQuery_; + return savedQuery_ == null + ? com.google.cloud.asset.v1.SavedQuery.getDefaultInstance() + : savedQuery_; } /** + * + * *
        * Required. The saved query to update.
        * The saved query's `name` field is used to identify the one to update,
    @@ -93,7 +125,9 @@ public com.google.cloud.asset.v1.SavedQuery getSavedQuery() {
        * * organizations/organization_number/savedQueries/saved_query_id
        * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() { @@ -103,11 +137,15 @@ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
        * Required. The list of fields to update.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -115,11 +153,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
        * Required. The list of fields to update.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -127,11 +169,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
        * Required. The list of fields to update.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -139,6 +184,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -150,8 +196,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (savedQuery_ != null) { output.writeMessage(1, getSavedQuery()); } @@ -168,12 +213,10 @@ public int getSerializedSize() { size = 0; if (savedQuery_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSavedQuery()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSavedQuery()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -183,22 +226,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1.UpdateSavedQueryRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1.UpdateSavedQueryRequest other = (com.google.cloud.asset.v1.UpdateSavedQueryRequest) obj; + com.google.cloud.asset.v1.UpdateSavedQueryRequest other = + (com.google.cloud.asset.v1.UpdateSavedQueryRequest) obj; if (hasSavedQuery() != other.hasSavedQuery()) return false; if (hasSavedQuery()) { - if (!getSavedQuery() - .equals(other.getSavedQuery())) return false; + if (!getSavedQuery().equals(other.getSavedQuery())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -225,129 +267,135 @@ public int hashCode() { } public static com.google.cloud.asset.v1.UpdateSavedQueryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.UpdateSavedQueryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1.UpdateSavedQueryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.UpdateSavedQueryRequest 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.asset.v1.UpdateSavedQueryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1.UpdateSavedQueryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1.UpdateSavedQueryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.UpdateSavedQueryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.UpdateSavedQueryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1.UpdateSavedQueryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1.UpdateSavedQueryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.UpdateSavedQueryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1.UpdateSavedQueryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1.UpdateSavedQueryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1.UpdateSavedQueryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Request to update a saved query.
        * 
    * * Protobuf type {@code google.cloud.asset.v1.UpdateSavedQueryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.UpdateSavedQueryRequest) com.google.cloud.asset.v1.UpdateSavedQueryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_fieldAccessorTable + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1.UpdateSavedQueryRequest.class, com.google.cloud.asset.v1.UpdateSavedQueryRequest.Builder.class); + com.google.cloud.asset.v1.UpdateSavedQueryRequest.class, + com.google.cloud.asset.v1.UpdateSavedQueryRequest.Builder.class); } // Construct using com.google.cloud.asset.v1.UpdateSavedQueryRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -367,9 +415,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1.AssetServiceProto.internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1.AssetServiceProto + .internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_descriptor; } @java.lang.Override @@ -388,7 +436,8 @@ public com.google.cloud.asset.v1.UpdateSavedQueryRequest build() { @java.lang.Override public com.google.cloud.asset.v1.UpdateSavedQueryRequest buildPartial() { - com.google.cloud.asset.v1.UpdateSavedQueryRequest result = new com.google.cloud.asset.v1.UpdateSavedQueryRequest(this); + com.google.cloud.asset.v1.UpdateSavedQueryRequest result = + new com.google.cloud.asset.v1.UpdateSavedQueryRequest(this); if (savedQueryBuilder_ == null) { result.savedQuery_ = savedQuery_; } else { @@ -407,38 +456,39 @@ public com.google.cloud.asset.v1.UpdateSavedQueryRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1.UpdateSavedQueryRequest) { - return mergeFrom((com.google.cloud.asset.v1.UpdateSavedQueryRequest)other); + return mergeFrom((com.google.cloud.asset.v1.UpdateSavedQueryRequest) other); } else { super.mergeFrom(other); return this; @@ -446,7 +496,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1.UpdateSavedQueryRequest other) { - if (other == com.google.cloud.asset.v1.UpdateSavedQueryRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1.UpdateSavedQueryRequest.getDefaultInstance()) + return this; if (other.hasSavedQuery()) { mergeSavedQuery(other.getSavedQuery()); } @@ -479,26 +530,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getSavedQueryFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage(getSavedQueryFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -511,8 +561,13 @@ public Builder mergeFrom( private com.google.cloud.asset.v1.SavedQuery savedQuery_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.SavedQuery, com.google.cloud.asset.v1.SavedQuery.Builder, com.google.cloud.asset.v1.SavedQueryOrBuilder> savedQueryBuilder_; + com.google.cloud.asset.v1.SavedQuery, + com.google.cloud.asset.v1.SavedQuery.Builder, + com.google.cloud.asset.v1.SavedQueryOrBuilder> + savedQueryBuilder_; /** + * + * *
          * Required. The saved query to update.
          * The saved query's `name` field is used to identify the one to update,
    @@ -522,13 +577,18 @@ public Builder mergeFrom(
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the savedQuery field is set. */ public boolean hasSavedQuery() { return savedQueryBuilder_ != null || savedQuery_ != null; } /** + * + * *
          * Required. The saved query to update.
          * The saved query's `name` field is used to identify the one to update,
    @@ -538,17 +598,24 @@ public boolean hasSavedQuery() {
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The savedQuery. */ public com.google.cloud.asset.v1.SavedQuery getSavedQuery() { if (savedQueryBuilder_ == null) { - return savedQuery_ == null ? com.google.cloud.asset.v1.SavedQuery.getDefaultInstance() : savedQuery_; + return savedQuery_ == null + ? com.google.cloud.asset.v1.SavedQuery.getDefaultInstance() + : savedQuery_; } else { return savedQueryBuilder_.getMessage(); } } /** + * + * *
          * Required. The saved query to update.
          * The saved query's `name` field is used to identify the one to update,
    @@ -558,7 +625,9 @@ public com.google.cloud.asset.v1.SavedQuery getSavedQuery() {
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSavedQuery(com.google.cloud.asset.v1.SavedQuery value) { if (savedQueryBuilder_ == null) { @@ -574,6 +643,8 @@ public Builder setSavedQuery(com.google.cloud.asset.v1.SavedQuery value) { return this; } /** + * + * *
          * Required. The saved query to update.
          * The saved query's `name` field is used to identify the one to update,
    @@ -583,10 +654,11 @@ public Builder setSavedQuery(com.google.cloud.asset.v1.SavedQuery value) {
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSavedQuery( - com.google.cloud.asset.v1.SavedQuery.Builder builderForValue) { + public Builder setSavedQuery(com.google.cloud.asset.v1.SavedQuery.Builder builderForValue) { if (savedQueryBuilder_ == null) { savedQuery_ = builderForValue.build(); onChanged(); @@ -597,6 +669,8 @@ public Builder setSavedQuery( return this; } /** + * + * *
          * Required. The saved query to update.
          * The saved query's `name` field is used to identify the one to update,
    @@ -606,13 +680,17 @@ public Builder setSavedQuery(
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSavedQuery(com.google.cloud.asset.v1.SavedQuery value) { if (savedQueryBuilder_ == null) { if (savedQuery_ != null) { savedQuery_ = - com.google.cloud.asset.v1.SavedQuery.newBuilder(savedQuery_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1.SavedQuery.newBuilder(savedQuery_) + .mergeFrom(value) + .buildPartial(); } else { savedQuery_ = value; } @@ -624,6 +702,8 @@ public Builder mergeSavedQuery(com.google.cloud.asset.v1.SavedQuery value) { return this; } /** + * + * *
          * Required. The saved query to update.
          * The saved query's `name` field is used to identify the one to update,
    @@ -633,7 +713,9 @@ public Builder mergeSavedQuery(com.google.cloud.asset.v1.SavedQuery value) {
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSavedQuery() { if (savedQueryBuilder_ == null) { @@ -647,6 +729,8 @@ public Builder clearSavedQuery() { return this; } /** + * + * *
          * Required. The saved query to update.
          * The saved query's `name` field is used to identify the one to update,
    @@ -656,14 +740,18 @@ public Builder clearSavedQuery() {
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.asset.v1.SavedQuery.Builder getSavedQueryBuilder() { - + onChanged(); return getSavedQueryFieldBuilder().getBuilder(); } /** + * + * *
          * Required. The saved query to update.
          * The saved query's `name` field is used to identify the one to update,
    @@ -673,17 +761,22 @@ public com.google.cloud.asset.v1.SavedQuery.Builder getSavedQueryBuilder() {
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() { if (savedQueryBuilder_ != null) { return savedQueryBuilder_.getMessageOrBuilder(); } else { - return savedQuery_ == null ? - com.google.cloud.asset.v1.SavedQuery.getDefaultInstance() : savedQuery_; + return savedQuery_ == null + ? com.google.cloud.asset.v1.SavedQuery.getDefaultInstance() + : savedQuery_; } } /** + * + * *
          * Required. The saved query to update.
          * The saved query's `name` field is used to identify the one to update,
    @@ -693,17 +786,22 @@ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() {
          * * organizations/organization_number/savedQueries/saved_query_id
          * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.SavedQuery, com.google.cloud.asset.v1.SavedQuery.Builder, com.google.cloud.asset.v1.SavedQueryOrBuilder> + com.google.cloud.asset.v1.SavedQuery, + com.google.cloud.asset.v1.SavedQuery.Builder, + com.google.cloud.asset.v1.SavedQueryOrBuilder> getSavedQueryFieldBuilder() { if (savedQueryBuilder_ == null) { - savedQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1.SavedQuery, com.google.cloud.asset.v1.SavedQuery.Builder, com.google.cloud.asset.v1.SavedQueryOrBuilder>( - getSavedQuery(), - getParentForChildren(), - isClean()); + savedQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.SavedQuery, + com.google.cloud.asset.v1.SavedQuery.Builder, + com.google.cloud.asset.v1.SavedQueryOrBuilder>( + getSavedQuery(), getParentForChildren(), isClean()); savedQuery_ = null; } return savedQueryBuilder_; @@ -711,39 +809,55 @@ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
          * Required. The list of fields to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
          * Required. The list of fields to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
          * Required. The list of fields to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -759,14 +873,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
          * Required. The list of fields to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -777,17 +893,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
          * Required. The list of fields to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -799,11 +918,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
          * Required. The list of fields to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -817,55 +939,68 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
          * Required. The list of fields to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
          * Required. The list of fields to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
          * Required. The list of fields to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -875,12 +1010,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.UpdateSavedQueryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.UpdateSavedQueryRequest) private static final com.google.cloud.asset.v1.UpdateSavedQueryRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1.UpdateSavedQueryRequest(); } @@ -889,27 +1024,27 @@ public static com.google.cloud.asset.v1.UpdateSavedQueryRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSavedQueryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSavedQueryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -924,6 +1059,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1.UpdateSavedQueryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequestOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequestOrBuilder.java index 307da869bba4..636720fe0d48 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateSavedQueryRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/asset_service.proto package com.google.cloud.asset.v1; -public interface UpdateSavedQueryRequestOrBuilder extends +public interface UpdateSavedQueryRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.UpdateSavedQueryRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The saved query to update.
        * The saved query's `name` field is used to identify the one to update,
    @@ -17,11 +35,16 @@ public interface UpdateSavedQueryRequestOrBuilder extends
        * * organizations/organization_number/savedQueries/saved_query_id
        * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the savedQuery field is set. */ boolean hasSavedQuery(); /** + * + * *
        * Required. The saved query to update.
        * The saved query's `name` field is used to identify the one to update,
    @@ -31,11 +54,16 @@ public interface UpdateSavedQueryRequestOrBuilder extends
        * * organizations/organization_number/savedQueries/saved_query_id
        * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The savedQuery. */ com.google.cloud.asset.v1.SavedQuery getSavedQuery(); /** + * + * *
        * Required. The saved query to update.
        * The saved query's `name` field is used to identify the one to update,
    @@ -45,34 +73,47 @@ public interface UpdateSavedQueryRequestOrBuilder extends
        * * organizations/organization_number/savedQueries/saved_query_id
        * 
    * - * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueryOrBuilder(); /** + * + * *
        * Required. The list of fields to update.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
        * Required. The list of fields to update.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
        * Required. The list of fields to update.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResource.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResource.java similarity index 75% rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResource.java rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResource.java index 92ae53f59bf9..59377941f0b4 100644 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResource.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResource.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1/assets.proto package com.google.cloud.asset.v1; /** + * + * *
      * Resource representation as defined by the corresponding service providing the
      * resource for a given API version.
    @@ -11,47 +28,51 @@
      *
      * Protobuf type {@code google.cloud.asset.v1.VersionedResource}
      */
    -public final class VersionedResource extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class VersionedResource extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.VersionedResource)
         VersionedResourceOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use VersionedResource.newBuilder() to construct.
       private VersionedResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private VersionedResource() {
         version_ = "";
       }
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(
    -      UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new VersionedResource();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_VersionedResource_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.cloud.asset.v1.AssetProto
    +        .internal_static_google_cloud_asset_v1_VersionedResource_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_VersionedResource_fieldAccessorTable
    +    return com.google.cloud.asset.v1.AssetProto
    +        .internal_static_google_cloud_asset_v1_VersionedResource_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1.VersionedResource.class, com.google.cloud.asset.v1.VersionedResource.Builder.class);
    +            com.google.cloud.asset.v1.VersionedResource.class,
    +            com.google.cloud.asset.v1.VersionedResource.Builder.class);
       }
     
       public static final int VERSION_FIELD_NUMBER = 1;
       private volatile java.lang.Object version_;
       /**
    +   *
    +   *
        * 
        * API version of the resource.
        * Example:
    @@ -61,6 +82,7 @@ protected java.lang.Object newInstance(
        * 
    * * string version = 1; + * * @return The version. */ @java.lang.Override @@ -69,14 +91,15 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
        * API version of the resource.
        * Example:
    @@ -86,16 +109,15 @@ public java.lang.String getVersion() {
        * 
    * * string version = 1; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -106,6 +128,8 @@ public java.lang.String getVersion() { public static final int RESOURCE_FIELD_NUMBER = 2; private com.google.protobuf.Struct resource_; /** + * + * *
        * JSON representation of the resource as defined by the corresponding
        * service providing this resource.
    @@ -120,6 +144,7 @@ public java.lang.String getVersion() {
        * 
    * * .google.protobuf.Struct resource = 2; + * * @return Whether the resource field is set. */ @java.lang.Override @@ -127,6 +152,8 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
        * JSON representation of the resource as defined by the corresponding
        * service providing this resource.
    @@ -141,6 +168,7 @@ public boolean hasResource() {
        * 
    * * .google.protobuf.Struct resource = 2; + * * @return The resource. */ @java.lang.Override @@ -148,6 +176,8 @@ public com.google.protobuf.Struct getResource() { return resource_ == null ? com.google.protobuf.Struct.getDefaultInstance() : resource_; } /** + * + * *
        * JSON representation of the resource as defined by the corresponding
        * service providing this resource.
    @@ -169,6 +199,7 @@ public com.google.protobuf.StructOrBuilder getResourceOrBuilder() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -180,8 +211,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
         }
    @@ -201,8 +231,7 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_);
         }
         if (resource_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(2, getResource());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResource());
         }
         size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
    @@ -212,19 +241,18 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1.VersionedResource)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1.VersionedResource other = (com.google.cloud.asset.v1.VersionedResource) obj;
    +    com.google.cloud.asset.v1.VersionedResource other =
    +        (com.google.cloud.asset.v1.VersionedResource) obj;
     
    -    if (!getVersion()
    -        .equals(other.getVersion())) return false;
    +    if (!getVersion().equals(other.getVersion())) return false;
         if (hasResource() != other.hasResource()) return false;
         if (hasResource()) {
    -      if (!getResource()
    -          .equals(other.getResource())) return false;
    +      if (!getResource().equals(other.getResource())) return false;
         }
         if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
    @@ -248,97 +276,104 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1.VersionedResource parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1.VersionedResource parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.VersionedResource parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.VersionedResource parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.VersionedResource 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.asset.v1.VersionedResource parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1.VersionedResource parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.VersionedResource parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.VersionedResource parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.cloud.asset.v1.VersionedResource parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.cloud.asset.v1.VersionedResource parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.VersionedResource parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1.VersionedResource parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1.VersionedResource parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.cloud.asset.v1.VersionedResource prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Resource representation as defined by the corresponding service providing the
        * resource for a given API version.
    @@ -346,33 +381,32 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.asset.v1.VersionedResource}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.VersionedResource)
           com.google.cloud.asset.v1.VersionedResourceOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_VersionedResource_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_VersionedResource_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_VersionedResource_fieldAccessorTable
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_VersionedResource_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1.VersionedResource.class, com.google.cloud.asset.v1.VersionedResource.Builder.class);
    +              com.google.cloud.asset.v1.VersionedResource.class,
    +              com.google.cloud.asset.v1.VersionedResource.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1.VersionedResource.newBuilder()
    -    private Builder() {
    -
    -    }
    +    private Builder() {}
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -388,9 +422,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.cloud.asset.v1.AssetProto.internal_static_google_cloud_asset_v1_VersionedResource_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.cloud.asset.v1.AssetProto
    +          .internal_static_google_cloud_asset_v1_VersionedResource_descriptor;
         }
     
         @java.lang.Override
    @@ -409,7 +443,8 @@ public com.google.cloud.asset.v1.VersionedResource build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1.VersionedResource buildPartial() {
    -      com.google.cloud.asset.v1.VersionedResource result = new com.google.cloud.asset.v1.VersionedResource(this);
    +      com.google.cloud.asset.v1.VersionedResource result =
    +          new com.google.cloud.asset.v1.VersionedResource(this);
           result.version_ = version_;
           if (resourceBuilder_ == null) {
             result.resource_ = resource_;
    @@ -424,38 +459,39 @@ public com.google.cloud.asset.v1.VersionedResource buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1.VersionedResource) {
    -        return mergeFrom((com.google.cloud.asset.v1.VersionedResource)other);
    +        return mergeFrom((com.google.cloud.asset.v1.VersionedResource) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -497,24 +533,25 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
    -            case 10: {
    -              version_ = input.readStringRequireUtf8();
    -
    -              break;
    -            } // case 10
    -            case 18: {
    -              input.readMessage(
    -                  getResourceFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -
    -              break;
    -            } // case 18
    -            default: {
    -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                done = true; // was an endgroup tag
    -              }
    -              break;
    -            } // default:
    +            case 10:
    +              {
    +                version_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -527,6 +564,8 @@ public Builder mergeFrom(
     
         private java.lang.Object version_ = "";
         /**
    +     *
    +     *
          * 
          * API version of the resource.
          * Example:
    @@ -536,13 +575,13 @@ public Builder mergeFrom(
          * 
    * * string version = 1; + * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -551,6 +590,8 @@ public java.lang.String getVersion() { } } /** + * + * *
          * API version of the resource.
          * Example:
    @@ -560,15 +601,14 @@ public java.lang.String getVersion() {
          * 
    * * string version = 1; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -576,6 +616,8 @@ public java.lang.String getVersion() { } } /** + * + * *
          * API version of the resource.
          * Example:
    @@ -585,20 +627,22 @@ public java.lang.String getVersion() {
          * 
    * * string version = 1; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
          * API version of the resource.
          * Example:
    @@ -608,15 +652,18 @@ public Builder setVersion(
          * 
    * * string version = 1; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
          * API version of the resource.
          * Example:
    @@ -626,16 +673,16 @@ public Builder clearVersion() {
          * 
    * * string version = 1; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -643,8 +690,13 @@ public Builder setVersionBytes( private com.google.protobuf.Struct resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> resourceBuilder_; + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + resourceBuilder_; /** + * + * *
          * JSON representation of the resource as defined by the corresponding
          * service providing this resource.
    @@ -659,12 +711,15 @@ public Builder setVersionBytes(
          * 
    * * .google.protobuf.Struct resource = 2; + * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** + * + * *
          * JSON representation of the resource as defined by the corresponding
          * service providing this resource.
    @@ -679,6 +734,7 @@ public boolean hasResource() {
          * 
    * * .google.protobuf.Struct resource = 2; + * * @return The resource. */ public com.google.protobuf.Struct getResource() { @@ -689,6 +745,8 @@ public com.google.protobuf.Struct getResource() { } } /** + * + * *
          * JSON representation of the resource as defined by the corresponding
          * service providing this resource.
    @@ -718,6 +776,8 @@ public Builder setResource(com.google.protobuf.Struct value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * JSON representation of the resource as defined by the corresponding
          * service providing this resource.
    @@ -733,8 +793,7 @@ public Builder setResource(com.google.protobuf.Struct value) {
          *
          * .google.protobuf.Struct resource = 2;
          */
    -    public Builder setResource(
    -        com.google.protobuf.Struct.Builder builderForValue) {
    +    public Builder setResource(com.google.protobuf.Struct.Builder builderForValue) {
           if (resourceBuilder_ == null) {
             resource_ = builderForValue.build();
             onChanged();
    @@ -745,6 +804,8 @@ public Builder setResource(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * JSON representation of the resource as defined by the corresponding
          * service providing this resource.
    @@ -764,7 +825,7 @@ public Builder mergeResource(com.google.protobuf.Struct value) {
           if (resourceBuilder_ == null) {
             if (resource_ != null) {
               resource_ =
    -            com.google.protobuf.Struct.newBuilder(resource_).mergeFrom(value).buildPartial();
    +              com.google.protobuf.Struct.newBuilder(resource_).mergeFrom(value).buildPartial();
             } else {
               resource_ = value;
             }
    @@ -776,6 +837,8 @@ public Builder mergeResource(com.google.protobuf.Struct value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * JSON representation of the resource as defined by the corresponding
          * service providing this resource.
    @@ -803,6 +866,8 @@ public Builder clearResource() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * JSON representation of the resource as defined by the corresponding
          * service providing this resource.
    @@ -819,11 +884,13 @@ public Builder clearResource() {
          * .google.protobuf.Struct resource = 2;
          */
         public com.google.protobuf.Struct.Builder getResourceBuilder() {
    -      
    +
           onChanged();
           return getResourceFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * JSON representation of the resource as defined by the corresponding
          * service providing this resource.
    @@ -843,11 +910,12 @@ public com.google.protobuf.StructOrBuilder getResourceOrBuilder() {
           if (resourceBuilder_ != null) {
             return resourceBuilder_.getMessageOrBuilder();
           } else {
    -        return resource_ == null ?
    -            com.google.protobuf.Struct.getDefaultInstance() : resource_;
    +        return resource_ == null ? com.google.protobuf.Struct.getDefaultInstance() : resource_;
           }
         }
         /**
    +     *
    +     *
          * 
          * JSON representation of the resource as defined by the corresponding
          * service providing this resource.
    @@ -864,21 +932,24 @@ public com.google.protobuf.StructOrBuilder getResourceOrBuilder() {
          * .google.protobuf.Struct resource = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
    +            com.google.protobuf.Struct,
    +            com.google.protobuf.Struct.Builder,
    +            com.google.protobuf.StructOrBuilder>
             getResourceFieldBuilder() {
           if (resourceBuilder_ == null) {
    -        resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
    -                getResource(),
    -                getParentForChildren(),
    -                isClean());
    +        resourceBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.Struct,
    +                com.google.protobuf.Struct.Builder,
    +                com.google.protobuf.StructOrBuilder>(
    +                getResource(), getParentForChildren(), isClean());
             resource_ = null;
           }
           return resourceBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -888,12 +959,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.VersionedResource)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.VersionedResource)
       private static final com.google.cloud.asset.v1.VersionedResource DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1.VersionedResource();
       }
    @@ -902,27 +973,27 @@ public static com.google.cloud.asset.v1.VersionedResource getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public VersionedResource parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      Builder builder = newBuilder();
    -      try {
    -        builder.mergeFrom(input, extensionRegistry);
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(builder.buildPartial());
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    -            .setUnfinishedMessage(builder.buildPartial());
    -      }
    -      return builder.buildPartial();
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public VersionedResource parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -937,6 +1008,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1.VersionedResource getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResourceOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResourceOrBuilder.java
    similarity index 80%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResourceOrBuilder.java
    rename to java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResourceOrBuilder.java
    index 9f9efa604b04..d86916246d95 100644
    --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResourceOrBuilder.java
    +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/VersionedResourceOrBuilder.java
    @@ -1,13 +1,31 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1/assets.proto
     
     package com.google.cloud.asset.v1;
     
    -public interface VersionedResourceOrBuilder extends
    +public interface VersionedResourceOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.VersionedResource)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * API version of the resource.
        * Example:
    @@ -17,10 +35,13 @@ public interface VersionedResourceOrBuilder extends
        * 
    * * string version = 1; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
        * API version of the resource.
        * Example:
    @@ -30,12 +51,14 @@ public interface VersionedResourceOrBuilder extends
        * 
    * * string version = 1; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
        * JSON representation of the resource as defined by the corresponding
        * service providing this resource.
    @@ -50,10 +73,13 @@ public interface VersionedResourceOrBuilder extends
        * 
    * * .google.protobuf.Struct resource = 2; + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
        * JSON representation of the resource as defined by the corresponding
        * service providing this resource.
    @@ -68,10 +94,13 @@ public interface VersionedResourceOrBuilder extends
        * 
    * * .google.protobuf.Struct resource = 2; + * * @return The resource. */ com.google.protobuf.Struct getResource(); /** + * + * *
        * JSON representation of the resource as defined by the corresponding
        * service providing this resource.
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto b/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto
    similarity index 100%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto
    rename to java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto
    diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto b/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto
    similarity index 100%
    rename from owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto
    rename to java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto
    diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetProto.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetProto.java
    new file mode 100644
    index 000000000000..af7874a84ad5
    --- /dev/null
    +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetProto.java
    @@ -0,0 +1,163 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +// Generated by the protocol buffer compiler.  DO NOT EDIT!
    +// source: google/cloud/asset/v1p1beta1/assets.proto
    +
    +package com.google.cloud.asset.v1p1beta1;
    +
    +public final class AssetProto {
    +  private AssetProto() {}
    +
    +  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_asset_v1p1beta1_StandardResourceMetadata_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_fieldAccessorTable;
    +  static final com.google.protobuf.Descriptors.Descriptor
    +      internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_LabelsEntry_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_LabelsEntry_fieldAccessorTable;
    +  static final com.google.protobuf.Descriptors.Descriptor
    +      internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_fieldAccessorTable;
    +  static final com.google.protobuf.Descriptors.Descriptor
    +      internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_fieldAccessorTable;
    +  static final com.google.protobuf.Descriptors.Descriptor
    +      internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_fieldAccessorTable;
    +  static final com.google.protobuf.Descriptors.Descriptor
    +      internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_cloud_asset_v1p1beta1_Permissions_fieldAccessorTable;
    +
    +  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
    +    return descriptor;
    +  }
    +
    +  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
    +
    +  static {
    +    java.lang.String[] descriptorData = {
    +      "\n)google/cloud/asset/v1p1beta1/assets.pr"
    +          + "oto\022\034google.cloud.asset.v1p1beta1\032\032googl"
    +          + "e/iam/v1/policy.proto\"\302\002\n\030StandardResour"
    +          + "ceMetadata\022\014\n\004name\030\001 \001(\t\022\022\n\nasset_type\030\002"
    +          + " \001(\t\022\017\n\007project\030\003 \001(\t\022\024\n\014display_name\030\004 "
    +          + "\001(\t\022\023\n\013description\030\005 \001(\t\022\035\n\025additional_a"
    +          + "ttributes\030\n \003(\t\022\020\n\010location\030\013 \001(\t\022R\n\006lab"
    +          + "els\030\014 \003(\0132B.google.cloud.asset.v1p1beta1"
    +          + ".StandardResourceMetadata.LabelsEntry\022\024\n"
    +          + "\014network_tags\030\r \003(\t\032-\n\013LabelsEntry\022\013\n\003ke"
    +          + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\243\003\n\025IamPolicy"
    +          + "SearchResult\022\020\n\010resource\030\001 \001(\t\022\017\n\007projec"
    +          + "t\030\003 \001(\t\022%\n\006policy\030\004 \001(\0132\025.google.iam.v1."
    +          + "Policy\022T\n\013explanation\030\005 \001(\0132?.google.clo"
    +          + "ud.asset.v1p1beta1.IamPolicySearchResult"
    +          + ".Explanation\032\351\001\n\013Explanation\022t\n\023matched_"
    +          + "permissions\030\001 \003(\0132W.google.cloud.asset.v"
    +          + "1p1beta1.IamPolicySearchResult.Explanati"
    +          + "on.MatchedPermissionsEntry\032d\n\027MatchedPer"
    +          + "missionsEntry\022\013\n\003key\030\001 \001(\t\0228\n\005value\030\002 \001("
    +          + "\0132).google.cloud.asset.v1p1beta1.Permiss"
    +          + "ions:\0028\001\"\"\n\013Permissions\022\023\n\013permissions\030\001"
    +          + " \003(\tB\264\001\n com.google.cloud.asset.v1p1beta"
    +          + "1B\nAssetProtoP\001ZAgoogle.golang.org/genpr"
    +          + "oto/googleapis/cloud/asset/v1p1beta1;ass"
    +          + "et\370\001\001\252\002\034Google.Cloud.Asset.V1P1Beta1\312\002\034G"
    +          + "oogle\\Cloud\\Asset\\V1p1beta1b\006proto3"
    +    };
    +    descriptor =
    +        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
    +            descriptorData,
    +            new com.google.protobuf.Descriptors.FileDescriptor[] {
    +              com.google.iam.v1.PolicyProto.getDescriptor(),
    +            });
    +    internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor =
    +        getDescriptor().getMessageTypes().get(0);
    +    internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor,
    +            new java.lang.String[] {
    +              "Name",
    +              "AssetType",
    +              "Project",
    +              "DisplayName",
    +              "Description",
    +              "AdditionalAttributes",
    +              "Location",
    +              "Labels",
    +              "NetworkTags",
    +            });
    +    internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_LabelsEntry_descriptor =
    +        internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor
    +            .getNestedTypes()
    +            .get(0);
    +    internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_LabelsEntry_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_LabelsEntry_descriptor,
    +            new java.lang.String[] {
    +              "Key", "Value",
    +            });
    +    internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor =
    +        getDescriptor().getMessageTypes().get(1);
    +    internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor,
    +            new java.lang.String[] {
    +              "Resource", "Project", "Policy", "Explanation",
    +            });
    +    internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor =
    +        internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor
    +            .getNestedTypes()
    +            .get(0);
    +    internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor,
    +            new java.lang.String[] {
    +              "MatchedPermissions",
    +            });
    +    internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor =
    +        internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor
    +            .getNestedTypes()
    +            .get(0);
    +    internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor,
    +            new java.lang.String[] {
    +              "Key", "Value",
    +            });
    +    internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor =
    +        getDescriptor().getMessageTypes().get(2);
    +    internal_static_google_cloud_asset_v1p1beta1_Permissions_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor,
    +            new java.lang.String[] {
    +              "Permissions",
    +            });
    +    com.google.iam.v1.PolicyProto.getDescriptor();
    +  }
    +
    +  // @@protoc_insertion_point(outer_class_scope)
    +}
    diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceProto.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceProto.java
    new file mode 100644
    index 000000000000..1b0e9289cadb
    --- /dev/null
    +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceProto.java
    @@ -0,0 +1,150 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +// Generated by the protocol buffer compiler.  DO NOT EDIT!
    +// source: google/cloud/asset/v1p1beta1/asset_service.proto
    +
    +package com.google.cloud.asset.v1p1beta1;
    +
    +public final class AssetServiceProto {
    +  private AssetServiceProto() {}
    +
    +  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_asset_v1p1beta1_SearchAllResourcesRequest_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_fieldAccessorTable;
    +  static final com.google.protobuf.Descriptors.Descriptor
    +      internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_fieldAccessorTable;
    +  static final com.google.protobuf.Descriptors.Descriptor
    +      internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_fieldAccessorTable;
    +  static final com.google.protobuf.Descriptors.Descriptor
    +      internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_fieldAccessorTable;
    +
    +  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
    +    return descriptor;
    +  }
    +
    +  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
    +
    +  static {
    +    java.lang.String[] descriptorData = {
    +      "\n0google/cloud/asset/v1p1beta1/asset_ser"
    +          + "vice.proto\022\034google.cloud.asset.v1p1beta1"
    +          + "\032\034google/api/annotations.proto\032\027google/a"
    +          + "pi/client.proto\032\037google/api/field_behavi"
    +          + "or.proto\032)google/cloud/asset/v1p1beta1/a"
    +          + "ssets.proto\"\245\001\n\031SearchAllResourcesReques"
    +          + "t\022\022\n\005scope\030\001 \001(\tB\003\340A\002\022\022\n\005query\030\002 \001(\tB\003\340A"
    +          + "\001\022\030\n\013asset_types\030\003 \003(\tB\003\340A\001\022\026\n\tpage_size"
    +          + "\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005 \001(\tB\003\340A\001\022\025\n\010"
    +          + "order_by\030\n \001(\tB\003\340A\001\"~\n\032SearchAllResource"
    +          + "sResponse\022G\n\007results\030\001 \003(\01326.google.clou"
    +          + "d.asset.v1p1beta1.StandardResourceMetada"
    +          + "ta\022\027\n\017next_page_token\030\002 \001(\t\"v\n\033SearchAll"
    +          + "IamPoliciesRequest\022\022\n\005scope\030\001 \001(\tB\003\340A\002\022\022"
    +          + "\n\005query\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340"
    +          + "A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\"}\n\034SearchAll"
    +          + "IamPoliciesResponse\022D\n\007results\030\001 \003(\01323.g"
    +          + "oogle.cloud.asset.v1p1beta1.IamPolicySea"
    +          + "rchResult\022\027\n\017next_page_token\030\002 \001(\t2\211\004\n\014A"
    +          + "ssetService\022\325\001\n\022SearchAllResources\0227.goo"
    +          + "gle.cloud.asset.v1p1beta1.SearchAllResou"
    +          + "rcesRequest\0328.google.cloud.asset.v1p1bet"
    +          + "a1.SearchAllResourcesResponse\"L\202\323\344\223\002,\022*/"
    +          + "v1p1beta1/{scope=*/*}/resources:searchAl"
    +          + "l\332A\027scope,query,asset_types\022\321\001\n\024SearchAl"
    +          + "lIamPolicies\0229.google.cloud.asset.v1p1be"
    +          + "ta1.SearchAllIamPoliciesRequest\032:.google"
    +          + ".cloud.asset.v1p1beta1.SearchAllIamPolic"
    +          + "iesResponse\"B\202\323\344\223\002.\022,/v1p1beta1/{scope=*"
    +          + "/*}/iamPolicies:searchAll\332A\013scope,query\032"
    +          + "M\312A\031cloudasset.googleapis.com\322A.https://"
    +          + "www.googleapis.com/auth/cloud-platformB\270"
    +          + "\001\n com.google.cloud.asset.v1p1beta1B\021Ass"
    +          + "etServiceProtoP\001ZAgoogle.golang.org/genp"
    +          + "roto/googleapis/cloud/asset/v1p1beta1;as"
    +          + "set\252\002\034Google.Cloud.Asset.V1P1Beta1\312\002\034Goo"
    +          + "gle\\Cloud\\Asset\\V1p1beta1b\006proto3"
    +    };
    +    descriptor =
    +        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
    +            descriptorData,
    +            new com.google.protobuf.Descriptors.FileDescriptor[] {
    +              com.google.api.AnnotationsProto.getDescriptor(),
    +              com.google.api.ClientProto.getDescriptor(),
    +              com.google.api.FieldBehaviorProto.getDescriptor(),
    +              com.google.cloud.asset.v1p1beta1.AssetProto.getDescriptor(),
    +            });
    +    internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_descriptor =
    +        getDescriptor().getMessageTypes().get(0);
    +    internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_descriptor,
    +            new java.lang.String[] {
    +              "Scope", "Query", "AssetTypes", "PageSize", "PageToken", "OrderBy",
    +            });
    +    internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor =
    +        getDescriptor().getMessageTypes().get(1);
    +    internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor,
    +            new java.lang.String[] {
    +              "Results", "NextPageToken",
    +            });
    +    internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor =
    +        getDescriptor().getMessageTypes().get(2);
    +    internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor,
    +            new java.lang.String[] {
    +              "Scope", "Query", "PageSize", "PageToken",
    +            });
    +    internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor =
    +        getDescriptor().getMessageTypes().get(3);
    +    internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor,
    +            new java.lang.String[] {
    +              "Results", "NextPageToken",
    +            });
    +    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);
    +    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.cloud.asset.v1p1beta1.AssetProto.getDescriptor();
    +  }
    +
    +  // @@protoc_insertion_point(outer_class_scope)
    +}
    diff --git a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResult.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResult.java
    similarity index 70%
    rename from owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResult.java
    rename to java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResult.java
    index 974662427b77..42810c37d273 100644
    --- a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResult.java
    +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResult.java
    @@ -1,24 +1,42 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1p1beta1/assets.proto
     
     package com.google.cloud.asset.v1p1beta1;
     
     /**
    + *
    + *
      * 
      * The result for a IAM Policy search.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.IamPolicySearchResult} */ -public final class IamPolicySearchResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class IamPolicySearchResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p1beta1.IamPolicySearchResult) IamPolicySearchResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IamPolicySearchResult.newBuilder() to construct. private IamPolicySearchResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private IamPolicySearchResult() { resource_ = ""; project_ = ""; @@ -26,34 +44,38 @@ private IamPolicySearchResult() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IamPolicySearchResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.class, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder.class); + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.class, + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder.class); } - public interface ExplanationOrBuilder extends + public interface ExplanationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * The map from roles to their included permission matching the permission
          * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -62,10 +84,13 @@ public interface ExplanationOrBuilder extends
          * requesting with a permission query.
          * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; + * */ int getMatchedPermissionsCount(); /** + * + * *
          * The map from roles to their included permission matching the permission
          * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -74,17 +99,17 @@ public interface ExplanationOrBuilder extends
          * requesting with a permission query.
          * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; - */ - boolean containsMatchedPermissions( - java.lang.String key); - /** - * Use {@link #getMatchedPermissionsMap()} instead. + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; + * */ + boolean containsMatchedPermissions(java.lang.String key); + /** Use {@link #getMatchedPermissionsMap()} instead. */ @java.lang.Deprecated java.util.Map - getMatchedPermissions(); + getMatchedPermissions(); /** + * + * *
          * The map from roles to their included permission matching the permission
          * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -93,11 +118,14 @@ boolean containsMatchedPermissions(
          * requesting with a permission query.
          * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; + * */ java.util.Map - getMatchedPermissionsMap(); + getMatchedPermissionsMap(); /** + * + * *
          * The map from roles to their included permission matching the permission
          * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -106,15 +134,18 @@ boolean containsMatchedPermissions(
          * requesting with a permission query.
          * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; + * */ /* nullable */ -com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrDefault( + com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.asset.v1p1beta1.Permissions defaultValue); + com.google.cloud.asset.v1p1beta1.Permissions defaultValue); /** + * + * *
          * The map from roles to their included permission matching the permission
          * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -123,84 +154,93 @@ com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrDefault(
          * requesting with a permission query.
          * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; + * */ - - com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrThrow( - java.lang.String key); + com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrThrow(java.lang.String key); } /** + * + * *
        * Explanation about the IAM policy search result.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation} */ - public static final class Explanation extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Explanation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation) ExplanationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Explanation.newBuilder() to construct. private Explanation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Explanation() { - } + + private Explanation() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Explanation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetMatchedPermissions(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.class, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder.class); + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.class, + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder.class); } public static final int MATCHED_PERMISSIONS_FIELD_NUMBER = 1; + private static final class MatchedPermissionsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.asset.v1p1beta1.Permissions> defaultEntry = + java.lang.String, com.google.cloud.asset.v1p1beta1.Permissions> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.asset.v1p1beta1.Permissions.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.asset.v1p1beta1.Permissions.getDefaultInstance()); } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.asset.v1p1beta1.Permissions> + matchedPermissions_; + private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.asset.v1p1beta1.Permissions> matchedPermissions_; - private com.google.protobuf.MapField - internalGetMatchedPermissions() { + java.lang.String, com.google.cloud.asset.v1p1beta1.Permissions> + internalGetMatchedPermissions() { if (matchedPermissions_ == null) { return com.google.protobuf.MapField.emptyMapField( MatchedPermissionsDefaultEntryHolder.defaultEntry); @@ -212,6 +252,8 @@ public int getMatchedPermissionsCount() { return internalGetMatchedPermissions().getMap().size(); } /** + * + * *
          * The map from roles to their included permission matching the permission
          * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -220,24 +262,26 @@ public int getMatchedPermissionsCount() {
          * requesting with a permission query.
          * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; + * */ - @java.lang.Override - public boolean containsMatchedPermissions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsMatchedPermissions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetMatchedPermissions().getMap().containsKey(key); } - /** - * Use {@link #getMatchedPermissionsMap()} instead. - */ + /** Use {@link #getMatchedPermissionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getMatchedPermissions() { + public java.util.Map + getMatchedPermissions() { return getMatchedPermissionsMap(); } /** + * + * *
          * The map from roles to their included permission matching the permission
          * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -246,14 +290,17 @@ public java.util.Map
          *
    -     * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
    +     * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
    +     * 
          */
         @java.lang.Override
    -
    -    public java.util.Map getMatchedPermissionsMap() {
    +    public java.util.Map
    +        getMatchedPermissionsMap() {
           return internalGetMatchedPermissions().getMap();
         }
         /**
    +     *
    +     *
          * 
          * The map from roles to their included permission matching the permission
          * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -262,19 +309,22 @@ public java.util.Map
          *
    -     * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
    +     * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
    +     * 
          */
         @java.lang.Override
    -
         public com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrDefault(
    -        java.lang.String key,
    -        com.google.cloud.asset.v1p1beta1.Permissions defaultValue) {
    -      if (key == null) { throw new NullPointerException("map key"); }
    +        java.lang.String key, com.google.cloud.asset.v1p1beta1.Permissions defaultValue) {
    +      if (key == null) {
    +        throw new NullPointerException("map key");
    +      }
           java.util.Map map =
               internalGetMatchedPermissions().getMap();
           return map.containsKey(key) ? map.get(key) : defaultValue;
         }
         /**
    +     *
    +     *
          * 
          * The map from roles to their included permission matching the permission
          * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -283,13 +333,15 @@ public com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrDefau
          * requesting with a permission query.
          * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; + * */ @java.lang.Override - public com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetMatchedPermissions().getMap(); if (!map.containsKey(key)) { @@ -299,6 +351,7 @@ public com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrThrow } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -310,10 +363,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetMatchedPermissions(), MatchedPermissionsDefaultEntryHolder.defaultEntry, @@ -327,15 +378,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetMatchedPermissions().getMap().entrySet()) { + for (java.util.Map.Entry + entry : internalGetMatchedPermissions().getMap().entrySet()) { com.google.protobuf.MapEntry - matchedPermissions__ = MatchedPermissionsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, matchedPermissions__); + matchedPermissions__ = + MatchedPermissionsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, matchedPermissions__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -345,15 +397,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation)) { return super.equals(obj); } - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation other = (com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation) obj; + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation other = + (com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation) obj; - if (!internalGetMatchedPermissions().equals( - other.internalGetMatchedPermissions())) return false; + if (!internalGetMatchedPermissions().equals(other.internalGetMatchedPermissions())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -375,87 +428,95 @@ public int hashCode() { } public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation 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.asset.v1p1beta1.IamPolicySearchResult.Explanation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation 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.asset.v1p1beta1.IamPolicySearchResult.Explanation + 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.asset.v1p1beta1.IamPolicySearchResult.Explanation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -465,61 +526,62 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * Explanation about the IAM policy search result.
          * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation) com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetMatchedPermissions(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 1: return internalGetMutableMatchedPermissions(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.class, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder.class); + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.class, + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder.class); } - // Construct using com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -528,14 +590,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation getDefaultInstanceForType() { - return com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.getDefaultInstance(); + public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation + getDefaultInstanceForType() { + return com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation + .getDefaultInstance(); } @java.lang.Override @@ -549,7 +613,8 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation build( @java.lang.Override public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation buildPartial() { - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation result = new com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation(this); + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation result = + new com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation(this); int from_bitField0_ = bitField0_; result.matchedPermissions_ = internalGetMatchedPermissions(); result.matchedPermissions_.makeImmutable(); @@ -561,48 +626,54 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p1beta1.IamPolicySearchResult.Explanation) { - return mergeFrom((com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation)other); + return mergeFrom( + (com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation other) { - if (other == com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.getDefaultInstance()) return this; - internalGetMutableMatchedPermissions().mergeFrom( - other.internalGetMatchedPermissions()); + public Builder mergeFrom( + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation other) { + if (other + == com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation + .getDefaultInstance()) return this; + internalGetMutableMatchedPermissions().mergeFrom(other.internalGetMatchedPermissions()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -629,20 +700,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.protobuf.MapEntry - matchedPermissions__ = input.readMessage( - MatchedPermissionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableMatchedPermissions().getMutableMap().put( - matchedPermissions__.getKey(), matchedPermissions__.getValue()); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.asset.v1p1beta1.Permissions> + matchedPermissions__ = + input.readMessage( + MatchedPermissionsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMatchedPermissions() + .getMutableMap() + .put(matchedPermissions__.getKey(), matchedPermissions__.getValue()); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -652,24 +729,32 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.asset.v1p1beta1.Permissions> matchedPermissions_; - private com.google.protobuf.MapField - internalGetMatchedPermissions() { + java.lang.String, com.google.cloud.asset.v1p1beta1.Permissions> + matchedPermissions_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.asset.v1p1beta1.Permissions> + internalGetMatchedPermissions() { if (matchedPermissions_ == null) { return com.google.protobuf.MapField.emptyMapField( MatchedPermissionsDefaultEntryHolder.defaultEntry); } return matchedPermissions_; } - private com.google.protobuf.MapField - internalGetMutableMatchedPermissions() { - onChanged();; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.asset.v1p1beta1.Permissions> + internalGetMutableMatchedPermissions() { + onChanged(); + ; if (matchedPermissions_ == null) { - matchedPermissions_ = com.google.protobuf.MapField.newMapField( - MatchedPermissionsDefaultEntryHolder.defaultEntry); + matchedPermissions_ = + com.google.protobuf.MapField.newMapField( + MatchedPermissionsDefaultEntryHolder.defaultEntry); } if (!matchedPermissions_.isMutable()) { matchedPermissions_ = matchedPermissions_.copy(); @@ -681,6 +766,8 @@ public int getMatchedPermissionsCount() { return internalGetMatchedPermissions().getMap().size(); } /** + * + * *
            * The map from roles to their included permission matching the permission
            * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -689,24 +776,26 @@ public int getMatchedPermissionsCount() {
            * requesting with a permission query.
            * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; + * */ - @java.lang.Override - public boolean containsMatchedPermissions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsMatchedPermissions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetMatchedPermissions().getMap().containsKey(key); } - /** - * Use {@link #getMatchedPermissionsMap()} instead. - */ + /** Use {@link #getMatchedPermissionsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getMatchedPermissions() { + public java.util.Map + getMatchedPermissions() { return getMatchedPermissionsMap(); } /** + * + * *
            * The map from roles to their included permission matching the permission
            * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -715,14 +804,17 @@ public java.util.Map
            *
    -       * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
    +       * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
    +       * 
            */
           @java.lang.Override
    -
    -      public java.util.Map getMatchedPermissionsMap() {
    +      public java.util.Map
    +          getMatchedPermissionsMap() {
             return internalGetMatchedPermissions().getMap();
           }
           /**
    +       *
    +       *
            * 
            * The map from roles to their included permission matching the permission
            * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -731,19 +823,22 @@ public java.util.Map
            *
    -       * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
    +       * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1;
    +       * 
            */
           @java.lang.Override
    -
           public com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrDefault(
    -          java.lang.String key,
    -          com.google.cloud.asset.v1p1beta1.Permissions defaultValue) {
    -        if (key == null) { throw new NullPointerException("map key"); }
    +          java.lang.String key, com.google.cloud.asset.v1p1beta1.Permissions defaultValue) {
    +        if (key == null) {
    +          throw new NullPointerException("map key");
    +        }
             java.util.Map map =
                 internalGetMatchedPermissions().getMap();
             return map.containsKey(key) ? map.get(key) : defaultValue;
           }
           /**
    +       *
    +       *
            * 
            * The map from roles to their included permission matching the permission
            * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -752,13 +847,15 @@ public com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrDefau
            * requesting with a permission query.
            * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; + * */ @java.lang.Override - public com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetMatchedPermissions().getMap(); if (!map.containsKey(key)) { @@ -768,11 +865,12 @@ public com.google.cloud.asset.v1p1beta1.Permissions getMatchedPermissionsOrThrow } public Builder clearMatchedPermissions() { - internalGetMutableMatchedPermissions().getMutableMap() - .clear(); + internalGetMutableMatchedPermissions().getMutableMap().clear(); return this; } /** + * + * *
            * The map from roles to their included permission matching the permission
            * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -781,25 +879,25 @@ public Builder clearMatchedPermissions() {
            * requesting with a permission query.
            * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; + * */ - - public Builder removeMatchedPermissions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableMatchedPermissions().getMutableMap() - .remove(key); + public Builder removeMatchedPermissions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableMatchedPermissions().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map - getMutableMatchedPermissions() { + getMutableMatchedPermissions() { return internalGetMutableMatchedPermissions().getMutableMap(); } /** + * + * *
            * The map from roles to their included permission matching the permission
            * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -808,21 +906,24 @@ public Builder removeMatchedPermissions(
            * requesting with a permission query.
            * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; + * */ public Builder putMatchedPermissions( - java.lang.String key, - com.google.cloud.asset.v1p1beta1.Permissions value) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.cloud.asset.v1p1beta1.Permissions value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableMatchedPermissions().getMutableMap() - .put(key, value); + internalGetMutableMatchedPermissions().getMutableMap().put(key, value); return this; } /** + * + * *
            * The map from roles to their included permission matching the permission
            * query (e.g. containing `policy.role.permissions:`). A sample role string:
    @@ -831,15 +932,15 @@ public Builder putMatchedPermissions(
            * requesting with a permission query.
            * 
    * - * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; + * map<string, .google.cloud.asset.v1p1beta1.Permissions> matched_permissions = 1; + * */ - public Builder putAllMatchedPermissions( java.util.Map values) { - internalGetMutableMatchedPermissions().getMutableMap() - .putAll(values); + internalGetMutableMatchedPermissions().getMutableMap().putAll(values); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -852,41 +953,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation) - private static final com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation DEFAULT_INSTANCE; + private static final com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation(); } - public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation getDefaultInstance() { + public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Explanation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Explanation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -898,15 +1002,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation getDefaultInstanceForType() { + public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int RESOURCE_FIELD_NUMBER = 1; private volatile java.lang.Object resource_; /** + * + * *
        * The [full resource
        * name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    @@ -914,6 +1020,7 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation getDef
        * 
    * * string resource = 1; + * * @return The resource. */ @java.lang.Override @@ -922,14 +1029,15 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** + * + * *
        * The [full resource
        * name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    @@ -937,16 +1045,15 @@ public java.lang.String getResource() {
        * 
    * * string resource = 1; + * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -957,6 +1064,8 @@ public java.lang.String getResource() { public static final int PROJECT_FIELD_NUMBER = 3; private volatile java.lang.Object project_; /** + * + * *
        * The project that the associated GCP resource belongs to, in the form of
        * `projects/{project_number}`. If an IAM policy is set on a resource (like VM
    @@ -966,6 +1075,7 @@ public java.lang.String getResource() {
        * 
    * * string project = 3; + * * @return The project. */ @java.lang.Override @@ -974,14 +1084,15 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** + * + * *
        * The project that the associated GCP resource belongs to, in the form of
        * `projects/{project_number}`. If an IAM policy is set on a resource (like VM
    @@ -991,16 +1102,15 @@ public java.lang.String getProject() {
        * 
    * * string project = 3; + * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { @@ -1011,6 +1121,8 @@ public java.lang.String getProject() { public static final int POLICY_FIELD_NUMBER = 4; private com.google.iam.v1.Policy policy_; /** + * + * *
        * The IAM policy directly set on the given resource. Note that the original
        * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -1019,6 +1131,7 @@ public java.lang.String getProject() {
        * 
    * * .google.iam.v1.Policy policy = 4; + * * @return Whether the policy field is set. */ @java.lang.Override @@ -1026,6 +1139,8 @@ public boolean hasPolicy() { return policy_ != null; } /** + * + * *
        * The IAM policy directly set on the given resource. Note that the original
        * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -1034,6 +1149,7 @@ public boolean hasPolicy() {
        * 
    * * .google.iam.v1.Policy policy = 4; + * * @return The policy. */ @java.lang.Override @@ -1041,6 +1157,8 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** + * + * *
        * The IAM policy directly set on the given resource. Note that the original
        * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -1058,12 +1176,15 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
       public static final int EXPLANATION_FIELD_NUMBER = 5;
       private com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation_;
       /**
    +   *
    +   *
        * 
        * Explanation about the IAM policy search result. It contains additional
        * information to explain why the search result matches the query.
        * 
    * * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5; + * * @return Whether the explanation field is set. */ @java.lang.Override @@ -1071,19 +1192,26 @@ public boolean hasExplanation() { return explanation_ != null; } /** + * + * *
        * Explanation about the IAM policy search result. It contains additional
        * information to explain why the search result matches the query.
        * 
    * * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5; + * * @return The explanation. */ @java.lang.Override public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation getExplanation() { - return explanation_ == null ? com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.getDefaultInstance() : explanation_; + return explanation_ == null + ? com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.getDefaultInstance() + : explanation_; } /** + * + * *
        * Explanation about the IAM policy search result. It contains additional
        * information to explain why the search result matches the query.
    @@ -1092,11 +1220,13 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation getExp
        * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
        */
       @java.lang.Override
    -  public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder getExplanationOrBuilder() {
    +  public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder
    +      getExplanationOrBuilder() {
         return getExplanation();
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -1108,8 +1238,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_);
         }
    @@ -1138,12 +1267,10 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, project_);
         }
         if (policy_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(4, getPolicy());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPolicy());
         }
         if (explanation_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(5, getExplanation());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getExplanation());
         }
         size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
    @@ -1153,26 +1280,23 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1p1beta1.IamPolicySearchResult)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1p1beta1.IamPolicySearchResult other = (com.google.cloud.asset.v1p1beta1.IamPolicySearchResult) obj;
    +    com.google.cloud.asset.v1p1beta1.IamPolicySearchResult other =
    +        (com.google.cloud.asset.v1p1beta1.IamPolicySearchResult) obj;
     
    -    if (!getResource()
    -        .equals(other.getResource())) return false;
    -    if (!getProject()
    -        .equals(other.getProject())) return false;
    +    if (!getResource().equals(other.getResource())) return false;
    +    if (!getProject().equals(other.getProject())) return false;
         if (hasPolicy() != other.hasPolicy()) return false;
         if (hasPolicy()) {
    -      if (!getPolicy()
    -          .equals(other.getPolicy())) return false;
    +      if (!getPolicy().equals(other.getPolicy())) return false;
         }
         if (hasExplanation() != other.hasExplanation()) return false;
         if (hasExplanation()) {
    -      if (!getExplanation()
    -          .equals(other.getExplanation())) return false;
    +      if (!getExplanation().equals(other.getExplanation())) return false;
         }
         if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
    @@ -1203,129 +1327,136 @@ public int hashCode() {
       }
     
       public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parseFrom(
    -      java.nio.ByteBuffer data)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    +      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult 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.asset.v1p1beta1.IamPolicySearchResult parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -  public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parseFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +
    +  public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parseFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    -  public static Builder newBuilder(com.google.cloud.asset.v1p1beta1.IamPolicySearchResult prototype) {
    +
    +  public static Builder newBuilder(
    +      com.google.cloud.asset.v1p1beta1.IamPolicySearchResult prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * The result for a IAM Policy search.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.IamPolicySearchResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p1beta1.IamPolicySearchResult) com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.class, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder.class); + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.class, + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder.class); } // Construct using com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1349,9 +1480,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor; } @java.lang.Override @@ -1370,7 +1501,8 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult build() { @java.lang.Override public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult buildPartial() { - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult result = new com.google.cloud.asset.v1p1beta1.IamPolicySearchResult(this); + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult result = + new com.google.cloud.asset.v1p1beta1.IamPolicySearchResult(this); result.resource_ = resource_; result.project_ = project_; if (policyBuilder_ == null) { @@ -1391,38 +1523,39 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p1beta1.IamPolicySearchResult) { - return mergeFrom((com.google.cloud.asset.v1p1beta1.IamPolicySearchResult)other); + return mergeFrom((com.google.cloud.asset.v1p1beta1.IamPolicySearchResult) other); } else { super.mergeFrom(other); return this; @@ -1430,7 +1563,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.IamPolicySearchResult other) { - if (other == com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.getDefaultInstance()) + return this; if (!other.getResource().isEmpty()) { resource_ = other.resource_; onChanged(); @@ -1471,36 +1605,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - resource_ = input.readStringRequireUtf8(); + case 10: + { + resource_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 26: { - project_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 26: + { + project_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - input.readMessage( - getPolicyFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 26 + case 34: + { + input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 34 - case 42: { - input.readMessage( - getExplanationFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 34 + case 42: + { + input.readMessage(getExplanationFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1513,6 +1648,8 @@ public Builder mergeFrom( private java.lang.Object resource_ = ""; /** + * + * *
          * The [full resource
          * name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    @@ -1520,13 +1657,13 @@ public Builder mergeFrom(
          * 
    * * string resource = 1; + * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -1535,6 +1672,8 @@ public java.lang.String getResource() { } } /** + * + * *
          * The [full resource
          * name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    @@ -1542,15 +1681,14 @@ public java.lang.String getResource() {
          * 
    * * string resource = 1; + * * @return The bytes for resource. */ - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -1558,6 +1696,8 @@ public java.lang.String getResource() { } } /** + * + * *
          * The [full resource
          * name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    @@ -1565,20 +1705,22 @@ public java.lang.String getResource() {
          * 
    * * string resource = 1; + * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource( - java.lang.String value) { + public Builder setResource(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** + * + * *
          * The [full resource
          * name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    @@ -1586,15 +1728,18 @@ public Builder setResource(
          * 
    * * string resource = 1; + * * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** + * + * *
          * The [full resource
          * name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    @@ -1602,16 +1747,16 @@ public Builder clearResource() {
          * 
    * * string resource = 1; + * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; @@ -1619,6 +1764,8 @@ public Builder setResourceBytes( private java.lang.Object project_ = ""; /** + * + * *
          * The project that the associated GCP resource belongs to, in the form of
          * `projects/{project_number}`. If an IAM policy is set on a resource (like VM
    @@ -1628,13 +1775,13 @@ public Builder setResourceBytes(
          * 
    * * string project = 3; + * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -1643,6 +1790,8 @@ public java.lang.String getProject() { } } /** + * + * *
          * The project that the associated GCP resource belongs to, in the form of
          * `projects/{project_number}`. If an IAM policy is set on a resource (like VM
    @@ -1652,15 +1801,14 @@ public java.lang.String getProject() {
          * 
    * * string project = 3; + * * @return The bytes for project. */ - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { @@ -1668,6 +1816,8 @@ public java.lang.String getProject() { } } /** + * + * *
          * The project that the associated GCP resource belongs to, in the form of
          * `projects/{project_number}`. If an IAM policy is set on a resource (like VM
    @@ -1677,20 +1827,22 @@ public java.lang.String getProject() {
          * 
    * * string project = 3; + * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject( - java.lang.String value) { + public Builder setProject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; onChanged(); return this; } /** + * + * *
          * The project that the associated GCP resource belongs to, in the form of
          * `projects/{project_number}`. If an IAM policy is set on a resource (like VM
    @@ -1700,15 +1852,18 @@ public Builder setProject(
          * 
    * * string project = 3; + * * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** + * + * *
          * The project that the associated GCP resource belongs to, in the form of
          * `projects/{project_number}`. If an IAM policy is set on a resource (like VM
    @@ -1718,16 +1873,16 @@ public Builder clearProject() {
          * 
    * * string project = 3; + * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; @@ -1735,8 +1890,13 @@ public Builder setProjectBytes( private com.google.iam.v1.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> policyBuilder_; + com.google.iam.v1.Policy, + com.google.iam.v1.Policy.Builder, + com.google.iam.v1.PolicyOrBuilder> + policyBuilder_; /** + * + * *
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -1745,12 +1905,15 @@ public Builder setProjectBytes(
          * 
    * * .google.iam.v1.Policy policy = 4; + * * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || policy_ != null; } /** + * + * *
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -1759,6 +1922,7 @@ public boolean hasPolicy() {
          * 
    * * .google.iam.v1.Policy policy = 4; + * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -1769,6 +1933,8 @@ public com.google.iam.v1.Policy getPolicy() { } } /** + * + * *
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -1792,6 +1958,8 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -1801,8 +1969,7 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
          *
          * .google.iam.v1.Policy policy = 4;
          */
    -    public Builder setPolicy(
    -        com.google.iam.v1.Policy.Builder builderForValue) {
    +    public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
           if (policyBuilder_ == null) {
             policy_ = builderForValue.build();
             onChanged();
    @@ -1813,6 +1980,8 @@ public Builder setPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -1825,8 +1994,7 @@ public Builder setPolicy(
         public Builder mergePolicy(com.google.iam.v1.Policy value) {
           if (policyBuilder_ == null) {
             if (policy_ != null) {
    -          policy_ =
    -            com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
    +          policy_ = com.google.iam.v1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial();
             } else {
               policy_ = value;
             }
    @@ -1838,6 +2006,8 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -1859,6 +2029,8 @@ public Builder clearPolicy() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -1869,11 +2041,13 @@ public Builder clearPolicy() {
          * .google.iam.v1.Policy policy = 4;
          */
         public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
    -      
    +
           onChanged();
           return getPolicyFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -1887,11 +2061,12 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
           if (policyBuilder_ != null) {
             return policyBuilder_.getMessageOrBuilder();
           } else {
    -        return policy_ == null ?
    -            com.google.iam.v1.Policy.getDefaultInstance() : policy_;
    +        return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_;
           }
         }
         /**
    +     *
    +     *
          * 
          * The IAM policy directly set on the given resource. Note that the original
          * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -1902,14 +2077,16 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
          * .google.iam.v1.Policy policy = 4;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> 
    +            com.google.iam.v1.Policy,
    +            com.google.iam.v1.Policy.Builder,
    +            com.google.iam.v1.PolicyOrBuilder>
             getPolicyFieldBuilder() {
           if (policyBuilder_ == null) {
    -        policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>(
    -                getPolicy(),
    -                getParentForChildren(),
    -                isClean());
    +        policyBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.iam.v1.Policy,
    +                com.google.iam.v1.Policy.Builder,
    +                com.google.iam.v1.PolicyOrBuilder>(getPolicy(), getParentForChildren(), isClean());
             policy_ = null;
           }
           return policyBuilder_;
    @@ -1917,36 +2094,50 @@ public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
     
         private com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder> explanationBuilder_;
    +            com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation,
    +            com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder,
    +            com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder>
    +        explanationBuilder_;
         /**
    +     *
    +     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
          * 
    * * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5; + * * @return Whether the explanation field is set. */ public boolean hasExplanation() { return explanationBuilder_ != null || explanation_ != null; } /** + * + * *
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
          * 
    * * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5; + * * @return The explanation. */ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation getExplanation() { if (explanationBuilder_ == null) { - return explanation_ == null ? com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.getDefaultInstance() : explanation_; + return explanation_ == null + ? com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation + .getDefaultInstance() + : explanation_; } else { return explanationBuilder_.getMessage(); } } /** + * + * *
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -1954,7 +2145,8 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation getExp
          *
          * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
          */
    -    public Builder setExplanation(com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation value) {
    +    public Builder setExplanation(
    +        com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation value) {
           if (explanationBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -1968,6 +2160,8 @@ public Builder setExplanation(com.google.cloud.asset.v1p1beta1.IamPolicySearchRe
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -1976,7 +2170,8 @@ public Builder setExplanation(com.google.cloud.asset.v1p1beta1.IamPolicySearchRe
          * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
          */
         public Builder setExplanation(
    -        com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder builderForValue) {
    +        com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder
    +            builderForValue) {
           if (explanationBuilder_ == null) {
             explanation_ = builderForValue.build();
             onChanged();
    @@ -1987,6 +2182,8 @@ public Builder setExplanation(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -1994,11 +2191,15 @@ public Builder setExplanation(
          *
          * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
          */
    -    public Builder mergeExplanation(com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation value) {
    +    public Builder mergeExplanation(
    +        com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation value) {
           if (explanationBuilder_ == null) {
             if (explanation_ != null) {
               explanation_ =
    -            com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.newBuilder(explanation_).mergeFrom(value).buildPartial();
    +              com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.newBuilder(
    +                      explanation_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               explanation_ = value;
             }
    @@ -2010,6 +2211,8 @@ public Builder mergeExplanation(com.google.cloud.asset.v1p1beta1.IamPolicySearch
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -2029,6 +2232,8 @@ public Builder clearExplanation() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -2036,12 +2241,15 @@ public Builder clearExplanation() {
          *
          * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
          */
    -    public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder getExplanationBuilder() {
    -      
    +    public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder
    +        getExplanationBuilder() {
    +
           onChanged();
           return getExplanationFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -2049,15 +2257,20 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builde
          *
          * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
          */
    -    public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder getExplanationOrBuilder() {
    +    public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder
    +        getExplanationOrBuilder() {
           if (explanationBuilder_ != null) {
             return explanationBuilder_.getMessageOrBuilder();
           } else {
    -        return explanation_ == null ?
    -            com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.getDefaultInstance() : explanation_;
    +        return explanation_ == null
    +            ? com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation
    +                .getDefaultInstance()
    +            : explanation_;
           }
         }
         /**
    +     *
    +     *
          * 
          * Explanation about the IAM policy search result. It contains additional
          * information to explain why the search result matches the query.
    @@ -2066,21 +2279,24 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuild
          * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder> 
    +            com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation,
    +            com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder,
    +            com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder>
             getExplanationFieldBuilder() {
           if (explanationBuilder_ == null) {
    -        explanationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder>(
    -                getExplanation(),
    -                getParentForChildren(),
    -                isClean());
    +        explanationBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation,
    +                com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation.Builder,
    +                com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder>(
    +                getExplanation(), getParentForChildren(), isClean());
             explanation_ = null;
           }
           return explanationBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -2090,12 +2306,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p1beta1.IamPolicySearchResult)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p1beta1.IamPolicySearchResult)
       private static final com.google.cloud.asset.v1p1beta1.IamPolicySearchResult DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1p1beta1.IamPolicySearchResult();
       }
    @@ -2104,27 +2320,27 @@ public static com.google.cloud.asset.v1p1beta1.IamPolicySearchResult getDefaultI
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public IamPolicySearchResult parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      Builder builder = newBuilder();
    -      try {
    -        builder.mergeFrom(input, extensionRegistry);
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(builder.buildPartial());
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    -            .setUnfinishedMessage(builder.buildPartial());
    -      }
    -      return builder.buildPartial();
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public IamPolicySearchResult parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -2139,6 +2355,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResultOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResultOrBuilder.java
    similarity index 82%
    rename from owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResultOrBuilder.java
    rename to java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResultOrBuilder.java
    index 66b38341f7d0..908e2372737e 100644
    --- a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResultOrBuilder.java
    +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResultOrBuilder.java
    @@ -1,13 +1,31 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1p1beta1/assets.proto
     
     package com.google.cloud.asset.v1p1beta1;
     
    -public interface IamPolicySearchResultOrBuilder extends
    +public interface IamPolicySearchResultOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p1beta1.IamPolicySearchResult)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The [full resource
        * name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    @@ -15,10 +33,13 @@ public interface IamPolicySearchResultOrBuilder extends
        * 
    * * string resource = 1; + * * @return The resource. */ java.lang.String getResource(); /** + * + * *
        * The [full resource
        * name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    @@ -26,12 +47,14 @@ public interface IamPolicySearchResultOrBuilder extends
        * 
    * * string resource = 1; + * * @return The bytes for resource. */ - com.google.protobuf.ByteString - getResourceBytes(); + com.google.protobuf.ByteString getResourceBytes(); /** + * + * *
        * The project that the associated GCP resource belongs to, in the form of
        * `projects/{project_number}`. If an IAM policy is set on a resource (like VM
    @@ -41,10 +64,13 @@ public interface IamPolicySearchResultOrBuilder extends
        * 
    * * string project = 3; + * * @return The project. */ java.lang.String getProject(); /** + * + * *
        * The project that the associated GCP resource belongs to, in the form of
        * `projects/{project_number}`. If an IAM policy is set on a resource (like VM
    @@ -54,12 +80,14 @@ public interface IamPolicySearchResultOrBuilder extends
        * 
    * * string project = 3; + * * @return The bytes for project. */ - com.google.protobuf.ByteString - getProjectBytes(); + com.google.protobuf.ByteString getProjectBytes(); /** + * + * *
        * The IAM policy directly set on the given resource. Note that the original
        * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -68,10 +96,13 @@ public interface IamPolicySearchResultOrBuilder extends
        * 
    * * .google.iam.v1.Policy policy = 4; + * * @return Whether the policy field is set. */ boolean hasPolicy(); /** + * + * *
        * The IAM policy directly set on the given resource. Note that the original
        * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -80,10 +111,13 @@ public interface IamPolicySearchResultOrBuilder extends
        * 
    * * .google.iam.v1.Policy policy = 4; + * * @return The policy. */ com.google.iam.v1.Policy getPolicy(); /** + * + * *
        * The IAM policy directly set on the given resource. Note that the original
        * IAM policy can contain multiple bindings. This only contains the bindings
    @@ -96,26 +130,34 @@ public interface IamPolicySearchResultOrBuilder extends
       com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * Explanation about the IAM policy search result. It contains additional
        * information to explain why the search result matches the query.
        * 
    * * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5; + * * @return Whether the explanation field is set. */ boolean hasExplanation(); /** + * + * *
        * Explanation about the IAM policy search result. It contains additional
        * information to explain why the search result matches the query.
        * 
    * * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5; + * * @return The explanation. */ com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation getExplanation(); /** + * + * *
        * Explanation about the IAM policy search result. It contains additional
        * information to explain why the search result matches the query.
    @@ -123,5 +165,6 @@ public interface IamPolicySearchResultOrBuilder extends
        *
        * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5;
        */
    -  com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder getExplanationOrBuilder();
    +  com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder
    +      getExplanationOrBuilder();
     }
    diff --git a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/Permissions.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/Permissions.java
    similarity index 67%
    rename from owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/Permissions.java
    rename to java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/Permissions.java
    index 45b1eb3aa6aa..8d6661e4db3a 100644
    --- a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/Permissions.java
    +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/Permissions.java
    @@ -1,84 +1,111 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1p1beta1/assets.proto
     
     package com.google.cloud.asset.v1p1beta1;
     
     /**
    + *
    + *
      * 
      * IAM permissions
      * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.Permissions} */ -public final class Permissions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Permissions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p1beta1.Permissions) PermissionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Permissions.newBuilder() to construct. private Permissions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Permissions() { permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Permissions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_Permissions_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_Permissions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.Permissions.class, com.google.cloud.asset.v1p1beta1.Permissions.Builder.class); + com.google.cloud.asset.v1p1beta1.Permissions.class, + com.google.cloud.asset.v1p1beta1.Permissions.Builder.class); } public static final int PERMISSIONS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList permissions_; /** + * + * *
        * A list of permissions. A sample permission string: "compute.disk.get".
        * 
    * * repeated string permissions = 1; + * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList - getPermissionsList() { + public com.google.protobuf.ProtocolStringList getPermissionsList() { return permissions_; } /** + * + * *
        * A list of permissions. A sample permission string: "compute.disk.get".
        * 
    * * repeated string permissions = 1; + * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** + * + * *
        * A list of permissions. A sample permission string: "compute.disk.get".
        * 
    * * repeated string permissions = 1; + * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -86,20 +113,23 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** + * + * *
        * A list of permissions. A sample permission string: "compute.disk.get".
        * 
    * * repeated string permissions = 1; + * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString - getPermissionsBytes(int index) { + public com.google.protobuf.ByteString getPermissionsBytes(int index) { return permissions_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -111,8 +141,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < permissions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, permissions_.getRaw(i)); } @@ -141,15 +170,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p1beta1.Permissions)) { return super.equals(obj); } - com.google.cloud.asset.v1p1beta1.Permissions other = (com.google.cloud.asset.v1p1beta1.Permissions) obj; + com.google.cloud.asset.v1p1beta1.Permissions other = + (com.google.cloud.asset.v1p1beta1.Permissions) obj; - if (!getPermissionsList() - .equals(other.getPermissionsList())) return false; + if (!getPermissionsList().equals(other.getPermissionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -170,130 +199,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p1beta1.Permissions 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.asset.v1p1beta1.Permissions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.Permissions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p1beta1.Permissions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p1beta1.Permissions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p1beta1.Permissions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p1beta1.Permissions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * IAM permissions
        * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.Permissions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p1beta1.Permissions) com.google.cloud.asset.v1p1beta1.PermissionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_Permissions_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_Permissions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.Permissions.class, com.google.cloud.asset.v1p1beta1.Permissions.Builder.class); + com.google.cloud.asset.v1p1beta1.Permissions.class, + com.google.cloud.asset.v1p1beta1.Permissions.Builder.class); } // Construct using com.google.cloud.asset.v1p1beta1.Permissions.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -303,9 +338,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor; } @java.lang.Override @@ -324,7 +359,8 @@ public com.google.cloud.asset.v1p1beta1.Permissions build() { @java.lang.Override public com.google.cloud.asset.v1p1beta1.Permissions buildPartial() { - com.google.cloud.asset.v1p1beta1.Permissions result = new com.google.cloud.asset.v1p1beta1.Permissions(this); + com.google.cloud.asset.v1p1beta1.Permissions result = + new com.google.cloud.asset.v1p1beta1.Permissions(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { permissions_ = permissions_.getUnmodifiableView(); @@ -339,38 +375,39 @@ public com.google.cloud.asset.v1p1beta1.Permissions buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p1beta1.Permissions) { - return mergeFrom((com.google.cloud.asset.v1p1beta1.Permissions)other); + return mergeFrom((com.google.cloud.asset.v1p1beta1.Permissions) other); } else { super.mergeFrom(other); return this; @@ -415,18 +452,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensurePermissionsIsMutable(); - permissions_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePermissionsIsMutable(); + permissions_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -436,44 +475,55 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList permissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList permissions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePermissionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
          * A list of permissions. A sample permission string: "compute.disk.get".
          * 
    * * repeated string permissions = 1; + * * @return A list containing the permissions. */ - public com.google.protobuf.ProtocolStringList - getPermissionsList() { + public com.google.protobuf.ProtocolStringList getPermissionsList() { return permissions_.getUnmodifiableView(); } /** + * + * *
          * A list of permissions. A sample permission string: "compute.disk.get".
          * 
    * * repeated string permissions = 1; + * * @return The count of permissions. */ public int getPermissionsCount() { return permissions_.size(); } /** + * + * *
          * A list of permissions. A sample permission string: "compute.disk.get".
          * 
    * * repeated string permissions = 1; + * * @param index The index of the element to return. * @return The permissions at the given index. */ @@ -481,80 +531,90 @@ public java.lang.String getPermissions(int index) { return permissions_.get(index); } /** + * + * *
          * A list of permissions. A sample permission string: "compute.disk.get".
          * 
    * * repeated string permissions = 1; + * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - public com.google.protobuf.ByteString - getPermissionsBytes(int index) { + public com.google.protobuf.ByteString getPermissionsBytes(int index) { return permissions_.getByteString(index); } /** + * + * *
          * A list of permissions. A sample permission string: "compute.disk.get".
          * 
    * * repeated string permissions = 1; + * * @param index The index to set the value at. * @param value The permissions to set. * @return This builder for chaining. */ - public Builder setPermissions( - int index, java.lang.String value) { + public Builder setPermissions(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); permissions_.set(index, value); onChanged(); return this; } /** + * + * *
          * A list of permissions. A sample permission string: "compute.disk.get".
          * 
    * * repeated string permissions = 1; + * * @param value The permissions to add. * @return This builder for chaining. */ - public Builder addPermissions( - java.lang.String value) { + public Builder addPermissions(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } /** + * + * *
          * A list of permissions. A sample permission string: "compute.disk.get".
          * 
    * * repeated string permissions = 1; + * * @param values The permissions to add. * @return This builder for chaining. */ - public Builder addAllPermissions( - java.lang.Iterable values) { + public Builder addAllPermissions(java.lang.Iterable values) { ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, permissions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, permissions_); onChanged(); return this; } /** + * + * *
          * A list of permissions. A sample permission string: "compute.disk.get".
          * 
    * * repeated string permissions = 1; + * * @return This builder for chaining. */ public Builder clearPermissions() { @@ -564,28 +624,30 @@ public Builder clearPermissions() { return this; } /** + * + * *
          * A list of permissions. A sample permission string: "compute.disk.get".
          * 
    * * repeated string permissions = 1; + * * @param value The bytes of the permissions to add. * @return This builder for chaining. */ - public Builder addPermissionsBytes( - com.google.protobuf.ByteString value) { + public Builder addPermissionsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePermissionsIsMutable(); permissions_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -595,12 +657,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p1beta1.Permissions) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p1beta1.Permissions) private static final com.google.cloud.asset.v1p1beta1.Permissions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p1beta1.Permissions(); } @@ -609,27 +671,27 @@ public static com.google.cloud.asset.v1p1beta1.Permissions getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Permissions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Permissions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -644,6 +706,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p1beta1.Permissions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/PermissionsOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/PermissionsOrBuilder.java similarity index 61% rename from owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/PermissionsOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/PermissionsOrBuilder.java index ef7bee9844a3..8a7116a8c8c9 100644 --- a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/PermissionsOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/PermissionsOrBuilder.java @@ -1,50 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p1beta1/assets.proto package com.google.cloud.asset.v1p1beta1; -public interface PermissionsOrBuilder extends +public interface PermissionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p1beta1.Permissions) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * A list of permissions. A sample permission string: "compute.disk.get".
        * 
    * * repeated string permissions = 1; + * * @return A list containing the permissions. */ - java.util.List - getPermissionsList(); + java.util.List getPermissionsList(); /** + * + * *
        * A list of permissions. A sample permission string: "compute.disk.get".
        * 
    * * repeated string permissions = 1; + * * @return The count of permissions. */ int getPermissionsCount(); /** + * + * *
        * A list of permissions. A sample permission string: "compute.disk.get".
        * 
    * * repeated string permissions = 1; + * * @param index The index of the element to return. * @return The permissions at the given index. */ java.lang.String getPermissions(int index); /** + * + * *
        * A list of permissions. A sample permission string: "compute.disk.get".
        * 
    * * repeated string permissions = 1; + * * @param index The index of the value to return. * @return The bytes of the permissions at the given index. */ - com.google.protobuf.ByteString - getPermissionsBytes(int index); + com.google.protobuf.ByteString getPermissionsBytes(int index); } diff --git a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequest.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequest.java similarity index 73% rename from owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequest.java rename to java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequest.java index 8a23764d8f2c..c87b27cc8ac5 100644 --- a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequest.java +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p1beta1/asset_service.proto package com.google.cloud.asset.v1p1beta1; /** + * + * *
      * Search all IAM policies request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest} */ -public final class SearchAllIamPoliciesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SearchAllIamPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest) SearchAllIamPoliciesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SearchAllIamPoliciesRequest.newBuilder() to construct. private SearchAllIamPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SearchAllIamPoliciesRequest() { scope_ = ""; query_ = ""; @@ -27,32 +45,35 @@ private SearchAllIamPoliciesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SearchAllIamPoliciesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.class, com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.Builder.class); + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.class, + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.Builder.class); } public static final int SCOPE_FIELD_NUMBER = 1; private volatile java.lang.Object scope_; /** + * + * *
        * Required. The relative name of an asset. The search is limited to the resources
        * within the `scope`. The allowed value must be:
    @@ -63,6 +84,7 @@ protected java.lang.Object newInstance(
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The scope. */ @java.lang.Override @@ -71,14 +93,15 @@ public java.lang.String getScope() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; } } /** + * + * *
        * Required. The relative name of an asset. The search is limited to the resources
        * within the `scope`. The allowed value must be:
    @@ -89,16 +112,15 @@ public java.lang.String getScope() {
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for scope. */ @java.lang.Override - public com.google.protobuf.ByteString - getScopeBytes() { + public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); scope_ = b; return b; } else { @@ -109,6 +131,8 @@ public java.lang.String getScope() { public static final int QUERY_FIELD_NUMBER = 2; private volatile java.lang.Object query_; /** + * + * *
        * Optional. The query statement.
        * Examples:
    @@ -117,6 +141,7 @@ public java.lang.String getScope() {
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The query. */ @java.lang.Override @@ -125,14 +150,15 @@ public java.lang.String getQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } } /** + * + * *
        * Optional. The query statement.
        * Examples:
    @@ -141,16 +167,15 @@ public java.lang.String getQuery() {
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for query. */ @java.lang.Override - public com.google.protobuf.ByteString - getQueryBytes() { + public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); query_ = b; return b; } else { @@ -161,6 +186,8 @@ public java.lang.String getQuery() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
        * Optional. The page size for search result pagination. Page size is capped at 500 even
        * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -169,6 +196,7 @@ public java.lang.String getQuery() {
        * 
    * * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -179,6 +207,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** + * + * *
        * Optional. If present, retrieve the next batch of results from the preceding call to
        * this method. `page_token` must be the value of `next_page_token` from the
    @@ -187,6 +217,7 @@ public int getPageSize() {
        * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -195,14 +226,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
        * Optional. If present, retrieve the next batch of results from the preceding call to
        * this method. `page_token` must be the value of `next_page_token` from the
    @@ -211,16 +243,15 @@ public java.lang.String getPageToken() {
        * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -229,6 +260,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,8 +272,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scope_); } @@ -270,8 +301,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, query_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -284,21 +314,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest other = (com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest) obj; - - if (!getScope() - .equals(other.getScope())) return false; - if (!getQuery() - .equals(other.getQuery())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest other = + (com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest) obj; + + if (!getScope().equals(other.getScope())) return false; + if (!getQuery().equals(other.getQuery())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -324,129 +351,136 @@ public int hashCode() { } public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest 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.asset.v1p1beta1.SearchAllIamPoliciesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Search all IAM policies request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest) com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.class, com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.Builder.class); + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.class, + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.Builder.class); } // Construct using com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -462,13 +496,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p1beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest getDefaultInstanceForType() { + public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest + getDefaultInstanceForType() { return com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.getDefaultInstance(); } @@ -483,7 +518,8 @@ public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest build() { @java.lang.Override public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest buildPartial() { - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest result = new com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest(this); + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest result = + new com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest(this); result.scope_ = scope_; result.query_ = query_; result.pageSize_ = pageSize_; @@ -496,38 +532,39 @@ public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p1beta1.SearchAllIamPoliciesRequest) { - return mergeFrom((com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest)other); + return mergeFrom((com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest) other); } else { super.mergeFrom(other); return this; @@ -535,7 +572,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest other) { - if (other == com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest.getDefaultInstance()) + return this; if (!other.getScope().isEmpty()) { scope_ = other.scope_; onChanged(); @@ -577,32 +616,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - scope_ = input.readStringRequireUtf8(); + case 10: + { + scope_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - query_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + query_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); - break; - } // case 24 - case 34: { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -615,6 +659,8 @@ public Builder mergeFrom( private java.lang.Object scope_ = ""; /** + * + * *
          * Required. The relative name of an asset. The search is limited to the resources
          * within the `scope`. The allowed value must be:
    @@ -625,13 +671,13 @@ public Builder mergeFrom(
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The scope. */ public java.lang.String getScope() { java.lang.Object ref = scope_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; @@ -640,6 +686,8 @@ public java.lang.String getScope() { } } /** + * + * *
          * Required. The relative name of an asset. The search is limited to the resources
          * within the `scope`. The allowed value must be:
    @@ -650,15 +698,14 @@ public java.lang.String getScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for scope. */ - public com.google.protobuf.ByteString - getScopeBytes() { + public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); scope_ = b; return b; } else { @@ -666,6 +713,8 @@ public java.lang.String getScope() { } } /** + * + * *
          * Required. The relative name of an asset. The search is limited to the resources
          * within the `scope`. The allowed value must be:
    @@ -676,20 +725,22 @@ public java.lang.String getScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The scope to set. * @return This builder for chaining. */ - public Builder setScope( - java.lang.String value) { + public Builder setScope(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + scope_ = value; onChanged(); return this; } /** + * + * *
          * Required. The relative name of an asset. The search is limited to the resources
          * within the `scope`. The allowed value must be:
    @@ -700,15 +751,18 @@ public Builder setScope(
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearScope() { - + scope_ = getDefaultInstance().getScope(); onChanged(); return this; } /** + * + * *
          * Required. The relative name of an asset. The search is limited to the resources
          * within the `scope`. The allowed value must be:
    @@ -719,16 +773,16 @@ public Builder clearScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for scope to set. * @return This builder for chaining. */ - public Builder setScopeBytes( - com.google.protobuf.ByteString value) { + public Builder setScopeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scope_ = value; onChanged(); return this; @@ -736,6 +790,8 @@ public Builder setScopeBytes( private java.lang.Object query_ = ""; /** + * + * *
          * Optional. The query statement.
          * Examples:
    @@ -744,13 +800,13 @@ public Builder setScopeBytes(
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; @@ -759,6 +815,8 @@ public java.lang.String getQuery() { } } /** + * + * *
          * Optional. The query statement.
          * Examples:
    @@ -767,15 +825,14 @@ public java.lang.String getQuery() {
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for query. */ - public com.google.protobuf.ByteString - getQueryBytes() { + public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); query_ = b; return b; } else { @@ -783,6 +840,8 @@ public java.lang.String getQuery() { } } /** + * + * *
          * Optional. The query statement.
          * Examples:
    @@ -791,20 +850,22 @@ public java.lang.String getQuery() {
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The query to set. * @return This builder for chaining. */ - public Builder setQuery( - java.lang.String value) { + public Builder setQuery(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + query_ = value; onChanged(); return this; } /** + * + * *
          * Optional. The query statement.
          * Examples:
    @@ -813,15 +874,18 @@ public Builder setQuery(
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearQuery() { - + query_ = getDefaultInstance().getQuery(); onChanged(); return this; } /** + * + * *
          * Optional. The query statement.
          * Examples:
    @@ -830,23 +894,25 @@ public Builder clearQuery() {
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for query to set. * @return This builder for chaining. */ - public Builder setQueryBytes( - com.google.protobuf.ByteString value) { + public Builder setQueryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
          * Optional. The page size for search result pagination. Page size is capped at 500 even
          * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -855,6 +921,7 @@ public Builder setQueryBytes(
          * 
    * * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -862,6 +929,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
          * Optional. The page size for search result pagination. Page size is capped at 500 even
          * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -870,16 +939,19 @@ public int getPageSize() {
          * 
    * * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
          * Optional. The page size for search result pagination. Page size is capped at 500 even
          * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -888,10 +960,11 @@ public Builder setPageSize(int value) {
          * 
    * * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -899,6 +972,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
          * Optional. If present, retrieve the next batch of results from the preceding call to
          * this method. `page_token` must be the value of `next_page_token` from the
    @@ -907,13 +982,13 @@ public Builder clearPageSize() {
          * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -922,6 +997,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
          * Optional. If present, retrieve the next batch of results from the preceding call to
          * this method. `page_token` must be the value of `next_page_token` from the
    @@ -930,15 +1007,14 @@ public java.lang.String getPageToken() {
          * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -946,6 +1022,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
          * Optional. If present, retrieve the next batch of results from the preceding call to
          * this method. `page_token` must be the value of `next_page_token` from the
    @@ -954,20 +1032,22 @@ public java.lang.String getPageToken() {
          * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
          * Optional. If present, retrieve the next batch of results from the preceding call to
          * this method. `page_token` must be the value of `next_page_token` from the
    @@ -976,15 +1056,18 @@ public Builder setPageToken(
          * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
          * Optional. If present, retrieve the next batch of results from the preceding call to
          * this method. `page_token` must be the value of `next_page_token` from the
    @@ -993,23 +1076,23 @@ public Builder clearPageToken() {
          * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1019,12 +1102,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest) - private static final com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest(); } @@ -1033,27 +1117,27 @@ public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchAllIamPoliciesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAllIamPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1068,6 +1152,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequestOrBuilder.java similarity index 78% rename from owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequestOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequestOrBuilder.java index afcbed816785..91f2d39a590b 100644 --- a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p1beta1/asset_service.proto package com.google.cloud.asset.v1p1beta1; -public interface SearchAllIamPoliciesRequestOrBuilder extends +public interface SearchAllIamPoliciesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The relative name of an asset. The search is limited to the resources
        * within the `scope`. The allowed value must be:
    @@ -18,10 +36,13 @@ public interface SearchAllIamPoliciesRequestOrBuilder extends
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The scope. */ java.lang.String getScope(); /** + * + * *
        * Required. The relative name of an asset. The search is limited to the resources
        * within the `scope`. The allowed value must be:
    @@ -32,12 +53,14 @@ public interface SearchAllIamPoliciesRequestOrBuilder extends
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for scope. */ - com.google.protobuf.ByteString - getScopeBytes(); + com.google.protobuf.ByteString getScopeBytes(); /** + * + * *
        * Optional. The query statement.
        * Examples:
    @@ -46,10 +69,13 @@ public interface SearchAllIamPoliciesRequestOrBuilder extends
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The query. */ java.lang.String getQuery(); /** + * + * *
        * Optional. The query statement.
        * Examples:
    @@ -58,12 +84,14 @@ public interface SearchAllIamPoliciesRequestOrBuilder extends
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for query. */ - com.google.protobuf.ByteString - getQueryBytes(); + com.google.protobuf.ByteString getQueryBytes(); /** + * + * *
        * Optional. The page size for search result pagination. Page size is capped at 500 even
        * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -72,11 +100,14 @@ public interface SearchAllIamPoliciesRequestOrBuilder extends
        * 
    * * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
        * Optional. If present, retrieve the next batch of results from the preceding call to
        * this method. `page_token` must be the value of `next_page_token` from the
    @@ -85,10 +116,13 @@ public interface SearchAllIamPoliciesRequestOrBuilder extends
        * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
        * Optional. If present, retrieve the next batch of results from the preceding call to
        * this method. `page_token` must be the value of `next_page_token` from the
    @@ -97,8 +131,8 @@ public interface SearchAllIamPoliciesRequestOrBuilder extends
        * 
    * * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponse.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponse.java similarity index 73% rename from owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponse.java rename to java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponse.java index 4113067c3e16..90bf5add9f67 100644 --- a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponse.java +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p1beta1/asset_service.proto package com.google.cloud.asset.v1p1beta1; /** + * + * *
      * Search all IAM policies response.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse} */ -public final class SearchAllIamPoliciesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SearchAllIamPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse) SearchAllIamPoliciesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SearchAllIamPoliciesResponse.newBuilder() to construct. private SearchAllIamPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SearchAllIamPoliciesResponse() { results_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,32 +44,35 @@ private SearchAllIamPoliciesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SearchAllIamPoliciesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.class, com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.Builder.class); + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.class, + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.Builder.class); } public static final int RESULTS_FIELD_NUMBER = 1; private java.util.List results_; /** + * + * *
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -64,6 +85,8 @@ public java.util.List ge
         return results_;
       }
       /**
    +   *
    +   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -72,11 +95,13 @@ public java.util.List ge
        * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
        */
       @java.lang.Override
    -  public java.util.List 
    +  public java.util.List
           getResultsOrBuilderList() {
         return results_;
       }
       /**
    +   *
    +   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -89,6 +114,8 @@ public int getResultsCount() {
         return results_.size();
       }
       /**
    +   *
    +   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -101,6 +128,8 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult getResults(int ind
         return results_.get(index);
       }
       /**
    +   *
    +   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -117,6 +146,8 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder getResult
       public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
       private volatile java.lang.Object nextPageToken_;
       /**
    +   *
    +   *
        * 
        * Set if there are more results than those appearing in this response; to get
        * the next set of results, call this method again, using this value as the
    @@ -124,6 +155,7 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder getResult
        * 
    * * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -132,14 +164,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
        * Set if there are more results than those appearing in this response; to get
        * the next set of results, call this method again, using this value as the
    @@ -147,16 +180,15 @@ public java.lang.String getNextPageToken() {
        * 
    * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -165,6 +197,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,8 +209,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeMessage(1, results_.get(i)); } @@ -194,8 +226,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, results_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -208,17 +239,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse other = (com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse) obj; + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse other = + (com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse) obj; - if (!getResultsList() - .equals(other.getResultsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getResultsList().equals(other.getResultsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -242,129 +272,136 @@ public int hashCode() { } public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse 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.asset.v1p1beta1.SearchAllIamPoliciesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Search all IAM policies response.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse) com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.class, com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.Builder.class); + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.class, + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.Builder.class); } // Construct using com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -381,13 +418,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p1beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor; } @java.lang.Override - public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse getDefaultInstanceForType() { + public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse + getDefaultInstanceForType() { return com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.getDefaultInstance(); } @@ -402,7 +440,8 @@ public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse build() { @java.lang.Override public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse buildPartial() { - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse result = new com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse(this); + com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse result = + new com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse(this); int from_bitField0_ = bitField0_; if (resultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -422,38 +461,39 @@ public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p1beta1.SearchAllIamPoliciesResponse) { - return mergeFrom((com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse)other); + return mergeFrom((com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse) other); } else { super.mergeFrom(other); return this; @@ -461,7 +501,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse other) { - if (other == com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.getDefaultInstance()) + return this; if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { @@ -480,9 +522,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRe resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); - resultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResultsFieldBuilder() : null; + resultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResultsFieldBuilder() + : null; } else { resultsBuilder_.addAllMessages(other.results_); } @@ -518,30 +561,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult m = - input.readMessage( - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.parser(), - extensionRegistry); - if (resultsBuilder_ == null) { - ensureResultsIsMutable(); - results_.add(m); - } else { - resultsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult m = + input.readMessage( + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.parser(), + extensionRegistry); + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(m); + } else { + resultsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -551,21 +597,30 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List results_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - results_ = new java.util.ArrayList(results_); + results_ = + new java.util.ArrayList( + results_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder, com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder> resultsBuilder_; + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult, + com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder, + com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder> + resultsBuilder_; /** + * + * *
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -581,6 +636,8 @@ public java.util.List ge
           }
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -596,6 +653,8 @@ public int getResultsCount() {
           }
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -611,6 +670,8 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult getResults(int ind
           }
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -633,6 +694,8 @@ public Builder setResults(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -652,6 +715,8 @@ public Builder setResults(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -673,6 +738,8 @@ public Builder addResults(com.google.cloud.asset.v1p1beta1.IamPolicySearchResult
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -695,6 +762,8 @@ public Builder addResults(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -714,6 +783,8 @@ public Builder addResults(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -733,6 +804,8 @@ public Builder addResults(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -741,11 +814,11 @@ public Builder addResults(
          * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
          */
         public Builder addAllResults(
    -        java.lang.Iterable values) {
    +        java.lang.Iterable
    +            values) {
           if (resultsBuilder_ == null) {
             ensureResultsIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    -            values, results_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_);
             onChanged();
           } else {
             resultsBuilder_.addAllMessages(values);
    @@ -753,6 +826,8 @@ public Builder addAllResults(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -771,6 +846,8 @@ public Builder clearResults() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -789,6 +866,8 @@ public Builder removeResults(int index) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -801,6 +880,8 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder getResults
           return getResultsFieldBuilder().getBuilder(index);
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -811,11 +892,14 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder getResults
         public com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder getResultsOrBuilder(
             int index) {
           if (resultsBuilder_ == null) {
    -        return results_.get(index);  } else {
    +        return results_.get(index);
    +      } else {
             return resultsBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -823,8 +907,8 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder getResult
          *
          * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
          */
    -    public java.util.List 
    -         getResultsOrBuilderList() {
    +    public java.util.List
    +        getResultsOrBuilderList() {
           if (resultsBuilder_ != null) {
             return resultsBuilder_.getMessageOrBuilderList();
           } else {
    @@ -832,6 +916,8 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder getResult
           }
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -840,10 +926,12 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder getResult
          * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
          */
         public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder addResultsBuilder() {
    -      return getResultsFieldBuilder().addBuilder(
    -          com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.getDefaultInstance());
    +      return getResultsFieldBuilder()
    +          .addBuilder(com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -853,10 +941,13 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder addResults
          */
         public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder addResultsBuilder(
             int index) {
    -      return getResultsFieldBuilder().addBuilder(
    -          index, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.getDefaultInstance());
    +      return getResultsFieldBuilder()
    +          .addBuilder(
    +              index, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * A list of IamPolicy that match the search query. Related information such
          * as the associated resource is returned along with the policy.
    @@ -864,20 +955,23 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder addResults
          *
          * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
          */
    -    public java.util.List 
    -         getResultsBuilderList() {
    +    public java.util.List
    +        getResultsBuilderList() {
           return getResultsFieldBuilder().getBuilderList();
         }
    +
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -        com.google.cloud.asset.v1p1beta1.IamPolicySearchResult, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder, com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder> 
    +            com.google.cloud.asset.v1p1beta1.IamPolicySearchResult,
    +            com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder,
    +            com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder>
             getResultsFieldBuilder() {
           if (resultsBuilder_ == null) {
    -        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.asset.v1p1beta1.IamPolicySearchResult, com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder, com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder>(
    -                results_,
    -                ((bitField0_ & 0x00000001) != 0),
    -                getParentForChildren(),
    -                isClean());
    +        resultsBuilder_ =
    +            new com.google.protobuf.RepeatedFieldBuilderV3<
    +                com.google.cloud.asset.v1p1beta1.IamPolicySearchResult,
    +                com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder,
    +                com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder>(
    +                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
             results_ = null;
           }
           return resultsBuilder_;
    @@ -885,6 +979,8 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder addResults
     
         private java.lang.Object nextPageToken_ = "";
         /**
    +     *
    +     *
          * 
          * Set if there are more results than those appearing in this response; to get
          * the next set of results, call this method again, using this value as the
    @@ -892,13 +988,13 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder addResults
          * 
    * * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -907,6 +1003,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
          * Set if there are more results than those appearing in this response; to get
          * the next set of results, call this method again, using this value as the
    @@ -914,15 +1012,14 @@ public java.lang.String getNextPageToken() {
          * 
    * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -930,6 +1027,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
          * Set if there are more results than those appearing in this response; to get
          * the next set of results, call this method again, using this value as the
    @@ -937,20 +1036,22 @@ public java.lang.String getNextPageToken() {
          * 
    * * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
          * Set if there are more results than those appearing in this response; to get
          * the next set of results, call this method again, using this value as the
    @@ -958,15 +1059,18 @@ public Builder setNextPageToken(
          * 
    * * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
          * Set if there are more results than those appearing in this response; to get
          * the next set of results, call this method again, using this value as the
    @@ -974,23 +1078,23 @@ 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1000,12 +1104,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse) - private static final com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse(); } @@ -1014,27 +1119,27 @@ public static com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchAllIamPoliciesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAllIamPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1049,6 +1154,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponseOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponseOrBuilder.java similarity index 75% rename from owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponseOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponseOrBuilder.java index eb39db5c90dd..6407224fcb24 100644 --- a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponseOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p1beta1/asset_service.proto package com.google.cloud.asset.v1p1beta1; -public interface SearchAllIamPoliciesResponseOrBuilder extends +public interface SearchAllIamPoliciesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -15,9 +33,10 @@ public interface SearchAllIamPoliciesResponseOrBuilder extends
        *
        * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
        */
    -  java.util.List 
    -      getResultsList();
    +  java.util.List getResultsList();
       /**
    +   *
    +   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -27,6 +46,8 @@ public interface SearchAllIamPoliciesResponseOrBuilder extends
        */
       com.google.cloud.asset.v1p1beta1.IamPolicySearchResult getResults(int index);
       /**
    +   *
    +   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -36,6 +57,8 @@ public interface SearchAllIamPoliciesResponseOrBuilder extends
        */
       int getResultsCount();
       /**
    +   *
    +   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -43,9 +66,11 @@ public interface SearchAllIamPoliciesResponseOrBuilder extends
        *
        * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
        */
    -  java.util.List 
    +  java.util.List
           getResultsOrBuilderList();
       /**
    +   *
    +   *
        * 
        * A list of IamPolicy that match the search query. Related information such
        * as the associated resource is returned along with the policy.
    @@ -53,10 +78,11 @@ public interface SearchAllIamPoliciesResponseOrBuilder extends
        *
        * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1;
        */
    -  com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder getResultsOrBuilder(
    -      int index);
    +  com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder getResultsOrBuilder(int index);
     
       /**
    +   *
    +   *
        * 
        * Set if there are more results than those appearing in this response; to get
        * the next set of results, call this method again, using this value as the
    @@ -64,10 +90,13 @@ com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder getResultsOrBuil
        * 
    * * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
        * Set if there are more results than those appearing in this response; to get
        * the next set of results, call this method again, using this value as the
    @@ -75,8 +104,8 @@ com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder getResultsOrBuil
        * 
    * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequest.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequest.java similarity index 75% rename from owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequest.java rename to java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequest.java index 91f6ae71b834..190b04f38a46 100644 --- a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequest.java +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p1beta1/asset_service.proto package com.google.cloud.asset.v1p1beta1; /** + * + * *
      * Search all resources request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.SearchAllResourcesRequest} */ -public final class SearchAllResourcesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SearchAllResourcesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p1beta1.SearchAllResourcesRequest) SearchAllResourcesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SearchAllResourcesRequest.newBuilder() to construct. private SearchAllResourcesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SearchAllResourcesRequest() { scope_ = ""; query_ = ""; @@ -29,32 +47,35 @@ private SearchAllResourcesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SearchAllResourcesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.class, com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.Builder.class); + com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.class, + com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.Builder.class); } public static final int SCOPE_FIELD_NUMBER = 1; private volatile java.lang.Object scope_; /** + * + * *
        * Required. The relative name of an asset. The search is limited to the resources
        * within the `scope`. The allowed value must be:
    @@ -65,6 +86,7 @@ protected java.lang.Object newInstance(
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The scope. */ @java.lang.Override @@ -73,14 +95,15 @@ public java.lang.String getScope() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; } } /** + * + * *
        * Required. The relative name of an asset. The search is limited to the resources
        * within the `scope`. The allowed value must be:
    @@ -91,16 +114,15 @@ public java.lang.String getScope() {
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for scope. */ @java.lang.Override - public com.google.protobuf.ByteString - getScopeBytes() { + public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); scope_ = b; return b; } else { @@ -111,11 +133,14 @@ public java.lang.String getScope() { public static final int QUERY_FIELD_NUMBER = 2; private volatile java.lang.Object query_; /** + * + * *
        * Optional. The query statement.
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The query. */ @java.lang.Override @@ -124,29 +149,29 @@ public java.lang.String getQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } } /** + * + * *
        * Optional. The query statement.
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for query. */ @java.lang.Override - public com.google.protobuf.ByteString - getQueryBytes() { + public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); query_ = b; return b; } else { @@ -157,37 +182,45 @@ public java.lang.String getQuery() { public static final int ASSET_TYPES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList assetTypes_; /** + * + * *
        * Optional. A list of asset types that this request searches for. If empty, it will
        * search all the supported asset types.
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList - getAssetTypesList() { + public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_; } /** + * + * *
        * Optional. A list of asset types that this request searches for. If empty, it will
        * search all the supported asset types.
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** + * + * *
        * Optional. A list of asset types that this request searches for. If empty, it will
        * search all the supported asset types.
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -195,23 +228,27 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** + * + * *
        * Optional. A list of asset types that this request searches for. If empty, it will
        * search all the supported asset types.
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString - getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** + * + * *
        * Optional. The page size for search result pagination. Page size is capped at 500 even
        * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -220,6 +257,7 @@ public java.lang.String getAssetTypes(int index) {
        * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -230,6 +268,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 5; private volatile java.lang.Object pageToken_; /** + * + * *
        * Optional. If present, then retrieve the next batch of results from the preceding call
        * to this method.  `page_token` must be the value of `next_page_token` from
    @@ -238,6 +278,7 @@ public int getPageSize() {
        * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -246,14 +287,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
        * Optional. If present, then retrieve the next batch of results from the preceding call
        * to this method.  `page_token` must be the value of `next_page_token` from
    @@ -262,16 +304,15 @@ public java.lang.String getPageToken() {
        * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -282,6 +323,8 @@ public java.lang.String getPageToken() { public static final int ORDER_BY_FIELD_NUMBER = 10; private volatile java.lang.Object orderBy_; /** + * + * *
        * Optional. A comma separated list of fields specifying the sorting order of the
        * results. The default order is ascending. Add " desc" after the field name
    @@ -290,6 +333,7 @@ public java.lang.String getPageToken() {
        * 
    * * string order_by = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ @java.lang.Override @@ -298,14 +342,15 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
        * Optional. A comma separated list of fields specifying the sorting order of the
        * results. The default order is ascending. Add " desc" after the field name
    @@ -314,16 +359,15 @@ public java.lang.String getOrderBy() {
        * 
    * * string order_by = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -332,6 +376,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -343,8 +388,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scope_); } @@ -387,8 +431,7 @@ public int getSerializedSize() { size += 1 * getAssetTypesList().size(); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); @@ -404,25 +447,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest other = (com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest) obj; - - if (!getScope() - .equals(other.getScope())) return false; - if (!getQuery() - .equals(other.getQuery())) return false; - if (!getAssetTypesList() - .equals(other.getAssetTypesList())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest other = + (com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest) obj; + + if (!getScope().equals(other.getScope())) return false; + if (!getQuery().equals(other.getQuery())) return false; + if (!getAssetTypesList().equals(other.getAssetTypesList())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -454,129 +492,136 @@ public int hashCode() { } public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest 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.asset.v1p1beta1.SearchAllResourcesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Search all resources request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.SearchAllResourcesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p1beta1.SearchAllResourcesRequest) com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.class, com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.Builder.class); + com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.class, + com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.Builder.class); } // Construct using com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -596,9 +641,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p1beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_descriptor; } @java.lang.Override @@ -617,7 +662,8 @@ public com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest build() { @java.lang.Override public com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest buildPartial() { - com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest result = new com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest(this); + com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest result = + new com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest(this); int from_bitField0_ = bitField0_; result.scope_ = scope_; result.query_ = query_; @@ -637,38 +683,39 @@ public com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p1beta1.SearchAllResourcesRequest) { - return mergeFrom((com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest)other); + return mergeFrom((com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest) other); } else { super.mergeFrom(other); return this; @@ -676,7 +723,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest other) { - if (other == com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest.getDefaultInstance()) + return this; if (!other.getScope().isEmpty()) { scope_ = other.scope_; onChanged(); @@ -732,43 +780,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - scope_ = input.readStringRequireUtf8(); + case 10: + { + scope_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - query_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + query_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAssetTypesIsMutable(); - assetTypes_.add(s); - break; - } // case 26 - case 32: { - pageSize_ = input.readInt32(); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAssetTypesIsMutable(); + assetTypes_.add(s); + break; + } // case 26 + case 32: + { + pageSize_ = input.readInt32(); - break; - } // case 32 - case 42: { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 32 + case 42: + { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 42 - case 82: { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 42 + case 82: + { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -778,10 +833,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object scope_ = ""; /** + * + * *
          * Required. The relative name of an asset. The search is limited to the resources
          * within the `scope`. The allowed value must be:
    @@ -792,13 +850,13 @@ public Builder mergeFrom(
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The scope. */ public java.lang.String getScope() { java.lang.Object ref = scope_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; @@ -807,6 +865,8 @@ public java.lang.String getScope() { } } /** + * + * *
          * Required. The relative name of an asset. The search is limited to the resources
          * within the `scope`. The allowed value must be:
    @@ -817,15 +877,14 @@ public java.lang.String getScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for scope. */ - public com.google.protobuf.ByteString - getScopeBytes() { + public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); scope_ = b; return b; } else { @@ -833,6 +892,8 @@ public java.lang.String getScope() { } } /** + * + * *
          * Required. The relative name of an asset. The search is limited to the resources
          * within the `scope`. The allowed value must be:
    @@ -843,20 +904,22 @@ public java.lang.String getScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The scope to set. * @return This builder for chaining. */ - public Builder setScope( - java.lang.String value) { + public Builder setScope(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + scope_ = value; onChanged(); return this; } /** + * + * *
          * Required. The relative name of an asset. The search is limited to the resources
          * within the `scope`. The allowed value must be:
    @@ -867,15 +930,18 @@ public Builder setScope(
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearScope() { - + scope_ = getDefaultInstance().getScope(); onChanged(); return this; } /** + * + * *
          * Required. The relative name of an asset. The search is limited to the resources
          * within the `scope`. The allowed value must be:
    @@ -886,16 +952,16 @@ public Builder clearScope() {
          * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for scope to set. * @return This builder for chaining. */ - public Builder setScopeBytes( - com.google.protobuf.ByteString value) { + public Builder setScopeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scope_ = value; onChanged(); return this; @@ -903,18 +969,20 @@ public Builder setScopeBytes( private java.lang.Object query_ = ""; /** + * + * *
          * Optional. The query statement.
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; @@ -923,20 +991,21 @@ public java.lang.String getQuery() { } } /** + * + * *
          * Optional. The query statement.
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for query. */ - public com.google.protobuf.ByteString - getQueryBytes() { + public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); query_ = b; return b; } else { @@ -944,98 +1013,115 @@ public java.lang.String getQuery() { } } /** + * + * *
          * Optional. The query statement.
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The query to set. * @return This builder for chaining. */ - public Builder setQuery( - java.lang.String value) { + public Builder setQuery(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + query_ = value; onChanged(); return this; } /** + * + * *
          * Optional. The query statement.
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearQuery() { - + query_ = getDefaultInstance().getQuery(); onChanged(); return this; } /** + * + * *
          * Optional. The query statement.
          * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for query to set. * @return This builder for chaining. */ - public Builder setQueryBytes( - com.google.protobuf.ByteString value) { + public Builder setQueryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList assetTypes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAssetTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assetTypes_ = new com.google.protobuf.LazyStringArrayList(assetTypes_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the supported asset types.
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList - getAssetTypesList() { + public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_.getUnmodifiableView(); } /** + * + * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the supported asset types.
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** + * + * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the supported asset types.
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -1043,85 +1129,95 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** + * + * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the supported asset types.
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString - getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } /** + * + * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the supported asset types.
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The assetTypes to set. * @return This builder for chaining. */ - public Builder setAssetTypes( - int index, java.lang.String value) { + public Builder setAssetTypes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.set(index, value); onChanged(); return this; } /** + * + * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the supported asset types.
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypes( - java.lang.String value) { + public Builder addAssetTypes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); return this; } /** + * + * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the supported asset types.
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The assetTypes to add. * @return This builder for chaining. */ - public Builder addAllAssetTypes( - java.lang.Iterable values) { + public Builder addAllAssetTypes(java.lang.Iterable values) { ensureAssetTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, assetTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetTypes_); onChanged(); return this; } /** + * + * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the supported asset types.
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1131,29 +1227,33 @@ public Builder clearAssetTypes() { return this; } /** + * + * *
          * Optional. A list of asset types that this request searches for. If empty, it will
          * search all the supported asset types.
          * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypesBytes( - com.google.protobuf.ByteString value) { + public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
          * Optional. The page size for search result pagination. Page size is capped at 500 even
          * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -1162,6 +1262,7 @@ public Builder addAssetTypesBytes(
          * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -1169,6 +1270,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
          * Optional. The page size for search result pagination. Page size is capped at 500 even
          * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -1177,16 +1280,19 @@ public int getPageSize() {
          * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
          * Optional. The page size for search result pagination. Page size is capped at 500 even
          * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -1195,10 +1301,11 @@ public Builder setPageSize(int value) {
          * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1206,6 +1313,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
          * Optional. If present, then retrieve the next batch of results from the preceding call
          * to this method.  `page_token` must be the value of `next_page_token` from
    @@ -1214,13 +1323,13 @@ public Builder clearPageSize() {
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1229,6 +1338,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
          * Optional. If present, then retrieve the next batch of results from the preceding call
          * to this method.  `page_token` must be the value of `next_page_token` from
    @@ -1237,15 +1348,14 @@ public java.lang.String getPageToken() {
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1253,6 +1363,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
          * Optional. If present, then retrieve the next batch of results from the preceding call
          * to this method.  `page_token` must be the value of `next_page_token` from
    @@ -1261,20 +1373,22 @@ public java.lang.String getPageToken() {
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
          * Optional. If present, then retrieve the next batch of results from the preceding call
          * to this method.  `page_token` must be the value of `next_page_token` from
    @@ -1283,15 +1397,18 @@ public Builder setPageToken(
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
          * Optional. If present, then retrieve the next batch of results from the preceding call
          * to this method.  `page_token` must be the value of `next_page_token` from
    @@ -1300,16 +1417,16 @@ public Builder clearPageToken() {
          * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1317,6 +1434,8 @@ public Builder setPageTokenBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
          * Optional. A comma separated list of fields specifying the sorting order of the
          * results. The default order is ascending. Add " desc" after the field name
    @@ -1325,13 +1444,13 @@ public Builder setPageTokenBytes(
          * 
    * * string order_by = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1340,6 +1459,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
          * Optional. A comma separated list of fields specifying the sorting order of the
          * results. The default order is ascending. Add " desc" after the field name
    @@ -1348,15 +1469,14 @@ public java.lang.String getOrderBy() {
          * 
    * * string order_by = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1364,6 +1484,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
          * Optional. A comma separated list of fields specifying the sorting order of the
          * results. The default order is ascending. Add " desc" after the field name
    @@ -1372,20 +1494,22 @@ public java.lang.String getOrderBy() {
          * 
    * * string order_by = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
          * Optional. A comma separated list of fields specifying the sorting order of the
          * results. The default order is ascending. Add " desc" after the field name
    @@ -1394,15 +1518,18 @@ public Builder setOrderBy(
          * 
    * * string order_by = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
          * Optional. A comma separated list of fields specifying the sorting order of the
          * results. The default order is ascending. Add " desc" after the field name
    @@ -1411,23 +1538,23 @@ public Builder clearOrderBy() {
          * 
    * * string order_by = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1437,12 +1564,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p1beta1.SearchAllResourcesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p1beta1.SearchAllResourcesRequest) private static final com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest(); } @@ -1451,27 +1578,27 @@ public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchAllResourcesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAllResourcesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1486,6 +1613,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.asset.v1p1beta1.SearchAllResourcesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequestOrBuilder.java similarity index 82% rename from owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequestOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequestOrBuilder.java index ac30746283bf..9b27969f4428 100644 --- a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p1beta1/asset_service.proto package com.google.cloud.asset.v1p1beta1; -public interface SearchAllResourcesRequestOrBuilder extends +public interface SearchAllResourcesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p1beta1.SearchAllResourcesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The relative name of an asset. The search is limited to the resources
        * within the `scope`. The allowed value must be:
    @@ -18,10 +36,13 @@ public interface SearchAllResourcesRequestOrBuilder extends
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The scope. */ java.lang.String getScope(); /** + * + * *
        * Required. The relative name of an asset. The search is limited to the resources
        * within the `scope`. The allowed value must be:
    @@ -32,77 +53,94 @@ public interface SearchAllResourcesRequestOrBuilder extends
        * 
    * * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for scope. */ - com.google.protobuf.ByteString - getScopeBytes(); + com.google.protobuf.ByteString getScopeBytes(); /** + * + * *
        * Optional. The query statement.
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The query. */ java.lang.String getQuery(); /** + * + * *
        * Optional. The query statement.
        * 
    * * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for query. */ - com.google.protobuf.ByteString - getQueryBytes(); + com.google.protobuf.ByteString getQueryBytes(); /** + * + * *
        * Optional. A list of asset types that this request searches for. If empty, it will
        * search all the supported asset types.
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the assetTypes. */ - java.util.List - getAssetTypesList(); + java.util.List getAssetTypesList(); /** + * + * *
        * Optional. A list of asset types that this request searches for. If empty, it will
        * search all the supported asset types.
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of assetTypes. */ int getAssetTypesCount(); /** + * + * *
        * Optional. A list of asset types that this request searches for. If empty, it will
        * search all the supported asset types.
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ java.lang.String getAssetTypes(int index); /** + * + * *
        * Optional. A list of asset types that this request searches for. If empty, it will
        * search all the supported asset types.
        * 
    * * repeated string asset_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - com.google.protobuf.ByteString - getAssetTypesBytes(int index); + com.google.protobuf.ByteString getAssetTypesBytes(int index); /** + * + * *
        * Optional. The page size for search result pagination. Page size is capped at 500 even
        * if a larger value is given. If set to zero, server will pick an appropriate
    @@ -111,11 +149,14 @@ public interface SearchAllResourcesRequestOrBuilder extends
        * 
    * * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
        * Optional. If present, then retrieve the next batch of results from the preceding call
        * to this method.  `page_token` must be the value of `next_page_token` from
    @@ -124,10 +165,13 @@ public interface SearchAllResourcesRequestOrBuilder extends
        * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
        * Optional. If present, then retrieve the next batch of results from the preceding call
        * to this method.  `page_token` must be the value of `next_page_token` from
    @@ -136,12 +180,14 @@ public interface SearchAllResourcesRequestOrBuilder extends
        * 
    * * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
        * Optional. A comma separated list of fields specifying the sorting order of the
        * results. The default order is ascending. Add " desc" after the field name
    @@ -150,10 +196,13 @@ public interface SearchAllResourcesRequestOrBuilder extends
        * 
    * * string order_by = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
        * Optional. A comma separated list of fields specifying the sorting order of the
        * results. The default order is ascending. Add " desc" after the field name
    @@ -162,8 +211,8 @@ public interface SearchAllResourcesRequestOrBuilder extends
        * 
    * * string order_by = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponse.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponse.java similarity index 72% rename from owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponse.java rename to java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponse.java index 6489e863b44c..fb5e99395fa4 100644 --- a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponse.java +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p1beta1/asset_service.proto package com.google.cloud.asset.v1p1beta1; /** + * + * *
      * Search all resources response.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.SearchAllResourcesResponse} */ -public final class SearchAllResourcesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SearchAllResourcesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p1beta1.SearchAllResourcesResponse) SearchAllResourcesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SearchAllResourcesResponse.newBuilder() to construct. private SearchAllResourcesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SearchAllResourcesResponse() { results_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,32 +44,35 @@ private SearchAllResourcesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SearchAllResourcesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.class, com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.Builder.class); + com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.class, + com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.Builder.class); } public static final int RESULTS_FIELD_NUMBER = 1; private java.util.List results_; /** + * + * *
        * A list of resource that match the search query.
        * 
    @@ -59,10 +80,13 @@ protected java.lang.Object newInstance( * repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1; */ @java.lang.Override - public java.util.List getResultsList() { + public java.util.List + getResultsList() { return results_; } /** + * + * *
        * A list of resource that match the search query.
        * 
    @@ -70,11 +94,14 @@ public java.util.List * repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder> getResultsOrBuilderList() { return results_; } /** + * + * *
        * A list of resource that match the search query.
        * 
    @@ -86,6 +113,8 @@ public int getResultsCount() { return results_.size(); } /** + * + * *
        * A list of resource that match the search query.
        * 
    @@ -97,6 +126,8 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata getResults(int return results_.get(index); } /** + * + * *
        * A list of resource that match the search query.
        * 
    @@ -112,6 +143,8 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder getRes public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
        * If there are more results than those appearing in this response, then
        * `next_page_token` is included.  To get the next set of results, call this
    @@ -119,6 +152,7 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder getRes
        * 
    * * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -127,14 +161,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
        * If there are more results than those appearing in this response, then
        * `next_page_token` is included.  To get the next set of results, call this
    @@ -142,16 +177,15 @@ public java.lang.String getNextPageToken() {
        * 
    * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -160,6 +194,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +206,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeMessage(1, results_.get(i)); } @@ -189,8 +223,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, results_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -203,17 +236,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse other = (com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse) obj; + com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse other = + (com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse) obj; - if (!getResultsList() - .equals(other.getResultsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getResultsList().equals(other.getResultsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,129 +269,136 @@ public int hashCode() { } public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse 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.asset.v1p1beta1.SearchAllResourcesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Search all resources response.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.SearchAllResourcesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p1beta1.SearchAllResourcesResponse) com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.class, com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.Builder.class); + com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.class, + com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.Builder.class); } // Construct using com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +415,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p1beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p1beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor; } @java.lang.Override @@ -397,7 +436,8 @@ public com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse build() { @java.lang.Override public com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse buildPartial() { - com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse result = new com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse(this); + com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse result = + new com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse(this); int from_bitField0_ = bitField0_; if (resultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -417,38 +457,39 @@ public com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p1beta1.SearchAllResourcesResponse) { - return mergeFrom((com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse)other); + return mergeFrom((com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse) other); } else { super.mergeFrom(other); return this; @@ -456,7 +497,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse other) { - if (other == com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.getDefaultInstance()) + return this; if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { @@ -475,9 +517,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.SearchAllResourcesResp resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); - resultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResultsFieldBuilder() : null; + resultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResultsFieldBuilder() + : null; } else { resultsBuilder_.addAllMessages(other.results_); } @@ -513,30 +556,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata m = - input.readMessage( - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.parser(), - extensionRegistry); - if (resultsBuilder_ == null) { - ensureResultsIsMutable(); - results_.add(m); - } else { - resultsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata m = + input.readMessage( + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.parser(), + extensionRegistry); + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(m); + } else { + resultsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -546,28 +592,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List results_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - results_ = new java.util.ArrayList(results_); + results_ = + new java.util.ArrayList( + results_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata, com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder, com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder> resultsBuilder_; + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata, + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder, + com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder> + resultsBuilder_; /** + * + * *
          * A list of resource that match the search query.
          * 
    * * repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1; */ - public java.util.List getResultsList() { + public java.util.List + getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { @@ -575,6 +631,8 @@ public java.util.List } } /** + * + * *
          * A list of resource that match the search query.
          * 
    @@ -589,6 +647,8 @@ public int getResultsCount() { } } /** + * + * *
          * A list of resource that match the search query.
          * 
    @@ -603,6 +663,8 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata getResults(int } } /** + * + * *
          * A list of resource that match the search query.
          * 
    @@ -624,6 +686,8 @@ public Builder setResults( return this; } /** + * + * *
          * A list of resource that match the search query.
          * 
    @@ -631,7 +695,8 @@ public Builder setResults( * repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1; */ public Builder setResults( - int index, com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder builderForValue) { + int index, + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); @@ -642,6 +707,8 @@ public Builder setResults( return this; } /** + * + * *
          * A list of resource that match the search query.
          * 
    @@ -662,6 +729,8 @@ public Builder addResults(com.google.cloud.asset.v1p1beta1.StandardResourceMetad return this; } /** + * + * *
          * A list of resource that match the search query.
          * 
    @@ -683,6 +752,8 @@ public Builder addResults( return this; } /** + * + * *
          * A list of resource that match the search query.
          * 
    @@ -701,6 +772,8 @@ public Builder addResults( return this; } /** + * + * *
          * A list of resource that match the search query.
          * 
    @@ -708,7 +781,8 @@ public Builder addResults( * repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1; */ public Builder addResults( - int index, com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder builderForValue) { + int index, + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); @@ -719,6 +793,8 @@ public Builder addResults( return this; } /** + * + * *
          * A list of resource that match the search query.
          * 
    @@ -726,11 +802,11 @@ public Builder addResults( * repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1; */ public Builder addAllResults( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, results_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); onChanged(); } else { resultsBuilder_.addAllMessages(values); @@ -738,6 +814,8 @@ public Builder addAllResults( return this; } /** + * + * *
          * A list of resource that match the search query.
          * 
    @@ -755,6 +833,8 @@ public Builder clearResults() { return this; } /** + * + * *
          * A list of resource that match the search query.
          * 
    @@ -772,6 +852,8 @@ public Builder removeResults(int index) { return this; } /** + * + * *
          * A list of resource that match the search query.
          * 
    @@ -783,6 +865,8 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder getResu return getResultsFieldBuilder().getBuilder(index); } /** + * + * *
          * A list of resource that match the search query.
          * 
    @@ -792,19 +876,23 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder getResu public com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder getResultsOrBuilder( int index) { if (resultsBuilder_ == null) { - return results_.get(index); } else { + return results_.get(index); + } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
          * A list of resource that match the search query.
          * 
    * * repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1; */ - public java.util.List - getResultsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder> + getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { @@ -812,6 +900,8 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder getRes } } /** + * + * *
          * A list of resource that match the search query.
          * 
    @@ -819,10 +909,13 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder getRes * repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1; */ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder addResultsBuilder() { - return getResultsFieldBuilder().addBuilder( - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.getDefaultInstance()); + return getResultsFieldBuilder() + .addBuilder( + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.getDefaultInstance()); } /** + * + * *
          * A list of resource that match the search query.
          * 
    @@ -831,30 +924,37 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder addResu */ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder addResultsBuilder( int index) { - return getResultsFieldBuilder().addBuilder( - index, com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.getDefaultInstance()); + return getResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.getDefaultInstance()); } /** + * + * *
          * A list of resource that match the search query.
          * 
    * * repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1; */ - public java.util.List - getResultsBuilderList() { + public java.util.List + getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata, com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder, com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder> + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata, + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder, + com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { - resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata, com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder, com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder>( - results_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + resultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata, + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder, + com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder>( + results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); results_ = null; } return resultsBuilder_; @@ -862,6 +962,8 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder addResu private java.lang.Object nextPageToken_ = ""; /** + * + * *
          * If there are more results than those appearing in this response, then
          * `next_page_token` is included.  To get the next set of results, call this
    @@ -869,13 +971,13 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder addResu
          * 
    * * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -884,6 +986,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
          * If there are more results than those appearing in this response, then
          * `next_page_token` is included.  To get the next set of results, call this
    @@ -891,15 +995,14 @@ public java.lang.String getNextPageToken() {
          * 
    * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -907,6 +1010,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
          * If there are more results than those appearing in this response, then
          * `next_page_token` is included.  To get the next set of results, call this
    @@ -914,20 +1019,22 @@ public java.lang.String getNextPageToken() {
          * 
    * * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
          * If there are more results than those appearing in this response, then
          * `next_page_token` is included.  To get the next set of results, call this
    @@ -935,15 +1042,18 @@ public Builder setNextPageToken(
          * 
    * * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
          * If there are more results than those appearing in this response, then
          * `next_page_token` is included.  To get the next set of results, call this
    @@ -951,23 +1061,23 @@ 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -977,12 +1087,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p1beta1.SearchAllResourcesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p1beta1.SearchAllResourcesResponse) private static final com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse(); } @@ -991,27 +1101,27 @@ public static com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchAllResourcesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAllResourcesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1026,6 +1136,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.asset.v1p1beta1.SearchAllResourcesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponseOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponseOrBuilder.java similarity index 72% rename from owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponseOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponseOrBuilder.java index cea3d70ab592..183a1d6991a6 100644 --- a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponseOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p1beta1/asset_service.proto package com.google.cloud.asset.v1p1beta1; -public interface SearchAllResourcesResponseOrBuilder extends +public interface SearchAllResourcesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p1beta1.SearchAllResourcesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * A list of resource that match the search query.
        * 
    * * repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1; */ - java.util.List - getResultsList(); + java.util.List getResultsList(); /** + * + * *
        * A list of resource that match the search query.
        * 
    @@ -25,6 +44,8 @@ public interface SearchAllResourcesResponseOrBuilder extends */ com.google.cloud.asset.v1p1beta1.StandardResourceMetadata getResults(int index); /** + * + * *
        * A list of resource that match the search query.
        * 
    @@ -33,25 +54,30 @@ public interface SearchAllResourcesResponseOrBuilder extends */ int getResultsCount(); /** + * + * *
        * A list of resource that match the search query.
        * 
    * * repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1; */ - java.util.List + java.util.List getResultsOrBuilderList(); /** + * + * *
        * A list of resource that match the search query.
        * 
    * * repeated .google.cloud.asset.v1p1beta1.StandardResourceMetadata results = 1; */ - com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder getResultsOrBuilder( - int index); + com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder getResultsOrBuilder(int index); /** + * + * *
        * If there are more results than those appearing in this response, then
        * `next_page_token` is included.  To get the next set of results, call this
    @@ -59,10 +85,13 @@ com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder getResultsOrB
        * 
    * * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
        * If there are more results than those appearing in this response, then
        * `next_page_token` is included.  To get the next set of results, call this
    @@ -70,8 +99,8 @@ com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder getResultsOrB
        * 
    * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadata.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadata.java similarity index 72% rename from owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadata.java rename to java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadata.java index f17a5fc6ee4f..c0e711d3c87f 100644 --- a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadata.java +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p1beta1/assets.proto package com.google.cloud.asset.v1p1beta1; /** + * + * *
      * The standard metadata of a cloud resource.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.StandardResourceMetadata} */ -public final class StandardResourceMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StandardResourceMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p1beta1.StandardResourceMetadata) StandardResourceMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StandardResourceMetadata.newBuilder() to construct. private StandardResourceMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StandardResourceMetadata() { name_ = ""; assetType_ = ""; @@ -32,44 +50,46 @@ private StandardResourceMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StandardResourceMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 12: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.class, com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder.class); + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.class, + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
        * The full resource name. For example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -79,6 +99,7 @@ protected com.google.protobuf.MapField internalGetMapField(
        * 
    * * string name = 1; + * * @return The name. */ @java.lang.Override @@ -87,14 +108,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
        * The full resource name. For example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -104,16 +126,15 @@ public java.lang.String getName() {
        * 
    * * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -124,12 +145,15 @@ public java.lang.String getName() { public static final int ASSET_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object assetType_; /** + * + * *
        * The type of this resource.
        * For example: "compute.googleapis.com/Disk".
        * 
    * * string asset_type = 2; + * * @return The assetType. */ @java.lang.Override @@ -138,30 +162,30 @@ public java.lang.String getAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; } } /** + * + * *
        * The type of this resource.
        * For example: "compute.googleapis.com/Disk".
        * 
    * * string asset_type = 2; + * * @return The bytes for assetType. */ @java.lang.Override - public com.google.protobuf.ByteString - getAssetTypeBytes() { + public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetType_ = b; return b; } else { @@ -172,12 +196,15 @@ public java.lang.String getAssetType() { public static final int PROJECT_FIELD_NUMBER = 3; private volatile java.lang.Object project_; /** + * + * *
        * The project that this resource belongs to, in the form of
        * `projects/{project_number}`.
        * 
    * * string project = 3; + * * @return The project. */ @java.lang.Override @@ -186,30 +213,30 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** + * + * *
        * The project that this resource belongs to, in the form of
        * `projects/{project_number}`.
        * 
    * * string project = 3; + * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { @@ -220,11 +247,14 @@ public java.lang.String getProject() { public static final int DISPLAY_NAME_FIELD_NUMBER = 4; private volatile java.lang.Object displayName_; /** + * + * *
        * The display name of this resource.
        * 
    * * string display_name = 4; + * * @return The displayName. */ @java.lang.Override @@ -233,29 +263,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
        * The display name of this resource.
        * 
    * * string display_name = 4; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -266,12 +296,15 @@ public java.lang.String getDisplayName() { public static final int DESCRIPTION_FIELD_NUMBER = 5; private volatile java.lang.Object description_; /** + * + * *
        * One or more paragraphs of text description of this resource. Maximum length
        * could be up to 1M bytes.
        * 
    * * string description = 5; + * * @return The description. */ @java.lang.Override @@ -280,30 +313,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
        * One or more paragraphs of text description of this resource. Maximum length
        * could be up to 1M bytes.
        * 
    * * string description = 5; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -314,6 +347,8 @@ public java.lang.String getDescription() { public static final int ADDITIONAL_ATTRIBUTES_FIELD_NUMBER = 10; private com.google.protobuf.LazyStringList additionalAttributes_; /** + * + * *
        * Additional searchable attributes of this resource.
        * Informational only. The exact set of attributes is subject to change.
    @@ -321,13 +356,15 @@ public java.lang.String getDescription() {
        * 
    * * repeated string additional_attributes = 10; + * * @return A list containing the additionalAttributes. */ - public com.google.protobuf.ProtocolStringList - getAdditionalAttributesList() { + public com.google.protobuf.ProtocolStringList getAdditionalAttributesList() { return additionalAttributes_; } /** + * + * *
        * Additional searchable attributes of this resource.
        * Informational only. The exact set of attributes is subject to change.
    @@ -335,12 +372,15 @@ public java.lang.String getDescription() {
        * 
    * * repeated string additional_attributes = 10; + * * @return The count of additionalAttributes. */ public int getAdditionalAttributesCount() { return additionalAttributes_.size(); } /** + * + * *
        * Additional searchable attributes of this resource.
        * Informational only. The exact set of attributes is subject to change.
    @@ -348,6 +388,7 @@ public int getAdditionalAttributesCount() {
        * 
    * * repeated string additional_attributes = 10; + * * @param index The index of the element to return. * @return The additionalAttributes at the given index. */ @@ -355,6 +396,8 @@ public java.lang.String getAdditionalAttributes(int index) { return additionalAttributes_.get(index); } /** + * + * *
        * Additional searchable attributes of this resource.
        * Informational only. The exact set of attributes is subject to change.
    @@ -362,23 +405,26 @@ public java.lang.String getAdditionalAttributes(int index) {
        * 
    * * repeated string additional_attributes = 10; + * * @param index The index of the value to return. * @return The bytes of the additionalAttributes at the given index. */ - public com.google.protobuf.ByteString - getAdditionalAttributesBytes(int index) { + public com.google.protobuf.ByteString getAdditionalAttributesBytes(int index) { return additionalAttributes_.getByteString(index); } public static final int LOCATION_FIELD_NUMBER = 11; private volatile java.lang.Object location_; /** + * + * *
        * Location can be "global", regional like "us-east1", or zonal like
        * "us-west1-b".
        * 
    * * string location = 11; + * * @return The location. */ @java.lang.Override @@ -387,30 +433,30 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** + * + * *
        * Location can be "global", regional like "us-east1", or zonal like
        * "us-west1-b".
        * 
    * * string location = 11; + * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -419,24 +465,23 @@ public java.lang.String getLocation() { } public static final int LABELS_FIELD_NUMBER = 12; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -445,6 +490,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -453,22 +500,22 @@ public int getLabelsCount() {
        *
        * map<string, string> labels = 12;
        */
    -
       @java.lang.Override
    -  public boolean containsLabels(
    -      java.lang.String key) {
    -    if (key == null) { throw new NullPointerException("map key"); }
    +  public boolean containsLabels(java.lang.String key) {
    +    if (key == null) {
    +      throw new NullPointerException("map key");
    +    }
         return internalGetLabels().getMap().containsKey(key);
       }
    -  /**
    -   * Use {@link #getLabelsMap()} instead.
    -   */
    +  /** Use {@link #getLabelsMap()} instead. */
       @java.lang.Override
       @java.lang.Deprecated
       public java.util.Map getLabels() {
         return getLabelsMap();
       }
       /**
    +   *
    +   *
        * 
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -478,11 +525,12 @@ public java.util.Map getLabels() {
        * map<string, string> labels = 12;
        */
       @java.lang.Override
    -
       public java.util.Map getLabelsMap() {
         return internalGetLabels().getMap();
       }
       /**
    +   *
    +   *
        * 
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -492,16 +540,16 @@ public java.util.Map getLabelsMap() {
        * map<string, string> labels = 12;
        */
       @java.lang.Override
    -
    -  public java.lang.String getLabelsOrDefault(
    -      java.lang.String key,
    -      java.lang.String defaultValue) {
    -    if (key == null) { throw new NullPointerException("map key"); }
    -    java.util.Map map =
    -        internalGetLabels().getMap();
    +  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
    +    if (key == null) {
    +      throw new NullPointerException("map key");
    +    }
    +    java.util.Map map = internalGetLabels().getMap();
         return map.containsKey(key) ? map.get(key) : defaultValue;
       }
       /**
    +   *
    +   *
        * 
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -511,12 +559,11 @@ public java.lang.String getLabelsOrDefault(
        * map<string, string> labels = 12;
        */
       @java.lang.Override
    -
    -  public java.lang.String getLabelsOrThrow(
    -      java.lang.String key) {
    -    if (key == null) { throw new NullPointerException("map key"); }
    -    java.util.Map map =
    -        internalGetLabels().getMap();
    +  public java.lang.String getLabelsOrThrow(java.lang.String key) {
    +    if (key == null) {
    +      throw new NullPointerException("map key");
    +    }
    +    java.util.Map map = internalGetLabels().getMap();
         if (!map.containsKey(key)) {
           throw new java.lang.IllegalArgumentException();
         }
    @@ -526,6 +573,8 @@ public java.lang.String getLabelsOrThrow(
       public static final int NETWORK_TAGS_FIELD_NUMBER = 13;
       private com.google.protobuf.LazyStringList networkTags_;
       /**
    +   *
    +   *
        * 
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -534,13 +583,15 @@ public java.lang.String getLabelsOrThrow(
        * 
    * * repeated string network_tags = 13; + * * @return A list containing the networkTags. */ - public com.google.protobuf.ProtocolStringList - getNetworkTagsList() { + public com.google.protobuf.ProtocolStringList getNetworkTagsList() { return networkTags_; } /** + * + * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -549,12 +600,15 @@ public java.lang.String getLabelsOrThrow(
        * 
    * * repeated string network_tags = 13; + * * @return The count of networkTags. */ public int getNetworkTagsCount() { return networkTags_.size(); } /** + * + * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -563,6 +617,7 @@ public int getNetworkTagsCount() {
        * 
    * * repeated string network_tags = 13; + * * @param index The index of the element to return. * @return The networkTags at the given index. */ @@ -570,6 +625,8 @@ public java.lang.String getNetworkTags(int index) { return networkTags_.get(index); } /** + * + * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -578,15 +635,16 @@ public java.lang.String getNetworkTags(int index) {
        * 
    * * repeated string network_tags = 13; + * * @param index The index of the value to return. * @return The bytes of the networkTags at the given index. */ - public com.google.protobuf.ByteString - getNetworkTagsBytes(int index) { + public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { return networkTags_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -598,8 +656,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -616,17 +673,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } for (int i = 0; i < additionalAttributes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, additionalAttributes_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 10, additionalAttributes_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, location_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 12); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 12); for (int i = 0; i < networkTags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, networkTags_.getRaw(i)); } @@ -665,15 +719,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, location_); } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, labels__); + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, labels__); } { int dataSize = 0; @@ -691,31 +745,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p1beta1.StandardResourceMetadata)) { return super.equals(obj); } - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata other = (com.google.cloud.asset.v1p1beta1.StandardResourceMetadata) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getAssetType() - .equals(other.getAssetType())) return false; - if (!getProject() - .equals(other.getProject())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getAdditionalAttributesList() - .equals(other.getAdditionalAttributesList())) return false; - if (!getLocation() - .equals(other.getLocation())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getNetworkTagsList() - .equals(other.getNetworkTagsList())) return false; + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata other = + (com.google.cloud.asset.v1p1beta1.StandardResourceMetadata) obj; + + if (!getName().equals(other.getName())) return false; + if (!getAssetType().equals(other.getAssetType())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getAdditionalAttributesList().equals(other.getAdditionalAttributesList())) return false; + if (!getLocation().equals(other.getLocation())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getNetworkTagsList().equals(other.getNetworkTagsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -757,151 +803,156 @@ public int hashCode() { } public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata 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.asset.v1p1beta1.StandardResourceMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p1beta1.StandardResourceMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * The standard metadata of a cloud resource.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p1beta1.StandardResourceMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p1beta1.StandardResourceMetadata) com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 12: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 12: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_fieldAccessorTable + return com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.class, com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder.class); + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.class, + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.Builder.class); } // Construct using com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -926,9 +977,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p1beta1.AssetProto.internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p1beta1.AssetProto + .internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor; } @java.lang.Override @@ -947,7 +998,8 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata build() { @java.lang.Override public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata buildPartial() { - com.google.cloud.asset.v1p1beta1.StandardResourceMetadata result = new com.google.cloud.asset.v1p1beta1.StandardResourceMetadata(this); + com.google.cloud.asset.v1p1beta1.StandardResourceMetadata result = + new com.google.cloud.asset.v1p1beta1.StandardResourceMetadata(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.assetType_ = assetType_; @@ -975,38 +1027,39 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p1beta1.StandardResourceMetadata) { - return mergeFrom((com.google.cloud.asset.v1p1beta1.StandardResourceMetadata)other); + return mergeFrom((com.google.cloud.asset.v1p1beta1.StandardResourceMetadata) other); } else { super.mergeFrom(other); return this; @@ -1014,7 +1067,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.StandardResourceMetadata other) { - if (other == com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1p1beta1.StandardResourceMetadata.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1049,8 +1103,7 @@ public Builder mergeFrom(com.google.cloud.asset.v1p1beta1.StandardResourceMetada location_ = other.location_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (!other.networkTags_.isEmpty()) { if (networkTags_.isEmpty()) { networkTags_ = other.networkTags_; @@ -1087,62 +1140,74 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - assetType_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - project_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - description_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAdditionalAttributesIsMutable(); - additionalAttributes_.add(s); - break; - } // case 82 - case 90: { - location_ = input.readStringRequireUtf8(); - - break; - } // case 90 - case 98: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 98 - case 106: { - java.lang.String s = input.readStringRequireUtf8(); - ensureNetworkTagsIsMutable(); - networkTags_.add(s); - break; - } // case 106 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + assetType_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + project_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAdditionalAttributesIsMutable(); + additionalAttributes_.add(s); + break; + } // case 82 + case 90: + { + location_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 98: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 98 + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNetworkTagsIsMutable(); + networkTags_.add(s); + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1152,10 +1217,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
          * The full resource name. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -1165,13 +1233,13 @@ public Builder mergeFrom(
          * 
    * * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1180,6 +1248,8 @@ public java.lang.String getName() { } } /** + * + * *
          * The full resource name. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -1189,15 +1259,14 @@ public java.lang.String getName() {
          * 
    * * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1205,6 +1274,8 @@ public java.lang.String getName() { } } /** + * + * *
          * The full resource name. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -1214,20 +1285,22 @@ public java.lang.String getName() {
          * 
    * * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
          * The full resource name. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -1237,15 +1310,18 @@ public Builder setName(
          * 
    * * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
          * The full resource name. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -1255,16 +1331,16 @@ public Builder clearName() {
          * 
    * * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1272,19 +1348,21 @@ public Builder setNameBytes( private java.lang.Object assetType_ = ""; /** + * + * *
          * The type of this resource.
          * For example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; + * * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; @@ -1293,21 +1371,22 @@ public java.lang.String getAssetType() { } } /** + * + * *
          * The type of this resource.
          * For example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; + * * @return The bytes for assetType. */ - public com.google.protobuf.ByteString - getAssetTypeBytes() { + public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetType_ = b; return b; } else { @@ -1315,57 +1394,64 @@ public java.lang.String getAssetType() { } } /** + * + * *
          * The type of this resource.
          * For example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; + * * @param value The assetType to set. * @return This builder for chaining. */ - public Builder setAssetType( - java.lang.String value) { + public Builder setAssetType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + assetType_ = value; onChanged(); return this; } /** + * + * *
          * The type of this resource.
          * For example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; + * * @return This builder for chaining. */ public Builder clearAssetType() { - + assetType_ = getDefaultInstance().getAssetType(); onChanged(); return this; } /** + * + * *
          * The type of this resource.
          * For example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; + * * @param value The bytes for assetType to set. * @return This builder for chaining. */ - public Builder setAssetTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; onChanged(); return this; @@ -1373,19 +1459,21 @@ public Builder setAssetTypeBytes( private java.lang.Object project_ = ""; /** + * + * *
          * The project that this resource belongs to, in the form of
          * `projects/{project_number}`.
          * 
    * * string project = 3; + * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -1394,21 +1482,22 @@ public java.lang.String getProject() { } } /** + * + * *
          * The project that this resource belongs to, in the form of
          * `projects/{project_number}`.
          * 
    * * string project = 3; + * * @return The bytes for project. */ - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { @@ -1416,57 +1505,64 @@ public java.lang.String getProject() { } } /** + * + * *
          * The project that this resource belongs to, in the form of
          * `projects/{project_number}`.
          * 
    * * string project = 3; + * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject( - java.lang.String value) { + public Builder setProject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; onChanged(); return this; } /** + * + * *
          * The project that this resource belongs to, in the form of
          * `projects/{project_number}`.
          * 
    * * string project = 3; + * * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** + * + * *
          * The project that this resource belongs to, in the form of
          * `projects/{project_number}`.
          * 
    * * string project = 3; + * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; @@ -1474,18 +1570,20 @@ public Builder setProjectBytes( private java.lang.Object displayName_ = ""; /** + * + * *
          * The display name of this resource.
          * 
    * * string display_name = 4; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1494,20 +1592,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
          * The display name of this resource.
          * 
    * * string display_name = 4; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1515,54 +1614,61 @@ public java.lang.String getDisplayName() { } } /** + * + * *
          * The display name of this resource.
          * 
    * * string display_name = 4; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
          * The display name of this resource.
          * 
    * * string display_name = 4; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
          * The display name of this resource.
          * 
    * * string display_name = 4; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1570,19 +1676,21 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
          * One or more paragraphs of text description of this resource. Maximum length
          * could be up to 1M bytes.
          * 
    * * string description = 5; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1591,21 +1699,22 @@ public java.lang.String getDescription() { } } /** + * + * *
          * One or more paragraphs of text description of this resource. Maximum length
          * could be up to 1M bytes.
          * 
    * * string description = 5; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1613,70 +1722,81 @@ public java.lang.String getDescription() { } } /** + * + * *
          * One or more paragraphs of text description of this resource. Maximum length
          * could be up to 1M bytes.
          * 
    * * string description = 5; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
          * One or more paragraphs of text description of this resource. Maximum length
          * could be up to 1M bytes.
          * 
    * * string description = 5; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
          * One or more paragraphs of text description of this resource. Maximum length
          * could be up to 1M bytes.
          * 
    * * string description = 5; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList additionalAttributes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList additionalAttributes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAdditionalAttributesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { additionalAttributes_ = new com.google.protobuf.LazyStringArrayList(additionalAttributes_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
          * Additional searchable attributes of this resource.
          * Informational only. The exact set of attributes is subject to change.
    @@ -1684,13 +1804,15 @@ private void ensureAdditionalAttributesIsMutable() {
          * 
    * * repeated string additional_attributes = 10; + * * @return A list containing the additionalAttributes. */ - public com.google.protobuf.ProtocolStringList - getAdditionalAttributesList() { + public com.google.protobuf.ProtocolStringList getAdditionalAttributesList() { return additionalAttributes_.getUnmodifiableView(); } /** + * + * *
          * Additional searchable attributes of this resource.
          * Informational only. The exact set of attributes is subject to change.
    @@ -1698,12 +1820,15 @@ private void ensureAdditionalAttributesIsMutable() {
          * 
    * * repeated string additional_attributes = 10; + * * @return The count of additionalAttributes. */ public int getAdditionalAttributesCount() { return additionalAttributes_.size(); } /** + * + * *
          * Additional searchable attributes of this resource.
          * Informational only. The exact set of attributes is subject to change.
    @@ -1711,6 +1836,7 @@ public int getAdditionalAttributesCount() {
          * 
    * * repeated string additional_attributes = 10; + * * @param index The index of the element to return. * @return The additionalAttributes at the given index. */ @@ -1718,6 +1844,8 @@ public java.lang.String getAdditionalAttributes(int index) { return additionalAttributes_.get(index); } /** + * + * *
          * Additional searchable attributes of this resource.
          * Informational only. The exact set of attributes is subject to change.
    @@ -1725,14 +1853,16 @@ public java.lang.String getAdditionalAttributes(int index) {
          * 
    * * repeated string additional_attributes = 10; + * * @param index The index of the value to return. * @return The bytes of the additionalAttributes at the given index. */ - public com.google.protobuf.ByteString - getAdditionalAttributesBytes(int index) { + public com.google.protobuf.ByteString getAdditionalAttributesBytes(int index) { return additionalAttributes_.getByteString(index); } /** + * + * *
          * Additional searchable attributes of this resource.
          * Informational only. The exact set of attributes is subject to change.
    @@ -1740,21 +1870,23 @@ public java.lang.String getAdditionalAttributes(int index) {
          * 
    * * repeated string additional_attributes = 10; + * * @param index The index to set the value at. * @param value The additionalAttributes to set. * @return This builder for chaining. */ - public Builder setAdditionalAttributes( - int index, java.lang.String value) { + public Builder setAdditionalAttributes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalAttributesIsMutable(); + throw new NullPointerException(); + } + ensureAdditionalAttributesIsMutable(); additionalAttributes_.set(index, value); onChanged(); return this; } /** + * + * *
          * Additional searchable attributes of this resource.
          * Informational only. The exact set of attributes is subject to change.
    @@ -1762,20 +1894,22 @@ public Builder setAdditionalAttributes(
          * 
    * * repeated string additional_attributes = 10; + * * @param value The additionalAttributes to add. * @return This builder for chaining. */ - public Builder addAdditionalAttributes( - java.lang.String value) { + public Builder addAdditionalAttributes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalAttributesIsMutable(); + throw new NullPointerException(); + } + ensureAdditionalAttributesIsMutable(); additionalAttributes_.add(value); onChanged(); return this; } /** + * + * *
          * Additional searchable attributes of this resource.
          * Informational only. The exact set of attributes is subject to change.
    @@ -1783,18 +1917,19 @@ public Builder addAdditionalAttributes(
          * 
    * * repeated string additional_attributes = 10; + * * @param values The additionalAttributes to add. * @return This builder for chaining. */ - public Builder addAllAdditionalAttributes( - java.lang.Iterable values) { + public Builder addAllAdditionalAttributes(java.lang.Iterable values) { ensureAdditionalAttributesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, additionalAttributes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalAttributes_); onChanged(); return this; } /** + * + * *
          * Additional searchable attributes of this resource.
          * Informational only. The exact set of attributes is subject to change.
    @@ -1802,6 +1937,7 @@ public Builder addAllAdditionalAttributes(
          * 
    * * repeated string additional_attributes = 10; + * * @return This builder for chaining. */ public Builder clearAdditionalAttributes() { @@ -1811,6 +1947,8 @@ public Builder clearAdditionalAttributes() { return this; } /** + * + * *
          * Additional searchable attributes of this resource.
          * Informational only. The exact set of attributes is subject to change.
    @@ -1818,15 +1956,15 @@ public Builder clearAdditionalAttributes() {
          * 
    * * repeated string additional_attributes = 10; + * * @param value The bytes of the additionalAttributes to add. * @return This builder for chaining. */ - public Builder addAdditionalAttributesBytes( - com.google.protobuf.ByteString value) { + public Builder addAdditionalAttributesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAdditionalAttributesIsMutable(); additionalAttributes_.add(value); onChanged(); @@ -1835,19 +1973,21 @@ public Builder addAdditionalAttributesBytes( private java.lang.Object location_ = ""; /** + * + * *
          * Location can be "global", regional like "us-east1", or zonal like
          * "us-west1-b".
          * 
    * * string location = 11; + * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -1856,21 +1996,22 @@ public java.lang.String getLocation() { } } /** + * + * *
          * Location can be "global", regional like "us-east1", or zonal like
          * "us-west1-b".
          * 
    * * string location = 11; + * * @return The bytes for location. */ - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -1878,78 +2019,84 @@ public java.lang.String getLocation() { } } /** + * + * *
          * Location can be "global", regional like "us-east1", or zonal like
          * "us-west1-b".
          * 
    * * string location = 11; + * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation( - java.lang.String value) { + public Builder setLocation(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** + * + * *
          * Location can be "global", regional like "us-east1", or zonal like
          * "us-west1-b".
          * 
    * * string location = 11; + * * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** + * + * *
          * Location can be "global", regional like "us-east1", or zonal like
          * "us-west1-b".
          * 
    * * string location = 11; + * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes( - com.google.protobuf.ByteString value) { + public Builder setLocationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1961,6 +2108,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -1969,22 +2118,22 @@ public int getLabelsCount() {
          *
          * map<string, string> labels = 12;
          */
    -
         @java.lang.Override
    -    public boolean containsLabels(
    -        java.lang.String key) {
    -      if (key == null) { throw new NullPointerException("map key"); }
    +    public boolean containsLabels(java.lang.String key) {
    +      if (key == null) {
    +        throw new NullPointerException("map key");
    +      }
           return internalGetLabels().getMap().containsKey(key);
         }
    -    /**
    -     * Use {@link #getLabelsMap()} instead.
    -     */
    +    /** Use {@link #getLabelsMap()} instead. */
         @java.lang.Override
         @java.lang.Deprecated
         public java.util.Map getLabels() {
           return getLabelsMap();
         }
         /**
    +     *
    +     *
          * 
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -1994,11 +2143,12 @@ public java.util.Map getLabels() {
          * map<string, string> labels = 12;
          */
         @java.lang.Override
    -
         public java.util.Map getLabelsMap() {
           return internalGetLabels().getMap();
         }
         /**
    +     *
    +     *
          * 
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -2008,16 +2158,17 @@ public java.util.Map getLabelsMap() {
          * map<string, string> labels = 12;
          */
         @java.lang.Override
    -
         public java.lang.String getLabelsOrDefault(
    -        java.lang.String key,
    -        java.lang.String defaultValue) {
    -      if (key == null) { throw new NullPointerException("map key"); }
    -      java.util.Map map =
    -          internalGetLabels().getMap();
    +        java.lang.String key, java.lang.String defaultValue) {
    +      if (key == null) {
    +        throw new NullPointerException("map key");
    +      }
    +      java.util.Map map = internalGetLabels().getMap();
           return map.containsKey(key) ? map.get(key) : defaultValue;
         }
         /**
    +     *
    +     *
          * 
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -2027,12 +2178,11 @@ public java.lang.String getLabelsOrDefault(
          * map<string, string> labels = 12;
          */
         @java.lang.Override
    -
    -    public java.lang.String getLabelsOrThrow(
    -        java.lang.String key) {
    -      if (key == null) { throw new NullPointerException("map key"); }
    -      java.util.Map map =
    -          internalGetLabels().getMap();
    +    public java.lang.String getLabelsOrThrow(java.lang.String key) {
    +      if (key == null) {
    +        throw new NullPointerException("map key");
    +      }
    +      java.util.Map map = internalGetLabels().getMap();
           if (!map.containsKey(key)) {
             throw new java.lang.IllegalArgumentException();
           }
    @@ -2040,11 +2190,12 @@ public java.lang.String getLabelsOrThrow(
         }
     
         public Builder clearLabels() {
    -      internalGetMutableLabels().getMutableMap()
    -          .clear();
    +      internalGetMutableLabels().getMutableMap().clear();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -2053,23 +2204,21 @@ public Builder clearLabels() {
          *
          * map<string, string> labels = 12;
          */
    -
    -    public Builder removeLabels(
    -        java.lang.String key) {
    -      if (key == null) { throw new NullPointerException("map key"); }
    -      internalGetMutableLabels().getMutableMap()
    -          .remove(key);
    +    public Builder removeLabels(java.lang.String key) {
    +      if (key == null) {
    +        throw new NullPointerException("map key");
    +      }
    +      internalGetMutableLabels().getMutableMap().remove(key);
           return this;
         }
    -    /**
    -     * Use alternate mutation accessors instead.
    -     */
    +    /** Use alternate mutation accessors instead. */
         @java.lang.Deprecated
    -    public java.util.Map
    -    getMutableLabels() {
    +    public java.util.Map getMutableLabels() {
           return internalGetMutableLabels().getMutableMap();
         }
         /**
    +     *
    +     *
          * 
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -2078,19 +2227,20 @@ public Builder removeLabels(
          *
          * map<string, string> labels = 12;
          */
    -    public Builder putLabels(
    -        java.lang.String key,
    -        java.lang.String value) {
    -      if (key == null) { throw new NullPointerException("map key"); }
    +    public Builder putLabels(java.lang.String key, java.lang.String value) {
    +      if (key == null) {
    +        throw new NullPointerException("map key");
    +      }
           if (value == null) {
    -  throw new NullPointerException("map value");
    -}
    +        throw new NullPointerException("map value");
    +      }
     
    -      internalGetMutableLabels().getMutableMap()
    -          .put(key, value);
    +      internalGetMutableLabels().getMutableMap().put(key, value);
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Labels associated with this resource. See [Labelling and grouping GCP
          * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -2099,22 +2249,23 @@ public Builder putLabels(
          *
          * map<string, string> labels = 12;
          */
    -
    -    public Builder putAllLabels(
    -        java.util.Map values) {
    -      internalGetMutableLabels().getMutableMap()
    -          .putAll(values);
    +    public Builder putAllLabels(java.util.Map values) {
    +      internalGetMutableLabels().getMutableMap().putAll(values);
           return this;
         }
     
    -    private com.google.protobuf.LazyStringList networkTags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    +    private com.google.protobuf.LazyStringList networkTags_ =
    +        com.google.protobuf.LazyStringArrayList.EMPTY;
    +
         private void ensureNetworkTagsIsMutable() {
           if (!((bitField0_ & 0x00000004) != 0)) {
             networkTags_ = new com.google.protobuf.LazyStringArrayList(networkTags_);
             bitField0_ |= 0x00000004;
    -       }
    +      }
         }
         /**
    +     *
    +     *
          * 
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -2123,13 +2274,15 @@ private void ensureNetworkTagsIsMutable() {
          * 
    * * repeated string network_tags = 13; + * * @return A list containing the networkTags. */ - public com.google.protobuf.ProtocolStringList - getNetworkTagsList() { + public com.google.protobuf.ProtocolStringList getNetworkTagsList() { return networkTags_.getUnmodifiableView(); } /** + * + * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -2138,12 +2291,15 @@ private void ensureNetworkTagsIsMutable() {
          * 
    * * repeated string network_tags = 13; + * * @return The count of networkTags. */ public int getNetworkTagsCount() { return networkTags_.size(); } /** + * + * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -2152,6 +2308,7 @@ public int getNetworkTagsCount() {
          * 
    * * repeated string network_tags = 13; + * * @param index The index of the element to return. * @return The networkTags at the given index. */ @@ -2159,6 +2316,8 @@ public java.lang.String getNetworkTags(int index) { return networkTags_.get(index); } /** + * + * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -2167,14 +2326,16 @@ public java.lang.String getNetworkTags(int index) {
          * 
    * * repeated string network_tags = 13; + * * @param index The index of the value to return. * @return The bytes of the networkTags at the given index. */ - public com.google.protobuf.ByteString - getNetworkTagsBytes(int index) { + public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { return networkTags_.getByteString(index); } /** + * + * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -2183,21 +2344,23 @@ public java.lang.String getNetworkTags(int index) {
          * 
    * * repeated string network_tags = 13; + * * @param index The index to set the value at. * @param value The networkTags to set. * @return This builder for chaining. */ - public Builder setNetworkTags( - int index, java.lang.String value) { + public Builder setNetworkTags(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNetworkTagsIsMutable(); + throw new NullPointerException(); + } + ensureNetworkTagsIsMutable(); networkTags_.set(index, value); onChanged(); return this; } /** + * + * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -2206,20 +2369,22 @@ public Builder setNetworkTags(
          * 
    * * repeated string network_tags = 13; + * * @param value The networkTags to add. * @return This builder for chaining. */ - public Builder addNetworkTags( - java.lang.String value) { + public Builder addNetworkTags(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureNetworkTagsIsMutable(); + throw new NullPointerException(); + } + ensureNetworkTagsIsMutable(); networkTags_.add(value); onChanged(); return this; } /** + * + * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -2228,18 +2393,19 @@ public Builder addNetworkTags(
          * 
    * * repeated string network_tags = 13; + * * @param values The networkTags to add. * @return This builder for chaining. */ - public Builder addAllNetworkTags( - java.lang.Iterable values) { + public Builder addAllNetworkTags(java.lang.Iterable values) { ensureNetworkTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, networkTags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkTags_); onChanged(); return this; } /** + * + * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -2248,6 +2414,7 @@ public Builder addAllNetworkTags(
          * 
    * * repeated string network_tags = 13; + * * @return This builder for chaining. */ public Builder clearNetworkTags() { @@ -2257,6 +2424,8 @@ public Builder clearNetworkTags() { return this; } /** + * + * *
          * Network tags associated with this resource. Like labels, network tags are a
          * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -2265,23 +2434,23 @@ public Builder clearNetworkTags() {
          * 
    * * repeated string network_tags = 13; + * * @param value The bytes of the networkTags to add. * @return This builder for chaining. */ - public Builder addNetworkTagsBytes( - com.google.protobuf.ByteString value) { + public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureNetworkTagsIsMutable(); networkTags_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2291,12 +2460,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p1beta1.StandardResourceMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p1beta1.StandardResourceMetadata) private static final com.google.cloud.asset.v1p1beta1.StandardResourceMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p1beta1.StandardResourceMetadata(); } @@ -2305,27 +2474,27 @@ public static com.google.cloud.asset.v1p1beta1.StandardResourceMetadata getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StandardResourceMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StandardResourceMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2340,6 +2509,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadataOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadataOrBuilder.java similarity index 81% rename from owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadataOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadataOrBuilder.java index 5a4547c2da3f..bb204bb0e894 100644 --- a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadataOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadataOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p1beta1/assets.proto package com.google.cloud.asset.v1p1beta1; -public interface StandardResourceMetadataOrBuilder extends +public interface StandardResourceMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p1beta1.StandardResourceMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The full resource name. For example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -17,10 +35,13 @@ public interface StandardResourceMetadataOrBuilder extends
        * 
    * * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
        * The full resource name. For example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -30,98 +51,120 @@ public interface StandardResourceMetadataOrBuilder extends
        * 
    * * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
        * The type of this resource.
        * For example: "compute.googleapis.com/Disk".
        * 
    * * string asset_type = 2; + * * @return The assetType. */ java.lang.String getAssetType(); /** + * + * *
        * The type of this resource.
        * For example: "compute.googleapis.com/Disk".
        * 
    * * string asset_type = 2; + * * @return The bytes for assetType. */ - com.google.protobuf.ByteString - getAssetTypeBytes(); + com.google.protobuf.ByteString getAssetTypeBytes(); /** + * + * *
        * The project that this resource belongs to, in the form of
        * `projects/{project_number}`.
        * 
    * * string project = 3; + * * @return The project. */ java.lang.String getProject(); /** + * + * *
        * The project that this resource belongs to, in the form of
        * `projects/{project_number}`.
        * 
    * * string project = 3; + * * @return The bytes for project. */ - com.google.protobuf.ByteString - getProjectBytes(); + com.google.protobuf.ByteString getProjectBytes(); /** + * + * *
        * The display name of this resource.
        * 
    * * string display_name = 4; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
        * The display name of this resource.
        * 
    * * string display_name = 4; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
        * One or more paragraphs of text description of this resource. Maximum length
        * could be up to 1M bytes.
        * 
    * * string description = 5; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
        * One or more paragraphs of text description of this resource. Maximum length
        * could be up to 1M bytes.
        * 
    * * string description = 5; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
        * Additional searchable attributes of this resource.
        * Informational only. The exact set of attributes is subject to change.
    @@ -129,11 +172,13 @@ public interface StandardResourceMetadataOrBuilder extends
        * 
    * * repeated string additional_attributes = 10; + * * @return A list containing the additionalAttributes. */ - java.util.List - getAdditionalAttributesList(); + java.util.List getAdditionalAttributesList(); /** + * + * *
        * Additional searchable attributes of this resource.
        * Informational only. The exact set of attributes is subject to change.
    @@ -141,10 +186,13 @@ public interface StandardResourceMetadataOrBuilder extends
        * 
    * * repeated string additional_attributes = 10; + * * @return The count of additionalAttributes. */ int getAdditionalAttributesCount(); /** + * + * *
        * Additional searchable attributes of this resource.
        * Informational only. The exact set of attributes is subject to change.
    @@ -152,11 +200,14 @@ public interface StandardResourceMetadataOrBuilder extends
        * 
    * * repeated string additional_attributes = 10; + * * @param index The index of the element to return. * @return The additionalAttributes at the given index. */ java.lang.String getAdditionalAttributes(int index); /** + * + * *
        * Additional searchable attributes of this resource.
        * Informational only. The exact set of attributes is subject to change.
    @@ -164,35 +215,42 @@ public interface StandardResourceMetadataOrBuilder extends
        * 
    * * repeated string additional_attributes = 10; + * * @param index The index of the value to return. * @return The bytes of the additionalAttributes at the given index. */ - com.google.protobuf.ByteString - getAdditionalAttributesBytes(int index); + com.google.protobuf.ByteString getAdditionalAttributesBytes(int index); /** + * + * *
        * Location can be "global", regional like "us-east1", or zonal like
        * "us-west1-b".
        * 
    * * string location = 11; + * * @return The location. */ java.lang.String getLocation(); /** + * + * *
        * Location can be "global", regional like "us-east1", or zonal like
        * "us-west1-b".
        * 
    * * string location = 11; + * * @return The bytes for location. */ - com.google.protobuf.ByteString - getLocationBytes(); + com.google.protobuf.ByteString getLocationBytes(); /** + * + * *
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -203,6 +261,8 @@ public interface StandardResourceMetadataOrBuilder extends
        */
       int getLabelsCount();
       /**
    +   *
    +   *
        * 
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -211,15 +271,13 @@ public interface StandardResourceMetadataOrBuilder extends
        *
        * map<string, string> labels = 12;
        */
    -  boolean containsLabels(
    -      java.lang.String key);
    -  /**
    -   * Use {@link #getLabelsMap()} instead.
    -   */
    +  boolean containsLabels(java.lang.String key);
    +  /** Use {@link #getLabelsMap()} instead. */
       @java.lang.Deprecated
    -  java.util.Map
    -  getLabels();
    +  java.util.Map getLabels();
       /**
    +   *
    +   *
        * 
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -228,9 +286,10 @@ boolean containsLabels(
        *
        * map<string, string> labels = 12;
        */
    -  java.util.Map
    -  getLabelsMap();
    +  java.util.Map getLabelsMap();
       /**
    +   *
    +   *
        * 
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -241,11 +300,13 @@ boolean containsLabels(
        */
     
       /* nullable */
    -java.lang.String getLabelsOrDefault(
    +  java.lang.String getLabelsOrDefault(
           java.lang.String key,
           /* nullable */
    -java.lang.String defaultValue);
    +      java.lang.String defaultValue);
       /**
    +   *
    +   *
        * 
        * Labels associated with this resource. See [Labelling and grouping GCP
        * resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    @@ -254,11 +315,11 @@ java.lang.String getLabelsOrDefault(
        *
        * map<string, string> labels = 12;
        */
    -
    -  java.lang.String getLabelsOrThrow(
    -      java.lang.String key);
    +  java.lang.String getLabelsOrThrow(java.lang.String key);
     
       /**
    +   *
    +   *
        * 
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -267,11 +328,13 @@ java.lang.String getLabelsOrThrow(
        * 
    * * repeated string network_tags = 13; + * * @return A list containing the networkTags. */ - java.util.List - getNetworkTagsList(); + java.util.List getNetworkTagsList(); /** + * + * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -280,10 +343,13 @@ java.lang.String getLabelsOrThrow(
        * 
    * * repeated string network_tags = 13; + * * @return The count of networkTags. */ int getNetworkTagsCount(); /** + * + * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -292,11 +358,14 @@ java.lang.String getLabelsOrThrow(
        * 
    * * repeated string network_tags = 13; + * * @param index The index of the element to return. * @return The networkTags at the given index. */ java.lang.String getNetworkTags(int index); /** + * + * *
        * Network tags associated with this resource. Like labels, network tags are a
        * type of annotations used to group GCP resources. See [Labelling GCP
    @@ -305,9 +374,9 @@ java.lang.String getLabelsOrThrow(
        * 
    * * repeated string network_tags = 13; + * * @param index The index of the value to return. * @return The bytes of the networkTags at the given index. */ - com.google.protobuf.ByteString - getNetworkTagsBytes(int index); + com.google.protobuf.ByteString getNetworkTagsBytes(int index); } diff --git a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/asset_service.proto b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/asset_service.proto similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/asset_service.proto rename to java-asset/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/asset_service.proto diff --git a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/assets.proto b/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/assets.proto similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/assets.proto rename to java-asset/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/assets.proto diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Asset.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Asset.java similarity index 75% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Asset.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Asset.java index 918fefda3f37..f49ec70683b0 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Asset.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Asset.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/assets.proto package com.google.cloud.asset.v1p2beta1; /** + * + * *
      * Cloud asset. This includes all Google Cloud Platform resources,
      * Cloud IAM policies, and other non-GCP assets.
    @@ -11,15 +28,16 @@
      *
      * Protobuf type {@code google.cloud.asset.v1p2beta1.Asset}
      */
    -public final class Asset extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class Asset extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.Asset)
         AssetOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use Asset.newBuilder() to construct.
       private Asset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private Asset() {
         name_ = "";
         assetType_ = "";
    @@ -28,32 +46,35 @@ private Asset() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(
    -      UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new Asset();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.cloud.asset.v1p2beta1.AssetProto
    +        .internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_Asset_fieldAccessorTable
    +    return com.google.cloud.asset.v1p2beta1.AssetProto
    +        .internal_static_google_cloud_asset_v1p2beta1_Asset_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1p2beta1.Asset.class, com.google.cloud.asset.v1p2beta1.Asset.Builder.class);
    +            com.google.cloud.asset.v1p2beta1.Asset.class,
    +            com.google.cloud.asset.v1p2beta1.Asset.Builder.class);
       }
     
       public static final int NAME_FIELD_NUMBER = 1;
       private volatile java.lang.Object name_;
       /**
    +   *
    +   *
        * 
        * The full name of the asset. For example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -63,6 +84,7 @@ protected java.lang.Object newInstance(
        * 
    * * string name = 1; + * * @return The name. */ @java.lang.Override @@ -71,14 +93,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
        * The full name of the asset. For example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -88,16 +111,15 @@ public java.lang.String getName() {
        * 
    * * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -108,11 +130,14 @@ public java.lang.String getName() { public static final int ASSET_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object assetType_; /** + * + * *
        * Type of the asset. Example: "compute.googleapis.com/Disk".
        * 
    * * string asset_type = 2; + * * @return The assetType. */ @java.lang.Override @@ -121,29 +146,29 @@ public java.lang.String getAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; } } /** + * + * *
        * Type of the asset. Example: "compute.googleapis.com/Disk".
        * 
    * * string asset_type = 2; + * * @return The bytes for assetType. */ @java.lang.Override - public com.google.protobuf.ByteString - getAssetTypeBytes() { + public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetType_ = b; return b; } else { @@ -154,11 +179,14 @@ public java.lang.String getAssetType() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.asset.v1p2beta1.Resource resource_; /** + * + * *
        * Representation of the resource.
        * 
    * * .google.cloud.asset.v1p2beta1.Resource resource = 3; + * * @return Whether the resource field is set. */ @java.lang.Override @@ -166,18 +194,25 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
        * Representation of the resource.
        * 
    * * .google.cloud.asset.v1p2beta1.Resource resource = 3; + * * @return The resource. */ @java.lang.Override public com.google.cloud.asset.v1p2beta1.Resource getResource() { - return resource_ == null ? com.google.cloud.asset.v1p2beta1.Resource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.asset.v1p2beta1.Resource.getDefaultInstance() + : resource_; } /** + * + * *
        * Representation of the resource.
        * 
    @@ -192,12 +227,15 @@ public com.google.cloud.asset.v1p2beta1.ResourceOrBuilder getResourceOrBuilder() public static final int IAM_POLICY_FIELD_NUMBER = 4; private com.google.iam.v1.Policy iamPolicy_; /** + * + * *
        * Representation of the actual Cloud IAM policy set on a cloud resource. For
        * each resource, there must be at most one Cloud IAM policy set on it.
        * 
    * * .google.iam.v1.Policy iam_policy = 4; + * * @return Whether the iamPolicy field is set. */ @java.lang.Override @@ -205,12 +243,15 @@ public boolean hasIamPolicy() { return iamPolicy_ != null; } /** + * + * *
        * Representation of the actual Cloud IAM policy set on a cloud resource. For
        * each resource, there must be at most one Cloud IAM policy set on it.
        * 
    * * .google.iam.v1.Policy iam_policy = 4; + * * @return The iamPolicy. */ @java.lang.Override @@ -218,6 +259,8 @@ public com.google.iam.v1.Policy getIamPolicy() { return iamPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_; } /** + * + * *
        * Representation of the actual Cloud IAM policy set on a cloud resource. For
        * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -233,6 +276,8 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
       public static final int ANCESTORS_FIELD_NUMBER = 6;
       private com.google.protobuf.LazyStringList ancestors_;
       /**
    +   *
    +   *
        * 
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -242,13 +287,15 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
        * 
    * * repeated string ancestors = 6; + * * @return A list containing the ancestors. */ - public com.google.protobuf.ProtocolStringList - getAncestorsList() { + public com.google.protobuf.ProtocolStringList getAncestorsList() { return ancestors_; } /** + * + * *
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -258,12 +305,15 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
        * 
    * * repeated string ancestors = 6; + * * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); } /** + * + * *
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -273,6 +323,7 @@ public int getAncestorsCount() {
        * 
    * * repeated string ancestors = 6; + * * @param index The index of the element to return. * @return The ancestors at the given index. */ @@ -280,6 +331,8 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** + * + * *
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -289,15 +342,16 @@ public java.lang.String getAncestors(int index) {
        * 
    * * repeated string ancestors = 6; + * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - public com.google.protobuf.ByteString - getAncestorsBytes(int index) { + public com.google.protobuf.ByteString getAncestorsBytes(int index) { return ancestors_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,8 +363,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -342,12 +395,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, assetType_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } if (iamPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getIamPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIamPolicy()); } { int dataSize = 0; @@ -365,29 +416,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.Asset)) { return super.equals(obj); } com.google.cloud.asset.v1p2beta1.Asset other = (com.google.cloud.asset.v1p2beta1.Asset) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getAssetType() - .equals(other.getAssetType())) return false; + if (!getName().equals(other.getName())) return false; + if (!getAssetType().equals(other.getAssetType())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; } if (hasIamPolicy() != other.hasIamPolicy()) return false; if (hasIamPolicy()) { - if (!getIamPolicy() - .equals(other.getIamPolicy())) return false; + if (!getIamPolicy().equals(other.getIamPolicy())) return false; } - if (!getAncestorsList() - .equals(other.getAncestorsList())) return false; + if (!getAncestorsList().equals(other.getAncestorsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -420,97 +466,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1p2beta1.Asset parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p2beta1.Asset parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.Asset parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.Asset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.Asset 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.asset.v1p2beta1.Asset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.Asset parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.Asset parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.Asset parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.Asset parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.Asset parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.Asset parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.Asset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.Asset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Cloud asset. This includes all Google Cloud Platform resources,
        * Cloud IAM policies, and other non-GCP assets.
    @@ -518,33 +571,32 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.asset.v1p2beta1.Asset}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.Asset)
           com.google.cloud.asset.v1p2beta1.AssetOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1p2beta1.AssetProto
    +          .internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_Asset_fieldAccessorTable
    +      return com.google.cloud.asset.v1p2beta1.AssetProto
    +          .internal_static_google_cloud_asset_v1p2beta1_Asset_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1p2beta1.Asset.class, com.google.cloud.asset.v1p2beta1.Asset.Builder.class);
    +              com.google.cloud.asset.v1p2beta1.Asset.class,
    +              com.google.cloud.asset.v1p2beta1.Asset.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1p2beta1.Asset.newBuilder()
    -    private Builder() {
    +    private Builder() {}
     
    -    }
    -
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -570,9 +622,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.cloud.asset.v1p2beta1.AssetProto
    +          .internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor;
         }
     
         @java.lang.Override
    @@ -591,7 +643,8 @@ public com.google.cloud.asset.v1p2beta1.Asset build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1p2beta1.Asset buildPartial() {
    -      com.google.cloud.asset.v1p2beta1.Asset result = new com.google.cloud.asset.v1p2beta1.Asset(this);
    +      com.google.cloud.asset.v1p2beta1.Asset result =
    +          new com.google.cloud.asset.v1p2beta1.Asset(this);
           int from_bitField0_ = bitField0_;
           result.name_ = name_;
           result.assetType_ = assetType_;
    @@ -618,38 +671,39 @@ public com.google.cloud.asset.v1p2beta1.Asset buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1p2beta1.Asset) {
    -        return mergeFrom((com.google.cloud.asset.v1p2beta1.Asset)other);
    +        return mergeFrom((com.google.cloud.asset.v1p2beta1.Asset) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -708,42 +762,44 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
    -            case 10: {
    -              name_ = input.readStringRequireUtf8();
    -
    -              break;
    -            } // case 10
    -            case 18: {
    -              assetType_ = input.readStringRequireUtf8();
    -
    -              break;
    -            } // case 18
    -            case 26: {
    -              input.readMessage(
    -                  getResourceFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -
    -              break;
    -            } // case 26
    -            case 34: {
    -              input.readMessage(
    -                  getIamPolicyFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -
    -              break;
    -            } // case 34
    -            case 50: {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              ensureAncestorsIsMutable();
    -              ancestors_.add(s);
    -              break;
    -            } // case 50
    -            default: {
    -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                done = true; // was an endgroup tag
    -              }
    -              break;
    -            } // default:
    +            case 10:
    +              {
    +                name_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                assetType_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                input.readMessage(getIamPolicyFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 34
    +            case 50:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAncestorsIsMutable();
    +                ancestors_.add(s);
    +                break;
    +              } // case 50
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -753,10 +809,13 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
    +
         private int bitField0_;
     
         private java.lang.Object name_ = "";
         /**
    +     *
    +     *
          * 
          * The full name of the asset. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -766,13 +825,13 @@ public Builder mergeFrom(
          * 
    * * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -781,6 +840,8 @@ public java.lang.String getName() { } } /** + * + * *
          * The full name of the asset. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -790,15 +851,14 @@ public java.lang.String getName() {
          * 
    * * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -806,6 +866,8 @@ public java.lang.String getName() { } } /** + * + * *
          * The full name of the asset. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -815,20 +877,22 @@ public java.lang.String getName() {
          * 
    * * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
          * The full name of the asset. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -838,15 +902,18 @@ public Builder setName(
          * 
    * * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
          * The full name of the asset. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -856,16 +923,16 @@ public Builder clearName() {
          * 
    * * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -873,18 +940,20 @@ public Builder setNameBytes( private java.lang.Object assetType_ = ""; /** + * + * *
          * Type of the asset. Example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; + * * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; @@ -893,20 +962,21 @@ public java.lang.String getAssetType() { } } /** + * + * *
          * Type of the asset. Example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; + * * @return The bytes for assetType. */ - public com.google.protobuf.ByteString - getAssetTypeBytes() { + public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetType_ = b; return b; } else { @@ -914,54 +984,61 @@ public java.lang.String getAssetType() { } } /** + * + * *
          * Type of the asset. Example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; + * * @param value The assetType to set. * @return This builder for chaining. */ - public Builder setAssetType( - java.lang.String value) { + public Builder setAssetType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + assetType_ = value; onChanged(); return this; } /** + * + * *
          * Type of the asset. Example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; + * * @return This builder for chaining. */ public Builder clearAssetType() { - + assetType_ = getDefaultInstance().getAssetType(); onChanged(); return this; } /** + * + * *
          * Type of the asset. Example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; + * * @param value The bytes for assetType to set. * @return This builder for chaining. */ - public Builder setAssetTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; onChanged(); return this; @@ -969,34 +1046,47 @@ public Builder setAssetTypeBytes( private com.google.cloud.asset.v1p2beta1.Resource resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Resource, com.google.cloud.asset.v1p2beta1.Resource.Builder, com.google.cloud.asset.v1p2beta1.ResourceOrBuilder> resourceBuilder_; + com.google.cloud.asset.v1p2beta1.Resource, + com.google.cloud.asset.v1p2beta1.Resource.Builder, + com.google.cloud.asset.v1p2beta1.ResourceOrBuilder> + resourceBuilder_; /** + * + * *
          * Representation of the resource.
          * 
    * * .google.cloud.asset.v1p2beta1.Resource resource = 3; + * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** + * + * *
          * Representation of the resource.
          * 
    * * .google.cloud.asset.v1p2beta1.Resource resource = 3; + * * @return The resource. */ public com.google.cloud.asset.v1p2beta1.Resource getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.cloud.asset.v1p2beta1.Resource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.asset.v1p2beta1.Resource.getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
          * Representation of the resource.
          * 
    @@ -1017,14 +1107,15 @@ public Builder setResource(com.google.cloud.asset.v1p2beta1.Resource value) { return this; } /** + * + * *
          * Representation of the resource.
          * 
    * * .google.cloud.asset.v1p2beta1.Resource resource = 3; */ - public Builder setResource( - com.google.cloud.asset.v1p2beta1.Resource.Builder builderForValue) { + public Builder setResource(com.google.cloud.asset.v1p2beta1.Resource.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -1035,6 +1126,8 @@ public Builder setResource( return this; } /** + * + * *
          * Representation of the resource.
          * 
    @@ -1045,7 +1138,9 @@ public Builder mergeResource(com.google.cloud.asset.v1p2beta1.Resource value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.asset.v1p2beta1.Resource.newBuilder(resource_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1p2beta1.Resource.newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); } else { resource_ = value; } @@ -1057,6 +1152,8 @@ public Builder mergeResource(com.google.cloud.asset.v1p2beta1.Resource value) { return this; } /** + * + * *
          * Representation of the resource.
          * 
    @@ -1075,6 +1172,8 @@ public Builder clearResource() { return this; } /** + * + * *
          * Representation of the resource.
          * 
    @@ -1082,11 +1181,13 @@ public Builder clearResource() { * .google.cloud.asset.v1p2beta1.Resource resource = 3; */ public com.google.cloud.asset.v1p2beta1.Resource.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** + * + * *
          * Representation of the resource.
          * 
    @@ -1097,11 +1198,14 @@ public com.google.cloud.asset.v1p2beta1.ResourceOrBuilder getResourceOrBuilder() if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null ? - com.google.cloud.asset.v1p2beta1.Resource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.asset.v1p2beta1.Resource.getDefaultInstance() + : resource_; } } /** + * + * *
          * Representation of the resource.
          * 
    @@ -1109,14 +1213,17 @@ public com.google.cloud.asset.v1p2beta1.ResourceOrBuilder getResourceOrBuilder() * .google.cloud.asset.v1p2beta1.Resource resource = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Resource, com.google.cloud.asset.v1p2beta1.Resource.Builder, com.google.cloud.asset.v1p2beta1.ResourceOrBuilder> + com.google.cloud.asset.v1p2beta1.Resource, + com.google.cloud.asset.v1p2beta1.Resource.Builder, + com.google.cloud.asset.v1p2beta1.ResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Resource, com.google.cloud.asset.v1p2beta1.Resource.Builder, com.google.cloud.asset.v1p2beta1.ResourceOrBuilder>( - getResource(), - getParentForChildren(), - isClean()); + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p2beta1.Resource, + com.google.cloud.asset.v1p2beta1.Resource.Builder, + com.google.cloud.asset.v1p2beta1.ResourceOrBuilder>( + getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; @@ -1124,26 +1231,35 @@ public com.google.cloud.asset.v1p2beta1.ResourceOrBuilder getResourceOrBuilder() private com.google.iam.v1.Policy iamPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> iamPolicyBuilder_; + com.google.iam.v1.Policy, + com.google.iam.v1.Policy.Builder, + com.google.iam.v1.PolicyOrBuilder> + iamPolicyBuilder_; /** + * + * *
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
          * 
    * * .google.iam.v1.Policy iam_policy = 4; + * * @return Whether the iamPolicy field is set. */ public boolean hasIamPolicy() { return iamPolicyBuilder_ != null || iamPolicy_ != null; } /** + * + * *
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
          * 
    * * .google.iam.v1.Policy iam_policy = 4; + * * @return The iamPolicy. */ public com.google.iam.v1.Policy getIamPolicy() { @@ -1154,6 +1270,8 @@ public com.google.iam.v1.Policy getIamPolicy() { } } /** + * + * *
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1175,6 +1293,8 @@ public Builder setIamPolicy(com.google.iam.v1.Policy value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1182,8 +1302,7 @@ public Builder setIamPolicy(com.google.iam.v1.Policy value) {
          *
          * .google.iam.v1.Policy iam_policy = 4;
          */
    -    public Builder setIamPolicy(
    -        com.google.iam.v1.Policy.Builder builderForValue) {
    +    public Builder setIamPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
           if (iamPolicyBuilder_ == null) {
             iamPolicy_ = builderForValue.build();
             onChanged();
    @@ -1194,6 +1313,8 @@ public Builder setIamPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1205,7 +1326,7 @@ public Builder mergeIamPolicy(com.google.iam.v1.Policy value) {
           if (iamPolicyBuilder_ == null) {
             if (iamPolicy_ != null) {
               iamPolicy_ =
    -            com.google.iam.v1.Policy.newBuilder(iamPolicy_).mergeFrom(value).buildPartial();
    +              com.google.iam.v1.Policy.newBuilder(iamPolicy_).mergeFrom(value).buildPartial();
             } else {
               iamPolicy_ = value;
             }
    @@ -1217,6 +1338,8 @@ public Builder mergeIamPolicy(com.google.iam.v1.Policy value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1236,6 +1359,8 @@ public Builder clearIamPolicy() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1244,11 +1369,13 @@ public Builder clearIamPolicy() {
          * .google.iam.v1.Policy iam_policy = 4;
          */
         public com.google.iam.v1.Policy.Builder getIamPolicyBuilder() {
    -      
    +
           onChanged();
           return getIamPolicyFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1260,11 +1387,12 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
           if (iamPolicyBuilder_ != null) {
             return iamPolicyBuilder_.getMessageOrBuilder();
           } else {
    -        return iamPolicy_ == null ?
    -            com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_;
    +        return iamPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_;
           }
         }
         /**
    +     *
    +     *
          * 
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1273,27 +1401,34 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
          * .google.iam.v1.Policy iam_policy = 4;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> 
    +            com.google.iam.v1.Policy,
    +            com.google.iam.v1.Policy.Builder,
    +            com.google.iam.v1.PolicyOrBuilder>
             getIamPolicyFieldBuilder() {
           if (iamPolicyBuilder_ == null) {
    -        iamPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>(
    -                getIamPolicy(),
    -                getParentForChildren(),
    -                isClean());
    +        iamPolicyBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.iam.v1.Policy,
    +                com.google.iam.v1.Policy.Builder,
    +                com.google.iam.v1.PolicyOrBuilder>(
    +                getIamPolicy(), getParentForChildren(), isClean());
             iamPolicy_ = null;
           }
           return iamPolicyBuilder_;
         }
     
    -    private com.google.protobuf.LazyStringList ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    +    private com.google.protobuf.LazyStringList ancestors_ =
    +        com.google.protobuf.LazyStringArrayList.EMPTY;
    +
         private void ensureAncestorsIsMutable() {
           if (!((bitField0_ & 0x00000001) != 0)) {
             ancestors_ = new com.google.protobuf.LazyStringArrayList(ancestors_);
             bitField0_ |= 0x00000001;
    -       }
    +      }
         }
         /**
    +     *
    +     *
          * 
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -1303,13 +1438,15 @@ private void ensureAncestorsIsMutable() {
          * 
    * * repeated string ancestors = 6; + * * @return A list containing the ancestors. */ - public com.google.protobuf.ProtocolStringList - getAncestorsList() { + public com.google.protobuf.ProtocolStringList getAncestorsList() { return ancestors_.getUnmodifiableView(); } /** + * + * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -1319,12 +1456,15 @@ private void ensureAncestorsIsMutable() {
          * 
    * * repeated string ancestors = 6; + * * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); } /** + * + * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -1334,6 +1474,7 @@ public int getAncestorsCount() {
          * 
    * * repeated string ancestors = 6; + * * @param index The index of the element to return. * @return The ancestors at the given index. */ @@ -1341,6 +1482,8 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** + * + * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -1350,14 +1493,16 @@ public java.lang.String getAncestors(int index) {
          * 
    * * repeated string ancestors = 6; + * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - public com.google.protobuf.ByteString - getAncestorsBytes(int index) { + public com.google.protobuf.ByteString getAncestorsBytes(int index) { return ancestors_.getByteString(index); } /** + * + * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -1367,21 +1512,23 @@ public java.lang.String getAncestors(int index) {
          * 
    * * repeated string ancestors = 6; + * * @param index The index to set the value at. * @param value The ancestors to set. * @return This builder for chaining. */ - public Builder setAncestors( - int index, java.lang.String value) { + public Builder setAncestors(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAncestorsIsMutable(); + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); ancestors_.set(index, value); onChanged(); return this; } /** + * + * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -1391,20 +1538,22 @@ public Builder setAncestors(
          * 
    * * repeated string ancestors = 6; + * * @param value The ancestors to add. * @return This builder for chaining. */ - public Builder addAncestors( - java.lang.String value) { + public Builder addAncestors(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAncestorsIsMutable(); + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); return this; } /** + * + * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -1414,18 +1563,19 @@ public Builder addAncestors(
          * 
    * * repeated string ancestors = 6; + * * @param values The ancestors to add. * @return This builder for chaining. */ - public Builder addAllAncestors( - java.lang.Iterable values) { + public Builder addAllAncestors(java.lang.Iterable values) { ensureAncestorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ancestors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ancestors_); onChanged(); return this; } /** + * + * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -1435,6 +1585,7 @@ public Builder addAllAncestors(
          * 
    * * repeated string ancestors = 6; + * * @return This builder for chaining. */ public Builder clearAncestors() { @@ -1444,6 +1595,8 @@ public Builder clearAncestors() { return this; } /** + * + * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -1453,23 +1606,23 @@ public Builder clearAncestors() {
          * 
    * * repeated string ancestors = 6; + * * @param value The bytes of the ancestors to add. * @return This builder for chaining. */ - public Builder addAncestorsBytes( - com.google.protobuf.ByteString value) { + public Builder addAncestorsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1479,12 +1632,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.Asset) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.Asset) private static final com.google.cloud.asset.v1p2beta1.Asset DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.Asset(); } @@ -1493,27 +1646,27 @@ public static com.google.cloud.asset.v1p2beta1.Asset getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Asset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Asset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1528,6 +1681,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.Asset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetOrBuilder.java similarity index 83% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetOrBuilder.java index c7aacd76368d..6396365adb9e 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/assets.proto package com.google.cloud.asset.v1p2beta1; -public interface AssetOrBuilder extends +public interface AssetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.Asset) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The full name of the asset. For example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -17,10 +35,13 @@ public interface AssetOrBuilder extends
        * 
    * * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
        * The full name of the asset. For example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -30,50 +51,63 @@ public interface AssetOrBuilder extends
        * 
    * * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
        * Type of the asset. Example: "compute.googleapis.com/Disk".
        * 
    * * string asset_type = 2; + * * @return The assetType. */ java.lang.String getAssetType(); /** + * + * *
        * Type of the asset. Example: "compute.googleapis.com/Disk".
        * 
    * * string asset_type = 2; + * * @return The bytes for assetType. */ - com.google.protobuf.ByteString - getAssetTypeBytes(); + com.google.protobuf.ByteString getAssetTypeBytes(); /** + * + * *
        * Representation of the resource.
        * 
    * * .google.cloud.asset.v1p2beta1.Resource resource = 3; + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
        * Representation of the resource.
        * 
    * * .google.cloud.asset.v1p2beta1.Resource resource = 3; + * * @return The resource. */ com.google.cloud.asset.v1p2beta1.Resource getResource(); /** + * + * *
        * Representation of the resource.
        * 
    @@ -83,26 +117,34 @@ public interface AssetOrBuilder extends com.google.cloud.asset.v1p2beta1.ResourceOrBuilder getResourceOrBuilder(); /** + * + * *
        * Representation of the actual Cloud IAM policy set on a cloud resource. For
        * each resource, there must be at most one Cloud IAM policy set on it.
        * 
    * * .google.iam.v1.Policy iam_policy = 4; + * * @return Whether the iamPolicy field is set. */ boolean hasIamPolicy(); /** + * + * *
        * Representation of the actual Cloud IAM policy set on a cloud resource. For
        * each resource, there must be at most one Cloud IAM policy set on it.
        * 
    * * .google.iam.v1.Policy iam_policy = 4; + * * @return The iamPolicy. */ com.google.iam.v1.Policy getIamPolicy(); /** + * + * *
        * Representation of the actual Cloud IAM policy set on a cloud resource. For
        * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -113,6 +155,8 @@ public interface AssetOrBuilder extends
       com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -122,11 +166,13 @@ public interface AssetOrBuilder extends
        * 
    * * repeated string ancestors = 6; + * * @return A list containing the ancestors. */ - java.util.List - getAncestorsList(); + java.util.List getAncestorsList(); /** + * + * *
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -136,10 +182,13 @@ public interface AssetOrBuilder extends
        * 
    * * repeated string ancestors = 6; + * * @return The count of ancestors. */ int getAncestorsCount(); /** + * + * *
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -149,11 +198,14 @@ public interface AssetOrBuilder extends
        * 
    * * repeated string ancestors = 6; + * * @param index The index of the element to return. * @return The ancestors at the given index. */ java.lang.String getAncestors(int index); /** + * + * *
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -163,9 +215,9 @@ public interface AssetOrBuilder extends
        * 
    * * repeated string ancestors = 6; + * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - com.google.protobuf.ByteString - getAncestorsBytes(int index); + com.google.protobuf.ByteString getAncestorsBytes(int index); } diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetProto.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetProto.java new file mode 100644 index 000000000000..c95beb2849aa --- /dev/null +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetProto.java @@ -0,0 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1p2beta1/assets.proto + +package com.google.cloud.asset.v1p2beta1; + +public final class AssetProto { + private AssetProto() {} + + 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_asset_v1p2beta1_TemporalAsset_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_TimeWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_Asset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_Resource_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/asset/v1p2beta1/assets.pr" + + "oto\022\034google.cloud.asset.v1p2beta1\032\032googl" + + "e/iam/v1/policy.proto\032\034google/protobuf/s" + + "truct.proto\032\037google/protobuf/timestamp.p" + + "roto\"\216\001\n\rTemporalAsset\0228\n\006window\030\001 \001(\0132(" + + ".google.cloud.asset.v1p2beta1.TimeWindow" + + "\022\017\n\007deleted\030\002 \001(\010\0222\n\005asset\030\003 \001(\0132#.googl" + + "e.cloud.asset.v1p2beta1.Asset\"j\n\nTimeWin" + + "dow\022.\n\nstart_time\030\001 \001(\0132\032.google.protobu" + + "f.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.google.p" + + "rotobuf.Timestamp\"\241\001\n\005Asset\022\014\n\004name\030\001 \001(" + + "\t\022\022\n\nasset_type\030\002 \001(\t\0228\n\010resource\030\003 \001(\0132" + + "&.google.cloud.asset.v1p2beta1.Resource\022" + + ")\n\niam_policy\030\004 \001(\0132\025.google.iam.v1.Poli" + + "cy\022\021\n\tancestors\030\006 \003(\t\"\240\001\n\010Resource\022\017\n\007ve" + + "rsion\030\001 \001(\t\022\036\n\026discovery_document_uri\030\002 " + + "\001(\t\022\026\n\016discovery_name\030\003 \001(\t\022\024\n\014resource_" + + "url\030\004 \001(\t\022\016\n\006parent\030\005 \001(\t\022%\n\004data\030\006 \001(\0132" + + "\027.google.protobuf.StructB\264\001\n com.google." + + "cloud.asset.v1p2beta1B\nAssetProtoP\001ZAgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/asset/v1p2beta1;asset\370\001\001\252\002\034Google.Cloud" + + ".Asset.v1p2beta1\312\002\034Google\\Cloud\\Asset\\V1" + + "p2beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_descriptor, + new java.lang.String[] { + "Window", "Deleted", "Asset", + }); + internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_asset_v1p2beta1_TimeWindow_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor, + new java.lang.String[] { + "StartTime", "EndTime", + }); + internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_asset_v1p2beta1_Asset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor, + new java.lang.String[] { + "Name", "AssetType", "Resource", "IamPolicy", "Ancestors", + }); + internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_asset_v1p2beta1_Resource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor, + new java.lang.String[] { + "Version", "DiscoveryDocumentUri", "DiscoveryName", "ResourceUrl", "Parent", "Data", + }); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceProto.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceProto.java new file mode 100644 index 000000000000..d02516431fbf --- /dev/null +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceProto.java @@ -0,0 +1,270 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1p2beta1/asset_service.proto + +package com.google.cloud.asset.v1p2beta1; + +public final class AssetServiceProto { + private AssetServiceProto() {} + + 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_asset_v1p2beta1_CreateFeedRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p2beta1_Feed_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/asset/v1p2beta1/asset_ser" + + "vice.proto\022\034google.cloud.asset.v1p2beta1" + + "\032\034google/api/annotations.proto\032\027google/a" + + "pi/client.proto\032\037google/api/field_behavi" + + "or.proto\032\031google/api/resource.proto\032)goo" + + "gle/cloud/asset/v1p2beta1/assets.proto\032\033" + + "google/protobuf/empty.proto\032 google/prot" + + "obuf/field_mask.proto\"u\n\021CreateFeedReque" + + "st\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\024\n\007feed_id\030\002 \001(\t" + + "B\003\340A\002\0225\n\004feed\030\003 \001(\0132\".google.cloud.asset" + + ".v1p2beta1.FeedB\003\340A\002\"F\n\016GetFeedRequest\0224" + + "\n\004name\030\001 \001(\tB&\340A\002\372A \n\036cloudasset.googlea" + + "pis.com/Feed\"\'\n\020ListFeedsRequest\022\023\n\006pare" + + "nt\030\001 \001(\tB\003\340A\002\"F\n\021ListFeedsResponse\0221\n\005fe" + + "eds\030\001 \003(\0132\".google.cloud.asset.v1p2beta1" + + ".Feed\"\200\001\n\021UpdateFeedRequest\0225\n\004feed\030\001 \001(" + + "\0132\".google.cloud.asset.v1p2beta1.FeedB\003\340" + + "A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobu" + + "f.FieldMaskB\003\340A\002\"I\n\021DeleteFeedRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n\036cloudasset.googleap" + + "is.com/Feed\"f\n\014OutputConfig\022G\n\017gcs_desti" + + "nation\030\001 \001(\0132,.google.cloud.asset.v1p2be" + + "ta1.GcsDestinationH\000B\r\n\013destination\"-\n\016G" + + "csDestination\022\r\n\003uri\030\001 \001(\tH\000B\014\n\nobject_u" + + "ri\"\"\n\021PubsubDestination\022\r\n\005topic\030\001 \001(\t\"p" + + "\n\020FeedOutputConfig\022M\n\022pubsub_destination" + + "\030\001 \001(\0132/.google.cloud.asset.v1p2beta1.Pu" + + "bsubDestinationH\000B\r\n\013destination\"\351\002\n\004Fee" + + "d\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\013asset_names\030\002 \003(" + + "\t\022\023\n\013asset_types\030\003 \003(\t\022?\n\014content_type\030\004" + + " \001(\0162).google.cloud.asset.v1p2beta1.Cont" + + "entType\022O\n\022feed_output_config\030\005 \001(\0132..go" + + "ogle.cloud.asset.v1p2beta1.FeedOutputCon" + + "figB\003\340A\002:\221\001\352A\215\001\n\036cloudasset.googleapis.c" + + "om/Feed\022\037projects/{project}/feeds/{feed}" + + "\022\035folders/{folder}/feeds/{feed}\022)organiz" + + "ations/{organization}/feeds/{feed} \001*I\n\013" + + "ContentType\022\034\n\030CONTENT_TYPE_UNSPECIFIED\020" + + "\000\022\014\n\010RESOURCE\020\001\022\016\n\nIAM_POLICY\020\0022\277\006\n\014Asse" + + "tService\022\224\001\n\nCreateFeed\022/.google.cloud.a" + + "sset.v1p2beta1.CreateFeedRequest\032\".googl" + + "e.cloud.asset.v1p2beta1.Feed\"1\202\323\344\223\002\"\"\035/v" + + "1p2beta1/{parent=*/*}/feeds:\001*\332A\006parent\022" + + "\211\001\n\007GetFeed\022,.google.cloud.asset.v1p2bet" + + "a1.GetFeedRequest\032\".google.cloud.asset.v" + + "1p2beta1.Feed\",\202\323\344\223\002\037\022\035/v1p2beta1/{name=" + + "*/*/feeds/*}\332A\004name\022\234\001\n\tListFeeds\022..goog" + + "le.cloud.asset.v1p2beta1.ListFeedsReques" + + "t\032/.google.cloud.asset.v1p2beta1.ListFee" + + "dsResponse\".\202\323\344\223\002\037\022\035/v1p2beta1/{parent=*" + + "/*}/feeds\332A\006parent\022\227\001\n\nUpdateFeed\022/.goog" + + "le.cloud.asset.v1p2beta1.UpdateFeedReque" + + "st\032\".google.cloud.asset.v1p2beta1.Feed\"4" + + "\202\323\344\223\002\'2\"/v1p2beta1/{feed.name=*/*/feeds/" + + "*}:\001*\332A\004feed\022\203\001\n\nDeleteFeed\022/.google.clo" + + "ud.asset.v1p2beta1.DeleteFeedRequest\032\026.g" + + "oogle.protobuf.Empty\",\202\323\344\223\002\037*\035/v1p2beta1" + + "/{name=*/*/feeds/*}\332A\004name\032M\312A\031cloudasse" + + "t.googleapis.com\322A.https://www.googleapi" + + "s.com/auth/cloud-platformB\270\001\n com.google" + + ".cloud.asset.v1p2beta1B\021AssetServiceProt" + + "oP\001ZAgoogle.golang.org/genproto/googleap" + + "is/cloud/asset/v1p2beta1;asset\252\002\034Google." + + "Cloud.Asset.V1p2Beta1\312\002\034Google\\Cloud\\Ass" + + "et\\V1p2beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.asset.v1p2beta1.AssetProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_descriptor, + new java.lang.String[] { + "Parent", "FeedId", "Feed", + }); + internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor, + new java.lang.String[] { + "Parent", + }); + internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor, + new java.lang.String[] { + "Feeds", + }); + internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor, + new java.lang.String[] { + "Feed", "UpdateMask", + }); + internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_asset_v1p2beta1_OutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor, + new java.lang.String[] { + "GcsDestination", "Destination", + }); + internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_asset_v1p2beta1_GcsDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor, + new java.lang.String[] { + "Uri", "ObjectUri", + }); + internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor, + new java.lang.String[] { + "Topic", + }); + internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor, + new java.lang.String[] { + "PubsubDestination", "Destination", + }); + internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_asset_v1p2beta1_Feed_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor, + new java.lang.String[] { + "Name", "AssetNames", "AssetTypes", "ContentType", "FeedOutputConfig", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + 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.asset.v1p2beta1.AssetProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ContentType.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ContentType.java similarity index 66% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ContentType.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ContentType.java index dffdb7a8ca46..6d7dda275e30 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ContentType.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ContentType.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; /** + * + * *
      * Asset content type.
      * 
    * * Protobuf enum {@code google.cloud.asset.v1p2beta1.ContentType} */ -public enum ContentType - implements com.google.protobuf.ProtocolMessageEnum { +public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unspecified content type.
        * 
    @@ -21,6 +39,8 @@ public enum ContentType */ CONTENT_TYPE_UNSPECIFIED(0), /** + * + * *
        * Resource metadata.
        * 
    @@ -29,6 +49,8 @@ public enum ContentType */ RESOURCE(1), /** + * + * *
        * The actual IAM policy set on a resource.
        * 
    @@ -40,6 +62,8 @@ public enum ContentType ; /** + * + * *
        * Unspecified content type.
        * 
    @@ -48,6 +72,8 @@ public enum ContentType */ public static final int CONTENT_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Resource metadata.
        * 
    @@ -56,6 +82,8 @@ public enum ContentType */ public static final int RESOURCE_VALUE = 1; /** + * + * *
        * The actual IAM policy set on a resource.
        * 
    @@ -64,7 +92,6 @@ public enum ContentType */ public static final int IAM_POLICY_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -89,49 +116,49 @@ public static ContentType valueOf(int value) { */ public static ContentType forNumber(int value) { switch (value) { - case 0: return CONTENT_TYPE_UNSPECIFIED; - case 1: return RESOURCE; - case 2: return IAM_POLICY; - default: return null; + case 0: + return CONTENT_TYPE_UNSPECIFIED; + case 1: + return RESOURCE; + case 2: + return IAM_POLICY; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ContentType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ContentType findValueByNumber(int number) { - return ContentType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ContentType findValueByNumber(int number) { + return ContentType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.asset.v1p2beta1.AssetServiceProto.getDescriptor().getEnumTypes().get(0); } private static final ContentType[] VALUES = values(); - public static ContentType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ContentType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -147,4 +174,3 @@ private ContentType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.asset.v1p2beta1.ContentType) } - diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequest.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequest.java similarity index 72% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequest.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequest.java index 9164c0afbde7..dbe32425d483 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequest.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; /** + * + * *
      * Create asset feed request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.CreateFeedRequest} */ -public final class CreateFeedRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateFeedRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.CreateFeedRequest) CreateFeedRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateFeedRequest.newBuilder() to construct. private CreateFeedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateFeedRequest() { parent_ = ""; feedId_ = ""; @@ -26,32 +44,35 @@ private CreateFeedRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateFeedRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.CreateFeedRequest.class, com.google.cloud.asset.v1p2beta1.CreateFeedRequest.Builder.class); + com.google.cloud.asset.v1p2beta1.CreateFeedRequest.class, + com.google.cloud.asset.v1p2beta1.CreateFeedRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
        * Required. The name of the project/folder/organization where this feed
        * should be created in. It can only be an organization number (such as
    @@ -61,6 +82,7 @@ protected java.lang.Object newInstance(
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -69,14 +91,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
        * Required. The name of the project/folder/organization where this feed
        * should be created in. It can only be an organization number (such as
    @@ -86,16 +109,15 @@ public java.lang.String getParent() {
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -106,12 +128,15 @@ public java.lang.String getParent() { public static final int FEED_ID_FIELD_NUMBER = 2; private volatile java.lang.Object feedId_; /** + * + * *
        * Required. This is the client-assigned asset feed identifier and it needs to
        * be unique under a specific parent project/folder/organization.
        * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The feedId. */ @java.lang.Override @@ -120,30 +145,30 @@ public java.lang.String getFeedId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); feedId_ = s; return s; } } /** + * + * *
        * Required. This is the client-assigned asset feed identifier and it needs to
        * be unique under a specific parent project/folder/organization.
        * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for feedId. */ @java.lang.Override - public com.google.protobuf.ByteString - getFeedIdBytes() { + public com.google.protobuf.ByteString getFeedIdBytes() { java.lang.Object ref = feedId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); feedId_ = b; return b; } else { @@ -154,6 +179,8 @@ public java.lang.String getFeedId() { public static final int FEED_FIELD_NUMBER = 3; private com.google.cloud.asset.v1p2beta1.Feed feed_; /** + * + * *
        * Required. The feed details. The field `name` must be empty and it will be generated
        * in the format of:
    @@ -162,7 +189,9 @@ public java.lang.String getFeedId() {
        * organizations/organization_number/feeds/feed_id
        * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the feed field is set. */ @java.lang.Override @@ -170,6 +199,8 @@ public boolean hasFeed() { return feed_ != null; } /** + * + * *
        * Required. The feed details. The field `name` must be empty and it will be generated
        * in the format of:
    @@ -178,7 +209,9 @@ public boolean hasFeed() {
        * organizations/organization_number/feeds/feed_id
        * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The feed. */ @java.lang.Override @@ -186,6 +219,8 @@ public com.google.cloud.asset.v1p2beta1.Feed getFeed() { return feed_ == null ? com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance() : feed_; } /** + * + * *
        * Required. The feed details. The field `name` must be empty and it will be generated
        * in the format of:
    @@ -194,7 +229,8 @@ public com.google.cloud.asset.v1p2beta1.Feed getFeed() {
        * organizations/organization_number/feeds/feed_id
        * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedOrBuilder() { @@ -202,6 +238,7 @@ public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,8 +250,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -240,8 +276,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, feedId_); } if (feed_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getFeed()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFeed()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -251,21 +286,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.CreateFeedRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1p2beta1.CreateFeedRequest other = (com.google.cloud.asset.v1p2beta1.CreateFeedRequest) obj; + com.google.cloud.asset.v1p2beta1.CreateFeedRequest other = + (com.google.cloud.asset.v1p2beta1.CreateFeedRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getFeedId() - .equals(other.getFeedId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getFeedId().equals(other.getFeedId())) return false; if (hasFeed() != other.hasFeed()) return false; if (hasFeed()) { - if (!getFeed() - .equals(other.getFeed())) return false; + if (!getFeed().equals(other.getFeed())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -292,129 +325,135 @@ public int hashCode() { } public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest 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.asset.v1p2beta1.CreateFeedRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.CreateFeedRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Create asset feed request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.CreateFeedRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.CreateFeedRequest) com.google.cloud.asset.v1p2beta1.CreateFeedRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.CreateFeedRequest.class, com.google.cloud.asset.v1p2beta1.CreateFeedRequest.Builder.class); + com.google.cloud.asset.v1p2beta1.CreateFeedRequest.class, + com.google.cloud.asset.v1p2beta1.CreateFeedRequest.Builder.class); } // Construct using com.google.cloud.asset.v1p2beta1.CreateFeedRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -432,9 +471,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_descriptor; } @java.lang.Override @@ -453,7 +492,8 @@ public com.google.cloud.asset.v1p2beta1.CreateFeedRequest build() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.CreateFeedRequest buildPartial() { - com.google.cloud.asset.v1p2beta1.CreateFeedRequest result = new com.google.cloud.asset.v1p2beta1.CreateFeedRequest(this); + com.google.cloud.asset.v1p2beta1.CreateFeedRequest result = + new com.google.cloud.asset.v1p2beta1.CreateFeedRequest(this); result.parent_ = parent_; result.feedId_ = feedId_; if (feedBuilder_ == null) { @@ -469,38 +509,39 @@ public com.google.cloud.asset.v1p2beta1.CreateFeedRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p2beta1.CreateFeedRequest) { - return mergeFrom((com.google.cloud.asset.v1p2beta1.CreateFeedRequest)other); + return mergeFrom((com.google.cloud.asset.v1p2beta1.CreateFeedRequest) other); } else { super.mergeFrom(other); return this; @@ -508,7 +549,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.CreateFeedRequest other) { - if (other == com.google.cloud.asset.v1p2beta1.CreateFeedRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1p2beta1.CreateFeedRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -546,29 +588,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - feedId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + feedId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - input.readMessage( - getFeedFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getFeedFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -581,6 +625,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
          * Required. The name of the project/folder/organization where this feed
          * should be created in. It can only be an organization number (such as
    @@ -590,13 +636,13 @@ public Builder mergeFrom(
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -605,6 +651,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. The name of the project/folder/organization where this feed
          * should be created in. It can only be an organization number (such as
    @@ -614,15 +662,14 @@ public java.lang.String getParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -630,6 +677,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. The name of the project/folder/organization where this feed
          * should be created in. It can only be an organization number (such as
    @@ -639,20 +688,22 @@ public java.lang.String getParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
          * Required. The name of the project/folder/organization where this feed
          * should be created in. It can only be an organization number (such as
    @@ -662,15 +713,18 @@ public Builder setParent(
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
          * Required. The name of the project/folder/organization where this feed
          * should be created in. It can only be an organization number (such as
    @@ -680,16 +734,16 @@ public Builder clearParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -697,19 +751,21 @@ public Builder setParentBytes( private java.lang.Object feedId_ = ""; /** + * + * *
          * Required. This is the client-assigned asset feed identifier and it needs to
          * be unique under a specific parent project/folder/organization.
          * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The feedId. */ public java.lang.String getFeedId() { java.lang.Object ref = feedId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); feedId_ = s; return s; @@ -718,21 +774,22 @@ public java.lang.String getFeedId() { } } /** + * + * *
          * Required. This is the client-assigned asset feed identifier and it needs to
          * be unique under a specific parent project/folder/organization.
          * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for feedId. */ - public com.google.protobuf.ByteString - getFeedIdBytes() { + public com.google.protobuf.ByteString getFeedIdBytes() { java.lang.Object ref = feedId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); feedId_ = b; return b; } else { @@ -740,57 +797,64 @@ public java.lang.String getFeedId() { } } /** + * + * *
          * Required. This is the client-assigned asset feed identifier and it needs to
          * be unique under a specific parent project/folder/organization.
          * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The feedId to set. * @return This builder for chaining. */ - public Builder setFeedId( - java.lang.String value) { + public Builder setFeedId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + feedId_ = value; onChanged(); return this; } /** + * + * *
          * Required. This is the client-assigned asset feed identifier and it needs to
          * be unique under a specific parent project/folder/organization.
          * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFeedId() { - + feedId_ = getDefaultInstance().getFeedId(); onChanged(); return this; } /** + * + * *
          * Required. This is the client-assigned asset feed identifier and it needs to
          * be unique under a specific parent project/folder/organization.
          * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for feedId to set. * @return This builder for chaining. */ - public Builder setFeedIdBytes( - com.google.protobuf.ByteString value) { + public Builder setFeedIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + feedId_ = value; onChanged(); return this; @@ -798,8 +862,13 @@ public Builder setFeedIdBytes( private com.google.cloud.asset.v1p2beta1.Feed feed_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Feed, com.google.cloud.asset.v1p2beta1.Feed.Builder, com.google.cloud.asset.v1p2beta1.FeedOrBuilder> feedBuilder_; + com.google.cloud.asset.v1p2beta1.Feed, + com.google.cloud.asset.v1p2beta1.Feed.Builder, + com.google.cloud.asset.v1p2beta1.FeedOrBuilder> + feedBuilder_; /** + * + * *
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -808,13 +877,17 @@ public Builder setFeedIdBytes(
          * organizations/organization_number/feeds/feed_id
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the feed field is set. */ public boolean hasFeed() { return feedBuilder_ != null || feed_ != null; } /** + * + * *
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -823,7 +896,9 @@ public boolean hasFeed() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The feed. */ public com.google.cloud.asset.v1p2beta1.Feed getFeed() { @@ -834,6 +909,8 @@ public com.google.cloud.asset.v1p2beta1.Feed getFeed() { } } /** + * + * *
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -842,7 +919,8 @@ public com.google.cloud.asset.v1p2beta1.Feed getFeed() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFeed(com.google.cloud.asset.v1p2beta1.Feed value) { if (feedBuilder_ == null) { @@ -858,6 +936,8 @@ public Builder setFeed(com.google.cloud.asset.v1p2beta1.Feed value) { return this; } /** + * + * *
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -866,10 +946,10 @@ public Builder setFeed(com.google.cloud.asset.v1p2beta1.Feed value) {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setFeed( - com.google.cloud.asset.v1p2beta1.Feed.Builder builderForValue) { + public Builder setFeed(com.google.cloud.asset.v1p2beta1.Feed.Builder builderForValue) { if (feedBuilder_ == null) { feed_ = builderForValue.build(); onChanged(); @@ -880,6 +960,8 @@ public Builder setFeed( return this; } /** + * + * *
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -888,13 +970,16 @@ public Builder setFeed(
          * organizations/organization_number/feeds/feed_id
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFeed(com.google.cloud.asset.v1p2beta1.Feed value) { if (feedBuilder_ == null) { if (feed_ != null) { feed_ = - com.google.cloud.asset.v1p2beta1.Feed.newBuilder(feed_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1p2beta1.Feed.newBuilder(feed_) + .mergeFrom(value) + .buildPartial(); } else { feed_ = value; } @@ -906,6 +991,8 @@ public Builder mergeFeed(com.google.cloud.asset.v1p2beta1.Feed value) { return this; } /** + * + * *
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -914,7 +1001,8 @@ public Builder mergeFeed(com.google.cloud.asset.v1p2beta1.Feed value) {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFeed() { if (feedBuilder_ == null) { @@ -928,6 +1016,8 @@ public Builder clearFeed() { return this; } /** + * + * *
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -936,14 +1026,17 @@ public Builder clearFeed() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.asset.v1p2beta1.Feed.Builder getFeedBuilder() { - + onChanged(); return getFeedFieldBuilder().getBuilder(); } /** + * + * *
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -952,17 +1045,19 @@ public com.google.cloud.asset.v1p2beta1.Feed.Builder getFeedBuilder() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedOrBuilder() { if (feedBuilder_ != null) { return feedBuilder_.getMessageOrBuilder(); } else { - return feed_ == null ? - com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance() : feed_; + return feed_ == null ? com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance() : feed_; } } /** + * + * *
          * Required. The feed details. The field `name` must be empty and it will be generated
          * in the format of:
    @@ -971,24 +1066,28 @@ public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedOrBuilder() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Feed, com.google.cloud.asset.v1p2beta1.Feed.Builder, com.google.cloud.asset.v1p2beta1.FeedOrBuilder> + com.google.cloud.asset.v1p2beta1.Feed, + com.google.cloud.asset.v1p2beta1.Feed.Builder, + com.google.cloud.asset.v1p2beta1.FeedOrBuilder> getFeedFieldBuilder() { if (feedBuilder_ == null) { - feedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Feed, com.google.cloud.asset.v1p2beta1.Feed.Builder, com.google.cloud.asset.v1p2beta1.FeedOrBuilder>( - getFeed(), - getParentForChildren(), - isClean()); + feedBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p2beta1.Feed, + com.google.cloud.asset.v1p2beta1.Feed.Builder, + com.google.cloud.asset.v1p2beta1.FeedOrBuilder>( + getFeed(), getParentForChildren(), isClean()); feed_ = null; } return feedBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -998,12 +1097,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.CreateFeedRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.CreateFeedRequest) private static final com.google.cloud.asset.v1p2beta1.CreateFeedRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.CreateFeedRequest(); } @@ -1012,27 +1111,27 @@ public static com.google.cloud.asset.v1p2beta1.CreateFeedRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFeedRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFeedRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1047,6 +1146,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.CreateFeedRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequestOrBuilder.java similarity index 76% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequestOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequestOrBuilder.java index c8fc925433a5..559d9f10b9e0 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/CreateFeedRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; -public interface CreateFeedRequestOrBuilder extends +public interface CreateFeedRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.CreateFeedRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The name of the project/folder/organization where this feed
        * should be created in. It can only be an organization number (such as
    @@ -17,10 +35,13 @@ public interface CreateFeedRequestOrBuilder extends
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
        * Required. The name of the project/folder/organization where this feed
        * should be created in. It can only be an organization number (such as
    @@ -30,34 +51,41 @@ public interface CreateFeedRequestOrBuilder extends
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
        * Required. This is the client-assigned asset feed identifier and it needs to
        * be unique under a specific parent project/folder/organization.
        * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The feedId. */ java.lang.String getFeedId(); /** + * + * *
        * Required. This is the client-assigned asset feed identifier and it needs to
        * be unique under a specific parent project/folder/organization.
        * 
    * * string feed_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for feedId. */ - com.google.protobuf.ByteString - getFeedIdBytes(); + com.google.protobuf.ByteString getFeedIdBytes(); /** + * + * *
        * Required. The feed details. The field `name` must be empty and it will be generated
        * in the format of:
    @@ -66,11 +94,15 @@ public interface CreateFeedRequestOrBuilder extends
        * organizations/organization_number/feeds/feed_id
        * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the feed field is set. */ boolean hasFeed(); /** + * + * *
        * Required. The feed details. The field `name` must be empty and it will be generated
        * in the format of:
    @@ -79,11 +111,15 @@ public interface CreateFeedRequestOrBuilder extends
        * organizations/organization_number/feeds/feed_id
        * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The feed. */ com.google.cloud.asset.v1p2beta1.Feed getFeed(); /** + * + * *
        * Required. The feed details. The field `name` must be empty and it will be generated
        * in the format of:
    @@ -92,7 +128,8 @@ public interface CreateFeedRequestOrBuilder extends
        * organizations/organization_number/feeds/feed_id
        * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedOrBuilder(); } diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequest.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequest.java similarity index 62% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequest.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequest.java index 56d31b6aca26..6fedeb0980a2 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequest.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequest.java @@ -1,52 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; -/** - * Protobuf type {@code google.cloud.asset.v1p2beta1.DeleteFeedRequest} - */ -public final class DeleteFeedRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.asset.v1p2beta1.DeleteFeedRequest} */ +public final class DeleteFeedRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.DeleteFeedRequest) DeleteFeedRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteFeedRequest.newBuilder() to construct. private DeleteFeedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteFeedRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteFeedRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.class, com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.Builder.class); + com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.class, + com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
        * Required. The name of the feed and it must be in the format of:
        * projects/project_number/feeds/feed_id
    @@ -54,7 +71,10 @@ protected java.lang.Object newInstance(
        * organizations/organization_number/feeds/feed_id
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -63,14 +83,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
        * Required. The name of the feed and it must be in the format of:
        * projects/project_number/feeds/feed_id
    @@ -78,17 +99,18 @@ public java.lang.String getName() {
        * organizations/organization_number/feeds/feed_id
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -97,6 +119,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +131,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -133,15 +155,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.DeleteFeedRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1p2beta1.DeleteFeedRequest other = (com.google.cloud.asset.v1p2beta1.DeleteFeedRequest) obj; + com.google.cloud.asset.v1p2beta1.DeleteFeedRequest other = + (com.google.cloud.asset.v1p2beta1.DeleteFeedRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,125 +183,127 @@ public int hashCode() { } public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest 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.asset.v1p2beta1.DeleteFeedRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.DeleteFeedRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.asset.v1p2beta1.DeleteFeedRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.asset.v1p2beta1.DeleteFeedRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.DeleteFeedRequest) com.google.cloud.asset.v1p2beta1.DeleteFeedRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.class, com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.Builder.class); + com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.class, + com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.Builder.class); } // Construct using com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,9 +313,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor; } @java.lang.Override @@ -310,7 +334,8 @@ public com.google.cloud.asset.v1p2beta1.DeleteFeedRequest build() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.DeleteFeedRequest buildPartial() { - com.google.cloud.asset.v1p2beta1.DeleteFeedRequest result = new com.google.cloud.asset.v1p2beta1.DeleteFeedRequest(this); + com.google.cloud.asset.v1p2beta1.DeleteFeedRequest result = + new com.google.cloud.asset.v1p2beta1.DeleteFeedRequest(this); result.name_ = name_; onBuilt(); return result; @@ -320,38 +345,39 @@ public com.google.cloud.asset.v1p2beta1.DeleteFeedRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p2beta1.DeleteFeedRequest) { - return mergeFrom((com.google.cloud.asset.v1p2beta1.DeleteFeedRequest)other); + return mergeFrom((com.google.cloud.asset.v1p2beta1.DeleteFeedRequest) other); } else { super.mergeFrom(other); return this; @@ -359,7 +385,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.DeleteFeedRequest other) { - if (other == com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -390,17 +417,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -413,6 +442,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
          * Required. The name of the feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -420,14 +451,16 @@ public Builder mergeFrom(
          * organizations/organization_number/feeds/feed_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -436,6 +469,8 @@ public java.lang.String getName() { } } /** + * + * *
          * Required. The name of the feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -443,16 +478,17 @@ public java.lang.String getName() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -460,6 +496,8 @@ public java.lang.String getName() { } } /** + * + * *
          * Required. The name of the feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -467,21 +505,25 @@ public java.lang.String getName() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
          * Required. The name of the feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -489,16 +531,21 @@ public Builder setName(
          * organizations/organization_number/feeds/feed_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
          * Required. The name of the feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -506,24 +553,26 @@ public Builder clearName() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -533,12 +582,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.DeleteFeedRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.DeleteFeedRequest) private static final com.google.cloud.asset.v1p2beta1.DeleteFeedRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.DeleteFeedRequest(); } @@ -547,27 +596,27 @@ public static com.google.cloud.asset.v1p2beta1.DeleteFeedRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteFeedRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFeedRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -582,6 +631,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.DeleteFeedRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequestOrBuilder.java new file mode 100644 index 000000000000..ee25e690ff20 --- /dev/null +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1p2beta1/asset_service.proto + +package com.google.cloud.asset.v1p2beta1; + +public interface DeleteFeedRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.DeleteFeedRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the feed and it must be in the format of:
    +   * projects/project_number/feeds/feed_id
    +   * folders/folder_number/feeds/feed_id
    +   * organizations/organization_number/feeds/feed_id
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. The name of the feed and it must be in the format of:
    +   * projects/project_number/feeds/feed_id
    +   * folders/folder_number/feeds/feed_id
    +   * organizations/organization_number/feeds/feed_id
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Feed.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Feed.java similarity index 76% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Feed.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Feed.java index 0a792fb8c43f..dc4c7d01aa2f 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Feed.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Feed.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; /** + * + * *
      * An asset feed used to export asset updates to a destinations.
      * An asset feed filter controls what updates are exported.
    @@ -14,15 +31,16 @@
      *
      * Protobuf type {@code google.cloud.asset.v1p2beta1.Feed}
      */
    -public final class Feed extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class Feed extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.Feed)
         FeedOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use Feed.newBuilder() to construct.
       private Feed(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private Feed() {
         name_ = "";
         assetNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    @@ -32,32 +50,35 @@ private Feed() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(
    -      UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new Feed();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.cloud.asset.v1p2beta1.AssetServiceProto
    +        .internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_Feed_fieldAccessorTable
    +    return com.google.cloud.asset.v1p2beta1.AssetServiceProto
    +        .internal_static_google_cloud_asset_v1p2beta1_Feed_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1p2beta1.Feed.class, com.google.cloud.asset.v1p2beta1.Feed.Builder.class);
    +            com.google.cloud.asset.v1p2beta1.Feed.class,
    +            com.google.cloud.asset.v1p2beta1.Feed.Builder.class);
       }
     
       public static final int NAME_FIELD_NUMBER = 1;
       private volatile java.lang.Object name_;
       /**
    +   *
    +   *
        * 
        * Required. The format will be
        * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -68,6 +89,7 @@ protected java.lang.Object newInstance(
        * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -76,14 +98,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
        * Required. The format will be
        * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -94,16 +117,15 @@ public java.lang.String getName() {
        * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -114,6 +136,8 @@ public java.lang.String getName() { public static final int ASSET_NAMES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList assetNames_; /** + * + * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -126,13 +150,15 @@ public java.lang.String getName() {
        * 
    * * repeated string asset_names = 2; + * * @return A list containing the assetNames. */ - public com.google.protobuf.ProtocolStringList - getAssetNamesList() { + public com.google.protobuf.ProtocolStringList getAssetNamesList() { return assetNames_; } /** + * + * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -145,12 +171,15 @@ public java.lang.String getName() {
        * 
    * * repeated string asset_names = 2; + * * @return The count of assetNames. */ public int getAssetNamesCount() { return assetNames_.size(); } /** + * + * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -163,6 +192,7 @@ public int getAssetNamesCount() {
        * 
    * * repeated string asset_names = 2; + * * @param index The index of the element to return. * @return The assetNames at the given index. */ @@ -170,6 +200,8 @@ public java.lang.String getAssetNames(int index) { return assetNames_.get(index); } /** + * + * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -182,17 +214,19 @@ public java.lang.String getAssetNames(int index) {
        * 
    * * repeated string asset_names = 2; + * * @param index The index of the value to return. * @return The bytes of the assetNames at the given index. */ - public com.google.protobuf.ByteString - getAssetNamesBytes(int index) { + public com.google.protobuf.ByteString getAssetNamesBytes(int index) { return assetNames_.getByteString(index); } public static final int ASSET_TYPES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList assetTypes_; /** + * + * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -204,13 +238,15 @@ public java.lang.String getAssetNames(int index) {
        * 
    * * repeated string asset_types = 3; + * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList - getAssetTypesList() { + public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_; } /** + * + * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -222,12 +258,15 @@ public java.lang.String getAssetNames(int index) {
        * 
    * * repeated string asset_types = 3; + * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** + * + * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -239,6 +278,7 @@ public int getAssetTypesCount() {
        * 
    * * repeated string asset_types = 3; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -246,6 +286,8 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** + * + * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -257,52 +299,66 @@ public java.lang.String getAssetTypes(int index) {
        * 
    * * repeated string asset_types = 3; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString - getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } public static final int CONTENT_TYPE_FIELD_NUMBER = 4; private int contentType_; /** + * + * *
        * Asset content type. If not specified, no content but the asset name and
        * type will be returned.
        * 
    * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override public int getContentTypeValue() { + @java.lang.Override + public int getContentTypeValue() { return contentType_; } /** + * + * *
        * Asset content type. If not specified, no content but the asset name and
        * type will be returned.
        * 
    * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * * @return The contentType. */ - @java.lang.Override public com.google.cloud.asset.v1p2beta1.ContentType getContentType() { + @java.lang.Override + public com.google.cloud.asset.v1p2beta1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1p2beta1.ContentType result = com.google.cloud.asset.v1p2beta1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1p2beta1.ContentType result = + com.google.cloud.asset.v1p2beta1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1p2beta1.ContentType.UNRECOGNIZED : result; } public static final int FEED_OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.asset.v1p2beta1.FeedOutputConfig feedOutputConfig_; /** + * + * *
        * Required. Feed output configuration defining where the asset updates are
        * published to.
        * 
    * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the feedOutputConfig field is set. */ @java.lang.Override @@ -310,25 +366,36 @@ public boolean hasFeedOutputConfig() { return feedOutputConfig_ != null; } /** + * + * *
        * Required. Feed output configuration defining where the asset updates are
        * published to.
        * 
    * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The feedOutputConfig. */ @java.lang.Override public com.google.cloud.asset.v1p2beta1.FeedOutputConfig getFeedOutputConfig() { - return feedOutputConfig_ == null ? com.google.cloud.asset.v1p2beta1.FeedOutputConfig.getDefaultInstance() : feedOutputConfig_; + return feedOutputConfig_ == null + ? com.google.cloud.asset.v1p2beta1.FeedOutputConfig.getDefaultInstance() + : feedOutputConfig_; } /** + * + * *
        * Required. Feed output configuration defining where the asset updates are
        * published to.
        * 
    * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.asset.v1p2beta1.FeedOutputConfigOrBuilder getFeedOutputConfigOrBuilder() { @@ -336,6 +403,7 @@ public com.google.cloud.asset.v1p2beta1.FeedOutputConfigOrBuilder getFeedOutputC } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -347,8 +415,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -358,7 +425,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < assetTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, assetTypes_.getRaw(i)); } - if (contentType_ != com.google.cloud.asset.v1p2beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + if (contentType_ + != com.google.cloud.asset.v1p2beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, contentType_); } if (feedOutputConfig_ != null) { @@ -392,13 +460,12 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAssetTypesList().size(); } - if (contentType_ != com.google.cloud.asset.v1p2beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, contentType_); + if (contentType_ + != com.google.cloud.asset.v1p2beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, contentType_); } if (feedOutputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getFeedOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFeedOutputConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -408,24 +475,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.Feed)) { return super.equals(obj); } com.google.cloud.asset.v1p2beta1.Feed other = (com.google.cloud.asset.v1p2beta1.Feed) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getAssetNamesList() - .equals(other.getAssetNamesList())) return false; - if (!getAssetTypesList() - .equals(other.getAssetTypesList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getAssetNamesList().equals(other.getAssetNamesList())) return false; + if (!getAssetTypesList().equals(other.getAssetTypesList())) return false; if (contentType_ != other.contentType_) return false; if (hasFeedOutputConfig() != other.hasFeedOutputConfig()) return false; if (hasFeedOutputConfig()) { - if (!getFeedOutputConfig() - .equals(other.getFeedOutputConfig())) return false; + if (!getFeedOutputConfig().equals(other.getFeedOutputConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -459,97 +522,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1p2beta1.Feed parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p2beta1.Feed parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.Feed parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.Feed parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.asset.v1p2beta1.Feed parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.Feed 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.asset.v1p2beta1.Feed parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.Feed parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.Feed parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.Feed parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.Feed parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.Feed parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.Feed parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.Feed parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.Feed prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * An asset feed used to export asset updates to a destinations.
        * An asset feed filter controls what updates are exported.
    @@ -560,33 +629,32 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.asset.v1p2beta1.Feed}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.Feed)
           com.google.cloud.asset.v1p2beta1.FeedOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1p2beta1.AssetServiceProto
    +          .internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_Feed_fieldAccessorTable
    +      return com.google.cloud.asset.v1p2beta1.AssetServiceProto
    +          .internal_static_google_cloud_asset_v1p2beta1_Feed_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1p2beta1.Feed.class, com.google.cloud.asset.v1p2beta1.Feed.Builder.class);
    +              com.google.cloud.asset.v1p2beta1.Feed.class,
    +              com.google.cloud.asset.v1p2beta1.Feed.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1p2beta1.Feed.newBuilder()
    -    private Builder() {
    +    private Builder() {}
     
    -    }
    -
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -608,9 +676,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.cloud.asset.v1p2beta1.AssetServiceProto
    +          .internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor;
         }
     
         @java.lang.Override
    @@ -629,7 +697,8 @@ public com.google.cloud.asset.v1p2beta1.Feed build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1p2beta1.Feed buildPartial() {
    -      com.google.cloud.asset.v1p2beta1.Feed result = new com.google.cloud.asset.v1p2beta1.Feed(this);
    +      com.google.cloud.asset.v1p2beta1.Feed result =
    +          new com.google.cloud.asset.v1p2beta1.Feed(this);
           int from_bitField0_ = bitField0_;
           result.name_ = name_;
           if (((bitField0_ & 0x00000001) != 0)) {
    @@ -656,38 +725,39 @@ public com.google.cloud.asset.v1p2beta1.Feed buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1p2beta1.Feed) {
    -        return mergeFrom((com.google.cloud.asset.v1p2beta1.Feed)other);
    +        return mergeFrom((com.google.cloud.asset.v1p2beta1.Feed) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -752,41 +822,46 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
    -            case 10: {
    -              name_ = input.readStringRequireUtf8();
    +            case 10:
    +              {
    +                name_ = input.readStringRequireUtf8();
     
    -              break;
    -            } // case 10
    -            case 18: {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              ensureAssetNamesIsMutable();
    -              assetNames_.add(s);
    -              break;
    -            } // case 18
    -            case 26: {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              ensureAssetTypesIsMutable();
    -              assetTypes_.add(s);
    -              break;
    -            } // case 26
    -            case 32: {
    -              contentType_ = input.readEnum();
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAssetNamesIsMutable();
    +                assetNames_.add(s);
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAssetTypesIsMutable();
    +                assetTypes_.add(s);
    +                break;
    +              } // case 26
    +            case 32:
    +              {
    +                contentType_ = input.readEnum();
     
    -              break;
    -            } // case 32
    -            case 42: {
    -              input.readMessage(
    -                  getFeedOutputConfigFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    +                break;
    +              } // case 32
    +            case 42:
    +              {
    +                input.readMessage(
    +                    getFeedOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
     
    -              break;
    -            } // case 42
    -            default: {
    -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                done = true; // was an endgroup tag
    -              }
    -              break;
    -            } // default:
    +                break;
    +              } // case 42
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -796,10 +871,13 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
    +
         private int bitField0_;
     
         private java.lang.Object name_ = "";
         /**
    +     *
    +     *
          * 
          * Required. The format will be
          * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -810,13 +888,13 @@ public Builder mergeFrom(
          * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -825,6 +903,8 @@ public java.lang.String getName() { } } /** + * + * *
          * Required. The format will be
          * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -835,15 +915,14 @@ public java.lang.String getName() {
          * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -851,6 +930,8 @@ public java.lang.String getName() { } } /** + * + * *
          * Required. The format will be
          * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -861,20 +942,22 @@ public java.lang.String getName() {
          * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
          * Required. The format will be
          * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -885,15 +968,18 @@ public Builder setName(
          * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
          * Required. The format will be
          * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -904,29 +990,33 @@ public Builder clearName() {
          * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList assetNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList assetNames_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAssetNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assetNames_ = new com.google.protobuf.LazyStringArrayList(assetNames_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -939,13 +1029,15 @@ private void ensureAssetNamesIsMutable() {
          * 
    * * repeated string asset_names = 2; + * * @return A list containing the assetNames. */ - public com.google.protobuf.ProtocolStringList - getAssetNamesList() { + public com.google.protobuf.ProtocolStringList getAssetNamesList() { return assetNames_.getUnmodifiableView(); } /** + * + * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -958,12 +1050,15 @@ private void ensureAssetNamesIsMutable() {
          * 
    * * repeated string asset_names = 2; + * * @return The count of assetNames. */ public int getAssetNamesCount() { return assetNames_.size(); } /** + * + * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -976,6 +1071,7 @@ public int getAssetNamesCount() {
          * 
    * * repeated string asset_names = 2; + * * @param index The index of the element to return. * @return The assetNames at the given index. */ @@ -983,6 +1079,8 @@ public java.lang.String getAssetNames(int index) { return assetNames_.get(index); } /** + * + * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -995,14 +1093,16 @@ public java.lang.String getAssetNames(int index) {
          * 
    * * repeated string asset_names = 2; + * * @param index The index of the value to return. * @return The bytes of the assetNames at the given index. */ - public com.google.protobuf.ByteString - getAssetNamesBytes(int index) { + public com.google.protobuf.ByteString getAssetNamesBytes(int index) { return assetNames_.getByteString(index); } /** + * + * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1015,21 +1115,23 @@ public java.lang.String getAssetNames(int index) {
          * 
    * * repeated string asset_names = 2; + * * @param index The index to set the value at. * @param value The assetNames to set. * @return This builder for chaining. */ - public Builder setAssetNames( - int index, java.lang.String value) { + public Builder setAssetNames(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetNamesIsMutable(); + throw new NullPointerException(); + } + ensureAssetNamesIsMutable(); assetNames_.set(index, value); onChanged(); return this; } /** + * + * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1042,20 +1144,22 @@ public Builder setAssetNames(
          * 
    * * repeated string asset_names = 2; + * * @param value The assetNames to add. * @return This builder for chaining. */ - public Builder addAssetNames( - java.lang.String value) { + public Builder addAssetNames(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetNamesIsMutable(); + throw new NullPointerException(); + } + ensureAssetNamesIsMutable(); assetNames_.add(value); onChanged(); return this; } /** + * + * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1068,18 +1172,19 @@ public Builder addAssetNames(
          * 
    * * repeated string asset_names = 2; + * * @param values The assetNames to add. * @return This builder for chaining. */ - public Builder addAllAssetNames( - java.lang.Iterable values) { + public Builder addAllAssetNames(java.lang.Iterable values) { ensureAssetNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, assetNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetNames_); onChanged(); return this; } /** + * + * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1092,6 +1197,7 @@ public Builder addAllAssetNames(
          * 
    * * repeated string asset_names = 2; + * * @return This builder for chaining. */ public Builder clearAssetNames() { @@ -1101,6 +1207,8 @@ public Builder clearAssetNames() { return this; } /** + * + * *
          * A list of the full names of the assets to receive updates. You must specify
          * either or both of asset_names and asset_types. Only asset updates matching
    @@ -1113,29 +1221,33 @@ public Builder clearAssetNames() {
          * 
    * * repeated string asset_names = 2; + * * @param value The bytes of the assetNames to add. * @return This builder for chaining. */ - public Builder addAssetNamesBytes( - com.google.protobuf.ByteString value) { + public Builder addAssetNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssetNamesIsMutable(); assetNames_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList assetTypes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAssetTypesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { assetTypes_ = new com.google.protobuf.LazyStringArrayList(assetTypes_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1147,13 +1259,15 @@ private void ensureAssetTypesIsMutable() {
          * 
    * * repeated string asset_types = 3; + * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList - getAssetTypesList() { + public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_.getUnmodifiableView(); } /** + * + * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1165,12 +1279,15 @@ private void ensureAssetTypesIsMutable() {
          * 
    * * repeated string asset_types = 3; + * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** + * + * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1182,6 +1299,7 @@ public int getAssetTypesCount() {
          * 
    * * repeated string asset_types = 3; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -1189,6 +1307,8 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** + * + * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1200,14 +1320,16 @@ public java.lang.String getAssetTypes(int index) {
          * 
    * * repeated string asset_types = 3; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString - getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } /** + * + * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1219,21 +1341,23 @@ public java.lang.String getAssetTypes(int index) {
          * 
    * * repeated string asset_types = 3; + * * @param index The index to set the value at. * @param value The assetTypes to set. * @return This builder for chaining. */ - public Builder setAssetTypes( - int index, java.lang.String value) { + public Builder setAssetTypes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.set(index, value); onChanged(); return this; } /** + * + * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1245,20 +1369,22 @@ public Builder setAssetTypes(
          * 
    * * repeated string asset_types = 3; + * * @param value The assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypes( - java.lang.String value) { + public Builder addAssetTypes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); return this; } /** + * + * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1270,18 +1396,19 @@ public Builder addAssetTypes(
          * 
    * * repeated string asset_types = 3; + * * @param values The assetTypes to add. * @return This builder for chaining. */ - public Builder addAllAssetTypes( - java.lang.Iterable values) { + public Builder addAllAssetTypes(java.lang.Iterable values) { ensureAssetTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, assetTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetTypes_); onChanged(); return this; } /** + * + * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1293,6 +1420,7 @@ public Builder addAllAssetTypes(
          * 
    * * repeated string asset_types = 3; + * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1302,6 +1430,8 @@ public Builder clearAssetTypes() { return this; } /** + * + * *
          * A list of types of the assets to receive updates. You must specify either
          * or both of asset_names and asset_types. Only asset updates matching
    @@ -1313,15 +1443,15 @@ public Builder clearAssetTypes() {
          * 
    * * repeated string asset_types = 3; + * * @param value The bytes of the assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypesBytes( - com.google.protobuf.ByteString value) { + public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); @@ -1330,55 +1460,69 @@ public Builder addAssetTypesBytes( private int contentType_ = 0; /** + * + * *
          * Asset content type. If not specified, no content but the asset name and
          * type will be returned.
          * 
    * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override public int getContentTypeValue() { + @java.lang.Override + public int getContentTypeValue() { return contentType_; } /** + * + * *
          * Asset content type. If not specified, no content but the asset name and
          * type will be returned.
          * 
    * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * * @param value The enum numeric value on the wire for contentType to set. * @return This builder for chaining. */ public Builder setContentTypeValue(int value) { - + contentType_ = value; onChanged(); return this; } /** + * + * *
          * Asset content type. If not specified, no content but the asset name and
          * type will be returned.
          * 
    * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * * @return The contentType. */ @java.lang.Override public com.google.cloud.asset.v1p2beta1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1p2beta1.ContentType result = com.google.cloud.asset.v1p2beta1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1p2beta1.ContentType result = + com.google.cloud.asset.v1p2beta1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1p2beta1.ContentType.UNRECOGNIZED : result; } /** + * + * *
          * Asset content type. If not specified, no content but the asset name and
          * type will be returned.
          * 
    * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * * @param value The contentType to set. * @return This builder for chaining. */ @@ -1386,22 +1530,25 @@ public Builder setContentType(com.google.cloud.asset.v1p2beta1.ContentType value if (value == null) { throw new NullPointerException(); } - + contentType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
          * Asset content type. If not specified, no content but the asset name and
          * type will be returned.
          * 
    * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * * @return This builder for chaining. */ public Builder clearContentType() { - + contentType_ = 0; onChanged(); return this; @@ -1409,42 +1556,61 @@ public Builder clearContentType() { private com.google.cloud.asset.v1p2beta1.FeedOutputConfig feedOutputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.FeedOutputConfig, com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder, com.google.cloud.asset.v1p2beta1.FeedOutputConfigOrBuilder> feedOutputConfigBuilder_; + com.google.cloud.asset.v1p2beta1.FeedOutputConfig, + com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder, + com.google.cloud.asset.v1p2beta1.FeedOutputConfigOrBuilder> + feedOutputConfigBuilder_; /** + * + * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the feedOutputConfig field is set. */ public boolean hasFeedOutputConfig() { return feedOutputConfigBuilder_ != null || feedOutputConfig_ != null; } /** + * + * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The feedOutputConfig. */ public com.google.cloud.asset.v1p2beta1.FeedOutputConfig getFeedOutputConfig() { if (feedOutputConfigBuilder_ == null) { - return feedOutputConfig_ == null ? com.google.cloud.asset.v1p2beta1.FeedOutputConfig.getDefaultInstance() : feedOutputConfig_; + return feedOutputConfig_ == null + ? com.google.cloud.asset.v1p2beta1.FeedOutputConfig.getDefaultInstance() + : feedOutputConfig_; } else { return feedOutputConfigBuilder_.getMessage(); } } /** + * + * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFeedOutputConfig(com.google.cloud.asset.v1p2beta1.FeedOutputConfig value) { if (feedOutputConfigBuilder_ == null) { @@ -1460,12 +1626,16 @@ public Builder setFeedOutputConfig(com.google.cloud.asset.v1p2beta1.FeedOutputCo return this; } /** + * + * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFeedOutputConfig( com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder builderForValue) { @@ -1479,18 +1649,24 @@ public Builder setFeedOutputConfig( return this; } /** + * + * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFeedOutputConfig(com.google.cloud.asset.v1p2beta1.FeedOutputConfig value) { if (feedOutputConfigBuilder_ == null) { if (feedOutputConfig_ != null) { feedOutputConfig_ = - com.google.cloud.asset.v1p2beta1.FeedOutputConfig.newBuilder(feedOutputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1p2beta1.FeedOutputConfig.newBuilder(feedOutputConfig_) + .mergeFrom(value) + .buildPartial(); } else { feedOutputConfig_ = value; } @@ -1502,12 +1678,16 @@ public Builder mergeFeedOutputConfig(com.google.cloud.asset.v1p2beta1.FeedOutput return this; } /** + * + * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFeedOutputConfig() { if (feedOutputConfigBuilder_ == null) { @@ -1521,58 +1701,75 @@ public Builder clearFeedOutputConfig() { return this; } /** + * + * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder getFeedOutputConfigBuilder() { - + onChanged(); return getFeedOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.asset.v1p2beta1.FeedOutputConfigOrBuilder getFeedOutputConfigOrBuilder() { + public com.google.cloud.asset.v1p2beta1.FeedOutputConfigOrBuilder + getFeedOutputConfigOrBuilder() { if (feedOutputConfigBuilder_ != null) { return feedOutputConfigBuilder_.getMessageOrBuilder(); } else { - return feedOutputConfig_ == null ? - com.google.cloud.asset.v1p2beta1.FeedOutputConfig.getDefaultInstance() : feedOutputConfig_; + return feedOutputConfig_ == null + ? com.google.cloud.asset.v1p2beta1.FeedOutputConfig.getDefaultInstance() + : feedOutputConfig_; } } /** + * + * *
          * Required. Feed output configuration defining where the asset updates are
          * published to.
          * 
    * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.FeedOutputConfig, com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder, com.google.cloud.asset.v1p2beta1.FeedOutputConfigOrBuilder> + com.google.cloud.asset.v1p2beta1.FeedOutputConfig, + com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder, + com.google.cloud.asset.v1p2beta1.FeedOutputConfigOrBuilder> getFeedOutputConfigFieldBuilder() { if (feedOutputConfigBuilder_ == null) { - feedOutputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.FeedOutputConfig, com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder, com.google.cloud.asset.v1p2beta1.FeedOutputConfigOrBuilder>( - getFeedOutputConfig(), - getParentForChildren(), - isClean()); + feedOutputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p2beta1.FeedOutputConfig, + com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder, + com.google.cloud.asset.v1p2beta1.FeedOutputConfigOrBuilder>( + getFeedOutputConfig(), getParentForChildren(), isClean()); feedOutputConfig_ = null; } return feedOutputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1582,12 +1779,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.Feed) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.Feed) private static final com.google.cloud.asset.v1p2beta1.Feed DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.Feed(); } @@ -1596,27 +1793,27 @@ public static com.google.cloud.asset.v1p2beta1.Feed getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Feed parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feed parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1631,6 +1828,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.Feed getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedName.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedName.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedName.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedName.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOrBuilder.java similarity index 83% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOrBuilder.java index 66d4f439178e..846765f2ef4f 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; -public interface FeedOrBuilder extends +public interface FeedOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.Feed) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The format will be
        * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -18,10 +36,13 @@ public interface FeedOrBuilder extends
        * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
        * Required. The format will be
        * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
    @@ -32,12 +53,14 @@ public interface FeedOrBuilder extends
        * 
    * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -50,11 +73,13 @@ public interface FeedOrBuilder extends
        * 
    * * repeated string asset_names = 2; + * * @return A list containing the assetNames. */ - java.util.List - getAssetNamesList(); + java.util.List getAssetNamesList(); /** + * + * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -67,10 +92,13 @@ public interface FeedOrBuilder extends
        * 
    * * repeated string asset_names = 2; + * * @return The count of assetNames. */ int getAssetNamesCount(); /** + * + * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -83,11 +111,14 @@ public interface FeedOrBuilder extends
        * 
    * * repeated string asset_names = 2; + * * @param index The index of the element to return. * @return The assetNames at the given index. */ java.lang.String getAssetNames(int index); /** + * + * *
        * A list of the full names of the assets to receive updates. You must specify
        * either or both of asset_names and asset_types. Only asset updates matching
    @@ -100,13 +131,15 @@ public interface FeedOrBuilder extends
        * 
    * * repeated string asset_names = 2; + * * @param index The index of the value to return. * @return The bytes of the assetNames at the given index. */ - com.google.protobuf.ByteString - getAssetNamesBytes(int index); + com.google.protobuf.ByteString getAssetNamesBytes(int index); /** + * + * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -118,11 +151,13 @@ public interface FeedOrBuilder extends
        * 
    * * repeated string asset_types = 3; + * * @return A list containing the assetTypes. */ - java.util.List - getAssetTypesList(); + java.util.List getAssetTypesList(); /** + * + * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -134,10 +169,13 @@ public interface FeedOrBuilder extends
        * 
    * * repeated string asset_types = 3; + * * @return The count of assetTypes. */ int getAssetTypesCount(); /** + * + * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -149,11 +187,14 @@ public interface FeedOrBuilder extends
        * 
    * * repeated string asset_types = 3; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ java.lang.String getAssetTypes(int index); /** + * + * *
        * A list of types of the assets to receive updates. You must specify either
        * or both of asset_names and asset_types. Only asset updates matching
    @@ -165,60 +206,80 @@ public interface FeedOrBuilder extends
        * 
    * * repeated string asset_types = 3; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - com.google.protobuf.ByteString - getAssetTypesBytes(int index); + com.google.protobuf.ByteString getAssetTypesBytes(int index); /** + * + * *
        * Asset content type. If not specified, no content but the asset name and
        * type will be returned.
        * 
    * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * * @return The enum numeric value on the wire for contentType. */ int getContentTypeValue(); /** + * + * *
        * Asset content type. If not specified, no content but the asset name and
        * type will be returned.
        * 
    * * .google.cloud.asset.v1p2beta1.ContentType content_type = 4; + * * @return The contentType. */ com.google.cloud.asset.v1p2beta1.ContentType getContentType(); /** + * + * *
        * Required. Feed output configuration defining where the asset updates are
        * published to.
        * 
    * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the feedOutputConfig field is set. */ boolean hasFeedOutputConfig(); /** + * + * *
        * Required. Feed output configuration defining where the asset updates are
        * published to.
        * 
    * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The feedOutputConfig. */ com.google.cloud.asset.v1p2beta1.FeedOutputConfig getFeedOutputConfig(); /** + * + * *
        * Required. Feed output configuration defining where the asset updates are
        * published to.
        * 
    * - * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.asset.v1p2beta1.FeedOutputConfigOrBuilder getFeedOutputConfigOrBuilder(); } diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfig.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfig.java similarity index 67% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfig.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfig.java index 3488cc883408..2ff65d94bfad 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfig.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfig.java @@ -1,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; /** + * + * *
      * Output configuration for asset feed destination.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.FeedOutputConfig} */ -public final class FeedOutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FeedOutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.FeedOutputConfig) FeedOutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FeedOutputConfig.newBuilder() to construct. private FeedOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FeedOutputConfig() { - } + + private FeedOutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FeedOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.FeedOutputConfig.class, com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder.class); + com.google.cloud.asset.v1p2beta1.FeedOutputConfig.class, + com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PUBSUB_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -70,29 +91,34 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return PUBSUB_DESTINATION; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return PUBSUB_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int PUBSUB_DESTINATION_FIELD_NUMBER = 1; /** + * + * *
        * Destination on Cloud Pubsub.
        * 
    * * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; + * * @return Whether the pubsubDestination field is set. */ @java.lang.Override @@ -100,21 +126,26 @@ public boolean hasPubsubDestination() { return destinationCase_ == 1; } /** + * + * *
        * Destination on Cloud Pubsub.
        * 
    * * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; + * * @return The pubsubDestination. */ @java.lang.Override public com.google.cloud.asset.v1p2beta1.PubsubDestination getPubsubDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_; + return (com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_; } return com.google.cloud.asset.v1p2beta1.PubsubDestination.getDefaultInstance(); } /** + * + * *
        * Destination on Cloud Pubsub.
        * 
    @@ -122,14 +153,16 @@ public com.google.cloud.asset.v1p2beta1.PubsubDestination getPubsubDestination() * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; */ @java.lang.Override - public com.google.cloud.asset.v1p2beta1.PubsubDestinationOrBuilder getPubsubDestinationOrBuilder() { + public com.google.cloud.asset.v1p2beta1.PubsubDestinationOrBuilder + getPubsubDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_; + return (com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_; } return com.google.cloud.asset.v1p2beta1.PubsubDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -141,8 +174,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_); } @@ -156,8 +188,9 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -167,18 +200,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.FeedOutputConfig)) { return super.equals(obj); } - com.google.cloud.asset.v1p2beta1.FeedOutputConfig other = (com.google.cloud.asset.v1p2beta1.FeedOutputConfig) obj; + com.google.cloud.asset.v1p2beta1.FeedOutputConfig other = + (com.google.cloud.asset.v1p2beta1.FeedOutputConfig) obj; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getPubsubDestination() - .equals(other.getPubsubDestination())) return false; + if (!getPubsubDestination().equals(other.getPubsubDestination())) return false; break; case 0: default: @@ -208,129 +241,135 @@ public int hashCode() { } public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig 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.asset.v1p2beta1.FeedOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.FeedOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Output configuration for asset feed destination.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.FeedOutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.FeedOutputConfig) com.google.cloud.asset.v1p2beta1.FeedOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.FeedOutputConfig.class, com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder.class); + com.google.cloud.asset.v1p2beta1.FeedOutputConfig.class, + com.google.cloud.asset.v1p2beta1.FeedOutputConfig.Builder.class); } // Construct using com.google.cloud.asset.v1p2beta1.FeedOutputConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +382,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor; } @java.lang.Override @@ -364,7 +403,8 @@ public com.google.cloud.asset.v1p2beta1.FeedOutputConfig build() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.FeedOutputConfig buildPartial() { - com.google.cloud.asset.v1p2beta1.FeedOutputConfig result = new com.google.cloud.asset.v1p2beta1.FeedOutputConfig(this); + com.google.cloud.asset.v1p2beta1.FeedOutputConfig result = + new com.google.cloud.asset.v1p2beta1.FeedOutputConfig(this); if (destinationCase_ == 1) { if (pubsubDestinationBuilder_ == null) { result.destination_ = destination_; @@ -381,38 +421,39 @@ public com.google.cloud.asset.v1p2beta1.FeedOutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p2beta1.FeedOutputConfig) { - return mergeFrom((com.google.cloud.asset.v1p2beta1.FeedOutputConfig)other); + return mergeFrom((com.google.cloud.asset.v1p2beta1.FeedOutputConfig) other); } else { super.mergeFrom(other); return this; @@ -420,15 +461,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.FeedOutputConfig other) { - if (other == com.google.cloud.asset.v1p2beta1.FeedOutputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1p2beta1.FeedOutputConfig.getDefaultInstance()) + return this; switch (other.getDestinationCase()) { - case PUBSUB_DESTINATION: { - mergePubsubDestination(other.getPubsubDestination()); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case PUBSUB_DESTINATION: + { + mergePubsubDestination(other.getPubsubDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -456,19 +500,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getPubsubDestinationFieldBuilder().getBuilder(), - extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getPubsubDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -478,12 +523,12 @@ public Builder mergeFrom( } // finally return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -493,15 +538,20 @@ public Builder clearDestination() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.PubsubDestination, com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder, com.google.cloud.asset.v1p2beta1.PubsubDestinationOrBuilder> pubsubDestinationBuilder_; + com.google.cloud.asset.v1p2beta1.PubsubDestination, + com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder, + com.google.cloud.asset.v1p2beta1.PubsubDestinationOrBuilder> + pubsubDestinationBuilder_; /** + * + * *
          * Destination on Cloud Pubsub.
          * 
    * * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; + * * @return Whether the pubsubDestination field is set. */ @java.lang.Override @@ -509,11 +559,14 @@ public boolean hasPubsubDestination() { return destinationCase_ == 1; } /** + * + * *
          * Destination on Cloud Pubsub.
          * 
    * * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; + * * @return The pubsubDestination. */ @java.lang.Override @@ -531,6 +584,8 @@ public com.google.cloud.asset.v1p2beta1.PubsubDestination getPubsubDestination() } } /** + * + * *
          * Destination on Cloud Pubsub.
          * 
    @@ -551,6 +606,8 @@ public Builder setPubsubDestination(com.google.cloud.asset.v1p2beta1.PubsubDesti return this; } /** + * + * *
          * Destination on Cloud Pubsub.
          * 
    @@ -569,18 +626,25 @@ public Builder setPubsubDestination( return this; } /** + * + * *
          * Destination on Cloud Pubsub.
          * 
    * * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; */ - public Builder mergePubsubDestination(com.google.cloud.asset.v1p2beta1.PubsubDestination value) { + public Builder mergePubsubDestination( + com.google.cloud.asset.v1p2beta1.PubsubDestination value) { if (pubsubDestinationBuilder_ == null) { - if (destinationCase_ == 1 && - destination_ != com.google.cloud.asset.v1p2beta1.PubsubDestination.getDefaultInstance()) { - destination_ = com.google.cloud.asset.v1p2beta1.PubsubDestination.newBuilder((com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_) - .mergeFrom(value).buildPartial(); + if (destinationCase_ == 1 + && destination_ + != com.google.cloud.asset.v1p2beta1.PubsubDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.asset.v1p2beta1.PubsubDestination.newBuilder( + (com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_) + .mergeFrom(value) + .buildPartial(); } else { destination_ = value; } @@ -596,6 +660,8 @@ public Builder mergePubsubDestination(com.google.cloud.asset.v1p2beta1.PubsubDes return this; } /** + * + * *
          * Destination on Cloud Pubsub.
          * 
    @@ -619,16 +685,21 @@ public Builder clearPubsubDestination() { return this; } /** + * + * *
          * Destination on Cloud Pubsub.
          * 
    * * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; */ - public com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder getPubsubDestinationBuilder() { + public com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder + getPubsubDestinationBuilder() { return getPubsubDestinationFieldBuilder().getBuilder(); } /** + * + * *
          * Destination on Cloud Pubsub.
          * 
    @@ -636,7 +707,8 @@ public com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder getPubsubDesti * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; */ @java.lang.Override - public com.google.cloud.asset.v1p2beta1.PubsubDestinationOrBuilder getPubsubDestinationOrBuilder() { + public com.google.cloud.asset.v1p2beta1.PubsubDestinationOrBuilder + getPubsubDestinationOrBuilder() { if ((destinationCase_ == 1) && (pubsubDestinationBuilder_ != null)) { return pubsubDestinationBuilder_.getMessageOrBuilder(); } else { @@ -647,6 +719,8 @@ public com.google.cloud.asset.v1p2beta1.PubsubDestinationOrBuilder getPubsubDest } } /** + * + * *
          * Destination on Cloud Pubsub.
          * 
    @@ -654,26 +728,32 @@ public com.google.cloud.asset.v1p2beta1.PubsubDestinationOrBuilder getPubsubDest * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.PubsubDestination, com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder, com.google.cloud.asset.v1p2beta1.PubsubDestinationOrBuilder> + com.google.cloud.asset.v1p2beta1.PubsubDestination, + com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder, + com.google.cloud.asset.v1p2beta1.PubsubDestinationOrBuilder> getPubsubDestinationFieldBuilder() { if (pubsubDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.asset.v1p2beta1.PubsubDestination.getDefaultInstance(); } - pubsubDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.PubsubDestination, com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder, com.google.cloud.asset.v1p2beta1.PubsubDestinationOrBuilder>( + pubsubDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p2beta1.PubsubDestination, + com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder, + com.google.cloud.asset.v1p2beta1.PubsubDestinationOrBuilder>( (com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 1; - onChanged();; + onChanged(); + ; return pubsubDestinationBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -683,12 +763,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.FeedOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.FeedOutputConfig) private static final com.google.cloud.asset.v1p2beta1.FeedOutputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.FeedOutputConfig(); } @@ -697,27 +777,27 @@ public static com.google.cloud.asset.v1p2beta1.FeedOutputConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeedOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeedOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -732,6 +812,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.FeedOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfigOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfigOrBuilder.java similarity index 63% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfigOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfigOrBuilder.java index be3215779213..91029b15a997 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfigOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/FeedOutputConfigOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; -public interface FeedOutputConfigOrBuilder extends +public interface FeedOutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.FeedOutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Destination on Cloud Pubsub.
        * 
    * * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; + * * @return Whether the pubsubDestination field is set. */ boolean hasPubsubDestination(); /** + * + * *
        * Destination on Cloud Pubsub.
        * 
    * * .google.cloud.asset.v1p2beta1.PubsubDestination pubsub_destination = 1; + * * @return The pubsubDestination. */ com.google.cloud.asset.v1p2beta1.PubsubDestination getPubsubDestination(); /** + * + * *
        * Destination on Cloud Pubsub.
        * 
    diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestination.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestination.java similarity index 68% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestination.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestination.java index bd41bc8d1c86..2dfab0e23344 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestination.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestination.java @@ -1,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; /** + * + * *
      * A Cloud Storage location.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.GcsDestination} */ -public final class GcsDestination extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.GcsDestination) GcsDestinationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsDestination() { - } + + private GcsDestination() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.GcsDestination.class, com.google.cloud.asset.v1p2beta1.GcsDestination.Builder.class); + com.google.cloud.asset.v1p2beta1.GcsDestination.class, + com.google.cloud.asset.v1p2beta1.GcsDestination.Builder.class); } private int objectUriCase_ = 0; private java.lang.Object objectUri_; + public enum ObjectUriCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { URI(1), OBJECTURI_NOT_SET(0); private final int value; + private ObjectUriCase(int value) { this.value = value; } @@ -70,24 +91,28 @@ public static ObjectUriCase valueOf(int value) { public static ObjectUriCase forNumber(int value) { switch (value) { - case 1: return URI; - case 0: return OBJECTURI_NOT_SET; - default: return null; + case 1: + return URI; + case 0: + return OBJECTURI_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ObjectUriCase - getObjectUriCase() { - return ObjectUriCase.forNumber( - objectUriCase_); + public ObjectUriCase getObjectUriCase() { + return ObjectUriCase.forNumber(objectUriCase_); } public static final int URI_FIELD_NUMBER = 1; /** + * + * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    @@ -97,12 +122,15 @@ public int getNumber() {
        * 
    * * string uri = 1; + * * @return Whether the uri field is set. */ public boolean hasUri() { return objectUriCase_ == 1; } /** + * + * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    @@ -112,6 +140,7 @@ public boolean hasUri() {
        * 
    * * string uri = 1; + * * @return The uri. */ public java.lang.String getUri() { @@ -122,8 +151,7 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (objectUriCase_ == 1) { objectUri_ = s; @@ -132,6 +160,8 @@ public java.lang.String getUri() { } } /** + * + * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    @@ -141,18 +171,17 @@ public java.lang.String getUri() {
        * 
    * * string uri = 1; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; if (objectUriCase_ == 1) { ref = objectUri_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (objectUriCase_ == 1) { objectUri_ = b; } @@ -163,6 +192,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -174,8 +204,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (objectUriCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, objectUri_); } @@ -199,18 +228,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.asset.v1p2beta1.GcsDestination other = (com.google.cloud.asset.v1p2beta1.GcsDestination) obj; + com.google.cloud.asset.v1p2beta1.GcsDestination other = + (com.google.cloud.asset.v1p2beta1.GcsDestination) obj; if (!getObjectUriCase().equals(other.getObjectUriCase())) return false; switch (objectUriCase_) { case 1: - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; break; case 0: default: @@ -239,130 +268,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1p2beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p2beta1.GcsDestination parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.GcsDestination 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.asset.v1p2beta1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.GcsDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.GcsDestination parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.GcsDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.GcsDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p2beta1.GcsDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * A Cloud Storage location.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.GcsDestination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.GcsDestination) com.google.cloud.asset.v1p2beta1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.GcsDestination.class, com.google.cloud.asset.v1p2beta1.GcsDestination.Builder.class); + com.google.cloud.asset.v1p2beta1.GcsDestination.class, + com.google.cloud.asset.v1p2beta1.GcsDestination.Builder.class); } // Construct using com.google.cloud.asset.v1p2beta1.GcsDestination.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -372,9 +407,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor; } @java.lang.Override @@ -393,7 +428,8 @@ public com.google.cloud.asset.v1p2beta1.GcsDestination build() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.GcsDestination buildPartial() { - com.google.cloud.asset.v1p2beta1.GcsDestination result = new com.google.cloud.asset.v1p2beta1.GcsDestination(this); + com.google.cloud.asset.v1p2beta1.GcsDestination result = + new com.google.cloud.asset.v1p2beta1.GcsDestination(this); if (objectUriCase_ == 1) { result.objectUri_ = objectUri_; } @@ -406,38 +442,39 @@ public com.google.cloud.asset.v1p2beta1.GcsDestination buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p2beta1.GcsDestination) { - return mergeFrom((com.google.cloud.asset.v1p2beta1.GcsDestination)other); + return mergeFrom((com.google.cloud.asset.v1p2beta1.GcsDestination) other); } else { super.mergeFrom(other); return this; @@ -445,17 +482,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.GcsDestination other) { - if (other == com.google.cloud.asset.v1p2beta1.GcsDestination.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1p2beta1.GcsDestination.getDefaultInstance()) + return this; switch (other.getObjectUriCase()) { - case URI: { - objectUriCase_ = 1; - objectUri_ = other.objectUri_; - onChanged(); - break; - } - case OBJECTURI_NOT_SET: { - break; - } + case URI: + { + objectUriCase_ = 1; + objectUri_ = other.objectUri_; + onChanged(); + break; + } + case OBJECTURI_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -483,18 +523,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - objectUriCase_ = 1; - objectUri_ = s; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + objectUriCase_ = 1; + objectUri_ = s; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -504,12 +546,12 @@ public Builder mergeFrom( } // finally return this; } + private int objectUriCase_ = 0; private java.lang.Object objectUri_; - public ObjectUriCase - getObjectUriCase() { - return ObjectUriCase.forNumber( - objectUriCase_); + + public ObjectUriCase getObjectUriCase() { + return ObjectUriCase.forNumber(objectUriCase_); } public Builder clearObjectUri() { @@ -519,8 +561,9 @@ public Builder clearObjectUri() { return this; } - /** + * + * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    @@ -530,6 +573,7 @@ public Builder clearObjectUri() {
          * 
    * * string uri = 1; + * * @return Whether the uri field is set. */ @java.lang.Override @@ -537,6 +581,8 @@ public boolean hasUri() { return objectUriCase_ == 1; } /** + * + * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    @@ -546,6 +592,7 @@ public boolean hasUri() {
          * 
    * * string uri = 1; + * * @return The uri. */ @java.lang.Override @@ -555,8 +602,7 @@ public java.lang.String getUri() { ref = objectUri_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (objectUriCase_ == 1) { objectUri_ = s; @@ -567,6 +613,8 @@ public java.lang.String getUri() { } } /** + * + * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    @@ -576,19 +624,18 @@ public java.lang.String getUri() {
          * 
    * * string uri = 1; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; if (objectUriCase_ == 1) { ref = objectUri_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (objectUriCase_ == 1) { objectUri_ = b; } @@ -598,6 +645,8 @@ public java.lang.String getUri() { } } /** + * + * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    @@ -607,20 +656,22 @@ public java.lang.String getUri() {
          * 
    * * string uri = 1; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - objectUriCase_ = 1; + throw new NullPointerException(); + } + objectUriCase_ = 1; objectUri_ = value; onChanged(); return this; } /** + * + * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    @@ -630,6 +681,7 @@ public Builder setUri(
          * 
    * * string uri = 1; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -641,6 +693,8 @@ public Builder clearUri() { return this; } /** + * + * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    @@ -650,23 +704,23 @@ public Builder clearUri() {
          * 
    * * string uri = 1; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); objectUriCase_ = 1; objectUri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -676,12 +730,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.GcsDestination) private static final com.google.cloud.asset.v1p2beta1.GcsDestination DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.GcsDestination(); } @@ -690,27 +744,27 @@ public static com.google.cloud.asset.v1p2beta1.GcsDestination getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -725,6 +779,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestinationOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestinationOrBuilder.java similarity index 68% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestinationOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestinationOrBuilder.java index 083a2c545a11..3cefb0ca9b59 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestinationOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GcsDestinationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; -public interface GcsDestinationOrBuilder extends +public interface GcsDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    @@ -17,10 +35,13 @@ public interface GcsDestinationOrBuilder extends
        * 
    * * string uri = 1; + * * @return Whether the uri field is set. */ boolean hasUri(); /** + * + * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    @@ -30,10 +51,13 @@ public interface GcsDestinationOrBuilder extends
        * 
    * * string uri = 1; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
    @@ -43,10 +67,10 @@ public interface GcsDestinationOrBuilder extends
        * 
    * * string uri = 1; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); public com.google.cloud.asset.v1p2beta1.GcsDestination.ObjectUriCase getObjectUriCase(); } diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequest.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequest.java similarity index 63% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequest.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequest.java index e3d33400583c..bce71c0134a3 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequest.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequest.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; /** + * + * *
      * Get asset feed request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.GetFeedRequest} */ -public final class GetFeedRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetFeedRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.GetFeedRequest) GetFeedRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetFeedRequest.newBuilder() to construct. private GetFeedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetFeedRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetFeedRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.GetFeedRequest.class, com.google.cloud.asset.v1p2beta1.GetFeedRequest.Builder.class); + com.google.cloud.asset.v1p2beta1.GetFeedRequest.class, + com.google.cloud.asset.v1p2beta1.GetFeedRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
        * Required. The name of the Feed and it must be in the format of:
        * projects/project_number/feeds/feed_id
    @@ -58,7 +79,10 @@ protected java.lang.Object newInstance(
        * organizations/organization_number/feeds/feed_id
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -67,14 +91,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
        * Required. The name of the Feed and it must be in the format of:
        * projects/project_number/feeds/feed_id
    @@ -82,17 +107,18 @@ public java.lang.String getName() {
        * organizations/organization_number/feeds/feed_id
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -101,6 +127,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -112,8 +139,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -137,15 +163,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.GetFeedRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1p2beta1.GetFeedRequest other = (com.google.cloud.asset.v1p2beta1.GetFeedRequest) obj; + com.google.cloud.asset.v1p2beta1.GetFeedRequest other = + (com.google.cloud.asset.v1p2beta1.GetFeedRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -164,130 +190,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1p2beta1.GetFeedRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p2beta1.GetFeedRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.GetFeedRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.GetFeedRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.GetFeedRequest 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.asset.v1p2beta1.GetFeedRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.GetFeedRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.GetFeedRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.GetFeedRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.GetFeedRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p2beta1.GetFeedRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.GetFeedRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.GetFeedRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.GetFeedRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.GetFeedRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Get asset feed request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.GetFeedRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.GetFeedRequest) com.google.cloud.asset.v1p2beta1.GetFeedRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.GetFeedRequest.class, com.google.cloud.asset.v1p2beta1.GetFeedRequest.Builder.class); + com.google.cloud.asset.v1p2beta1.GetFeedRequest.class, + com.google.cloud.asset.v1p2beta1.GetFeedRequest.Builder.class); } // Construct using com.google.cloud.asset.v1p2beta1.GetFeedRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -297,9 +329,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor; } @java.lang.Override @@ -318,7 +350,8 @@ public com.google.cloud.asset.v1p2beta1.GetFeedRequest build() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.GetFeedRequest buildPartial() { - com.google.cloud.asset.v1p2beta1.GetFeedRequest result = new com.google.cloud.asset.v1p2beta1.GetFeedRequest(this); + com.google.cloud.asset.v1p2beta1.GetFeedRequest result = + new com.google.cloud.asset.v1p2beta1.GetFeedRequest(this); result.name_ = name_; onBuilt(); return result; @@ -328,38 +361,39 @@ public com.google.cloud.asset.v1p2beta1.GetFeedRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p2beta1.GetFeedRequest) { - return mergeFrom((com.google.cloud.asset.v1p2beta1.GetFeedRequest)other); + return mergeFrom((com.google.cloud.asset.v1p2beta1.GetFeedRequest) other); } else { super.mergeFrom(other); return this; @@ -367,7 +401,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.GetFeedRequest other) { - if (other == com.google.cloud.asset.v1p2beta1.GetFeedRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1p2beta1.GetFeedRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -398,17 +433,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,6 +458,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
          * Required. The name of the Feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -428,14 +467,16 @@ public Builder mergeFrom(
          * organizations/organization_number/feeds/feed_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -444,6 +485,8 @@ public java.lang.String getName() { } } /** + * + * *
          * Required. The name of the Feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -451,16 +494,17 @@ public java.lang.String getName() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -468,6 +512,8 @@ public java.lang.String getName() { } } /** + * + * *
          * Required. The name of the Feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -475,21 +521,25 @@ public java.lang.String getName() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
          * Required. The name of the Feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -497,16 +547,21 @@ public Builder setName(
          * organizations/organization_number/feeds/feed_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
          * Required. The name of the Feed and it must be in the format of:
          * projects/project_number/feeds/feed_id
    @@ -514,24 +569,26 @@ public Builder clearName() {
          * organizations/organization_number/feeds/feed_id
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -541,12 +598,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.GetFeedRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.GetFeedRequest) private static final com.google.cloud.asset.v1p2beta1.GetFeedRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.GetFeedRequest(); } @@ -555,27 +612,27 @@ public static com.google.cloud.asset.v1p2beta1.GetFeedRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFeedRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFeedRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.GetFeedRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequestOrBuilder.java new file mode 100644 index 000000000000..53061113e331 --- /dev/null +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1p2beta1/asset_service.proto + +package com.google.cloud.asset.v1p2beta1; + +public interface GetFeedRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.GetFeedRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the Feed and it must be in the format of:
    +   * projects/project_number/feeds/feed_id
    +   * folders/folder_number/feeds/feed_id
    +   * organizations/organization_number/feeds/feed_id
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. The name of the Feed and it must be in the format of:
    +   * projects/project_number/feeds/feed_id
    +   * folders/folder_number/feeds/feed_id
    +   * organizations/organization_number/feeds/feed_id
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequest.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequest.java similarity index 67% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequest.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequest.java index 2b3265a25f35..cdcf0600a2fb 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequest.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequest.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; /** + * + * *
      * List asset feeds request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.ListFeedsRequest} */ -public final class ListFeedsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFeedsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.ListFeedsRequest) ListFeedsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFeedsRequest.newBuilder() to construct. private ListFeedsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFeedsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFeedsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.ListFeedsRequest.class, com.google.cloud.asset.v1p2beta1.ListFeedsRequest.Builder.class); + com.google.cloud.asset.v1p2beta1.ListFeedsRequest.class, + com.google.cloud.asset.v1p2beta1.ListFeedsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
        * Required. The parent project/folder/organization whose feeds are to be
        * listed. It can only be using project/folder/organization number (such as
    @@ -58,6 +79,7 @@ protected java.lang.Object newInstance(
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -66,14 +88,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
        * Required. The parent project/folder/organization whose feeds are to be
        * listed. It can only be using project/folder/organization number (such as
    @@ -81,16 +104,15 @@ public java.lang.String getParent() {
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -99,6 +121,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -135,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.ListFeedsRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1p2beta1.ListFeedsRequest other = (com.google.cloud.asset.v1p2beta1.ListFeedsRequest) obj; + com.google.cloud.asset.v1p2beta1.ListFeedsRequest other = + (com.google.cloud.asset.v1p2beta1.ListFeedsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -163,129 +185,135 @@ public int hashCode() { } public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest 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.asset.v1p2beta1.ListFeedsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.ListFeedsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * List asset feeds request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.ListFeedsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.ListFeedsRequest) com.google.cloud.asset.v1p2beta1.ListFeedsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.ListFeedsRequest.class, com.google.cloud.asset.v1p2beta1.ListFeedsRequest.Builder.class); + com.google.cloud.asset.v1p2beta1.ListFeedsRequest.class, + com.google.cloud.asset.v1p2beta1.ListFeedsRequest.Builder.class); } // Construct using com.google.cloud.asset.v1p2beta1.ListFeedsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -295,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor; } @java.lang.Override @@ -316,7 +344,8 @@ public com.google.cloud.asset.v1p2beta1.ListFeedsRequest build() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.ListFeedsRequest buildPartial() { - com.google.cloud.asset.v1p2beta1.ListFeedsRequest result = new com.google.cloud.asset.v1p2beta1.ListFeedsRequest(this); + com.google.cloud.asset.v1p2beta1.ListFeedsRequest result = + new com.google.cloud.asset.v1p2beta1.ListFeedsRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -326,38 +355,39 @@ public com.google.cloud.asset.v1p2beta1.ListFeedsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p2beta1.ListFeedsRequest) { - return mergeFrom((com.google.cloud.asset.v1p2beta1.ListFeedsRequest)other); + return mergeFrom((com.google.cloud.asset.v1p2beta1.ListFeedsRequest) other); } else { super.mergeFrom(other); return this; @@ -365,7 +395,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.ListFeedsRequest other) { - if (other == com.google.cloud.asset.v1p2beta1.ListFeedsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1p2beta1.ListFeedsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -396,17 +427,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -419,6 +452,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
          * Required. The parent project/folder/organization whose feeds are to be
          * listed. It can only be using project/folder/organization number (such as
    @@ -426,13 +461,13 @@ public Builder mergeFrom(
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -441,6 +476,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. The parent project/folder/organization whose feeds are to be
          * listed. It can only be using project/folder/organization number (such as
    @@ -448,15 +485,14 @@ public java.lang.String getParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -464,6 +500,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. The parent project/folder/organization whose feeds are to be
          * listed. It can only be using project/folder/organization number (such as
    @@ -471,20 +509,22 @@ public java.lang.String getParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
          * Required. The parent project/folder/organization whose feeds are to be
          * listed. It can only be using project/folder/organization number (such as
    @@ -492,15 +532,18 @@ public Builder setParent(
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
          * Required. The parent project/folder/organization whose feeds are to be
          * listed. It can only be using project/folder/organization number (such as
    @@ -508,23 +551,23 @@ public Builder clearParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -534,12 +577,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.ListFeedsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.ListFeedsRequest) private static final com.google.cloud.asset.v1p2beta1.ListFeedsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.ListFeedsRequest(); } @@ -548,27 +591,27 @@ public static com.google.cloud.asset.v1p2beta1.ListFeedsRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFeedsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeedsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -583,6 +626,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.ListFeedsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequestOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequestOrBuilder.java index 65b8118c4c25..07ffeb181dec 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; -public interface ListFeedsRequestOrBuilder extends +public interface ListFeedsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.ListFeedsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The parent project/folder/organization whose feeds are to be
        * listed. It can only be using project/folder/organization number (such as
    @@ -15,10 +33,13 @@ public interface ListFeedsRequestOrBuilder extends
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
        * Required. The parent project/folder/organization whose feeds are to be
        * listed. It can only be using project/folder/organization number (such as
    @@ -26,8 +47,8 @@ public interface ListFeedsRequestOrBuilder extends
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); } diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponse.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponse.java similarity index 69% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponse.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponse.java index 78ca5efa22d9..c816df0748f5 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponse.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponse.java @@ -1,52 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; -/** - * Protobuf type {@code google.cloud.asset.v1p2beta1.ListFeedsResponse} - */ -public final class ListFeedsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.asset.v1p2beta1.ListFeedsResponse} */ +public final class ListFeedsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.ListFeedsResponse) ListFeedsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFeedsResponse.newBuilder() to construct. private ListFeedsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFeedsResponse() { feeds_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFeedsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.ListFeedsResponse.class, com.google.cloud.asset.v1p2beta1.ListFeedsResponse.Builder.class); + com.google.cloud.asset.v1p2beta1.ListFeedsResponse.class, + com.google.cloud.asset.v1p2beta1.ListFeedsResponse.Builder.class); } public static final int FEEDS_FIELD_NUMBER = 1; private java.util.List feeds_; /** + * + * *
        * A list of feeds.
        * 
    @@ -58,6 +75,8 @@ public java.util.List getFeedsList() { return feeds_; } /** + * + * *
        * A list of feeds.
        * 
    @@ -65,11 +84,13 @@ public java.util.List getFeedsList() { * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFeedsOrBuilderList() { return feeds_; } /** + * + * *
        * A list of feeds.
        * 
    @@ -81,6 +102,8 @@ public int getFeedsCount() { return feeds_.size(); } /** + * + * *
        * A list of feeds.
        * 
    @@ -92,6 +115,8 @@ public com.google.cloud.asset.v1p2beta1.Feed getFeeds(int index) { return feeds_.get(index); } /** + * + * *
        * A list of feeds.
        * 
    @@ -99,12 +124,12 @@ public com.google.cloud.asset.v1p2beta1.Feed getFeeds(int index) { * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ @java.lang.Override - public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedsOrBuilder( - int index) { + public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedsOrBuilder(int index) { return feeds_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -116,8 +141,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < feeds_.size(); i++) { output.writeMessage(1, feeds_.get(i)); } @@ -131,8 +155,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < feeds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, feeds_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, feeds_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -142,15 +165,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.ListFeedsResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1p2beta1.ListFeedsResponse other = (com.google.cloud.asset.v1p2beta1.ListFeedsResponse) obj; + com.google.cloud.asset.v1p2beta1.ListFeedsResponse other = + (com.google.cloud.asset.v1p2beta1.ListFeedsResponse) obj; - if (!getFeedsList() - .equals(other.getFeedsList())) return false; + if (!getFeedsList().equals(other.getFeedsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -172,125 +195,127 @@ public int hashCode() { } public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse 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.asset.v1p2beta1.ListFeedsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.ListFeedsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.asset.v1p2beta1.ListFeedsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.asset.v1p2beta1.ListFeedsResponse} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.ListFeedsResponse) com.google.cloud.asset.v1p2beta1.ListFeedsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.ListFeedsResponse.class, com.google.cloud.asset.v1p2beta1.ListFeedsResponse.Builder.class); + com.google.cloud.asset.v1p2beta1.ListFeedsResponse.class, + com.google.cloud.asset.v1p2beta1.ListFeedsResponse.Builder.class); } // Construct using com.google.cloud.asset.v1p2beta1.ListFeedsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -305,9 +330,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor; } @java.lang.Override @@ -326,7 +351,8 @@ public com.google.cloud.asset.v1p2beta1.ListFeedsResponse build() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.ListFeedsResponse buildPartial() { - com.google.cloud.asset.v1p2beta1.ListFeedsResponse result = new com.google.cloud.asset.v1p2beta1.ListFeedsResponse(this); + com.google.cloud.asset.v1p2beta1.ListFeedsResponse result = + new com.google.cloud.asset.v1p2beta1.ListFeedsResponse(this); int from_bitField0_ = bitField0_; if (feedsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -345,38 +371,39 @@ public com.google.cloud.asset.v1p2beta1.ListFeedsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p2beta1.ListFeedsResponse) { - return mergeFrom((com.google.cloud.asset.v1p2beta1.ListFeedsResponse)other); + return mergeFrom((com.google.cloud.asset.v1p2beta1.ListFeedsResponse) other); } else { super.mergeFrom(other); return this; @@ -384,7 +411,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.ListFeedsResponse other) { - if (other == com.google.cloud.asset.v1p2beta1.ListFeedsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1p2beta1.ListFeedsResponse.getDefaultInstance()) + return this; if (feedsBuilder_ == null) { if (!other.feeds_.isEmpty()) { if (feeds_.isEmpty()) { @@ -403,9 +431,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.ListFeedsResponse othe feedsBuilder_ = null; feeds_ = other.feeds_; bitField0_ = (bitField0_ & ~0x00000001); - feedsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFeedsFieldBuilder() : null; + feedsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFeedsFieldBuilder() + : null; } else { feedsBuilder_.addAllMessages(other.feeds_); } @@ -437,25 +466,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.asset.v1p2beta1.Feed m = - input.readMessage( - com.google.cloud.asset.v1p2beta1.Feed.parser(), - extensionRegistry); - if (feedsBuilder_ == null) { - ensureFeedsIsMutable(); - feeds_.add(m); - } else { - feedsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.asset.v1p2beta1.Feed m = + input.readMessage( + com.google.cloud.asset.v1p2beta1.Feed.parser(), extensionRegistry); + if (feedsBuilder_ == null) { + ensureFeedsIsMutable(); + feeds_.add(m); + } else { + feedsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -465,21 +495,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List feeds_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFeedsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { feeds_ = new java.util.ArrayList(feeds_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Feed, com.google.cloud.asset.v1p2beta1.Feed.Builder, com.google.cloud.asset.v1p2beta1.FeedOrBuilder> feedsBuilder_; + com.google.cloud.asset.v1p2beta1.Feed, + com.google.cloud.asset.v1p2beta1.Feed.Builder, + com.google.cloud.asset.v1p2beta1.FeedOrBuilder> + feedsBuilder_; /** + * + * *
          * A list of feeds.
          * 
    @@ -494,6 +531,8 @@ public java.util.List getFeedsList() { } } /** + * + * *
          * A list of feeds.
          * 
    @@ -508,6 +547,8 @@ public int getFeedsCount() { } } /** + * + * *
          * A list of feeds.
          * 
    @@ -522,14 +563,15 @@ public com.google.cloud.asset.v1p2beta1.Feed getFeeds(int index) { } } /** + * + * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ - public Builder setFeeds( - int index, com.google.cloud.asset.v1p2beta1.Feed value) { + public Builder setFeeds(int index, com.google.cloud.asset.v1p2beta1.Feed value) { if (feedsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -543,6 +585,8 @@ public Builder setFeeds( return this; } /** + * + * *
          * A list of feeds.
          * 
    @@ -561,6 +605,8 @@ public Builder setFeeds( return this; } /** + * + * *
          * A list of feeds.
          * 
    @@ -581,14 +627,15 @@ public Builder addFeeds(com.google.cloud.asset.v1p2beta1.Feed value) { return this; } /** + * + * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ - public Builder addFeeds( - int index, com.google.cloud.asset.v1p2beta1.Feed value) { + public Builder addFeeds(int index, com.google.cloud.asset.v1p2beta1.Feed value) { if (feedsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -602,14 +649,15 @@ public Builder addFeeds( return this; } /** + * + * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ - public Builder addFeeds( - com.google.cloud.asset.v1p2beta1.Feed.Builder builderForValue) { + public Builder addFeeds(com.google.cloud.asset.v1p2beta1.Feed.Builder builderForValue) { if (feedsBuilder_ == null) { ensureFeedsIsMutable(); feeds_.add(builderForValue.build()); @@ -620,6 +668,8 @@ public Builder addFeeds( return this; } /** + * + * *
          * A list of feeds.
          * 
    @@ -638,6 +688,8 @@ public Builder addFeeds( return this; } /** + * + * *
          * A list of feeds.
          * 
    @@ -648,8 +700,7 @@ public Builder addAllFeeds( java.lang.Iterable values) { if (feedsBuilder_ == null) { ensureFeedsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, feeds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, feeds_); onChanged(); } else { feedsBuilder_.addAllMessages(values); @@ -657,6 +708,8 @@ public Builder addAllFeeds( return this; } /** + * + * *
          * A list of feeds.
          * 
    @@ -674,6 +727,8 @@ public Builder clearFeeds() { return this; } /** + * + * *
          * A list of feeds.
          * 
    @@ -691,39 +746,44 @@ public Builder removeFeeds(int index) { return this; } /** + * + * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ - public com.google.cloud.asset.v1p2beta1.Feed.Builder getFeedsBuilder( - int index) { + public com.google.cloud.asset.v1p2beta1.Feed.Builder getFeedsBuilder(int index) { return getFeedsFieldBuilder().getBuilder(index); } /** + * + * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ - public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedsOrBuilder( - int index) { + public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedsOrBuilder(int index) { if (feedsBuilder_ == null) { - return feeds_.get(index); } else { + return feeds_.get(index); + } else { return feedsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ - public java.util.List - getFeedsOrBuilderList() { + public java.util.List + getFeedsOrBuilderList() { if (feedsBuilder_ != null) { return feedsBuilder_.getMessageOrBuilderList(); } else { @@ -731,6 +791,8 @@ public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedsOrBuilder( } } /** + * + * *
          * A list of feeds.
          * 
    @@ -738,49 +800,54 @@ public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedsOrBuilder( * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ public com.google.cloud.asset.v1p2beta1.Feed.Builder addFeedsBuilder() { - return getFeedsFieldBuilder().addBuilder( - com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance()); + return getFeedsFieldBuilder() + .addBuilder(com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance()); } /** + * + * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ - public com.google.cloud.asset.v1p2beta1.Feed.Builder addFeedsBuilder( - int index) { - return getFeedsFieldBuilder().addBuilder( - index, com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance()); + public com.google.cloud.asset.v1p2beta1.Feed.Builder addFeedsBuilder(int index) { + return getFeedsFieldBuilder() + .addBuilder(index, com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance()); } /** + * + * *
          * A list of feeds.
          * 
    * * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ - public java.util.List - getFeedsBuilderList() { + public java.util.List getFeedsBuilderList() { return getFeedsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Feed, com.google.cloud.asset.v1p2beta1.Feed.Builder, com.google.cloud.asset.v1p2beta1.FeedOrBuilder> + com.google.cloud.asset.v1p2beta1.Feed, + com.google.cloud.asset.v1p2beta1.Feed.Builder, + com.google.cloud.asset.v1p2beta1.FeedOrBuilder> getFeedsFieldBuilder() { if (feedsBuilder_ == null) { - feedsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Feed, com.google.cloud.asset.v1p2beta1.Feed.Builder, com.google.cloud.asset.v1p2beta1.FeedOrBuilder>( - feeds_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + feedsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1p2beta1.Feed, + com.google.cloud.asset.v1p2beta1.Feed.Builder, + com.google.cloud.asset.v1p2beta1.FeedOrBuilder>( + feeds_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); feeds_ = null; } return feedsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -790,12 +857,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.ListFeedsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.ListFeedsResponse) private static final com.google.cloud.asset.v1p2beta1.ListFeedsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.ListFeedsResponse(); } @@ -804,27 +871,27 @@ public static com.google.cloud.asset.v1p2beta1.ListFeedsResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFeedsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeedsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -839,6 +906,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.ListFeedsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponseOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponseOrBuilder.java similarity index 59% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponseOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponseOrBuilder.java index b80afe70fd20..3f00050ebe87 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponseOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ListFeedsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; -public interface ListFeedsResponseOrBuilder extends +public interface ListFeedsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.ListFeedsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * A list of feeds.
        * 
    * * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ - java.util.List - getFeedsList(); + java.util.List getFeedsList(); /** + * + * *
        * A list of feeds.
        * 
    @@ -25,6 +44,8 @@ public interface ListFeedsResponseOrBuilder extends */ com.google.cloud.asset.v1p2beta1.Feed getFeeds(int index); /** + * + * *
        * A list of feeds.
        * 
    @@ -33,21 +54,23 @@ public interface ListFeedsResponseOrBuilder extends */ int getFeedsCount(); /** + * + * *
        * A list of feeds.
        * 
    * * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ - java.util.List - getFeedsOrBuilderList(); + java.util.List getFeedsOrBuilderList(); /** + * + * *
        * A list of feeds.
        * 
    * * repeated .google.cloud.asset.v1p2beta1.Feed feeds = 1; */ - com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedsOrBuilder( - int index); + com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedsOrBuilder(int index); } diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfig.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfig.java similarity index 68% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfig.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfig.java index a46df40df993..dea0826795c5 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfig.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfig.java @@ -1,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; /** + * + * *
      * Output configuration for export assets destination.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.OutputConfig} */ -public final class OutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.OutputConfig) OutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutputConfig() { - } + + private OutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.OutputConfig.class, com.google.cloud.asset.v1p2beta1.OutputConfig.Builder.class); + com.google.cloud.asset.v1p2beta1.OutputConfig.class, + com.google.cloud.asset.v1p2beta1.OutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -70,29 +91,34 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return GCS_DESTINATION; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return GCS_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** + * + * *
        * Destination on Cloud Storage.
        * 
    * * .google.cloud.asset.v1p2beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -100,21 +126,26 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
        * Destination on Cloud Storage.
        * 
    * * .google.cloud.asset.v1p2beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.asset.v1p2beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1p2beta1.GcsDestination) destination_; + return (com.google.cloud.asset.v1p2beta1.GcsDestination) destination_; } return com.google.cloud.asset.v1p2beta1.GcsDestination.getDefaultInstance(); } /** + * + * *
        * Destination on Cloud Storage.
        * 
    @@ -124,12 +155,13 @@ public com.google.cloud.asset.v1p2beta1.GcsDestination getGcsDestination() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1p2beta1.GcsDestination) destination_; + return (com.google.cloud.asset.v1p2beta1.GcsDestination) destination_; } return com.google.cloud.asset.v1p2beta1.GcsDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -141,8 +173,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.asset.v1p2beta1.GcsDestination) destination_); } @@ -156,8 +187,9 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.asset.v1p2beta1.GcsDestination) destination_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.asset.v1p2beta1.GcsDestination) destination_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -167,18 +199,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.OutputConfig)) { return super.equals(obj); } - com.google.cloud.asset.v1p2beta1.OutputConfig other = (com.google.cloud.asset.v1p2beta1.OutputConfig) obj; + com.google.cloud.asset.v1p2beta1.OutputConfig other = + (com.google.cloud.asset.v1p2beta1.OutputConfig) obj; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsDestination() - .equals(other.getGcsDestination())) return false; + if (!getGcsDestination().equals(other.getGcsDestination())) return false; break; case 0: default: @@ -207,130 +239,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1p2beta1.OutputConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p2beta1.OutputConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.OutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.OutputConfig 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.asset.v1p2beta1.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.OutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.OutputConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.OutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.OutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p2beta1.OutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.OutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.OutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.OutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.OutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Output configuration for export assets destination.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.OutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.OutputConfig) com.google.cloud.asset.v1p2beta1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.OutputConfig.class, com.google.cloud.asset.v1p2beta1.OutputConfig.Builder.class); + com.google.cloud.asset.v1p2beta1.OutputConfig.class, + com.google.cloud.asset.v1p2beta1.OutputConfig.Builder.class); } // Construct using com.google.cloud.asset.v1p2beta1.OutputConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +381,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor; } @java.lang.Override @@ -364,7 +402,8 @@ public com.google.cloud.asset.v1p2beta1.OutputConfig build() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.OutputConfig buildPartial() { - com.google.cloud.asset.v1p2beta1.OutputConfig result = new com.google.cloud.asset.v1p2beta1.OutputConfig(this); + com.google.cloud.asset.v1p2beta1.OutputConfig result = + new com.google.cloud.asset.v1p2beta1.OutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -381,38 +420,39 @@ public com.google.cloud.asset.v1p2beta1.OutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p2beta1.OutputConfig) { - return mergeFrom((com.google.cloud.asset.v1p2beta1.OutputConfig)other); + return mergeFrom((com.google.cloud.asset.v1p2beta1.OutputConfig) other); } else { super.mergeFrom(other); return this; @@ -422,13 +462,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.OutputConfig other) { if (other == com.google.cloud.asset.v1p2beta1.OutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -456,19 +498,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsDestinationFieldBuilder().getBuilder(), - extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -478,12 +520,12 @@ public Builder mergeFrom( } // finally return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -493,15 +535,20 @@ public Builder clearDestination() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.GcsDestination, com.google.cloud.asset.v1p2beta1.GcsDestination.Builder, com.google.cloud.asset.v1p2beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.asset.v1p2beta1.GcsDestination, + com.google.cloud.asset.v1p2beta1.GcsDestination.Builder, + com.google.cloud.asset.v1p2beta1.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
          * Destination on Cloud Storage.
          * 
    * * .google.cloud.asset.v1p2beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -509,11 +556,14 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
          * Destination on Cloud Storage.
          * 
    * * .google.cloud.asset.v1p2beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override @@ -531,6 +581,8 @@ public com.google.cloud.asset.v1p2beta1.GcsDestination getGcsDestination() { } } /** + * + * *
          * Destination on Cloud Storage.
          * 
    @@ -551,6 +603,8 @@ public Builder setGcsDestination(com.google.cloud.asset.v1p2beta1.GcsDestination return this; } /** + * + * *
          * Destination on Cloud Storage.
          * 
    @@ -569,6 +623,8 @@ public Builder setGcsDestination( return this; } /** + * + * *
          * Destination on Cloud Storage.
          * 
    @@ -577,10 +633,14 @@ public Builder setGcsDestination( */ public Builder mergeGcsDestination(com.google.cloud.asset.v1p2beta1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 && - destination_ != com.google.cloud.asset.v1p2beta1.GcsDestination.getDefaultInstance()) { - destination_ = com.google.cloud.asset.v1p2beta1.GcsDestination.newBuilder((com.google.cloud.asset.v1p2beta1.GcsDestination) destination_) - .mergeFrom(value).buildPartial(); + if (destinationCase_ == 1 + && destination_ + != com.google.cloud.asset.v1p2beta1.GcsDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.asset.v1p2beta1.GcsDestination.newBuilder( + (com.google.cloud.asset.v1p2beta1.GcsDestination) destination_) + .mergeFrom(value) + .buildPartial(); } else { destination_ = value; } @@ -596,6 +656,8 @@ public Builder mergeGcsDestination(com.google.cloud.asset.v1p2beta1.GcsDestinati return this; } /** + * + * *
          * Destination on Cloud Storage.
          * 
    @@ -619,6 +681,8 @@ public Builder clearGcsDestination() { return this; } /** + * + * *
          * Destination on Cloud Storage.
          * 
    @@ -629,6 +693,8 @@ public com.google.cloud.asset.v1p2beta1.GcsDestination.Builder getGcsDestination return getGcsDestinationFieldBuilder().getBuilder(); } /** + * + * *
          * Destination on Cloud Storage.
          * 
    @@ -647,6 +713,8 @@ public com.google.cloud.asset.v1p2beta1.GcsDestinationOrBuilder getGcsDestinatio } } /** + * + * *
          * Destination on Cloud Storage.
          * 
    @@ -654,26 +722,32 @@ public com.google.cloud.asset.v1p2beta1.GcsDestinationOrBuilder getGcsDestinatio * .google.cloud.asset.v1p2beta1.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.GcsDestination, com.google.cloud.asset.v1p2beta1.GcsDestination.Builder, com.google.cloud.asset.v1p2beta1.GcsDestinationOrBuilder> + com.google.cloud.asset.v1p2beta1.GcsDestination, + com.google.cloud.asset.v1p2beta1.GcsDestination.Builder, + com.google.cloud.asset.v1p2beta1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.asset.v1p2beta1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.GcsDestination, com.google.cloud.asset.v1p2beta1.GcsDestination.Builder, com.google.cloud.asset.v1p2beta1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p2beta1.GcsDestination, + com.google.cloud.asset.v1p2beta1.GcsDestination.Builder, + com.google.cloud.asset.v1p2beta1.GcsDestinationOrBuilder>( (com.google.cloud.asset.v1p2beta1.GcsDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 1; - onChanged();; + onChanged(); + ; return gcsDestinationBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -683,12 +757,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.OutputConfig) private static final com.google.cloud.asset.v1p2beta1.OutputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.OutputConfig(); } @@ -697,27 +771,27 @@ public static com.google.cloud.asset.v1p2beta1.OutputConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -732,6 +806,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfigOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfigOrBuilder.java similarity index 62% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfigOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfigOrBuilder.java index ce0072cbcb16..2eadb8a878a4 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfigOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/OutputConfigOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; -public interface OutputConfigOrBuilder extends +public interface OutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Destination on Cloud Storage.
        * 
    * * .google.cloud.asset.v1p2beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
        * Destination on Cloud Storage.
        * 
    * * .google.cloud.asset.v1p2beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ com.google.cloud.asset.v1p2beta1.GcsDestination getGcsDestination(); /** + * + * *
        * Destination on Cloud Storage.
        * 
    diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestination.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestination.java similarity index 65% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestination.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestination.java index 1c6133e657be..8481f47acc47 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestination.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestination.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; /** + * + * *
      * A Cloud Pubsub destination.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.PubsubDestination} */ -public final class PubsubDestination extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PubsubDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.PubsubDestination) PubsubDestinationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PubsubDestination.newBuilder() to construct. private PubsubDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PubsubDestination() { topic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PubsubDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.PubsubDestination.class, com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder.class); + com.google.cloud.asset.v1p2beta1.PubsubDestination.class, + com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; private volatile java.lang.Object topic_; /** + * + * *
        * The name of the Cloud Pub/Sub topic to publish to.
        * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
        * 
    * * string topic = 1; + * * @return The topic. */ @java.lang.Override @@ -65,30 +87,30 @@ public java.lang.String getTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } } /** + * + * *
        * The name of the Cloud Pub/Sub topic to publish to.
        * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
        * 
    * * string topic = 1; + * * @return The bytes for topic. */ @java.lang.Override - public com.google.protobuf.ByteString - getTopicBytes() { + public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topic_ = b; return b; } else { @@ -97,6 +119,7 @@ public java.lang.String getTopic() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +131,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } @@ -133,15 +155,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.PubsubDestination)) { return super.equals(obj); } - com.google.cloud.asset.v1p2beta1.PubsubDestination other = (com.google.cloud.asset.v1p2beta1.PubsubDestination) obj; + com.google.cloud.asset.v1p2beta1.PubsubDestination other = + (com.google.cloud.asset.v1p2beta1.PubsubDestination) obj; - if (!getTopic() - .equals(other.getTopic())) return false; + if (!getTopic().equals(other.getTopic())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +183,135 @@ public int hashCode() { } public static com.google.cloud.asset.v1p2beta1.PubsubDestination parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.PubsubDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.PubsubDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.PubsubDestination 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.asset.v1p2beta1.PubsubDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.PubsubDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.PubsubDestination parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p2beta1.PubsubDestination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.PubsubDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.PubsubDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p2beta1.PubsubDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.PubsubDestination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.PubsubDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.PubsubDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.PubsubDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * A Cloud Pubsub destination.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.PubsubDestination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.PubsubDestination) com.google.cloud.asset.v1p2beta1.PubsubDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.PubsubDestination.class, com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder.class); + com.google.cloud.asset.v1p2beta1.PubsubDestination.class, + com.google.cloud.asset.v1p2beta1.PubsubDestination.Builder.class); } // Construct using com.google.cloud.asset.v1p2beta1.PubsubDestination.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +321,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor; } @java.lang.Override @@ -314,7 +342,8 @@ public com.google.cloud.asset.v1p2beta1.PubsubDestination build() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.PubsubDestination buildPartial() { - com.google.cloud.asset.v1p2beta1.PubsubDestination result = new com.google.cloud.asset.v1p2beta1.PubsubDestination(this); + com.google.cloud.asset.v1p2beta1.PubsubDestination result = + new com.google.cloud.asset.v1p2beta1.PubsubDestination(this); result.topic_ = topic_; onBuilt(); return result; @@ -324,38 +353,39 @@ public com.google.cloud.asset.v1p2beta1.PubsubDestination buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p2beta1.PubsubDestination) { - return mergeFrom((com.google.cloud.asset.v1p2beta1.PubsubDestination)other); + return mergeFrom((com.google.cloud.asset.v1p2beta1.PubsubDestination) other); } else { super.mergeFrom(other); return this; @@ -363,7 +393,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.PubsubDestination other) { - if (other == com.google.cloud.asset.v1p2beta1.PubsubDestination.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1p2beta1.PubsubDestination.getDefaultInstance()) + return this; if (!other.getTopic().isEmpty()) { topic_ = other.topic_; onChanged(); @@ -394,17 +425,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - topic_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + topic_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -417,19 +450,21 @@ public Builder mergeFrom( private java.lang.Object topic_ = ""; /** + * + * *
          * The name of the Cloud Pub/Sub topic to publish to.
          * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
          * 
    * * string topic = 1; + * * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; @@ -438,21 +473,22 @@ public java.lang.String getTopic() { } } /** + * + * *
          * The name of the Cloud Pub/Sub topic to publish to.
          * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
          * 
    * * string topic = 1; + * * @return The bytes for topic. */ - public com.google.protobuf.ByteString - getTopicBytes() { + public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topic_ = b; return b; } else { @@ -460,64 +496,71 @@ public java.lang.String getTopic() { } } /** + * + * *
          * The name of the Cloud Pub/Sub topic to publish to.
          * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
          * 
    * * string topic = 1; + * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic( - java.lang.String value) { + public Builder setTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; onChanged(); return this; } /** + * + * *
          * The name of the Cloud Pub/Sub topic to publish to.
          * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
          * 
    * * string topic = 1; + * * @return This builder for chaining. */ public Builder clearTopic() { - + topic_ = getDefaultInstance().getTopic(); onChanged(); return this; } /** + * + * *
          * The name of the Cloud Pub/Sub topic to publish to.
          * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
          * 
    * * string topic = 1; + * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { + public Builder setTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -527,12 +570,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.PubsubDestination) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.PubsubDestination) private static final com.google.cloud.asset.v1p2beta1.PubsubDestination DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.PubsubDestination(); } @@ -541,27 +584,27 @@ public static com.google.cloud.asset.v1p2beta1.PubsubDestination getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PubsubDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PubsubDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,6 +619,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.PubsubDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestinationOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestinationOrBuilder.java similarity index 51% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestinationOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestinationOrBuilder.java index e6d950141c14..b52b0f9aa6ea 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestinationOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/PubsubDestinationOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; -public interface PubsubDestinationOrBuilder extends +public interface PubsubDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.PubsubDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The name of the Cloud Pub/Sub topic to publish to.
        * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
        * 
    * * string topic = 1; + * * @return The topic. */ java.lang.String getTopic(); /** + * + * *
        * The name of the Cloud Pub/Sub topic to publish to.
        * For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
        * 
    * * string topic = 1; + * * @return The bytes for topic. */ - com.google.protobuf.ByteString - getTopicBytes(); + com.google.protobuf.ByteString getTopicBytes(); } diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Resource.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Resource.java similarity index 75% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Resource.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Resource.java index d585e2585665..b2091f4fbaf6 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Resource.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/Resource.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/assets.proto package com.google.cloud.asset.v1p2beta1; /** + * + * *
      * Representation of a cloud resource.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.Resource} */ -public final class Resource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Resource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.Resource) ResourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Resource.newBuilder() to construct. private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Resource() { version_ = ""; discoveryDocumentUri_ = ""; @@ -29,37 +47,41 @@ private Resource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Resource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetProto + .internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_Resource_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetProto + .internal_static_google_cloud_asset_v1p2beta1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.Resource.class, com.google.cloud.asset.v1p2beta1.Resource.Builder.class); + com.google.cloud.asset.v1p2beta1.Resource.class, + com.google.cloud.asset.v1p2beta1.Resource.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** + * + * *
        * The API version. Example: "v1".
        * 
    * * string version = 1; + * * @return The version. */ @java.lang.Override @@ -68,29 +90,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
        * The API version. Example: "v1".
        * 
    * * string version = 1; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -101,6 +123,8 @@ public java.lang.String getVersion() { public static final int DISCOVERY_DOCUMENT_URI_FIELD_NUMBER = 2; private volatile java.lang.Object discoveryDocumentUri_; /** + * + * *
        * The URL of the discovery document containing the resource's JSON schema.
        * For example:
    @@ -110,6 +134,7 @@ public java.lang.String getVersion() {
        * 
    * * string discovery_document_uri = 2; + * * @return The discoveryDocumentUri. */ @java.lang.Override @@ -118,14 +143,15 @@ public java.lang.String getDiscoveryDocumentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryDocumentUri_ = s; return s; } } /** + * + * *
        * The URL of the discovery document containing the resource's JSON schema.
        * For example:
    @@ -135,16 +161,15 @@ public java.lang.String getDiscoveryDocumentUri() {
        * 
    * * string discovery_document_uri = 2; + * * @return The bytes for discoveryDocumentUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getDiscoveryDocumentUriBytes() { + public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { java.lang.Object ref = discoveryDocumentUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); discoveryDocumentUri_ = b; return b; } else { @@ -155,6 +180,8 @@ public java.lang.String getDiscoveryDocumentUri() { public static final int DISCOVERY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object discoveryName_; /** + * + * *
        * The JSON schema name listed in the discovery document.
        * Example: "Project". It will be left unspecified for resources (such as
    @@ -162,6 +189,7 @@ public java.lang.String getDiscoveryDocumentUri() {
        * 
    * * string discovery_name = 3; + * * @return The discoveryName. */ @java.lang.Override @@ -170,14 +198,15 @@ public java.lang.String getDiscoveryName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryName_ = s; return s; } } /** + * + * *
        * The JSON schema name listed in the discovery document.
        * Example: "Project". It will be left unspecified for resources (such as
    @@ -185,16 +214,15 @@ public java.lang.String getDiscoveryName() {
        * 
    * * string discovery_name = 3; + * * @return The bytes for discoveryName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDiscoveryNameBytes() { + public com.google.protobuf.ByteString getDiscoveryNameBytes() { java.lang.Object ref = discoveryName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); discoveryName_ = b; return b; } else { @@ -205,6 +233,8 @@ public java.lang.String getDiscoveryName() { public static final int RESOURCE_URL_FIELD_NUMBER = 4; private volatile java.lang.Object resourceUrl_; /** + * + * *
        * The REST URL for accessing the resource. An HTTP GET operation using this
        * URL returns the resource itself.
    @@ -214,6 +244,7 @@ public java.lang.String getDiscoveryName() {
        * 
    * * string resource_url = 4; + * * @return The resourceUrl. */ @java.lang.Override @@ -222,14 +253,15 @@ public java.lang.String getResourceUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; } } /** + * + * *
        * The REST URL for accessing the resource. An HTTP GET operation using this
        * URL returns the resource itself.
    @@ -239,16 +271,15 @@ public java.lang.String getResourceUrl() {
        * 
    * * string resource_url = 4; + * * @return The bytes for resourceUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceUrlBytes() { + public com.google.protobuf.ByteString getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -259,6 +290,8 @@ public java.lang.String getResourceUrl() { public static final int PARENT_FIELD_NUMBER = 5; private volatile java.lang.Object parent_; /** + * + * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -272,6 +305,7 @@ public java.lang.String getResourceUrl() {
        * 
    * * string parent = 5; + * * @return The parent. */ @java.lang.Override @@ -280,14 +314,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -301,16 +336,15 @@ public java.lang.String getParent() {
        * 
    * * string parent = 5; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -321,12 +355,15 @@ public java.lang.String getParent() { public static final int DATA_FIELD_NUMBER = 6; private com.google.protobuf.Struct data_; /** + * + * *
        * The content of the resource, in which some sensitive fields are scrubbed
        * away and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; + * * @return Whether the data field is set. */ @java.lang.Override @@ -334,12 +371,15 @@ public boolean hasData() { return data_ != null; } /** + * + * *
        * The content of the resource, in which some sensitive fields are scrubbed
        * away and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; + * * @return The data. */ @java.lang.Override @@ -347,6 +387,8 @@ public com.google.protobuf.Struct getData() { return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_; } /** + * + * *
        * The content of the resource, in which some sensitive fields are scrubbed
        * away and may not be present.
    @@ -360,6 +402,7 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -371,8 +414,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
         }
    @@ -416,8 +458,7 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_);
         }
         if (data_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(6, getData());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getData());
         }
         size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
    @@ -427,27 +468,22 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1p2beta1.Resource)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1p2beta1.Resource other = (com.google.cloud.asset.v1p2beta1.Resource) obj;
    -
    -    if (!getVersion()
    -        .equals(other.getVersion())) return false;
    -    if (!getDiscoveryDocumentUri()
    -        .equals(other.getDiscoveryDocumentUri())) return false;
    -    if (!getDiscoveryName()
    -        .equals(other.getDiscoveryName())) return false;
    -    if (!getResourceUrl()
    -        .equals(other.getResourceUrl())) return false;
    -    if (!getParent()
    -        .equals(other.getParent())) return false;
    +    com.google.cloud.asset.v1p2beta1.Resource other =
    +        (com.google.cloud.asset.v1p2beta1.Resource) obj;
    +
    +    if (!getVersion().equals(other.getVersion())) return false;
    +    if (!getDiscoveryDocumentUri().equals(other.getDiscoveryDocumentUri())) return false;
    +    if (!getDiscoveryName().equals(other.getDiscoveryName())) return false;
    +    if (!getResourceUrl().equals(other.getResourceUrl())) return false;
    +    if (!getParent().equals(other.getParent())) return false;
         if (hasData() != other.hasData()) return false;
         if (hasData()) {
    -      if (!getData()
    -          .equals(other.getData())) return false;
    +      if (!getData().equals(other.getData())) return false;
         }
         if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
    @@ -479,130 +515,136 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1p2beta1.Resource parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1p2beta1.Resource parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1p2beta1.Resource parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1p2beta1.Resource parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1p2beta1.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.asset.v1p2beta1.Resource parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1p2beta1.Resource parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1p2beta1.Resource parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1p2beta1.Resource parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.cloud.asset.v1p2beta1.Resource parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.cloud.asset.v1p2beta1.Resource parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1p2beta1.Resource parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1p2beta1.Resource parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1p2beta1.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);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.Resource prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Representation of a cloud resource.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.Resource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.Resource) com.google.cloud.asset.v1p2beta1.ResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetProto + .internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_Resource_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetProto + .internal_static_google_cloud_asset_v1p2beta1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.Resource.class, com.google.cloud.asset.v1p2beta1.Resource.Builder.class); + com.google.cloud.asset.v1p2beta1.Resource.class, + com.google.cloud.asset.v1p2beta1.Resource.Builder.class); } // Construct using com.google.cloud.asset.v1p2beta1.Resource.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -626,9 +668,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p2beta1.AssetProto + .internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor; } @java.lang.Override @@ -647,7 +689,8 @@ public com.google.cloud.asset.v1p2beta1.Resource build() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.Resource buildPartial() { - com.google.cloud.asset.v1p2beta1.Resource result = new com.google.cloud.asset.v1p2beta1.Resource(this); + com.google.cloud.asset.v1p2beta1.Resource result = + new com.google.cloud.asset.v1p2beta1.Resource(this); result.version_ = version_; result.discoveryDocumentUri_ = discoveryDocumentUri_; result.discoveryName_ = discoveryName_; @@ -666,38 +709,39 @@ public com.google.cloud.asset.v1p2beta1.Resource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p2beta1.Resource) { - return mergeFrom((com.google.cloud.asset.v1p2beta1.Resource)other); + return mergeFrom((com.google.cloud.asset.v1p2beta1.Resource) other); } else { super.mergeFrom(other); return this; @@ -755,44 +799,49 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - version_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - discoveryDocumentUri_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - discoveryName_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - resourceUrl_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - input.readMessage( - getDataFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + version_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + discoveryDocumentUri_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + discoveryName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + resourceUrl_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + input.readMessage(getDataFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -805,18 +854,20 @@ public Builder mergeFrom( private java.lang.Object version_ = ""; /** + * + * *
          * The API version. Example: "v1".
          * 
    * * string version = 1; + * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -825,20 +876,21 @@ public java.lang.String getVersion() { } } /** + * + * *
          * The API version. Example: "v1".
          * 
    * * string version = 1; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -846,54 +898,61 @@ public java.lang.String getVersion() { } } /** + * + * *
          * The API version. Example: "v1".
          * 
    * * string version = 1; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
          * The API version. Example: "v1".
          * 
    * * string version = 1; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
          * The API version. Example: "v1".
          * 
    * * string version = 1; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -901,6 +960,8 @@ public Builder setVersionBytes( private java.lang.Object discoveryDocumentUri_ = ""; /** + * + * *
          * The URL of the discovery document containing the resource's JSON schema.
          * For example:
    @@ -910,13 +971,13 @@ public Builder setVersionBytes(
          * 
    * * string discovery_document_uri = 2; + * * @return The discoveryDocumentUri. */ public java.lang.String getDiscoveryDocumentUri() { java.lang.Object ref = discoveryDocumentUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryDocumentUri_ = s; return s; @@ -925,6 +986,8 @@ public java.lang.String getDiscoveryDocumentUri() { } } /** + * + * *
          * The URL of the discovery document containing the resource's JSON schema.
          * For example:
    @@ -934,15 +997,14 @@ public java.lang.String getDiscoveryDocumentUri() {
          * 
    * * string discovery_document_uri = 2; + * * @return The bytes for discoveryDocumentUri. */ - public com.google.protobuf.ByteString - getDiscoveryDocumentUriBytes() { + public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { java.lang.Object ref = discoveryDocumentUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); discoveryDocumentUri_ = b; return b; } else { @@ -950,6 +1012,8 @@ public java.lang.String getDiscoveryDocumentUri() { } } /** + * + * *
          * The URL of the discovery document containing the resource's JSON schema.
          * For example:
    @@ -959,20 +1023,22 @@ public java.lang.String getDiscoveryDocumentUri() {
          * 
    * * string discovery_document_uri = 2; + * * @param value The discoveryDocumentUri to set. * @return This builder for chaining. */ - public Builder setDiscoveryDocumentUri( - java.lang.String value) { + public Builder setDiscoveryDocumentUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + discoveryDocumentUri_ = value; onChanged(); return this; } /** + * + * *
          * The URL of the discovery document containing the resource's JSON schema.
          * For example:
    @@ -982,15 +1048,18 @@ public Builder setDiscoveryDocumentUri(
          * 
    * * string discovery_document_uri = 2; + * * @return This builder for chaining. */ public Builder clearDiscoveryDocumentUri() { - + discoveryDocumentUri_ = getDefaultInstance().getDiscoveryDocumentUri(); onChanged(); return this; } /** + * + * *
          * The URL of the discovery document containing the resource's JSON schema.
          * For example:
    @@ -1000,16 +1069,16 @@ public Builder clearDiscoveryDocumentUri() {
          * 
    * * string discovery_document_uri = 2; + * * @param value The bytes for discoveryDocumentUri to set. * @return This builder for chaining. */ - public Builder setDiscoveryDocumentUriBytes( - com.google.protobuf.ByteString value) { + public Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + discoveryDocumentUri_ = value; onChanged(); return this; @@ -1017,6 +1086,8 @@ public Builder setDiscoveryDocumentUriBytes( private java.lang.Object discoveryName_ = ""; /** + * + * *
          * The JSON schema name listed in the discovery document.
          * Example: "Project". It will be left unspecified for resources (such as
    @@ -1024,13 +1095,13 @@ public Builder setDiscoveryDocumentUriBytes(
          * 
    * * string discovery_name = 3; + * * @return The discoveryName. */ public java.lang.String getDiscoveryName() { java.lang.Object ref = discoveryName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryName_ = s; return s; @@ -1039,6 +1110,8 @@ public java.lang.String getDiscoveryName() { } } /** + * + * *
          * The JSON schema name listed in the discovery document.
          * Example: "Project". It will be left unspecified for resources (such as
    @@ -1046,15 +1119,14 @@ public java.lang.String getDiscoveryName() {
          * 
    * * string discovery_name = 3; + * * @return The bytes for discoveryName. */ - public com.google.protobuf.ByteString - getDiscoveryNameBytes() { + public com.google.protobuf.ByteString getDiscoveryNameBytes() { java.lang.Object ref = discoveryName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); discoveryName_ = b; return b; } else { @@ -1062,6 +1134,8 @@ public java.lang.String getDiscoveryName() { } } /** + * + * *
          * The JSON schema name listed in the discovery document.
          * Example: "Project". It will be left unspecified for resources (such as
    @@ -1069,20 +1143,22 @@ public java.lang.String getDiscoveryName() {
          * 
    * * string discovery_name = 3; + * * @param value The discoveryName to set. * @return This builder for chaining. */ - public Builder setDiscoveryName( - java.lang.String value) { + public Builder setDiscoveryName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + discoveryName_ = value; onChanged(); return this; } /** + * + * *
          * The JSON schema name listed in the discovery document.
          * Example: "Project". It will be left unspecified for resources (such as
    @@ -1090,15 +1166,18 @@ public Builder setDiscoveryName(
          * 
    * * string discovery_name = 3; + * * @return This builder for chaining. */ public Builder clearDiscoveryName() { - + discoveryName_ = getDefaultInstance().getDiscoveryName(); onChanged(); return this; } /** + * + * *
          * The JSON schema name listed in the discovery document.
          * Example: "Project". It will be left unspecified for resources (such as
    @@ -1106,16 +1185,16 @@ public Builder clearDiscoveryName() {
          * 
    * * string discovery_name = 3; + * * @param value The bytes for discoveryName to set. * @return This builder for chaining. */ - public Builder setDiscoveryNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDiscoveryNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + discoveryName_ = value; onChanged(); return this; @@ -1123,6 +1202,8 @@ public Builder setDiscoveryNameBytes( private java.lang.Object resourceUrl_ = ""; /** + * + * *
          * The REST URL for accessing the resource. An HTTP GET operation using this
          * URL returns the resource itself.
    @@ -1132,13 +1213,13 @@ public Builder setDiscoveryNameBytes(
          * 
    * * string resource_url = 4; + * * @return The resourceUrl. */ public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; @@ -1147,6 +1228,8 @@ public java.lang.String getResourceUrl() { } } /** + * + * *
          * The REST URL for accessing the resource. An HTTP GET operation using this
          * URL returns the resource itself.
    @@ -1156,15 +1239,14 @@ public java.lang.String getResourceUrl() {
          * 
    * * string resource_url = 4; + * * @return The bytes for resourceUrl. */ - public com.google.protobuf.ByteString - getResourceUrlBytes() { + public com.google.protobuf.ByteString getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -1172,6 +1254,8 @@ public java.lang.String getResourceUrl() { } } /** + * + * *
          * The REST URL for accessing the resource. An HTTP GET operation using this
          * URL returns the resource itself.
    @@ -1181,20 +1265,22 @@ public java.lang.String getResourceUrl() {
          * 
    * * string resource_url = 4; + * * @param value The resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrl( - java.lang.String value) { + public Builder setResourceUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceUrl_ = value; onChanged(); return this; } /** + * + * *
          * The REST URL for accessing the resource. An HTTP GET operation using this
          * URL returns the resource itself.
    @@ -1204,15 +1290,18 @@ public Builder setResourceUrl(
          * 
    * * string resource_url = 4; + * * @return This builder for chaining. */ public Builder clearResourceUrl() { - + resourceUrl_ = getDefaultInstance().getResourceUrl(); onChanged(); return this; } /** + * + * *
          * The REST URL for accessing the resource. An HTTP GET operation using this
          * URL returns the resource itself.
    @@ -1222,16 +1311,16 @@ public Builder clearResourceUrl() {
          * 
    * * string resource_url = 4; + * * @param value The bytes for resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceUrl_ = value; onChanged(); return this; @@ -1239,6 +1328,8 @@ public Builder setResourceUrlBytes( private java.lang.Object parent_ = ""; /** + * + * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1252,13 +1343,13 @@ public Builder setResourceUrlBytes(
          * 
    * * string parent = 5; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1267,6 +1358,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1280,15 +1373,14 @@ public java.lang.String getParent() {
          * 
    * * string parent = 5; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1296,6 +1388,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1309,20 +1403,22 @@ public java.lang.String getParent() {
          * 
    * * string parent = 5; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1336,15 +1432,18 @@ public Builder setParent(
          * 
    * * string parent = 5; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1358,16 +1457,16 @@ public Builder clearParent() {
          * 
    * * string parent = 5; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1375,26 +1474,35 @@ public Builder setParentBytes( private com.google.protobuf.Struct data_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> dataBuilder_; + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + dataBuilder_; /** + * + * *
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
          * 
    * * .google.protobuf.Struct data = 6; + * * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** + * + * *
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
          * 
    * * .google.protobuf.Struct data = 6; + * * @return The data. */ public com.google.protobuf.Struct getData() { @@ -1405,6 +1513,8 @@ public com.google.protobuf.Struct getData() { } } /** + * + * *
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1426,6 +1536,8 @@ public Builder setData(com.google.protobuf.Struct value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1433,8 +1545,7 @@ public Builder setData(com.google.protobuf.Struct value) {
          *
          * .google.protobuf.Struct data = 6;
          */
    -    public Builder setData(
    -        com.google.protobuf.Struct.Builder builderForValue) {
    +    public Builder setData(com.google.protobuf.Struct.Builder builderForValue) {
           if (dataBuilder_ == null) {
             data_ = builderForValue.build();
             onChanged();
    @@ -1445,6 +1556,8 @@ public Builder setData(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1455,8 +1568,7 @@ public Builder setData(
         public Builder mergeData(com.google.protobuf.Struct value) {
           if (dataBuilder_ == null) {
             if (data_ != null) {
    -          data_ =
    -            com.google.protobuf.Struct.newBuilder(data_).mergeFrom(value).buildPartial();
    +          data_ = com.google.protobuf.Struct.newBuilder(data_).mergeFrom(value).buildPartial();
             } else {
               data_ = value;
             }
    @@ -1468,6 +1580,8 @@ public Builder mergeData(com.google.protobuf.Struct value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1487,6 +1601,8 @@ public Builder clearData() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1495,11 +1611,13 @@ public Builder clearData() {
          * .google.protobuf.Struct data = 6;
          */
         public com.google.protobuf.Struct.Builder getDataBuilder() {
    -      
    +
           onChanged();
           return getDataFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1511,11 +1629,12 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
           if (dataBuilder_ != null) {
             return dataBuilder_.getMessageOrBuilder();
           } else {
    -        return data_ == null ?
    -            com.google.protobuf.Struct.getDefaultInstance() : data_;
    +        return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_;
           }
         }
         /**
    +     *
    +     *
          * 
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1524,21 +1643,23 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
          * .google.protobuf.Struct data = 6;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
    +            com.google.protobuf.Struct,
    +            com.google.protobuf.Struct.Builder,
    +            com.google.protobuf.StructOrBuilder>
             getDataFieldBuilder() {
           if (dataBuilder_ == null) {
    -        dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
    -                getData(),
    -                getParentForChildren(),
    -                isClean());
    +        dataBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.Struct,
    +                com.google.protobuf.Struct.Builder,
    +                com.google.protobuf.StructOrBuilder>(getData(), getParentForChildren(), isClean());
             data_ = null;
           }
           return dataBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -1548,12 +1669,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.Resource)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.Resource)
       private static final com.google.cloud.asset.v1p2beta1.Resource DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.Resource();
       }
    @@ -1562,27 +1683,27 @@ public static com.google.cloud.asset.v1p2beta1.Resource getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  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 {
    -      Builder builder = newBuilder();
    -      try {
    -        builder.mergeFrom(input, extensionRegistry);
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(builder.buildPartial());
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    -            .setUnfinishedMessage(builder.buildPartial());
    -      }
    -      return builder.buildPartial();
    -    }
    -  };
    +  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 {
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1597,6 +1718,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1p2beta1.Resource getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ResourceOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ResourceOrBuilder.java
    similarity index 81%
    rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ResourceOrBuilder.java
    rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ResourceOrBuilder.java
    index 8e45f66a2bb8..106c7dfff4c7 100644
    --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ResourceOrBuilder.java
    +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/ResourceOrBuilder.java
    @@ -1,33 +1,56 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1p2beta1/assets.proto
     
     package com.google.cloud.asset.v1p2beta1;
     
    -public interface ResourceOrBuilder extends
    +public interface ResourceOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.Resource)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The API version. Example: "v1".
        * 
    * * string version = 1; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
        * The API version. Example: "v1".
        * 
    * * string version = 1; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
        * The URL of the discovery document containing the resource's JSON schema.
        * For example:
    @@ -37,10 +60,13 @@ public interface ResourceOrBuilder extends
        * 
    * * string discovery_document_uri = 2; + * * @return The discoveryDocumentUri. */ java.lang.String getDiscoveryDocumentUri(); /** + * + * *
        * The URL of the discovery document containing the resource's JSON schema.
        * For example:
    @@ -50,12 +76,14 @@ public interface ResourceOrBuilder extends
        * 
    * * string discovery_document_uri = 2; + * * @return The bytes for discoveryDocumentUri. */ - com.google.protobuf.ByteString - getDiscoveryDocumentUriBytes(); + com.google.protobuf.ByteString getDiscoveryDocumentUriBytes(); /** + * + * *
        * The JSON schema name listed in the discovery document.
        * Example: "Project". It will be left unspecified for resources (such as
    @@ -63,10 +91,13 @@ public interface ResourceOrBuilder extends
        * 
    * * string discovery_name = 3; + * * @return The discoveryName. */ java.lang.String getDiscoveryName(); /** + * + * *
        * The JSON schema name listed in the discovery document.
        * Example: "Project". It will be left unspecified for resources (such as
    @@ -74,12 +105,14 @@ public interface ResourceOrBuilder extends
        * 
    * * string discovery_name = 3; + * * @return The bytes for discoveryName. */ - com.google.protobuf.ByteString - getDiscoveryNameBytes(); + com.google.protobuf.ByteString getDiscoveryNameBytes(); /** + * + * *
        * The REST URL for accessing the resource. An HTTP GET operation using this
        * URL returns the resource itself.
    @@ -89,10 +122,13 @@ public interface ResourceOrBuilder extends
        * 
    * * string resource_url = 4; + * * @return The resourceUrl. */ java.lang.String getResourceUrl(); /** + * + * *
        * The REST URL for accessing the resource. An HTTP GET operation using this
        * URL returns the resource itself.
    @@ -102,12 +138,14 @@ public interface ResourceOrBuilder extends
        * 
    * * string resource_url = 4; + * * @return The bytes for resourceUrl. */ - com.google.protobuf.ByteString - getResourceUrlBytes(); + com.google.protobuf.ByteString getResourceUrlBytes(); /** + * + * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -121,10 +159,13 @@ public interface ResourceOrBuilder extends
        * 
    * * string parent = 5; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -138,32 +179,40 @@ public interface ResourceOrBuilder extends
        * 
    * * string parent = 5; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
        * The content of the resource, in which some sensitive fields are scrubbed
        * away and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; + * * @return Whether the data field is set. */ boolean hasData(); /** + * + * *
        * The content of the resource, in which some sensitive fields are scrubbed
        * away and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; + * * @return The data. */ com.google.protobuf.Struct getData(); /** + * + * *
        * The content of the resource, in which some sensitive fields are scrubbed
        * away and may not be present.
    diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAsset.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAsset.java
    similarity index 68%
    rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAsset.java
    rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAsset.java
    index cbde8a23ee49..9851bfadfe78 100644
    --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAsset.java
    +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAsset.java
    @@ -1,9 +1,26 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1p2beta1/assets.proto
     
     package com.google.cloud.asset.v1p2beta1;
     
     /**
    + *
    + *
      * 
      * Temporal asset. In addition to the asset, the temporal asset includes the
      * status of the asset and valid from and to time of it.
    @@ -11,51 +28,55 @@
      *
      * Protobuf type {@code google.cloud.asset.v1p2beta1.TemporalAsset}
      */
    -public final class TemporalAsset extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class TemporalAsset extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.TemporalAsset)
         TemporalAssetOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use TemporalAsset.newBuilder() to construct.
       private TemporalAsset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -  private TemporalAsset() {
    -  }
    +
    +  private TemporalAsset() {}
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(
    -      UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new TemporalAsset();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.cloud.asset.v1p2beta1.AssetProto
    +        .internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_fieldAccessorTable
    +    return com.google.cloud.asset.v1p2beta1.AssetProto
    +        .internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1p2beta1.TemporalAsset.class, com.google.cloud.asset.v1p2beta1.TemporalAsset.Builder.class);
    +            com.google.cloud.asset.v1p2beta1.TemporalAsset.class,
    +            com.google.cloud.asset.v1p2beta1.TemporalAsset.Builder.class);
       }
     
       public static final int WINDOW_FIELD_NUMBER = 1;
       private com.google.cloud.asset.v1p2beta1.TimeWindow window_;
       /**
    +   *
    +   *
        * 
        * The time window when the asset data and state was observed.
        * 
    * * .google.cloud.asset.v1p2beta1.TimeWindow window = 1; + * * @return Whether the window field is set. */ @java.lang.Override @@ -63,18 +84,25 @@ public boolean hasWindow() { return window_ != null; } /** + * + * *
        * The time window when the asset data and state was observed.
        * 
    * * .google.cloud.asset.v1p2beta1.TimeWindow window = 1; + * * @return The window. */ @java.lang.Override public com.google.cloud.asset.v1p2beta1.TimeWindow getWindow() { - return window_ == null ? com.google.cloud.asset.v1p2beta1.TimeWindow.getDefaultInstance() : window_; + return window_ == null + ? com.google.cloud.asset.v1p2beta1.TimeWindow.getDefaultInstance() + : window_; } /** + * + * *
        * The time window when the asset data and state was observed.
        * 
    @@ -89,11 +117,14 @@ public com.google.cloud.asset.v1p2beta1.TimeWindowOrBuilder getWindowOrBuilder() public static final int DELETED_FIELD_NUMBER = 2; private boolean deleted_; /** + * + * *
        * If the asset is deleted or not.
        * 
    * * bool deleted = 2; + * * @return The deleted. */ @java.lang.Override @@ -104,11 +135,14 @@ public boolean getDeleted() { public static final int ASSET_FIELD_NUMBER = 3; private com.google.cloud.asset.v1p2beta1.Asset asset_; /** + * + * *
        * Asset.
        * 
    * * .google.cloud.asset.v1p2beta1.Asset asset = 3; + * * @return Whether the asset field is set. */ @java.lang.Override @@ -116,11 +150,14 @@ public boolean hasAsset() { return asset_ != null; } /** + * + * *
        * Asset.
        * 
    * * .google.cloud.asset.v1p2beta1.Asset asset = 3; + * * @return The asset. */ @java.lang.Override @@ -128,6 +165,8 @@ public com.google.cloud.asset.v1p2beta1.Asset getAsset() { return asset_ == null ? com.google.cloud.asset.v1p2beta1.Asset.getDefaultInstance() : asset_; } /** + * + * *
        * Asset.
        * 
    @@ -140,6 +179,7 @@ public com.google.cloud.asset.v1p2beta1.AssetOrBuilder getAssetOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +191,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (window_ != null) { output.writeMessage(1, getWindow()); } @@ -172,16 +211,13 @@ public int getSerializedSize() { size = 0; if (window_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWindow()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWindow()); } if (deleted_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, deleted_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, deleted_); } if (asset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAsset()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAsset()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -191,24 +227,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.TemporalAsset)) { return super.equals(obj); } - com.google.cloud.asset.v1p2beta1.TemporalAsset other = (com.google.cloud.asset.v1p2beta1.TemporalAsset) obj; + com.google.cloud.asset.v1p2beta1.TemporalAsset other = + (com.google.cloud.asset.v1p2beta1.TemporalAsset) obj; if (hasWindow() != other.hasWindow()) return false; if (hasWindow()) { - if (!getWindow() - .equals(other.getWindow())) return false; + if (!getWindow().equals(other.getWindow())) return false; } - if (getDeleted() - != other.getDeleted()) return false; + if (getDeleted() != other.getDeleted()) return false; if (hasAsset() != other.hasAsset()) return false; if (hasAsset()) { - if (!getAsset() - .equals(other.getAsset())) return false; + if (!getAsset().equals(other.getAsset())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -226,8 +260,7 @@ public int hashCode() { hash = (53 * hash) + getWindow().hashCode(); } hash = (37 * hash) + DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDeleted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeleted()); if (hasAsset()) { hash = (37 * hash) + ASSET_FIELD_NUMBER; hash = (53 * hash) + getAsset().hashCode(); @@ -237,97 +270,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1p2beta1.TemporalAsset parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p2beta1.TemporalAsset parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.TemporalAsset parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.TemporalAsset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.TemporalAsset 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.asset.v1p2beta1.TemporalAsset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.TemporalAsset parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.TemporalAsset parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.TemporalAsset parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.TemporalAsset parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p2beta1.TemporalAsset parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.TemporalAsset parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.TemporalAsset parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.TemporalAsset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.TemporalAsset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Temporal asset. In addition to the asset, the temporal asset includes the
        * status of the asset and valid from and to time of it.
    @@ -335,33 +375,32 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.asset.v1p2beta1.TemporalAsset}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.TemporalAsset)
           com.google.cloud.asset.v1p2beta1.TemporalAssetOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1p2beta1.AssetProto
    +          .internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_fieldAccessorTable
    +      return com.google.cloud.asset.v1p2beta1.AssetProto
    +          .internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1p2beta1.TemporalAsset.class, com.google.cloud.asset.v1p2beta1.TemporalAsset.Builder.class);
    +              com.google.cloud.asset.v1p2beta1.TemporalAsset.class,
    +              com.google.cloud.asset.v1p2beta1.TemporalAsset.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1p2beta1.TemporalAsset.newBuilder()
    -    private Builder() {
    +    private Builder() {}
     
    -    }
    -
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -383,9 +422,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.cloud.asset.v1p2beta1.AssetProto
    +          .internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_descriptor;
         }
     
         @java.lang.Override
    @@ -404,7 +443,8 @@ public com.google.cloud.asset.v1p2beta1.TemporalAsset build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1p2beta1.TemporalAsset buildPartial() {
    -      com.google.cloud.asset.v1p2beta1.TemporalAsset result = new com.google.cloud.asset.v1p2beta1.TemporalAsset(this);
    +      com.google.cloud.asset.v1p2beta1.TemporalAsset result =
    +          new com.google.cloud.asset.v1p2beta1.TemporalAsset(this);
           if (windowBuilder_ == null) {
             result.window_ = window_;
           } else {
    @@ -424,38 +464,39 @@ public com.google.cloud.asset.v1p2beta1.TemporalAsset buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1p2beta1.TemporalAsset) {
    -        return mergeFrom((com.google.cloud.asset.v1p2beta1.TemporalAsset)other);
    +        return mergeFrom((com.google.cloud.asset.v1p2beta1.TemporalAsset) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -499,31 +540,31 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
    -            case 10: {
    -              input.readMessage(
    -                  getWindowFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    +            case 10:
    +              {
    +                input.readMessage(getWindowFieldBuilder().getBuilder(), extensionRegistry);
     
    -              break;
    -            } // case 10
    -            case 16: {
    -              deleted_ = input.readBool();
    +                break;
    +              } // case 10
    +            case 16:
    +              {
    +                deleted_ = input.readBool();
     
    -              break;
    -            } // case 16
    -            case 26: {
    -              input.readMessage(
    -                  getAssetFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    +                break;
    +              } // case 16
    +            case 26:
    +              {
    +                input.readMessage(getAssetFieldBuilder().getBuilder(), extensionRegistry);
     
    -              break;
    -            } // case 26
    -            default: {
    -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                done = true; // was an endgroup tag
    -              }
    -              break;
    -            } // default:
    +                break;
    +              } // case 26
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -536,34 +577,47 @@ public Builder mergeFrom(
     
         private com.google.cloud.asset.v1p2beta1.TimeWindow window_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1p2beta1.TimeWindow, com.google.cloud.asset.v1p2beta1.TimeWindow.Builder, com.google.cloud.asset.v1p2beta1.TimeWindowOrBuilder> windowBuilder_;
    +            com.google.cloud.asset.v1p2beta1.TimeWindow,
    +            com.google.cloud.asset.v1p2beta1.TimeWindow.Builder,
    +            com.google.cloud.asset.v1p2beta1.TimeWindowOrBuilder>
    +        windowBuilder_;
         /**
    +     *
    +     *
          * 
          * The time window when the asset data and state was observed.
          * 
    * * .google.cloud.asset.v1p2beta1.TimeWindow window = 1; + * * @return Whether the window field is set. */ public boolean hasWindow() { return windowBuilder_ != null || window_ != null; } /** + * + * *
          * The time window when the asset data and state was observed.
          * 
    * * .google.cloud.asset.v1p2beta1.TimeWindow window = 1; + * * @return The window. */ public com.google.cloud.asset.v1p2beta1.TimeWindow getWindow() { if (windowBuilder_ == null) { - return window_ == null ? com.google.cloud.asset.v1p2beta1.TimeWindow.getDefaultInstance() : window_; + return window_ == null + ? com.google.cloud.asset.v1p2beta1.TimeWindow.getDefaultInstance() + : window_; } else { return windowBuilder_.getMessage(); } } /** + * + * *
          * The time window when the asset data and state was observed.
          * 
    @@ -584,14 +638,15 @@ public Builder setWindow(com.google.cloud.asset.v1p2beta1.TimeWindow value) { return this; } /** + * + * *
          * The time window when the asset data and state was observed.
          * 
    * * .google.cloud.asset.v1p2beta1.TimeWindow window = 1; */ - public Builder setWindow( - com.google.cloud.asset.v1p2beta1.TimeWindow.Builder builderForValue) { + public Builder setWindow(com.google.cloud.asset.v1p2beta1.TimeWindow.Builder builderForValue) { if (windowBuilder_ == null) { window_ = builderForValue.build(); onChanged(); @@ -602,6 +657,8 @@ public Builder setWindow( return this; } /** + * + * *
          * The time window when the asset data and state was observed.
          * 
    @@ -612,7 +669,9 @@ public Builder mergeWindow(com.google.cloud.asset.v1p2beta1.TimeWindow value) { if (windowBuilder_ == null) { if (window_ != null) { window_ = - com.google.cloud.asset.v1p2beta1.TimeWindow.newBuilder(window_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1p2beta1.TimeWindow.newBuilder(window_) + .mergeFrom(value) + .buildPartial(); } else { window_ = value; } @@ -624,6 +683,8 @@ public Builder mergeWindow(com.google.cloud.asset.v1p2beta1.TimeWindow value) { return this; } /** + * + * *
          * The time window when the asset data and state was observed.
          * 
    @@ -642,6 +703,8 @@ public Builder clearWindow() { return this; } /** + * + * *
          * The time window when the asset data and state was observed.
          * 
    @@ -649,11 +712,13 @@ public Builder clearWindow() { * .google.cloud.asset.v1p2beta1.TimeWindow window = 1; */ public com.google.cloud.asset.v1p2beta1.TimeWindow.Builder getWindowBuilder() { - + onChanged(); return getWindowFieldBuilder().getBuilder(); } /** + * + * *
          * The time window when the asset data and state was observed.
          * 
    @@ -664,11 +729,14 @@ public com.google.cloud.asset.v1p2beta1.TimeWindowOrBuilder getWindowOrBuilder() if (windowBuilder_ != null) { return windowBuilder_.getMessageOrBuilder(); } else { - return window_ == null ? - com.google.cloud.asset.v1p2beta1.TimeWindow.getDefaultInstance() : window_; + return window_ == null + ? com.google.cloud.asset.v1p2beta1.TimeWindow.getDefaultInstance() + : window_; } } /** + * + * *
          * The time window when the asset data and state was observed.
          * 
    @@ -676,26 +744,32 @@ public com.google.cloud.asset.v1p2beta1.TimeWindowOrBuilder getWindowOrBuilder() * .google.cloud.asset.v1p2beta1.TimeWindow window = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.TimeWindow, com.google.cloud.asset.v1p2beta1.TimeWindow.Builder, com.google.cloud.asset.v1p2beta1.TimeWindowOrBuilder> + com.google.cloud.asset.v1p2beta1.TimeWindow, + com.google.cloud.asset.v1p2beta1.TimeWindow.Builder, + com.google.cloud.asset.v1p2beta1.TimeWindowOrBuilder> getWindowFieldBuilder() { if (windowBuilder_ == null) { - windowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.TimeWindow, com.google.cloud.asset.v1p2beta1.TimeWindow.Builder, com.google.cloud.asset.v1p2beta1.TimeWindowOrBuilder>( - getWindow(), - getParentForChildren(), - isClean()); + windowBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p2beta1.TimeWindow, + com.google.cloud.asset.v1p2beta1.TimeWindow.Builder, + com.google.cloud.asset.v1p2beta1.TimeWindowOrBuilder>( + getWindow(), getParentForChildren(), isClean()); window_ = null; } return windowBuilder_; } - private boolean deleted_ ; + private boolean deleted_; /** + * + * *
          * If the asset is deleted or not.
          * 
    * * bool deleted = 2; + * * @return The deleted. */ @java.lang.Override @@ -703,30 +777,36 @@ public boolean getDeleted() { return deleted_; } /** + * + * *
          * If the asset is deleted or not.
          * 
    * * bool deleted = 2; + * * @param value The deleted to set. * @return This builder for chaining. */ public Builder setDeleted(boolean value) { - + deleted_ = value; onChanged(); return this; } /** + * + * *
          * If the asset is deleted or not.
          * 
    * * bool deleted = 2; + * * @return This builder for chaining. */ public Builder clearDeleted() { - + deleted_ = false; onChanged(); return this; @@ -734,34 +814,47 @@ public Builder clearDeleted() { private com.google.cloud.asset.v1p2beta1.Asset asset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Asset, com.google.cloud.asset.v1p2beta1.Asset.Builder, com.google.cloud.asset.v1p2beta1.AssetOrBuilder> assetBuilder_; + com.google.cloud.asset.v1p2beta1.Asset, + com.google.cloud.asset.v1p2beta1.Asset.Builder, + com.google.cloud.asset.v1p2beta1.AssetOrBuilder> + assetBuilder_; /** + * + * *
          * Asset.
          * 
    * * .google.cloud.asset.v1p2beta1.Asset asset = 3; + * * @return Whether the asset field is set. */ public boolean hasAsset() { return assetBuilder_ != null || asset_ != null; } /** + * + * *
          * Asset.
          * 
    * * .google.cloud.asset.v1p2beta1.Asset asset = 3; + * * @return The asset. */ public com.google.cloud.asset.v1p2beta1.Asset getAsset() { if (assetBuilder_ == null) { - return asset_ == null ? com.google.cloud.asset.v1p2beta1.Asset.getDefaultInstance() : asset_; + return asset_ == null + ? com.google.cloud.asset.v1p2beta1.Asset.getDefaultInstance() + : asset_; } else { return assetBuilder_.getMessage(); } } /** + * + * *
          * Asset.
          * 
    @@ -782,14 +875,15 @@ public Builder setAsset(com.google.cloud.asset.v1p2beta1.Asset value) { return this; } /** + * + * *
          * Asset.
          * 
    * * .google.cloud.asset.v1p2beta1.Asset asset = 3; */ - public Builder setAsset( - com.google.cloud.asset.v1p2beta1.Asset.Builder builderForValue) { + public Builder setAsset(com.google.cloud.asset.v1p2beta1.Asset.Builder builderForValue) { if (assetBuilder_ == null) { asset_ = builderForValue.build(); onChanged(); @@ -800,6 +894,8 @@ public Builder setAsset( return this; } /** + * + * *
          * Asset.
          * 
    @@ -810,7 +906,9 @@ public Builder mergeAsset(com.google.cloud.asset.v1p2beta1.Asset value) { if (assetBuilder_ == null) { if (asset_ != null) { asset_ = - com.google.cloud.asset.v1p2beta1.Asset.newBuilder(asset_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1p2beta1.Asset.newBuilder(asset_) + .mergeFrom(value) + .buildPartial(); } else { asset_ = value; } @@ -822,6 +920,8 @@ public Builder mergeAsset(com.google.cloud.asset.v1p2beta1.Asset value) { return this; } /** + * + * *
          * Asset.
          * 
    @@ -840,6 +940,8 @@ public Builder clearAsset() { return this; } /** + * + * *
          * Asset.
          * 
    @@ -847,11 +949,13 @@ public Builder clearAsset() { * .google.cloud.asset.v1p2beta1.Asset asset = 3; */ public com.google.cloud.asset.v1p2beta1.Asset.Builder getAssetBuilder() { - + onChanged(); return getAssetFieldBuilder().getBuilder(); } /** + * + * *
          * Asset.
          * 
    @@ -862,11 +966,14 @@ public com.google.cloud.asset.v1p2beta1.AssetOrBuilder getAssetOrBuilder() { if (assetBuilder_ != null) { return assetBuilder_.getMessageOrBuilder(); } else { - return asset_ == null ? - com.google.cloud.asset.v1p2beta1.Asset.getDefaultInstance() : asset_; + return asset_ == null + ? com.google.cloud.asset.v1p2beta1.Asset.getDefaultInstance() + : asset_; } } /** + * + * *
          * Asset.
          * 
    @@ -874,21 +981,24 @@ public com.google.cloud.asset.v1p2beta1.AssetOrBuilder getAssetOrBuilder() { * .google.cloud.asset.v1p2beta1.Asset asset = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Asset, com.google.cloud.asset.v1p2beta1.Asset.Builder, com.google.cloud.asset.v1p2beta1.AssetOrBuilder> + com.google.cloud.asset.v1p2beta1.Asset, + com.google.cloud.asset.v1p2beta1.Asset.Builder, + com.google.cloud.asset.v1p2beta1.AssetOrBuilder> getAssetFieldBuilder() { if (assetBuilder_ == null) { - assetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Asset, com.google.cloud.asset.v1p2beta1.Asset.Builder, com.google.cloud.asset.v1p2beta1.AssetOrBuilder>( - getAsset(), - getParentForChildren(), - isClean()); + assetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p2beta1.Asset, + com.google.cloud.asset.v1p2beta1.Asset.Builder, + com.google.cloud.asset.v1p2beta1.AssetOrBuilder>( + getAsset(), getParentForChildren(), isClean()); asset_ = null; } return assetBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -898,12 +1008,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.TemporalAsset) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.TemporalAsset) private static final com.google.cloud.asset.v1p2beta1.TemporalAsset DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.TemporalAsset(); } @@ -912,27 +1022,27 @@ public static com.google.cloud.asset.v1p2beta1.TemporalAsset getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TemporalAsset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TemporalAsset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -947,6 +1057,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.TemporalAsset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAssetOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAssetOrBuilder.java similarity index 70% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAssetOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAssetOrBuilder.java index d927836ba421..f2666eaba337 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAssetOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TemporalAssetOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/assets.proto package com.google.cloud.asset.v1p2beta1; -public interface TemporalAssetOrBuilder extends +public interface TemporalAssetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.TemporalAsset) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The time window when the asset data and state was observed.
        * 
    * * .google.cloud.asset.v1p2beta1.TimeWindow window = 1; + * * @return Whether the window field is set. */ boolean hasWindow(); /** + * + * *
        * The time window when the asset data and state was observed.
        * 
    * * .google.cloud.asset.v1p2beta1.TimeWindow window = 1; + * * @return The window. */ com.google.cloud.asset.v1p2beta1.TimeWindow getWindow(); /** + * + * *
        * The time window when the asset data and state was observed.
        * 
    @@ -35,34 +59,45 @@ public interface TemporalAssetOrBuilder extends com.google.cloud.asset.v1p2beta1.TimeWindowOrBuilder getWindowOrBuilder(); /** + * + * *
        * If the asset is deleted or not.
        * 
    * * bool deleted = 2; + * * @return The deleted. */ boolean getDeleted(); /** + * + * *
        * Asset.
        * 
    * * .google.cloud.asset.v1p2beta1.Asset asset = 3; + * * @return Whether the asset field is set. */ boolean hasAsset(); /** + * + * *
        * Asset.
        * 
    * * .google.cloud.asset.v1p2beta1.Asset asset = 3; + * * @return The asset. */ com.google.cloud.asset.v1p2beta1.Asset getAsset(); /** + * + * *
        * Asset.
        * 
    diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindow.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindow.java similarity index 70% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindow.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindow.java index 50376f9c039b..a169a8f496ee 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindow.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindow.java @@ -1,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/assets.proto package com.google.cloud.asset.v1p2beta1; /** + * + * *
      * A time window of (start_time, end_time].
      * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.TimeWindow} */ -public final class TimeWindow extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TimeWindow extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.TimeWindow) TimeWindowOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TimeWindow.newBuilder() to construct. private TimeWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TimeWindow() { - } + + private TimeWindow() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TimeWindow(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetProto + .internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_TimeWindow_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetProto + .internal_static_google_cloud_asset_v1p2beta1_TimeWindow_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.TimeWindow.class, com.google.cloud.asset.v1p2beta1.TimeWindow.Builder.class); + com.google.cloud.asset.v1p2beta1.TimeWindow.class, + com.google.cloud.asset.v1p2beta1.TimeWindow.Builder.class); } public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** + * + * *
        * Start time of the time window (exclusive).
        * 
    * * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -62,11 +83,14 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
        * Start time of the time window (exclusive).
        * 
    * * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -74,6 +98,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
        * Start time of the time window (exclusive).
        * 
    @@ -88,12 +114,15 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
        * End time of the time window (inclusive).
        * Current timestamp if not specified.
        * 
    * * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -101,12 +130,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
        * End time of the time window (inclusive).
        * Current timestamp if not specified.
        * 
    * * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -114,6 +146,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
        * End time of the time window (inclusive).
        * Current timestamp if not specified.
    @@ -127,6 +161,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -138,8 +173,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (startTime_ != null) {
           output.writeMessage(1, getStartTime());
         }
    @@ -156,12 +190,10 @@ public int getSerializedSize() {
     
         size = 0;
         if (startTime_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(1, getStartTime());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime());
         }
         if (endTime_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(2, getEndTime());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime());
         }
         size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
    @@ -171,22 +203,21 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1p2beta1.TimeWindow)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1p2beta1.TimeWindow other = (com.google.cloud.asset.v1p2beta1.TimeWindow) obj;
    +    com.google.cloud.asset.v1p2beta1.TimeWindow other =
    +        (com.google.cloud.asset.v1p2beta1.TimeWindow) obj;
     
         if (hasStartTime() != other.hasStartTime()) return false;
         if (hasStartTime()) {
    -      if (!getStartTime()
    -          .equals(other.getStartTime())) return false;
    +      if (!getStartTime().equals(other.getStartTime())) return false;
         }
         if (hasEndTime() != other.hasEndTime()) return false;
         if (hasEndTime()) {
    -      if (!getEndTime()
    -          .equals(other.getEndTime())) return false;
    +      if (!getEndTime().equals(other.getEndTime())) return false;
         }
         if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
    @@ -212,130 +243,136 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1p2beta1.TimeWindow parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1p2beta1.TimeWindow parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1p2beta1.TimeWindow parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1p2beta1.TimeWindow parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1p2beta1.TimeWindow 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.asset.v1p2beta1.TimeWindow parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1p2beta1.TimeWindow parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1p2beta1.TimeWindow parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1p2beta1.TimeWindow parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.cloud.asset.v1p2beta1.TimeWindow parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.cloud.asset.v1p2beta1.TimeWindow parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1p2beta1.TimeWindow parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1p2beta1.TimeWindow parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1p2beta1.TimeWindow parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.TimeWindow prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * A time window of (start_time, end_time].
        * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.TimeWindow} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.TimeWindow) com.google.cloud.asset.v1p2beta1.TimeWindowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetProto + .internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_TimeWindow_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetProto + .internal_static_google_cloud_asset_v1p2beta1_TimeWindow_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.TimeWindow.class, com.google.cloud.asset.v1p2beta1.TimeWindow.Builder.class); + com.google.cloud.asset.v1p2beta1.TimeWindow.class, + com.google.cloud.asset.v1p2beta1.TimeWindow.Builder.class); } // Construct using com.google.cloud.asset.v1p2beta1.TimeWindow.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -355,9 +392,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p2beta1.AssetProto.internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p2beta1.AssetProto + .internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor; } @java.lang.Override @@ -376,7 +413,8 @@ public com.google.cloud.asset.v1p2beta1.TimeWindow build() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.TimeWindow buildPartial() { - com.google.cloud.asset.v1p2beta1.TimeWindow result = new com.google.cloud.asset.v1p2beta1.TimeWindow(this); + com.google.cloud.asset.v1p2beta1.TimeWindow result = + new com.google.cloud.asset.v1p2beta1.TimeWindow(this); if (startTimeBuilder_ == null) { result.startTime_ = startTime_; } else { @@ -395,38 +433,39 @@ public com.google.cloud.asset.v1p2beta1.TimeWindow buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p2beta1.TimeWindow) { - return mergeFrom((com.google.cloud.asset.v1p2beta1.TimeWindow)other); + return mergeFrom((com.google.cloud.asset.v1p2beta1.TimeWindow) other); } else { super.mergeFrom(other); return this; @@ -467,26 +506,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -499,24 +537,33 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
          * Start time of the time window (exclusive).
          * 
    * * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
          * Start time of the time window (exclusive).
          * 
    * * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -527,6 +574,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
          * Start time of the time window (exclusive).
          * 
    @@ -547,14 +596,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * Start time of the time window (exclusive).
          * 
    * * .google.protobuf.Timestamp start_time = 1; */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -565,6 +615,8 @@ public Builder setStartTime( return this; } /** + * + * *
          * Start time of the time window (exclusive).
          * 
    @@ -575,7 +627,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -587,6 +639,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * Start time of the time window (exclusive).
          * 
    @@ -605,6 +659,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
          * Start time of the time window (exclusive).
          * 
    @@ -612,11 +668,13 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 1; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
          * Start time of the time window (exclusive).
          * 
    @@ -627,11 +685,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
          * Start time of the time window (exclusive).
          * 
    @@ -639,14 +698,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -654,26 +716,35 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
          * End time of the time window (inclusive).
          * Current timestamp if not specified.
          * 
    * * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
          * End time of the time window (inclusive).
          * Current timestamp if not specified.
          * 
    * * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -684,6 +755,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
          * End time of the time window (inclusive).
          * Current timestamp if not specified.
    @@ -705,6 +778,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * End time of the time window (inclusive).
          * Current timestamp if not specified.
    @@ -712,8 +787,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
          *
          * .google.protobuf.Timestamp end_time = 2;
          */
    -    public Builder setEndTime(
    -        com.google.protobuf.Timestamp.Builder builderForValue) {
    +    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
           if (endTimeBuilder_ == null) {
             endTime_ = builderForValue.build();
             onChanged();
    @@ -724,6 +798,8 @@ public Builder setEndTime(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * End time of the time window (inclusive).
          * Current timestamp if not specified.
    @@ -735,7 +811,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
           if (endTimeBuilder_ == null) {
             if (endTime_ != null) {
               endTime_ =
    -            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
    +              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
             } else {
               endTime_ = value;
             }
    @@ -747,6 +823,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * End time of the time window (inclusive).
          * Current timestamp if not specified.
    @@ -766,6 +844,8 @@ public Builder clearEndTime() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * End time of the time window (inclusive).
          * Current timestamp if not specified.
    @@ -774,11 +854,13 @@ public Builder clearEndTime() {
          * .google.protobuf.Timestamp end_time = 2;
          */
         public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
    -      
    +
           onChanged();
           return getEndTimeFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * End time of the time window (inclusive).
          * Current timestamp if not specified.
    @@ -790,11 +872,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
           if (endTimeBuilder_ != null) {
             return endTimeBuilder_.getMessageOrBuilder();
           } else {
    -        return endTime_ == null ?
    -            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
    +        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
           }
         }
         /**
    +     *
    +     *
          * 
          * End time of the time window (inclusive).
          * Current timestamp if not specified.
    @@ -803,21 +886,24 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
          * .google.protobuf.Timestamp end_time = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
    +            com.google.protobuf.Timestamp,
    +            com.google.protobuf.Timestamp.Builder,
    +            com.google.protobuf.TimestampOrBuilder>
             getEndTimeFieldBuilder() {
           if (endTimeBuilder_ == null) {
    -        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    -                getEndTime(),
    -                getParentForChildren(),
    -                isClean());
    +        endTimeBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.Timestamp,
    +                com.google.protobuf.Timestamp.Builder,
    +                com.google.protobuf.TimestampOrBuilder>(
    +                getEndTime(), getParentForChildren(), isClean());
             endTime_ = null;
           }
           return endTimeBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -827,12 +913,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.TimeWindow)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.TimeWindow)
       private static final com.google.cloud.asset.v1p2beta1.TimeWindow DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.TimeWindow();
       }
    @@ -841,27 +927,27 @@ public static com.google.cloud.asset.v1p2beta1.TimeWindow getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public TimeWindow parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      Builder builder = newBuilder();
    -      try {
    -        builder.mergeFrom(input, extensionRegistry);
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(builder.buildPartial());
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    -            .setUnfinishedMessage(builder.buildPartial());
    -      }
    -      return builder.buildPartial();
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public TimeWindow parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -876,6 +962,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1p2beta1.TimeWindow getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindowOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindowOrBuilder.java
    similarity index 70%
    rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindowOrBuilder.java
    rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindowOrBuilder.java
    index c80313df9f9c..2b5701c7df21 100644
    --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindowOrBuilder.java
    +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/TimeWindowOrBuilder.java
    @@ -1,31 +1,55 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1p2beta1/assets.proto
     
     package com.google.cloud.asset.v1p2beta1;
     
    -public interface TimeWindowOrBuilder extends
    +public interface TimeWindowOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.TimeWindow)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * Start time of the time window (exclusive).
        * 
    * * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
        * Start time of the time window (exclusive).
        * 
    * * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
        * Start time of the time window (exclusive).
        * 
    @@ -35,26 +59,34 @@ public interface TimeWindowOrBuilder extends com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
        * End time of the time window (inclusive).
        * Current timestamp if not specified.
        * 
    * * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
        * End time of the time window (inclusive).
        * Current timestamp if not specified.
        * 
    * * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
        * End time of the time window (inclusive).
        * Current timestamp if not specified.
    diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequest.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequest.java
    similarity index 70%
    rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequest.java
    rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequest.java
    index 48ff1c4dc9a1..698bef635eb2 100644
    --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequest.java
    +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequest.java
    @@ -1,55 +1,75 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1p2beta1/asset_service.proto
     
     package com.google.cloud.asset.v1p2beta1;
     
     /**
    + *
    + *
      * 
      * Update asset feed request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.UpdateFeedRequest} */ -public final class UpdateFeedRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateFeedRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p2beta1.UpdateFeedRequest) UpdateFeedRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateFeedRequest.newBuilder() to construct. private UpdateFeedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateFeedRequest() { - } + + private UpdateFeedRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateFeedRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.class, com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.Builder.class); + com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.class, + com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.Builder.class); } public static final int FEED_FIELD_NUMBER = 1; private com.google.cloud.asset.v1p2beta1.Feed feed_; /** + * + * *
        * Required. The new values of feed details. It must match an existing feed and the
        * field `name` must be in the format of:
    @@ -58,7 +78,9 @@ protected java.lang.Object newInstance(
        * organizations/organization_number/feeds/feed_id.
        * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the feed field is set. */ @java.lang.Override @@ -66,6 +88,8 @@ public boolean hasFeed() { return feed_ != null; } /** + * + * *
        * Required. The new values of feed details. It must match an existing feed and the
        * field `name` must be in the format of:
    @@ -74,7 +98,9 @@ public boolean hasFeed() {
        * organizations/organization_number/feeds/feed_id.
        * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The feed. */ @java.lang.Override @@ -82,6 +108,8 @@ public com.google.cloud.asset.v1p2beta1.Feed getFeed() { return feed_ == null ? com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance() : feed_; } /** + * + * *
        * Required. The new values of feed details. It must match an existing feed and the
        * field `name` must be in the format of:
    @@ -90,7 +118,8 @@ public com.google.cloud.asset.v1p2beta1.Feed getFeed() {
        * organizations/organization_number/feeds/feed_id.
        * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedOrBuilder() { @@ -100,13 +129,17 @@ public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
        * Required. Only updates the `feed` fields indicated by this mask.
        * The field mask must not be empty, and it must not contain fields that
        * are immutable or only set by the server.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -114,13 +147,17 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
        * Required. Only updates the `feed` fields indicated by this mask.
        * The field mask must not be empty, and it must not contain fields that
        * are immutable or only set by the server.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -128,13 +165,16 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
        * Required. Only updates the `feed` fields indicated by this mask.
        * The field mask must not be empty, and it must not contain fields that
        * are immutable or only set by the server.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -142,6 +182,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +194,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (feed_ != null) { output.writeMessage(1, getFeed()); } @@ -171,12 +211,10 @@ public int getSerializedSize() { size = 0; if (feed_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getFeed()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFeed()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -186,22 +224,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p2beta1.UpdateFeedRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1p2beta1.UpdateFeedRequest other = (com.google.cloud.asset.v1p2beta1.UpdateFeedRequest) obj; + com.google.cloud.asset.v1p2beta1.UpdateFeedRequest other = + (com.google.cloud.asset.v1p2beta1.UpdateFeedRequest) obj; if (hasFeed() != other.hasFeed()) return false; if (hasFeed()) { - if (!getFeed() - .equals(other.getFeed())) return false; + if (!getFeed().equals(other.getFeed())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -228,129 +265,135 @@ public int hashCode() { } public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest 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.asset.v1p2beta1.UpdateFeedRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p2beta1.UpdateFeedRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Update asset feed request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p2beta1.UpdateFeedRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p2beta1.UpdateFeedRequest) com.google.cloud.asset.v1p2beta1.UpdateFeedRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_fieldAccessorTable + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.class, com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.Builder.class); + com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.class, + com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.Builder.class); } // Construct using com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +413,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p2beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor; } @java.lang.Override @@ -391,7 +434,8 @@ public com.google.cloud.asset.v1p2beta1.UpdateFeedRequest build() { @java.lang.Override public com.google.cloud.asset.v1p2beta1.UpdateFeedRequest buildPartial() { - com.google.cloud.asset.v1p2beta1.UpdateFeedRequest result = new com.google.cloud.asset.v1p2beta1.UpdateFeedRequest(this); + com.google.cloud.asset.v1p2beta1.UpdateFeedRequest result = + new com.google.cloud.asset.v1p2beta1.UpdateFeedRequest(this); if (feedBuilder_ == null) { result.feed_ = feed_; } else { @@ -410,38 +454,39 @@ public com.google.cloud.asset.v1p2beta1.UpdateFeedRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p2beta1.UpdateFeedRequest) { - return mergeFrom((com.google.cloud.asset.v1p2beta1.UpdateFeedRequest)other); + return mergeFrom((com.google.cloud.asset.v1p2beta1.UpdateFeedRequest) other); } else { super.mergeFrom(other); return this; @@ -449,7 +494,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p2beta1.UpdateFeedRequest other) { - if (other == com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.getDefaultInstance()) + return this; if (other.hasFeed()) { mergeFeed(other.getFeed()); } @@ -482,26 +528,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getFeedFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage(getFeedFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -514,8 +559,13 @@ public Builder mergeFrom( private com.google.cloud.asset.v1p2beta1.Feed feed_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Feed, com.google.cloud.asset.v1p2beta1.Feed.Builder, com.google.cloud.asset.v1p2beta1.FeedOrBuilder> feedBuilder_; + com.google.cloud.asset.v1p2beta1.Feed, + com.google.cloud.asset.v1p2beta1.Feed.Builder, + com.google.cloud.asset.v1p2beta1.FeedOrBuilder> + feedBuilder_; /** + * + * *
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -524,13 +574,17 @@ public Builder mergeFrom(
          * organizations/organization_number/feeds/feed_id.
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the feed field is set. */ public boolean hasFeed() { return feedBuilder_ != null || feed_ != null; } /** + * + * *
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -539,7 +593,9 @@ public boolean hasFeed() {
          * organizations/organization_number/feeds/feed_id.
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The feed. */ public com.google.cloud.asset.v1p2beta1.Feed getFeed() { @@ -550,6 +606,8 @@ public com.google.cloud.asset.v1p2beta1.Feed getFeed() { } } /** + * + * *
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -558,7 +616,8 @@ public com.google.cloud.asset.v1p2beta1.Feed getFeed() {
          * organizations/organization_number/feeds/feed_id.
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFeed(com.google.cloud.asset.v1p2beta1.Feed value) { if (feedBuilder_ == null) { @@ -574,6 +633,8 @@ public Builder setFeed(com.google.cloud.asset.v1p2beta1.Feed value) { return this; } /** + * + * *
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -582,10 +643,10 @@ public Builder setFeed(com.google.cloud.asset.v1p2beta1.Feed value) {
          * organizations/organization_number/feeds/feed_id.
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setFeed( - com.google.cloud.asset.v1p2beta1.Feed.Builder builderForValue) { + public Builder setFeed(com.google.cloud.asset.v1p2beta1.Feed.Builder builderForValue) { if (feedBuilder_ == null) { feed_ = builderForValue.build(); onChanged(); @@ -596,6 +657,8 @@ public Builder setFeed( return this; } /** + * + * *
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -604,13 +667,16 @@ public Builder setFeed(
          * organizations/organization_number/feeds/feed_id.
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFeed(com.google.cloud.asset.v1p2beta1.Feed value) { if (feedBuilder_ == null) { if (feed_ != null) { feed_ = - com.google.cloud.asset.v1p2beta1.Feed.newBuilder(feed_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1p2beta1.Feed.newBuilder(feed_) + .mergeFrom(value) + .buildPartial(); } else { feed_ = value; } @@ -622,6 +688,8 @@ public Builder mergeFeed(com.google.cloud.asset.v1p2beta1.Feed value) { return this; } /** + * + * *
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -630,7 +698,8 @@ public Builder mergeFeed(com.google.cloud.asset.v1p2beta1.Feed value) {
          * organizations/organization_number/feeds/feed_id.
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFeed() { if (feedBuilder_ == null) { @@ -644,6 +713,8 @@ public Builder clearFeed() { return this; } /** + * + * *
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -652,14 +723,17 @@ public Builder clearFeed() {
          * organizations/organization_number/feeds/feed_id.
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.asset.v1p2beta1.Feed.Builder getFeedBuilder() { - + onChanged(); return getFeedFieldBuilder().getBuilder(); } /** + * + * *
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -668,17 +742,19 @@ public com.google.cloud.asset.v1p2beta1.Feed.Builder getFeedBuilder() {
          * organizations/organization_number/feeds/feed_id.
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedOrBuilder() { if (feedBuilder_ != null) { return feedBuilder_.getMessageOrBuilder(); } else { - return feed_ == null ? - com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance() : feed_; + return feed_ == null ? com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance() : feed_; } } /** + * + * *
          * Required. The new values of feed details. It must match an existing feed and the
          * field `name` must be in the format of:
    @@ -687,17 +763,21 @@ public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedOrBuilder() {
          * organizations/organization_number/feeds/feed_id.
          * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Feed, com.google.cloud.asset.v1p2beta1.Feed.Builder, com.google.cloud.asset.v1p2beta1.FeedOrBuilder> + com.google.cloud.asset.v1p2beta1.Feed, + com.google.cloud.asset.v1p2beta1.Feed.Builder, + com.google.cloud.asset.v1p2beta1.FeedOrBuilder> getFeedFieldBuilder() { if (feedBuilder_ == null) { - feedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p2beta1.Feed, com.google.cloud.asset.v1p2beta1.Feed.Builder, com.google.cloud.asset.v1p2beta1.FeedOrBuilder>( - getFeed(), - getParentForChildren(), - isClean()); + feedBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p2beta1.Feed, + com.google.cloud.asset.v1p2beta1.Feed.Builder, + com.google.cloud.asset.v1p2beta1.FeedOrBuilder>( + getFeed(), getParentForChildren(), isClean()); feed_ = null; } return feedBuilder_; @@ -705,45 +785,61 @@ public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -759,16 +855,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -779,19 +877,22 @@ public Builder setUpdateMask( return this; } /** + * + * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -803,13 +904,16 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -823,61 +927,74 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
          * Required. Only updates the `feed` fields indicated by this mask.
          * The field mask must not be empty, and it must not contain fields that
          * are immutable or only set by the server.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -887,12 +1004,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p2beta1.UpdateFeedRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p2beta1.UpdateFeedRequest) private static final com.google.cloud.asset.v1p2beta1.UpdateFeedRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p2beta1.UpdateFeedRequest(); } @@ -901,27 +1018,27 @@ public static com.google.cloud.asset.v1p2beta1.UpdateFeedRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateFeedRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFeedRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -936,6 +1053,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p2beta1.UpdateFeedRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequestOrBuilder.java similarity index 73% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequestOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequestOrBuilder.java index dc99969d8825..f47a2da67b7f 100644 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/UpdateFeedRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p2beta1/asset_service.proto package com.google.cloud.asset.v1p2beta1; -public interface UpdateFeedRequestOrBuilder extends +public interface UpdateFeedRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.UpdateFeedRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The new values of feed details. It must match an existing feed and the
        * field `name` must be in the format of:
    @@ -16,11 +34,15 @@ public interface UpdateFeedRequestOrBuilder extends
        * organizations/organization_number/feeds/feed_id.
        * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the feed field is set. */ boolean hasFeed(); /** + * + * *
        * Required. The new values of feed details. It must match an existing feed and the
        * field `name` must be in the format of:
    @@ -29,11 +51,15 @@ public interface UpdateFeedRequestOrBuilder extends
        * organizations/organization_number/feeds/feed_id.
        * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The feed. */ com.google.cloud.asset.v1p2beta1.Feed getFeed(); /** + * + * *
        * Required. The new values of feed details. It must match an existing feed and the
        * field `name` must be in the format of:
    @@ -42,40 +68,52 @@ public interface UpdateFeedRequestOrBuilder extends
        * organizations/organization_number/feeds/feed_id.
        * 
    * - * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.asset.v1p2beta1.Feed feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedOrBuilder(); /** + * + * *
        * Required. Only updates the `feed` fields indicated by this mask.
        * The field mask must not be empty, and it must not contain fields that
        * are immutable or only set by the server.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
        * Required. Only updates the `feed` fields indicated by this mask.
        * The field mask must not be empty, and it must not contain fields that
        * are immutable or only set by the server.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
        * Required. Only updates the `feed` fields indicated by this mask.
        * The field mask must not be empty, and it must not contain fields that
        * are immutable or only set by the server.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/proto/google/cloud/asset/v1p2beta1/asset_service.proto b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/proto/google/cloud/asset/v1p2beta1/asset_service.proto similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/proto/google/cloud/asset/v1p2beta1/asset_service.proto rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/proto/google/cloud/asset/v1p2beta1/asset_service.proto diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/proto/google/cloud/asset/v1p2beta1/assets.proto b/java-asset/proto-google-cloud-asset-v1p2beta1/src/main/proto/google/cloud/asset/v1p2beta1/assets.proto similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/proto/google/cloud/asset/v1p2beta1/assets.proto rename to java-asset/proto-google-cloud-asset-v1p2beta1/src/main/proto/google/cloud/asset/v1p2beta1/assets.proto diff --git a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Asset.java b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Asset.java similarity index 74% rename from owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Asset.java rename to java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Asset.java index 995bb4b72a66..2e171f14a70f 100644 --- a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Asset.java +++ b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Asset.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p5beta1/assets.proto package com.google.cloud.asset.v1p5beta1; /** + * + * *
      * Cloud asset. This includes all Google Cloud Platform resources,
      * Cloud IAM policies, and other non-GCP assets.
    @@ -11,15 +28,16 @@
      *
      * Protobuf type {@code google.cloud.asset.v1p5beta1.Asset}
      */
    -public final class Asset extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class Asset extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p5beta1.Asset)
         AssetOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use Asset.newBuilder() to construct.
       private Asset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private Asset() {
         name_ = "";
         assetType_ = "";
    @@ -29,39 +47,43 @@ private Asset() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(
    -      UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new Asset();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.cloud.asset.v1p5beta1.AssetProto.internal_static_google_cloud_asset_v1p5beta1_Asset_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.cloud.asset.v1p5beta1.AssetProto
    +        .internal_static_google_cloud_asset_v1p5beta1_Asset_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1p5beta1.AssetProto.internal_static_google_cloud_asset_v1p5beta1_Asset_fieldAccessorTable
    +    return com.google.cloud.asset.v1p5beta1.AssetProto
    +        .internal_static_google_cloud_asset_v1p5beta1_Asset_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1p5beta1.Asset.class, com.google.cloud.asset.v1p5beta1.Asset.Builder.class);
    +            com.google.cloud.asset.v1p5beta1.Asset.class,
    +            com.google.cloud.asset.v1p5beta1.Asset.Builder.class);
       }
     
       private int accessContextPolicyCase_ = 0;
       private java.lang.Object accessContextPolicy_;
    +
       public enum AccessContextPolicyCase
    -      implements com.google.protobuf.Internal.EnumLite,
    +      implements
    +          com.google.protobuf.Internal.EnumLite,
               com.google.protobuf.AbstractMessage.InternalOneOfEnum {
         ACCESS_POLICY(7),
         ACCESS_LEVEL(8),
         SERVICE_PERIMETER(9),
         ACCESSCONTEXTPOLICY_NOT_SET(0);
         private final int value;
    +
         private AccessContextPolicyCase(int value) {
           this.value = value;
         }
    @@ -77,27 +99,33 @@ public static AccessContextPolicyCase valueOf(int value) {
     
         public static AccessContextPolicyCase forNumber(int value) {
           switch (value) {
    -        case 7: return ACCESS_POLICY;
    -        case 8: return ACCESS_LEVEL;
    -        case 9: return SERVICE_PERIMETER;
    -        case 0: return ACCESSCONTEXTPOLICY_NOT_SET;
    -        default: return null;
    +        case 7:
    +          return ACCESS_POLICY;
    +        case 8:
    +          return ACCESS_LEVEL;
    +        case 9:
    +          return SERVICE_PERIMETER;
    +        case 0:
    +          return ACCESSCONTEXTPOLICY_NOT_SET;
    +        default:
    +          return null;
           }
         }
    +
         public int getNumber() {
           return this.value;
         }
       };
     
    -  public AccessContextPolicyCase
    -  getAccessContextPolicyCase() {
    -    return AccessContextPolicyCase.forNumber(
    -        accessContextPolicyCase_);
    +  public AccessContextPolicyCase getAccessContextPolicyCase() {
    +    return AccessContextPolicyCase.forNumber(accessContextPolicyCase_);
       }
     
       public static final int NAME_FIELD_NUMBER = 1;
       private volatile java.lang.Object name_;
       /**
    +   *
    +   *
        * 
        * The full name of the asset. For example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -107,6 +135,7 @@ public int getNumber() {
        * 
    * * string name = 1; + * * @return The name. */ @java.lang.Override @@ -115,14 +144,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
        * The full name of the asset. For example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -132,16 +162,15 @@ public java.lang.String getName() {
        * 
    * * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -152,11 +181,14 @@ public java.lang.String getName() { public static final int ASSET_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object assetType_; /** + * + * *
        * Type of the asset. Example: "compute.googleapis.com/Disk".
        * 
    * * string asset_type = 2; + * * @return The assetType. */ @java.lang.Override @@ -165,29 +197,29 @@ public java.lang.String getAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; } } /** + * + * *
        * Type of the asset. Example: "compute.googleapis.com/Disk".
        * 
    * * string asset_type = 2; + * * @return The bytes for assetType. */ @java.lang.Override - public com.google.protobuf.ByteString - getAssetTypeBytes() { + public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetType_ = b; return b; } else { @@ -198,11 +230,14 @@ public java.lang.String getAssetType() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.asset.v1p5beta1.Resource resource_; /** + * + * *
        * Representation of the resource.
        * 
    * * .google.cloud.asset.v1p5beta1.Resource resource = 3; + * * @return Whether the resource field is set. */ @java.lang.Override @@ -210,18 +245,25 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
        * Representation of the resource.
        * 
    * * .google.cloud.asset.v1p5beta1.Resource resource = 3; + * * @return The resource. */ @java.lang.Override public com.google.cloud.asset.v1p5beta1.Resource getResource() { - return resource_ == null ? com.google.cloud.asset.v1p5beta1.Resource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.asset.v1p5beta1.Resource.getDefaultInstance() + : resource_; } /** + * + * *
        * Representation of the resource.
        * 
    @@ -236,12 +278,15 @@ public com.google.cloud.asset.v1p5beta1.ResourceOrBuilder getResourceOrBuilder() public static final int IAM_POLICY_FIELD_NUMBER = 4; private com.google.iam.v1.Policy iamPolicy_; /** + * + * *
        * Representation of the actual Cloud IAM policy set on a cloud resource. For
        * each resource, there must be at most one Cloud IAM policy set on it.
        * 
    * * .google.iam.v1.Policy iam_policy = 4; + * * @return Whether the iamPolicy field is set. */ @java.lang.Override @@ -249,12 +294,15 @@ public boolean hasIamPolicy() { return iamPolicy_ != null; } /** + * + * *
        * Representation of the actual Cloud IAM policy set on a cloud resource. For
        * each resource, there must be at most one Cloud IAM policy set on it.
        * 
    * * .google.iam.v1.Policy iam_policy = 4; + * * @return The iamPolicy. */ @java.lang.Override @@ -262,6 +310,8 @@ public com.google.iam.v1.Policy getIamPolicy() { return iamPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_; } /** + * + * *
        * Representation of the actual Cloud IAM policy set on a cloud resource. For
        * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -277,6 +327,8 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
       public static final int ORG_POLICY_FIELD_NUMBER = 6;
       private java.util.List orgPolicy_;
       /**
    +   *
    +   *
        * 
        * Representation of the Cloud Organization Policy set on an asset. For each
        * asset, there could be multiple Organization policies with different
    @@ -290,6 +342,8 @@ public java.util.List getOrgPolicyList() {
         return orgPolicy_;
       }
       /**
    +   *
    +   *
        * 
        * Representation of the Cloud Organization Policy set on an asset. For each
        * asset, there could be multiple Organization policies with different
    @@ -299,11 +353,13 @@ public java.util.List getOrgPolicyList() {
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
       @java.lang.Override
    -  public java.util.List 
    +  public java.util.List
           getOrgPolicyOrBuilderList() {
         return orgPolicy_;
       }
       /**
    +   *
    +   *
        * 
        * Representation of the Cloud Organization Policy set on an asset. For each
        * asset, there could be multiple Organization policies with different
    @@ -317,6 +373,8 @@ public int getOrgPolicyCount() {
         return orgPolicy_.size();
       }
       /**
    +   *
    +   *
        * 
        * Representation of the Cloud Organization Policy set on an asset. For each
        * asset, there could be multiple Organization policies with different
    @@ -330,6 +388,8 @@ public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) {
         return orgPolicy_.get(index);
       }
       /**
    +   *
    +   *
        * 
        * Representation of the Cloud Organization Policy set on an asset. For each
        * asset, there could be multiple Organization policies with different
    @@ -339,14 +399,14 @@ public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) {
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
       @java.lang.Override
    -  public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
    -      int index) {
    +  public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int index) {
         return orgPolicy_.get(index);
       }
     
       public static final int ACCESS_POLICY_FIELD_NUMBER = 7;
       /**
        * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    +   *
        * @return Whether the accessPolicy field is set.
        */
       @java.lang.Override
    @@ -355,22 +415,22 @@ public boolean hasAccessPolicy() {
       }
       /**
        * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    +   *
        * @return The accessPolicy.
        */
       @java.lang.Override
       public com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy() {
         if (accessContextPolicyCase_ == 7) {
    -       return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_;
    +      return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_;
         }
         return com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance();
       }
    -  /**
    -   * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    -   */
    +  /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */
       @java.lang.Override
    -  public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAccessPolicyOrBuilder() {
    +  public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder
    +      getAccessPolicyOrBuilder() {
         if (accessContextPolicyCase_ == 7) {
    -       return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_;
    +      return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_;
         }
         return com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance();
       }
    @@ -378,6 +438,7 @@ public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAcce
       public static final int ACCESS_LEVEL_FIELD_NUMBER = 8;
       /**
        * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    +   *
        * @return Whether the accessLevel field is set.
        */
       @java.lang.Override
    @@ -386,22 +447,22 @@ public boolean hasAccessLevel() {
       }
       /**
        * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    +   *
        * @return The accessLevel.
        */
       @java.lang.Override
       public com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel() {
         if (accessContextPolicyCase_ == 8) {
    -       return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_;
    +      return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_;
         }
         return com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance();
       }
    -  /**
    -   * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    -   */
    +  /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */
       @java.lang.Override
    -  public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAccessLevelOrBuilder() {
    +  public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder
    +      getAccessLevelOrBuilder() {
         if (accessContextPolicyCase_ == 8) {
    -       return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_;
    +      return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_;
         }
         return com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance();
       }
    @@ -409,6 +470,7 @@ public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAcces
       public static final int SERVICE_PERIMETER_FIELD_NUMBER = 9;
       /**
        * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
    +   *
        * @return Whether the servicePerimeter field is set.
        */
       @java.lang.Override
    @@ -417,12 +479,13 @@ public boolean hasServicePerimeter() {
       }
       /**
        * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
    +   *
        * @return The servicePerimeter.
        */
       @java.lang.Override
       public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter() {
         if (accessContextPolicyCase_ == 9) {
    -       return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_;
    +      return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_;
         }
         return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
       }
    @@ -430,9 +493,10 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePe
        * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
        */
       @java.lang.Override
    -  public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder getServicePerimeterOrBuilder() {
    +  public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder
    +      getServicePerimeterOrBuilder() {
         if (accessContextPolicyCase_ == 9) {
    -       return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_;
    +      return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_;
         }
         return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
       }
    @@ -440,6 +504,8 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder get
       public static final int ANCESTORS_FIELD_NUMBER = 10;
       private com.google.protobuf.LazyStringList ancestors_;
       /**
    +   *
    +   *
        * 
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -449,13 +515,15 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder get
        * 
    * * repeated string ancestors = 10; + * * @return A list containing the ancestors. */ - public com.google.protobuf.ProtocolStringList - getAncestorsList() { + public com.google.protobuf.ProtocolStringList getAncestorsList() { return ancestors_; } /** + * + * *
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -465,12 +533,15 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder get
        * 
    * * repeated string ancestors = 10; + * * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); } /** + * + * *
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -480,6 +551,7 @@ public int getAncestorsCount() {
        * 
    * * repeated string ancestors = 10; + * * @param index The index of the element to return. * @return The ancestors at the given index. */ @@ -487,6 +559,8 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** + * + * *
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -496,15 +570,16 @@ public java.lang.String getAncestors(int index) {
        * 
    * * repeated string ancestors = 10; + * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - public com.google.protobuf.ByteString - getAncestorsBytes(int index) { + public com.google.protobuf.ByteString getAncestorsBytes(int index) { return ancestors_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -516,8 +591,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -534,13 +608,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(6, orgPolicy_.get(i)); } if (accessContextPolicyCase_ == 7) { - output.writeMessage(7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); + output.writeMessage( + 7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); } if (accessContextPolicyCase_ == 8) { - output.writeMessage(8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); + output.writeMessage( + 8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); } if (accessContextPolicyCase_ == 9) { - output.writeMessage(9, (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); + output.writeMessage( + 9, (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); } for (int i = 0; i < ancestors_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, ancestors_.getRaw(i)); @@ -561,28 +638,29 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, assetType_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } if (iamPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getIamPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIamPolicy()); } for (int i = 0; i < orgPolicy_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, orgPolicy_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, orgPolicy_.get(i)); } if (accessContextPolicyCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); } if (accessContextPolicyCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); } if (accessContextPolicyCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, + (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); } { int dataSize = 0; @@ -600,44 +678,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p5beta1.Asset)) { return super.equals(obj); } com.google.cloud.asset.v1p5beta1.Asset other = (com.google.cloud.asset.v1p5beta1.Asset) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getAssetType() - .equals(other.getAssetType())) return false; + if (!getName().equals(other.getName())) return false; + if (!getAssetType().equals(other.getAssetType())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; } if (hasIamPolicy() != other.hasIamPolicy()) return false; if (hasIamPolicy()) { - if (!getIamPolicy() - .equals(other.getIamPolicy())) return false; + if (!getIamPolicy().equals(other.getIamPolicy())) return false; } - if (!getOrgPolicyList() - .equals(other.getOrgPolicyList())) return false; - if (!getAncestorsList() - .equals(other.getAncestorsList())) return false; + if (!getOrgPolicyList().equals(other.getOrgPolicyList())) return false; + if (!getAncestorsList().equals(other.getAncestorsList())) return false; if (!getAccessContextPolicyCase().equals(other.getAccessContextPolicyCase())) return false; switch (accessContextPolicyCase_) { case 7: - if (!getAccessPolicy() - .equals(other.getAccessPolicy())) return false; + if (!getAccessPolicy().equals(other.getAccessPolicy())) return false; break; case 8: - if (!getAccessLevel() - .equals(other.getAccessLevel())) return false; + if (!getAccessLevel().equals(other.getAccessLevel())) return false; break; case 9: - if (!getServicePerimeter() - .equals(other.getServicePerimeter())) return false; + if (!getServicePerimeter().equals(other.getServicePerimeter())) return false; break; case 0: default: @@ -694,97 +763,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1p5beta1.Asset parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p5beta1.Asset parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p5beta1.Asset parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p5beta1.Asset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p5beta1.Asset 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.asset.v1p5beta1.Asset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p5beta1.Asset parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p5beta1.Asset parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p5beta1.Asset parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p5beta1.Asset parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p5beta1.Asset parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p5beta1.Asset parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p5beta1.Asset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p5beta1.Asset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Cloud asset. This includes all Google Cloud Platform resources,
        * Cloud IAM policies, and other non-GCP assets.
    @@ -792,33 +868,32 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.asset.v1p5beta1.Asset}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p5beta1.Asset)
           com.google.cloud.asset.v1p5beta1.AssetOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1p5beta1.AssetProto.internal_static_google_cloud_asset_v1p5beta1_Asset_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1p5beta1.AssetProto
    +          .internal_static_google_cloud_asset_v1p5beta1_Asset_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1p5beta1.AssetProto.internal_static_google_cloud_asset_v1p5beta1_Asset_fieldAccessorTable
    +      return com.google.cloud.asset.v1p5beta1.AssetProto
    +          .internal_static_google_cloud_asset_v1p5beta1_Asset_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1p5beta1.Asset.class, com.google.cloud.asset.v1p5beta1.Asset.Builder.class);
    +              com.google.cloud.asset.v1p5beta1.Asset.class,
    +              com.google.cloud.asset.v1p5beta1.Asset.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1p5beta1.Asset.newBuilder()
    -    private Builder() {
    -
    -    }
    +    private Builder() {}
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -862,9 +937,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.cloud.asset.v1p5beta1.AssetProto.internal_static_google_cloud_asset_v1p5beta1_Asset_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.cloud.asset.v1p5beta1.AssetProto
    +          .internal_static_google_cloud_asset_v1p5beta1_Asset_descriptor;
         }
     
         @java.lang.Override
    @@ -883,7 +958,8 @@ public com.google.cloud.asset.v1p5beta1.Asset build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1p5beta1.Asset buildPartial() {
    -      com.google.cloud.asset.v1p5beta1.Asset result = new com.google.cloud.asset.v1p5beta1.Asset(this);
    +      com.google.cloud.asset.v1p5beta1.Asset result =
    +          new com.google.cloud.asset.v1p5beta1.Asset(this);
           int from_bitField0_ = bitField0_;
           result.name_ = name_;
           result.assetType_ = assetType_;
    @@ -941,38 +1017,39 @@ public com.google.cloud.asset.v1p5beta1.Asset buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1p5beta1.Asset) {
    -        return mergeFrom((com.google.cloud.asset.v1p5beta1.Asset)other);
    +        return mergeFrom((com.google.cloud.asset.v1p5beta1.Asset) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -1013,9 +1090,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1p5beta1.Asset other) {
                 orgPolicyBuilder_ = null;
                 orgPolicy_ = other.orgPolicy_;
                 bitField0_ = (bitField0_ & ~0x00000001);
    -            orgPolicyBuilder_ = 
    -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
    -                 getOrgPolicyFieldBuilder() : null;
    +            orgPolicyBuilder_ =
    +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
    +                    ? getOrgPolicyFieldBuilder()
    +                    : null;
               } else {
                 orgPolicyBuilder_.addAllMessages(other.orgPolicy_);
               }
    @@ -1032,21 +1110,25 @@ public Builder mergeFrom(com.google.cloud.asset.v1p5beta1.Asset other) {
             onChanged();
           }
           switch (other.getAccessContextPolicyCase()) {
    -        case ACCESS_POLICY: {
    -          mergeAccessPolicy(other.getAccessPolicy());
    -          break;
    -        }
    -        case ACCESS_LEVEL: {
    -          mergeAccessLevel(other.getAccessLevel());
    -          break;
    -        }
    -        case SERVICE_PERIMETER: {
    -          mergeServicePerimeter(other.getServicePerimeter());
    -          break;
    -        }
    -        case ACCESSCONTEXTPOLICY_NOT_SET: {
    -          break;
    -        }
    +        case ACCESS_POLICY:
    +          {
    +            mergeAccessPolicy(other.getAccessPolicy());
    +            break;
    +          }
    +        case ACCESS_LEVEL:
    +          {
    +            mergeAccessLevel(other.getAccessLevel());
    +            break;
    +          }
    +        case SERVICE_PERIMETER:
    +          {
    +            mergeServicePerimeter(other.getServicePerimeter());
    +            break;
    +          }
    +        case ACCESSCONTEXTPOLICY_NOT_SET:
    +          {
    +            break;
    +          }
           }
           this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
    @@ -1074,76 +1156,76 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
    -            case 10: {
    -              name_ = input.readStringRequireUtf8();
    -
    -              break;
    -            } // case 10
    -            case 18: {
    -              assetType_ = input.readStringRequireUtf8();
    -
    -              break;
    -            } // case 18
    -            case 26: {
    -              input.readMessage(
    -                  getResourceFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -
    -              break;
    -            } // case 26
    -            case 34: {
    -              input.readMessage(
    -                  getIamPolicyFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -
    -              break;
    -            } // case 34
    -            case 50: {
    -              com.google.cloud.orgpolicy.v1.Policy m =
    -                  input.readMessage(
    -                      com.google.cloud.orgpolicy.v1.Policy.parser(),
    -                      extensionRegistry);
    -              if (orgPolicyBuilder_ == null) {
    -                ensureOrgPolicyIsMutable();
    -                orgPolicy_.add(m);
    -              } else {
    -                orgPolicyBuilder_.addMessage(m);
    -              }
    -              break;
    -            } // case 50
    -            case 58: {
    -              input.readMessage(
    -                  getAccessPolicyFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -              accessContextPolicyCase_ = 7;
    -              break;
    -            } // case 58
    -            case 66: {
    -              input.readMessage(
    -                  getAccessLevelFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -              accessContextPolicyCase_ = 8;
    -              break;
    -            } // case 66
    -            case 74: {
    -              input.readMessage(
    -                  getServicePerimeterFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -              accessContextPolicyCase_ = 9;
    -              break;
    -            } // case 74
    -            case 82: {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              ensureAncestorsIsMutable();
    -              ancestors_.add(s);
    -              break;
    -            } // case 82
    -            default: {
    -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                done = true; // was an endgroup tag
    -              }
    -              break;
    -            } // default:
    +            case 10:
    +              {
    +                name_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                assetType_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                input.readMessage(getIamPolicyFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 34
    +            case 50:
    +              {
    +                com.google.cloud.orgpolicy.v1.Policy m =
    +                    input.readMessage(
    +                        com.google.cloud.orgpolicy.v1.Policy.parser(), extensionRegistry);
    +                if (orgPolicyBuilder_ == null) {
    +                  ensureOrgPolicyIsMutable();
    +                  orgPolicy_.add(m);
    +                } else {
    +                  orgPolicyBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 50
    +            case 58:
    +              {
    +                input.readMessage(getAccessPolicyFieldBuilder().getBuilder(), extensionRegistry);
    +                accessContextPolicyCase_ = 7;
    +                break;
    +              } // case 58
    +            case 66:
    +              {
    +                input.readMessage(getAccessLevelFieldBuilder().getBuilder(), extensionRegistry);
    +                accessContextPolicyCase_ = 8;
    +                break;
    +              } // case 66
    +            case 74:
    +              {
    +                input.readMessage(
    +                    getServicePerimeterFieldBuilder().getBuilder(), extensionRegistry);
    +                accessContextPolicyCase_ = 9;
    +                break;
    +              } // case 74
    +            case 82:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAncestorsIsMutable();
    +                ancestors_.add(s);
    +                break;
    +              } // case 82
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -1153,12 +1235,12 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
    +
         private int accessContextPolicyCase_ = 0;
         private java.lang.Object accessContextPolicy_;
    -    public AccessContextPolicyCase
    -        getAccessContextPolicyCase() {
    -      return AccessContextPolicyCase.forNumber(
    -          accessContextPolicyCase_);
    +
    +    public AccessContextPolicyCase getAccessContextPolicyCase() {
    +      return AccessContextPolicyCase.forNumber(accessContextPolicyCase_);
         }
     
         public Builder clearAccessContextPolicy() {
    @@ -1172,6 +1254,8 @@ public Builder clearAccessContextPolicy() {
     
         private java.lang.Object name_ = "";
         /**
    +     *
    +     *
          * 
          * The full name of the asset. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -1181,13 +1265,13 @@ public Builder clearAccessContextPolicy() {
          * 
    * * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1196,6 +1280,8 @@ public java.lang.String getName() { } } /** + * + * *
          * The full name of the asset. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -1205,15 +1291,14 @@ public java.lang.String getName() {
          * 
    * * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1221,6 +1306,8 @@ public java.lang.String getName() { } } /** + * + * *
          * The full name of the asset. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -1230,20 +1317,22 @@ public java.lang.String getName() {
          * 
    * * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
          * The full name of the asset. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -1253,15 +1342,18 @@ public Builder setName(
          * 
    * * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
          * The full name of the asset. For example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -1271,16 +1363,16 @@ public Builder clearName() {
          * 
    * * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1288,18 +1380,20 @@ public Builder setNameBytes( private java.lang.Object assetType_ = ""; /** + * + * *
          * Type of the asset. Example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; + * * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; @@ -1308,20 +1402,21 @@ public java.lang.String getAssetType() { } } /** + * + * *
          * Type of the asset. Example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; + * * @return The bytes for assetType. */ - public com.google.protobuf.ByteString - getAssetTypeBytes() { + public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetType_ = b; return b; } else { @@ -1329,54 +1424,61 @@ public java.lang.String getAssetType() { } } /** + * + * *
          * Type of the asset. Example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; + * * @param value The assetType to set. * @return This builder for chaining. */ - public Builder setAssetType( - java.lang.String value) { + public Builder setAssetType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + assetType_ = value; onChanged(); return this; } /** + * + * *
          * Type of the asset. Example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; + * * @return This builder for chaining. */ public Builder clearAssetType() { - + assetType_ = getDefaultInstance().getAssetType(); onChanged(); return this; } /** + * + * *
          * Type of the asset. Example: "compute.googleapis.com/Disk".
          * 
    * * string asset_type = 2; + * * @param value The bytes for assetType to set. * @return This builder for chaining. */ - public Builder setAssetTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; onChanged(); return this; @@ -1384,34 +1486,47 @@ public Builder setAssetTypeBytes( private com.google.cloud.asset.v1p5beta1.Resource resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p5beta1.Resource, com.google.cloud.asset.v1p5beta1.Resource.Builder, com.google.cloud.asset.v1p5beta1.ResourceOrBuilder> resourceBuilder_; + com.google.cloud.asset.v1p5beta1.Resource, + com.google.cloud.asset.v1p5beta1.Resource.Builder, + com.google.cloud.asset.v1p5beta1.ResourceOrBuilder> + resourceBuilder_; /** + * + * *
          * Representation of the resource.
          * 
    * * .google.cloud.asset.v1p5beta1.Resource resource = 3; + * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** + * + * *
          * Representation of the resource.
          * 
    * * .google.cloud.asset.v1p5beta1.Resource resource = 3; + * * @return The resource. */ public com.google.cloud.asset.v1p5beta1.Resource getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.cloud.asset.v1p5beta1.Resource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.asset.v1p5beta1.Resource.getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
          * Representation of the resource.
          * 
    @@ -1432,14 +1547,15 @@ public Builder setResource(com.google.cloud.asset.v1p5beta1.Resource value) { return this; } /** + * + * *
          * Representation of the resource.
          * 
    * * .google.cloud.asset.v1p5beta1.Resource resource = 3; */ - public Builder setResource( - com.google.cloud.asset.v1p5beta1.Resource.Builder builderForValue) { + public Builder setResource(com.google.cloud.asset.v1p5beta1.Resource.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -1450,6 +1566,8 @@ public Builder setResource( return this; } /** + * + * *
          * Representation of the resource.
          * 
    @@ -1460,7 +1578,9 @@ public Builder mergeResource(com.google.cloud.asset.v1p5beta1.Resource value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.asset.v1p5beta1.Resource.newBuilder(resource_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1p5beta1.Resource.newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); } else { resource_ = value; } @@ -1472,6 +1592,8 @@ public Builder mergeResource(com.google.cloud.asset.v1p5beta1.Resource value) { return this; } /** + * + * *
          * Representation of the resource.
          * 
    @@ -1490,6 +1612,8 @@ public Builder clearResource() { return this; } /** + * + * *
          * Representation of the resource.
          * 
    @@ -1497,11 +1621,13 @@ public Builder clearResource() { * .google.cloud.asset.v1p5beta1.Resource resource = 3; */ public com.google.cloud.asset.v1p5beta1.Resource.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** + * + * *
          * Representation of the resource.
          * 
    @@ -1512,11 +1638,14 @@ public com.google.cloud.asset.v1p5beta1.ResourceOrBuilder getResourceOrBuilder() if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null ? - com.google.cloud.asset.v1p5beta1.Resource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.asset.v1p5beta1.Resource.getDefaultInstance() + : resource_; } } /** + * + * *
          * Representation of the resource.
          * 
    @@ -1524,14 +1653,17 @@ public com.google.cloud.asset.v1p5beta1.ResourceOrBuilder getResourceOrBuilder() * .google.cloud.asset.v1p5beta1.Resource resource = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p5beta1.Resource, com.google.cloud.asset.v1p5beta1.Resource.Builder, com.google.cloud.asset.v1p5beta1.ResourceOrBuilder> + com.google.cloud.asset.v1p5beta1.Resource, + com.google.cloud.asset.v1p5beta1.Resource.Builder, + com.google.cloud.asset.v1p5beta1.ResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p5beta1.Resource, com.google.cloud.asset.v1p5beta1.Resource.Builder, com.google.cloud.asset.v1p5beta1.ResourceOrBuilder>( - getResource(), - getParentForChildren(), - isClean()); + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p5beta1.Resource, + com.google.cloud.asset.v1p5beta1.Resource.Builder, + com.google.cloud.asset.v1p5beta1.ResourceOrBuilder>( + getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; @@ -1539,26 +1671,35 @@ public com.google.cloud.asset.v1p5beta1.ResourceOrBuilder getResourceOrBuilder() private com.google.iam.v1.Policy iamPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> iamPolicyBuilder_; + com.google.iam.v1.Policy, + com.google.iam.v1.Policy.Builder, + com.google.iam.v1.PolicyOrBuilder> + iamPolicyBuilder_; /** + * + * *
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
          * 
    * * .google.iam.v1.Policy iam_policy = 4; + * * @return Whether the iamPolicy field is set. */ public boolean hasIamPolicy() { return iamPolicyBuilder_ != null || iamPolicy_ != null; } /** + * + * *
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
          * 
    * * .google.iam.v1.Policy iam_policy = 4; + * * @return The iamPolicy. */ public com.google.iam.v1.Policy getIamPolicy() { @@ -1569,6 +1710,8 @@ public com.google.iam.v1.Policy getIamPolicy() { } } /** + * + * *
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1590,6 +1733,8 @@ public Builder setIamPolicy(com.google.iam.v1.Policy value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1597,8 +1742,7 @@ public Builder setIamPolicy(com.google.iam.v1.Policy value) {
          *
          * .google.iam.v1.Policy iam_policy = 4;
          */
    -    public Builder setIamPolicy(
    -        com.google.iam.v1.Policy.Builder builderForValue) {
    +    public Builder setIamPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
           if (iamPolicyBuilder_ == null) {
             iamPolicy_ = builderForValue.build();
             onChanged();
    @@ -1609,6 +1753,8 @@ public Builder setIamPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1620,7 +1766,7 @@ public Builder mergeIamPolicy(com.google.iam.v1.Policy value) {
           if (iamPolicyBuilder_ == null) {
             if (iamPolicy_ != null) {
               iamPolicy_ =
    -            com.google.iam.v1.Policy.newBuilder(iamPolicy_).mergeFrom(value).buildPartial();
    +              com.google.iam.v1.Policy.newBuilder(iamPolicy_).mergeFrom(value).buildPartial();
             } else {
               iamPolicy_ = value;
             }
    @@ -1632,6 +1778,8 @@ public Builder mergeIamPolicy(com.google.iam.v1.Policy value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1651,6 +1799,8 @@ public Builder clearIamPolicy() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1659,11 +1809,13 @@ public Builder clearIamPolicy() {
          * .google.iam.v1.Policy iam_policy = 4;
          */
         public com.google.iam.v1.Policy.Builder getIamPolicyBuilder() {
    -      
    +
           onChanged();
           return getIamPolicyFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1675,11 +1827,12 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
           if (iamPolicyBuilder_ != null) {
             return iamPolicyBuilder_.getMessageOrBuilder();
           } else {
    -        return iamPolicy_ == null ?
    -            com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_;
    +        return iamPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_;
           }
         }
         /**
    +     *
    +     *
          * 
          * Representation of the actual Cloud IAM policy set on a cloud resource. For
          * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -1688,32 +1841,41 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
          * .google.iam.v1.Policy iam_policy = 4;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> 
    +            com.google.iam.v1.Policy,
    +            com.google.iam.v1.Policy.Builder,
    +            com.google.iam.v1.PolicyOrBuilder>
             getIamPolicyFieldBuilder() {
           if (iamPolicyBuilder_ == null) {
    -        iamPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>(
    -                getIamPolicy(),
    -                getParentForChildren(),
    -                isClean());
    +        iamPolicyBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.iam.v1.Policy,
    +                com.google.iam.v1.Policy.Builder,
    +                com.google.iam.v1.PolicyOrBuilder>(
    +                getIamPolicy(), getParentForChildren(), isClean());
             iamPolicy_ = null;
           }
           return iamPolicyBuilder_;
         }
     
         private java.util.List orgPolicy_ =
    -      java.util.Collections.emptyList();
    +        java.util.Collections.emptyList();
    +
         private void ensureOrgPolicyIsMutable() {
           if (!((bitField0_ & 0x00000001) != 0)) {
             orgPolicy_ = new java.util.ArrayList(orgPolicy_);
             bitField0_ |= 0x00000001;
    -       }
    +      }
         }
     
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -        com.google.cloud.orgpolicy.v1.Policy, com.google.cloud.orgpolicy.v1.Policy.Builder, com.google.cloud.orgpolicy.v1.PolicyOrBuilder> orgPolicyBuilder_;
    +            com.google.cloud.orgpolicy.v1.Policy,
    +            com.google.cloud.orgpolicy.v1.Policy.Builder,
    +            com.google.cloud.orgpolicy.v1.PolicyOrBuilder>
    +        orgPolicyBuilder_;
     
         /**
    +     *
    +     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -1730,6 +1892,8 @@ public java.util.List getOrgPolicyList() {
           }
         }
         /**
    +     *
    +     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -1746,6 +1910,8 @@ public int getOrgPolicyCount() {
           }
         }
         /**
    +     *
    +     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -1762,6 +1928,8 @@ public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) {
           }
         }
         /**
    +     *
    +     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -1770,8 +1938,7 @@ public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) {
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public Builder setOrgPolicy(
    -        int index, com.google.cloud.orgpolicy.v1.Policy value) {
    +    public Builder setOrgPolicy(int index, com.google.cloud.orgpolicy.v1.Policy value) {
           if (orgPolicyBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -1785,6 +1952,8 @@ public Builder setOrgPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -1805,6 +1974,8 @@ public Builder setOrgPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -1827,6 +1998,8 @@ public Builder addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -1835,8 +2008,7 @@ public Builder addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy value) {
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public Builder addOrgPolicy(
    -        int index, com.google.cloud.orgpolicy.v1.Policy value) {
    +    public Builder addOrgPolicy(int index, com.google.cloud.orgpolicy.v1.Policy value) {
           if (orgPolicyBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -1850,6 +2022,8 @@ public Builder addOrgPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -1858,8 +2032,7 @@ public Builder addOrgPolicy(
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public Builder addOrgPolicy(
    -        com.google.cloud.orgpolicy.v1.Policy.Builder builderForValue) {
    +    public Builder addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy.Builder builderForValue) {
           if (orgPolicyBuilder_ == null) {
             ensureOrgPolicyIsMutable();
             orgPolicy_.add(builderForValue.build());
    @@ -1870,6 +2043,8 @@ public Builder addOrgPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -1890,6 +2065,8 @@ public Builder addOrgPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -1902,8 +2079,7 @@ public Builder addAllOrgPolicy(
             java.lang.Iterable values) {
           if (orgPolicyBuilder_ == null) {
             ensureOrgPolicyIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    -            values, orgPolicy_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, orgPolicy_);
             onChanged();
           } else {
             orgPolicyBuilder_.addAllMessages(values);
    @@ -1911,6 +2087,8 @@ public Builder addAllOrgPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -1930,6 +2108,8 @@ public Builder clearOrgPolicy() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -1949,6 +2129,8 @@ public Builder removeOrgPolicy(int index) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -1957,11 +2139,12 @@ public Builder removeOrgPolicy(int index) {
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public com.google.cloud.orgpolicy.v1.Policy.Builder getOrgPolicyBuilder(
    -        int index) {
    +    public com.google.cloud.orgpolicy.v1.Policy.Builder getOrgPolicyBuilder(int index) {
           return getOrgPolicyFieldBuilder().getBuilder(index);
         }
         /**
    +     *
    +     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -1970,14 +2153,16 @@ public com.google.cloud.orgpolicy.v1.Policy.Builder getOrgPolicyBuilder(
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
    -        int index) {
    +    public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int index) {
           if (orgPolicyBuilder_ == null) {
    -        return orgPolicy_.get(index);  } else {
    +        return orgPolicy_.get(index);
    +      } else {
             return orgPolicyBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    +     *
    +     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -1986,8 +2171,8 @@ public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public java.util.List 
    -         getOrgPolicyOrBuilderList() {
    +    public java.util.List
    +        getOrgPolicyOrBuilderList() {
           if (orgPolicyBuilder_ != null) {
             return orgPolicyBuilder_.getMessageOrBuilderList();
           } else {
    @@ -1995,6 +2180,8 @@ public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
           }
         }
         /**
    +     *
    +     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -2004,10 +2191,12 @@ public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
         public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder() {
    -      return getOrgPolicyFieldBuilder().addBuilder(
    -          com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance());
    +      return getOrgPolicyFieldBuilder()
    +          .addBuilder(com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -2016,12 +2205,13 @@ public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder() {
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder(
    -        int index) {
    -      return getOrgPolicyFieldBuilder().addBuilder(
    -          index, com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance());
    +    public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder(int index) {
    +      return getOrgPolicyFieldBuilder()
    +          .addBuilder(index, com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * Representation of the Cloud Organization Policy set on an asset. For each
          * asset, there could be multiple Organization policies with different
    @@ -2030,29 +2220,35 @@ public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder(
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public java.util.List 
    -         getOrgPolicyBuilderList() {
    +    public java.util.List getOrgPolicyBuilderList() {
           return getOrgPolicyFieldBuilder().getBuilderList();
         }
    +
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -        com.google.cloud.orgpolicy.v1.Policy, com.google.cloud.orgpolicy.v1.Policy.Builder, com.google.cloud.orgpolicy.v1.PolicyOrBuilder> 
    +            com.google.cloud.orgpolicy.v1.Policy,
    +            com.google.cloud.orgpolicy.v1.Policy.Builder,
    +            com.google.cloud.orgpolicy.v1.PolicyOrBuilder>
             getOrgPolicyFieldBuilder() {
           if (orgPolicyBuilder_ == null) {
    -        orgPolicyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.orgpolicy.v1.Policy, com.google.cloud.orgpolicy.v1.Policy.Builder, com.google.cloud.orgpolicy.v1.PolicyOrBuilder>(
    -                orgPolicy_,
    -                ((bitField0_ & 0x00000001) != 0),
    -                getParentForChildren(),
    -                isClean());
    +        orgPolicyBuilder_ =
    +            new com.google.protobuf.RepeatedFieldBuilderV3<
    +                com.google.cloud.orgpolicy.v1.Policy,
    +                com.google.cloud.orgpolicy.v1.Policy.Builder,
    +                com.google.cloud.orgpolicy.v1.PolicyOrBuilder>(
    +                orgPolicy_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
             orgPolicy_ = null;
           }
           return orgPolicyBuilder_;
         }
     
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.identity.accesscontextmanager.v1.AccessPolicy, com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder, com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder> accessPolicyBuilder_;
    +            com.google.identity.accesscontextmanager.v1.AccessPolicy,
    +            com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder,
    +            com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>
    +        accessPolicyBuilder_;
         /**
          * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    +     *
          * @return Whether the accessPolicy field is set.
          */
         @java.lang.Override
    @@ -2061,6 +2257,7 @@ public boolean hasAccessPolicy() {
         }
         /**
          * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    +     *
          * @return The accessPolicy.
          */
         @java.lang.Override
    @@ -2077,9 +2274,7 @@ public com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy(
             return com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance();
           }
         }
    -    /**
    -     * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    -     */
    +    /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */
         public Builder setAccessPolicy(com.google.identity.accesscontextmanager.v1.AccessPolicy value) {
           if (accessPolicyBuilder_ == null) {
             if (value == null) {
    @@ -2093,9 +2288,7 @@ public Builder setAccessPolicy(com.google.identity.accesscontextmanager.v1.Acces
           accessContextPolicyCase_ = 7;
           return this;
         }
    -    /**
    -     * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    -     */
    +    /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */
         public Builder setAccessPolicy(
             com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder builderForValue) {
           if (accessPolicyBuilder_ == null) {
    @@ -2107,15 +2300,19 @@ public Builder setAccessPolicy(
           accessContextPolicyCase_ = 7;
           return this;
         }
    -    /**
    -     * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    -     */
    -    public Builder mergeAccessPolicy(com.google.identity.accesscontextmanager.v1.AccessPolicy value) {
    +    /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */
    +    public Builder mergeAccessPolicy(
    +        com.google.identity.accesscontextmanager.v1.AccessPolicy value) {
           if (accessPolicyBuilder_ == null) {
    -        if (accessContextPolicyCase_ == 7 &&
    -            accessContextPolicy_ != com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance()) {
    -          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.AccessPolicy.newBuilder((com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_)
    -              .mergeFrom(value).buildPartial();
    +        if (accessContextPolicyCase_ == 7
    +            && accessContextPolicy_
    +                != com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance()) {
    +          accessContextPolicy_ =
    +              com.google.identity.accesscontextmanager.v1.AccessPolicy.newBuilder(
    +                      (com.google.identity.accesscontextmanager.v1.AccessPolicy)
    +                          accessContextPolicy_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               accessContextPolicy_ = value;
             }
    @@ -2130,9 +2327,7 @@ public Builder mergeAccessPolicy(com.google.identity.accesscontextmanager.v1.Acc
           accessContextPolicyCase_ = 7;
           return this;
         }
    -    /**
    -     * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    -     */
    +    /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */
         public Builder clearAccessPolicy() {
           if (accessPolicyBuilder_ == null) {
             if (accessContextPolicyCase_ == 7) {
    @@ -2149,17 +2344,15 @@ public Builder clearAccessPolicy() {
           }
           return this;
         }
    -    /**
    -     * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    -     */
    -    public com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder getAccessPolicyBuilder() {
    +    /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */
    +    public com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder
    +        getAccessPolicyBuilder() {
           return getAccessPolicyFieldBuilder().getBuilder();
         }
    -    /**
    -     * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    -     */
    +    /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */
         @java.lang.Override
    -    public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAccessPolicyOrBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder
    +        getAccessPolicyOrBuilder() {
           if ((accessContextPolicyCase_ == 7) && (accessPolicyBuilder_ != null)) {
             return accessPolicyBuilder_.getMessageOrBuilder();
           } else {
    @@ -2169,32 +2362,41 @@ public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAcce
             return com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance();
           }
         }
    -    /**
    -     * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    -     */
    +    /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.identity.accesscontextmanager.v1.AccessPolicy, com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder, com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder> 
    +            com.google.identity.accesscontextmanager.v1.AccessPolicy,
    +            com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder,
    +            com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>
             getAccessPolicyFieldBuilder() {
           if (accessPolicyBuilder_ == null) {
             if (!(accessContextPolicyCase_ == 7)) {
    -          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance();
    +          accessContextPolicy_ =
    +              com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance();
             }
    -        accessPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.AccessPolicy, com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder, com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>(
    +        accessPolicyBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.identity.accesscontextmanager.v1.AccessPolicy,
    +                com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder,
    +                com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>(
                     (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_,
                     getParentForChildren(),
                     isClean());
             accessContextPolicy_ = null;
           }
           accessContextPolicyCase_ = 7;
    -      onChanged();;
    +      onChanged();
    +      ;
           return accessPolicyBuilder_;
         }
     
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.identity.accesscontextmanager.v1.AccessLevel, com.google.identity.accesscontextmanager.v1.AccessLevel.Builder, com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder> accessLevelBuilder_;
    +            com.google.identity.accesscontextmanager.v1.AccessLevel,
    +            com.google.identity.accesscontextmanager.v1.AccessLevel.Builder,
    +            com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>
    +        accessLevelBuilder_;
         /**
          * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    +     *
          * @return Whether the accessLevel field is set.
          */
         @java.lang.Override
    @@ -2203,6 +2405,7 @@ public boolean hasAccessLevel() {
         }
         /**
          * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    +     *
          * @return The accessLevel.
          */
         @java.lang.Override
    @@ -2219,9 +2422,7 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel()
             return com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance();
           }
         }
    -    /**
    -     * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    -     */
    +    /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */
         public Builder setAccessLevel(com.google.identity.accesscontextmanager.v1.AccessLevel value) {
           if (accessLevelBuilder_ == null) {
             if (value == null) {
    @@ -2235,9 +2436,7 @@ public Builder setAccessLevel(com.google.identity.accesscontextmanager.v1.Access
           accessContextPolicyCase_ = 8;
           return this;
         }
    -    /**
    -     * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    -     */
    +    /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */
         public Builder setAccessLevel(
             com.google.identity.accesscontextmanager.v1.AccessLevel.Builder builderForValue) {
           if (accessLevelBuilder_ == null) {
    @@ -2249,15 +2448,18 @@ public Builder setAccessLevel(
           accessContextPolicyCase_ = 8;
           return this;
         }
    -    /**
    -     * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    -     */
    +    /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */
         public Builder mergeAccessLevel(com.google.identity.accesscontextmanager.v1.AccessLevel value) {
           if (accessLevelBuilder_ == null) {
    -        if (accessContextPolicyCase_ == 8 &&
    -            accessContextPolicy_ != com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance()) {
    -          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.AccessLevel.newBuilder((com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_)
    -              .mergeFrom(value).buildPartial();
    +        if (accessContextPolicyCase_ == 8
    +            && accessContextPolicy_
    +                != com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance()) {
    +          accessContextPolicy_ =
    +              com.google.identity.accesscontextmanager.v1.AccessLevel.newBuilder(
    +                      (com.google.identity.accesscontextmanager.v1.AccessLevel)
    +                          accessContextPolicy_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               accessContextPolicy_ = value;
             }
    @@ -2272,9 +2474,7 @@ public Builder mergeAccessLevel(com.google.identity.accesscontextmanager.v1.Acce
           accessContextPolicyCase_ = 8;
           return this;
         }
    -    /**
    -     * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    -     */
    +    /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */
         public Builder clearAccessLevel() {
           if (accessLevelBuilder_ == null) {
             if (accessContextPolicyCase_ == 8) {
    @@ -2291,17 +2491,14 @@ public Builder clearAccessLevel() {
           }
           return this;
         }
    -    /**
    -     * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    -     */
    +    /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */
         public com.google.identity.accesscontextmanager.v1.AccessLevel.Builder getAccessLevelBuilder() {
           return getAccessLevelFieldBuilder().getBuilder();
         }
    -    /**
    -     * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    -     */
    +    /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */
         @java.lang.Override
    -    public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAccessLevelOrBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder
    +        getAccessLevelOrBuilder() {
           if ((accessContextPolicyCase_ == 8) && (accessLevelBuilder_ != null)) {
             return accessLevelBuilder_.getMessageOrBuilder();
           } else {
    @@ -2311,32 +2508,41 @@ public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAcces
             return com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance();
           }
         }
    -    /**
    -     * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    -     */
    +    /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.identity.accesscontextmanager.v1.AccessLevel, com.google.identity.accesscontextmanager.v1.AccessLevel.Builder, com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder> 
    +            com.google.identity.accesscontextmanager.v1.AccessLevel,
    +            com.google.identity.accesscontextmanager.v1.AccessLevel.Builder,
    +            com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>
             getAccessLevelFieldBuilder() {
           if (accessLevelBuilder_ == null) {
             if (!(accessContextPolicyCase_ == 8)) {
    -          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance();
    +          accessContextPolicy_ =
    +              com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance();
             }
    -        accessLevelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.AccessLevel, com.google.identity.accesscontextmanager.v1.AccessLevel.Builder, com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>(
    +        accessLevelBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.identity.accesscontextmanager.v1.AccessLevel,
    +                com.google.identity.accesscontextmanager.v1.AccessLevel.Builder,
    +                com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>(
                     (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_,
                     getParentForChildren(),
                     isClean());
             accessContextPolicy_ = null;
           }
           accessContextPolicyCase_ = 8;
    -      onChanged();;
    +      onChanged();
    +      ;
           return accessLevelBuilder_;
         }
     
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.identity.accesscontextmanager.v1.ServicePerimeter, com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder, com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder> servicePerimeterBuilder_;
    +            com.google.identity.accesscontextmanager.v1.ServicePerimeter,
    +            com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder,
    +            com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>
    +        servicePerimeterBuilder_;
         /**
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
    +     *
          * @return Whether the servicePerimeter field is set.
          */
         @java.lang.Override
    @@ -2345,13 +2551,15 @@ public boolean hasServicePerimeter() {
         }
         /**
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
    +     *
          * @return The servicePerimeter.
          */
         @java.lang.Override
         public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter() {
           if (servicePerimeterBuilder_ == null) {
             if (accessContextPolicyCase_ == 9) {
    -          return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_;
    +          return (com.google.identity.accesscontextmanager.v1.ServicePerimeter)
    +              accessContextPolicy_;
             }
             return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
           } else {
    @@ -2364,7 +2572,8 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePe
         /**
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
    -    public Builder setServicePerimeter(com.google.identity.accesscontextmanager.v1.ServicePerimeter value) {
    +    public Builder setServicePerimeter(
    +        com.google.identity.accesscontextmanager.v1.ServicePerimeter value) {
           if (servicePerimeterBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -2394,12 +2603,19 @@ public Builder setServicePerimeter(
         /**
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
    -    public Builder mergeServicePerimeter(com.google.identity.accesscontextmanager.v1.ServicePerimeter value) {
    +    public Builder mergeServicePerimeter(
    +        com.google.identity.accesscontextmanager.v1.ServicePerimeter value) {
           if (servicePerimeterBuilder_ == null) {
    -        if (accessContextPolicyCase_ == 9 &&
    -            accessContextPolicy_ != com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance()) {
    -          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.ServicePerimeter.newBuilder((com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_)
    -              .mergeFrom(value).buildPartial();
    +        if (accessContextPolicyCase_ == 9
    +            && accessContextPolicy_
    +                != com.google.identity.accesscontextmanager.v1.ServicePerimeter
    +                    .getDefaultInstance()) {
    +          accessContextPolicy_ =
    +              com.google.identity.accesscontextmanager.v1.ServicePerimeter.newBuilder(
    +                      (com.google.identity.accesscontextmanager.v1.ServicePerimeter)
    +                          accessContextPolicy_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               accessContextPolicy_ = value;
             }
    @@ -2436,19 +2652,22 @@ public Builder clearServicePerimeter() {
         /**
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
    -    public com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder getServicePerimeterBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder
    +        getServicePerimeterBuilder() {
           return getServicePerimeterFieldBuilder().getBuilder();
         }
         /**
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
         @java.lang.Override
    -    public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder getServicePerimeterOrBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder
    +        getServicePerimeterOrBuilder() {
           if ((accessContextPolicyCase_ == 9) && (servicePerimeterBuilder_ != null)) {
             return servicePerimeterBuilder_.getMessageOrBuilder();
           } else {
             if (accessContextPolicyCase_ == 9) {
    -          return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_;
    +          return (com.google.identity.accesscontextmanager.v1.ServicePerimeter)
    +              accessContextPolicy_;
             }
             return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
           }
    @@ -2457,32 +2676,43 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder get
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.identity.accesscontextmanager.v1.ServicePerimeter, com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder, com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder> 
    +            com.google.identity.accesscontextmanager.v1.ServicePerimeter,
    +            com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder,
    +            com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>
             getServicePerimeterFieldBuilder() {
           if (servicePerimeterBuilder_ == null) {
             if (!(accessContextPolicyCase_ == 9)) {
    -          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
    +          accessContextPolicy_ =
    +              com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
             }
    -        servicePerimeterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.ServicePerimeter, com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder, com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>(
    +        servicePerimeterBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.identity.accesscontextmanager.v1.ServicePerimeter,
    +                com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder,
    +                com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>(
                     (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_,
                     getParentForChildren(),
                     isClean());
             accessContextPolicy_ = null;
           }
           accessContextPolicyCase_ = 9;
    -      onChanged();;
    +      onChanged();
    +      ;
           return servicePerimeterBuilder_;
         }
     
    -    private com.google.protobuf.LazyStringList ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    +    private com.google.protobuf.LazyStringList ancestors_ =
    +        com.google.protobuf.LazyStringArrayList.EMPTY;
    +
         private void ensureAncestorsIsMutable() {
           if (!((bitField0_ & 0x00000002) != 0)) {
             ancestors_ = new com.google.protobuf.LazyStringArrayList(ancestors_);
             bitField0_ |= 0x00000002;
    -       }
    +      }
         }
         /**
    +     *
    +     *
          * 
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -2492,13 +2722,15 @@ private void ensureAncestorsIsMutable() {
          * 
    * * repeated string ancestors = 10; + * * @return A list containing the ancestors. */ - public com.google.protobuf.ProtocolStringList - getAncestorsList() { + public com.google.protobuf.ProtocolStringList getAncestorsList() { return ancestors_.getUnmodifiableView(); } /** + * + * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -2508,12 +2740,15 @@ private void ensureAncestorsIsMutable() {
          * 
    * * repeated string ancestors = 10; + * * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); } /** + * + * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -2523,6 +2758,7 @@ public int getAncestorsCount() {
          * 
    * * repeated string ancestors = 10; + * * @param index The index of the element to return. * @return The ancestors at the given index. */ @@ -2530,6 +2766,8 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** + * + * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -2539,14 +2777,16 @@ public java.lang.String getAncestors(int index) {
          * 
    * * repeated string ancestors = 10; + * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - public com.google.protobuf.ByteString - getAncestorsBytes(int index) { + public com.google.protobuf.ByteString getAncestorsBytes(int index) { return ancestors_.getByteString(index); } /** + * + * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -2556,21 +2796,23 @@ public java.lang.String getAncestors(int index) {
          * 
    * * repeated string ancestors = 10; + * * @param index The index to set the value at. * @param value The ancestors to set. * @return This builder for chaining. */ - public Builder setAncestors( - int index, java.lang.String value) { + public Builder setAncestors(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAncestorsIsMutable(); + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); ancestors_.set(index, value); onChanged(); return this; } /** + * + * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -2580,20 +2822,22 @@ public Builder setAncestors(
          * 
    * * repeated string ancestors = 10; + * * @param value The ancestors to add. * @return This builder for chaining. */ - public Builder addAncestors( - java.lang.String value) { + public Builder addAncestors(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAncestorsIsMutable(); + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); return this; } /** + * + * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -2603,18 +2847,19 @@ public Builder addAncestors(
          * 
    * * repeated string ancestors = 10; + * * @param values The ancestors to add. * @return This builder for chaining. */ - public Builder addAllAncestors( - java.lang.Iterable values) { + public Builder addAllAncestors(java.lang.Iterable values) { ensureAncestorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ancestors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ancestors_); onChanged(); return this; } /** + * + * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -2624,6 +2869,7 @@ public Builder addAllAncestors(
          * 
    * * repeated string ancestors = 10; + * * @return This builder for chaining. */ public Builder clearAncestors() { @@ -2633,6 +2879,8 @@ public Builder clearAncestors() { return this; } /** + * + * *
          * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
          * represented as a list of relative resource names. Ancestry path starts with
    @@ -2642,23 +2890,23 @@ public Builder clearAncestors() {
          * 
    * * repeated string ancestors = 10; + * * @param value The bytes of the ancestors to add. * @return This builder for chaining. */ - public Builder addAncestorsBytes( - com.google.protobuf.ByteString value) { + public Builder addAncestorsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2668,12 +2916,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p5beta1.Asset) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p5beta1.Asset) private static final com.google.cloud.asset.v1p5beta1.Asset DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p5beta1.Asset(); } @@ -2682,27 +2930,27 @@ public static com.google.cloud.asset.v1p5beta1.Asset getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Asset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Asset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2717,6 +2965,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p5beta1.Asset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetOrBuilder.java similarity index 84% rename from owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetOrBuilder.java index c54c20d16b1b..7deffbed1200 100644 --- a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p5beta1/assets.proto package com.google.cloud.asset.v1p5beta1; -public interface AssetOrBuilder extends +public interface AssetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p5beta1.Asset) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The full name of the asset. For example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -17,10 +35,13 @@ public interface AssetOrBuilder extends
        * 
    * * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
        * The full name of the asset. For example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
    @@ -30,50 +51,63 @@ public interface AssetOrBuilder extends
        * 
    * * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
        * Type of the asset. Example: "compute.googleapis.com/Disk".
        * 
    * * string asset_type = 2; + * * @return The assetType. */ java.lang.String getAssetType(); /** + * + * *
        * Type of the asset. Example: "compute.googleapis.com/Disk".
        * 
    * * string asset_type = 2; + * * @return The bytes for assetType. */ - com.google.protobuf.ByteString - getAssetTypeBytes(); + com.google.protobuf.ByteString getAssetTypeBytes(); /** + * + * *
        * Representation of the resource.
        * 
    * * .google.cloud.asset.v1p5beta1.Resource resource = 3; + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
        * Representation of the resource.
        * 
    * * .google.cloud.asset.v1p5beta1.Resource resource = 3; + * * @return The resource. */ com.google.cloud.asset.v1p5beta1.Resource getResource(); /** + * + * *
        * Representation of the resource.
        * 
    @@ -83,26 +117,34 @@ public interface AssetOrBuilder extends com.google.cloud.asset.v1p5beta1.ResourceOrBuilder getResourceOrBuilder(); /** + * + * *
        * Representation of the actual Cloud IAM policy set on a cloud resource. For
        * each resource, there must be at most one Cloud IAM policy set on it.
        * 
    * * .google.iam.v1.Policy iam_policy = 4; + * * @return Whether the iamPolicy field is set. */ boolean hasIamPolicy(); /** + * + * *
        * Representation of the actual Cloud IAM policy set on a cloud resource. For
        * each resource, there must be at most one Cloud IAM policy set on it.
        * 
    * * .google.iam.v1.Policy iam_policy = 4; + * * @return The iamPolicy. */ com.google.iam.v1.Policy getIamPolicy(); /** + * + * *
        * Representation of the actual Cloud IAM policy set on a cloud resource. For
        * each resource, there must be at most one Cloud IAM policy set on it.
    @@ -113,6 +155,8 @@ public interface AssetOrBuilder extends
       com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * Representation of the Cloud Organization Policy set on an asset. For each
        * asset, there could be multiple Organization policies with different
    @@ -121,9 +165,10 @@ public interface AssetOrBuilder extends
        *
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
    -  java.util.List 
    -      getOrgPolicyList();
    +  java.util.List getOrgPolicyList();
       /**
    +   *
    +   *
        * 
        * Representation of the Cloud Organization Policy set on an asset. For each
        * asset, there could be multiple Organization policies with different
    @@ -134,6 +179,8 @@ public interface AssetOrBuilder extends
        */
       com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index);
       /**
    +   *
    +   *
        * 
        * Representation of the Cloud Organization Policy set on an asset. For each
        * asset, there could be multiple Organization policies with different
    @@ -144,6 +191,8 @@ public interface AssetOrBuilder extends
        */
       int getOrgPolicyCount();
       /**
    +   *
    +   *
        * 
        * Representation of the Cloud Organization Policy set on an asset. For each
        * asset, there could be multiple Organization policies with different
    @@ -152,9 +201,11 @@ public interface AssetOrBuilder extends
        *
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
    -  java.util.List 
    +  java.util.List
           getOrgPolicyOrBuilderList();
       /**
    +   *
    +   *
        * 
        * Representation of the Cloud Organization Policy set on an asset. For each
        * asset, there could be multiple Organization policies with different
    @@ -163,55 +214,59 @@ public interface AssetOrBuilder extends
        *
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
    -  com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
    -      int index);
    +  com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int index);
     
       /**
        * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    +   *
        * @return Whether the accessPolicy field is set.
        */
       boolean hasAccessPolicy();
       /**
        * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    +   *
        * @return The accessPolicy.
        */
       com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy();
    -  /**
    -   * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
    -   */
    +  /** .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; */
       com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAccessPolicyOrBuilder();
     
       /**
        * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    +   *
        * @return Whether the accessLevel field is set.
        */
       boolean hasAccessLevel();
       /**
        * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    +   *
        * @return The accessLevel.
        */
       com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel();
    -  /**
    -   * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
    -   */
    +  /** .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; */
       com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAccessLevelOrBuilder();
     
       /**
        * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
    +   *
        * @return Whether the servicePerimeter field is set.
        */
       boolean hasServicePerimeter();
       /**
        * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
    +   *
        * @return The servicePerimeter.
        */
       com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter();
       /**
        * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
        */
    -  com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder getServicePerimeterOrBuilder();
    +  com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder
    +      getServicePerimeterOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -221,11 +276,13 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
        * 
    * * repeated string ancestors = 10; + * * @return A list containing the ancestors. */ - java.util.List - getAncestorsList(); + java.util.List getAncestorsList(); /** + * + * *
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -235,10 +292,13 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
        * 
    * * repeated string ancestors = 10; + * * @return The count of ancestors. */ int getAncestorsCount(); /** + * + * *
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -248,11 +308,14 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
        * 
    * * repeated string ancestors = 10; + * * @param index The index of the element to return. * @return The ancestors at the given index. */ java.lang.String getAncestors(int index); /** + * + * *
        * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
        * represented as a list of relative resource names. Ancestry path starts with
    @@ -262,11 +325,12 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
        * 
    * * repeated string ancestors = 10; + * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - com.google.protobuf.ByteString - getAncestorsBytes(int index); + com.google.protobuf.ByteString getAncestorsBytes(int index); - public com.google.cloud.asset.v1p5beta1.Asset.AccessContextPolicyCase getAccessContextPolicyCase(); + public com.google.cloud.asset.v1p5beta1.Asset.AccessContextPolicyCase + getAccessContextPolicyCase(); } diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetProto.java b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetProto.java new file mode 100644 index 000000000000..70c797bf0f58 --- /dev/null +++ b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetProto.java @@ -0,0 +1,132 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1p5beta1/assets.proto + +package com.google.cloud.asset.v1p5beta1; + +public final class AssetProto { + private AssetProto() {} + + 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_asset_v1p5beta1_Asset_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p5beta1_Asset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p5beta1_Resource_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/asset/v1p5beta1/assets.pr" + + "oto\022\034google.cloud.asset.v1p5beta1\032\031googl" + + "e/api/resource.proto\032)google/cloud/orgpo" + + "licy/v1/orgpolicy.proto\032\032google/iam/v1/p" + + "olicy.proto\032:google/identity/accessconte" + + "xtmanager/v1/access_level.proto\032;google/" + + "identity/accesscontextmanager/v1/access_" + + "policy.proto\032?google/identity/accesscont" + + "extmanager/v1/service_perimeter.proto\032\034g" + + "oogle/protobuf/struct.proto\"\220\004\n\005Asset\022\014\n" + + "\004name\030\001 \001(\t\022\022\n\nasset_type\030\002 \001(\t\0228\n\010resou" + + "rce\030\003 \001(\0132&.google.cloud.asset.v1p5beta1" + + ".Resource\022)\n\niam_policy\030\004 \001(\0132\025.google.i" + + "am.v1.Policy\0225\n\norg_policy\030\006 \003(\0132!.googl" + + "e.cloud.orgpolicy.v1.Policy\022N\n\raccess_po" + + "licy\030\007 \001(\01325.google.identity.accessconte" + + "xtmanager.v1.AccessPolicyH\000\022L\n\014access_le" + + "vel\030\010 \001(\01324.google.identity.accesscontex" + + "tmanager.v1.AccessLevelH\000\022V\n\021service_per" + + "imeter\030\t \001(\01329.google.identity.accesscon" + + "textmanager.v1.ServicePerimeterH\000\022\021\n\tanc" + + "estors\030\n \003(\t:\'\352A$\n\037cloudasset.googleapis" + + ".com/Asset\022\001*B\027\n\025access_context_policy\"\240" + + "\001\n\010Resource\022\017\n\007version\030\001 \001(\t\022\036\n\026discover" + + "y_document_uri\030\002 \001(\t\022\026\n\016discovery_name\030\003" + + " \001(\t\022\024\n\014resource_url\030\004 \001(\t\022\016\n\006parent\030\005 \001" + + "(\t\022%\n\004data\030\006 \001(\0132\027.google.protobuf.Struc" + + "tB\264\001\n com.google.cloud.asset.v1p5beta1B\n" + + "AssetProtoP\001ZAgoogle.golang.org/genproto" + + "/googleapis/cloud/asset/v1p5beta1;asset\370" + + "\001\001\252\002\034Google.Cloud.Asset.V1p5Beta1\312\002\034Goog" + + "le\\Cloud\\Asset\\V1p5beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(), + com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(), + com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_asset_v1p5beta1_Asset_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_asset_v1p5beta1_Asset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p5beta1_Asset_descriptor, + new java.lang.String[] { + "Name", + "AssetType", + "Resource", + "IamPolicy", + "OrgPolicy", + "AccessPolicy", + "AccessLevel", + "ServicePerimeter", + "Ancestors", + "AccessContextPolicy", + }); + internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_asset_v1p5beta1_Resource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor, + new java.lang.String[] { + "Version", "DiscoveryDocumentUri", "DiscoveryName", "ResourceUrl", "Parent", "Data", + }); + 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.orgpolicy.v1.OrgPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(); + com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(); + com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceProto.java b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceProto.java new file mode 100644 index 000000000000..608622bdb9a6 --- /dev/null +++ b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceProto.java @@ -0,0 +1,120 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1p5beta1/asset_service.proto + +package com.google.cloud.asset.v1p5beta1; + +public final class AssetServiceProto { + private AssetServiceProto() {} + + 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_asset_v1p5beta1_ListAssetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/asset/v1p5beta1/asset_ser" + + "vice.proto\022\034google.cloud.asset.v1p5beta1" + + "\032\034google/api/annotations.proto\032\027google/a" + + "pi/client.proto\032\037google/api/field_behavi" + + "or.proto\032)google/cloud/asset/v1p5beta1/a" + + "ssets.proto\032\037google/protobuf/timestamp.p" + + "roto\"\324\001\n\021ListAssetsRequest\022\023\n\006parent\030\001 \001" + + "(\tB\003\340A\002\022-\n\tread_time\030\002 \001(\0132\032.google.prot" + + "obuf.Timestamp\022\023\n\013asset_types\030\003 \003(\t\022?\n\014c" + + "ontent_type\030\004 \001(\0162).google.cloud.asset.v" + + "1p5beta1.ContentType\022\021\n\tpage_size\030\005 \001(\005\022" + + "\022\n\npage_token\030\006 \001(\t\"\221\001\n\022ListAssetsRespon" + + "se\022-\n\tread_time\030\001 \001(\0132\032.google.protobuf." + + "Timestamp\0223\n\006assets\030\002 \003(\0132#.google.cloud" + + ".asset.v1p5beta1.Asset\022\027\n\017next_page_toke" + + "n\030\003 \001(\t*l\n\013ContentType\022\034\n\030CONTENT_TYPE_U" + + "NSPECIFIED\020\000\022\014\n\010RESOURCE\020\001\022\016\n\nIAM_POLICY" + + "\020\002\022\016\n\nORG_POLICY\020\004\022\021\n\rACCESS_POLICY\020\0052\367\001" + + "\n\014AssetService\022\227\001\n\nListAssets\022/.google.c" + + "loud.asset.v1p5beta1.ListAssetsRequest\0320" + + ".google.cloud.asset.v1p5beta1.ListAssets" + + "Response\"&\202\323\344\223\002 \022\036/v1p5beta1/{parent=*/*" + + "}/assets\032M\312A\031cloudasset.googleapis.com\322A" + + ".https://www.googleapis.com/auth/cloud-p" + + "latformB\270\001\n com.google.cloud.asset.v1p5b" + + "eta1B\021AssetServiceProtoP\001ZAgoogle.golang" + + ".org/genproto/googleapis/cloud/asset/v1p" + + "5beta1;asset\252\002\034Google.Cloud.Asset.V1P5Be" + + "ta1\312\002\034Google\\Cloud\\Asset\\V1p5beta1b\006prot" + + "o3" + }; + 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.cloud.asset.v1p5beta1.AssetProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_descriptor, + new java.lang.String[] { + "Parent", "ReadTime", "AssetTypes", "ContentType", "PageSize", "PageToken", + }); + internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor, + new java.lang.String[] { + "ReadTime", "Assets", "NextPageToken", + }); + 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.oauthScopes); + 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.cloud.asset.v1p5beta1.AssetProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ContentType.java b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ContentType.java similarity index 69% rename from owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ContentType.java rename to java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ContentType.java index edc9ca3e0510..fed8739eb913 100644 --- a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ContentType.java +++ b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ContentType.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p5beta1/asset_service.proto package com.google.cloud.asset.v1p5beta1; /** + * + * *
      * Asset content type.
      * 
    * * Protobuf enum {@code google.cloud.asset.v1p5beta1.ContentType} */ -public enum ContentType - implements com.google.protobuf.ProtocolMessageEnum { +public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unspecified content type.
        * 
    @@ -21,6 +39,8 @@ public enum ContentType */ CONTENT_TYPE_UNSPECIFIED(0), /** + * + * *
        * Resource metadata.
        * 
    @@ -29,6 +49,8 @@ public enum ContentType */ RESOURCE(1), /** + * + * *
        * The actual IAM policy set on a resource.
        * 
    @@ -37,6 +59,8 @@ public enum ContentType */ IAM_POLICY(2), /** + * + * *
        * The Cloud Organization Policy set on an asset.
        * 
    @@ -45,6 +69,8 @@ public enum ContentType */ ORG_POLICY(4), /** + * + * *
        * The Cloud Access context mananger Policy set on an asset.
        * 
    @@ -56,6 +82,8 @@ public enum ContentType ; /** + * + * *
        * Unspecified content type.
        * 
    @@ -64,6 +92,8 @@ public enum ContentType */ public static final int CONTENT_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Resource metadata.
        * 
    @@ -72,6 +102,8 @@ public enum ContentType */ public static final int RESOURCE_VALUE = 1; /** + * + * *
        * The actual IAM policy set on a resource.
        * 
    @@ -80,6 +112,8 @@ public enum ContentType */ public static final int IAM_POLICY_VALUE = 2; /** + * + * *
        * The Cloud Organization Policy set on an asset.
        * 
    @@ -88,6 +122,8 @@ public enum ContentType */ public static final int ORG_POLICY_VALUE = 4; /** + * + * *
        * The Cloud Access context mananger Policy set on an asset.
        * 
    @@ -96,7 +132,6 @@ public enum ContentType */ public static final int ACCESS_POLICY_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -121,51 +156,53 @@ public static ContentType valueOf(int value) { */ public static ContentType forNumber(int value) { switch (value) { - case 0: return CONTENT_TYPE_UNSPECIFIED; - case 1: return RESOURCE; - case 2: return IAM_POLICY; - case 4: return ORG_POLICY; - case 5: return ACCESS_POLICY; - default: return null; + case 0: + return CONTENT_TYPE_UNSPECIFIED; + case 1: + return RESOURCE; + case 2: + return IAM_POLICY; + case 4: + return ORG_POLICY; + case 5: + return ACCESS_POLICY; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ContentType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ContentType findValueByNumber(int number) { - return ContentType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ContentType findValueByNumber(int number) { + return ContentType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.asset.v1p5beta1.AssetServiceProto.getDescriptor().getEnumTypes().get(0); } private static final ContentType[] VALUES = values(); - public static ContentType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ContentType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -181,4 +218,3 @@ private ContentType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.asset.v1p5beta1.ContentType) } - diff --git a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequest.java b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequest.java similarity index 77% rename from owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequest.java rename to java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequest.java index 52741cde229c..614da13abd8a 100644 --- a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequest.java +++ b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p5beta1/asset_service.proto package com.google.cloud.asset.v1p5beta1; /** + * + * *
      * ListAssets request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p5beta1.ListAssetsRequest} */ -public final class ListAssetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAssetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p5beta1.ListAssetsRequest) ListAssetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAssetsRequest.newBuilder() to construct. private ListAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAssetsRequest() { parent_ = ""; assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -28,32 +46,35 @@ private ListAssetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAssetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p5beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p5beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p5beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_fieldAccessorTable + return com.google.cloud.asset.v1p5beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p5beta1.ListAssetsRequest.class, com.google.cloud.asset.v1p5beta1.ListAssetsRequest.Builder.class); + com.google.cloud.asset.v1p5beta1.ListAssetsRequest.class, + com.google.cloud.asset.v1p5beta1.ListAssetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
        * Required. Name of the organization or project the assets belong to. Format:
        * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -62,6 +83,7 @@ protected java.lang.Object newInstance(
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -70,14 +92,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
        * Required. Name of the organization or project the assets belong to. Format:
        * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -86,16 +109,15 @@ public java.lang.String getParent() {
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -106,6 +128,8 @@ public java.lang.String getParent() { public static final int READ_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp readTime_; /** + * + * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -115,6 +139,7 @@ public java.lang.String getParent() {
        * 
    * * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -122,6 +147,8 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -131,6 +158,7 @@ public boolean hasReadTime() {
        * 
    * * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ @java.lang.Override @@ -138,6 +166,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -156,6 +186,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       public static final int ASSET_TYPES_FIELD_NUMBER = 3;
       private com.google.protobuf.LazyStringList assetTypes_;
       /**
    +   *
    +   *
        * 
        * A list of asset types of which to take a snapshot for. For  example:
        * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -165,13 +197,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
        * 
    * * repeated string asset_types = 3; + * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList - getAssetTypesList() { + public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_; } /** + * + * *
        * A list of asset types of which to take a snapshot for. For  example:
        * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -181,12 +215,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
        * 
    * * repeated string asset_types = 3; + * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** + * + * *
        * A list of asset types of which to take a snapshot for. For  example:
        * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -196,6 +233,7 @@ public int getAssetTypesCount() {
        * 
    * * repeated string asset_types = 3; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -203,6 +241,8 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** + * + * *
        * A list of asset types of which to take a snapshot for. For  example:
        * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -212,52 +252,64 @@ public java.lang.String getAssetTypes(int index) {
        * 
    * * repeated string asset_types = 3; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString - getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } public static final int CONTENT_TYPE_FIELD_NUMBER = 4; private int contentType_; /** + * + * *
        * Asset content type. If not specified, no content but the asset name will
        * be returned.
        * 
    * * .google.cloud.asset.v1p5beta1.ContentType content_type = 4; + * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override public int getContentTypeValue() { + @java.lang.Override + public int getContentTypeValue() { return contentType_; } /** + * + * *
        * Asset content type. If not specified, no content but the asset name will
        * be returned.
        * 
    * * .google.cloud.asset.v1p5beta1.ContentType content_type = 4; + * * @return The contentType. */ - @java.lang.Override public com.google.cloud.asset.v1p5beta1.ContentType getContentType() { + @java.lang.Override + public com.google.cloud.asset.v1p5beta1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1p5beta1.ContentType result = com.google.cloud.asset.v1p5beta1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1p5beta1.ContentType result = + com.google.cloud.asset.v1p5beta1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1p5beta1.ContentType.UNRECOGNIZED : result; } public static final int PAGE_SIZE_FIELD_NUMBER = 5; private int pageSize_; /** + * + * *
        * The maximum number of assets to be returned in a single response. Default
        * is 100, minimum is 1, and maximum is 1000.
        * 
    * * int32 page_size = 5; + * * @return The pageSize. */ @java.lang.Override @@ -268,6 +320,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 6; private volatile java.lang.Object pageToken_; /** + * + * *
        * The `next_page_token` returned from the previous `ListAssetsResponse`, or
        * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -275,6 +329,7 @@ public int getPageSize() {
        * 
    * * string page_token = 6; + * * @return The pageToken. */ @java.lang.Override @@ -283,14 +338,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
        * The `next_page_token` returned from the previous `ListAssetsResponse`, or
        * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -298,16 +354,15 @@ public java.lang.String getPageToken() {
        * 
    * * string page_token = 6; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -316,6 +371,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -327,8 +383,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -338,7 +393,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < assetTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, assetTypes_.getRaw(i)); } - if (contentType_ != com.google.cloud.asset.v1p5beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + if (contentType_ + != com.google.cloud.asset.v1p5beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, contentType_); } if (pageSize_ != 0) { @@ -360,8 +416,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); } { int dataSize = 0; @@ -371,13 +426,12 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAssetTypesList().size(); } - if (contentType_ != com.google.cloud.asset.v1p5beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, contentType_); + if (contentType_ + != com.google.cloud.asset.v1p5beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, contentType_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); @@ -390,27 +444,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p5beta1.ListAssetsRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1p5beta1.ListAssetsRequest other = (com.google.cloud.asset.v1p5beta1.ListAssetsRequest) obj; + com.google.cloud.asset.v1p5beta1.ListAssetsRequest other = + (com.google.cloud.asset.v1p5beta1.ListAssetsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } - if (!getAssetTypesList() - .equals(other.getAssetTypesList())) return false; + if (!getAssetTypesList().equals(other.getAssetTypesList())) return false; if (contentType_ != other.contentType_) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -444,129 +494,135 @@ public int hashCode() { } public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest 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.asset.v1p5beta1.ListAssetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p5beta1.ListAssetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * ListAssets request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p5beta1.ListAssetsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p5beta1.ListAssetsRequest) com.google.cloud.asset.v1p5beta1.ListAssetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p5beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p5beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p5beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_fieldAccessorTable + return com.google.cloud.asset.v1p5beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p5beta1.ListAssetsRequest.class, com.google.cloud.asset.v1p5beta1.ListAssetsRequest.Builder.class); + com.google.cloud.asset.v1p5beta1.ListAssetsRequest.class, + com.google.cloud.asset.v1p5beta1.ListAssetsRequest.Builder.class); } // Construct using com.google.cloud.asset.v1p5beta1.ListAssetsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -590,9 +646,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p5beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p5beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_descriptor; } @java.lang.Override @@ -611,7 +667,8 @@ public com.google.cloud.asset.v1p5beta1.ListAssetsRequest build() { @java.lang.Override public com.google.cloud.asset.v1p5beta1.ListAssetsRequest buildPartial() { - com.google.cloud.asset.v1p5beta1.ListAssetsRequest result = new com.google.cloud.asset.v1p5beta1.ListAssetsRequest(this); + com.google.cloud.asset.v1p5beta1.ListAssetsRequest result = + new com.google.cloud.asset.v1p5beta1.ListAssetsRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (readTimeBuilder_ == null) { @@ -635,38 +692,39 @@ public com.google.cloud.asset.v1p5beta1.ListAssetsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p5beta1.ListAssetsRequest) { - return mergeFrom((com.google.cloud.asset.v1p5beta1.ListAssetsRequest)other); + return mergeFrom((com.google.cloud.asset.v1p5beta1.ListAssetsRequest) other); } else { super.mergeFrom(other); return this; @@ -674,7 +732,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p5beta1.ListAssetsRequest other) { - if (other == com.google.cloud.asset.v1p5beta1.ListAssetsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1p5beta1.ListAssetsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -728,45 +787,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getReadTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAssetTypesIsMutable(); - assetTypes_.add(s); - break; - } // case 26 - case 32: { - contentType_ = input.readEnum(); - - break; - } // case 32 - case 40: { - pageSize_ = input.readInt32(); - - break; - } // case 40 - case 50: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getReadTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAssetTypesIsMutable(); + assetTypes_.add(s); + break; + } // case 26 + case 32: + { + contentType_ = input.readEnum(); + + break; + } // case 32 + case 40: + { + pageSize_ = input.readInt32(); + + break; + } // case 40 + case 50: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -776,10 +840,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
          * Required. Name of the organization or project the assets belong to. Format:
          * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -788,13 +855,13 @@ public Builder mergeFrom(
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -803,6 +870,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. Name of the organization or project the assets belong to. Format:
          * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -811,15 +880,14 @@ public java.lang.String getParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -827,6 +895,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. Name of the organization or project the assets belong to. Format:
          * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -835,20 +905,22 @@ public java.lang.String getParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
          * Required. Name of the organization or project the assets belong to. Format:
          * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -857,15 +929,18 @@ public Builder setParent(
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
          * Required. Name of the organization or project the assets belong to. Format:
          * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -874,16 +949,16 @@ public Builder clearParent() {
          * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -891,8 +966,13 @@ public Builder setParentBytes( private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -902,12 +982,15 @@ public Builder setParentBytes(
          * 
    * * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -917,6 +1000,7 @@ public boolean hasReadTime() {
          * 
    * * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -927,6 +1011,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -951,6 +1037,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -961,8 +1049,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
          *
          * .google.protobuf.Timestamp read_time = 2;
          */
    -    public Builder setReadTime(
    -        com.google.protobuf.Timestamp.Builder builderForValue) {
    +    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
           if (readTimeBuilder_ == null) {
             readTime_ = builderForValue.build();
             onChanged();
    @@ -973,6 +1060,8 @@ public Builder setReadTime(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -987,7 +1076,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
           if (readTimeBuilder_ == null) {
             if (readTime_ != null) {
               readTime_ =
    -            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
    +              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
             } else {
               readTime_ = value;
             }
    @@ -999,6 +1088,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -1021,6 +1112,8 @@ public Builder clearReadTime() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -1032,11 +1125,13 @@ public Builder clearReadTime() {
          * .google.protobuf.Timestamp read_time = 2;
          */
         public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
    -      
    +
           onChanged();
           return getReadTimeFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -1051,11 +1146,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
           if (readTimeBuilder_ != null) {
             return readTimeBuilder_.getMessageOrBuilder();
           } else {
    -        return readTime_ == null ?
    -            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
    +        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
           }
         }
         /**
    +     *
    +     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -1067,27 +1163,34 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
          * .google.protobuf.Timestamp read_time = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
    +            com.google.protobuf.Timestamp,
    +            com.google.protobuf.Timestamp.Builder,
    +            com.google.protobuf.TimestampOrBuilder>
             getReadTimeFieldBuilder() {
           if (readTimeBuilder_ == null) {
    -        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    -                getReadTime(),
    -                getParentForChildren(),
    -                isClean());
    +        readTimeBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.Timestamp,
    +                com.google.protobuf.Timestamp.Builder,
    +                com.google.protobuf.TimestampOrBuilder>(
    +                getReadTime(), getParentForChildren(), isClean());
             readTime_ = null;
           }
           return readTimeBuilder_;
         }
     
    -    private com.google.protobuf.LazyStringList assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    +    private com.google.protobuf.LazyStringList assetTypes_ =
    +        com.google.protobuf.LazyStringArrayList.EMPTY;
    +
         private void ensureAssetTypesIsMutable() {
           if (!((bitField0_ & 0x00000001) != 0)) {
             assetTypes_ = new com.google.protobuf.LazyStringArrayList(assetTypes_);
             bitField0_ |= 0x00000001;
    -       }
    +      }
         }
         /**
    +     *
    +     *
          * 
          * A list of asset types of which to take a snapshot for. For  example:
          * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -1097,13 +1200,15 @@ private void ensureAssetTypesIsMutable() {
          * 
    * * repeated string asset_types = 3; + * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList - getAssetTypesList() { + public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_.getUnmodifiableView(); } /** + * + * *
          * A list of asset types of which to take a snapshot for. For  example:
          * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -1113,12 +1218,15 @@ private void ensureAssetTypesIsMutable() {
          * 
    * * repeated string asset_types = 3; + * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** + * + * *
          * A list of asset types of which to take a snapshot for. For  example:
          * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -1128,6 +1236,7 @@ public int getAssetTypesCount() {
          * 
    * * repeated string asset_types = 3; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -1135,6 +1244,8 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** + * + * *
          * A list of asset types of which to take a snapshot for. For  example:
          * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -1144,14 +1255,16 @@ public java.lang.String getAssetTypes(int index) {
          * 
    * * repeated string asset_types = 3; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString - getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } /** + * + * *
          * A list of asset types of which to take a snapshot for. For  example:
          * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -1161,21 +1274,23 @@ public java.lang.String getAssetTypes(int index) {
          * 
    * * repeated string asset_types = 3; + * * @param index The index to set the value at. * @param value The assetTypes to set. * @return This builder for chaining. */ - public Builder setAssetTypes( - int index, java.lang.String value) { + public Builder setAssetTypes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.set(index, value); onChanged(); return this; } /** + * + * *
          * A list of asset types of which to take a snapshot for. For  example:
          * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -1185,20 +1300,22 @@ public Builder setAssetTypes(
          * 
    * * repeated string asset_types = 3; + * * @param value The assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypes( - java.lang.String value) { + public Builder addAssetTypes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); return this; } /** + * + * *
          * A list of asset types of which to take a snapshot for. For  example:
          * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -1208,18 +1325,19 @@ public Builder addAssetTypes(
          * 
    * * repeated string asset_types = 3; + * * @param values The assetTypes to add. * @return This builder for chaining. */ - public Builder addAllAssetTypes( - java.lang.Iterable values) { + public Builder addAllAssetTypes(java.lang.Iterable values) { ensureAssetTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, assetTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetTypes_); onChanged(); return this; } /** + * + * *
          * A list of asset types of which to take a snapshot for. For  example:
          * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -1229,6 +1347,7 @@ public Builder addAllAssetTypes(
          * 
    * * repeated string asset_types = 3; + * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1238,6 +1357,8 @@ public Builder clearAssetTypes() { return this; } /** + * + * *
          * A list of asset types of which to take a snapshot for. For  example:
          * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -1247,15 +1368,15 @@ public Builder clearAssetTypes() {
          * 
    * * repeated string asset_types = 3; + * * @param value The bytes of the assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypesBytes( - com.google.protobuf.ByteString value) { + public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); @@ -1264,55 +1385,69 @@ public Builder addAssetTypesBytes( private int contentType_ = 0; /** + * + * *
          * Asset content type. If not specified, no content but the asset name will
          * be returned.
          * 
    * * .google.cloud.asset.v1p5beta1.ContentType content_type = 4; + * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override public int getContentTypeValue() { + @java.lang.Override + public int getContentTypeValue() { return contentType_; } /** + * + * *
          * Asset content type. If not specified, no content but the asset name will
          * be returned.
          * 
    * * .google.cloud.asset.v1p5beta1.ContentType content_type = 4; + * * @param value The enum numeric value on the wire for contentType to set. * @return This builder for chaining. */ public Builder setContentTypeValue(int value) { - + contentType_ = value; onChanged(); return this; } /** + * + * *
          * Asset content type. If not specified, no content but the asset name will
          * be returned.
          * 
    * * .google.cloud.asset.v1p5beta1.ContentType content_type = 4; + * * @return The contentType. */ @java.lang.Override public com.google.cloud.asset.v1p5beta1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1p5beta1.ContentType result = com.google.cloud.asset.v1p5beta1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1p5beta1.ContentType result = + com.google.cloud.asset.v1p5beta1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1p5beta1.ContentType.UNRECOGNIZED : result; } /** + * + * *
          * Asset content type. If not specified, no content but the asset name will
          * be returned.
          * 
    * * .google.cloud.asset.v1p5beta1.ContentType content_type = 4; + * * @param value The contentType to set. * @return This builder for chaining. */ @@ -1320,35 +1455,41 @@ public Builder setContentType(com.google.cloud.asset.v1p5beta1.ContentType value if (value == null) { throw new NullPointerException(); } - + contentType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
          * Asset content type. If not specified, no content but the asset name will
          * be returned.
          * 
    * * .google.cloud.asset.v1p5beta1.ContentType content_type = 4; + * * @return This builder for chaining. */ public Builder clearContentType() { - + contentType_ = 0; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
          * The maximum number of assets to be returned in a single response. Default
          * is 100, minimum is 1, and maximum is 1000.
          * 
    * * int32 page_size = 5; + * * @return The pageSize. */ @java.lang.Override @@ -1356,32 +1497,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
          * The maximum number of assets to be returned in a single response. Default
          * is 100, minimum is 1, and maximum is 1000.
          * 
    * * int32 page_size = 5; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
          * The maximum number of assets to be returned in a single response. Default
          * is 100, minimum is 1, and maximum is 1000.
          * 
    * * int32 page_size = 5; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1389,6 +1536,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
          * The `next_page_token` returned from the previous `ListAssetsResponse`, or
          * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -1396,13 +1545,13 @@ public Builder clearPageSize() {
          * 
    * * string page_token = 6; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1411,6 +1560,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
          * The `next_page_token` returned from the previous `ListAssetsResponse`, or
          * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -1418,15 +1569,14 @@ public java.lang.String getPageToken() {
          * 
    * * string page_token = 6; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1434,6 +1584,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
          * The `next_page_token` returned from the previous `ListAssetsResponse`, or
          * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -1441,20 +1593,22 @@ public java.lang.String getPageToken() {
          * 
    * * string page_token = 6; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
          * The `next_page_token` returned from the previous `ListAssetsResponse`, or
          * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -1462,15 +1616,18 @@ public Builder setPageToken(
          * 
    * * string page_token = 6; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
          * The `next_page_token` returned from the previous `ListAssetsResponse`, or
          * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -1478,23 +1635,23 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1504,12 +1661,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p5beta1.ListAssetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p5beta1.ListAssetsRequest) private static final com.google.cloud.asset.v1p5beta1.ListAssetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p5beta1.ListAssetsRequest(); } @@ -1518,27 +1675,27 @@ public static com.google.cloud.asset.v1p5beta1.ListAssetsRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1553,6 +1710,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p5beta1.ListAssetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequestOrBuilder.java similarity index 85% rename from owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequestOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequestOrBuilder.java index 38c78bebe193..2268b978f033 100644 --- a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p5beta1/asset_service.proto package com.google.cloud.asset.v1p5beta1; -public interface ListAssetsRequestOrBuilder extends +public interface ListAssetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p5beta1.ListAssetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. Name of the organization or project the assets belong to. Format:
        * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -16,10 +34,13 @@ public interface ListAssetsRequestOrBuilder extends
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
        * Required. Name of the organization or project the assets belong to. Format:
        * "organizations/[organization-number]" (such as "organizations/123"),
    @@ -28,12 +49,14 @@ public interface ListAssetsRequestOrBuilder extends
        * 
    * * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -43,10 +66,13 @@ public interface ListAssetsRequestOrBuilder extends
        * 
    * * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -56,10 +82,13 @@ public interface ListAssetsRequestOrBuilder extends
        * 
    * * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between 2018-10-02 UTC (inclusive) and the current time. If not specified,
    @@ -73,6 +102,8 @@ public interface ListAssetsRequestOrBuilder extends
       com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * A list of asset types of which to take a snapshot for. For  example:
        * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -82,11 +113,13 @@ public interface ListAssetsRequestOrBuilder extends
        * 
    * * repeated string asset_types = 3; + * * @return A list containing the assetTypes. */ - java.util.List - getAssetTypesList(); + java.util.List getAssetTypesList(); /** + * + * *
        * A list of asset types of which to take a snapshot for. For  example:
        * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -96,10 +129,13 @@ public interface ListAssetsRequestOrBuilder extends
        * 
    * * repeated string asset_types = 3; + * * @return The count of assetTypes. */ int getAssetTypesCount(); /** + * + * *
        * A list of asset types of which to take a snapshot for. For  example:
        * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -109,11 +145,14 @@ public interface ListAssetsRequestOrBuilder extends
        * 
    * * repeated string asset_types = 3; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ java.lang.String getAssetTypes(int index); /** + * + * *
        * A list of asset types of which to take a snapshot for. For  example:
        * "compute.googleapis.com/Disk". If specified, only matching assets will be
    @@ -123,45 +162,56 @@ public interface ListAssetsRequestOrBuilder extends
        * 
    * * repeated string asset_types = 3; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - com.google.protobuf.ByteString - getAssetTypesBytes(int index); + com.google.protobuf.ByteString getAssetTypesBytes(int index); /** + * + * *
        * Asset content type. If not specified, no content but the asset name will
        * be returned.
        * 
    * * .google.cloud.asset.v1p5beta1.ContentType content_type = 4; + * * @return The enum numeric value on the wire for contentType. */ int getContentTypeValue(); /** + * + * *
        * Asset content type. If not specified, no content but the asset name will
        * be returned.
        * 
    * * .google.cloud.asset.v1p5beta1.ContentType content_type = 4; + * * @return The contentType. */ com.google.cloud.asset.v1p5beta1.ContentType getContentType(); /** + * + * *
        * The maximum number of assets to be returned in a single response. Default
        * is 100, minimum is 1, and maximum is 1000.
        * 
    * * int32 page_size = 5; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
        * The `next_page_token` returned from the previous `ListAssetsResponse`, or
        * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -169,10 +219,13 @@ public interface ListAssetsRequestOrBuilder extends
        * 
    * * string page_token = 6; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
        * The `next_page_token` returned from the previous `ListAssetsResponse`, or
        * unspecified for the first `ListAssetsRequest`. It is a continuation of a
    @@ -180,8 +233,8 @@ public interface ListAssetsRequestOrBuilder extends
        * 
    * * string page_token = 6; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponse.java b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponse.java similarity index 72% rename from owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponse.java rename to java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponse.java index ac66acc49f62..986a57608398 100644 --- a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponse.java +++ b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p5beta1/asset_service.proto package com.google.cloud.asset.v1p5beta1; /** + * + * *
      * ListAssets response.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p5beta1.ListAssetsResponse} */ -public final class ListAssetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAssetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p5beta1.ListAssetsResponse) ListAssetsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAssetsResponse.newBuilder() to construct. private ListAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAssetsResponse() { assets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,37 +44,41 @@ private ListAssetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAssetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p5beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p5beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p5beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_fieldAccessorTable + return com.google.cloud.asset.v1p5beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p5beta1.ListAssetsResponse.class, com.google.cloud.asset.v1p5beta1.ListAssetsResponse.Builder.class); + com.google.cloud.asset.v1p5beta1.ListAssetsResponse.class, + com.google.cloud.asset.v1p5beta1.ListAssetsResponse.Builder.class); } public static final int READ_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp readTime_; /** + * + * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -64,11 +86,14 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; + * * @return The readTime. */ @java.lang.Override @@ -76,6 +101,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
        * Time the snapshot was taken.
        * 
    @@ -90,6 +117,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int ASSETS_FIELD_NUMBER = 2; private java.util.List assets_; /** + * + * *
        * Assets.
        * 
    @@ -101,6 +130,8 @@ public java.util.List getAssetsList() { return assets_; } /** + * + * *
        * Assets.
        * 
    @@ -108,11 +139,13 @@ public java.util.List getAssetsList() { * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ @java.lang.Override - public java.util.List + public java.util.List getAssetsOrBuilderList() { return assets_; } /** + * + * *
        * Assets.
        * 
    @@ -124,6 +157,8 @@ public int getAssetsCount() { return assets_.size(); } /** + * + * *
        * Assets.
        * 
    @@ -135,6 +170,8 @@ public com.google.cloud.asset.v1p5beta1.Asset getAssets(int index) { return assets_.get(index); } /** + * + * *
        * Assets.
        * 
    @@ -142,20 +179,22 @@ public com.google.cloud.asset.v1p5beta1.Asset getAssets(int index) { * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ @java.lang.Override - public com.google.cloud.asset.v1p5beta1.AssetOrBuilder getAssetsOrBuilder( - int index) { + public com.google.cloud.asset.v1p5beta1.AssetOrBuilder getAssetsOrBuilder(int index) { return assets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** + * + * *
        * Token to retrieve the next page of results. Set to empty if there are no
        * remaining results.
        * 
    * * string next_page_token = 3; + * * @return The nextPageToken. */ @java.lang.Override @@ -164,30 +203,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
        * Token to retrieve the next page of results. Set to empty if there are no
        * remaining results.
        * 
    * * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -196,6 +235,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,8 +247,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (readTime_ != null) { output.writeMessage(1, getReadTime()); } @@ -228,12 +267,10 @@ public int getSerializedSize() { size = 0; if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReadTime()); } for (int i = 0; i < assets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, assets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, assets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); @@ -246,22 +283,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p5beta1.ListAssetsResponse)) { return super.equals(obj); } - com.google.cloud.asset.v1p5beta1.ListAssetsResponse other = (com.google.cloud.asset.v1p5beta1.ListAssetsResponse) obj; + com.google.cloud.asset.v1p5beta1.ListAssetsResponse other = + (com.google.cloud.asset.v1p5beta1.ListAssetsResponse) obj; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } - if (!getAssetsList() - .equals(other.getAssetsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getAssetsList().equals(other.getAssetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -289,129 +324,135 @@ public int hashCode() { } public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse 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.asset.v1p5beta1.ListAssetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p5beta1.ListAssetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * ListAssets response.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p5beta1.ListAssetsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p5beta1.ListAssetsResponse) com.google.cloud.asset.v1p5beta1.ListAssetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p5beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p5beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p5beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_fieldAccessorTable + return com.google.cloud.asset.v1p5beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p5beta1.ListAssetsResponse.class, com.google.cloud.asset.v1p5beta1.ListAssetsResponse.Builder.class); + com.google.cloud.asset.v1p5beta1.ListAssetsResponse.class, + com.google.cloud.asset.v1p5beta1.ListAssetsResponse.Builder.class); } // Construct using com.google.cloud.asset.v1p5beta1.ListAssetsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -434,9 +475,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p5beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p5beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor; } @java.lang.Override @@ -455,7 +496,8 @@ public com.google.cloud.asset.v1p5beta1.ListAssetsResponse build() { @java.lang.Override public com.google.cloud.asset.v1p5beta1.ListAssetsResponse buildPartial() { - com.google.cloud.asset.v1p5beta1.ListAssetsResponse result = new com.google.cloud.asset.v1p5beta1.ListAssetsResponse(this); + com.google.cloud.asset.v1p5beta1.ListAssetsResponse result = + new com.google.cloud.asset.v1p5beta1.ListAssetsResponse(this); int from_bitField0_ = bitField0_; if (readTimeBuilder_ == null) { result.readTime_ = readTime_; @@ -480,38 +522,39 @@ public com.google.cloud.asset.v1p5beta1.ListAssetsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p5beta1.ListAssetsResponse) { - return mergeFrom((com.google.cloud.asset.v1p5beta1.ListAssetsResponse)other); + return mergeFrom((com.google.cloud.asset.v1p5beta1.ListAssetsResponse) other); } else { super.mergeFrom(other); return this; @@ -519,7 +562,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p5beta1.ListAssetsResponse other) { - if (other == com.google.cloud.asset.v1p5beta1.ListAssetsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1p5beta1.ListAssetsResponse.getDefaultInstance()) + return this; if (other.hasReadTime()) { mergeReadTime(other.getReadTime()); } @@ -541,9 +585,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1p5beta1.ListAssetsResponse oth assetsBuilder_ = null; assets_ = other.assets_; bitField0_ = (bitField0_ & ~0x00000001); - assetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAssetsFieldBuilder() : null; + assetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAssetsFieldBuilder() + : null; } else { assetsBuilder_.addAllMessages(other.assets_); } @@ -579,37 +624,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getReadTimeFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage(getReadTimeFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 10 - case 18: { - com.google.cloud.asset.v1p5beta1.Asset m = - input.readMessage( - com.google.cloud.asset.v1p5beta1.Asset.parser(), - extensionRegistry); - if (assetsBuilder_ == null) { - ensureAssetsIsMutable(); - assets_.add(m); - } else { - assetsBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: { - nextPageToken_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + com.google.cloud.asset.v1p5beta1.Asset m = + input.readMessage( + com.google.cloud.asset.v1p5beta1.Asset.parser(), extensionRegistry); + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.add(m); + } else { + assetsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -619,28 +665,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
          * Time the snapshot was taken.
          * 
    * * .google.protobuf.Timestamp read_time = 1; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
          * Time the snapshot was taken.
          * 
    * * .google.protobuf.Timestamp read_time = 1; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -651,6 +707,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
          * Time the snapshot was taken.
          * 
    @@ -671,14 +729,15 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * Time the snapshot was taken.
          * 
    * * .google.protobuf.Timestamp read_time = 1; */ - public Builder setReadTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -689,6 +748,8 @@ public Builder setReadTime( return this; } /** + * + * *
          * Time the snapshot was taken.
          * 
    @@ -699,7 +760,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -711,6 +772,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * Time the snapshot was taken.
          * 
    @@ -729,6 +792,8 @@ public Builder clearReadTime() { return this; } /** + * + * *
          * Time the snapshot was taken.
          * 
    @@ -736,11 +801,13 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 1; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** + * + * *
          * Time the snapshot was taken.
          * 
    @@ -751,11 +818,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** + * + * *
          * Time the snapshot was taken.
          * 
    @@ -763,32 +831,41 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getReadTime(), - getParentForChildren(), - isClean()); + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); readTime_ = null; } return readTimeBuilder_; } private java.util.List assets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAssetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assets_ = new java.util.ArrayList(assets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p5beta1.Asset, com.google.cloud.asset.v1p5beta1.Asset.Builder, com.google.cloud.asset.v1p5beta1.AssetOrBuilder> assetsBuilder_; + com.google.cloud.asset.v1p5beta1.Asset, + com.google.cloud.asset.v1p5beta1.Asset.Builder, + com.google.cloud.asset.v1p5beta1.AssetOrBuilder> + assetsBuilder_; /** + * + * *
          * Assets.
          * 
    @@ -803,6 +880,8 @@ public java.util.List getAssetsList() { } } /** + * + * *
          * Assets.
          * 
    @@ -817,6 +896,8 @@ public int getAssetsCount() { } } /** + * + * *
          * Assets.
          * 
    @@ -831,14 +912,15 @@ public com.google.cloud.asset.v1p5beta1.Asset getAssets(int index) { } } /** + * + * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ - public Builder setAssets( - int index, com.google.cloud.asset.v1p5beta1.Asset value) { + public Builder setAssets(int index, com.google.cloud.asset.v1p5beta1.Asset value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -852,6 +934,8 @@ public Builder setAssets( return this; } /** + * + * *
          * Assets.
          * 
    @@ -870,6 +954,8 @@ public Builder setAssets( return this; } /** + * + * *
          * Assets.
          * 
    @@ -890,14 +976,15 @@ public Builder addAssets(com.google.cloud.asset.v1p5beta1.Asset value) { return this; } /** + * + * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ - public Builder addAssets( - int index, com.google.cloud.asset.v1p5beta1.Asset value) { + public Builder addAssets(int index, com.google.cloud.asset.v1p5beta1.Asset value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -911,14 +998,15 @@ public Builder addAssets( return this; } /** + * + * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ - public Builder addAssets( - com.google.cloud.asset.v1p5beta1.Asset.Builder builderForValue) { + public Builder addAssets(com.google.cloud.asset.v1p5beta1.Asset.Builder builderForValue) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); assets_.add(builderForValue.build()); @@ -929,6 +1017,8 @@ public Builder addAssets( return this; } /** + * + * *
          * Assets.
          * 
    @@ -947,6 +1037,8 @@ public Builder addAssets( return this; } /** + * + * *
          * Assets.
          * 
    @@ -957,8 +1049,7 @@ public Builder addAllAssets( java.lang.Iterable values) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, assets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assets_); onChanged(); } else { assetsBuilder_.addAllMessages(values); @@ -966,6 +1057,8 @@ public Builder addAllAssets( return this; } /** + * + * *
          * Assets.
          * 
    @@ -983,6 +1076,8 @@ public Builder clearAssets() { return this; } /** + * + * *
          * Assets.
          * 
    @@ -1000,39 +1095,44 @@ public Builder removeAssets(int index) { return this; } /** + * + * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ - public com.google.cloud.asset.v1p5beta1.Asset.Builder getAssetsBuilder( - int index) { + public com.google.cloud.asset.v1p5beta1.Asset.Builder getAssetsBuilder(int index) { return getAssetsFieldBuilder().getBuilder(index); } /** + * + * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ - public com.google.cloud.asset.v1p5beta1.AssetOrBuilder getAssetsOrBuilder( - int index) { + public com.google.cloud.asset.v1p5beta1.AssetOrBuilder getAssetsOrBuilder(int index) { if (assetsBuilder_ == null) { - return assets_.get(index); } else { + return assets_.get(index); + } else { return assetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ - public java.util.List - getAssetsOrBuilderList() { + public java.util.List + getAssetsOrBuilderList() { if (assetsBuilder_ != null) { return assetsBuilder_.getMessageOrBuilderList(); } else { @@ -1040,6 +1140,8 @@ public com.google.cloud.asset.v1p5beta1.AssetOrBuilder getAssetsOrBuilder( } } /** + * + * *
          * Assets.
          * 
    @@ -1047,42 +1149,47 @@ public com.google.cloud.asset.v1p5beta1.AssetOrBuilder getAssetsOrBuilder( * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ public com.google.cloud.asset.v1p5beta1.Asset.Builder addAssetsBuilder() { - return getAssetsFieldBuilder().addBuilder( - com.google.cloud.asset.v1p5beta1.Asset.getDefaultInstance()); + return getAssetsFieldBuilder() + .addBuilder(com.google.cloud.asset.v1p5beta1.Asset.getDefaultInstance()); } /** + * + * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ - public com.google.cloud.asset.v1p5beta1.Asset.Builder addAssetsBuilder( - int index) { - return getAssetsFieldBuilder().addBuilder( - index, com.google.cloud.asset.v1p5beta1.Asset.getDefaultInstance()); + public com.google.cloud.asset.v1p5beta1.Asset.Builder addAssetsBuilder(int index) { + return getAssetsFieldBuilder() + .addBuilder(index, com.google.cloud.asset.v1p5beta1.Asset.getDefaultInstance()); } /** + * + * *
          * Assets.
          * 
    * * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ - public java.util.List - getAssetsBuilderList() { + public java.util.List getAssetsBuilderList() { return getAssetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p5beta1.Asset, com.google.cloud.asset.v1p5beta1.Asset.Builder, com.google.cloud.asset.v1p5beta1.AssetOrBuilder> + com.google.cloud.asset.v1p5beta1.Asset, + com.google.cloud.asset.v1p5beta1.Asset.Builder, + com.google.cloud.asset.v1p5beta1.AssetOrBuilder> getAssetsFieldBuilder() { if (assetsBuilder_ == null) { - assetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p5beta1.Asset, com.google.cloud.asset.v1p5beta1.Asset.Builder, com.google.cloud.asset.v1p5beta1.AssetOrBuilder>( - assets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + assetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1p5beta1.Asset, + com.google.cloud.asset.v1p5beta1.Asset.Builder, + com.google.cloud.asset.v1p5beta1.AssetOrBuilder>( + assets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); assets_ = null; } return assetsBuilder_; @@ -1090,19 +1197,21 @@ public com.google.cloud.asset.v1p5beta1.Asset.Builder addAssetsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
          * Token to retrieve the next page of results. Set to empty if there are no
          * remaining results.
          * 
    * * string next_page_token = 3; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1111,21 +1220,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
          * Token to retrieve the next page of results. Set to empty if there are no
          * remaining results.
          * 
    * * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1133,64 +1243,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
          * Token to retrieve the next page of results. Set to empty if there are no
          * remaining results.
          * 
    * * string next_page_token = 3; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
          * Token to retrieve the next page of results. Set to empty if there are no
          * remaining results.
          * 
    * * string next_page_token = 3; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
          * Token to retrieve the next page of results. Set to empty if there are no
          * remaining results.
          * 
    * * 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1200,12 +1317,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p5beta1.ListAssetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p5beta1.ListAssetsResponse) private static final com.google.cloud.asset.v1p5beta1.ListAssetsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p5beta1.ListAssetsResponse(); } @@ -1214,27 +1331,27 @@ public static com.google.cloud.asset.v1p5beta1.ListAssetsResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1249,6 +1366,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p5beta1.ListAssetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponseOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponseOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponseOrBuilder.java index 89435126e1f4..0e39d6a3367a 100644 --- a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponseOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ListAssetsResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p5beta1/asset_service.proto package com.google.cloud.asset.v1p5beta1; -public interface ListAssetsResponseOrBuilder extends +public interface ListAssetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p5beta1.ListAssetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
        * Time the snapshot was taken.
        * 
    @@ -35,15 +59,18 @@ public interface ListAssetsResponseOrBuilder extends com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** + * + * *
        * Assets.
        * 
    * * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ - java.util.List - getAssetsList(); + java.util.List getAssetsList(); /** + * + * *
        * Assets.
        * 
    @@ -52,6 +79,8 @@ public interface ListAssetsResponseOrBuilder extends */ com.google.cloud.asset.v1p5beta1.Asset getAssets(int index); /** + * + * *
        * Assets.
        * 
    @@ -60,43 +89,51 @@ public interface ListAssetsResponseOrBuilder extends */ int getAssetsCount(); /** + * + * *
        * Assets.
        * 
    * * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ - java.util.List + java.util.List getAssetsOrBuilderList(); /** + * + * *
        * Assets.
        * 
    * * repeated .google.cloud.asset.v1p5beta1.Asset assets = 2; */ - com.google.cloud.asset.v1p5beta1.AssetOrBuilder getAssetsOrBuilder( - int index); + com.google.cloud.asset.v1p5beta1.AssetOrBuilder getAssetsOrBuilder(int index); /** + * + * *
        * Token to retrieve the next page of results. Set to empty if there are no
        * remaining results.
        * 
    * * string next_page_token = 3; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
        * Token to retrieve the next page of results. Set to empty if there are no
        * remaining results.
        * 
    * * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Resource.java b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Resource.java similarity index 75% rename from owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Resource.java rename to java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Resource.java index 7342f31a03e1..4fa82289ca27 100644 --- a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Resource.java +++ b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/Resource.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p5beta1/assets.proto package com.google.cloud.asset.v1p5beta1; /** + * + * *
      * Representation of a cloud resource.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p5beta1.Resource} */ -public final class Resource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Resource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p5beta1.Resource) ResourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Resource.newBuilder() to construct. private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Resource() { version_ = ""; discoveryDocumentUri_ = ""; @@ -29,37 +47,41 @@ private Resource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Resource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p5beta1.AssetProto.internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p5beta1.AssetProto + .internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p5beta1.AssetProto.internal_static_google_cloud_asset_v1p5beta1_Resource_fieldAccessorTable + return com.google.cloud.asset.v1p5beta1.AssetProto + .internal_static_google_cloud_asset_v1p5beta1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p5beta1.Resource.class, com.google.cloud.asset.v1p5beta1.Resource.Builder.class); + com.google.cloud.asset.v1p5beta1.Resource.class, + com.google.cloud.asset.v1p5beta1.Resource.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** + * + * *
        * The API version. Example: "v1".
        * 
    * * string version = 1; + * * @return The version. */ @java.lang.Override @@ -68,29 +90,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
        * The API version. Example: "v1".
        * 
    * * string version = 1; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -101,6 +123,8 @@ public java.lang.String getVersion() { public static final int DISCOVERY_DOCUMENT_URI_FIELD_NUMBER = 2; private volatile java.lang.Object discoveryDocumentUri_; /** + * + * *
        * The URL of the discovery document containing the resource's JSON schema.
        * For example:
    @@ -110,6 +134,7 @@ public java.lang.String getVersion() {
        * 
    * * string discovery_document_uri = 2; + * * @return The discoveryDocumentUri. */ @java.lang.Override @@ -118,14 +143,15 @@ public java.lang.String getDiscoveryDocumentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryDocumentUri_ = s; return s; } } /** + * + * *
        * The URL of the discovery document containing the resource's JSON schema.
        * For example:
    @@ -135,16 +161,15 @@ public java.lang.String getDiscoveryDocumentUri() {
        * 
    * * string discovery_document_uri = 2; + * * @return The bytes for discoveryDocumentUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getDiscoveryDocumentUriBytes() { + public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { java.lang.Object ref = discoveryDocumentUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); discoveryDocumentUri_ = b; return b; } else { @@ -155,6 +180,8 @@ public java.lang.String getDiscoveryDocumentUri() { public static final int DISCOVERY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object discoveryName_; /** + * + * *
        * The JSON schema name listed in the discovery document.
        * Example: "Project". It will be left unspecified for resources (such as
    @@ -162,6 +189,7 @@ public java.lang.String getDiscoveryDocumentUri() {
        * 
    * * string discovery_name = 3; + * * @return The discoveryName. */ @java.lang.Override @@ -170,14 +198,15 @@ public java.lang.String getDiscoveryName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryName_ = s; return s; } } /** + * + * *
        * The JSON schema name listed in the discovery document.
        * Example: "Project". It will be left unspecified for resources (such as
    @@ -185,16 +214,15 @@ public java.lang.String getDiscoveryName() {
        * 
    * * string discovery_name = 3; + * * @return The bytes for discoveryName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDiscoveryNameBytes() { + public com.google.protobuf.ByteString getDiscoveryNameBytes() { java.lang.Object ref = discoveryName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); discoveryName_ = b; return b; } else { @@ -205,6 +233,8 @@ public java.lang.String getDiscoveryName() { public static final int RESOURCE_URL_FIELD_NUMBER = 4; private volatile java.lang.Object resourceUrl_; /** + * + * *
        * The REST URL for accessing the resource. An HTTP GET operation using this
        * URL returns the resource itself.
    @@ -214,6 +244,7 @@ public java.lang.String getDiscoveryName() {
        * 
    * * string resource_url = 4; + * * @return The resourceUrl. */ @java.lang.Override @@ -222,14 +253,15 @@ public java.lang.String getResourceUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; } } /** + * + * *
        * The REST URL for accessing the resource. An HTTP GET operation using this
        * URL returns the resource itself.
    @@ -239,16 +271,15 @@ public java.lang.String getResourceUrl() {
        * 
    * * string resource_url = 4; + * * @return The bytes for resourceUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceUrlBytes() { + public com.google.protobuf.ByteString getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -259,6 +290,8 @@ public java.lang.String getResourceUrl() { public static final int PARENT_FIELD_NUMBER = 5; private volatile java.lang.Object parent_; /** + * + * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -272,6 +305,7 @@ public java.lang.String getResourceUrl() {
        * 
    * * string parent = 5; + * * @return The parent. */ @java.lang.Override @@ -280,14 +314,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -301,16 +336,15 @@ public java.lang.String getParent() {
        * 
    * * string parent = 5; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -321,12 +355,15 @@ public java.lang.String getParent() { public static final int DATA_FIELD_NUMBER = 6; private com.google.protobuf.Struct data_; /** + * + * *
        * The content of the resource, in which some sensitive fields are scrubbed
        * away and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; + * * @return Whether the data field is set. */ @java.lang.Override @@ -334,12 +371,15 @@ public boolean hasData() { return data_ != null; } /** + * + * *
        * The content of the resource, in which some sensitive fields are scrubbed
        * away and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; + * * @return The data. */ @java.lang.Override @@ -347,6 +387,8 @@ public com.google.protobuf.Struct getData() { return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_; } /** + * + * *
        * The content of the resource, in which some sensitive fields are scrubbed
        * away and may not be present.
    @@ -360,6 +402,7 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -371,8 +414,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
         }
    @@ -416,8 +458,7 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_);
         }
         if (data_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(6, getData());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getData());
         }
         size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
    @@ -427,27 +468,22 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1p5beta1.Resource)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1p5beta1.Resource other = (com.google.cloud.asset.v1p5beta1.Resource) obj;
    -
    -    if (!getVersion()
    -        .equals(other.getVersion())) return false;
    -    if (!getDiscoveryDocumentUri()
    -        .equals(other.getDiscoveryDocumentUri())) return false;
    -    if (!getDiscoveryName()
    -        .equals(other.getDiscoveryName())) return false;
    -    if (!getResourceUrl()
    -        .equals(other.getResourceUrl())) return false;
    -    if (!getParent()
    -        .equals(other.getParent())) return false;
    +    com.google.cloud.asset.v1p5beta1.Resource other =
    +        (com.google.cloud.asset.v1p5beta1.Resource) obj;
    +
    +    if (!getVersion().equals(other.getVersion())) return false;
    +    if (!getDiscoveryDocumentUri().equals(other.getDiscoveryDocumentUri())) return false;
    +    if (!getDiscoveryName().equals(other.getDiscoveryName())) return false;
    +    if (!getResourceUrl().equals(other.getResourceUrl())) return false;
    +    if (!getParent().equals(other.getParent())) return false;
         if (hasData() != other.hasData()) return false;
         if (hasData()) {
    -      if (!getData()
    -          .equals(other.getData())) return false;
    +      if (!getData().equals(other.getData())) return false;
         }
         if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
    @@ -479,130 +515,136 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1p5beta1.Resource parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1p5beta1.Resource parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1p5beta1.Resource parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1p5beta1.Resource parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1p5beta1.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.asset.v1p5beta1.Resource parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1p5beta1.Resource parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1p5beta1.Resource parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1p5beta1.Resource parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.cloud.asset.v1p5beta1.Resource parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.cloud.asset.v1p5beta1.Resource parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1p5beta1.Resource parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1p5beta1.Resource parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1p5beta1.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);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.cloud.asset.v1p5beta1.Resource prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Representation of a cloud resource.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p5beta1.Resource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p5beta1.Resource) com.google.cloud.asset.v1p5beta1.ResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p5beta1.AssetProto.internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p5beta1.AssetProto + .internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p5beta1.AssetProto.internal_static_google_cloud_asset_v1p5beta1_Resource_fieldAccessorTable + return com.google.cloud.asset.v1p5beta1.AssetProto + .internal_static_google_cloud_asset_v1p5beta1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p5beta1.Resource.class, com.google.cloud.asset.v1p5beta1.Resource.Builder.class); + com.google.cloud.asset.v1p5beta1.Resource.class, + com.google.cloud.asset.v1p5beta1.Resource.Builder.class); } // Construct using com.google.cloud.asset.v1p5beta1.Resource.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -626,9 +668,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p5beta1.AssetProto.internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p5beta1.AssetProto + .internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor; } @java.lang.Override @@ -647,7 +689,8 @@ public com.google.cloud.asset.v1p5beta1.Resource build() { @java.lang.Override public com.google.cloud.asset.v1p5beta1.Resource buildPartial() { - com.google.cloud.asset.v1p5beta1.Resource result = new com.google.cloud.asset.v1p5beta1.Resource(this); + com.google.cloud.asset.v1p5beta1.Resource result = + new com.google.cloud.asset.v1p5beta1.Resource(this); result.version_ = version_; result.discoveryDocumentUri_ = discoveryDocumentUri_; result.discoveryName_ = discoveryName_; @@ -666,38 +709,39 @@ public com.google.cloud.asset.v1p5beta1.Resource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p5beta1.Resource) { - return mergeFrom((com.google.cloud.asset.v1p5beta1.Resource)other); + return mergeFrom((com.google.cloud.asset.v1p5beta1.Resource) other); } else { super.mergeFrom(other); return this; @@ -755,44 +799,49 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - version_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - discoveryDocumentUri_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - discoveryName_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - resourceUrl_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - input.readMessage( - getDataFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + version_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + discoveryDocumentUri_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + discoveryName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + resourceUrl_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + input.readMessage(getDataFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -805,18 +854,20 @@ public Builder mergeFrom( private java.lang.Object version_ = ""; /** + * + * *
          * The API version. Example: "v1".
          * 
    * * string version = 1; + * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -825,20 +876,21 @@ public java.lang.String getVersion() { } } /** + * + * *
          * The API version. Example: "v1".
          * 
    * * string version = 1; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -846,54 +898,61 @@ public java.lang.String getVersion() { } } /** + * + * *
          * The API version. Example: "v1".
          * 
    * * string version = 1; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
          * The API version. Example: "v1".
          * 
    * * string version = 1; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
          * The API version. Example: "v1".
          * 
    * * string version = 1; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -901,6 +960,8 @@ public Builder setVersionBytes( private java.lang.Object discoveryDocumentUri_ = ""; /** + * + * *
          * The URL of the discovery document containing the resource's JSON schema.
          * For example:
    @@ -910,13 +971,13 @@ public Builder setVersionBytes(
          * 
    * * string discovery_document_uri = 2; + * * @return The discoveryDocumentUri. */ public java.lang.String getDiscoveryDocumentUri() { java.lang.Object ref = discoveryDocumentUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryDocumentUri_ = s; return s; @@ -925,6 +986,8 @@ public java.lang.String getDiscoveryDocumentUri() { } } /** + * + * *
          * The URL of the discovery document containing the resource's JSON schema.
          * For example:
    @@ -934,15 +997,14 @@ public java.lang.String getDiscoveryDocumentUri() {
          * 
    * * string discovery_document_uri = 2; + * * @return The bytes for discoveryDocumentUri. */ - public com.google.protobuf.ByteString - getDiscoveryDocumentUriBytes() { + public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { java.lang.Object ref = discoveryDocumentUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); discoveryDocumentUri_ = b; return b; } else { @@ -950,6 +1012,8 @@ public java.lang.String getDiscoveryDocumentUri() { } } /** + * + * *
          * The URL of the discovery document containing the resource's JSON schema.
          * For example:
    @@ -959,20 +1023,22 @@ public java.lang.String getDiscoveryDocumentUri() {
          * 
    * * string discovery_document_uri = 2; + * * @param value The discoveryDocumentUri to set. * @return This builder for chaining. */ - public Builder setDiscoveryDocumentUri( - java.lang.String value) { + public Builder setDiscoveryDocumentUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + discoveryDocumentUri_ = value; onChanged(); return this; } /** + * + * *
          * The URL of the discovery document containing the resource's JSON schema.
          * For example:
    @@ -982,15 +1048,18 @@ public Builder setDiscoveryDocumentUri(
          * 
    * * string discovery_document_uri = 2; + * * @return This builder for chaining. */ public Builder clearDiscoveryDocumentUri() { - + discoveryDocumentUri_ = getDefaultInstance().getDiscoveryDocumentUri(); onChanged(); return this; } /** + * + * *
          * The URL of the discovery document containing the resource's JSON schema.
          * For example:
    @@ -1000,16 +1069,16 @@ public Builder clearDiscoveryDocumentUri() {
          * 
    * * string discovery_document_uri = 2; + * * @param value The bytes for discoveryDocumentUri to set. * @return This builder for chaining. */ - public Builder setDiscoveryDocumentUriBytes( - com.google.protobuf.ByteString value) { + public Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + discoveryDocumentUri_ = value; onChanged(); return this; @@ -1017,6 +1086,8 @@ public Builder setDiscoveryDocumentUriBytes( private java.lang.Object discoveryName_ = ""; /** + * + * *
          * The JSON schema name listed in the discovery document.
          * Example: "Project". It will be left unspecified for resources (such as
    @@ -1024,13 +1095,13 @@ public Builder setDiscoveryDocumentUriBytes(
          * 
    * * string discovery_name = 3; + * * @return The discoveryName. */ public java.lang.String getDiscoveryName() { java.lang.Object ref = discoveryName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryName_ = s; return s; @@ -1039,6 +1110,8 @@ public java.lang.String getDiscoveryName() { } } /** + * + * *
          * The JSON schema name listed in the discovery document.
          * Example: "Project". It will be left unspecified for resources (such as
    @@ -1046,15 +1119,14 @@ public java.lang.String getDiscoveryName() {
          * 
    * * string discovery_name = 3; + * * @return The bytes for discoveryName. */ - public com.google.protobuf.ByteString - getDiscoveryNameBytes() { + public com.google.protobuf.ByteString getDiscoveryNameBytes() { java.lang.Object ref = discoveryName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); discoveryName_ = b; return b; } else { @@ -1062,6 +1134,8 @@ public java.lang.String getDiscoveryName() { } } /** + * + * *
          * The JSON schema name listed in the discovery document.
          * Example: "Project". It will be left unspecified for resources (such as
    @@ -1069,20 +1143,22 @@ public java.lang.String getDiscoveryName() {
          * 
    * * string discovery_name = 3; + * * @param value The discoveryName to set. * @return This builder for chaining. */ - public Builder setDiscoveryName( - java.lang.String value) { + public Builder setDiscoveryName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + discoveryName_ = value; onChanged(); return this; } /** + * + * *
          * The JSON schema name listed in the discovery document.
          * Example: "Project". It will be left unspecified for resources (such as
    @@ -1090,15 +1166,18 @@ public Builder setDiscoveryName(
          * 
    * * string discovery_name = 3; + * * @return This builder for chaining. */ public Builder clearDiscoveryName() { - + discoveryName_ = getDefaultInstance().getDiscoveryName(); onChanged(); return this; } /** + * + * *
          * The JSON schema name listed in the discovery document.
          * Example: "Project". It will be left unspecified for resources (such as
    @@ -1106,16 +1185,16 @@ public Builder clearDiscoveryName() {
          * 
    * * string discovery_name = 3; + * * @param value The bytes for discoveryName to set. * @return This builder for chaining. */ - public Builder setDiscoveryNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDiscoveryNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + discoveryName_ = value; onChanged(); return this; @@ -1123,6 +1202,8 @@ public Builder setDiscoveryNameBytes( private java.lang.Object resourceUrl_ = ""; /** + * + * *
          * The REST URL for accessing the resource. An HTTP GET operation using this
          * URL returns the resource itself.
    @@ -1132,13 +1213,13 @@ public Builder setDiscoveryNameBytes(
          * 
    * * string resource_url = 4; + * * @return The resourceUrl. */ public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; @@ -1147,6 +1228,8 @@ public java.lang.String getResourceUrl() { } } /** + * + * *
          * The REST URL for accessing the resource. An HTTP GET operation using this
          * URL returns the resource itself.
    @@ -1156,15 +1239,14 @@ public java.lang.String getResourceUrl() {
          * 
    * * string resource_url = 4; + * * @return The bytes for resourceUrl. */ - public com.google.protobuf.ByteString - getResourceUrlBytes() { + public com.google.protobuf.ByteString getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -1172,6 +1254,8 @@ public java.lang.String getResourceUrl() { } } /** + * + * *
          * The REST URL for accessing the resource. An HTTP GET operation using this
          * URL returns the resource itself.
    @@ -1181,20 +1265,22 @@ public java.lang.String getResourceUrl() {
          * 
    * * string resource_url = 4; + * * @param value The resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrl( - java.lang.String value) { + public Builder setResourceUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceUrl_ = value; onChanged(); return this; } /** + * + * *
          * The REST URL for accessing the resource. An HTTP GET operation using this
          * URL returns the resource itself.
    @@ -1204,15 +1290,18 @@ public Builder setResourceUrl(
          * 
    * * string resource_url = 4; + * * @return This builder for chaining. */ public Builder clearResourceUrl() { - + resourceUrl_ = getDefaultInstance().getResourceUrl(); onChanged(); return this; } /** + * + * *
          * The REST URL for accessing the resource. An HTTP GET operation using this
          * URL returns the resource itself.
    @@ -1222,16 +1311,16 @@ public Builder clearResourceUrl() {
          * 
    * * string resource_url = 4; + * * @param value The bytes for resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceUrl_ = value; onChanged(); return this; @@ -1239,6 +1328,8 @@ public Builder setResourceUrlBytes( private java.lang.Object parent_ = ""; /** + * + * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1252,13 +1343,13 @@ public Builder setResourceUrlBytes(
          * 
    * * string parent = 5; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1267,6 +1358,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1280,15 +1373,14 @@ public java.lang.String getParent() {
          * 
    * * string parent = 5; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1296,6 +1388,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1309,20 +1403,22 @@ public java.lang.String getParent() {
          * 
    * * string parent = 5; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1336,15 +1432,18 @@ public Builder setParent(
          * 
    * * string parent = 5; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1358,16 +1457,16 @@ public Builder clearParent() {
          * 
    * * string parent = 5; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1375,26 +1474,35 @@ public Builder setParentBytes( private com.google.protobuf.Struct data_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> dataBuilder_; + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + dataBuilder_; /** + * + * *
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
          * 
    * * .google.protobuf.Struct data = 6; + * * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** + * + * *
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
          * 
    * * .google.protobuf.Struct data = 6; + * * @return The data. */ public com.google.protobuf.Struct getData() { @@ -1405,6 +1513,8 @@ public com.google.protobuf.Struct getData() { } } /** + * + * *
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1426,6 +1536,8 @@ public Builder setData(com.google.protobuf.Struct value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1433,8 +1545,7 @@ public Builder setData(com.google.protobuf.Struct value) {
          *
          * .google.protobuf.Struct data = 6;
          */
    -    public Builder setData(
    -        com.google.protobuf.Struct.Builder builderForValue) {
    +    public Builder setData(com.google.protobuf.Struct.Builder builderForValue) {
           if (dataBuilder_ == null) {
             data_ = builderForValue.build();
             onChanged();
    @@ -1445,6 +1556,8 @@ public Builder setData(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1455,8 +1568,7 @@ public Builder setData(
         public Builder mergeData(com.google.protobuf.Struct value) {
           if (dataBuilder_ == null) {
             if (data_ != null) {
    -          data_ =
    -            com.google.protobuf.Struct.newBuilder(data_).mergeFrom(value).buildPartial();
    +          data_ = com.google.protobuf.Struct.newBuilder(data_).mergeFrom(value).buildPartial();
             } else {
               data_ = value;
             }
    @@ -1468,6 +1580,8 @@ public Builder mergeData(com.google.protobuf.Struct value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1487,6 +1601,8 @@ public Builder clearData() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1495,11 +1611,13 @@ public Builder clearData() {
          * .google.protobuf.Struct data = 6;
          */
         public com.google.protobuf.Struct.Builder getDataBuilder() {
    -      
    +
           onChanged();
           return getDataFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1511,11 +1629,12 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
           if (dataBuilder_ != null) {
             return dataBuilder_.getMessageOrBuilder();
           } else {
    -        return data_ == null ?
    -            com.google.protobuf.Struct.getDefaultInstance() : data_;
    +        return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_;
           }
         }
         /**
    +     *
    +     *
          * 
          * The content of the resource, in which some sensitive fields are scrubbed
          * away and may not be present.
    @@ -1524,21 +1643,23 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
          * .google.protobuf.Struct data = 6;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
    +            com.google.protobuf.Struct,
    +            com.google.protobuf.Struct.Builder,
    +            com.google.protobuf.StructOrBuilder>
             getDataFieldBuilder() {
           if (dataBuilder_ == null) {
    -        dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
    -                getData(),
    -                getParentForChildren(),
    -                isClean());
    +        dataBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.Struct,
    +                com.google.protobuf.Struct.Builder,
    +                com.google.protobuf.StructOrBuilder>(getData(), getParentForChildren(), isClean());
             data_ = null;
           }
           return dataBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -1548,12 +1669,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p5beta1.Resource)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p5beta1.Resource)
       private static final com.google.cloud.asset.v1p5beta1.Resource DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1p5beta1.Resource();
       }
    @@ -1562,27 +1683,27 @@ public static com.google.cloud.asset.v1p5beta1.Resource getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  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 {
    -      Builder builder = newBuilder();
    -      try {
    -        builder.mergeFrom(input, extensionRegistry);
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(builder.buildPartial());
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    -            .setUnfinishedMessage(builder.buildPartial());
    -      }
    -      return builder.buildPartial();
    -    }
    -  };
    +  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 {
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1597,6 +1718,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1p5beta1.Resource getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ResourceOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ResourceOrBuilder.java
    similarity index 81%
    rename from owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ResourceOrBuilder.java
    rename to java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ResourceOrBuilder.java
    index 175f61af1448..72bcad395aab 100644
    --- a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ResourceOrBuilder.java
    +++ b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/ResourceOrBuilder.java
    @@ -1,33 +1,56 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1p5beta1/assets.proto
     
     package com.google.cloud.asset.v1p5beta1;
     
    -public interface ResourceOrBuilder extends
    +public interface ResourceOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p5beta1.Resource)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The API version. Example: "v1".
        * 
    * * string version = 1; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
        * The API version. Example: "v1".
        * 
    * * string version = 1; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
        * The URL of the discovery document containing the resource's JSON schema.
        * For example:
    @@ -37,10 +60,13 @@ public interface ResourceOrBuilder extends
        * 
    * * string discovery_document_uri = 2; + * * @return The discoveryDocumentUri. */ java.lang.String getDiscoveryDocumentUri(); /** + * + * *
        * The URL of the discovery document containing the resource's JSON schema.
        * For example:
    @@ -50,12 +76,14 @@ public interface ResourceOrBuilder extends
        * 
    * * string discovery_document_uri = 2; + * * @return The bytes for discoveryDocumentUri. */ - com.google.protobuf.ByteString - getDiscoveryDocumentUriBytes(); + com.google.protobuf.ByteString getDiscoveryDocumentUriBytes(); /** + * + * *
        * The JSON schema name listed in the discovery document.
        * Example: "Project". It will be left unspecified for resources (such as
    @@ -63,10 +91,13 @@ public interface ResourceOrBuilder extends
        * 
    * * string discovery_name = 3; + * * @return The discoveryName. */ java.lang.String getDiscoveryName(); /** + * + * *
        * The JSON schema name listed in the discovery document.
        * Example: "Project". It will be left unspecified for resources (such as
    @@ -74,12 +105,14 @@ public interface ResourceOrBuilder extends
        * 
    * * string discovery_name = 3; + * * @return The bytes for discoveryName. */ - com.google.protobuf.ByteString - getDiscoveryNameBytes(); + com.google.protobuf.ByteString getDiscoveryNameBytes(); /** + * + * *
        * The REST URL for accessing the resource. An HTTP GET operation using this
        * URL returns the resource itself.
    @@ -89,10 +122,13 @@ public interface ResourceOrBuilder extends
        * 
    * * string resource_url = 4; + * * @return The resourceUrl. */ java.lang.String getResourceUrl(); /** + * + * *
        * The REST URL for accessing the resource. An HTTP GET operation using this
        * URL returns the resource itself.
    @@ -102,12 +138,14 @@ public interface ResourceOrBuilder extends
        * 
    * * string resource_url = 4; + * * @return The bytes for resourceUrl. */ - com.google.protobuf.ByteString - getResourceUrlBytes(); + com.google.protobuf.ByteString getResourceUrlBytes(); /** + * + * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -121,10 +159,13 @@ public interface ResourceOrBuilder extends
        * 
    * * string parent = 5; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -138,32 +179,40 @@ public interface ResourceOrBuilder extends
        * 
    * * string parent = 5; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
        * The content of the resource, in which some sensitive fields are scrubbed
        * away and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; + * * @return Whether the data field is set. */ boolean hasData(); /** + * + * *
        * The content of the resource, in which some sensitive fields are scrubbed
        * away and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; + * * @return The data. */ com.google.protobuf.Struct getData(); /** + * + * *
        * The content of the resource, in which some sensitive fields are scrubbed
        * away and may not be present.
    diff --git a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/proto/google/cloud/asset/v1p5beta1/asset_service.proto b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/proto/google/cloud/asset/v1p5beta1/asset_service.proto
    similarity index 100%
    rename from owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/proto/google/cloud/asset/v1p5beta1/asset_service.proto
    rename to java-asset/proto-google-cloud-asset-v1p5beta1/src/main/proto/google/cloud/asset/v1p5beta1/asset_service.proto
    diff --git a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/proto/google/cloud/asset/v1p5beta1/assets.proto b/java-asset/proto-google-cloud-asset-v1p5beta1/src/main/proto/google/cloud/asset/v1p5beta1/assets.proto
    similarity index 100%
    rename from owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/proto/google/cloud/asset/v1p5beta1/assets.proto
    rename to java-asset/proto-google-cloud-asset-v1p5beta1/src/main/proto/google/cloud/asset/v1p5beta1/assets.proto
    diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Asset.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Asset.java
    similarity index 79%
    rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Asset.java
    rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Asset.java
    index a1185b1910b4..61ba975a61bb 100644
    --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Asset.java
    +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Asset.java
    @@ -1,9 +1,26 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1p7beta1/assets.proto
     
     package com.google.cloud.asset.v1p7beta1;
     
     /**
    + *
    + *
      * 
      * An asset in Google Cloud. An asset can be any resource in the Google Cloud
      * [resource
    @@ -17,15 +34,16 @@
      *
      * Protobuf type {@code google.cloud.asset.v1p7beta1.Asset}
      */
    -public final class Asset extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class Asset extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.Asset)
         AssetOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use Asset.newBuilder() to construct.
       private Asset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private Asset() {
         name_ = "";
         assetType_ = "";
    @@ -35,39 +53,43 @@ private Asset() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(
    -      UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new Asset();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_Asset_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.cloud.asset.v1p7beta1.AssetProto
    +        .internal_static_google_cloud_asset_v1p7beta1_Asset_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_Asset_fieldAccessorTable
    +    return com.google.cloud.asset.v1p7beta1.AssetProto
    +        .internal_static_google_cloud_asset_v1p7beta1_Asset_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1p7beta1.Asset.class, com.google.cloud.asset.v1p7beta1.Asset.Builder.class);
    +            com.google.cloud.asset.v1p7beta1.Asset.class,
    +            com.google.cloud.asset.v1p7beta1.Asset.Builder.class);
       }
     
       private int accessContextPolicyCase_ = 0;
       private java.lang.Object accessContextPolicy_;
    +
       public enum AccessContextPolicyCase
    -      implements com.google.protobuf.Internal.EnumLite,
    +      implements
    +          com.google.protobuf.Internal.EnumLite,
               com.google.protobuf.AbstractMessage.InternalOneOfEnum {
         ACCESS_POLICY(7),
         ACCESS_LEVEL(8),
         SERVICE_PERIMETER(9),
         ACCESSCONTEXTPOLICY_NOT_SET(0);
         private final int value;
    +
         private AccessContextPolicyCase(int value) {
           this.value = value;
         }
    @@ -83,33 +105,40 @@ public static AccessContextPolicyCase valueOf(int value) {
     
         public static AccessContextPolicyCase forNumber(int value) {
           switch (value) {
    -        case 7: return ACCESS_POLICY;
    -        case 8: return ACCESS_LEVEL;
    -        case 9: return SERVICE_PERIMETER;
    -        case 0: return ACCESSCONTEXTPOLICY_NOT_SET;
    -        default: return null;
    +        case 7:
    +          return ACCESS_POLICY;
    +        case 8:
    +          return ACCESS_LEVEL;
    +        case 9:
    +          return SERVICE_PERIMETER;
    +        case 0:
    +          return ACCESSCONTEXTPOLICY_NOT_SET;
    +        default:
    +          return null;
           }
         }
    +
         public int getNumber() {
           return this.value;
         }
       };
     
    -  public AccessContextPolicyCase
    -  getAccessContextPolicyCase() {
    -    return AccessContextPolicyCase.forNumber(
    -        accessContextPolicyCase_);
    +  public AccessContextPolicyCase getAccessContextPolicyCase() {
    +    return AccessContextPolicyCase.forNumber(accessContextPolicyCase_);
       }
     
       public static final int UPDATE_TIME_FIELD_NUMBER = 11;
       private com.google.protobuf.Timestamp updateTime_;
       /**
    +   *
    +   *
        * 
        * The last update timestamp of an asset. update_time is updated when
        * create/update/delete operation is performed.
        * 
    * * .google.protobuf.Timestamp update_time = 11; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -117,12 +146,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
        * The last update timestamp of an asset. update_time is updated when
        * create/update/delete operation is performed.
        * 
    * * .google.protobuf.Timestamp update_time = 11; + * * @return The updateTime. */ @java.lang.Override @@ -130,6 +162,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
        * The last update timestamp of an asset. update_time is updated when
        * create/update/delete operation is performed.
    @@ -145,6 +179,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
       public static final int NAME_FIELD_NUMBER = 1;
       private volatile java.lang.Object name_;
       /**
    +   *
    +   *
        * 
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -154,6 +190,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
        * 
    * * string name = 1; + * * @return The name. */ @java.lang.Override @@ -162,14 +199,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -179,16 +217,15 @@ public java.lang.String getName() {
        * 
    * * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -199,6 +236,8 @@ public java.lang.String getName() { public static final int ASSET_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object assetType_; /** + * + * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -207,6 +246,7 @@ public java.lang.String getName() {
        * 
    * * string asset_type = 2; + * * @return The assetType. */ @java.lang.Override @@ -215,14 +255,15 @@ public java.lang.String getAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; } } /** + * + * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -231,16 +272,15 @@ public java.lang.String getAssetType() {
        * 
    * * string asset_type = 2; + * * @return The bytes for assetType. */ @java.lang.Override - public com.google.protobuf.ByteString - getAssetTypeBytes() { + public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetType_ = b; return b; } else { @@ -251,11 +291,14 @@ public java.lang.String getAssetType() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.asset.v1p7beta1.Resource resource_; /** + * + * *
        * A representation of the resource.
        * 
    * * .google.cloud.asset.v1p7beta1.Resource resource = 3; + * * @return Whether the resource field is set. */ @java.lang.Override @@ -263,18 +306,25 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
        * A representation of the resource.
        * 
    * * .google.cloud.asset.v1p7beta1.Resource resource = 3; + * * @return The resource. */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.Resource getResource() { - return resource_ == null ? com.google.cloud.asset.v1p7beta1.Resource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.asset.v1p7beta1.Resource.getDefaultInstance() + : resource_; } /** + * + * *
        * A representation of the resource.
        * 
    @@ -289,6 +339,8 @@ public com.google.cloud.asset.v1p7beta1.ResourceOrBuilder getResourceOrBuilder() public static final int IAM_POLICY_FIELD_NUMBER = 4; private com.google.iam.v1.Policy iamPolicy_; /** + * + * *
        * A representation of the Cloud IAM policy set on a Google Cloud resource.
        * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -302,6 +354,7 @@ public com.google.cloud.asset.v1p7beta1.ResourceOrBuilder getResourceOrBuilder()
        * 
    * * .google.iam.v1.Policy iam_policy = 4; + * * @return Whether the iamPolicy field is set. */ @java.lang.Override @@ -309,6 +362,8 @@ public boolean hasIamPolicy() { return iamPolicy_ != null; } /** + * + * *
        * A representation of the Cloud IAM policy set on a Google Cloud resource.
        * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -322,6 +377,7 @@ public boolean hasIamPolicy() {
        * 
    * * .google.iam.v1.Policy iam_policy = 4; + * * @return The iamPolicy. */ @java.lang.Override @@ -329,6 +385,8 @@ public com.google.iam.v1.Policy getIamPolicy() { return iamPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_; } /** + * + * *
        * A representation of the Cloud IAM policy set on a Google Cloud resource.
        * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -351,6 +409,8 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
       public static final int ORG_POLICY_FIELD_NUMBER = 6;
       private java.util.List orgPolicy_;
       /**
    +   *
    +   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -365,6 +425,8 @@ public java.util.List getOrgPolicyList() {
         return orgPolicy_;
       }
       /**
    +   *
    +   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -375,11 +437,13 @@ public java.util.List getOrgPolicyList() {
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
       @java.lang.Override
    -  public java.util.List 
    +  public java.util.List
           getOrgPolicyOrBuilderList() {
         return orgPolicy_;
       }
       /**
    +   *
    +   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -394,6 +458,8 @@ public int getOrgPolicyCount() {
         return orgPolicy_.size();
       }
       /**
    +   *
    +   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -408,6 +474,8 @@ public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) {
         return orgPolicy_.get(index);
       }
       /**
    +   *
    +   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -418,19 +486,21 @@ public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) {
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
       @java.lang.Override
    -  public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
    -      int index) {
    +  public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int index) {
         return orgPolicy_.get(index);
       }
     
       public static final int ACCESS_POLICY_FIELD_NUMBER = 7;
       /**
    +   *
    +   *
        * 
        * Please also refer to the [access policy user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; + * * @return Whether the accessPolicy field is set. */ @java.lang.Override @@ -438,22 +508,27 @@ public boolean hasAccessPolicy() { return accessContextPolicyCase_ == 7; } /** + * + * *
        * Please also refer to the [access policy user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; + * * @return The accessPolicy. */ @java.lang.Override public com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy() { if (accessContextPolicyCase_ == 7) { - return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_; + return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_; } return com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance(); } /** + * + * *
        * Please also refer to the [access policy user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -462,21 +537,25 @@ public com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy(
        * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
        */
       @java.lang.Override
    -  public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAccessPolicyOrBuilder() {
    +  public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder
    +      getAccessPolicyOrBuilder() {
         if (accessContextPolicyCase_ == 7) {
    -       return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_;
    +      return (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_;
         }
         return com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance();
       }
     
       public static final int ACCESS_LEVEL_FIELD_NUMBER = 8;
       /**
    +   *
    +   *
        * 
        * Please also refer to the [access level user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; + * * @return Whether the accessLevel field is set. */ @java.lang.Override @@ -484,22 +563,27 @@ public boolean hasAccessLevel() { return accessContextPolicyCase_ == 8; } /** + * + * *
        * Please also refer to the [access level user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; + * * @return The accessLevel. */ @java.lang.Override public com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel() { if (accessContextPolicyCase_ == 8) { - return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_; + return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_; } return com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance(); } /** + * + * *
        * Please also refer to the [access level user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -508,21 +592,25 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel()
        * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
        */
       @java.lang.Override
    -  public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAccessLevelOrBuilder() {
    +  public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder
    +      getAccessLevelOrBuilder() {
         if (accessContextPolicyCase_ == 8) {
    -       return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_;
    +      return (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_;
         }
         return com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance();
       }
     
       public static final int SERVICE_PERIMETER_FIELD_NUMBER = 9;
       /**
    +   *
    +   *
        * 
        * Please also refer to the [service perimeter user
        * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
        * 
    * * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + * * @return Whether the servicePerimeter field is set. */ @java.lang.Override @@ -530,22 +618,27 @@ public boolean hasServicePerimeter() { return accessContextPolicyCase_ == 9; } /** + * + * *
        * Please also refer to the [service perimeter user
        * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
        * 
    * * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + * * @return The servicePerimeter. */ @java.lang.Override public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter() { if (accessContextPolicyCase_ == 9) { - return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_; + return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_; } return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance(); } /** + * + * *
        * Please also refer to the [service perimeter user
        * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -554,9 +647,10 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePe
        * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
        */
       @java.lang.Override
    -  public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder getServicePerimeterOrBuilder() {
    +  public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder
    +      getServicePerimeterOrBuilder() {
         if (accessContextPolicyCase_ == 9) {
    -       return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_;
    +      return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_;
         }
         return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
       }
    @@ -564,12 +658,15 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder get
       public static final int RELATED_ASSETS_FIELD_NUMBER = 13;
       private com.google.cloud.asset.v1p7beta1.RelatedAssets relatedAssets_;
       /**
    +   *
    +   *
        * 
        * The related assets of the asset of one relationship type.
        * One asset only represents one type of relationship.
        * 
    * * .google.cloud.asset.v1p7beta1.RelatedAssets related_assets = 13; + * * @return Whether the relatedAssets field is set. */ @java.lang.Override @@ -577,19 +674,26 @@ public boolean hasRelatedAssets() { return relatedAssets_ != null; } /** + * + * *
        * The related assets of the asset of one relationship type.
        * One asset only represents one type of relationship.
        * 
    * * .google.cloud.asset.v1p7beta1.RelatedAssets related_assets = 13; + * * @return The relatedAssets. */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.RelatedAssets getRelatedAssets() { - return relatedAssets_ == null ? com.google.cloud.asset.v1p7beta1.RelatedAssets.getDefaultInstance() : relatedAssets_; + return relatedAssets_ == null + ? com.google.cloud.asset.v1p7beta1.RelatedAssets.getDefaultInstance() + : relatedAssets_; } /** + * + * *
        * The related assets of the asset of one relationship type.
        * One asset only represents one type of relationship.
    @@ -605,6 +709,8 @@ public com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder getRelatedAssetsO
       public static final int ANCESTORS_FIELD_NUMBER = 10;
       private com.google.protobuf.LazyStringList ancestors_;
       /**
    +   *
    +   *
        * 
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -616,13 +722,15 @@ public com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder getRelatedAssetsO
        * 
    * * repeated string ancestors = 10; + * * @return A list containing the ancestors. */ - public com.google.protobuf.ProtocolStringList - getAncestorsList() { + public com.google.protobuf.ProtocolStringList getAncestorsList() { return ancestors_; } /** + * + * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -634,12 +742,15 @@ public com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder getRelatedAssetsO
        * 
    * * repeated string ancestors = 10; + * * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); } /** + * + * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -651,6 +762,7 @@ public int getAncestorsCount() {
        * 
    * * repeated string ancestors = 10; + * * @param index The index of the element to return. * @return The ancestors at the given index. */ @@ -658,6 +770,8 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** + * + * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -669,15 +783,16 @@ public java.lang.String getAncestors(int index) {
        * 
    * * repeated string ancestors = 10; + * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - public com.google.protobuf.ByteString - getAncestorsBytes(int index) { + public com.google.protobuf.ByteString getAncestorsBytes(int index) { return ancestors_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -689,8 +804,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -707,13 +821,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(6, orgPolicy_.get(i)); } if (accessContextPolicyCase_ == 7) { - output.writeMessage(7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); + output.writeMessage( + 7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); } if (accessContextPolicyCase_ == 8) { - output.writeMessage(8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); + output.writeMessage( + 8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); } if (accessContextPolicyCase_ == 9) { - output.writeMessage(9, (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); + output.writeMessage( + 9, (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); } for (int i = 0; i < ancestors_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, ancestors_.getRaw(i)); @@ -740,28 +857,29 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, assetType_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } if (iamPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getIamPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIamPolicy()); } for (int i = 0; i < orgPolicy_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, orgPolicy_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, orgPolicy_.get(i)); } if (accessContextPolicyCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_); } if (accessContextPolicyCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_); } if (accessContextPolicyCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, + (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_); } { int dataSize = 0; @@ -772,12 +890,10 @@ public int getSerializedSize() { size += 1 * getAncestorsList().size(); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getUpdateTime()); } if (relatedAssets_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getRelatedAssets()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getRelatedAssets()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -787,7 +903,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p7beta1.Asset)) { return super.equals(obj); @@ -796,45 +912,34 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!getName() - .equals(other.getName())) return false; - if (!getAssetType() - .equals(other.getAssetType())) return false; + if (!getName().equals(other.getName())) return false; + if (!getAssetType().equals(other.getAssetType())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; } if (hasIamPolicy() != other.hasIamPolicy()) return false; if (hasIamPolicy()) { - if (!getIamPolicy() - .equals(other.getIamPolicy())) return false; + if (!getIamPolicy().equals(other.getIamPolicy())) return false; } - if (!getOrgPolicyList() - .equals(other.getOrgPolicyList())) return false; + if (!getOrgPolicyList().equals(other.getOrgPolicyList())) return false; if (hasRelatedAssets() != other.hasRelatedAssets()) return false; if (hasRelatedAssets()) { - if (!getRelatedAssets() - .equals(other.getRelatedAssets())) return false; + if (!getRelatedAssets().equals(other.getRelatedAssets())) return false; } - if (!getAncestorsList() - .equals(other.getAncestorsList())) return false; + if (!getAncestorsList().equals(other.getAncestorsList())) return false; if (!getAccessContextPolicyCase().equals(other.getAccessContextPolicyCase())) return false; switch (accessContextPolicyCase_) { case 7: - if (!getAccessPolicy() - .equals(other.getAccessPolicy())) return false; + if (!getAccessPolicy().equals(other.getAccessPolicy())) return false; break; case 8: - if (!getAccessLevel() - .equals(other.getAccessLevel())) return false; + if (!getAccessLevel().equals(other.getAccessLevel())) return false; break; case 9: - if (!getServicePerimeter() - .equals(other.getServicePerimeter())) return false; + if (!getServicePerimeter().equals(other.getServicePerimeter())) return false; break; case 0: default: @@ -899,97 +1004,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1p7beta1.Asset parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p7beta1.Asset parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.Asset parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.Asset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.Asset 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.asset.v1p7beta1.Asset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.Asset parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.Asset parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.Asset parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.Asset parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.Asset parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.Asset parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.Asset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.Asset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * An asset in Google Cloud. An asset can be any resource in the Google Cloud
        * [resource
    @@ -1003,33 +1115,32 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.asset.v1p7beta1.Asset}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.Asset)
           com.google.cloud.asset.v1p7beta1.AssetOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_Asset_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1p7beta1.AssetProto
    +          .internal_static_google_cloud_asset_v1p7beta1_Asset_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_Asset_fieldAccessorTable
    +      return com.google.cloud.asset.v1p7beta1.AssetProto
    +          .internal_static_google_cloud_asset_v1p7beta1_Asset_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1p7beta1.Asset.class, com.google.cloud.asset.v1p7beta1.Asset.Builder.class);
    +              com.google.cloud.asset.v1p7beta1.Asset.class,
    +              com.google.cloud.asset.v1p7beta1.Asset.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1p7beta1.Asset.newBuilder()
    -    private Builder() {
    -
    -    }
    +    private Builder() {}
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -1085,9 +1196,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_Asset_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.cloud.asset.v1p7beta1.AssetProto
    +          .internal_static_google_cloud_asset_v1p7beta1_Asset_descriptor;
         }
     
         @java.lang.Override
    @@ -1106,7 +1217,8 @@ public com.google.cloud.asset.v1p7beta1.Asset build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1p7beta1.Asset buildPartial() {
    -      com.google.cloud.asset.v1p7beta1.Asset result = new com.google.cloud.asset.v1p7beta1.Asset(this);
    +      com.google.cloud.asset.v1p7beta1.Asset result =
    +          new com.google.cloud.asset.v1p7beta1.Asset(this);
           int from_bitField0_ = bitField0_;
           if (updateTimeBuilder_ == null) {
             result.updateTime_ = updateTime_;
    @@ -1174,38 +1286,39 @@ public com.google.cloud.asset.v1p7beta1.Asset buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1p7beta1.Asset) {
    -        return mergeFrom((com.google.cloud.asset.v1p7beta1.Asset)other);
    +        return mergeFrom((com.google.cloud.asset.v1p7beta1.Asset) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -1249,9 +1362,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.Asset other) {
                 orgPolicyBuilder_ = null;
                 orgPolicy_ = other.orgPolicy_;
                 bitField0_ = (bitField0_ & ~0x00000001);
    -            orgPolicyBuilder_ = 
    -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
    -                 getOrgPolicyFieldBuilder() : null;
    +            orgPolicyBuilder_ =
    +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
    +                    ? getOrgPolicyFieldBuilder()
    +                    : null;
               } else {
                 orgPolicyBuilder_.addAllMessages(other.orgPolicy_);
               }
    @@ -1271,21 +1385,25 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.Asset other) {
             onChanged();
           }
           switch (other.getAccessContextPolicyCase()) {
    -        case ACCESS_POLICY: {
    -          mergeAccessPolicy(other.getAccessPolicy());
    -          break;
    -        }
    -        case ACCESS_LEVEL: {
    -          mergeAccessLevel(other.getAccessLevel());
    -          break;
    -        }
    -        case SERVICE_PERIMETER: {
    -          mergeServicePerimeter(other.getServicePerimeter());
    -          break;
    -        }
    -        case ACCESSCONTEXTPOLICY_NOT_SET: {
    -          break;
    -        }
    +        case ACCESS_POLICY:
    +          {
    +            mergeAccessPolicy(other.getAccessPolicy());
    +            break;
    +          }
    +        case ACCESS_LEVEL:
    +          {
    +            mergeAccessLevel(other.getAccessLevel());
    +            break;
    +          }
    +        case SERVICE_PERIMETER:
    +          {
    +            mergeServicePerimeter(other.getServicePerimeter());
    +            break;
    +          }
    +        case ACCESSCONTEXTPOLICY_NOT_SET:
    +          {
    +            break;
    +          }
           }
           this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
    @@ -1313,90 +1431,88 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
    -            case 10: {
    -              name_ = input.readStringRequireUtf8();
    -
    -              break;
    -            } // case 10
    -            case 18: {
    -              assetType_ = input.readStringRequireUtf8();
    -
    -              break;
    -            } // case 18
    -            case 26: {
    -              input.readMessage(
    -                  getResourceFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -
    -              break;
    -            } // case 26
    -            case 34: {
    -              input.readMessage(
    -                  getIamPolicyFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -
    -              break;
    -            } // case 34
    -            case 50: {
    -              com.google.cloud.orgpolicy.v1.Policy m =
    -                  input.readMessage(
    -                      com.google.cloud.orgpolicy.v1.Policy.parser(),
    -                      extensionRegistry);
    -              if (orgPolicyBuilder_ == null) {
    -                ensureOrgPolicyIsMutable();
    -                orgPolicy_.add(m);
    -              } else {
    -                orgPolicyBuilder_.addMessage(m);
    -              }
    -              break;
    -            } // case 50
    -            case 58: {
    -              input.readMessage(
    -                  getAccessPolicyFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -              accessContextPolicyCase_ = 7;
    -              break;
    -            } // case 58
    -            case 66: {
    -              input.readMessage(
    -                  getAccessLevelFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -              accessContextPolicyCase_ = 8;
    -              break;
    -            } // case 66
    -            case 74: {
    -              input.readMessage(
    -                  getServicePerimeterFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -              accessContextPolicyCase_ = 9;
    -              break;
    -            } // case 74
    -            case 82: {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              ensureAncestorsIsMutable();
    -              ancestors_.add(s);
    -              break;
    -            } // case 82
    -            case 90: {
    -              input.readMessage(
    -                  getUpdateTimeFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -
    -              break;
    -            } // case 90
    -            case 106: {
    -              input.readMessage(
    -                  getRelatedAssetsFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    -
    -              break;
    -            } // case 106
    -            default: {
    -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                done = true; // was an endgroup tag
    -              }
    -              break;
    -            } // default:
    +            case 10:
    +              {
    +                name_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                assetType_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                input.readMessage(getIamPolicyFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 34
    +            case 50:
    +              {
    +                com.google.cloud.orgpolicy.v1.Policy m =
    +                    input.readMessage(
    +                        com.google.cloud.orgpolicy.v1.Policy.parser(), extensionRegistry);
    +                if (orgPolicyBuilder_ == null) {
    +                  ensureOrgPolicyIsMutable();
    +                  orgPolicy_.add(m);
    +                } else {
    +                  orgPolicyBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 50
    +            case 58:
    +              {
    +                input.readMessage(getAccessPolicyFieldBuilder().getBuilder(), extensionRegistry);
    +                accessContextPolicyCase_ = 7;
    +                break;
    +              } // case 58
    +            case 66:
    +              {
    +                input.readMessage(getAccessLevelFieldBuilder().getBuilder(), extensionRegistry);
    +                accessContextPolicyCase_ = 8;
    +                break;
    +              } // case 66
    +            case 74:
    +              {
    +                input.readMessage(
    +                    getServicePerimeterFieldBuilder().getBuilder(), extensionRegistry);
    +                accessContextPolicyCase_ = 9;
    +                break;
    +              } // case 74
    +            case 82:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAncestorsIsMutable();
    +                ancestors_.add(s);
    +                break;
    +              } // case 82
    +            case 90:
    +              {
    +                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 90
    +            case 106:
    +              {
    +                input.readMessage(getRelatedAssetsFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 106
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -1406,12 +1522,12 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
    +
         private int accessContextPolicyCase_ = 0;
         private java.lang.Object accessContextPolicy_;
    -    public AccessContextPolicyCase
    -        getAccessContextPolicyCase() {
    -      return AccessContextPolicyCase.forNumber(
    -          accessContextPolicyCase_);
    +
    +    public AccessContextPolicyCase getAccessContextPolicyCase() {
    +      return AccessContextPolicyCase.forNumber(accessContextPolicyCase_);
         }
     
         public Builder clearAccessContextPolicy() {
    @@ -1425,36 +1541,49 @@ public Builder clearAccessContextPolicy() {
     
         private com.google.protobuf.Timestamp updateTime_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_;
    +            com.google.protobuf.Timestamp,
    +            com.google.protobuf.Timestamp.Builder,
    +            com.google.protobuf.TimestampOrBuilder>
    +        updateTimeBuilder_;
         /**
    +     *
    +     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
          * 
    * * .google.protobuf.Timestamp update_time = 11; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
          * 
    * * .google.protobuf.Timestamp update_time = 11; + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1476,6 +1605,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1483,8 +1614,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
          *
          * .google.protobuf.Timestamp update_time = 11;
          */
    -    public Builder setUpdateTime(
    -        com.google.protobuf.Timestamp.Builder builderForValue) {
    +    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
           if (updateTimeBuilder_ == null) {
             updateTime_ = builderForValue.build();
             onChanged();
    @@ -1495,6 +1625,8 @@ public Builder setUpdateTime(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1506,7 +1638,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
           if (updateTimeBuilder_ == null) {
             if (updateTime_ != null) {
               updateTime_ =
    -            com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
    +              com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
             } else {
               updateTime_ = value;
             }
    @@ -1518,6 +1650,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1537,6 +1671,8 @@ public Builder clearUpdateTime() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1545,11 +1681,13 @@ public Builder clearUpdateTime() {
          * .google.protobuf.Timestamp update_time = 11;
          */
         public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
    -      
    +
           onChanged();
           return getUpdateTimeFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1561,11 +1699,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
           if (updateTimeBuilder_ != null) {
             return updateTimeBuilder_.getMessageOrBuilder();
           } else {
    -        return updateTime_ == null ?
    -            com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
    +        return updateTime_ == null
    +            ? com.google.protobuf.Timestamp.getDefaultInstance()
    +            : updateTime_;
           }
         }
         /**
    +     *
    +     *
          * 
          * The last update timestamp of an asset. update_time is updated when
          * create/update/delete operation is performed.
    @@ -1574,14 +1715,17 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
          * .google.protobuf.Timestamp update_time = 11;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
    +            com.google.protobuf.Timestamp,
    +            com.google.protobuf.Timestamp.Builder,
    +            com.google.protobuf.TimestampOrBuilder>
             getUpdateTimeFieldBuilder() {
           if (updateTimeBuilder_ == null) {
    -        updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    -                getUpdateTime(),
    -                getParentForChildren(),
    -                isClean());
    +        updateTimeBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.Timestamp,
    +                com.google.protobuf.Timestamp.Builder,
    +                com.google.protobuf.TimestampOrBuilder>(
    +                getUpdateTime(), getParentForChildren(), isClean());
             updateTime_ = null;
           }
           return updateTimeBuilder_;
    @@ -1589,6 +1733,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
     
         private java.lang.Object name_ = "";
         /**
    +     *
    +     *
          * 
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -1598,13 +1744,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
          * 
    * * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1613,6 +1759,8 @@ public java.lang.String getName() { } } /** + * + * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -1622,15 +1770,14 @@ public java.lang.String getName() {
          * 
    * * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1638,6 +1785,8 @@ public java.lang.String getName() { } } /** + * + * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -1647,20 +1796,22 @@ public java.lang.String getName() {
          * 
    * * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -1670,15 +1821,18 @@ public Builder setName(
          * 
    * * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -1688,16 +1842,16 @@ public Builder clearName() {
          * 
    * * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1705,6 +1859,8 @@ public Builder setNameBytes( private java.lang.Object assetType_ = ""; /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -1713,13 +1869,13 @@ public Builder setNameBytes(
          * 
    * * string asset_type = 2; + * * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; @@ -1728,6 +1884,8 @@ public java.lang.String getAssetType() { } } /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -1736,15 +1894,14 @@ public java.lang.String getAssetType() {
          * 
    * * string asset_type = 2; + * * @return The bytes for assetType. */ - public com.google.protobuf.ByteString - getAssetTypeBytes() { + public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetType_ = b; return b; } else { @@ -1752,6 +1909,8 @@ public java.lang.String getAssetType() { } } /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -1760,20 +1919,22 @@ public java.lang.String getAssetType() {
          * 
    * * string asset_type = 2; + * * @param value The assetType to set. * @return This builder for chaining. */ - public Builder setAssetType( - java.lang.String value) { + public Builder setAssetType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + assetType_ = value; onChanged(); return this; } /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -1782,15 +1943,18 @@ public Builder setAssetType(
          * 
    * * string asset_type = 2; + * * @return This builder for chaining. */ public Builder clearAssetType() { - + assetType_ = getDefaultInstance().getAssetType(); onChanged(); return this; } /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -1799,16 +1963,16 @@ public Builder clearAssetType() {
          * 
    * * string asset_type = 2; + * * @param value The bytes for assetType to set. * @return This builder for chaining. */ - public Builder setAssetTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; onChanged(); return this; @@ -1816,34 +1980,47 @@ public Builder setAssetTypeBytes( private com.google.cloud.asset.v1p7beta1.Resource resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.Resource, com.google.cloud.asset.v1p7beta1.Resource.Builder, com.google.cloud.asset.v1p7beta1.ResourceOrBuilder> resourceBuilder_; + com.google.cloud.asset.v1p7beta1.Resource, + com.google.cloud.asset.v1p7beta1.Resource.Builder, + com.google.cloud.asset.v1p7beta1.ResourceOrBuilder> + resourceBuilder_; /** + * + * *
          * A representation of the resource.
          * 
    * * .google.cloud.asset.v1p7beta1.Resource resource = 3; + * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** + * + * *
          * A representation of the resource.
          * 
    * * .google.cloud.asset.v1p7beta1.Resource resource = 3; + * * @return The resource. */ public com.google.cloud.asset.v1p7beta1.Resource getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.cloud.asset.v1p7beta1.Resource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.asset.v1p7beta1.Resource.getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
          * A representation of the resource.
          * 
    @@ -1864,14 +2041,15 @@ public Builder setResource(com.google.cloud.asset.v1p7beta1.Resource value) { return this; } /** + * + * *
          * A representation of the resource.
          * 
    * * .google.cloud.asset.v1p7beta1.Resource resource = 3; */ - public Builder setResource( - com.google.cloud.asset.v1p7beta1.Resource.Builder builderForValue) { + public Builder setResource(com.google.cloud.asset.v1p7beta1.Resource.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -1882,6 +2060,8 @@ public Builder setResource( return this; } /** + * + * *
          * A representation of the resource.
          * 
    @@ -1892,7 +2072,9 @@ public Builder mergeResource(com.google.cloud.asset.v1p7beta1.Resource value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.asset.v1p7beta1.Resource.newBuilder(resource_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1p7beta1.Resource.newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); } else { resource_ = value; } @@ -1904,6 +2086,8 @@ public Builder mergeResource(com.google.cloud.asset.v1p7beta1.Resource value) { return this; } /** + * + * *
          * A representation of the resource.
          * 
    @@ -1922,6 +2106,8 @@ public Builder clearResource() { return this; } /** + * + * *
          * A representation of the resource.
          * 
    @@ -1929,11 +2115,13 @@ public Builder clearResource() { * .google.cloud.asset.v1p7beta1.Resource resource = 3; */ public com.google.cloud.asset.v1p7beta1.Resource.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** + * + * *
          * A representation of the resource.
          * 
    @@ -1944,11 +2132,14 @@ public com.google.cloud.asset.v1p7beta1.ResourceOrBuilder getResourceOrBuilder() if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null ? - com.google.cloud.asset.v1p7beta1.Resource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.asset.v1p7beta1.Resource.getDefaultInstance() + : resource_; } } /** + * + * *
          * A representation of the resource.
          * 
    @@ -1956,14 +2147,17 @@ public com.google.cloud.asset.v1p7beta1.ResourceOrBuilder getResourceOrBuilder() * .google.cloud.asset.v1p7beta1.Resource resource = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.Resource, com.google.cloud.asset.v1p7beta1.Resource.Builder, com.google.cloud.asset.v1p7beta1.ResourceOrBuilder> + com.google.cloud.asset.v1p7beta1.Resource, + com.google.cloud.asset.v1p7beta1.Resource.Builder, + com.google.cloud.asset.v1p7beta1.ResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.Resource, com.google.cloud.asset.v1p7beta1.Resource.Builder, com.google.cloud.asset.v1p7beta1.ResourceOrBuilder>( - getResource(), - getParentForChildren(), - isClean()); + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p7beta1.Resource, + com.google.cloud.asset.v1p7beta1.Resource.Builder, + com.google.cloud.asset.v1p7beta1.ResourceOrBuilder>( + getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; @@ -1971,8 +2165,13 @@ public com.google.cloud.asset.v1p7beta1.ResourceOrBuilder getResourceOrBuilder() private com.google.iam.v1.Policy iamPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> iamPolicyBuilder_; + com.google.iam.v1.Policy, + com.google.iam.v1.Policy.Builder, + com.google.iam.v1.PolicyOrBuilder> + iamPolicyBuilder_; /** + * + * *
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -1986,12 +2185,15 @@ public com.google.cloud.asset.v1p7beta1.ResourceOrBuilder getResourceOrBuilder()
          * 
    * * .google.iam.v1.Policy iam_policy = 4; + * * @return Whether the iamPolicy field is set. */ public boolean hasIamPolicy() { return iamPolicyBuilder_ != null || iamPolicy_ != null; } /** + * + * *
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2005,6 +2207,7 @@ public boolean hasIamPolicy() {
          * 
    * * .google.iam.v1.Policy iam_policy = 4; + * * @return The iamPolicy. */ public com.google.iam.v1.Policy getIamPolicy() { @@ -2015,6 +2218,8 @@ public com.google.iam.v1.Policy getIamPolicy() { } } /** + * + * *
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2043,6 +2248,8 @@ public Builder setIamPolicy(com.google.iam.v1.Policy value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2057,8 +2264,7 @@ public Builder setIamPolicy(com.google.iam.v1.Policy value) {
          *
          * .google.iam.v1.Policy iam_policy = 4;
          */
    -    public Builder setIamPolicy(
    -        com.google.iam.v1.Policy.Builder builderForValue) {
    +    public Builder setIamPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
           if (iamPolicyBuilder_ == null) {
             iamPolicy_ = builderForValue.build();
             onChanged();
    @@ -2069,6 +2275,8 @@ public Builder setIamPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2087,7 +2295,7 @@ public Builder mergeIamPolicy(com.google.iam.v1.Policy value) {
           if (iamPolicyBuilder_ == null) {
             if (iamPolicy_ != null) {
               iamPolicy_ =
    -            com.google.iam.v1.Policy.newBuilder(iamPolicy_).mergeFrom(value).buildPartial();
    +              com.google.iam.v1.Policy.newBuilder(iamPolicy_).mergeFrom(value).buildPartial();
             } else {
               iamPolicy_ = value;
             }
    @@ -2099,6 +2307,8 @@ public Builder mergeIamPolicy(com.google.iam.v1.Policy value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2125,6 +2335,8 @@ public Builder clearIamPolicy() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2140,11 +2352,13 @@ public Builder clearIamPolicy() {
          * .google.iam.v1.Policy iam_policy = 4;
          */
         public com.google.iam.v1.Policy.Builder getIamPolicyBuilder() {
    -      
    +
           onChanged();
           return getIamPolicyFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2163,11 +2377,12 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
           if (iamPolicyBuilder_ != null) {
             return iamPolicyBuilder_.getMessageOrBuilder();
           } else {
    -        return iamPolicy_ == null ?
    -            com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_;
    +        return iamPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_;
           }
         }
         /**
    +     *
    +     *
          * 
          * A representation of the Cloud IAM policy set on a Google Cloud resource.
          * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -2183,32 +2398,41 @@ public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder() {
          * .google.iam.v1.Policy iam_policy = 4;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder> 
    +            com.google.iam.v1.Policy,
    +            com.google.iam.v1.Policy.Builder,
    +            com.google.iam.v1.PolicyOrBuilder>
             getIamPolicyFieldBuilder() {
           if (iamPolicyBuilder_ == null) {
    -        iamPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.iam.v1.Policy, com.google.iam.v1.Policy.Builder, com.google.iam.v1.PolicyOrBuilder>(
    -                getIamPolicy(),
    -                getParentForChildren(),
    -                isClean());
    +        iamPolicyBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.iam.v1.Policy,
    +                com.google.iam.v1.Policy.Builder,
    +                com.google.iam.v1.PolicyOrBuilder>(
    +                getIamPolicy(), getParentForChildren(), isClean());
             iamPolicy_ = null;
           }
           return iamPolicyBuilder_;
         }
     
         private java.util.List orgPolicy_ =
    -      java.util.Collections.emptyList();
    +        java.util.Collections.emptyList();
    +
         private void ensureOrgPolicyIsMutable() {
           if (!((bitField0_ & 0x00000001) != 0)) {
             orgPolicy_ = new java.util.ArrayList(orgPolicy_);
             bitField0_ |= 0x00000001;
    -       }
    +      }
         }
     
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -        com.google.cloud.orgpolicy.v1.Policy, com.google.cloud.orgpolicy.v1.Policy.Builder, com.google.cloud.orgpolicy.v1.PolicyOrBuilder> orgPolicyBuilder_;
    +            com.google.cloud.orgpolicy.v1.Policy,
    +            com.google.cloud.orgpolicy.v1.Policy.Builder,
    +            com.google.cloud.orgpolicy.v1.PolicyOrBuilder>
    +        orgPolicyBuilder_;
     
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2226,6 +2450,8 @@ public java.util.List getOrgPolicyList() {
           }
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2243,6 +2469,8 @@ public int getOrgPolicyCount() {
           }
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2260,6 +2488,8 @@ public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) {
           }
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2269,8 +2499,7 @@ public com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index) {
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public Builder setOrgPolicy(
    -        int index, com.google.cloud.orgpolicy.v1.Policy value) {
    +    public Builder setOrgPolicy(int index, com.google.cloud.orgpolicy.v1.Policy value) {
           if (orgPolicyBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -2284,6 +2513,8 @@ public Builder setOrgPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2305,6 +2536,8 @@ public Builder setOrgPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2328,6 +2561,8 @@ public Builder addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2337,8 +2572,7 @@ public Builder addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy value) {
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public Builder addOrgPolicy(
    -        int index, com.google.cloud.orgpolicy.v1.Policy value) {
    +    public Builder addOrgPolicy(int index, com.google.cloud.orgpolicy.v1.Policy value) {
           if (orgPolicyBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -2352,6 +2586,8 @@ public Builder addOrgPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2361,8 +2597,7 @@ public Builder addOrgPolicy(
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public Builder addOrgPolicy(
    -        com.google.cloud.orgpolicy.v1.Policy.Builder builderForValue) {
    +    public Builder addOrgPolicy(com.google.cloud.orgpolicy.v1.Policy.Builder builderForValue) {
           if (orgPolicyBuilder_ == null) {
             ensureOrgPolicyIsMutable();
             orgPolicy_.add(builderForValue.build());
    @@ -2373,6 +2608,8 @@ public Builder addOrgPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2394,6 +2631,8 @@ public Builder addOrgPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2407,8 +2646,7 @@ public Builder addAllOrgPolicy(
             java.lang.Iterable values) {
           if (orgPolicyBuilder_ == null) {
             ensureOrgPolicyIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    -            values, orgPolicy_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, orgPolicy_);
             onChanged();
           } else {
             orgPolicyBuilder_.addAllMessages(values);
    @@ -2416,6 +2654,8 @@ public Builder addAllOrgPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2436,6 +2676,8 @@ public Builder clearOrgPolicy() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2456,6 +2698,8 @@ public Builder removeOrgPolicy(int index) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2465,11 +2709,12 @@ public Builder removeOrgPolicy(int index) {
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public com.google.cloud.orgpolicy.v1.Policy.Builder getOrgPolicyBuilder(
    -        int index) {
    +    public com.google.cloud.orgpolicy.v1.Policy.Builder getOrgPolicyBuilder(int index) {
           return getOrgPolicyFieldBuilder().getBuilder(index);
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2479,14 +2724,16 @@ public com.google.cloud.orgpolicy.v1.Policy.Builder getOrgPolicyBuilder(
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
    -        int index) {
    +    public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int index) {
           if (orgPolicyBuilder_ == null) {
    -        return orgPolicy_.get(index);  } else {
    +        return orgPolicy_.get(index);
    +      } else {
             return orgPolicyBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2496,8 +2743,8 @@ public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public java.util.List 
    -         getOrgPolicyOrBuilderList() {
    +    public java.util.List
    +        getOrgPolicyOrBuilderList() {
           if (orgPolicyBuilder_ != null) {
             return orgPolicyBuilder_.getMessageOrBuilderList();
           } else {
    @@ -2505,6 +2752,8 @@ public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
           }
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2515,10 +2764,12 @@ public com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
         public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder() {
    -      return getOrgPolicyFieldBuilder().addBuilder(
    -          com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance());
    +      return getOrgPolicyFieldBuilder()
    +          .addBuilder(com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2528,12 +2779,13 @@ public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder() {
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder(
    -        int index) {
    -      return getOrgPolicyFieldBuilder().addBuilder(
    -          index, com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance());
    +    public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder(int index) {
    +      return getOrgPolicyFieldBuilder()
    +          .addBuilder(index, com.google.cloud.orgpolicy.v1.Policy.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * A representation of an [organization
          * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -2543,34 +2795,42 @@ public com.google.cloud.orgpolicy.v1.Policy.Builder addOrgPolicyBuilder(
          *
          * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
          */
    -    public java.util.List 
    -         getOrgPolicyBuilderList() {
    +    public java.util.List getOrgPolicyBuilderList() {
           return getOrgPolicyFieldBuilder().getBuilderList();
         }
    +
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -        com.google.cloud.orgpolicy.v1.Policy, com.google.cloud.orgpolicy.v1.Policy.Builder, com.google.cloud.orgpolicy.v1.PolicyOrBuilder> 
    +            com.google.cloud.orgpolicy.v1.Policy,
    +            com.google.cloud.orgpolicy.v1.Policy.Builder,
    +            com.google.cloud.orgpolicy.v1.PolicyOrBuilder>
             getOrgPolicyFieldBuilder() {
           if (orgPolicyBuilder_ == null) {
    -        orgPolicyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.cloud.orgpolicy.v1.Policy, com.google.cloud.orgpolicy.v1.Policy.Builder, com.google.cloud.orgpolicy.v1.PolicyOrBuilder>(
    -                orgPolicy_,
    -                ((bitField0_ & 0x00000001) != 0),
    -                getParentForChildren(),
    -                isClean());
    +        orgPolicyBuilder_ =
    +            new com.google.protobuf.RepeatedFieldBuilderV3<
    +                com.google.cloud.orgpolicy.v1.Policy,
    +                com.google.cloud.orgpolicy.v1.Policy.Builder,
    +                com.google.cloud.orgpolicy.v1.PolicyOrBuilder>(
    +                orgPolicy_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
             orgPolicy_ = null;
           }
           return orgPolicyBuilder_;
         }
     
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.identity.accesscontextmanager.v1.AccessPolicy, com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder, com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder> accessPolicyBuilder_;
    +            com.google.identity.accesscontextmanager.v1.AccessPolicy,
    +            com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder,
    +            com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>
    +        accessPolicyBuilder_;
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
          * 
    * * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; + * * @return Whether the accessPolicy field is set. */ @java.lang.Override @@ -2578,12 +2838,15 @@ public boolean hasAccessPolicy() { return accessContextPolicyCase_ == 7; } /** + * + * *
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
          * 
    * * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; + * * @return The accessPolicy. */ @java.lang.Override @@ -2601,6 +2864,8 @@ public com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy( } } /** + * + * *
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -2622,6 +2887,8 @@ public Builder setAccessPolicy(com.google.identity.accesscontextmanager.v1.Acces
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -2641,6 +2908,8 @@ public Builder setAccessPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -2648,12 +2917,18 @@ public Builder setAccessPolicy(
          *
          * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
          */
    -    public Builder mergeAccessPolicy(com.google.identity.accesscontextmanager.v1.AccessPolicy value) {
    +    public Builder mergeAccessPolicy(
    +        com.google.identity.accesscontextmanager.v1.AccessPolicy value) {
           if (accessPolicyBuilder_ == null) {
    -        if (accessContextPolicyCase_ == 7 &&
    -            accessContextPolicy_ != com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance()) {
    -          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.AccessPolicy.newBuilder((com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_)
    -              .mergeFrom(value).buildPartial();
    +        if (accessContextPolicyCase_ == 7
    +            && accessContextPolicy_
    +                != com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance()) {
    +          accessContextPolicy_ =
    +              com.google.identity.accesscontextmanager.v1.AccessPolicy.newBuilder(
    +                      (com.google.identity.accesscontextmanager.v1.AccessPolicy)
    +                          accessContextPolicy_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               accessContextPolicy_ = value;
             }
    @@ -2669,6 +2944,8 @@ public Builder mergeAccessPolicy(com.google.identity.accesscontextmanager.v1.Acc
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -2693,6 +2970,8 @@ public Builder clearAccessPolicy() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -2700,10 +2979,13 @@ public Builder clearAccessPolicy() {
          *
          * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
          */
    -    public com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder getAccessPolicyBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder
    +        getAccessPolicyBuilder() {
           return getAccessPolicyFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -2712,7 +2994,8 @@ public com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder getAcces
          * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
          */
         @java.lang.Override
    -    public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAccessPolicyOrBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder
    +        getAccessPolicyOrBuilder() {
           if ((accessContextPolicyCase_ == 7) && (accessPolicyBuilder_ != null)) {
             return accessPolicyBuilder_.getMessageOrBuilder();
           } else {
    @@ -2723,6 +3006,8 @@ public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAcce
           }
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access policy user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -2731,33 +3016,46 @@ public com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAcce
          * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.identity.accesscontextmanager.v1.AccessPolicy, com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder, com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder> 
    +            com.google.identity.accesscontextmanager.v1.AccessPolicy,
    +            com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder,
    +            com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>
             getAccessPolicyFieldBuilder() {
           if (accessPolicyBuilder_ == null) {
             if (!(accessContextPolicyCase_ == 7)) {
    -          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance();
    +          accessContextPolicy_ =
    +              com.google.identity.accesscontextmanager.v1.AccessPolicy.getDefaultInstance();
             }
    -        accessPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.AccessPolicy, com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder, com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>(
    +        accessPolicyBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.identity.accesscontextmanager.v1.AccessPolicy,
    +                com.google.identity.accesscontextmanager.v1.AccessPolicy.Builder,
    +                com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder>(
                     (com.google.identity.accesscontextmanager.v1.AccessPolicy) accessContextPolicy_,
                     getParentForChildren(),
                     isClean());
             accessContextPolicy_ = null;
           }
           accessContextPolicyCase_ = 7;
    -      onChanged();;
    +      onChanged();
    +      ;
           return accessPolicyBuilder_;
         }
     
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.identity.accesscontextmanager.v1.AccessLevel, com.google.identity.accesscontextmanager.v1.AccessLevel.Builder, com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder> accessLevelBuilder_;
    +            com.google.identity.accesscontextmanager.v1.AccessLevel,
    +            com.google.identity.accesscontextmanager.v1.AccessLevel.Builder,
    +            com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>
    +        accessLevelBuilder_;
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
          * 
    * * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; + * * @return Whether the accessLevel field is set. */ @java.lang.Override @@ -2765,12 +3063,15 @@ public boolean hasAccessLevel() { return accessContextPolicyCase_ == 8; } /** + * + * *
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
          * 
    * * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; + * * @return The accessLevel. */ @java.lang.Override @@ -2788,6 +3089,8 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel() } } /** + * + * *
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -2809,6 +3112,8 @@ public Builder setAccessLevel(com.google.identity.accesscontextmanager.v1.Access
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -2828,6 +3133,8 @@ public Builder setAccessLevel(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -2837,10 +3144,15 @@ public Builder setAccessLevel(
          */
         public Builder mergeAccessLevel(com.google.identity.accesscontextmanager.v1.AccessLevel value) {
           if (accessLevelBuilder_ == null) {
    -        if (accessContextPolicyCase_ == 8 &&
    -            accessContextPolicy_ != com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance()) {
    -          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.AccessLevel.newBuilder((com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_)
    -              .mergeFrom(value).buildPartial();
    +        if (accessContextPolicyCase_ == 8
    +            && accessContextPolicy_
    +                != com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance()) {
    +          accessContextPolicy_ =
    +              com.google.identity.accesscontextmanager.v1.AccessLevel.newBuilder(
    +                      (com.google.identity.accesscontextmanager.v1.AccessLevel)
    +                          accessContextPolicy_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               accessContextPolicy_ = value;
             }
    @@ -2856,6 +3168,8 @@ public Builder mergeAccessLevel(com.google.identity.accesscontextmanager.v1.Acce
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -2880,6 +3194,8 @@ public Builder clearAccessLevel() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -2891,6 +3207,8 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel.Builder getAccess
           return getAccessLevelFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -2899,7 +3217,8 @@ public com.google.identity.accesscontextmanager.v1.AccessLevel.Builder getAccess
          * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
          */
         @java.lang.Override
    -    public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAccessLevelOrBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder
    +        getAccessLevelOrBuilder() {
           if ((accessContextPolicyCase_ == 8) && (accessLevelBuilder_ != null)) {
             return accessLevelBuilder_.getMessageOrBuilder();
           } else {
    @@ -2910,6 +3229,8 @@ public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAcces
           }
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [access level user
          * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -2918,33 +3239,46 @@ public com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAcces
          * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.identity.accesscontextmanager.v1.AccessLevel, com.google.identity.accesscontextmanager.v1.AccessLevel.Builder, com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder> 
    +            com.google.identity.accesscontextmanager.v1.AccessLevel,
    +            com.google.identity.accesscontextmanager.v1.AccessLevel.Builder,
    +            com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>
             getAccessLevelFieldBuilder() {
           if (accessLevelBuilder_ == null) {
             if (!(accessContextPolicyCase_ == 8)) {
    -          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance();
    +          accessContextPolicy_ =
    +              com.google.identity.accesscontextmanager.v1.AccessLevel.getDefaultInstance();
             }
    -        accessLevelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.AccessLevel, com.google.identity.accesscontextmanager.v1.AccessLevel.Builder, com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>(
    +        accessLevelBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.identity.accesscontextmanager.v1.AccessLevel,
    +                com.google.identity.accesscontextmanager.v1.AccessLevel.Builder,
    +                com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder>(
                     (com.google.identity.accesscontextmanager.v1.AccessLevel) accessContextPolicy_,
                     getParentForChildren(),
                     isClean());
             accessContextPolicy_ = null;
           }
           accessContextPolicyCase_ = 8;
    -      onChanged();;
    +      onChanged();
    +      ;
           return accessLevelBuilder_;
         }
     
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.identity.accesscontextmanager.v1.ServicePerimeter, com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder, com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder> servicePerimeterBuilder_;
    +            com.google.identity.accesscontextmanager.v1.ServicePerimeter,
    +            com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder,
    +            com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>
    +        servicePerimeterBuilder_;
         /**
    +     *
    +     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
          * 
    * * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + * * @return Whether the servicePerimeter field is set. */ @java.lang.Override @@ -2952,19 +3286,23 @@ public boolean hasServicePerimeter() { return accessContextPolicyCase_ == 9; } /** + * + * *
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
          * 
    * * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + * * @return The servicePerimeter. */ @java.lang.Override public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter() { if (servicePerimeterBuilder_ == null) { if (accessContextPolicyCase_ == 9) { - return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_; + return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) + accessContextPolicy_; } return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance(); } else { @@ -2975,6 +3313,8 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePe } } /** + * + * *
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -2982,7 +3322,8 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePe
          *
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
    -    public Builder setServicePerimeter(com.google.identity.accesscontextmanager.v1.ServicePerimeter value) {
    +    public Builder setServicePerimeter(
    +        com.google.identity.accesscontextmanager.v1.ServicePerimeter value) {
           if (servicePerimeterBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -2996,6 +3337,8 @@ public Builder setServicePerimeter(com.google.identity.accesscontextmanager.v1.S
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3015,6 +3358,8 @@ public Builder setServicePerimeter(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3022,12 +3367,19 @@ public Builder setServicePerimeter(
          *
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
    -    public Builder mergeServicePerimeter(com.google.identity.accesscontextmanager.v1.ServicePerimeter value) {
    +    public Builder mergeServicePerimeter(
    +        com.google.identity.accesscontextmanager.v1.ServicePerimeter value) {
           if (servicePerimeterBuilder_ == null) {
    -        if (accessContextPolicyCase_ == 9 &&
    -            accessContextPolicy_ != com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance()) {
    -          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.ServicePerimeter.newBuilder((com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_)
    -              .mergeFrom(value).buildPartial();
    +        if (accessContextPolicyCase_ == 9
    +            && accessContextPolicy_
    +                != com.google.identity.accesscontextmanager.v1.ServicePerimeter
    +                    .getDefaultInstance()) {
    +          accessContextPolicy_ =
    +              com.google.identity.accesscontextmanager.v1.ServicePerimeter.newBuilder(
    +                      (com.google.identity.accesscontextmanager.v1.ServicePerimeter)
    +                          accessContextPolicy_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               accessContextPolicy_ = value;
             }
    @@ -3043,6 +3395,8 @@ public Builder mergeServicePerimeter(com.google.identity.accesscontextmanager.v1
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3067,6 +3421,8 @@ public Builder clearServicePerimeter() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3074,10 +3430,13 @@ public Builder clearServicePerimeter() {
          *
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
    -    public com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder getServicePerimeterBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder
    +        getServicePerimeterBuilder() {
           return getServicePerimeterFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3086,17 +3445,21 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder getS
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
         @java.lang.Override
    -    public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder getServicePerimeterOrBuilder() {
    +    public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder
    +        getServicePerimeterOrBuilder() {
           if ((accessContextPolicyCase_ == 9) && (servicePerimeterBuilder_ != null)) {
             return servicePerimeterBuilder_.getMessageOrBuilder();
           } else {
             if (accessContextPolicyCase_ == 9) {
    -          return (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_;
    +          return (com.google.identity.accesscontextmanager.v1.ServicePerimeter)
    +              accessContextPolicy_;
             }
             return com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
           }
         }
         /**
    +     *
    +     *
          * 
          * Please also refer to the [service perimeter user
          * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -3105,56 +3468,76 @@ public com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder get
          * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.identity.accesscontextmanager.v1.ServicePerimeter, com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder, com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder> 
    +            com.google.identity.accesscontextmanager.v1.ServicePerimeter,
    +            com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder,
    +            com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>
             getServicePerimeterFieldBuilder() {
           if (servicePerimeterBuilder_ == null) {
             if (!(accessContextPolicyCase_ == 9)) {
    -          accessContextPolicy_ = com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
    +          accessContextPolicy_ =
    +              com.google.identity.accesscontextmanager.v1.ServicePerimeter.getDefaultInstance();
             }
    -        servicePerimeterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.identity.accesscontextmanager.v1.ServicePerimeter, com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder, com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>(
    +        servicePerimeterBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.identity.accesscontextmanager.v1.ServicePerimeter,
    +                com.google.identity.accesscontextmanager.v1.ServicePerimeter.Builder,
    +                com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder>(
                     (com.google.identity.accesscontextmanager.v1.ServicePerimeter) accessContextPolicy_,
                     getParentForChildren(),
                     isClean());
             accessContextPolicy_ = null;
           }
           accessContextPolicyCase_ = 9;
    -      onChanged();;
    +      onChanged();
    +      ;
           return servicePerimeterBuilder_;
         }
     
         private com.google.cloud.asset.v1p7beta1.RelatedAssets relatedAssets_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1p7beta1.RelatedAssets, com.google.cloud.asset.v1p7beta1.RelatedAssets.Builder, com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder> relatedAssetsBuilder_;
    +            com.google.cloud.asset.v1p7beta1.RelatedAssets,
    +            com.google.cloud.asset.v1p7beta1.RelatedAssets.Builder,
    +            com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder>
    +        relatedAssetsBuilder_;
         /**
    +     *
    +     *
          * 
          * The related assets of the asset of one relationship type.
          * One asset only represents one type of relationship.
          * 
    * * .google.cloud.asset.v1p7beta1.RelatedAssets related_assets = 13; + * * @return Whether the relatedAssets field is set. */ public boolean hasRelatedAssets() { return relatedAssetsBuilder_ != null || relatedAssets_ != null; } /** + * + * *
          * The related assets of the asset of one relationship type.
          * One asset only represents one type of relationship.
          * 
    * * .google.cloud.asset.v1p7beta1.RelatedAssets related_assets = 13; + * * @return The relatedAssets. */ public com.google.cloud.asset.v1p7beta1.RelatedAssets getRelatedAssets() { if (relatedAssetsBuilder_ == null) { - return relatedAssets_ == null ? com.google.cloud.asset.v1p7beta1.RelatedAssets.getDefaultInstance() : relatedAssets_; + return relatedAssets_ == null + ? com.google.cloud.asset.v1p7beta1.RelatedAssets.getDefaultInstance() + : relatedAssets_; } else { return relatedAssetsBuilder_.getMessage(); } } /** + * + * *
          * The related assets of the asset of one relationship type.
          * One asset only represents one type of relationship.
    @@ -3176,6 +3559,8 @@ public Builder setRelatedAssets(com.google.cloud.asset.v1p7beta1.RelatedAssets v
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The related assets of the asset of one relationship type.
          * One asset only represents one type of relationship.
    @@ -3195,6 +3580,8 @@ public Builder setRelatedAssets(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The related assets of the asset of one relationship type.
          * One asset only represents one type of relationship.
    @@ -3206,7 +3593,9 @@ public Builder mergeRelatedAssets(com.google.cloud.asset.v1p7beta1.RelatedAssets
           if (relatedAssetsBuilder_ == null) {
             if (relatedAssets_ != null) {
               relatedAssets_ =
    -            com.google.cloud.asset.v1p7beta1.RelatedAssets.newBuilder(relatedAssets_).mergeFrom(value).buildPartial();
    +              com.google.cloud.asset.v1p7beta1.RelatedAssets.newBuilder(relatedAssets_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               relatedAssets_ = value;
             }
    @@ -3218,6 +3607,8 @@ public Builder mergeRelatedAssets(com.google.cloud.asset.v1p7beta1.RelatedAssets
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The related assets of the asset of one relationship type.
          * One asset only represents one type of relationship.
    @@ -3237,6 +3628,8 @@ public Builder clearRelatedAssets() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The related assets of the asset of one relationship type.
          * One asset only represents one type of relationship.
    @@ -3245,11 +3638,13 @@ public Builder clearRelatedAssets() {
          * .google.cloud.asset.v1p7beta1.RelatedAssets related_assets = 13;
          */
         public com.google.cloud.asset.v1p7beta1.RelatedAssets.Builder getRelatedAssetsBuilder() {
    -      
    +
           onChanged();
           return getRelatedAssetsFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * The related assets of the asset of one relationship type.
          * One asset only represents one type of relationship.
    @@ -3261,11 +3656,14 @@ public com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder getRelatedAssetsO
           if (relatedAssetsBuilder_ != null) {
             return relatedAssetsBuilder_.getMessageOrBuilder();
           } else {
    -        return relatedAssets_ == null ?
    -            com.google.cloud.asset.v1p7beta1.RelatedAssets.getDefaultInstance() : relatedAssets_;
    +        return relatedAssets_ == null
    +            ? com.google.cloud.asset.v1p7beta1.RelatedAssets.getDefaultInstance()
    +            : relatedAssets_;
           }
         }
         /**
    +     *
    +     *
          * 
          * The related assets of the asset of one relationship type.
          * One asset only represents one type of relationship.
    @@ -3274,27 +3672,34 @@ public com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder getRelatedAssetsO
          * .google.cloud.asset.v1p7beta1.RelatedAssets related_assets = 13;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1p7beta1.RelatedAssets, com.google.cloud.asset.v1p7beta1.RelatedAssets.Builder, com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder> 
    +            com.google.cloud.asset.v1p7beta1.RelatedAssets,
    +            com.google.cloud.asset.v1p7beta1.RelatedAssets.Builder,
    +            com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder>
             getRelatedAssetsFieldBuilder() {
           if (relatedAssetsBuilder_ == null) {
    -        relatedAssetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1p7beta1.RelatedAssets, com.google.cloud.asset.v1p7beta1.RelatedAssets.Builder, com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder>(
    -                getRelatedAssets(),
    -                getParentForChildren(),
    -                isClean());
    +        relatedAssetsBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.cloud.asset.v1p7beta1.RelatedAssets,
    +                com.google.cloud.asset.v1p7beta1.RelatedAssets.Builder,
    +                com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder>(
    +                getRelatedAssets(), getParentForChildren(), isClean());
             relatedAssets_ = null;
           }
           return relatedAssetsBuilder_;
         }
     
    -    private com.google.protobuf.LazyStringList ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    +    private com.google.protobuf.LazyStringList ancestors_ =
    +        com.google.protobuf.LazyStringArrayList.EMPTY;
    +
         private void ensureAncestorsIsMutable() {
           if (!((bitField0_ & 0x00000002) != 0)) {
             ancestors_ = new com.google.protobuf.LazyStringArrayList(ancestors_);
             bitField0_ |= 0x00000002;
    -       }
    +      }
         }
         /**
    +     *
    +     *
          * 
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3306,13 +3711,15 @@ private void ensureAncestorsIsMutable() {
          * 
    * * repeated string ancestors = 10; + * * @return A list containing the ancestors. */ - public com.google.protobuf.ProtocolStringList - getAncestorsList() { + public com.google.protobuf.ProtocolStringList getAncestorsList() { return ancestors_.getUnmodifiableView(); } /** + * + * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3324,12 +3731,15 @@ private void ensureAncestorsIsMutable() {
          * 
    * * repeated string ancestors = 10; + * * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); } /** + * + * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3341,6 +3751,7 @@ public int getAncestorsCount() {
          * 
    * * repeated string ancestors = 10; + * * @param index The index of the element to return. * @return The ancestors at the given index. */ @@ -3348,6 +3759,8 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** + * + * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3359,14 +3772,16 @@ public java.lang.String getAncestors(int index) {
          * 
    * * repeated string ancestors = 10; + * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - public com.google.protobuf.ByteString - getAncestorsBytes(int index) { + public com.google.protobuf.ByteString getAncestorsBytes(int index) { return ancestors_.getByteString(index); } /** + * + * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3378,21 +3793,23 @@ public java.lang.String getAncestors(int index) {
          * 
    * * repeated string ancestors = 10; + * * @param index The index to set the value at. * @param value The ancestors to set. * @return This builder for chaining. */ - public Builder setAncestors( - int index, java.lang.String value) { + public Builder setAncestors(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAncestorsIsMutable(); + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); ancestors_.set(index, value); onChanged(); return this; } /** + * + * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3404,20 +3821,22 @@ public Builder setAncestors(
          * 
    * * repeated string ancestors = 10; + * * @param value The ancestors to add. * @return This builder for chaining. */ - public Builder addAncestors( - java.lang.String value) { + public Builder addAncestors(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAncestorsIsMutable(); + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); return this; } /** + * + * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3429,18 +3848,19 @@ public Builder addAncestors(
          * 
    * * repeated string ancestors = 10; + * * @param values The ancestors to add. * @return This builder for chaining. */ - public Builder addAllAncestors( - java.lang.Iterable values) { + public Builder addAllAncestors(java.lang.Iterable values) { ensureAncestorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ancestors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ancestors_); onChanged(); return this; } /** + * + * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3452,6 +3872,7 @@ public Builder addAllAncestors(
          * 
    * * repeated string ancestors = 10; + * * @return This builder for chaining. */ public Builder clearAncestors() { @@ -3461,6 +3882,8 @@ public Builder clearAncestors() { return this; } /** + * + * *
          * The ancestry path of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -3472,23 +3895,23 @@ public Builder clearAncestors() {
          * 
    * * repeated string ancestors = 10; + * * @param value The bytes of the ancestors to add. * @return This builder for chaining. */ - public Builder addAncestorsBytes( - com.google.protobuf.ByteString value) { + public Builder addAncestorsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3498,12 +3921,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.Asset) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.Asset) private static final com.google.cloud.asset.v1p7beta1.Asset DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.Asset(); } @@ -3512,27 +3935,27 @@ public static com.google.cloud.asset.v1p7beta1.Asset getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Asset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Asset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3547,6 +3970,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p7beta1.Asset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetOrBuilder.java similarity index 90% rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetOrBuilder.java index 4711ab6e07b9..37bfc62b5fe5 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/assets.proto package com.google.cloud.asset.v1p7beta1; -public interface AssetOrBuilder extends +public interface AssetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.Asset) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The last update timestamp of an asset. update_time is updated when
        * create/update/delete operation is performed.
        * 
    * * .google.protobuf.Timestamp update_time = 11; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
        * The last update timestamp of an asset. update_time is updated when
        * create/update/delete operation is performed.
        * 
    * * .google.protobuf.Timestamp update_time = 11; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
        * The last update timestamp of an asset. update_time is updated when
        * create/update/delete operation is performed.
    @@ -38,6 +62,8 @@ public interface AssetOrBuilder extends
       com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -47,10 +73,13 @@ public interface AssetOrBuilder extends
        * 
    * * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -60,12 +89,14 @@ public interface AssetOrBuilder extends
        * 
    * * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -74,10 +105,13 @@ public interface AssetOrBuilder extends
        * 
    * * string asset_type = 2; + * * @return The assetType. */ java.lang.String getAssetType(); /** + * + * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -86,30 +120,38 @@ public interface AssetOrBuilder extends
        * 
    * * string asset_type = 2; + * * @return The bytes for assetType. */ - com.google.protobuf.ByteString - getAssetTypeBytes(); + com.google.protobuf.ByteString getAssetTypeBytes(); /** + * + * *
        * A representation of the resource.
        * 
    * * .google.cloud.asset.v1p7beta1.Resource resource = 3; + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
        * A representation of the resource.
        * 
    * * .google.cloud.asset.v1p7beta1.Resource resource = 3; + * * @return The resource. */ com.google.cloud.asset.v1p7beta1.Resource getResource(); /** + * + * *
        * A representation of the resource.
        * 
    @@ -119,6 +161,8 @@ public interface AssetOrBuilder extends com.google.cloud.asset.v1p7beta1.ResourceOrBuilder getResourceOrBuilder(); /** + * + * *
        * A representation of the Cloud IAM policy set on a Google Cloud resource.
        * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -132,10 +176,13 @@ public interface AssetOrBuilder extends
        * 
    * * .google.iam.v1.Policy iam_policy = 4; + * * @return Whether the iamPolicy field is set. */ boolean hasIamPolicy(); /** + * + * *
        * A representation of the Cloud IAM policy set on a Google Cloud resource.
        * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -149,10 +196,13 @@ public interface AssetOrBuilder extends
        * 
    * * .google.iam.v1.Policy iam_policy = 4; + * * @return The iamPolicy. */ com.google.iam.v1.Policy getIamPolicy(); /** + * + * *
        * A representation of the Cloud IAM policy set on a Google Cloud resource.
        * There can be a maximum of one Cloud IAM policy set on any given resource.
    @@ -170,6 +220,8 @@ public interface AssetOrBuilder extends
       com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -179,9 +231,10 @@ public interface AssetOrBuilder extends
        *
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
    -  java.util.List 
    -      getOrgPolicyList();
    +  java.util.List getOrgPolicyList();
       /**
    +   *
    +   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -193,6 +246,8 @@ public interface AssetOrBuilder extends
        */
       com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index);
       /**
    +   *
    +   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -204,6 +259,8 @@ public interface AssetOrBuilder extends
        */
       int getOrgPolicyCount();
       /**
    +   *
    +   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -213,9 +270,11 @@ public interface AssetOrBuilder extends
        *
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
    -  java.util.List 
    +  java.util.List
           getOrgPolicyOrBuilderList();
       /**
    +   *
    +   *
        * 
        * A representation of an [organization
        * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
    @@ -225,30 +284,37 @@ public interface AssetOrBuilder extends
        *
        * repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;
        */
    -  com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
    -      int index);
    +  com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int index);
     
       /**
    +   *
    +   *
        * 
        * Please also refer to the [access policy user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; + * * @return Whether the accessPolicy field is set. */ boolean hasAccessPolicy(); /** + * + * *
        * Please also refer to the [access policy user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; + * * @return The accessPolicy. */ com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy(); /** + * + * *
        * Please also refer to the [access policy user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
    @@ -259,26 +325,34 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
       com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAccessPolicyOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * Please also refer to the [access level user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; + * * @return Whether the accessLevel field is set. */ boolean hasAccessLevel(); /** + * + * *
        * Please also refer to the [access level user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
        * 
    * * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; + * * @return The accessLevel. */ com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel(); /** + * + * *
        * Please also refer to the [access level user
        * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
    @@ -289,26 +363,34 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
       com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAccessLevelOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * Please also refer to the [service perimeter user
        * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
        * 
    * * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + * * @return Whether the servicePerimeter field is set. */ boolean hasServicePerimeter(); /** + * + * *
        * Please also refer to the [service perimeter user
        * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
        * 
    * * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; + * * @return The servicePerimeter. */ com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter(); /** + * + * *
        * Please also refer to the [service perimeter user
        * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
    @@ -316,29 +398,38 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
        *
        * .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;
        */
    -  com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder getServicePerimeterOrBuilder();
    +  com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder
    +      getServicePerimeterOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * The related assets of the asset of one relationship type.
        * One asset only represents one type of relationship.
        * 
    * * .google.cloud.asset.v1p7beta1.RelatedAssets related_assets = 13; + * * @return Whether the relatedAssets field is set. */ boolean hasRelatedAssets(); /** + * + * *
        * The related assets of the asset of one relationship type.
        * One asset only represents one type of relationship.
        * 
    * * .google.cloud.asset.v1p7beta1.RelatedAssets related_assets = 13; + * * @return The relatedAssets. */ com.google.cloud.asset.v1p7beta1.RelatedAssets getRelatedAssets(); /** + * + * *
        * The related assets of the asset of one relationship type.
        * One asset only represents one type of relationship.
    @@ -349,6 +440,8 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
       com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder getRelatedAssetsOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -360,11 +453,13 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
        * 
    * * repeated string ancestors = 10; + * * @return A list containing the ancestors. */ - java.util.List - getAncestorsList(); + java.util.List getAncestorsList(); /** + * + * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -376,10 +471,13 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
        * 
    * * repeated string ancestors = 10; + * * @return The count of ancestors. */ int getAncestorsCount(); /** + * + * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -391,11 +489,14 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
        * 
    * * repeated string ancestors = 10; + * * @param index The index of the element to return. * @return The ancestors at the given index. */ java.lang.String getAncestors(int index); /** + * + * *
        * The ancestry path of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -407,11 +508,12 @@ com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(
        * 
    * * repeated string ancestors = 10; + * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - com.google.protobuf.ByteString - getAncestorsBytes(int index); + com.google.protobuf.ByteString getAncestorsBytes(int index); - public com.google.cloud.asset.v1p7beta1.Asset.AccessContextPolicyCase getAccessContextPolicyCase(); + public com.google.cloud.asset.v1p7beta1.Asset.AccessContextPolicyCase + getAccessContextPolicyCase(); } diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetProto.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetProto.java new file mode 100644 index 000000000000..165101fd6c99 --- /dev/null +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetProto.java @@ -0,0 +1,196 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1p7beta1/assets.proto + +package com.google.cloud.asset.v1p7beta1; + +public final class AssetProto { + private AssetProto() {} + + 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_asset_v1p7beta1_Asset_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_Asset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_Resource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/asset/v1p7beta1/assets.pr" + + "oto\022\034google.cloud.asset.v1p7beta1\032\031googl" + + "e/api/resource.proto\032)google/cloud/orgpo" + + "licy/v1/orgpolicy.proto\032(google/cloud/os" + + "config/v1/inventory.proto\032\032google/iam/v1" + + "/policy.proto\032:google/identity/accesscon" + + "textmanager/v1/access_level.proto\032;googl" + + "e/identity/accesscontextmanager/v1/acces" + + "s_policy.proto\032?google/identity/accessco" + + "ntextmanager/v1/service_perimeter.proto\032" + + "\034google/protobuf/struct.proto\032\037google/pr" + + "otobuf/timestamp.proto\"\206\005\n\005Asset\022/\n\013upda" + + "te_time\030\013 \001(\0132\032.google.protobuf.Timestam" + + "p\022\014\n\004name\030\001 \001(\t\022\022\n\nasset_type\030\002 \001(\t\0228\n\010r" + + "esource\030\003 \001(\0132&.google.cloud.asset.v1p7b" + + "eta1.Resource\022)\n\niam_policy\030\004 \001(\0132\025.goog" + + "le.iam.v1.Policy\0225\n\norg_policy\030\006 \003(\0132!.g" + + "oogle.cloud.orgpolicy.v1.Policy\022N\n\racces" + + "s_policy\030\007 \001(\01325.google.identity.accessc" + + "ontextmanager.v1.AccessPolicyH\000\022L\n\014acces" + + "s_level\030\010 \001(\01324.google.identity.accessco" + + "ntextmanager.v1.AccessLevelH\000\022V\n\021service" + + "_perimeter\030\t \001(\01329.google.identity.acces" + + "scontextmanager.v1.ServicePerimeterH\000\022C\n" + + "\016related_assets\030\r \001(\0132+.google.cloud.ass" + + "et.v1p7beta1.RelatedAssets\022\021\n\tancestors\030" + + "\n \003(\t:\'\352A$\n\037cloudasset.googleapis.com/As" + + "set\022\001*B\027\n\025access_context_policy\"\262\001\n\010Reso" + + "urce\022\017\n\007version\030\001 \001(\t\022\036\n\026discovery_docum" + + "ent_uri\030\002 \001(\t\022\026\n\016discovery_name\030\003 \001(\t\022\024\n" + + "\014resource_url\030\004 \001(\t\022\016\n\006parent\030\005 \001(\t\022%\n\004d" + + "ata\030\006 \001(\0132\027.google.protobuf.Struct\022\020\n\010lo" + + "cation\030\010 \001(\t\"\242\001\n\rRelatedAssets\022U\n\027relati" + + "onship_attributes\030\001 \001(\01324.google.cloud.a" + + "sset.v1p7beta1.RelationshipAttributes\022:\n" + + "\006assets\030\002 \003(\0132*.google.cloud.asset.v1p7b" + + "eta1.RelatedAsset\"r\n\026RelationshipAttribu" + + "tes\022\014\n\004type\030\004 \001(\t\022\034\n\024source_resource_typ" + + "e\030\001 \001(\t\022\034\n\024target_resource_type\030\002 \001(\t\022\016\n" + + "\006action\030\003 \001(\t\"j\n\014RelatedAsset\0223\n\005asset\030\001" + + " \001(\tB$\372A!\n\037cloudasset.googleapis.com/Ass" + + "et\022\022\n\nasset_type\030\002 \001(\t\022\021\n\tancestors\030\003 \003(" + + "\tB\264\001\n com.google.cloud.asset.v1p7beta1B\n" + + "AssetProtoP\001ZAgoogle.golang.org/genproto" + + "/googleapis/cloud/asset/v1p7beta1;asset\370" + + "\001\001\252\002\034Google.Cloud.Asset.V1P7Beta1\312\002\034Goog" + + "le\\Cloud\\Asset\\V1p7beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(), + com.google.cloud.osconfig.v1.Inventories.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(), + com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(), + com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_asset_v1p7beta1_Asset_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_asset_v1p7beta1_Asset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_Asset_descriptor, + new java.lang.String[] { + "UpdateTime", + "Name", + "AssetType", + "Resource", + "IamPolicy", + "OrgPolicy", + "AccessPolicy", + "AccessLevel", + "ServicePerimeter", + "RelatedAssets", + "Ancestors", + "AccessContextPolicy", + }); + internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_asset_v1p7beta1_Resource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor, + new java.lang.String[] { + "Version", + "DiscoveryDocumentUri", + "DiscoveryName", + "ResourceUrl", + "Parent", + "Data", + "Location", + }); + internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor, + new java.lang.String[] { + "RelationshipAttributes", "Assets", + }); + internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor, + new java.lang.String[] { + "Type", "SourceResourceType", "TargetResourceType", "Action", + }); + internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor, + new java.lang.String[] { + "Asset", "AssetType", "Ancestors", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(); + com.google.cloud.osconfig.v1.Inventories.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(); + com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(); + com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceProto.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceProto.java new file mode 100644 index 000000000000..fbbe0a4b5854 --- /dev/null +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceProto.java @@ -0,0 +1,230 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/asset/v1p7beta1/asset_service.proto + +package com.google.cloud.asset.v1p7beta1; + +public final class AssetServiceProto { + private AssetServiceProto() {} + + 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_asset_v1p7beta1_ExportAssetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_OutputResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/asset/v1p7beta1/asset_ser" + + "vice.proto\022\034google.cloud.asset.v1p7beta1" + + "\032\034google/api/annotations.proto\032\027google/a" + + "pi/client.proto\032\037google/api/field_behavi" + + "or.proto\032\031google/api/resource.proto\032)goo" + + "gle/cloud/asset/v1p7beta1/assets.proto\032#" + + "google/longrunning/operations.proto\032\037goo" + + "gle/protobuf/timestamp.proto\"\267\002\n\023ExportA" + + "ssetsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037cl" + + "oudasset.googleapis.com/Asset\022-\n\tread_ti" + + "me\030\002 \001(\0132\032.google.protobuf.Timestamp\022\023\n\013" + + "asset_types\030\003 \003(\t\022?\n\014content_type\030\004 \001(\0162" + + ").google.cloud.asset.v1p7beta1.ContentTy" + + "pe\022F\n\routput_config\030\005 \001(\0132*.google.cloud" + + ".asset.v1p7beta1.OutputConfigB\003\340A\002\022\032\n\022re" + + "lationship_types\030\006 \003(\t\"\313\001\n\024ExportAssetsR" + + "esponse\022-\n\tread_time\030\001 \001(\0132\032.google.prot" + + "obuf.Timestamp\022A\n\routput_config\030\002 \001(\0132*." + + "google.cloud.asset.v1p7beta1.OutputConfi" + + "g\022A\n\routput_result\030\003 \001(\0132*.google.cloud." + + "asset.v1p7beta1.OutputResult\"\271\001\n\014OutputC" + + "onfig\022G\n\017gcs_destination\030\001 \001(\0132,.google." + + "cloud.asset.v1p7beta1.GcsDestinationH\000\022Q" + + "\n\024bigquery_destination\030\002 \001(\01321.google.cl" + + "oud.asset.v1p7beta1.BigQueryDestinationH" + + "\000B\r\n\013destination\"]\n\014OutputResult\022C\n\ngcs_" + + "result\030\001 \001(\0132-.google.cloud.asset.v1p7be" + + "ta1.GcsOutputResultH\000B\010\n\006result\"\037\n\017GcsOu" + + "tputResult\022\014\n\004uris\030\001 \003(\t\"C\n\016GcsDestinati" + + "on\022\r\n\003uri\030\001 \001(\tH\000\022\024\n\nuri_prefix\030\002 \001(\tH\000B" + + "\014\n\nobject_uri\"\273\001\n\023BigQueryDestination\022\024\n" + + "\007dataset\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\tB\003\340A\002\022" + + "\r\n\005force\030\003 \001(\010\022C\n\016partition_spec\030\004 \001(\0132+" + + ".google.cloud.asset.v1p7beta1.PartitionS" + + "pec\022&\n\036separate_tables_per_asset_type\030\005 " + + "\001(\010\"\260\001\n\rPartitionSpec\022O\n\rpartition_key\030\001" + + " \001(\01628.google.cloud.asset.v1p7beta1.Part" + + "itionSpec.PartitionKey\"N\n\014PartitionKey\022\035" + + "\n\031PARTITION_KEY_UNSPECIFIED\020\000\022\r\n\tREAD_TI" + + "ME\020\001\022\020\n\014REQUEST_TIME\020\002*~\n\013ContentType\022\034\n" + + "\030CONTENT_TYPE_UNSPECIFIED\020\000\022\014\n\010RESOURCE\020" + + "\001\022\016\n\nIAM_POLICY\020\002\022\016\n\nORG_POLICY\020\004\022\021\n\rACC" + + "ESS_POLICY\020\005\022\020\n\014RELATIONSHIP\020\0072\332\002\n\014Asset" + + "Service\022\372\001\n\014ExportAssets\0221.google.cloud." + + "asset.v1p7beta1.ExportAssetsRequest\032\035.go" + + "ogle.longrunning.Operation\"\227\001\202\323\344\223\002)\"$/v1" + + "p7beta1/{parent=*/*}:exportAssets:\001*\312Ae\n" + + "1google.cloud.asset.v1p7beta1.ExportAsse" + + "tsResponse\0220google.cloud.asset.v1p7beta1" + + ".ExportAssetsRequest\032M\312A\031cloudasset.goog" + + "leapis.com\322A.https://www.googleapis.com/" + + "auth/cloud-platformB\270\001\n com.google.cloud" + + ".asset.v1p7beta1B\021AssetServiceProtoP\001ZAg" + + "oogle.golang.org/genproto/googleapis/clo" + + "ud/asset/v1p7beta1;asset\252\002\034Google.Cloud." + + "Asset.V1P7Beta1\312\002\034Google\\Cloud\\Asset\\V1p" + + "7beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.asset.v1p7beta1.AssetProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_descriptor, + new java.lang.String[] { + "Parent", + "ReadTime", + "AssetTypes", + "ContentType", + "OutputConfig", + "RelationshipTypes", + }); + internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor, + new java.lang.String[] { + "ReadTime", "OutputConfig", "OutputResult", + }); + internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_asset_v1p7beta1_OutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor, + new java.lang.String[] { + "GcsDestination", "BigqueryDestination", "Destination", + }); + internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_asset_v1p7beta1_OutputResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor, + new java.lang.String[] { + "GcsResult", "Result", + }); + internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor, + new java.lang.String[] { + "Uris", + }); + internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_asset_v1p7beta1_GcsDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor, + new java.lang.String[] { + "Uri", "UriPrefix", "ObjectUri", + }); + internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor, + new java.lang.String[] { + "Dataset", "Table", "Force", "PartitionSpec", "SeparateTablesPerAssetType", + }); + internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor, + new java.lang.String[] { + "PartitionKey", + }); + 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.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.asset.v1p7beta1.AssetProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestination.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestination.java similarity index 81% rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestination.java rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestination.java index f9d2dbb62a96..e4e0cb57d661 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestination.java +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestination.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; /** + * + * *
      * A BigQuery destination for exporting assets to.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.BigQueryDestination} */ -public final class BigQueryDestination extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BigQueryDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.BigQueryDestination) BigQueryDestinationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BigQueryDestination.newBuilder() to construct. private BigQueryDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BigQueryDestination() { dataset_ = ""; table_ = ""; @@ -26,32 +44,35 @@ private BigQueryDestination() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BigQueryDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.BigQueryDestination.class, com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder.class); + com.google.cloud.asset.v1p7beta1.BigQueryDestination.class, + com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder.class); } public static final int DATASET_FIELD_NUMBER = 1; private volatile java.lang.Object dataset_; /** + * + * *
        * Required. The BigQuery dataset in format
        * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -60,6 +81,7 @@ protected java.lang.Object newInstance(
        * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The dataset. */ @java.lang.Override @@ -68,14 +90,15 @@ public java.lang.String getDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; } } /** + * + * *
        * Required. The BigQuery dataset in format
        * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -84,16 +107,15 @@ public java.lang.String getDataset() {
        * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for dataset. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatasetBytes() { + public com.google.protobuf.ByteString getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataset_ = b; return b; } else { @@ -104,6 +126,8 @@ public java.lang.String getDataset() { public static final int TABLE_FIELD_NUMBER = 2; private volatile java.lang.Object table_; /** + * + * *
        * Required. The BigQuery table to which the snapshot result should be
        * written. If this table does not exist, a new table with the given name
    @@ -111,6 +135,7 @@ public java.lang.String getDataset() {
        * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The table. */ @java.lang.Override @@ -119,14 +144,15 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** + * + * *
        * Required. The BigQuery table to which the snapshot result should be
        * written. If this table does not exist, a new table with the given name
    @@ -134,16 +160,15 @@ public java.lang.String getTable() {
        * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString - getTableBytes() { + public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); table_ = b; return b; } else { @@ -154,6 +179,8 @@ public java.lang.String getTable() { public static final int FORCE_FIELD_NUMBER = 3; private boolean force_; /** + * + * *
        * If the destination table already exists and this flag is `TRUE`, the
        * table will be overwritten by the contents of assets snapshot. If the flag
    @@ -162,6 +189,7 @@ public java.lang.String getTable() {
        * 
    * * bool force = 3; + * * @return The force. */ @java.lang.Override @@ -172,6 +200,8 @@ public boolean getForce() { public static final int PARTITION_SPEC_FIELD_NUMBER = 4; private com.google.cloud.asset.v1p7beta1.PartitionSpec partitionSpec_; /** + * + * *
        * [partition_spec] determines whether to export to partitioned table(s) and
        * how to partition the data.
    @@ -191,6 +221,7 @@ public boolean getForce() {
        * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec partition_spec = 4; + * * @return Whether the partitionSpec field is set. */ @java.lang.Override @@ -198,6 +229,8 @@ public boolean hasPartitionSpec() { return partitionSpec_ != null; } /** + * + * *
        * [partition_spec] determines whether to export to partitioned table(s) and
        * how to partition the data.
    @@ -217,13 +250,18 @@ public boolean hasPartitionSpec() {
        * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec partition_spec = 4; + * * @return The partitionSpec. */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.PartitionSpec getPartitionSpec() { - return partitionSpec_ == null ? com.google.cloud.asset.v1p7beta1.PartitionSpec.getDefaultInstance() : partitionSpec_; + return partitionSpec_ == null + ? com.google.cloud.asset.v1p7beta1.PartitionSpec.getDefaultInstance() + : partitionSpec_; } /** + * + * *
        * [partition_spec] determines whether to export to partitioned table(s) and
        * how to partition the data.
    @@ -252,6 +290,8 @@ public com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder getPartitionSpecO
       public static final int SEPARATE_TABLES_PER_ASSET_TYPE_FIELD_NUMBER = 5;
       private boolean separateTablesPerAssetType_;
       /**
    +   *
    +   *
        * 
        * If this flag is `TRUE`, the snapshot results will be written to one or
        * multiple tables, each of which contains results of one asset type. The
    @@ -280,6 +320,7 @@ public com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder getPartitionSpecO
        * 
    * * bool separate_tables_per_asset_type = 5; + * * @return The separateTablesPerAssetType. */ @java.lang.Override @@ -288,6 +329,7 @@ public boolean getSeparateTablesPerAssetType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -299,8 +341,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); } @@ -332,16 +373,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, table_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); } if (partitionSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getPartitionSpec()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPartitionSpec()); } if (separateTablesPerAssetType_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, separateTablesPerAssetType_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, separateTablesPerAssetType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -351,26 +389,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p7beta1.BigQueryDestination)) { return super.equals(obj); } - com.google.cloud.asset.v1p7beta1.BigQueryDestination other = (com.google.cloud.asset.v1p7beta1.BigQueryDestination) obj; + com.google.cloud.asset.v1p7beta1.BigQueryDestination other = + (com.google.cloud.asset.v1p7beta1.BigQueryDestination) obj; - if (!getDataset() - .equals(other.getDataset())) return false; - if (!getTable() - .equals(other.getTable())) return false; - if (getForce() - != other.getForce()) return false; + if (!getDataset().equals(other.getDataset())) return false; + if (!getTable().equals(other.getTable())) return false; + if (getForce() != other.getForce()) return false; if (hasPartitionSpec() != other.hasPartitionSpec()) return false; if (hasPartitionSpec()) { - if (!getPartitionSpec() - .equals(other.getPartitionSpec())) return false; + if (!getPartitionSpec().equals(other.getPartitionSpec())) return false; } - if (getSeparateTablesPerAssetType() - != other.getSeparateTablesPerAssetType()) return false; + if (getSeparateTablesPerAssetType() != other.getSeparateTablesPerAssetType()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -387,144 +421,148 @@ public int hashCode() { hash = (37 * hash) + TABLE_FIELD_NUMBER; hash = (53 * hash) + getTable().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); if (hasPartitionSpec()) { hash = (37 * hash) + PARTITION_SPEC_FIELD_NUMBER; hash = (53 * hash) + getPartitionSpec().hashCode(); } hash = (37 * hash) + SEPARATE_TABLES_PER_ASSET_TYPE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSeparateTablesPerAssetType()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSeparateTablesPerAssetType()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.asset.v1p7beta1.BigQueryDestination parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.BigQueryDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.BigQueryDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.BigQueryDestination 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.asset.v1p7beta1.BigQueryDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.BigQueryDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.BigQueryDestination parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p7beta1.BigQueryDestination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.BigQueryDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.BigQueryDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p7beta1.BigQueryDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.BigQueryDestination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.BigQueryDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.BigQueryDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.BigQueryDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * A BigQuery destination for exporting assets to.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.BigQueryDestination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.BigQueryDestination) com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.BigQueryDestination.class, com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder.class); + com.google.cloud.asset.v1p7beta1.BigQueryDestination.class, + com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder.class); } // Construct using com.google.cloud.asset.v1p7beta1.BigQueryDestination.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -546,9 +584,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor; } @java.lang.Override @@ -567,7 +605,8 @@ public com.google.cloud.asset.v1p7beta1.BigQueryDestination build() { @java.lang.Override public com.google.cloud.asset.v1p7beta1.BigQueryDestination buildPartial() { - com.google.cloud.asset.v1p7beta1.BigQueryDestination result = new com.google.cloud.asset.v1p7beta1.BigQueryDestination(this); + com.google.cloud.asset.v1p7beta1.BigQueryDestination result = + new com.google.cloud.asset.v1p7beta1.BigQueryDestination(this); result.dataset_ = dataset_; result.table_ = table_; result.force_ = force_; @@ -585,38 +624,39 @@ public com.google.cloud.asset.v1p7beta1.BigQueryDestination buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p7beta1.BigQueryDestination) { - return mergeFrom((com.google.cloud.asset.v1p7beta1.BigQueryDestination)other); + return mergeFrom((com.google.cloud.asset.v1p7beta1.BigQueryDestination) other); } else { super.mergeFrom(other); return this; @@ -624,7 +664,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.BigQueryDestination other) { - if (other == com.google.cloud.asset.v1p7beta1.BigQueryDestination.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1p7beta1.BigQueryDestination.getDefaultInstance()) + return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; onChanged(); @@ -668,39 +709,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - dataset_ = input.readStringRequireUtf8(); + case 10: + { + dataset_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - table_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + table_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 24: { - force_ = input.readBool(); + break; + } // case 18 + case 24: + { + force_ = input.readBool(); - break; - } // case 24 - case 34: { - input.readMessage( - getPartitionSpecFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 24 + case 34: + { + input.readMessage(getPartitionSpecFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 34 - case 40: { - separateTablesPerAssetType_ = input.readBool(); + break; + } // case 34 + case 40: + { + separateTablesPerAssetType_ = input.readBool(); - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -713,6 +758,8 @@ public Builder mergeFrom( private java.lang.Object dataset_ = ""; /** + * + * *
          * Required. The BigQuery dataset in format
          * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -721,13 +768,13 @@ public Builder mergeFrom(
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The dataset. */ public java.lang.String getDataset() { java.lang.Object ref = dataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; @@ -736,6 +783,8 @@ public java.lang.String getDataset() { } } /** + * + * *
          * Required. The BigQuery dataset in format
          * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -744,15 +793,14 @@ public java.lang.String getDataset() {
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for dataset. */ - public com.google.protobuf.ByteString - getDatasetBytes() { + public com.google.protobuf.ByteString getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataset_ = b; return b; } else { @@ -760,6 +808,8 @@ public java.lang.String getDataset() { } } /** + * + * *
          * Required. The BigQuery dataset in format
          * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -768,20 +818,22 @@ public java.lang.String getDataset() {
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The dataset to set. * @return This builder for chaining. */ - public Builder setDataset( - java.lang.String value) { + public Builder setDataset(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataset_ = value; onChanged(); return this; } /** + * + * *
          * Required. The BigQuery dataset in format
          * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -790,15 +842,18 @@ public Builder setDataset(
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDataset() { - + dataset_ = getDefaultInstance().getDataset(); onChanged(); return this; } /** + * + * *
          * Required. The BigQuery dataset in format
          * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -807,16 +862,16 @@ public Builder clearDataset() {
          * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for dataset to set. * @return This builder for chaining. */ - public Builder setDatasetBytes( - com.google.protobuf.ByteString value) { + public Builder setDatasetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; onChanged(); return this; @@ -824,6 +879,8 @@ public Builder setDatasetBytes( private java.lang.Object table_ = ""; /** + * + * *
          * Required. The BigQuery table to which the snapshot result should be
          * written. If this table does not exist, a new table with the given name
    @@ -831,13 +888,13 @@ public Builder setDatasetBytes(
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -846,6 +903,8 @@ public java.lang.String getTable() { } } /** + * + * *
          * Required. The BigQuery table to which the snapshot result should be
          * written. If this table does not exist, a new table with the given name
    @@ -853,15 +912,14 @@ public java.lang.String getTable() {
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for table. */ - public com.google.protobuf.ByteString - getTableBytes() { + public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); table_ = b; return b; } else { @@ -869,6 +927,8 @@ public java.lang.String getTable() { } } /** + * + * *
          * Required. The BigQuery table to which the snapshot result should be
          * written. If this table does not exist, a new table with the given name
    @@ -876,20 +936,22 @@ public java.lang.String getTable() {
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable( - java.lang.String value) { + public Builder setTable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + table_ = value; onChanged(); return this; } /** + * + * *
          * Required. The BigQuery table to which the snapshot result should be
          * written. If this table does not exist, a new table with the given name
    @@ -897,15 +959,18 @@ public Builder setTable(
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTable() { - + table_ = getDefaultInstance().getTable(); onChanged(); return this; } /** + * + * *
          * Required. The BigQuery table to which the snapshot result should be
          * written. If this table does not exist, a new table with the given name
    @@ -913,23 +978,25 @@ public Builder clearTable() {
          * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for table to set. * @return This builder for chaining. */ - public Builder setTableBytes( - com.google.protobuf.ByteString value) { + public Builder setTableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + table_ = value; onChanged(); return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
          * If the destination table already exists and this flag is `TRUE`, the
          * table will be overwritten by the contents of assets snapshot. If the flag
    @@ -938,6 +1005,7 @@ public Builder setTableBytes(
          * 
    * * bool force = 3; + * * @return The force. */ @java.lang.Override @@ -945,6 +1013,8 @@ public boolean getForce() { return force_; } /** + * + * *
          * If the destination table already exists and this flag is `TRUE`, the
          * table will be overwritten by the contents of assets snapshot. If the flag
    @@ -953,16 +1023,19 @@ public boolean getForce() {
          * 
    * * bool force = 3; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** + * + * *
          * If the destination table already exists and this flag is `TRUE`, the
          * table will be overwritten by the contents of assets snapshot. If the flag
    @@ -971,10 +1044,11 @@ public Builder setForce(boolean value) {
          * 
    * * bool force = 3; + * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; @@ -982,8 +1056,13 @@ public Builder clearForce() { private com.google.cloud.asset.v1p7beta1.PartitionSpec partitionSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.PartitionSpec, com.google.cloud.asset.v1p7beta1.PartitionSpec.Builder, com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder> partitionSpecBuilder_; + com.google.cloud.asset.v1p7beta1.PartitionSpec, + com.google.cloud.asset.v1p7beta1.PartitionSpec.Builder, + com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder> + partitionSpecBuilder_; /** + * + * *
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1003,12 +1082,15 @@ public Builder clearForce() {
          * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec partition_spec = 4; + * * @return Whether the partitionSpec field is set. */ public boolean hasPartitionSpec() { return partitionSpecBuilder_ != null || partitionSpec_ != null; } /** + * + * *
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1028,16 +1110,21 @@ public boolean hasPartitionSpec() {
          * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec partition_spec = 4; + * * @return The partitionSpec. */ public com.google.cloud.asset.v1p7beta1.PartitionSpec getPartitionSpec() { if (partitionSpecBuilder_ == null) { - return partitionSpec_ == null ? com.google.cloud.asset.v1p7beta1.PartitionSpec.getDefaultInstance() : partitionSpec_; + return partitionSpec_ == null + ? com.google.cloud.asset.v1p7beta1.PartitionSpec.getDefaultInstance() + : partitionSpec_; } else { return partitionSpecBuilder_.getMessage(); } } /** + * + * *
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1072,6 +1159,8 @@ public Builder setPartitionSpec(com.google.cloud.asset.v1p7beta1.PartitionSpec v
           return this;
         }
         /**
    +     *
    +     *
          * 
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1104,6 +1193,8 @@ public Builder setPartitionSpec(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1128,7 +1219,9 @@ public Builder mergePartitionSpec(com.google.cloud.asset.v1p7beta1.PartitionSpec
           if (partitionSpecBuilder_ == null) {
             if (partitionSpec_ != null) {
               partitionSpec_ =
    -            com.google.cloud.asset.v1p7beta1.PartitionSpec.newBuilder(partitionSpec_).mergeFrom(value).buildPartial();
    +              com.google.cloud.asset.v1p7beta1.PartitionSpec.newBuilder(partitionSpec_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               partitionSpec_ = value;
             }
    @@ -1140,6 +1233,8 @@ public Builder mergePartitionSpec(com.google.cloud.asset.v1p7beta1.PartitionSpec
           return this;
         }
         /**
    +     *
    +     *
          * 
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1172,6 +1267,8 @@ public Builder clearPartitionSpec() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1193,11 +1290,13 @@ public Builder clearPartitionSpec() {
          * .google.cloud.asset.v1p7beta1.PartitionSpec partition_spec = 4;
          */
         public com.google.cloud.asset.v1p7beta1.PartitionSpec.Builder getPartitionSpecBuilder() {
    -      
    +
           onChanged();
           return getPartitionSpecFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1222,11 +1321,14 @@ public com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder getPartitionSpecO
           if (partitionSpecBuilder_ != null) {
             return partitionSpecBuilder_.getMessageOrBuilder();
           } else {
    -        return partitionSpec_ == null ?
    -            com.google.cloud.asset.v1p7beta1.PartitionSpec.getDefaultInstance() : partitionSpec_;
    +        return partitionSpec_ == null
    +            ? com.google.cloud.asset.v1p7beta1.PartitionSpec.getDefaultInstance()
    +            : partitionSpec_;
           }
         }
         /**
    +     *
    +     *
          * 
          * [partition_spec] determines whether to export to partitioned table(s) and
          * how to partition the data.
    @@ -1248,21 +1350,26 @@ public com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder getPartitionSpecO
          * .google.cloud.asset.v1p7beta1.PartitionSpec partition_spec = 4;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1p7beta1.PartitionSpec, com.google.cloud.asset.v1p7beta1.PartitionSpec.Builder, com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder> 
    +            com.google.cloud.asset.v1p7beta1.PartitionSpec,
    +            com.google.cloud.asset.v1p7beta1.PartitionSpec.Builder,
    +            com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder>
             getPartitionSpecFieldBuilder() {
           if (partitionSpecBuilder_ == null) {
    -        partitionSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1p7beta1.PartitionSpec, com.google.cloud.asset.v1p7beta1.PartitionSpec.Builder, com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder>(
    -                getPartitionSpec(),
    -                getParentForChildren(),
    -                isClean());
    +        partitionSpecBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.cloud.asset.v1p7beta1.PartitionSpec,
    +                com.google.cloud.asset.v1p7beta1.PartitionSpec.Builder,
    +                com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder>(
    +                getPartitionSpec(), getParentForChildren(), isClean());
             partitionSpec_ = null;
           }
           return partitionSpecBuilder_;
         }
     
    -    private boolean separateTablesPerAssetType_ ;
    +    private boolean separateTablesPerAssetType_;
         /**
    +     *
    +     *
          * 
          * If this flag is `TRUE`, the snapshot results will be written to one or
          * multiple tables, each of which contains results of one asset type. The
    @@ -1291,6 +1398,7 @@ public com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder getPartitionSpecO
          * 
    * * bool separate_tables_per_asset_type = 5; + * * @return The separateTablesPerAssetType. */ @java.lang.Override @@ -1298,6 +1406,8 @@ public boolean getSeparateTablesPerAssetType() { return separateTablesPerAssetType_; } /** + * + * *
          * If this flag is `TRUE`, the snapshot results will be written to one or
          * multiple tables, each of which contains results of one asset type. The
    @@ -1326,16 +1436,19 @@ public boolean getSeparateTablesPerAssetType() {
          * 
    * * bool separate_tables_per_asset_type = 5; + * * @param value The separateTablesPerAssetType to set. * @return This builder for chaining. */ public Builder setSeparateTablesPerAssetType(boolean value) { - + separateTablesPerAssetType_ = value; onChanged(); return this; } /** + * + * *
          * If this flag is `TRUE`, the snapshot results will be written to one or
          * multiple tables, each of which contains results of one asset type. The
    @@ -1364,17 +1477,18 @@ public Builder setSeparateTablesPerAssetType(boolean value) {
          * 
    * * bool separate_tables_per_asset_type = 5; + * * @return This builder for chaining. */ public Builder clearSeparateTablesPerAssetType() { - + separateTablesPerAssetType_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1384,12 +1498,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.BigQueryDestination) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.BigQueryDestination) private static final com.google.cloud.asset.v1p7beta1.BigQueryDestination DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.BigQueryDestination(); } @@ -1398,27 +1512,27 @@ public static com.google.cloud.asset.v1p7beta1.BigQueryDestination getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1433,6 +1547,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p7beta1.BigQueryDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestinationOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestinationOrBuilder.java similarity index 89% rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestinationOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestinationOrBuilder.java index 40da134d5f87..f388d517d2fa 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestinationOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/BigQueryDestinationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; -public interface BigQueryDestinationOrBuilder extends +public interface BigQueryDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.BigQueryDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The BigQuery dataset in format
        * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -16,10 +34,13 @@ public interface BigQueryDestinationOrBuilder extends
        * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The dataset. */ java.lang.String getDataset(); /** + * + * *
        * Required. The BigQuery dataset in format
        * "projects/projectId/datasets/datasetId", to which the snapshot result
    @@ -28,12 +49,14 @@ public interface BigQueryDestinationOrBuilder extends
        * 
    * * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for dataset. */ - com.google.protobuf.ByteString - getDatasetBytes(); + com.google.protobuf.ByteString getDatasetBytes(); /** + * + * *
        * Required. The BigQuery table to which the snapshot result should be
        * written. If this table does not exist, a new table with the given name
    @@ -41,10 +64,13 @@ public interface BigQueryDestinationOrBuilder extends
        * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The table. */ java.lang.String getTable(); /** + * + * *
        * Required. The BigQuery table to which the snapshot result should be
        * written. If this table does not exist, a new table with the given name
    @@ -52,12 +78,14 @@ public interface BigQueryDestinationOrBuilder extends
        * 
    * * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for table. */ - com.google.protobuf.ByteString - getTableBytes(); + com.google.protobuf.ByteString getTableBytes(); /** + * + * *
        * If the destination table already exists and this flag is `TRUE`, the
        * table will be overwritten by the contents of assets snapshot. If the flag
    @@ -66,11 +94,14 @@ public interface BigQueryDestinationOrBuilder extends
        * 
    * * bool force = 3; + * * @return The force. */ boolean getForce(); /** + * + * *
        * [partition_spec] determines whether to export to partitioned table(s) and
        * how to partition the data.
    @@ -90,10 +121,13 @@ public interface BigQueryDestinationOrBuilder extends
        * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec partition_spec = 4; + * * @return Whether the partitionSpec field is set. */ boolean hasPartitionSpec(); /** + * + * *
        * [partition_spec] determines whether to export to partitioned table(s) and
        * how to partition the data.
    @@ -113,10 +147,13 @@ public interface BigQueryDestinationOrBuilder extends
        * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec partition_spec = 4; + * * @return The partitionSpec. */ com.google.cloud.asset.v1p7beta1.PartitionSpec getPartitionSpec(); /** + * + * *
        * [partition_spec] determines whether to export to partitioned table(s) and
        * how to partition the data.
    @@ -140,6 +177,8 @@ public interface BigQueryDestinationOrBuilder extends
       com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder getPartitionSpecOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * If this flag is `TRUE`, the snapshot results will be written to one or
        * multiple tables, each of which contains results of one asset type. The
    @@ -168,6 +207,7 @@ public interface BigQueryDestinationOrBuilder extends
        * 
    * * bool separate_tables_per_asset_type = 5; + * * @return The separateTablesPerAssetType. */ boolean getSeparateTablesPerAssetType(); diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ContentType.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ContentType.java similarity index 70% rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ContentType.java rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ContentType.java index b093c4e6ef27..d69eb003013f 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ContentType.java +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ContentType.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; /** + * + * *
      * Asset content type.
      * 
    * * Protobuf enum {@code google.cloud.asset.v1p7beta1.ContentType} */ -public enum ContentType - implements com.google.protobuf.ProtocolMessageEnum { +public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unspecified content type.
        * 
    @@ -21,6 +39,8 @@ public enum ContentType */ CONTENT_TYPE_UNSPECIFIED(0), /** + * + * *
        * Resource metadata.
        * 
    @@ -29,6 +49,8 @@ public enum ContentType */ RESOURCE(1), /** + * + * *
        * The actual IAM policy set on a resource.
        * 
    @@ -37,6 +59,8 @@ public enum ContentType */ IAM_POLICY(2), /** + * + * *
        * The Cloud Organization Policy set on an asset.
        * 
    @@ -45,6 +69,8 @@ public enum ContentType */ ORG_POLICY(4), /** + * + * *
        * The Cloud Access context manager Policy set on an asset.
        * 
    @@ -53,6 +79,8 @@ public enum ContentType */ ACCESS_POLICY(5), /** + * + * *
        * The related resources.
        * 
    @@ -64,6 +92,8 @@ public enum ContentType ; /** + * + * *
        * Unspecified content type.
        * 
    @@ -72,6 +102,8 @@ public enum ContentType */ public static final int CONTENT_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Resource metadata.
        * 
    @@ -80,6 +112,8 @@ public enum ContentType */ public static final int RESOURCE_VALUE = 1; /** + * + * *
        * The actual IAM policy set on a resource.
        * 
    @@ -88,6 +122,8 @@ public enum ContentType */ public static final int IAM_POLICY_VALUE = 2; /** + * + * *
        * The Cloud Organization Policy set on an asset.
        * 
    @@ -96,6 +132,8 @@ public enum ContentType */ public static final int ORG_POLICY_VALUE = 4; /** + * + * *
        * The Cloud Access context manager Policy set on an asset.
        * 
    @@ -104,6 +142,8 @@ public enum ContentType */ public static final int ACCESS_POLICY_VALUE = 5; /** + * + * *
        * The related resources.
        * 
    @@ -112,7 +152,6 @@ public enum ContentType */ public static final int RELATIONSHIP_VALUE = 7; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -137,52 +176,55 @@ public static ContentType valueOf(int value) { */ public static ContentType forNumber(int value) { switch (value) { - case 0: return CONTENT_TYPE_UNSPECIFIED; - case 1: return RESOURCE; - case 2: return IAM_POLICY; - case 4: return ORG_POLICY; - case 5: return ACCESS_POLICY; - case 7: return RELATIONSHIP; - default: return null; + case 0: + return CONTENT_TYPE_UNSPECIFIED; + case 1: + return RESOURCE; + case 2: + return IAM_POLICY; + case 4: + return ORG_POLICY; + case 5: + return ACCESS_POLICY; + case 7: + return RELATIONSHIP; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ContentType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ContentType findValueByNumber(int number) { - return ContentType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ContentType findValueByNumber(int number) { + return ContentType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.asset.v1p7beta1.AssetServiceProto.getDescriptor().getEnumTypes().get(0); } private static final ContentType[] VALUES = values(); - public static ContentType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ContentType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -198,4 +240,3 @@ private ContentType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.asset.v1p7beta1.ContentType) } - diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequest.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequest.java similarity index 78% rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequest.java rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequest.java index 454d7c586765..3ad35b195227 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequest.java +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; /** + * + * *
      * Export asset request.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.ExportAssetsRequest} */ -public final class ExportAssetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ExportAssetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.ExportAssetsRequest) ExportAssetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExportAssetsRequest.newBuilder() to construct. private ExportAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ExportAssetsRequest() { parent_ = ""; assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -28,32 +46,35 @@ private ExportAssetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExportAssetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.class, com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.Builder.class); + com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.class, + com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
        * Required. The relative name of the root asset. This can only be an
        * organization number (such as "organizations/123"), a project ID (such as
    @@ -61,7 +82,10 @@ protected java.lang.Object newInstance(
        * or a folder number (such as "folders/123").
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -70,14 +94,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
        * Required. The relative name of the root asset. This can only be an
        * organization number (such as "organizations/123"), a project ID (such as
    @@ -85,17 +110,18 @@ public java.lang.String getParent() {
        * or a folder number (such as "folders/123").
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -106,6 +132,8 @@ public java.lang.String getParent() { public static final int READ_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp readTime_; /** + * + * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -115,6 +143,7 @@ public java.lang.String getParent() {
        * 
    * * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -122,6 +151,8 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -131,6 +162,7 @@ public boolean hasReadTime() {
        * 
    * * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ @java.lang.Override @@ -138,6 +170,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -156,6 +190,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       public static final int ASSET_TYPES_FIELD_NUMBER = 3;
       private com.google.protobuf.LazyStringList assetTypes_;
       /**
    +   *
    +   *
        * 
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -174,13 +210,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
        * 
    * * repeated string asset_types = 3; + * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList - getAssetTypesList() { + public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_; } /** + * + * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -199,12 +237,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
        * 
    * * repeated string asset_types = 3; + * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** + * + * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -223,6 +264,7 @@ public int getAssetTypesCount() {
        * 
    * * repeated string asset_types = 3; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -230,6 +272,8 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** + * + * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -248,52 +292,66 @@ public java.lang.String getAssetTypes(int index) {
        * 
    * * repeated string asset_types = 3; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString - getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } public static final int CONTENT_TYPE_FIELD_NUMBER = 4; private int contentType_; /** + * + * *
        * Asset content type. If not specified, no content but the asset name will be
        * returned.
        * 
    * * .google.cloud.asset.v1p7beta1.ContentType content_type = 4; + * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override public int getContentTypeValue() { + @java.lang.Override + public int getContentTypeValue() { return contentType_; } /** + * + * *
        * Asset content type. If not specified, no content but the asset name will be
        * returned.
        * 
    * * .google.cloud.asset.v1p7beta1.ContentType content_type = 4; + * * @return The contentType. */ - @java.lang.Override public com.google.cloud.asset.v1p7beta1.ContentType getContentType() { + @java.lang.Override + public com.google.cloud.asset.v1p7beta1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1p7beta1.ContentType result = com.google.cloud.asset.v1p7beta1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1p7beta1.ContentType result = + com.google.cloud.asset.v1p7beta1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1p7beta1.ContentType.UNRECOGNIZED : result; } public static final int OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.asset.v1p7beta1.OutputConfig outputConfig_; /** + * + * *
        * Required. Output configuration indicating where the results will be output
        * to.
        * 
    * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -301,25 +359,36 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
        * Required. Output configuration indicating where the results will be output
        * to.
        * 
    * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
        * Required. Output configuration indicating where the results will be output
        * to.
        * 
    * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -329,6 +398,8 @@ public com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrB public static final int RELATIONSHIP_TYPES_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList relationshipTypes_; /** + * + * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -343,13 +414,15 @@ public com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrB
        * 
    * * repeated string relationship_types = 6; + * * @return A list containing the relationshipTypes. */ - public com.google.protobuf.ProtocolStringList - getRelationshipTypesList() { + public com.google.protobuf.ProtocolStringList getRelationshipTypesList() { return relationshipTypes_; } /** + * + * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -364,12 +437,15 @@ public com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrB
        * 
    * * repeated string relationship_types = 6; + * * @return The count of relationshipTypes. */ public int getRelationshipTypesCount() { return relationshipTypes_.size(); } /** + * + * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -384,6 +460,7 @@ public int getRelationshipTypesCount() {
        * 
    * * repeated string relationship_types = 6; + * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -391,6 +468,8 @@ public java.lang.String getRelationshipTypes(int index) { return relationshipTypes_.get(index); } /** + * + * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -405,15 +484,16 @@ public java.lang.String getRelationshipTypes(int index) {
        * 
    * * repeated string relationship_types = 6; + * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - public com.google.protobuf.ByteString - getRelationshipTypesBytes(int index) { + public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) { return relationshipTypes_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -425,8 +505,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -436,7 +515,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < assetTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, assetTypes_.getRaw(i)); } - if (contentType_ != com.google.cloud.asset.v1p7beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + if (contentType_ + != com.google.cloud.asset.v1p7beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(4, contentType_); } if (outputConfig_ != null) { @@ -458,8 +538,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); } { int dataSize = 0; @@ -469,13 +548,12 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAssetTypesList().size(); } - if (contentType_ != com.google.cloud.asset.v1p7beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, contentType_); + if (contentType_ + != com.google.cloud.asset.v1p7beta1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, contentType_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputConfig()); } { int dataSize = 0; @@ -493,30 +571,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p7beta1.ExportAssetsRequest)) { return super.equals(obj); } - com.google.cloud.asset.v1p7beta1.ExportAssetsRequest other = (com.google.cloud.asset.v1p7beta1.ExportAssetsRequest) obj; + com.google.cloud.asset.v1p7beta1.ExportAssetsRequest other = + (com.google.cloud.asset.v1p7beta1.ExportAssetsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } - if (!getAssetTypesList() - .equals(other.getAssetTypesList())) return false; + if (!getAssetTypesList().equals(other.getAssetTypesList())) return false; if (contentType_ != other.contentType_) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } - if (!getRelationshipTypesList() - .equals(other.getRelationshipTypesList())) return false; + if (!getRelationshipTypesList().equals(other.getRelationshipTypesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -554,129 +628,135 @@ public int hashCode() { } public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest 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.asset.v1p7beta1.ExportAssetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.ExportAssetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Export asset request.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.ExportAssetsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.ExportAssetsRequest) com.google.cloud.asset.v1p7beta1.ExportAssetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.class, com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.Builder.class); + com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.class, + com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.Builder.class); } // Construct using com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -704,9 +784,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_descriptor; } @java.lang.Override @@ -725,7 +805,8 @@ public com.google.cloud.asset.v1p7beta1.ExportAssetsRequest build() { @java.lang.Override public com.google.cloud.asset.v1p7beta1.ExportAssetsRequest buildPartial() { - com.google.cloud.asset.v1p7beta1.ExportAssetsRequest result = new com.google.cloud.asset.v1p7beta1.ExportAssetsRequest(this); + com.google.cloud.asset.v1p7beta1.ExportAssetsRequest result = + new com.google.cloud.asset.v1p7beta1.ExportAssetsRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (readTimeBuilder_ == null) { @@ -757,38 +838,39 @@ public com.google.cloud.asset.v1p7beta1.ExportAssetsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p7beta1.ExportAssetsRequest) { - return mergeFrom((com.google.cloud.asset.v1p7beta1.ExportAssetsRequest)other); + return mergeFrom((com.google.cloud.asset.v1p7beta1.ExportAssetsRequest) other); } else { super.mergeFrom(other); return this; @@ -796,7 +878,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.ExportAssetsRequest other) { - if (other == com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1p7beta1.ExportAssetsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -856,48 +939,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getReadTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAssetTypesIsMutable(); - assetTypes_.add(s); - break; - } // case 26 - case 32: { - contentType_ = input.readEnum(); - - break; - } // case 32 - case 42: { - input.readMessage( - getOutputConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - ensureRelationshipTypesIsMutable(); - relationshipTypes_.add(s); - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getReadTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAssetTypesIsMutable(); + assetTypes_.add(s); + break; + } // case 26 + case 32: + { + contentType_ = input.readEnum(); + + break; + } // case 32 + case 42: + { + input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRelationshipTypesIsMutable(); + relationshipTypes_.add(s); + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -907,10 +993,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -918,14 +1007,16 @@ public Builder mergeFrom(
          * or a folder number (such as "folders/123").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -934,6 +1025,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -941,16 +1034,17 @@ public java.lang.String getParent() {
          * or a folder number (such as "folders/123").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -958,6 +1052,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -965,21 +1061,25 @@ public java.lang.String getParent() {
          * or a folder number (such as "folders/123").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -987,16 +1087,21 @@ public Builder setParent(
          * or a folder number (such as "folders/123").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
          * Required. The relative name of the root asset. This can only be an
          * organization number (such as "organizations/123"), a project ID (such as
    @@ -1004,17 +1109,19 @@ public Builder clearParent() {
          * or a folder number (such as "folders/123").
          * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1022,8 +1129,13 @@ public Builder setParentBytes( private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1033,12 +1145,15 @@ public Builder setParentBytes(
          * 
    * * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1048,6 +1163,7 @@ public boolean hasReadTime() {
          * 
    * * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1058,6 +1174,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1082,6 +1200,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1092,8 +1212,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
          *
          * .google.protobuf.Timestamp read_time = 2;
          */
    -    public Builder setReadTime(
    -        com.google.protobuf.Timestamp.Builder builderForValue) {
    +    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
           if (readTimeBuilder_ == null) {
             readTime_ = builderForValue.build();
             onChanged();
    @@ -1104,6 +1223,8 @@ public Builder setReadTime(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1118,7 +1239,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
           if (readTimeBuilder_ == null) {
             if (readTime_ != null) {
               readTime_ =
    -            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
    +              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
             } else {
               readTime_ = value;
             }
    @@ -1130,6 +1251,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1152,6 +1275,8 @@ public Builder clearReadTime() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1163,11 +1288,13 @@ public Builder clearReadTime() {
          * .google.protobuf.Timestamp read_time = 2;
          */
         public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
    -      
    +
           onChanged();
           return getReadTimeFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1182,11 +1309,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
           if (readTimeBuilder_ != null) {
             return readTimeBuilder_.getMessageOrBuilder();
           } else {
    -        return readTime_ == null ?
    -            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
    +        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
           }
         }
         /**
    +     *
    +     *
          * 
          * Timestamp to take an asset snapshot. This can only be set to a timestamp
          * between the current time and the current time minus 35 days (inclusive).
    @@ -1198,27 +1326,34 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
          * .google.protobuf.Timestamp read_time = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
    +            com.google.protobuf.Timestamp,
    +            com.google.protobuf.Timestamp.Builder,
    +            com.google.protobuf.TimestampOrBuilder>
             getReadTimeFieldBuilder() {
           if (readTimeBuilder_ == null) {
    -        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    -                getReadTime(),
    -                getParentForChildren(),
    -                isClean());
    +        readTimeBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.Timestamp,
    +                com.google.protobuf.Timestamp.Builder,
    +                com.google.protobuf.TimestampOrBuilder>(
    +                getReadTime(), getParentForChildren(), isClean());
             readTime_ = null;
           }
           return readTimeBuilder_;
         }
     
    -    private com.google.protobuf.LazyStringList assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    +    private com.google.protobuf.LazyStringList assetTypes_ =
    +        com.google.protobuf.LazyStringArrayList.EMPTY;
    +
         private void ensureAssetTypesIsMutable() {
           if (!((bitField0_ & 0x00000001) != 0)) {
             assetTypes_ = new com.google.protobuf.LazyStringArrayList(assetTypes_);
             bitField0_ |= 0x00000001;
    -       }
    +      }
         }
         /**
    +     *
    +     *
          * 
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1237,13 +1372,15 @@ private void ensureAssetTypesIsMutable() {
          * 
    * * repeated string asset_types = 3; + * * @return A list containing the assetTypes. */ - public com.google.protobuf.ProtocolStringList - getAssetTypesList() { + public com.google.protobuf.ProtocolStringList getAssetTypesList() { return assetTypes_.getUnmodifiableView(); } /** + * + * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1262,12 +1399,15 @@ private void ensureAssetTypesIsMutable() {
          * 
    * * repeated string asset_types = 3; + * * @return The count of assetTypes. */ public int getAssetTypesCount() { return assetTypes_.size(); } /** + * + * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1286,6 +1426,7 @@ public int getAssetTypesCount() {
          * 
    * * repeated string asset_types = 3; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -1293,6 +1434,8 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** + * + * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1311,14 +1454,16 @@ public java.lang.String getAssetTypes(int index) {
          * 
    * * repeated string asset_types = 3; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - public com.google.protobuf.ByteString - getAssetTypesBytes(int index) { + public com.google.protobuf.ByteString getAssetTypesBytes(int index) { return assetTypes_.getByteString(index); } /** + * + * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1337,21 +1482,23 @@ public java.lang.String getAssetTypes(int index) {
          * 
    * * repeated string asset_types = 3; + * * @param index The index to set the value at. * @param value The assetTypes to set. * @return This builder for chaining. */ - public Builder setAssetTypes( - int index, java.lang.String value) { + public Builder setAssetTypes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.set(index, value); onChanged(); return this; } /** + * + * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1370,20 +1517,22 @@ public Builder setAssetTypes(
          * 
    * * repeated string asset_types = 3; + * * @param value The assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypes( - java.lang.String value) { + public Builder addAssetTypes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssetTypesIsMutable(); + throw new NullPointerException(); + } + ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); return this; } /** + * + * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1402,18 +1551,19 @@ public Builder addAssetTypes(
          * 
    * * repeated string asset_types = 3; + * * @param values The assetTypes to add. * @return This builder for chaining. */ - public Builder addAllAssetTypes( - java.lang.Iterable values) { + public Builder addAllAssetTypes(java.lang.Iterable values) { ensureAssetTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, assetTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetTypes_); onChanged(); return this; } /** + * + * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1432,6 +1582,7 @@ public Builder addAllAssetTypes(
          * 
    * * repeated string asset_types = 3; + * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1441,6 +1592,8 @@ public Builder clearAssetTypes() { return this; } /** + * + * *
          * A list of asset types to take a snapshot for. For example:
          * "compute.googleapis.com/Disk".
    @@ -1459,15 +1612,15 @@ public Builder clearAssetTypes() {
          * 
    * * repeated string asset_types = 3; + * * @param value The bytes of the assetTypes to add. * @return This builder for chaining. */ - public Builder addAssetTypesBytes( - com.google.protobuf.ByteString value) { + public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssetTypesIsMutable(); assetTypes_.add(value); onChanged(); @@ -1476,55 +1629,69 @@ public Builder addAssetTypesBytes( private int contentType_ = 0; /** + * + * *
          * Asset content type. If not specified, no content but the asset name will be
          * returned.
          * 
    * * .google.cloud.asset.v1p7beta1.ContentType content_type = 4; + * * @return The enum numeric value on the wire for contentType. */ - @java.lang.Override public int getContentTypeValue() { + @java.lang.Override + public int getContentTypeValue() { return contentType_; } /** + * + * *
          * Asset content type. If not specified, no content but the asset name will be
          * returned.
          * 
    * * .google.cloud.asset.v1p7beta1.ContentType content_type = 4; + * * @param value The enum numeric value on the wire for contentType to set. * @return This builder for chaining. */ public Builder setContentTypeValue(int value) { - + contentType_ = value; onChanged(); return this; } /** + * + * *
          * Asset content type. If not specified, no content but the asset name will be
          * returned.
          * 
    * * .google.cloud.asset.v1p7beta1.ContentType content_type = 4; + * * @return The contentType. */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.ContentType getContentType() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1p7beta1.ContentType result = com.google.cloud.asset.v1p7beta1.ContentType.valueOf(contentType_); + com.google.cloud.asset.v1p7beta1.ContentType result = + com.google.cloud.asset.v1p7beta1.ContentType.valueOf(contentType_); return result == null ? com.google.cloud.asset.v1p7beta1.ContentType.UNRECOGNIZED : result; } /** + * + * *
          * Asset content type. If not specified, no content but the asset name will be
          * returned.
          * 
    * * .google.cloud.asset.v1p7beta1.ContentType content_type = 4; + * * @param value The contentType to set. * @return This builder for chaining. */ @@ -1532,22 +1699,25 @@ public Builder setContentType(com.google.cloud.asset.v1p7beta1.ContentType value if (value == null) { throw new NullPointerException(); } - + contentType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
          * Asset content type. If not specified, no content but the asset name will be
          * returned.
          * 
    * * .google.cloud.asset.v1p7beta1.ContentType content_type = 4; + * * @return This builder for chaining. */ public Builder clearContentType() { - + contentType_ = 0; onChanged(); return this; @@ -1555,42 +1725,61 @@ public Builder clearContentType() { private com.google.cloud.asset.v1p7beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.OutputConfig, com.google.cloud.asset.v1p7beta1.OutputConfig.Builder, com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.asset.v1p7beta1.OutputConfig, + com.google.cloud.asset.v1p7beta1.OutputConfig.Builder, + com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
          * Required. Output configuration indicating where the results will be output
          * to.
          * 
    * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
          * Required. Output configuration indicating where the results will be output
          * to.
          * 
    * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.asset.v1p7beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
          * Required. Output configuration indicating where the results will be output
          * to.
          * 
    * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig(com.google.cloud.asset.v1p7beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1606,12 +1795,16 @@ public Builder setOutputConfig(com.google.cloud.asset.v1p7beta1.OutputConfig val return this; } /** + * + * *
          * Required. Output configuration indicating where the results will be output
          * to.
          * 
    * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.asset.v1p7beta1.OutputConfig.Builder builderForValue) { @@ -1625,18 +1818,24 @@ public Builder setOutputConfig( return this; } /** + * + * *
          * Required. Output configuration indicating where the results will be output
          * to.
          * 
    * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeOutputConfig(com.google.cloud.asset.v1p7beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.asset.v1p7beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1p7beta1.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1648,12 +1847,16 @@ public Builder mergeOutputConfig(com.google.cloud.asset.v1p7beta1.OutputConfig v return this; } /** + * + * *
          * Required. Output configuration indicating where the results will be output
          * to.
          * 
    * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1667,64 +1870,84 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
          * Required. Output configuration indicating where the results will be output
          * to.
          * 
    * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.asset.v1p7beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
          * Required. Output configuration indicating where the results will be output
          * to.
          * 
    * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
          * Required. Output configuration indicating where the results will be output
          * to.
          * 
    * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.OutputConfig, com.google.cloud.asset.v1p7beta1.OutputConfig.Builder, com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder> + com.google.cloud.asset.v1p7beta1.OutputConfig, + com.google.cloud.asset.v1p7beta1.OutputConfig.Builder, + com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.OutputConfig, com.google.cloud.asset.v1p7beta1.OutputConfig.Builder, com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p7beta1.OutputConfig, + com.google.cloud.asset.v1p7beta1.OutputConfig.Builder, + com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - private com.google.protobuf.LazyStringList relationshipTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList relationshipTypes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRelationshipTypesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { relationshipTypes_ = new com.google.protobuf.LazyStringArrayList(relationshipTypes_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1739,13 +1962,15 @@ private void ensureRelationshipTypesIsMutable() {
          * 
    * * repeated string relationship_types = 6; + * * @return A list containing the relationshipTypes. */ - public com.google.protobuf.ProtocolStringList - getRelationshipTypesList() { + public com.google.protobuf.ProtocolStringList getRelationshipTypesList() { return relationshipTypes_.getUnmodifiableView(); } /** + * + * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1760,12 +1985,15 @@ private void ensureRelationshipTypesIsMutable() {
          * 
    * * repeated string relationship_types = 6; + * * @return The count of relationshipTypes. */ public int getRelationshipTypesCount() { return relationshipTypes_.size(); } /** + * + * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1780,6 +2008,7 @@ public int getRelationshipTypesCount() {
          * 
    * * repeated string relationship_types = 6; + * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -1787,6 +2016,8 @@ public java.lang.String getRelationshipTypes(int index) { return relationshipTypes_.get(index); } /** + * + * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1801,14 +2032,16 @@ public java.lang.String getRelationshipTypes(int index) {
          * 
    * * repeated string relationship_types = 6; + * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - public com.google.protobuf.ByteString - getRelationshipTypesBytes(int index) { + public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) { return relationshipTypes_.getByteString(index); } /** + * + * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1823,21 +2056,23 @@ public java.lang.String getRelationshipTypes(int index) {
          * 
    * * repeated string relationship_types = 6; + * * @param index The index to set the value at. * @param value The relationshipTypes to set. * @return This builder for chaining. */ - public Builder setRelationshipTypes( - int index, java.lang.String value) { + public Builder setRelationshipTypes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRelationshipTypesIsMutable(); + throw new NullPointerException(); + } + ensureRelationshipTypesIsMutable(); relationshipTypes_.set(index, value); onChanged(); return this; } /** + * + * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1852,20 +2087,22 @@ public Builder setRelationshipTypes(
          * 
    * * repeated string relationship_types = 6; + * * @param value The relationshipTypes to add. * @return This builder for chaining. */ - public Builder addRelationshipTypes( - java.lang.String value) { + public Builder addRelationshipTypes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRelationshipTypesIsMutable(); + throw new NullPointerException(); + } + ensureRelationshipTypesIsMutable(); relationshipTypes_.add(value); onChanged(); return this; } /** + * + * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1880,18 +2117,19 @@ public Builder addRelationshipTypes(
          * 
    * * repeated string relationship_types = 6; + * * @param values The relationshipTypes to add. * @return This builder for chaining. */ - public Builder addAllRelationshipTypes( - java.lang.Iterable values) { + public Builder addAllRelationshipTypes(java.lang.Iterable values) { ensureRelationshipTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, relationshipTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relationshipTypes_); onChanged(); return this; } /** + * + * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1906,6 +2144,7 @@ public Builder addAllRelationshipTypes(
          * 
    * * repeated string relationship_types = 6; + * * @return This builder for chaining. */ public Builder clearRelationshipTypes() { @@ -1915,6 +2154,8 @@ public Builder clearRelationshipTypes() { return this; } /** + * + * *
          * A list of relationship types to export, for example:
          * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -1929,23 +2170,23 @@ public Builder clearRelationshipTypes() {
          * 
    * * repeated string relationship_types = 6; + * * @param value The bytes of the relationshipTypes to add. * @return This builder for chaining. */ - public Builder addRelationshipTypesBytes( - com.google.protobuf.ByteString value) { + public Builder addRelationshipTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureRelationshipTypesIsMutable(); relationshipTypes_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1955,12 +2196,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.ExportAssetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.ExportAssetsRequest) private static final com.google.cloud.asset.v1p7beta1.ExportAssetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.ExportAssetsRequest(); } @@ -1969,27 +2210,27 @@ public static com.google.cloud.asset.v1p7beta1.ExportAssetsRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportAssetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2004,6 +2245,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p7beta1.ExportAssetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequestOrBuilder.java similarity index 86% rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequestOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequestOrBuilder.java index 068316c46c0b..909201e7a98f 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; -public interface ExportAssetsRequestOrBuilder extends +public interface ExportAssetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.ExportAssetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The relative name of the root asset. This can only be an
        * organization number (such as "organizations/123"), a project ID (such as
    @@ -15,11 +33,16 @@ public interface ExportAssetsRequestOrBuilder extends
        * or a folder number (such as "folders/123").
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
        * Required. The relative name of the root asset. This can only be an
        * organization number (such as "organizations/123"), a project ID (such as
    @@ -27,13 +50,17 @@ public interface ExportAssetsRequestOrBuilder extends
        * or a folder number (such as "folders/123").
        * 
    * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -43,10 +70,13 @@ public interface ExportAssetsRequestOrBuilder extends
        * 
    * * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -56,10 +86,13 @@ public interface ExportAssetsRequestOrBuilder extends
        * 
    * * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
        * Timestamp to take an asset snapshot. This can only be set to a timestamp
        * between the current time and the current time minus 35 days (inclusive).
    @@ -73,6 +106,8 @@ public interface ExportAssetsRequestOrBuilder extends
       com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -91,11 +126,13 @@ public interface ExportAssetsRequestOrBuilder extends
        * 
    * * repeated string asset_types = 3; + * * @return A list containing the assetTypes. */ - java.util.List - getAssetTypesList(); + java.util.List getAssetTypesList(); /** + * + * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -114,10 +151,13 @@ public interface ExportAssetsRequestOrBuilder extends
        * 
    * * repeated string asset_types = 3; + * * @return The count of assetTypes. */ int getAssetTypesCount(); /** + * + * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -136,11 +176,14 @@ public interface ExportAssetsRequestOrBuilder extends
        * 
    * * repeated string asset_types = 3; + * * @param index The index of the element to return. * @return The assetTypes at the given index. */ java.lang.String getAssetTypes(int index); /** + * + * *
        * A list of asset types to take a snapshot for. For example:
        * "compute.googleapis.com/Disk".
    @@ -159,64 +202,86 @@ public interface ExportAssetsRequestOrBuilder extends
        * 
    * * repeated string asset_types = 3; + * * @param index The index of the value to return. * @return The bytes of the assetTypes at the given index. */ - com.google.protobuf.ByteString - getAssetTypesBytes(int index); + com.google.protobuf.ByteString getAssetTypesBytes(int index); /** + * + * *
        * Asset content type. If not specified, no content but the asset name will be
        * returned.
        * 
    * * .google.cloud.asset.v1p7beta1.ContentType content_type = 4; + * * @return The enum numeric value on the wire for contentType. */ int getContentTypeValue(); /** + * + * *
        * Asset content type. If not specified, no content but the asset name will be
        * returned.
        * 
    * * .google.cloud.asset.v1p7beta1.ContentType content_type = 4; + * * @return The contentType. */ com.google.cloud.asset.v1p7beta1.ContentType getContentType(); /** + * + * *
        * Required. Output configuration indicating where the results will be output
        * to.
        * 
    * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
        * Required. Output configuration indicating where the results will be output
        * to.
        * 
    * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ com.google.cloud.asset.v1p7beta1.OutputConfig getOutputConfig(); /** + * + * *
        * Required. Output configuration indicating where the results will be output
        * to.
        * 
    * - * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** + * + * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -231,11 +296,13 @@ public interface ExportAssetsRequestOrBuilder extends
        * 
    * * repeated string relationship_types = 6; + * * @return A list containing the relationshipTypes. */ - java.util.List - getRelationshipTypesList(); + java.util.List getRelationshipTypesList(); /** + * + * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -250,10 +317,13 @@ public interface ExportAssetsRequestOrBuilder extends
        * 
    * * repeated string relationship_types = 6; + * * @return The count of relationshipTypes. */ int getRelationshipTypesCount(); /** + * + * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -268,11 +338,14 @@ public interface ExportAssetsRequestOrBuilder extends
        * 
    * * repeated string relationship_types = 6; + * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ java.lang.String getRelationshipTypes(int index); /** + * + * *
        * A list of relationship types to export, for example:
        * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
    @@ -287,9 +360,9 @@ public interface ExportAssetsRequestOrBuilder extends
        * 
    * * repeated string relationship_types = 6; + * * @param index The index of the value to return. * @return The bytes of the relationshipTypes at the given index. */ - com.google.protobuf.ByteString - getRelationshipTypesBytes(int index); + com.google.protobuf.ByteString getRelationshipTypesBytes(int index); } diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponse.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponse.java similarity index 73% rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponse.java rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponse.java index ac3bc4d6a5ce..b7d844e3802f 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponse.java +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; /** + * + * *
      * The export asset response. This message is returned by the
      * [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation]
    @@ -14,51 +31,55 @@
      *
      * Protobuf type {@code google.cloud.asset.v1p7beta1.ExportAssetsResponse}
      */
    -public final class ExportAssetsResponse extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class ExportAssetsResponse extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.ExportAssetsResponse)
         ExportAssetsResponseOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use ExportAssetsResponse.newBuilder() to construct.
       private ExportAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -  private ExportAssetsResponse() {
    -  }
    +
    +  private ExportAssetsResponse() {}
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(
    -      UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new ExportAssetsResponse();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.cloud.asset.v1p7beta1.AssetServiceProto
    +        .internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_fieldAccessorTable
    +    return com.google.cloud.asset.v1p7beta1.AssetServiceProto
    +        .internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1p7beta1.ExportAssetsResponse.class, com.google.cloud.asset.v1p7beta1.ExportAssetsResponse.Builder.class);
    +            com.google.cloud.asset.v1p7beta1.ExportAssetsResponse.class,
    +            com.google.cloud.asset.v1p7beta1.ExportAssetsResponse.Builder.class);
       }
     
       public static final int READ_TIME_FIELD_NUMBER = 1;
       private com.google.protobuf.Timestamp readTime_;
       /**
    +   *
    +   *
        * 
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -66,11 +87,14 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; + * * @return The readTime. */ @java.lang.Override @@ -78,6 +102,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
        * Time the snapshot was taken.
        * 
    @@ -92,11 +118,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.asset.v1p7beta1.OutputConfig outputConfig_; /** + * + * *
        * Output configuration indicating where the results were output to.
        * 
    * * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 2; + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -104,18 +133,25 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
        * Output configuration indicating where the results were output to.
        * 
    * * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 2; + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
        * Output configuration indicating where the results were output to.
        * 
    @@ -130,6 +166,8 @@ public com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrB public static final int OUTPUT_RESULT_FIELD_NUMBER = 3; private com.google.cloud.asset.v1p7beta1.OutputResult outputResult_; /** + * + * *
        * Output result indicating where the assets were exported to. For example, a
        * set of actual Google Cloud Storage object uris where the assets are
    @@ -139,6 +177,7 @@ public com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrB
        * 
    * * .google.cloud.asset.v1p7beta1.OutputResult output_result = 3; + * * @return Whether the outputResult field is set. */ @java.lang.Override @@ -146,6 +185,8 @@ public boolean hasOutputResult() { return outputResult_ != null; } /** + * + * *
        * Output result indicating where the assets were exported to. For example, a
        * set of actual Google Cloud Storage object uris where the assets are
    @@ -155,13 +196,18 @@ public boolean hasOutputResult() {
        * 
    * * .google.cloud.asset.v1p7beta1.OutputResult output_result = 3; + * * @return The outputResult. */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.OutputResult getOutputResult() { - return outputResult_ == null ? com.google.cloud.asset.v1p7beta1.OutputResult.getDefaultInstance() : outputResult_; + return outputResult_ == null + ? com.google.cloud.asset.v1p7beta1.OutputResult.getDefaultInstance() + : outputResult_; } /** + * + * *
        * Output result indicating where the assets were exported to. For example, a
        * set of actual Google Cloud Storage object uris where the assets are
    @@ -178,6 +224,7 @@ public com.google.cloud.asset.v1p7beta1.OutputResultOrBuilder getOutputResultOrB
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -189,8 +236,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (readTime_ != null) {
           output.writeMessage(1, getReadTime());
         }
    @@ -210,16 +256,13 @@ public int getSerializedSize() {
     
         size = 0;
         if (readTime_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(1, getReadTime());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReadTime());
         }
         if (outputConfig_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(2, getOutputConfig());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputConfig());
         }
         if (outputResult_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(3, getOutputResult());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputResult());
         }
         size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
    @@ -229,27 +272,25 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1p7beta1.ExportAssetsResponse)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1p7beta1.ExportAssetsResponse other = (com.google.cloud.asset.v1p7beta1.ExportAssetsResponse) obj;
    +    com.google.cloud.asset.v1p7beta1.ExportAssetsResponse other =
    +        (com.google.cloud.asset.v1p7beta1.ExportAssetsResponse) obj;
     
         if (hasReadTime() != other.hasReadTime()) return false;
         if (hasReadTime()) {
    -      if (!getReadTime()
    -          .equals(other.getReadTime())) return false;
    +      if (!getReadTime().equals(other.getReadTime())) return false;
         }
         if (hasOutputConfig() != other.hasOutputConfig()) return false;
         if (hasOutputConfig()) {
    -      if (!getOutputConfig()
    -          .equals(other.getOutputConfig())) return false;
    +      if (!getOutputConfig().equals(other.getOutputConfig())) return false;
         }
         if (hasOutputResult() != other.hasOutputResult()) return false;
         if (hasOutputResult()) {
    -      if (!getOutputResult()
    -          .equals(other.getOutputResult())) return false;
    +      if (!getOutputResult().equals(other.getOutputResult())) return false;
         }
         if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
    @@ -280,96 +321,104 @@ public int hashCode() {
       }
     
       public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parseFrom(
    -      java.nio.ByteBuffer data)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    +      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse 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.asset.v1p7beta1.ExportAssetsResponse parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -  public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parseFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +
    +  public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parseFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    -  public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.ExportAssetsResponse prototype) {
    +
    +  public static Builder newBuilder(
    +      com.google.cloud.asset.v1p7beta1.ExportAssetsResponse prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * The export asset response. This message is returned by the
        * [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation]
    @@ -380,33 +429,32 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.asset.v1p7beta1.ExportAssetsResponse}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.ExportAssetsResponse)
           com.google.cloud.asset.v1p7beta1.ExportAssetsResponseOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1p7beta1.AssetServiceProto
    +          .internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_fieldAccessorTable
    +      return com.google.cloud.asset.v1p7beta1.AssetServiceProto
    +          .internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1p7beta1.ExportAssetsResponse.class, com.google.cloud.asset.v1p7beta1.ExportAssetsResponse.Builder.class);
    +              com.google.cloud.asset.v1p7beta1.ExportAssetsResponse.class,
    +              com.google.cloud.asset.v1p7beta1.ExportAssetsResponse.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1p7beta1.ExportAssetsResponse.newBuilder()
    -    private Builder() {
    -
    -    }
    +    private Builder() {}
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -432,9 +480,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.cloud.asset.v1p7beta1.AssetServiceProto
    +          .internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor;
         }
     
         @java.lang.Override
    @@ -453,7 +501,8 @@ public com.google.cloud.asset.v1p7beta1.ExportAssetsResponse build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1p7beta1.ExportAssetsResponse buildPartial() {
    -      com.google.cloud.asset.v1p7beta1.ExportAssetsResponse result = new com.google.cloud.asset.v1p7beta1.ExportAssetsResponse(this);
    +      com.google.cloud.asset.v1p7beta1.ExportAssetsResponse result =
    +          new com.google.cloud.asset.v1p7beta1.ExportAssetsResponse(this);
           if (readTimeBuilder_ == null) {
             result.readTime_ = readTime_;
           } else {
    @@ -477,38 +526,39 @@ public com.google.cloud.asset.v1p7beta1.ExportAssetsResponse buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1p7beta1.ExportAssetsResponse) {
    -        return mergeFrom((com.google.cloud.asset.v1p7beta1.ExportAssetsResponse)other);
    +        return mergeFrom((com.google.cloud.asset.v1p7beta1.ExportAssetsResponse) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -516,7 +566,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
         }
     
         public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.ExportAssetsResponse other) {
    -      if (other == com.google.cloud.asset.v1p7beta1.ExportAssetsResponse.getDefaultInstance()) return this;
    +      if (other == com.google.cloud.asset.v1p7beta1.ExportAssetsResponse.getDefaultInstance())
    +        return this;
           if (other.hasReadTime()) {
             mergeReadTime(other.getReadTime());
           }
    @@ -552,33 +603,31 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
    -            case 10: {
    -              input.readMessage(
    -                  getReadTimeFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    +            case 10:
    +              {
    +                input.readMessage(getReadTimeFieldBuilder().getBuilder(), extensionRegistry);
     
    -              break;
    -            } // case 10
    -            case 18: {
    -              input.readMessage(
    -                  getOutputConfigFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
     
    -              break;
    -            } // case 18
    -            case 26: {
    -              input.readMessage(
    -                  getOutputResultFieldBuilder().getBuilder(),
    -                  extensionRegistry);
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                input.readMessage(getOutputResultFieldBuilder().getBuilder(), extensionRegistry);
     
    -              break;
    -            } // case 26
    -            default: {
    -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                done = true; // was an endgroup tag
    -              }
    -              break;
    -            } // default:
    +                break;
    +              } // case 26
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -591,24 +640,33 @@ public Builder mergeFrom(
     
         private com.google.protobuf.Timestamp readTime_;
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_;
    +            com.google.protobuf.Timestamp,
    +            com.google.protobuf.Timestamp.Builder,
    +            com.google.protobuf.TimestampOrBuilder>
    +        readTimeBuilder_;
         /**
    +     *
    +     *
          * 
          * Time the snapshot was taken.
          * 
    * * .google.protobuf.Timestamp read_time = 1; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
          * Time the snapshot was taken.
          * 
    * * .google.protobuf.Timestamp read_time = 1; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -619,6 +677,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
          * Time the snapshot was taken.
          * 
    @@ -639,14 +699,15 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * Time the snapshot was taken.
          * 
    * * .google.protobuf.Timestamp read_time = 1; */ - public Builder setReadTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -657,6 +718,8 @@ public Builder setReadTime( return this; } /** + * + * *
          * Time the snapshot was taken.
          * 
    @@ -667,7 +730,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -679,6 +742,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
          * Time the snapshot was taken.
          * 
    @@ -697,6 +762,8 @@ public Builder clearReadTime() { return this; } /** + * + * *
          * Time the snapshot was taken.
          * 
    @@ -704,11 +771,13 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 1; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** + * + * *
          * Time the snapshot was taken.
          * 
    @@ -719,11 +788,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** + * + * *
          * Time the snapshot was taken.
          * 
    @@ -731,14 +801,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getReadTime(), - getParentForChildren(), - isClean()); + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); readTime_ = null; } return readTimeBuilder_; @@ -746,34 +819,47 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private com.google.cloud.asset.v1p7beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.OutputConfig, com.google.cloud.asset.v1p7beta1.OutputConfig.Builder, com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.asset.v1p7beta1.OutputConfig, + com.google.cloud.asset.v1p7beta1.OutputConfig.Builder, + com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
          * Output configuration indicating where the results were output to.
          * 
    * * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 2; + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
          * Output configuration indicating where the results were output to.
          * 
    * * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 2; + * * @return The outputConfig. */ public com.google.cloud.asset.v1p7beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -794,6 +880,8 @@ public Builder setOutputConfig(com.google.cloud.asset.v1p7beta1.OutputConfig val return this; } /** + * + * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -812,6 +900,8 @@ public Builder setOutputConfig( return this; } /** + * + * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -822,7 +912,9 @@ public Builder mergeOutputConfig(com.google.cloud.asset.v1p7beta1.OutputConfig v if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.asset.v1p7beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1p7beta1.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -834,6 +926,8 @@ public Builder mergeOutputConfig(com.google.cloud.asset.v1p7beta1.OutputConfig v return this; } /** + * + * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -852,6 +946,8 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -859,11 +955,13 @@ public Builder clearOutputConfig() { * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 2; */ public com.google.cloud.asset.v1p7beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -874,11 +972,14 @@ public com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrB if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
          * Output configuration indicating where the results were output to.
          * 
    @@ -886,14 +987,17 @@ public com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrB * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.OutputConfig, com.google.cloud.asset.v1p7beta1.OutputConfig.Builder, com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder> + com.google.cloud.asset.v1p7beta1.OutputConfig, + com.google.cloud.asset.v1p7beta1.OutputConfig.Builder, + com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.OutputConfig, com.google.cloud.asset.v1p7beta1.OutputConfig.Builder, com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p7beta1.OutputConfig, + com.google.cloud.asset.v1p7beta1.OutputConfig.Builder, + com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; @@ -901,8 +1005,13 @@ public com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrB private com.google.cloud.asset.v1p7beta1.OutputResult outputResult_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.OutputResult, com.google.cloud.asset.v1p7beta1.OutputResult.Builder, com.google.cloud.asset.v1p7beta1.OutputResultOrBuilder> outputResultBuilder_; + com.google.cloud.asset.v1p7beta1.OutputResult, + com.google.cloud.asset.v1p7beta1.OutputResult.Builder, + com.google.cloud.asset.v1p7beta1.OutputResultOrBuilder> + outputResultBuilder_; /** + * + * *
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -912,12 +1021,15 @@ public com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrB
          * 
    * * .google.cloud.asset.v1p7beta1.OutputResult output_result = 3; + * * @return Whether the outputResult field is set. */ public boolean hasOutputResult() { return outputResultBuilder_ != null || outputResult_ != null; } /** + * + * *
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -927,16 +1039,21 @@ public boolean hasOutputResult() {
          * 
    * * .google.cloud.asset.v1p7beta1.OutputResult output_result = 3; + * * @return The outputResult. */ public com.google.cloud.asset.v1p7beta1.OutputResult getOutputResult() { if (outputResultBuilder_ == null) { - return outputResult_ == null ? com.google.cloud.asset.v1p7beta1.OutputResult.getDefaultInstance() : outputResult_; + return outputResult_ == null + ? com.google.cloud.asset.v1p7beta1.OutputResult.getDefaultInstance() + : outputResult_; } else { return outputResultBuilder_.getMessage(); } } /** + * + * *
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -961,6 +1078,8 @@ public Builder setOutputResult(com.google.cloud.asset.v1p7beta1.OutputResult val
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -983,6 +1102,8 @@ public Builder setOutputResult(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -997,7 +1118,9 @@ public Builder mergeOutputResult(com.google.cloud.asset.v1p7beta1.OutputResult v
           if (outputResultBuilder_ == null) {
             if (outputResult_ != null) {
               outputResult_ =
    -            com.google.cloud.asset.v1p7beta1.OutputResult.newBuilder(outputResult_).mergeFrom(value).buildPartial();
    +              com.google.cloud.asset.v1p7beta1.OutputResult.newBuilder(outputResult_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               outputResult_ = value;
             }
    @@ -1009,6 +1132,8 @@ public Builder mergeOutputResult(com.google.cloud.asset.v1p7beta1.OutputResult v
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1031,6 +1156,8 @@ public Builder clearOutputResult() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1042,11 +1169,13 @@ public Builder clearOutputResult() {
          * .google.cloud.asset.v1p7beta1.OutputResult output_result = 3;
          */
         public com.google.cloud.asset.v1p7beta1.OutputResult.Builder getOutputResultBuilder() {
    -      
    +
           onChanged();
           return getOutputResultFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1061,11 +1190,14 @@ public com.google.cloud.asset.v1p7beta1.OutputResultOrBuilder getOutputResultOrB
           if (outputResultBuilder_ != null) {
             return outputResultBuilder_.getMessageOrBuilder();
           } else {
    -        return outputResult_ == null ?
    -            com.google.cloud.asset.v1p7beta1.OutputResult.getDefaultInstance() : outputResult_;
    +        return outputResult_ == null
    +            ? com.google.cloud.asset.v1p7beta1.OutputResult.getDefaultInstance()
    +            : outputResult_;
           }
         }
         /**
    +     *
    +     *
          * 
          * Output result indicating where the assets were exported to. For example, a
          * set of actual Google Cloud Storage object uris where the assets are
    @@ -1077,21 +1209,24 @@ public com.google.cloud.asset.v1p7beta1.OutputResultOrBuilder getOutputResultOrB
          * .google.cloud.asset.v1p7beta1.OutputResult output_result = 3;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1p7beta1.OutputResult, com.google.cloud.asset.v1p7beta1.OutputResult.Builder, com.google.cloud.asset.v1p7beta1.OutputResultOrBuilder> 
    +            com.google.cloud.asset.v1p7beta1.OutputResult,
    +            com.google.cloud.asset.v1p7beta1.OutputResult.Builder,
    +            com.google.cloud.asset.v1p7beta1.OutputResultOrBuilder>
             getOutputResultFieldBuilder() {
           if (outputResultBuilder_ == null) {
    -        outputResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1p7beta1.OutputResult, com.google.cloud.asset.v1p7beta1.OutputResult.Builder, com.google.cloud.asset.v1p7beta1.OutputResultOrBuilder>(
    -                getOutputResult(),
    -                getParentForChildren(),
    -                isClean());
    +        outputResultBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.cloud.asset.v1p7beta1.OutputResult,
    +                com.google.cloud.asset.v1p7beta1.OutputResult.Builder,
    +                com.google.cloud.asset.v1p7beta1.OutputResultOrBuilder>(
    +                getOutputResult(), getParentForChildren(), isClean());
             outputResult_ = null;
           }
           return outputResultBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -1101,12 +1236,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.ExportAssetsResponse)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.ExportAssetsResponse)
       private static final com.google.cloud.asset.v1p7beta1.ExportAssetsResponse DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.ExportAssetsResponse();
       }
    @@ -1115,27 +1250,27 @@ public static com.google.cloud.asset.v1p7beta1.ExportAssetsResponse getDefaultIn
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public ExportAssetsResponse parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      Builder builder = newBuilder();
    -      try {
    -        builder.mergeFrom(input, extensionRegistry);
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(builder.buildPartial());
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    -            .setUnfinishedMessage(builder.buildPartial());
    -      }
    -      return builder.buildPartial();
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public ExportAssetsResponse parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1150,6 +1285,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1p7beta1.ExportAssetsResponse getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponseOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponseOrBuilder.java
    similarity index 81%
    rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponseOrBuilder.java
    rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponseOrBuilder.java
    index 17a006b72eef..cfd19940067f 100644
    --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponseOrBuilder.java
    +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ExportAssetsResponseOrBuilder.java
    @@ -1,31 +1,55 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1p7beta1/asset_service.proto
     
     package com.google.cloud.asset.v1p7beta1;
     
    -public interface ExportAssetsResponseOrBuilder extends
    +public interface ExportAssetsResponseOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.ExportAssetsResponse)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
        * Time the snapshot was taken.
        * 
    * * .google.protobuf.Timestamp read_time = 1; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
        * Time the snapshot was taken.
        * 
    @@ -35,24 +59,32 @@ public interface ExportAssetsResponseOrBuilder extends com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** + * + * *
        * Output configuration indicating where the results were output to.
        * 
    * * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 2; + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
        * Output configuration indicating where the results were output to.
        * 
    * * .google.cloud.asset.v1p7beta1.OutputConfig output_config = 2; + * * @return The outputConfig. */ com.google.cloud.asset.v1p7beta1.OutputConfig getOutputConfig(); /** + * + * *
        * Output configuration indicating where the results were output to.
        * 
    @@ -62,6 +94,8 @@ public interface ExportAssetsResponseOrBuilder extends com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** + * + * *
        * Output result indicating where the assets were exported to. For example, a
        * set of actual Google Cloud Storage object uris where the assets are
    @@ -71,10 +105,13 @@ public interface ExportAssetsResponseOrBuilder extends
        * 
    * * .google.cloud.asset.v1p7beta1.OutputResult output_result = 3; + * * @return Whether the outputResult field is set. */ boolean hasOutputResult(); /** + * + * *
        * Output result indicating where the assets were exported to. For example, a
        * set of actual Google Cloud Storage object uris where the assets are
    @@ -84,10 +121,13 @@ public interface ExportAssetsResponseOrBuilder extends
        * 
    * * .google.cloud.asset.v1p7beta1.OutputResult output_result = 3; + * * @return The outputResult. */ com.google.cloud.asset.v1p7beta1.OutputResult getOutputResult(); /** + * + * *
        * Output result indicating where the assets were exported to. For example, a
        * set of actual Google Cloud Storage object uris where the assets are
    diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestination.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestination.java
    similarity index 74%
    rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestination.java
    rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestination.java
    index 5b08661c13f1..90bf2d64b525 100644
    --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestination.java
    +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestination.java
    @@ -1,61 +1,82 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1p7beta1/asset_service.proto
     
     package com.google.cloud.asset.v1p7beta1;
     
     /**
    + *
    + *
      * 
      * A Cloud Storage location.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.GcsDestination} */ -public final class GcsDestination extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.GcsDestination) GcsDestinationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsDestination.newBuilder() to construct. private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsDestination() { - } + + private GcsDestination() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.GcsDestination.class, com.google.cloud.asset.v1p7beta1.GcsDestination.Builder.class); + com.google.cloud.asset.v1p7beta1.GcsDestination.class, + com.google.cloud.asset.v1p7beta1.GcsDestination.Builder.class); } private int objectUriCase_ = 0; private java.lang.Object objectUri_; + public enum ObjectUriCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { URI(1), URI_PREFIX(2), OBJECTURI_NOT_SET(0); private final int value; + private ObjectUriCase(int value) { this.value = value; } @@ -71,25 +92,30 @@ public static ObjectUriCase valueOf(int value) { public static ObjectUriCase forNumber(int value) { switch (value) { - case 1: return URI; - case 2: return URI_PREFIX; - case 0: return OBJECTURI_NOT_SET; - default: return null; + case 1: + return URI; + case 2: + return URI_PREFIX; + case 0: + return OBJECTURI_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ObjectUriCase - getObjectUriCase() { - return ObjectUriCase.forNumber( - objectUriCase_); + public ObjectUriCase getObjectUriCase() { + return ObjectUriCase.forNumber(objectUriCase_); } public static final int URI_FIELD_NUMBER = 1; /** + * + * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -99,12 +125,15 @@ public int getNumber() {
        * 
    * * string uri = 1; + * * @return Whether the uri field is set. */ public boolean hasUri() { return objectUriCase_ == 1; } /** + * + * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -114,6 +143,7 @@ public boolean hasUri() {
        * 
    * * string uri = 1; + * * @return The uri. */ public java.lang.String getUri() { @@ -124,8 +154,7 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (objectUriCase_ == 1) { objectUri_ = s; @@ -134,6 +163,8 @@ public java.lang.String getUri() { } } /** + * + * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -143,18 +174,17 @@ public java.lang.String getUri() {
        * 
    * * string uri = 1; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; if (objectUriCase_ == 1) { ref = objectUri_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (objectUriCase_ == 1) { objectUri_ = b; } @@ -166,6 +196,8 @@ public java.lang.String getUri() { public static final int URI_PREFIX_FIELD_NUMBER = 2; /** + * + * *
        * The uri prefix of all generated Cloud Storage objects. Example:
        * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -179,12 +211,15 @@ public java.lang.String getUri() {
        * 
    * * string uri_prefix = 2; + * * @return Whether the uriPrefix field is set. */ public boolean hasUriPrefix() { return objectUriCase_ == 2; } /** + * + * *
        * The uri prefix of all generated Cloud Storage objects. Example:
        * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -198,6 +233,7 @@ public boolean hasUriPrefix() {
        * 
    * * string uri_prefix = 2; + * * @return The uriPrefix. */ public java.lang.String getUriPrefix() { @@ -208,8 +244,7 @@ public java.lang.String getUriPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (objectUriCase_ == 2) { objectUri_ = s; @@ -218,6 +253,8 @@ public java.lang.String getUriPrefix() { } } /** + * + * *
        * The uri prefix of all generated Cloud Storage objects. Example:
        * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -231,18 +268,17 @@ public java.lang.String getUriPrefix() {
        * 
    * * string uri_prefix = 2; + * * @return The bytes for uriPrefix. */ - public com.google.protobuf.ByteString - getUriPrefixBytes() { + public com.google.protobuf.ByteString getUriPrefixBytes() { java.lang.Object ref = ""; if (objectUriCase_ == 2) { ref = objectUri_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (objectUriCase_ == 2) { objectUri_ = b; } @@ -253,6 +289,7 @@ public java.lang.String getUriPrefix() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,8 +301,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (objectUriCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, objectUri_); } @@ -295,22 +331,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p7beta1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.asset.v1p7beta1.GcsDestination other = (com.google.cloud.asset.v1p7beta1.GcsDestination) obj; + com.google.cloud.asset.v1p7beta1.GcsDestination other = + (com.google.cloud.asset.v1p7beta1.GcsDestination) obj; if (!getObjectUriCase().equals(other.getObjectUriCase())) return false; switch (objectUriCase_) { case 1: - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; break; case 2: - if (!getUriPrefix() - .equals(other.getUriPrefix())) return false; + if (!getUriPrefix().equals(other.getUriPrefix())) return false; break; case 0: default: @@ -343,130 +378,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1p7beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p7beta1.GcsDestination parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.GcsDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.GcsDestination 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.asset.v1p7beta1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.GcsDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.GcsDestination parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.GcsDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.GcsDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p7beta1.GcsDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.GcsDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.GcsDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.GcsDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * A Cloud Storage location.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.GcsDestination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.GcsDestination) com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_GcsDestination_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_GcsDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.GcsDestination.class, com.google.cloud.asset.v1p7beta1.GcsDestination.Builder.class); + com.google.cloud.asset.v1p7beta1.GcsDestination.class, + com.google.cloud.asset.v1p7beta1.GcsDestination.Builder.class); } // Construct using com.google.cloud.asset.v1p7beta1.GcsDestination.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -476,9 +517,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor; } @java.lang.Override @@ -497,7 +538,8 @@ public com.google.cloud.asset.v1p7beta1.GcsDestination build() { @java.lang.Override public com.google.cloud.asset.v1p7beta1.GcsDestination buildPartial() { - com.google.cloud.asset.v1p7beta1.GcsDestination result = new com.google.cloud.asset.v1p7beta1.GcsDestination(this); + com.google.cloud.asset.v1p7beta1.GcsDestination result = + new com.google.cloud.asset.v1p7beta1.GcsDestination(this); if (objectUriCase_ == 1) { result.objectUri_ = objectUri_; } @@ -513,38 +555,39 @@ public com.google.cloud.asset.v1p7beta1.GcsDestination buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p7beta1.GcsDestination) { - return mergeFrom((com.google.cloud.asset.v1p7beta1.GcsDestination)other); + return mergeFrom((com.google.cloud.asset.v1p7beta1.GcsDestination) other); } else { super.mergeFrom(other); return this; @@ -552,23 +595,27 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.GcsDestination other) { - if (other == com.google.cloud.asset.v1p7beta1.GcsDestination.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1p7beta1.GcsDestination.getDefaultInstance()) + return this; switch (other.getObjectUriCase()) { - case URI: { - objectUriCase_ = 1; - objectUri_ = other.objectUri_; - onChanged(); - break; - } - case URI_PREFIX: { - objectUriCase_ = 2; - objectUri_ = other.objectUri_; - onChanged(); - break; - } - case OBJECTURI_NOT_SET: { - break; - } + case URI: + { + objectUriCase_ = 1; + objectUri_ = other.objectUri_; + onChanged(); + break; + } + case URI_PREFIX: + { + objectUriCase_ = 2; + objectUri_ = other.objectUri_; + onChanged(); + break; + } + case OBJECTURI_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -596,24 +643,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - objectUriCase_ = 1; - objectUri_ = s; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - objectUriCase_ = 2; - objectUri_ = s; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + objectUriCase_ = 1; + objectUri_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + objectUriCase_ = 2; + objectUri_ = s; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -623,12 +673,12 @@ public Builder mergeFrom( } // finally return this; } + private int objectUriCase_ = 0; private java.lang.Object objectUri_; - public ObjectUriCase - getObjectUriCase() { - return ObjectUriCase.forNumber( - objectUriCase_); + + public ObjectUriCase getObjectUriCase() { + return ObjectUriCase.forNumber(objectUriCase_); } public Builder clearObjectUri() { @@ -638,8 +688,9 @@ public Builder clearObjectUri() { return this; } - /** + * + * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -649,6 +700,7 @@ public Builder clearObjectUri() {
          * 
    * * string uri = 1; + * * @return Whether the uri field is set. */ @java.lang.Override @@ -656,6 +708,8 @@ public boolean hasUri() { return objectUriCase_ == 1; } /** + * + * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -665,6 +719,7 @@ public boolean hasUri() {
          * 
    * * string uri = 1; + * * @return The uri. */ @java.lang.Override @@ -674,8 +729,7 @@ public java.lang.String getUri() { ref = objectUri_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (objectUriCase_ == 1) { objectUri_ = s; @@ -686,6 +740,8 @@ public java.lang.String getUri() { } } /** + * + * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -695,19 +751,18 @@ public java.lang.String getUri() {
          * 
    * * string uri = 1; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; if (objectUriCase_ == 1) { ref = objectUri_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (objectUriCase_ == 1) { objectUri_ = b; } @@ -717,6 +772,8 @@ public java.lang.String getUri() { } } /** + * + * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -726,20 +783,22 @@ public java.lang.String getUri() {
          * 
    * * string uri = 1; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - objectUriCase_ = 1; + throw new NullPointerException(); + } + objectUriCase_ = 1; objectUri_ = value; onChanged(); return this; } /** + * + * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -749,6 +808,7 @@ public Builder setUri(
          * 
    * * string uri = 1; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -760,6 +820,8 @@ public Builder clearUri() { return this; } /** + * + * *
          * The uri of the Cloud Storage object. It's the same uri that is used by
          * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -769,15 +831,15 @@ public Builder clearUri() {
          * 
    * * string uri = 1; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); objectUriCase_ = 1; objectUri_ = value; onChanged(); @@ -785,6 +847,8 @@ public Builder setUriBytes( } /** + * + * *
          * The uri prefix of all generated Cloud Storage objects. Example:
          * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -798,6 +862,7 @@ public Builder setUriBytes(
          * 
    * * string uri_prefix = 2; + * * @return Whether the uriPrefix field is set. */ @java.lang.Override @@ -805,6 +870,8 @@ public boolean hasUriPrefix() { return objectUriCase_ == 2; } /** + * + * *
          * The uri prefix of all generated Cloud Storage objects. Example:
          * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -818,6 +885,7 @@ public boolean hasUriPrefix() {
          * 
    * * string uri_prefix = 2; + * * @return The uriPrefix. */ @java.lang.Override @@ -827,8 +895,7 @@ public java.lang.String getUriPrefix() { ref = objectUri_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (objectUriCase_ == 2) { objectUri_ = s; @@ -839,6 +906,8 @@ public java.lang.String getUriPrefix() { } } /** + * + * *
          * The uri prefix of all generated Cloud Storage objects. Example:
          * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -852,19 +921,18 @@ public java.lang.String getUriPrefix() {
          * 
    * * string uri_prefix = 2; + * * @return The bytes for uriPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriPrefixBytes() { + public com.google.protobuf.ByteString getUriPrefixBytes() { java.lang.Object ref = ""; if (objectUriCase_ == 2) { ref = objectUri_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (objectUriCase_ == 2) { objectUri_ = b; } @@ -874,6 +942,8 @@ public java.lang.String getUriPrefix() { } } /** + * + * *
          * The uri prefix of all generated Cloud Storage objects. Example:
          * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -887,20 +957,22 @@ public java.lang.String getUriPrefix() {
          * 
    * * string uri_prefix = 2; + * * @param value The uriPrefix to set. * @return This builder for chaining. */ - public Builder setUriPrefix( - java.lang.String value) { + public Builder setUriPrefix(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - objectUriCase_ = 2; + throw new NullPointerException(); + } + objectUriCase_ = 2; objectUri_ = value; onChanged(); return this; } /** + * + * *
          * The uri prefix of all generated Cloud Storage objects. Example:
          * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -914,6 +986,7 @@ public Builder setUriPrefix(
          * 
    * * string uri_prefix = 2; + * * @return This builder for chaining. */ public Builder clearUriPrefix() { @@ -925,6 +998,8 @@ public Builder clearUriPrefix() { return this; } /** + * + * *
          * The uri prefix of all generated Cloud Storage objects. Example:
          * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -938,23 +1013,23 @@ public Builder clearUriPrefix() {
          * 
    * * string uri_prefix = 2; + * * @param value The bytes for uriPrefix to set. * @return This builder for chaining. */ - public Builder setUriPrefixBytes( - com.google.protobuf.ByteString value) { + public Builder setUriPrefixBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); objectUriCase_ = 2; objectUri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -964,12 +1039,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.GcsDestination) private static final com.google.cloud.asset.v1p7beta1.GcsDestination DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.GcsDestination(); } @@ -978,27 +1053,27 @@ public static com.google.cloud.asset.v1p7beta1.GcsDestination getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1013,6 +1088,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p7beta1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestinationOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestinationOrBuilder.java similarity index 82% rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestinationOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestinationOrBuilder.java index f9f91bc6a862..4196ea59b9f6 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestinationOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsDestinationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; -public interface GcsDestinationOrBuilder extends +public interface GcsDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -17,10 +35,13 @@ public interface GcsDestinationOrBuilder extends
        * 
    * * string uri = 1; + * * @return Whether the uri field is set. */ boolean hasUri(); /** + * + * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -30,10 +51,13 @@ public interface GcsDestinationOrBuilder extends
        * 
    * * string uri = 1; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
        * The uri of the Cloud Storage object. It's the same uri that is used by
        * gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
    @@ -43,12 +67,14 @@ public interface GcsDestinationOrBuilder extends
        * 
    * * string uri = 1; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
        * The uri prefix of all generated Cloud Storage objects. Example:
        * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -62,10 +88,13 @@ public interface GcsDestinationOrBuilder extends
        * 
    * * string uri_prefix = 2; + * * @return Whether the uriPrefix field is set. */ boolean hasUriPrefix(); /** + * + * *
        * The uri prefix of all generated Cloud Storage objects. Example:
        * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -79,10 +108,13 @@ public interface GcsDestinationOrBuilder extends
        * 
    * * string uri_prefix = 2; + * * @return The uriPrefix. */ java.lang.String getUriPrefix(); /** + * + * *
        * The uri prefix of all generated Cloud Storage objects. Example:
        * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    @@ -96,10 +128,10 @@ public interface GcsDestinationOrBuilder extends
        * 
    * * string uri_prefix = 2; + * * @return The bytes for uriPrefix. */ - com.google.protobuf.ByteString - getUriPrefixBytes(); + com.google.protobuf.ByteString getUriPrefixBytes(); public com.google.cloud.asset.v1p7beta1.GcsDestination.ObjectUriCase getObjectUriCase(); } diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResult.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResult.java similarity index 67% rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResult.java rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResult.java index 728194e1f02d..468dcb870522 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResult.java +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResult.java @@ -1,87 +1,114 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; /** + * + * *
      * A Cloud Storage output result.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.GcsOutputResult} */ -public final class GcsOutputResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsOutputResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.GcsOutputResult) GcsOutputResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsOutputResult.newBuilder() to construct. private GcsOutputResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsOutputResult() { uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsOutputResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.GcsOutputResult.class, com.google.cloud.asset.v1p7beta1.GcsOutputResult.Builder.class); + com.google.cloud.asset.v1p7beta1.GcsOutputResult.class, + com.google.cloud.asset.v1p7beta1.GcsOutputResult.Builder.class); } public static final int URIS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList uris_; /** + * + * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; + * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList - getUrisList() { + public com.google.protobuf.ProtocolStringList getUrisList() { return uris_; } /** + * + * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; + * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** + * + * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; + * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -89,21 +116,24 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** + * + * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString - getUrisBytes(int index) { + public com.google.protobuf.ByteString getUrisBytes(int index) { return uris_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -115,8 +145,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < uris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uris_.getRaw(i)); } @@ -145,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p7beta1.GcsOutputResult)) { return super.equals(obj); } - com.google.cloud.asset.v1p7beta1.GcsOutputResult other = (com.google.cloud.asset.v1p7beta1.GcsOutputResult) obj; + com.google.cloud.asset.v1p7beta1.GcsOutputResult other = + (com.google.cloud.asset.v1p7beta1.GcsOutputResult) obj; - if (!getUrisList() - .equals(other.getUrisList())) return false; + if (!getUrisList().equals(other.getUrisList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -174,130 +203,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.GcsOutputResult 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.asset.v1p7beta1.GcsOutputResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.GcsOutputResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.GcsOutputResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * A Cloud Storage output result.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.GcsOutputResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.GcsOutputResult) com.google.cloud.asset.v1p7beta1.GcsOutputResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.GcsOutputResult.class, com.google.cloud.asset.v1p7beta1.GcsOutputResult.Builder.class); + com.google.cloud.asset.v1p7beta1.GcsOutputResult.class, + com.google.cloud.asset.v1p7beta1.GcsOutputResult.Builder.class); } // Construct using com.google.cloud.asset.v1p7beta1.GcsOutputResult.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -307,9 +342,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor; } @java.lang.Override @@ -328,7 +363,8 @@ public com.google.cloud.asset.v1p7beta1.GcsOutputResult build() { @java.lang.Override public com.google.cloud.asset.v1p7beta1.GcsOutputResult buildPartial() { - com.google.cloud.asset.v1p7beta1.GcsOutputResult result = new com.google.cloud.asset.v1p7beta1.GcsOutputResult(this); + com.google.cloud.asset.v1p7beta1.GcsOutputResult result = + new com.google.cloud.asset.v1p7beta1.GcsOutputResult(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { uris_ = uris_.getUnmodifiableView(); @@ -343,38 +379,39 @@ public com.google.cloud.asset.v1p7beta1.GcsOutputResult buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p7beta1.GcsOutputResult) { - return mergeFrom((com.google.cloud.asset.v1p7beta1.GcsOutputResult)other); + return mergeFrom((com.google.cloud.asset.v1p7beta1.GcsOutputResult) other); } else { super.mergeFrom(other); return this; @@ -382,7 +419,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.GcsOutputResult other) { - if (other == com.google.cloud.asset.v1p7beta1.GcsOutputResult.getDefaultInstance()) return this; + if (other == com.google.cloud.asset.v1p7beta1.GcsOutputResult.getDefaultInstance()) + return this; if (!other.uris_.isEmpty()) { if (uris_.isEmpty()) { uris_ = other.uris_; @@ -419,18 +457,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUrisIsMutable(); - uris_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUrisIsMutable(); + uris_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -440,47 +480,58 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList uris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList uris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUrisIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { uris_ = new com.google.protobuf.LazyStringArrayList(uris_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; + * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList - getUrisList() { + public com.google.protobuf.ProtocolStringList getUrisList() { return uris_.getUnmodifiableView(); } /** + * + * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; + * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** + * + * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; + * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -488,85 +539,95 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** + * + * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString - getUrisBytes(int index) { + public com.google.protobuf.ByteString getUrisBytes(int index) { return uris_.getByteString(index); } /** + * + * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; + * * @param index The index to set the value at. * @param value The uris to set. * @return This builder for chaining. */ - public Builder setUris( - int index, java.lang.String value) { + public Builder setUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUrisIsMutable(); + throw new NullPointerException(); + } + ensureUrisIsMutable(); uris_.set(index, value); onChanged(); return this; } /** + * + * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; + * * @param value The uris to add. * @return This builder for chaining. */ - public Builder addUris( - java.lang.String value) { + public Builder addUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUrisIsMutable(); + throw new NullPointerException(); + } + ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } /** + * + * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; + * * @param values The uris to add. * @return This builder for chaining. */ - public Builder addAllUris( - java.lang.Iterable values) { + public Builder addAllUris(java.lang.Iterable values) { ensureUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, uris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); onChanged(); return this; } /** + * + * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; + * * @return This builder for chaining. */ public Builder clearUris() { @@ -576,29 +637,31 @@ public Builder clearUris() { return this; } /** + * + * *
          * List of uris of the Cloud Storage objects. Example:
          * "gs://bucket_name/object_name".
          * 
    * * repeated string uris = 1; + * * @param value The bytes of the uris to add. * @return This builder for chaining. */ - public Builder addUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -608,12 +671,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.GcsOutputResult) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.GcsOutputResult) private static final com.google.cloud.asset.v1p7beta1.GcsOutputResult DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.GcsOutputResult(); } @@ -622,27 +685,27 @@ public static com.google.cloud.asset.v1p7beta1.GcsOutputResult getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsOutputResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsOutputResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,6 +720,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p7beta1.GcsOutputResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResultOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResultOrBuilder.java similarity index 62% rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResultOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResultOrBuilder.java index c163a99c673d..ec8eda32acf2 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResultOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/GcsOutputResultOrBuilder.java @@ -1,54 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; -public interface GcsOutputResultOrBuilder extends +public interface GcsOutputResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.GcsOutputResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; + * * @return A list containing the uris. */ - java.util.List - getUrisList(); + java.util.List getUrisList(); /** + * + * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; + * * @return The count of uris. */ int getUrisCount(); /** + * + * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; + * * @param index The index of the element to return. * @return The uris at the given index. */ java.lang.String getUris(int index); /** + * + * *
        * List of uris of the Cloud Storage objects. Example:
        * "gs://bucket_name/object_name".
        * 
    * * repeated string uris = 1; + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - com.google.protobuf.ByteString - getUrisBytes(int index); + com.google.protobuf.ByteString getUrisBytes(int index); } diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfig.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfig.java similarity index 70% rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfig.java rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfig.java index 9875eff52713..a15a6ffbc992 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfig.java +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfig.java @@ -1,61 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; /** + * + * *
      * Output configuration for export assets destination.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.OutputConfig} */ -public final class OutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.OutputConfig) OutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OutputConfig.newBuilder() to construct. private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutputConfig() { - } + + private OutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.OutputConfig.class, com.google.cloud.asset.v1p7beta1.OutputConfig.Builder.class); + com.google.cloud.asset.v1p7beta1.OutputConfig.class, + com.google.cloud.asset.v1p7beta1.OutputConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION(1), BIGQUERY_DESTINATION(2), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -71,30 +92,36 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return GCS_DESTINATION; - case 2: return BIGQUERY_DESTINATION; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return GCS_DESTINATION; + case 2: + return BIGQUERY_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int GCS_DESTINATION_FIELD_NUMBER = 1; /** + * + * *
        * Destination on Cloud Storage.
        * 
    * * .google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -102,21 +129,26 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
        * Destination on Cloud Storage.
        * 
    * * .google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_; + return (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_; } return com.google.cloud.asset.v1p7beta1.GcsDestination.getDefaultInstance(); } /** + * + * *
        * Destination on Cloud Storage.
        * 
    @@ -126,19 +158,22 @@ public com.google.cloud.asset.v1p7beta1.GcsDestination getGcsDestination() { @java.lang.Override public com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { if (destinationCase_ == 1) { - return (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_; + return (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_; } return com.google.cloud.asset.v1p7beta1.GcsDestination.getDefaultInstance(); } public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 2; /** + * + * *
        * Destination on BigQuery. The output table stores the fields in asset
        * proto as columns in BigQuery.
        * 
    * * .google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2; + * * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -146,22 +181,27 @@ public boolean hasBigqueryDestination() { return destinationCase_ == 2; } /** + * + * *
        * Destination on BigQuery. The output table stores the fields in asset
        * proto as columns in BigQuery.
        * 
    * * .google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2; + * * @return The bigqueryDestination. */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.BigQueryDestination getBigqueryDestination() { if (destinationCase_ == 2) { - return (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_; + return (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_; } return com.google.cloud.asset.v1p7beta1.BigQueryDestination.getDefaultInstance(); } /** + * + * *
        * Destination on BigQuery. The output table stores the fields in asset
        * proto as columns in BigQuery.
    @@ -170,14 +210,16 @@ public com.google.cloud.asset.v1p7beta1.BigQueryDestination getBigqueryDestinati
        * .google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2;
        */
       @java.lang.Override
    -  public com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() {
    +  public com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder
    +      getBigqueryDestinationOrBuilder() {
         if (destinationCase_ == 2) {
    -       return (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_;
    +      return (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_;
         }
         return com.google.cloud.asset.v1p7beta1.BigQueryDestination.getDefaultInstance();
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -189,8 +231,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (destinationCase_ == 1) {
           output.writeMessage(1, (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_);
         }
    @@ -207,12 +248,14 @@ public int getSerializedSize() {
     
         size = 0;
         if (destinationCase_ == 1) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(1, (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_);
    +      size +=
    +          com.google.protobuf.CodedOutputStream.computeMessageSize(
    +              1, (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_);
         }
         if (destinationCase_ == 2) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(2, (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_);
    +      size +=
    +          com.google.protobuf.CodedOutputStream.computeMessageSize(
    +              2, (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_);
         }
         size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
    @@ -222,22 +265,21 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.cloud.asset.v1p7beta1.OutputConfig)) {
           return super.equals(obj);
         }
    -    com.google.cloud.asset.v1p7beta1.OutputConfig other = (com.google.cloud.asset.v1p7beta1.OutputConfig) obj;
    +    com.google.cloud.asset.v1p7beta1.OutputConfig other =
    +        (com.google.cloud.asset.v1p7beta1.OutputConfig) obj;
     
         if (!getDestinationCase().equals(other.getDestinationCase())) return false;
         switch (destinationCase_) {
           case 1:
    -        if (!getGcsDestination()
    -            .equals(other.getGcsDestination())) return false;
    +        if (!getGcsDestination().equals(other.getGcsDestination())) return false;
             break;
           case 2:
    -        if (!getBigqueryDestination()
    -            .equals(other.getBigqueryDestination())) return false;
    +        if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false;
             break;
           case 0:
           default:
    @@ -270,130 +312,136 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1p7beta1.OutputConfig 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.asset.v1p7beta1.OutputConfig parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.cloud.asset.v1p7beta1.OutputConfig parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.cloud.asset.v1p7beta1.OutputConfig parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1p7beta1.OutputConfig parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.OutputConfig prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Output configuration for export assets destination.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.OutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.OutputConfig) com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.OutputConfig.class, com.google.cloud.asset.v1p7beta1.OutputConfig.Builder.class); + com.google.cloud.asset.v1p7beta1.OutputConfig.class, + com.google.cloud.asset.v1p7beta1.OutputConfig.Builder.class); } // Construct using com.google.cloud.asset.v1p7beta1.OutputConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +457,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor; } @java.lang.Override @@ -430,7 +478,8 @@ public com.google.cloud.asset.v1p7beta1.OutputConfig build() { @java.lang.Override public com.google.cloud.asset.v1p7beta1.OutputConfig buildPartial() { - com.google.cloud.asset.v1p7beta1.OutputConfig result = new com.google.cloud.asset.v1p7beta1.OutputConfig(this); + com.google.cloud.asset.v1p7beta1.OutputConfig result = + new com.google.cloud.asset.v1p7beta1.OutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -454,38 +503,39 @@ public com.google.cloud.asset.v1p7beta1.OutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p7beta1.OutputConfig) { - return mergeFrom((com.google.cloud.asset.v1p7beta1.OutputConfig)other); + return mergeFrom((com.google.cloud.asset.v1p7beta1.OutputConfig) other); } else { super.mergeFrom(other); return this; @@ -495,17 +545,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.OutputConfig other) { if (other == com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case BIGQUERY_DESTINATION: { - mergeBigqueryDestination(other.getBigqueryDestination()); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case BIGQUERY_DESTINATION: + { + mergeBigqueryDestination(other.getBigqueryDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -533,26 +586,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsDestinationFieldBuilder().getBuilder(), - extensionRegistry); - destinationCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getBigqueryDestinationFieldBuilder().getBuilder(), - extensionRegistry); - destinationCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getBigqueryDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -562,12 +615,12 @@ public Builder mergeFrom( } // finally return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -577,15 +630,20 @@ public Builder clearDestination() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.GcsDestination, com.google.cloud.asset.v1p7beta1.GcsDestination.Builder, com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.asset.v1p7beta1.GcsDestination, + com.google.cloud.asset.v1p7beta1.GcsDestination.Builder, + com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
          * Destination on Cloud Storage.
          * 
    * * .google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -593,11 +651,14 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
          * Destination on Cloud Storage.
          * 
    * * .google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override @@ -615,6 +676,8 @@ public com.google.cloud.asset.v1p7beta1.GcsDestination getGcsDestination() { } } /** + * + * *
          * Destination on Cloud Storage.
          * 
    @@ -635,6 +698,8 @@ public Builder setGcsDestination(com.google.cloud.asset.v1p7beta1.GcsDestination return this; } /** + * + * *
          * Destination on Cloud Storage.
          * 
    @@ -653,6 +718,8 @@ public Builder setGcsDestination( return this; } /** + * + * *
          * Destination on Cloud Storage.
          * 
    @@ -661,10 +728,14 @@ public Builder setGcsDestination( */ public Builder mergeGcsDestination(com.google.cloud.asset.v1p7beta1.GcsDestination value) { if (gcsDestinationBuilder_ == null) { - if (destinationCase_ == 1 && - destination_ != com.google.cloud.asset.v1p7beta1.GcsDestination.getDefaultInstance()) { - destination_ = com.google.cloud.asset.v1p7beta1.GcsDestination.newBuilder((com.google.cloud.asset.v1p7beta1.GcsDestination) destination_) - .mergeFrom(value).buildPartial(); + if (destinationCase_ == 1 + && destination_ + != com.google.cloud.asset.v1p7beta1.GcsDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.asset.v1p7beta1.GcsDestination.newBuilder( + (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_) + .mergeFrom(value) + .buildPartial(); } else { destination_ = value; } @@ -680,6 +751,8 @@ public Builder mergeGcsDestination(com.google.cloud.asset.v1p7beta1.GcsDestinati return this; } /** + * + * *
          * Destination on Cloud Storage.
          * 
    @@ -703,6 +776,8 @@ public Builder clearGcsDestination() { return this; } /** + * + * *
          * Destination on Cloud Storage.
          * 
    @@ -713,6 +788,8 @@ public com.google.cloud.asset.v1p7beta1.GcsDestination.Builder getGcsDestination return getGcsDestinationFieldBuilder().getBuilder(); } /** + * + * *
          * Destination on Cloud Storage.
          * 
    @@ -731,6 +808,8 @@ public com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder getGcsDestinatio } } /** + * + * *
          * Destination on Cloud Storage.
          * 
    @@ -738,33 +817,45 @@ public com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder getGcsDestinatio * .google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.GcsDestination, com.google.cloud.asset.v1p7beta1.GcsDestination.Builder, com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder> + com.google.cloud.asset.v1p7beta1.GcsDestination, + com.google.cloud.asset.v1p7beta1.GcsDestination.Builder, + com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder() { if (gcsDestinationBuilder_ == null) { if (!(destinationCase_ == 1)) { destination_ = com.google.cloud.asset.v1p7beta1.GcsDestination.getDefaultInstance(); } - gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.GcsDestination, com.google.cloud.asset.v1p7beta1.GcsDestination.Builder, com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder>( + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p7beta1.GcsDestination, + com.google.cloud.asset.v1p7beta1.GcsDestination.Builder, + com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder>( (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 1; - onChanged();; + onChanged(); + ; return gcsDestinationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.BigQueryDestination, com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder, com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder> bigqueryDestinationBuilder_; + com.google.cloud.asset.v1p7beta1.BigQueryDestination, + com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder, + com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder> + bigqueryDestinationBuilder_; /** + * + * *
          * Destination on BigQuery. The output table stores the fields in asset
          * proto as columns in BigQuery.
          * 
    * * .google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2; + * * @return Whether the bigqueryDestination field is set. */ @java.lang.Override @@ -772,12 +863,15 @@ public boolean hasBigqueryDestination() { return destinationCase_ == 2; } /** + * + * *
          * Destination on BigQuery. The output table stores the fields in asset
          * proto as columns in BigQuery.
          * 
    * * .google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2; + * * @return The bigqueryDestination. */ @java.lang.Override @@ -795,6 +889,8 @@ public com.google.cloud.asset.v1p7beta1.BigQueryDestination getBigqueryDestinati } } /** + * + * *
          * Destination on BigQuery. The output table stores the fields in asset
          * proto as columns in BigQuery.
    @@ -802,7 +898,8 @@ public com.google.cloud.asset.v1p7beta1.BigQueryDestination getBigqueryDestinati
          *
          * .google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2;
          */
    -    public Builder setBigqueryDestination(com.google.cloud.asset.v1p7beta1.BigQueryDestination value) {
    +    public Builder setBigqueryDestination(
    +        com.google.cloud.asset.v1p7beta1.BigQueryDestination value) {
           if (bigqueryDestinationBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -816,6 +913,8 @@ public Builder setBigqueryDestination(com.google.cloud.asset.v1p7beta1.BigQueryD
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Destination on BigQuery. The output table stores the fields in asset
          * proto as columns in BigQuery.
    @@ -835,6 +934,8 @@ public Builder setBigqueryDestination(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Destination on BigQuery. The output table stores the fields in asset
          * proto as columns in BigQuery.
    @@ -842,12 +943,17 @@ public Builder setBigqueryDestination(
          *
          * .google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2;
          */
    -    public Builder mergeBigqueryDestination(com.google.cloud.asset.v1p7beta1.BigQueryDestination value) {
    +    public Builder mergeBigqueryDestination(
    +        com.google.cloud.asset.v1p7beta1.BigQueryDestination value) {
           if (bigqueryDestinationBuilder_ == null) {
    -        if (destinationCase_ == 2 &&
    -            destination_ != com.google.cloud.asset.v1p7beta1.BigQueryDestination.getDefaultInstance()) {
    -          destination_ = com.google.cloud.asset.v1p7beta1.BigQueryDestination.newBuilder((com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_)
    -              .mergeFrom(value).buildPartial();
    +        if (destinationCase_ == 2
    +            && destination_
    +                != com.google.cloud.asset.v1p7beta1.BigQueryDestination.getDefaultInstance()) {
    +          destination_ =
    +              com.google.cloud.asset.v1p7beta1.BigQueryDestination.newBuilder(
    +                      (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               destination_ = value;
             }
    @@ -863,6 +969,8 @@ public Builder mergeBigqueryDestination(com.google.cloud.asset.v1p7beta1.BigQuer
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Destination on BigQuery. The output table stores the fields in asset
          * proto as columns in BigQuery.
    @@ -887,6 +995,8 @@ public Builder clearBigqueryDestination() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Destination on BigQuery. The output table stores the fields in asset
          * proto as columns in BigQuery.
    @@ -894,10 +1004,13 @@ public Builder clearBigqueryDestination() {
          *
          * .google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2;
          */
    -    public com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder getBigqueryDestinationBuilder() {
    +    public com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder
    +        getBigqueryDestinationBuilder() {
           return getBigqueryDestinationFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Destination on BigQuery. The output table stores the fields in asset
          * proto as columns in BigQuery.
    @@ -906,7 +1019,8 @@ public com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder getBigqueryD
          * .google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2;
          */
         @java.lang.Override
    -    public com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() {
    +    public com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder
    +        getBigqueryDestinationOrBuilder() {
           if ((destinationCase_ == 2) && (bigqueryDestinationBuilder_ != null)) {
             return bigqueryDestinationBuilder_.getMessageOrBuilder();
           } else {
    @@ -917,6 +1031,8 @@ public com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder getBigquery
           }
         }
         /**
    +     *
    +     *
          * 
          * Destination on BigQuery. The output table stores the fields in asset
          * proto as columns in BigQuery.
    @@ -925,26 +1041,32 @@ public com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder getBigquery
          * .google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.cloud.asset.v1p7beta1.BigQueryDestination, com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder, com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder> 
    +            com.google.cloud.asset.v1p7beta1.BigQueryDestination,
    +            com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder,
    +            com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder>
             getBigqueryDestinationFieldBuilder() {
           if (bigqueryDestinationBuilder_ == null) {
             if (!(destinationCase_ == 2)) {
               destination_ = com.google.cloud.asset.v1p7beta1.BigQueryDestination.getDefaultInstance();
             }
    -        bigqueryDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.cloud.asset.v1p7beta1.BigQueryDestination, com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder, com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder>(
    +        bigqueryDestinationBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.cloud.asset.v1p7beta1.BigQueryDestination,
    +                com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder,
    +                com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder>(
                     (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_,
                     getParentForChildren(),
                     isClean());
             destination_ = null;
           }
           destinationCase_ = 2;
    -      onChanged();;
    +      onChanged();
    +      ;
           return bigqueryDestinationBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFields(unknownFields);
         }
     
    @@ -954,12 +1076,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.OutputConfig)
       }
     
       // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.OutputConfig)
       private static final com.google.cloud.asset.v1p7beta1.OutputConfig DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.OutputConfig();
       }
    @@ -968,27 +1090,27 @@ public static com.google.cloud.asset.v1p7beta1.OutputConfig getDefaultInstance()
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public OutputConfig parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      Builder builder = newBuilder();
    -      try {
    -        builder.mergeFrom(input, extensionRegistry);
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(builder.buildPartial());
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e)
    -            .setUnfinishedMessage(builder.buildPartial());
    -      }
    -      return builder.buildPartial();
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public OutputConfig parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1003,6 +1125,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.cloud.asset.v1p7beta1.OutputConfig getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfigOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfigOrBuilder.java
    similarity index 75%
    rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfigOrBuilder.java
    rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfigOrBuilder.java
    index 0e59d14707ee..36a0629db410 100644
    --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfigOrBuilder.java
    +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputConfigOrBuilder.java
    @@ -1,31 +1,55 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1p7beta1/asset_service.proto
     
     package com.google.cloud.asset.v1p7beta1;
     
    -public interface OutputConfigOrBuilder extends
    +public interface OutputConfigOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.OutputConfig)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * Destination on Cloud Storage.
        * 
    * * .google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
        * Destination on Cloud Storage.
        * 
    * * .google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ com.google.cloud.asset.v1p7beta1.GcsDestination getGcsDestination(); /** + * + * *
        * Destination on Cloud Storage.
        * 
    @@ -35,26 +59,34 @@ public interface OutputConfigOrBuilder extends com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** + * + * *
        * Destination on BigQuery. The output table stores the fields in asset
        * proto as columns in BigQuery.
        * 
    * * .google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2; + * * @return Whether the bigqueryDestination field is set. */ boolean hasBigqueryDestination(); /** + * + * *
        * Destination on BigQuery. The output table stores the fields in asset
        * proto as columns in BigQuery.
        * 
    * * .google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2; + * * @return The bigqueryDestination. */ com.google.cloud.asset.v1p7beta1.BigQueryDestination getBigqueryDestination(); /** + * + * *
        * Destination on BigQuery. The output table stores the fields in asset
        * proto as columns in BigQuery.
    diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResult.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResult.java
    similarity index 67%
    rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResult.java
    rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResult.java
    index 7fa6ae7b16ca..16fdc48ab8cd 100644
    --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResult.java
    +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResult.java
    @@ -1,60 +1,81 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/cloud/asset/v1p7beta1/asset_service.proto
     
     package com.google.cloud.asset.v1p7beta1;
     
     /**
    + *
    + *
      * 
      * Output result of export assets.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.OutputResult} */ -public final class OutputResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OutputResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.OutputResult) OutputResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OutputResult.newBuilder() to construct. private OutputResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutputResult() { - } + + private OutputResult() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutputResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_OutputResult_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_OutputResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.OutputResult.class, com.google.cloud.asset.v1p7beta1.OutputResult.Builder.class); + com.google.cloud.asset.v1p7beta1.OutputResult.class, + com.google.cloud.asset.v1p7beta1.OutputResult.Builder.class); } private int resultCase_ = 0; private java.lang.Object result_; + public enum ResultCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_RESULT(1), RESULT_NOT_SET(0); private final int value; + private ResultCase(int value) { this.value = value; } @@ -70,29 +91,34 @@ public static ResultCase valueOf(int value) { public static ResultCase forNumber(int value) { switch (value) { - case 1: return GCS_RESULT; - case 0: return RESULT_NOT_SET; - default: return null; + case 1: + return GCS_RESULT; + case 0: + return RESULT_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ResultCase - getResultCase() { - return ResultCase.forNumber( - resultCase_); + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); } public static final int GCS_RESULT_FIELD_NUMBER = 1; /** + * + * *
        * Export result on Cloud Storage.
        * 
    * * .google.cloud.asset.v1p7beta1.GcsOutputResult gcs_result = 1; + * * @return Whether the gcsResult field is set. */ @java.lang.Override @@ -100,21 +126,26 @@ public boolean hasGcsResult() { return resultCase_ == 1; } /** + * + * *
        * Export result on Cloud Storage.
        * 
    * * .google.cloud.asset.v1p7beta1.GcsOutputResult gcs_result = 1; + * * @return The gcsResult. */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.GcsOutputResult getGcsResult() { if (resultCase_ == 1) { - return (com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_; + return (com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_; } return com.google.cloud.asset.v1p7beta1.GcsOutputResult.getDefaultInstance(); } /** + * + * *
        * Export result on Cloud Storage.
        * 
    @@ -124,12 +155,13 @@ public com.google.cloud.asset.v1p7beta1.GcsOutputResult getGcsResult() { @java.lang.Override public com.google.cloud.asset.v1p7beta1.GcsOutputResultOrBuilder getGcsResultOrBuilder() { if (resultCase_ == 1) { - return (com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_; + return (com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_; } return com.google.cloud.asset.v1p7beta1.GcsOutputResult.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -141,8 +173,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (resultCase_ == 1) { output.writeMessage(1, (com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_); } @@ -156,8 +187,9 @@ public int getSerializedSize() { size = 0; if (resultCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -167,18 +199,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p7beta1.OutputResult)) { return super.equals(obj); } - com.google.cloud.asset.v1p7beta1.OutputResult other = (com.google.cloud.asset.v1p7beta1.OutputResult) obj; + com.google.cloud.asset.v1p7beta1.OutputResult other = + (com.google.cloud.asset.v1p7beta1.OutputResult) obj; if (!getResultCase().equals(other.getResultCase())) return false; switch (resultCase_) { case 1: - if (!getGcsResult() - .equals(other.getGcsResult())) return false; + if (!getGcsResult().equals(other.getGcsResult())) return false; break; case 0: default: @@ -207,130 +239,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1p7beta1.OutputResult parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p7beta1.OutputResult parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.OutputResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.OutputResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.OutputResult 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.asset.v1p7beta1.OutputResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.OutputResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.OutputResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.OutputResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.OutputResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p7beta1.OutputResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.OutputResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.OutputResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.OutputResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.OutputResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Output result of export assets.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.OutputResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.OutputResult) com.google.cloud.asset.v1p7beta1.OutputResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_OutputResult_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_OutputResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.OutputResult.class, com.google.cloud.asset.v1p7beta1.OutputResult.Builder.class); + com.google.cloud.asset.v1p7beta1.OutputResult.class, + com.google.cloud.asset.v1p7beta1.OutputResult.Builder.class); } // Construct using com.google.cloud.asset.v1p7beta1.OutputResult.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +381,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor; } @java.lang.Override @@ -364,7 +402,8 @@ public com.google.cloud.asset.v1p7beta1.OutputResult build() { @java.lang.Override public com.google.cloud.asset.v1p7beta1.OutputResult buildPartial() { - com.google.cloud.asset.v1p7beta1.OutputResult result = new com.google.cloud.asset.v1p7beta1.OutputResult(this); + com.google.cloud.asset.v1p7beta1.OutputResult result = + new com.google.cloud.asset.v1p7beta1.OutputResult(this); if (resultCase_ == 1) { if (gcsResultBuilder_ == null) { result.result_ = result_; @@ -381,38 +420,39 @@ public com.google.cloud.asset.v1p7beta1.OutputResult buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p7beta1.OutputResult) { - return mergeFrom((com.google.cloud.asset.v1p7beta1.OutputResult)other); + return mergeFrom((com.google.cloud.asset.v1p7beta1.OutputResult) other); } else { super.mergeFrom(other); return this; @@ -422,13 +462,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.OutputResult other) { if (other == com.google.cloud.asset.v1p7beta1.OutputResult.getDefaultInstance()) return this; switch (other.getResultCase()) { - case GCS_RESULT: { - mergeGcsResult(other.getGcsResult()); - break; - } - case RESULT_NOT_SET: { - break; - } + case GCS_RESULT: + { + mergeGcsResult(other.getGcsResult()); + break; + } + case RESULT_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -456,19 +498,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGcsResultFieldBuilder().getBuilder(), - extensionRegistry); - resultCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGcsResultFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -478,12 +520,12 @@ public Builder mergeFrom( } // finally return this; } + private int resultCase_ = 0; private java.lang.Object result_; - public ResultCase - getResultCase() { - return ResultCase.forNumber( - resultCase_); + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); } public Builder clearResult() { @@ -493,15 +535,20 @@ public Builder clearResult() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.GcsOutputResult, com.google.cloud.asset.v1p7beta1.GcsOutputResult.Builder, com.google.cloud.asset.v1p7beta1.GcsOutputResultOrBuilder> gcsResultBuilder_; + com.google.cloud.asset.v1p7beta1.GcsOutputResult, + com.google.cloud.asset.v1p7beta1.GcsOutputResult.Builder, + com.google.cloud.asset.v1p7beta1.GcsOutputResultOrBuilder> + gcsResultBuilder_; /** + * + * *
          * Export result on Cloud Storage.
          * 
    * * .google.cloud.asset.v1p7beta1.GcsOutputResult gcs_result = 1; + * * @return Whether the gcsResult field is set. */ @java.lang.Override @@ -509,11 +556,14 @@ public boolean hasGcsResult() { return resultCase_ == 1; } /** + * + * *
          * Export result on Cloud Storage.
          * 
    * * .google.cloud.asset.v1p7beta1.GcsOutputResult gcs_result = 1; + * * @return The gcsResult. */ @java.lang.Override @@ -531,6 +581,8 @@ public com.google.cloud.asset.v1p7beta1.GcsOutputResult getGcsResult() { } } /** + * + * *
          * Export result on Cloud Storage.
          * 
    @@ -551,6 +603,8 @@ public Builder setGcsResult(com.google.cloud.asset.v1p7beta1.GcsOutputResult val return this; } /** + * + * *
          * Export result on Cloud Storage.
          * 
    @@ -569,6 +623,8 @@ public Builder setGcsResult( return this; } /** + * + * *
          * Export result on Cloud Storage.
          * 
    @@ -577,10 +633,13 @@ public Builder setGcsResult( */ public Builder mergeGcsResult(com.google.cloud.asset.v1p7beta1.GcsOutputResult value) { if (gcsResultBuilder_ == null) { - if (resultCase_ == 1 && - result_ != com.google.cloud.asset.v1p7beta1.GcsOutputResult.getDefaultInstance()) { - result_ = com.google.cloud.asset.v1p7beta1.GcsOutputResult.newBuilder((com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_) - .mergeFrom(value).buildPartial(); + if (resultCase_ == 1 + && result_ != com.google.cloud.asset.v1p7beta1.GcsOutputResult.getDefaultInstance()) { + result_ = + com.google.cloud.asset.v1p7beta1.GcsOutputResult.newBuilder( + (com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_) + .mergeFrom(value) + .buildPartial(); } else { result_ = value; } @@ -596,6 +655,8 @@ public Builder mergeGcsResult(com.google.cloud.asset.v1p7beta1.GcsOutputResult v return this; } /** + * + * *
          * Export result on Cloud Storage.
          * 
    @@ -619,6 +680,8 @@ public Builder clearGcsResult() { return this; } /** + * + * *
          * Export result on Cloud Storage.
          * 
    @@ -629,6 +692,8 @@ public com.google.cloud.asset.v1p7beta1.GcsOutputResult.Builder getGcsResultBuil return getGcsResultFieldBuilder().getBuilder(); } /** + * + * *
          * Export result on Cloud Storage.
          * 
    @@ -647,6 +712,8 @@ public com.google.cloud.asset.v1p7beta1.GcsOutputResultOrBuilder getGcsResultOrB } } /** + * + * *
          * Export result on Cloud Storage.
          * 
    @@ -654,26 +721,32 @@ public com.google.cloud.asset.v1p7beta1.GcsOutputResultOrBuilder getGcsResultOrB * .google.cloud.asset.v1p7beta1.GcsOutputResult gcs_result = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.GcsOutputResult, com.google.cloud.asset.v1p7beta1.GcsOutputResult.Builder, com.google.cloud.asset.v1p7beta1.GcsOutputResultOrBuilder> + com.google.cloud.asset.v1p7beta1.GcsOutputResult, + com.google.cloud.asset.v1p7beta1.GcsOutputResult.Builder, + com.google.cloud.asset.v1p7beta1.GcsOutputResultOrBuilder> getGcsResultFieldBuilder() { if (gcsResultBuilder_ == null) { if (!(resultCase_ == 1)) { result_ = com.google.cloud.asset.v1p7beta1.GcsOutputResult.getDefaultInstance(); } - gcsResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.GcsOutputResult, com.google.cloud.asset.v1p7beta1.GcsOutputResult.Builder, com.google.cloud.asset.v1p7beta1.GcsOutputResultOrBuilder>( + gcsResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p7beta1.GcsOutputResult, + com.google.cloud.asset.v1p7beta1.GcsOutputResult.Builder, + com.google.cloud.asset.v1p7beta1.GcsOutputResultOrBuilder>( (com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_, getParentForChildren(), isClean()); result_ = null; } resultCase_ = 1; - onChanged();; + onChanged(); + ; return gcsResultBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -683,12 +756,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.OutputResult) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.OutputResult) private static final com.google.cloud.asset.v1p7beta1.OutputResult DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.OutputResult(); } @@ -697,27 +770,27 @@ public static com.google.cloud.asset.v1p7beta1.OutputResult getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -732,6 +805,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p7beta1.OutputResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResultOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResultOrBuilder.java similarity index 61% rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResultOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResultOrBuilder.java index 84f878583beb..ac917385440d 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResultOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/OutputResultOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; -public interface OutputResultOrBuilder extends +public interface OutputResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.OutputResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Export result on Cloud Storage.
        * 
    * * .google.cloud.asset.v1p7beta1.GcsOutputResult gcs_result = 1; + * * @return Whether the gcsResult field is set. */ boolean hasGcsResult(); /** + * + * *
        * Export result on Cloud Storage.
        * 
    * * .google.cloud.asset.v1p7beta1.GcsOutputResult gcs_result = 1; + * * @return The gcsResult. */ com.google.cloud.asset.v1p7beta1.GcsOutputResult getGcsResult(); /** + * + * *
        * Export result on Cloud Storage.
        * 
    diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpec.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpec.java similarity index 68% rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpec.java rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpec.java index e2d4d06cecfd..1e0d5eb26295 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpec.java +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpec.java @@ -1,54 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; /** + * + * *
      * Specifications of BigQuery partitioned table as export destination.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.PartitionSpec} */ -public final class PartitionSpec extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PartitionSpec extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.PartitionSpec) PartitionSpecOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PartitionSpec.newBuilder() to construct. private PartitionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PartitionSpec() { partitionKey_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PartitionSpec(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.PartitionSpec.class, com.google.cloud.asset.v1p7beta1.PartitionSpec.Builder.class); + com.google.cloud.asset.v1p7beta1.PartitionSpec.class, + com.google.cloud.asset.v1p7beta1.PartitionSpec.Builder.class); } /** + * + * *
        * This enum is used to determine the partition key column when exporting
        * assets to BigQuery partitioned table(s). Note that, if the partition key is
    @@ -59,9 +80,10 @@ protected java.lang.Object newInstance(
        *
        * Protobuf enum {@code google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey}
        */
    -  public enum PartitionKey
    -      implements com.google.protobuf.ProtocolMessageEnum {
    +  public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum {
         /**
    +     *
    +     *
          * 
          * Unspecified partition key. If used, it means using non-partitioned table.
          * 
    @@ -70,6 +92,8 @@ public enum PartitionKey */ PARTITION_KEY_UNSPECIFIED(0), /** + * + * *
          * The time when the snapshot is taken. If specified as partition key, the
          * result table(s) is partitoned by the additional timestamp column,
    @@ -82,6 +106,8 @@ public enum PartitionKey
          */
         READ_TIME(1),
         /**
    +     *
    +     *
          * 
          * The time when the request is received and started to be processed. If
          * specified as partition key, the result table(s) is partitoned by the
    @@ -96,6 +122,8 @@ public enum PartitionKey
         ;
     
         /**
    +     *
    +     *
          * 
          * Unspecified partition key. If used, it means using non-partitioned table.
          * 
    @@ -104,6 +132,8 @@ public enum PartitionKey */ public static final int PARTITION_KEY_UNSPECIFIED_VALUE = 0; /** + * + * *
          * The time when the snapshot is taken. If specified as partition key, the
          * result table(s) is partitoned by the additional timestamp column,
    @@ -116,6 +146,8 @@ public enum PartitionKey
          */
         public static final int READ_TIME_VALUE = 1;
         /**
    +     *
    +     *
          * 
          * The time when the request is received and started to be processed. If
          * specified as partition key, the result table(s) is partitoned by the
    @@ -127,7 +159,6 @@ public enum PartitionKey
          */
         public static final int REQUEST_TIME_VALUE = 2;
     
    -
         public final int getNumber() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalArgumentException(
    @@ -152,49 +183,49 @@ public static PartitionKey valueOf(int value) {
          */
         public static PartitionKey forNumber(int value) {
           switch (value) {
    -        case 0: return PARTITION_KEY_UNSPECIFIED;
    -        case 1: return READ_TIME;
    -        case 2: return REQUEST_TIME;
    -        default: return null;
    +        case 0:
    +          return PARTITION_KEY_UNSPECIFIED;
    +        case 1:
    +          return READ_TIME;
    +        case 2:
    +          return REQUEST_TIME;
    +        default:
    +          return null;
           }
         }
     
    -    public static com.google.protobuf.Internal.EnumLiteMap
    -        internalGetValueMap() {
    +    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
           return internalValueMap;
         }
    -    private static final com.google.protobuf.Internal.EnumLiteMap<
    -        PartitionKey> internalValueMap =
    -          new com.google.protobuf.Internal.EnumLiteMap() {
    -            public PartitionKey findValueByNumber(int number) {
    -              return PartitionKey.forNumber(number);
    -            }
    -          };
     
    -    public final com.google.protobuf.Descriptors.EnumValueDescriptor
    -        getValueDescriptor() {
    +    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
    +        new com.google.protobuf.Internal.EnumLiteMap() {
    +          public PartitionKey findValueByNumber(int number) {
    +            return PartitionKey.forNumber(number);
    +          }
    +        };
    +
    +    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalStateException(
                 "Can't get the descriptor of an unrecognized enum value.");
           }
           return getDescriptor().getValues().get(ordinal());
         }
    -    public final com.google.protobuf.Descriptors.EnumDescriptor
    -        getDescriptorForType() {
    +
    +    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
           return getDescriptor();
         }
    -    public static final com.google.protobuf.Descriptors.EnumDescriptor
    -        getDescriptor() {
    +
    +    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
           return com.google.cloud.asset.v1p7beta1.PartitionSpec.getDescriptor().getEnumTypes().get(0);
         }
     
         private static final PartitionKey[] VALUES = values();
     
    -    public static PartitionKey valueOf(
    -        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
    +    public static PartitionKey valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
           if (desc.getType() != getDescriptor()) {
    -        throw new java.lang.IllegalArgumentException(
    -          "EnumValueDescriptor is not for this type.");
    +        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
           }
           if (desc.getIndex() == -1) {
             return UNRECOGNIZED;
    @@ -214,31 +245,43 @@ private PartitionKey(int value) {
       public static final int PARTITION_KEY_FIELD_NUMBER = 1;
       private int partitionKey_;
       /**
    +   *
    +   *
        * 
        * The partition key for BigQuery partitioned table.
        * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey partition_key = 1; + * * @return The enum numeric value on the wire for partitionKey. */ - @java.lang.Override public int getPartitionKeyValue() { + @java.lang.Override + public int getPartitionKeyValue() { return partitionKey_; } /** + * + * *
        * The partition key for BigQuery partitioned table.
        * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey partition_key = 1; + * * @return The partitionKey. */ - @java.lang.Override public com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey getPartitionKey() { + @java.lang.Override + public com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey getPartitionKey() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey result = com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey.valueOf(partitionKey_); - return result == null ? com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey.UNRECOGNIZED : result; + com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey result = + com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey.valueOf(partitionKey_); + return result == null + ? com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,9 +293,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (partitionKey_ != com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey.PARTITION_KEY_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (partitionKey_ + != com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey.PARTITION_KEY_UNSPECIFIED + .getNumber()) { output.writeEnum(1, partitionKey_); } getUnknownFields().writeTo(output); @@ -264,9 +308,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (partitionKey_ != com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey.PARTITION_KEY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, partitionKey_); + if (partitionKey_ + != com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey.PARTITION_KEY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, partitionKey_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -276,12 +321,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p7beta1.PartitionSpec)) { return super.equals(obj); } - com.google.cloud.asset.v1p7beta1.PartitionSpec other = (com.google.cloud.asset.v1p7beta1.PartitionSpec) obj; + com.google.cloud.asset.v1p7beta1.PartitionSpec other = + (com.google.cloud.asset.v1p7beta1.PartitionSpec) obj; if (partitionKey_ != other.partitionKey_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -302,130 +348,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1p7beta1.PartitionSpec parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p7beta1.PartitionSpec parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.PartitionSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.PartitionSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.PartitionSpec 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.asset.v1p7beta1.PartitionSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.PartitionSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.PartitionSpec parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.PartitionSpec parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.PartitionSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p7beta1.PartitionSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.PartitionSpec parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.PartitionSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.PartitionSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.PartitionSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Specifications of BigQuery partitioned table as export destination.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.PartitionSpec} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.PartitionSpec) com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.PartitionSpec.class, com.google.cloud.asset.v1p7beta1.PartitionSpec.Builder.class); + com.google.cloud.asset.v1p7beta1.PartitionSpec.class, + com.google.cloud.asset.v1p7beta1.PartitionSpec.Builder.class); } // Construct using com.google.cloud.asset.v1p7beta1.PartitionSpec.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p7beta1.AssetServiceProto.internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p7beta1.AssetServiceProto + .internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor; } @java.lang.Override @@ -456,7 +508,8 @@ public com.google.cloud.asset.v1p7beta1.PartitionSpec build() { @java.lang.Override public com.google.cloud.asset.v1p7beta1.PartitionSpec buildPartial() { - com.google.cloud.asset.v1p7beta1.PartitionSpec result = new com.google.cloud.asset.v1p7beta1.PartitionSpec(this); + com.google.cloud.asset.v1p7beta1.PartitionSpec result = + new com.google.cloud.asset.v1p7beta1.PartitionSpec(this); result.partitionKey_ = partitionKey_; onBuilt(); return result; @@ -466,38 +519,39 @@ public com.google.cloud.asset.v1p7beta1.PartitionSpec buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p7beta1.PartitionSpec) { - return mergeFrom((com.google.cloud.asset.v1p7beta1.PartitionSpec)other); + return mergeFrom((com.google.cloud.asset.v1p7beta1.PartitionSpec) other); } else { super.mergeFrom(other); return this; @@ -535,17 +589,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - partitionKey_ = input.readEnum(); - - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + partitionKey_ = input.readEnum(); + + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -558,80 +614,100 @@ public Builder mergeFrom( private int partitionKey_ = 0; /** + * + * *
          * The partition key for BigQuery partitioned table.
          * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey partition_key = 1; + * * @return The enum numeric value on the wire for partitionKey. */ - @java.lang.Override public int getPartitionKeyValue() { + @java.lang.Override + public int getPartitionKeyValue() { return partitionKey_; } /** + * + * *
          * The partition key for BigQuery partitioned table.
          * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey partition_key = 1; + * * @param value The enum numeric value on the wire for partitionKey to set. * @return This builder for chaining. */ public Builder setPartitionKeyValue(int value) { - + partitionKey_ = value; onChanged(); return this; } /** + * + * *
          * The partition key for BigQuery partitioned table.
          * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey partition_key = 1; + * * @return The partitionKey. */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey getPartitionKey() { @SuppressWarnings("deprecation") - com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey result = com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey.valueOf(partitionKey_); - return result == null ? com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey.UNRECOGNIZED : result; + com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey result = + com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey.valueOf(partitionKey_); + return result == null + ? com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey.UNRECOGNIZED + : result; } /** + * + * *
          * The partition key for BigQuery partitioned table.
          * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey partition_key = 1; + * * @param value The partitionKey to set. * @return This builder for chaining. */ - public Builder setPartitionKey(com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey value) { + public Builder setPartitionKey( + com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey value) { if (value == null) { throw new NullPointerException(); } - + partitionKey_ = value.getNumber(); onChanged(); return this; } /** + * + * *
          * The partition key for BigQuery partitioned table.
          * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey partition_key = 1; + * * @return This builder for chaining. */ public Builder clearPartitionKey() { - + partitionKey_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -641,12 +717,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.PartitionSpec) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.PartitionSpec) private static final com.google.cloud.asset.v1p7beta1.PartitionSpec DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.PartitionSpec(); } @@ -655,27 +731,27 @@ public static com.google.cloud.asset.v1p7beta1.PartitionSpec getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartitionSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartitionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -690,6 +766,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p7beta1.PartitionSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpecOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpecOrBuilder.java similarity index 56% rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpecOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpecOrBuilder.java index 0de671bc2e18..80414f9af8bd 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpecOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/PartitionSpecOrBuilder.java @@ -1,27 +1,49 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/asset_service.proto package com.google.cloud.asset.v1p7beta1; -public interface PartitionSpecOrBuilder extends +public interface PartitionSpecOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.PartitionSpec) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The partition key for BigQuery partitioned table.
        * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey partition_key = 1; + * * @return The enum numeric value on the wire for partitionKey. */ int getPartitionKeyValue(); /** + * + * *
        * The partition key for BigQuery partitioned table.
        * 
    * * .google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey partition_key = 1; + * * @return The partitionKey. */ com.google.cloud.asset.v1p7beta1.PartitionSpec.PartitionKey getPartitionKey(); diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAsset.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAsset.java similarity index 75% rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAsset.java rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAsset.java index ec97b36c208f..b7cd47f20032 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAsset.java +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAsset.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/assets.proto package com.google.cloud.asset.v1p7beta1; /** + * + * *
      * An asset identify in Google Cloud which contains its name, type and
      * ancestors. An asset can be any resource in the Google Cloud [resource
    @@ -17,15 +34,16 @@
      *
      * Protobuf type {@code google.cloud.asset.v1p7beta1.RelatedAsset}
      */
    -public final class RelatedAsset extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class RelatedAsset extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.RelatedAsset)
         RelatedAssetOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use RelatedAsset.newBuilder() to construct.
       private RelatedAsset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private RelatedAsset() {
         asset_ = "";
         assetType_ = "";
    @@ -34,32 +52,35 @@ private RelatedAsset() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(
    -      UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new RelatedAsset();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.cloud.asset.v1p7beta1.AssetProto
    +        .internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_fieldAccessorTable
    +    return com.google.cloud.asset.v1p7beta1.AssetProto
    +        .internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1p7beta1.RelatedAsset.class, com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder.class);
    +            com.google.cloud.asset.v1p7beta1.RelatedAsset.class,
    +            com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder.class);
       }
     
       public static final int ASSET_FIELD_NUMBER = 1;
       private volatile java.lang.Object asset_;
       /**
    +   *
    +   *
        * 
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -69,6 +90,7 @@ protected java.lang.Object newInstance(
        * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } + * * @return The asset. */ @java.lang.Override @@ -77,14 +99,15 @@ public java.lang.String getAsset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); asset_ = s; return s; } } /** + * + * *
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -94,16 +117,15 @@ public java.lang.String getAsset() {
        * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for asset. */ @java.lang.Override - public com.google.protobuf.ByteString - getAssetBytes() { + public com.google.protobuf.ByteString getAssetBytes() { java.lang.Object ref = asset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); asset_ = b; return b; } else { @@ -114,6 +136,8 @@ public java.lang.String getAsset() { public static final int ASSET_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object assetType_; /** + * + * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -122,6 +146,7 @@ public java.lang.String getAsset() {
        * 
    * * string asset_type = 2; + * * @return The assetType. */ @java.lang.Override @@ -130,14 +155,15 @@ public java.lang.String getAssetType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; } } /** + * + * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -146,16 +172,15 @@ public java.lang.String getAssetType() {
        * 
    * * string asset_type = 2; + * * @return The bytes for assetType. */ @java.lang.Override - public com.google.protobuf.ByteString - getAssetTypeBytes() { + public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetType_ = b; return b; } else { @@ -166,6 +191,8 @@ public java.lang.String getAssetType() { public static final int ANCESTORS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList ancestors_; /** + * + * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -175,13 +202,15 @@ public java.lang.String getAssetType() {
        * 
    * * repeated string ancestors = 3; + * * @return A list containing the ancestors. */ - public com.google.protobuf.ProtocolStringList - getAncestorsList() { + public com.google.protobuf.ProtocolStringList getAncestorsList() { return ancestors_; } /** + * + * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -191,12 +220,15 @@ public java.lang.String getAssetType() {
        * 
    * * repeated string ancestors = 3; + * * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); } /** + * + * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -206,6 +238,7 @@ public int getAncestorsCount() {
        * 
    * * repeated string ancestors = 3; + * * @param index The index of the element to return. * @return The ancestors at the given index. */ @@ -213,6 +246,8 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** + * + * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -222,15 +257,16 @@ public java.lang.String getAncestors(int index) {
        * 
    * * repeated string ancestors = 3; + * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - public com.google.protobuf.ByteString - getAncestorsBytes(int index) { + public com.google.protobuf.ByteString getAncestorsBytes(int index) { return ancestors_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,8 +278,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(asset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, asset_); } @@ -284,19 +319,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p7beta1.RelatedAsset)) { return super.equals(obj); } - com.google.cloud.asset.v1p7beta1.RelatedAsset other = (com.google.cloud.asset.v1p7beta1.RelatedAsset) obj; - - if (!getAsset() - .equals(other.getAsset())) return false; - if (!getAssetType() - .equals(other.getAssetType())) return false; - if (!getAncestorsList() - .equals(other.getAncestorsList())) return false; + com.google.cloud.asset.v1p7beta1.RelatedAsset other = + (com.google.cloud.asset.v1p7beta1.RelatedAsset) obj; + + if (!getAsset().equals(other.getAsset())) return false; + if (!getAssetType().equals(other.getAssetType())) return false; + if (!getAncestorsList().equals(other.getAncestorsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -321,97 +354,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1p7beta1.RelatedAsset parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p7beta1.RelatedAsset parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.RelatedAsset parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.RelatedAsset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.RelatedAsset 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.asset.v1p7beta1.RelatedAsset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.RelatedAsset parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.RelatedAsset parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.RelatedAsset parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.RelatedAsset parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p7beta1.RelatedAsset parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.RelatedAsset parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.RelatedAsset parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.RelatedAsset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.RelatedAsset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * An asset identify in Google Cloud which contains its name, type and
        * ancestors. An asset can be any resource in the Google Cloud [resource
    @@ -425,33 +465,32 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.asset.v1p7beta1.RelatedAsset}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.RelatedAsset)
           com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1p7beta1.AssetProto
    +          .internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_fieldAccessorTable
    +      return com.google.cloud.asset.v1p7beta1.AssetProto
    +          .internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1p7beta1.RelatedAsset.class, com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder.class);
    +              com.google.cloud.asset.v1p7beta1.RelatedAsset.class,
    +              com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1p7beta1.RelatedAsset.newBuilder()
    -    private Builder() {
    -
    -    }
    +    private Builder() {}
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -465,9 +504,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.cloud.asset.v1p7beta1.AssetProto
    +          .internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor;
         }
     
         @java.lang.Override
    @@ -486,7 +525,8 @@ public com.google.cloud.asset.v1p7beta1.RelatedAsset build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1p7beta1.RelatedAsset buildPartial() {
    -      com.google.cloud.asset.v1p7beta1.RelatedAsset result = new com.google.cloud.asset.v1p7beta1.RelatedAsset(this);
    +      com.google.cloud.asset.v1p7beta1.RelatedAsset result =
    +          new com.google.cloud.asset.v1p7beta1.RelatedAsset(this);
           int from_bitField0_ = bitField0_;
           result.asset_ = asset_;
           result.assetType_ = assetType_;
    @@ -503,38 +543,39 @@ public com.google.cloud.asset.v1p7beta1.RelatedAsset buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1p7beta1.RelatedAsset) {
    -        return mergeFrom((com.google.cloud.asset.v1p7beta1.RelatedAsset)other);
    +        return mergeFrom((com.google.cloud.asset.v1p7beta1.RelatedAsset) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -587,28 +628,32 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
    -            case 10: {
    -              asset_ = input.readStringRequireUtf8();
    +            case 10:
    +              {
    +                asset_ = input.readStringRequireUtf8();
     
    -              break;
    -            } // case 10
    -            case 18: {
    -              assetType_ = input.readStringRequireUtf8();
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                assetType_ = input.readStringRequireUtf8();
     
    -              break;
    -            } // case 18
    -            case 26: {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              ensureAncestorsIsMutable();
    -              ancestors_.add(s);
    -              break;
    -            } // case 26
    -            default: {
    -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                done = true; // was an endgroup tag
    -              }
    -              break;
    -            } // default:
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAncestorsIsMutable();
    +                ancestors_.add(s);
    +                break;
    +              } // case 26
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -618,10 +663,13 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
    +
         private int bitField0_;
     
         private java.lang.Object asset_ = "";
         /**
    +     *
    +     *
          * 
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -631,13 +679,13 @@ public Builder mergeFrom(
          * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } + * * @return The asset. */ public java.lang.String getAsset() { java.lang.Object ref = asset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); asset_ = s; return s; @@ -646,6 +694,8 @@ public java.lang.String getAsset() { } } /** + * + * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -655,15 +705,14 @@ public java.lang.String getAsset() {
          * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for asset. */ - public com.google.protobuf.ByteString - getAssetBytes() { + public com.google.protobuf.ByteString getAssetBytes() { java.lang.Object ref = asset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); asset_ = b; return b; } else { @@ -671,6 +720,8 @@ public java.lang.String getAsset() { } } /** + * + * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -680,20 +731,22 @@ public java.lang.String getAsset() {
          * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } + * * @param value The asset to set. * @return This builder for chaining. */ - public Builder setAsset( - java.lang.String value) { + public Builder setAsset(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + asset_ = value; onChanged(); return this; } /** + * + * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -703,15 +756,18 @@ public Builder setAsset(
          * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearAsset() { - + asset_ = getDefaultInstance().getAsset(); onChanged(); return this; } /** + * + * *
          * The full name of the asset. Example:
          * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -721,16 +777,16 @@ public Builder clearAsset() {
          * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for asset to set. * @return This builder for chaining. */ - public Builder setAssetBytes( - com.google.protobuf.ByteString value) { + public Builder setAssetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + asset_ = value; onChanged(); return this; @@ -738,6 +794,8 @@ public Builder setAssetBytes( private java.lang.Object assetType_ = ""; /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -746,13 +804,13 @@ public Builder setAssetBytes(
          * 
    * * string asset_type = 2; + * * @return The assetType. */ public java.lang.String getAssetType() { java.lang.Object ref = assetType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetType_ = s; return s; @@ -761,6 +819,8 @@ public java.lang.String getAssetType() { } } /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -769,15 +829,14 @@ public java.lang.String getAssetType() {
          * 
    * * string asset_type = 2; + * * @return The bytes for assetType. */ - public com.google.protobuf.ByteString - getAssetTypeBytes() { + public com.google.protobuf.ByteString getAssetTypeBytes() { java.lang.Object ref = assetType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetType_ = b; return b; } else { @@ -785,6 +844,8 @@ public java.lang.String getAssetType() { } } /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -793,20 +854,22 @@ public java.lang.String getAssetType() {
          * 
    * * string asset_type = 2; + * * @param value The assetType to set. * @return This builder for chaining. */ - public Builder setAssetType( - java.lang.String value) { + public Builder setAssetType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + assetType_ = value; onChanged(); return this; } /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -815,15 +878,18 @@ public Builder setAssetType(
          * 
    * * string asset_type = 2; + * * @return This builder for chaining. */ public Builder clearAssetType() { - + assetType_ = getDefaultInstance().getAssetType(); onChanged(); return this; } /** + * + * *
          * The type of the asset. Example: `compute.googleapis.com/Disk`
          * See [Supported asset
    @@ -832,29 +898,33 @@ public Builder clearAssetType() {
          * 
    * * string asset_type = 2; + * * @param value The bytes for assetType to set. * @return This builder for chaining. */ - public Builder setAssetTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList ancestors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList ancestors_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAncestorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ancestors_ = new com.google.protobuf.LazyStringArrayList(ancestors_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -864,13 +934,15 @@ private void ensureAncestorsIsMutable() {
          * 
    * * repeated string ancestors = 3; + * * @return A list containing the ancestors. */ - public com.google.protobuf.ProtocolStringList - getAncestorsList() { + public com.google.protobuf.ProtocolStringList getAncestorsList() { return ancestors_.getUnmodifiableView(); } /** + * + * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -880,12 +952,15 @@ private void ensureAncestorsIsMutable() {
          * 
    * * repeated string ancestors = 3; + * * @return The count of ancestors. */ public int getAncestorsCount() { return ancestors_.size(); } /** + * + * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -895,6 +970,7 @@ public int getAncestorsCount() {
          * 
    * * repeated string ancestors = 3; + * * @param index The index of the element to return. * @return The ancestors at the given index. */ @@ -902,6 +978,8 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** + * + * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -911,14 +989,16 @@ public java.lang.String getAncestors(int index) {
          * 
    * * repeated string ancestors = 3; + * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - public com.google.protobuf.ByteString - getAncestorsBytes(int index) { + public com.google.protobuf.ByteString getAncestorsBytes(int index) { return ancestors_.getByteString(index); } /** + * + * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -928,21 +1008,23 @@ public java.lang.String getAncestors(int index) {
          * 
    * * repeated string ancestors = 3; + * * @param index The index to set the value at. * @param value The ancestors to set. * @return This builder for chaining. */ - public Builder setAncestors( - int index, java.lang.String value) { + public Builder setAncestors(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAncestorsIsMutable(); + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); ancestors_.set(index, value); onChanged(); return this; } /** + * + * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -952,20 +1034,22 @@ public Builder setAncestors(
          * 
    * * repeated string ancestors = 3; + * * @param value The ancestors to add. * @return This builder for chaining. */ - public Builder addAncestors( - java.lang.String value) { + public Builder addAncestors(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAncestorsIsMutable(); + throw new NullPointerException(); + } + ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); return this; } /** + * + * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -975,18 +1059,19 @@ public Builder addAncestors(
          * 
    * * repeated string ancestors = 3; + * * @param values The ancestors to add. * @return This builder for chaining. */ - public Builder addAllAncestors( - java.lang.Iterable values) { + public Builder addAllAncestors(java.lang.Iterable values) { ensureAncestorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ancestors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ancestors_); onChanged(); return this; } /** + * + * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -996,6 +1081,7 @@ public Builder addAllAncestors(
          * 
    * * repeated string ancestors = 3; + * * @return This builder for chaining. */ public Builder clearAncestors() { @@ -1005,6 +1091,8 @@ public Builder clearAncestors() { return this; } /** + * + * *
          * The ancestors of an asset in Google Cloud [resource
          * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -1014,23 +1102,23 @@ public Builder clearAncestors() {
          * 
    * * repeated string ancestors = 3; + * * @param value The bytes of the ancestors to add. * @return This builder for chaining. */ - public Builder addAncestorsBytes( - com.google.protobuf.ByteString value) { + public Builder addAncestorsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAncestorsIsMutable(); ancestors_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1040,12 +1128,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.RelatedAsset) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.RelatedAsset) private static final com.google.cloud.asset.v1p7beta1.RelatedAsset DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.RelatedAsset(); } @@ -1054,27 +1142,27 @@ public static com.google.cloud.asset.v1p7beta1.RelatedAsset getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RelatedAsset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelatedAsset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1089,6 +1177,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p7beta1.RelatedAsset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetOrBuilder.java similarity index 80% rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetOrBuilder.java index 584ef775ccf2..8e4a2d70e655 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/assets.proto package com.google.cloud.asset.v1p7beta1; -public interface RelatedAssetOrBuilder extends +public interface RelatedAssetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.RelatedAsset) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -17,10 +35,13 @@ public interface RelatedAssetOrBuilder extends
        * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } + * * @return The asset. */ java.lang.String getAsset(); /** + * + * *
        * The full name of the asset. Example:
        * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
    @@ -30,12 +51,14 @@ public interface RelatedAssetOrBuilder extends
        * 
    * * string asset = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for asset. */ - com.google.protobuf.ByteString - getAssetBytes(); + com.google.protobuf.ByteString getAssetBytes(); /** + * + * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -44,10 +67,13 @@ public interface RelatedAssetOrBuilder extends
        * 
    * * string asset_type = 2; + * * @return The assetType. */ java.lang.String getAssetType(); /** + * + * *
        * The type of the asset. Example: `compute.googleapis.com/Disk`
        * See [Supported asset
    @@ -56,12 +82,14 @@ public interface RelatedAssetOrBuilder extends
        * 
    * * string asset_type = 2; + * * @return The bytes for assetType. */ - com.google.protobuf.ByteString - getAssetTypeBytes(); + com.google.protobuf.ByteString getAssetTypeBytes(); /** + * + * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -71,11 +99,13 @@ public interface RelatedAssetOrBuilder extends
        * 
    * * repeated string ancestors = 3; + * * @return A list containing the ancestors. */ - java.util.List - getAncestorsList(); + java.util.List getAncestorsList(); /** + * + * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -85,10 +115,13 @@ public interface RelatedAssetOrBuilder extends
        * 
    * * repeated string ancestors = 3; + * * @return The count of ancestors. */ int getAncestorsCount(); /** + * + * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -98,11 +131,14 @@ public interface RelatedAssetOrBuilder extends
        * 
    * * repeated string ancestors = 3; + * * @param index The index of the element to return. * @return The ancestors at the given index. */ java.lang.String getAncestors(int index); /** + * + * *
        * The ancestors of an asset in Google Cloud [resource
        * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    @@ -112,9 +148,9 @@ public interface RelatedAssetOrBuilder extends
        * 
    * * repeated string ancestors = 3; + * * @param index The index of the value to return. * @return The bytes of the ancestors at the given index. */ - com.google.protobuf.ByteString - getAncestorsBytes(int index); + com.google.protobuf.ByteString getAncestorsBytes(int index); } diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssets.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssets.java similarity index 70% rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssets.java rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssets.java index c7d93b608764..7c3346af2675 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssets.java +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssets.java @@ -1,61 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/assets.proto package com.google.cloud.asset.v1p7beta1; /** + * + * *
      * The detailed related assets with the `relationship_type`.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.RelatedAssets} */ -public final class RelatedAssets extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RelatedAssets extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.RelatedAssets) RelatedAssetsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RelatedAssets.newBuilder() to construct. private RelatedAssets(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RelatedAssets() { assets_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RelatedAssets(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetProto + .internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetProto + .internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.RelatedAssets.class, com.google.cloud.asset.v1p7beta1.RelatedAssets.Builder.class); + com.google.cloud.asset.v1p7beta1.RelatedAssets.class, + com.google.cloud.asset.v1p7beta1.RelatedAssets.Builder.class); } public static final int RELATIONSHIP_ATTRIBUTES_FIELD_NUMBER = 1; private com.google.cloud.asset.v1p7beta1.RelationshipAttributes relationshipAttributes_; /** + * + * *
        * The detailed relation attributes.
        * 
    * * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; + * * @return Whether the relationshipAttributes field is set. */ @java.lang.Override @@ -63,18 +85,25 @@ public boolean hasRelationshipAttributes() { return relationshipAttributes_ != null; } /** + * + * *
        * The detailed relation attributes.
        * 
    * * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; + * * @return The relationshipAttributes. */ @java.lang.Override public com.google.cloud.asset.v1p7beta1.RelationshipAttributes getRelationshipAttributes() { - return relationshipAttributes_ == null ? com.google.cloud.asset.v1p7beta1.RelationshipAttributes.getDefaultInstance() : relationshipAttributes_; + return relationshipAttributes_ == null + ? com.google.cloud.asset.v1p7beta1.RelationshipAttributes.getDefaultInstance() + : relationshipAttributes_; } /** + * + * *
        * The detailed relation attributes.
        * 
    @@ -82,13 +111,16 @@ public com.google.cloud.asset.v1p7beta1.RelationshipAttributes getRelationshipAt * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; */ @java.lang.Override - public com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder getRelationshipAttributesOrBuilder() { + public com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder + getRelationshipAttributesOrBuilder() { return getRelationshipAttributes(); } public static final int ASSETS_FIELD_NUMBER = 2; private java.util.List assets_; /** + * + * *
        * The peer resources of the relationship.
        * 
    @@ -100,6 +132,8 @@ public java.util.List getAssetsLi return assets_; } /** + * + * *
        * The peer resources of the relationship.
        * 
    @@ -107,11 +141,13 @@ public java.util.List getAssetsLi * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ @java.lang.Override - public java.util.List + public java.util.List getAssetsOrBuilderList() { return assets_; } /** + * + * *
        * The peer resources of the relationship.
        * 
    @@ -123,6 +159,8 @@ public int getAssetsCount() { return assets_.size(); } /** + * + * *
        * The peer resources of the relationship.
        * 
    @@ -134,6 +172,8 @@ public com.google.cloud.asset.v1p7beta1.RelatedAsset getAssets(int index) { return assets_.get(index); } /** + * + * *
        * The peer resources of the relationship.
        * 
    @@ -141,12 +181,12 @@ public com.google.cloud.asset.v1p7beta1.RelatedAsset getAssets(int index) { * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ @java.lang.Override - public com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder getAssetsOrBuilder( - int index) { + public com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder getAssetsOrBuilder(int index) { return assets_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -158,8 +198,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (relationshipAttributes_ != null) { output.writeMessage(1, getRelationshipAttributes()); } @@ -176,12 +215,11 @@ public int getSerializedSize() { size = 0; if (relationshipAttributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRelationshipAttributes()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRelationshipAttributes()); } for (int i = 0; i < assets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, assets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, assets_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -191,20 +229,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p7beta1.RelatedAssets)) { return super.equals(obj); } - com.google.cloud.asset.v1p7beta1.RelatedAssets other = (com.google.cloud.asset.v1p7beta1.RelatedAssets) obj; + com.google.cloud.asset.v1p7beta1.RelatedAssets other = + (com.google.cloud.asset.v1p7beta1.RelatedAssets) obj; if (hasRelationshipAttributes() != other.hasRelationshipAttributes()) return false; if (hasRelationshipAttributes()) { - if (!getRelationshipAttributes() - .equals(other.getRelationshipAttributes())) return false; + if (!getRelationshipAttributes().equals(other.getRelationshipAttributes())) return false; } - if (!getAssetsList() - .equals(other.getAssetsList())) return false; + if (!getAssetsList().equals(other.getAssetsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -229,130 +266,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1p7beta1.RelatedAssets parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p7beta1.RelatedAssets parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.RelatedAssets parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.RelatedAssets parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.RelatedAssets 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.asset.v1p7beta1.RelatedAssets parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.RelatedAssets parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.RelatedAssets parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.RelatedAssets parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.RelatedAssets parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p7beta1.RelatedAssets parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.RelatedAssets parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.RelatedAssets parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.RelatedAssets parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.RelatedAssets prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * The detailed related assets with the `relationship_type`.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.RelatedAssets} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.RelatedAssets) com.google.cloud.asset.v1p7beta1.RelatedAssetsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetProto + .internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetProto + .internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.RelatedAssets.class, com.google.cloud.asset.v1p7beta1.RelatedAssets.Builder.class); + com.google.cloud.asset.v1p7beta1.RelatedAssets.class, + com.google.cloud.asset.v1p7beta1.RelatedAssets.Builder.class); } // Construct using com.google.cloud.asset.v1p7beta1.RelatedAssets.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,9 +416,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p7beta1.AssetProto + .internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor; } @java.lang.Override @@ -394,7 +437,8 @@ public com.google.cloud.asset.v1p7beta1.RelatedAssets build() { @java.lang.Override public com.google.cloud.asset.v1p7beta1.RelatedAssets buildPartial() { - com.google.cloud.asset.v1p7beta1.RelatedAssets result = new com.google.cloud.asset.v1p7beta1.RelatedAssets(this); + com.google.cloud.asset.v1p7beta1.RelatedAssets result = + new com.google.cloud.asset.v1p7beta1.RelatedAssets(this); int from_bitField0_ = bitField0_; if (relationshipAttributesBuilder_ == null) { result.relationshipAttributes_ = relationshipAttributes_; @@ -418,38 +462,39 @@ public com.google.cloud.asset.v1p7beta1.RelatedAssets buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p7beta1.RelatedAssets) { - return mergeFrom((com.google.cloud.asset.v1p7beta1.RelatedAssets)other); + return mergeFrom((com.google.cloud.asset.v1p7beta1.RelatedAssets) other); } else { super.mergeFrom(other); return this; @@ -479,9 +524,10 @@ public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.RelatedAssets other) { assetsBuilder_ = null; assets_ = other.assets_; bitField0_ = (bitField0_ & ~0x00000001); - assetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAssetsFieldBuilder() : null; + assetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAssetsFieldBuilder() + : null; } else { assetsBuilder_.addAllMessages(other.assets_); } @@ -513,32 +559,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getRelationshipAttributesFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage( + getRelationshipAttributesFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 10 - case 18: { - com.google.cloud.asset.v1p7beta1.RelatedAsset m = - input.readMessage( - com.google.cloud.asset.v1p7beta1.RelatedAsset.parser(), - extensionRegistry); - if (assetsBuilder_ == null) { - ensureAssetsIsMutable(); - assets_.add(m); - } else { - assetsBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 10 + case 18: + { + com.google.cloud.asset.v1p7beta1.RelatedAsset m = + input.readMessage( + com.google.cloud.asset.v1p7beta1.RelatedAsset.parser(), extensionRegistry); + if (assetsBuilder_ == null) { + ensureAssetsIsMutable(); + assets_.add(m); + } else { + assetsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -548,45 +595,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.asset.v1p7beta1.RelationshipAttributes relationshipAttributes_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.RelationshipAttributes, com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder, com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder> relationshipAttributesBuilder_; + com.google.cloud.asset.v1p7beta1.RelationshipAttributes, + com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder, + com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder> + relationshipAttributesBuilder_; /** + * + * *
          * The detailed relation attributes.
          * 
    * - * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; + * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; + * + * * @return Whether the relationshipAttributes field is set. */ public boolean hasRelationshipAttributes() { return relationshipAttributesBuilder_ != null || relationshipAttributes_ != null; } /** + * + * *
          * The detailed relation attributes.
          * 
    * - * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; + * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; + * + * * @return The relationshipAttributes. */ public com.google.cloud.asset.v1p7beta1.RelationshipAttributes getRelationshipAttributes() { if (relationshipAttributesBuilder_ == null) { - return relationshipAttributes_ == null ? com.google.cloud.asset.v1p7beta1.RelationshipAttributes.getDefaultInstance() : relationshipAttributes_; + return relationshipAttributes_ == null + ? com.google.cloud.asset.v1p7beta1.RelationshipAttributes.getDefaultInstance() + : relationshipAttributes_; } else { return relationshipAttributesBuilder_.getMessage(); } } /** + * + * *
          * The detailed relation attributes.
          * 
    * - * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; + * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; + * */ - public Builder setRelationshipAttributes(com.google.cloud.asset.v1p7beta1.RelationshipAttributes value) { + public Builder setRelationshipAttributes( + com.google.cloud.asset.v1p7beta1.RelationshipAttributes value) { if (relationshipAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -600,11 +665,14 @@ public Builder setRelationshipAttributes(com.google.cloud.asset.v1p7beta1.Relati return this; } /** + * + * *
          * The detailed relation attributes.
          * 
    * - * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; + * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; + * */ public Builder setRelationshipAttributes( com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder builderForValue) { @@ -618,17 +686,24 @@ public Builder setRelationshipAttributes( return this; } /** + * + * *
          * The detailed relation attributes.
          * 
    * - * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; + * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; + * */ - public Builder mergeRelationshipAttributes(com.google.cloud.asset.v1p7beta1.RelationshipAttributes value) { + public Builder mergeRelationshipAttributes( + com.google.cloud.asset.v1p7beta1.RelationshipAttributes value) { if (relationshipAttributesBuilder_ == null) { if (relationshipAttributes_ != null) { relationshipAttributes_ = - com.google.cloud.asset.v1p7beta1.RelationshipAttributes.newBuilder(relationshipAttributes_).mergeFrom(value).buildPartial(); + com.google.cloud.asset.v1p7beta1.RelationshipAttributes.newBuilder( + relationshipAttributes_) + .mergeFrom(value) + .buildPartial(); } else { relationshipAttributes_ = value; } @@ -640,11 +715,14 @@ public Builder mergeRelationshipAttributes(com.google.cloud.asset.v1p7beta1.Rela return this; } /** + * + * *
          * The detailed relation attributes.
          * 
    * - * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; + * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; + * */ public Builder clearRelationshipAttributes() { if (relationshipAttributesBuilder_ == null) { @@ -658,66 +736,87 @@ public Builder clearRelationshipAttributes() { return this; } /** + * + * *
          * The detailed relation attributes.
          * 
    * - * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; + * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; + * */ - public com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder getRelationshipAttributesBuilder() { - + public com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder + getRelationshipAttributesBuilder() { + onChanged(); return getRelationshipAttributesFieldBuilder().getBuilder(); } /** + * + * *
          * The detailed relation attributes.
          * 
    * - * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; + * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; + * */ - public com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder getRelationshipAttributesOrBuilder() { + public com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder + getRelationshipAttributesOrBuilder() { if (relationshipAttributesBuilder_ != null) { return relationshipAttributesBuilder_.getMessageOrBuilder(); } else { - return relationshipAttributes_ == null ? - com.google.cloud.asset.v1p7beta1.RelationshipAttributes.getDefaultInstance() : relationshipAttributes_; + return relationshipAttributes_ == null + ? com.google.cloud.asset.v1p7beta1.RelationshipAttributes.getDefaultInstance() + : relationshipAttributes_; } } /** + * + * *
          * The detailed relation attributes.
          * 
    * - * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; + * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.RelationshipAttributes, com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder, com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder> + com.google.cloud.asset.v1p7beta1.RelationshipAttributes, + com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder, + com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder> getRelationshipAttributesFieldBuilder() { if (relationshipAttributesBuilder_ == null) { - relationshipAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.RelationshipAttributes, com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder, com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder>( - getRelationshipAttributes(), - getParentForChildren(), - isClean()); + relationshipAttributesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1p7beta1.RelationshipAttributes, + com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder, + com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder>( + getRelationshipAttributes(), getParentForChildren(), isClean()); relationshipAttributes_ = null; } return relationshipAttributesBuilder_; } private java.util.List assets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAssetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assets_ = new java.util.ArrayList(assets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.RelatedAsset, com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder, com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder> assetsBuilder_; + com.google.cloud.asset.v1p7beta1.RelatedAsset, + com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder, + com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder> + assetsBuilder_; /** + * + * *
          * The peer resources of the relationship.
          * 
    @@ -732,6 +831,8 @@ public java.util.List getAssetsLi } } /** + * + * *
          * The peer resources of the relationship.
          * 
    @@ -746,6 +847,8 @@ public int getAssetsCount() { } } /** + * + * *
          * The peer resources of the relationship.
          * 
    @@ -760,14 +863,15 @@ public com.google.cloud.asset.v1p7beta1.RelatedAsset getAssets(int index) { } } /** + * + * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ - public Builder setAssets( - int index, com.google.cloud.asset.v1p7beta1.RelatedAsset value) { + public Builder setAssets(int index, com.google.cloud.asset.v1p7beta1.RelatedAsset value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -781,6 +885,8 @@ public Builder setAssets( return this; } /** + * + * *
          * The peer resources of the relationship.
          * 
    @@ -799,6 +905,8 @@ public Builder setAssets( return this; } /** + * + * *
          * The peer resources of the relationship.
          * 
    @@ -819,14 +927,15 @@ public Builder addAssets(com.google.cloud.asset.v1p7beta1.RelatedAsset value) { return this; } /** + * + * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ - public Builder addAssets( - int index, com.google.cloud.asset.v1p7beta1.RelatedAsset value) { + public Builder addAssets(int index, com.google.cloud.asset.v1p7beta1.RelatedAsset value) { if (assetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -840,6 +949,8 @@ public Builder addAssets( return this; } /** + * + * *
          * The peer resources of the relationship.
          * 
    @@ -858,6 +969,8 @@ public Builder addAssets( return this; } /** + * + * *
          * The peer resources of the relationship.
          * 
    @@ -876,6 +989,8 @@ public Builder addAssets( return this; } /** + * + * *
          * The peer resources of the relationship.
          * 
    @@ -886,8 +1001,7 @@ public Builder addAllAssets( java.lang.Iterable values) { if (assetsBuilder_ == null) { ensureAssetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, assets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assets_); onChanged(); } else { assetsBuilder_.addAllMessages(values); @@ -895,6 +1009,8 @@ public Builder addAllAssets( return this; } /** + * + * *
          * The peer resources of the relationship.
          * 
    @@ -912,6 +1028,8 @@ public Builder clearAssets() { return this; } /** + * + * *
          * The peer resources of the relationship.
          * 
    @@ -929,39 +1047,44 @@ public Builder removeAssets(int index) { return this; } /** + * + * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ - public com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder getAssetsBuilder( - int index) { + public com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder getAssetsBuilder(int index) { return getAssetsFieldBuilder().getBuilder(index); } /** + * + * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ - public com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder getAssetsOrBuilder( - int index) { + public com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder getAssetsOrBuilder(int index) { if (assetsBuilder_ == null) { - return assets_.get(index); } else { + return assets_.get(index); + } else { return assetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ - public java.util.List - getAssetsOrBuilderList() { + public java.util.List + getAssetsOrBuilderList() { if (assetsBuilder_ != null) { return assetsBuilder_.getMessageOrBuilderList(); } else { @@ -969,6 +1092,8 @@ public com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder getAssetsOrBuilder } } /** + * + * *
          * The peer resources of the relationship.
          * 
    @@ -976,49 +1101,55 @@ public com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder getAssetsOrBuilder * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ public com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder addAssetsBuilder() { - return getAssetsFieldBuilder().addBuilder( - com.google.cloud.asset.v1p7beta1.RelatedAsset.getDefaultInstance()); + return getAssetsFieldBuilder() + .addBuilder(com.google.cloud.asset.v1p7beta1.RelatedAsset.getDefaultInstance()); } /** + * + * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ - public com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder addAssetsBuilder( - int index) { - return getAssetsFieldBuilder().addBuilder( - index, com.google.cloud.asset.v1p7beta1.RelatedAsset.getDefaultInstance()); + public com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder addAssetsBuilder(int index) { + return getAssetsFieldBuilder() + .addBuilder(index, com.google.cloud.asset.v1p7beta1.RelatedAsset.getDefaultInstance()); } /** + * + * *
          * The peer resources of the relationship.
          * 
    * * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ - public java.util.List - getAssetsBuilderList() { + public java.util.List + getAssetsBuilderList() { return getAssetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.RelatedAsset, com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder, com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder> + com.google.cloud.asset.v1p7beta1.RelatedAsset, + com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder, + com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder> getAssetsFieldBuilder() { if (assetsBuilder_ == null) { - assetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.asset.v1p7beta1.RelatedAsset, com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder, com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder>( - assets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + assetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1p7beta1.RelatedAsset, + com.google.cloud.asset.v1p7beta1.RelatedAsset.Builder, + com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder>( + assets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); assets_ = null; } return assetsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1028,12 +1159,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.RelatedAssets) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.RelatedAssets) private static final com.google.cloud.asset.v1p7beta1.RelatedAssets DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.RelatedAssets(); } @@ -1042,27 +1173,27 @@ public static com.google.cloud.asset.v1p7beta1.RelatedAssets getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RelatedAssets parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelatedAssets parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1077,6 +1208,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p7beta1.RelatedAssets getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetsOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetsOrBuilder.java similarity index 72% rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetsOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetsOrBuilder.java index 209d5d21f46a..a3ac416cd3fc 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetsOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelatedAssetsOrBuilder.java @@ -1,49 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/assets.proto package com.google.cloud.asset.v1p7beta1; -public interface RelatedAssetsOrBuilder extends +public interface RelatedAssetsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.RelatedAssets) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The detailed relation attributes.
        * 
    * * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; + * * @return Whether the relationshipAttributes field is set. */ boolean hasRelationshipAttributes(); /** + * + * *
        * The detailed relation attributes.
        * 
    * * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; + * * @return The relationshipAttributes. */ com.google.cloud.asset.v1p7beta1.RelationshipAttributes getRelationshipAttributes(); /** + * + * *
        * The detailed relation attributes.
        * 
    * * .google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1; */ - com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder getRelationshipAttributesOrBuilder(); + com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder + getRelationshipAttributesOrBuilder(); /** + * + * *
        * The peer resources of the relationship.
        * 
    * * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ - java.util.List - getAssetsList(); + java.util.List getAssetsList(); /** + * + * *
        * The peer resources of the relationship.
        * 
    @@ -52,6 +80,8 @@ public interface RelatedAssetsOrBuilder extends */ com.google.cloud.asset.v1p7beta1.RelatedAsset getAssets(int index); /** + * + * *
        * The peer resources of the relationship.
        * 
    @@ -60,21 +90,24 @@ public interface RelatedAssetsOrBuilder extends */ int getAssetsCount(); /** + * + * *
        * The peer resources of the relationship.
        * 
    * * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ - java.util.List + java.util.List getAssetsOrBuilderList(); /** + * + * *
        * The peer resources of the relationship.
        * 
    * * repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2; */ - com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder getAssetsOrBuilder( - int index); + com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder getAssetsOrBuilder(int index); } diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributes.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributes.java similarity index 69% rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributes.java rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributes.java index decfb72d84d7..be4ee6043020 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributes.java +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributes.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/assets.proto package com.google.cloud.asset.v1p7beta1; /** + * + * *
      * The relationship attributes which include  `type`, `source_resource_type`,
      * `target_resource_type` and `action`.
    @@ -11,15 +28,16 @@
      *
      * Protobuf type {@code google.cloud.asset.v1p7beta1.RelationshipAttributes}
      */
    -public final class RelationshipAttributes extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class RelationshipAttributes extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.RelationshipAttributes)
         RelationshipAttributesOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use RelationshipAttributes.newBuilder() to construct.
       private RelationshipAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private RelationshipAttributes() {
         type_ = "";
         sourceResourceType_ = "";
    @@ -29,38 +47,42 @@ private RelationshipAttributes() {
     
       @java.lang.Override
       @SuppressWarnings({"unused"})
    -  protected java.lang.Object newInstance(
    -      UnusedPrivateParameter unused) {
    +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new RelationshipAttributes();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.cloud.asset.v1p7beta1.AssetProto
    +        .internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_fieldAccessorTable
    +    return com.google.cloud.asset.v1p7beta1.AssetProto
    +        .internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.cloud.asset.v1p7beta1.RelationshipAttributes.class, com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder.class);
    +            com.google.cloud.asset.v1p7beta1.RelationshipAttributes.class,
    +            com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder.class);
       }
     
       public static final int TYPE_FIELD_NUMBER = 4;
       private volatile java.lang.Object type_;
       /**
    +   *
    +   *
        * 
        * The unique identifier of the relationship type. Example:
        * `INSTANCE_TO_INSTANCEGROUP`
        * 
    * * string type = 4; + * * @return The type. */ @java.lang.Override @@ -69,30 +91,30 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
        * The unique identifier of the relationship type. Example:
        * `INSTANCE_TO_INSTANCEGROUP`
        * 
    * * string type = 4; + * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -103,11 +125,14 @@ public java.lang.String getType() { public static final int SOURCE_RESOURCE_TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object sourceResourceType_; /** + * + * *
        * The source asset type. Example: `compute.googleapis.com/Instance`
        * 
    * * string source_resource_type = 1; + * * @return The sourceResourceType. */ @java.lang.Override @@ -116,29 +141,29 @@ public java.lang.String getSourceResourceType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceResourceType_ = s; return s; } } /** + * + * *
        * The source asset type. Example: `compute.googleapis.com/Instance`
        * 
    * * string source_resource_type = 1; + * * @return The bytes for sourceResourceType. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceResourceTypeBytes() { + public com.google.protobuf.ByteString getSourceResourceTypeBytes() { java.lang.Object ref = sourceResourceType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceResourceType_ = b; return b; } else { @@ -149,11 +174,14 @@ public java.lang.String getSourceResourceType() { public static final int TARGET_RESOURCE_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object targetResourceType_; /** + * + * *
        * The target asset type. Example: `compute.googleapis.com/Disk`
        * 
    * * string target_resource_type = 2; + * * @return The targetResourceType. */ @java.lang.Override @@ -162,29 +190,29 @@ public java.lang.String getTargetResourceType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetResourceType_ = s; return s; } } /** + * + * *
        * The target asset type. Example: `compute.googleapis.com/Disk`
        * 
    * * string target_resource_type = 2; + * * @return The bytes for targetResourceType. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetResourceTypeBytes() { + public com.google.protobuf.ByteString getTargetResourceTypeBytes() { java.lang.Object ref = targetResourceType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetResourceType_ = b; return b; } else { @@ -195,11 +223,14 @@ public java.lang.String getTargetResourceType() { public static final int ACTION_FIELD_NUMBER = 3; private volatile java.lang.Object action_; /** + * + * *
        * The detail of the relationship, e.g. `contains`, `attaches`
        * 
    * * string action = 3; + * * @return The action. */ @java.lang.Override @@ -208,29 +239,29 @@ public java.lang.String getAction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); action_ = s; return s; } } /** + * + * *
        * The detail of the relationship, e.g. `contains`, `attaches`
        * 
    * * string action = 3; + * * @return The bytes for action. */ @java.lang.Override - public com.google.protobuf.ByteString - getActionBytes() { + public com.google.protobuf.ByteString getActionBytes() { java.lang.Object ref = action_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); action_ = b; return b; } else { @@ -239,6 +270,7 @@ public java.lang.String getAction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,8 +282,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceResourceType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceResourceType_); } @@ -293,21 +324,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p7beta1.RelationshipAttributes)) { return super.equals(obj); } - com.google.cloud.asset.v1p7beta1.RelationshipAttributes other = (com.google.cloud.asset.v1p7beta1.RelationshipAttributes) obj; - - if (!getType() - .equals(other.getType())) return false; - if (!getSourceResourceType() - .equals(other.getSourceResourceType())) return false; - if (!getTargetResourceType() - .equals(other.getTargetResourceType())) return false; - if (!getAction() - .equals(other.getAction())) return false; + com.google.cloud.asset.v1p7beta1.RelationshipAttributes other = + (com.google.cloud.asset.v1p7beta1.RelationshipAttributes) obj; + + if (!getType().equals(other.getType())) return false; + if (!getSourceResourceType().equals(other.getSourceResourceType())) return false; + if (!getTargetResourceType().equals(other.getTargetResourceType())) return false; + if (!getAction().equals(other.getAction())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -333,96 +361,104 @@ public int hashCode() { } public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes 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.asset.v1p7beta1.RelationshipAttributes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.RelationshipAttributes prototype) { + + public static Builder newBuilder( + com.google.cloud.asset.v1p7beta1.RelationshipAttributes prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * The relationship attributes which include  `type`, `source_resource_type`,
        * `target_resource_type` and `action`.
    @@ -430,33 +466,32 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.cloud.asset.v1p7beta1.RelationshipAttributes}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.RelationshipAttributes)
           com.google.cloud.asset.v1p7beta1.RelationshipAttributesOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.cloud.asset.v1p7beta1.AssetProto
    +          .internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_fieldAccessorTable
    +      return com.google.cloud.asset.v1p7beta1.AssetProto
    +          .internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.cloud.asset.v1p7beta1.RelationshipAttributes.class, com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder.class);
    +              com.google.cloud.asset.v1p7beta1.RelationshipAttributes.class,
    +              com.google.cloud.asset.v1p7beta1.RelationshipAttributes.Builder.class);
         }
     
         // Construct using com.google.cloud.asset.v1p7beta1.RelationshipAttributes.newBuilder()
    -    private Builder() {
    +    private Builder() {}
     
    -    }
    -
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -472,9 +507,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.cloud.asset.v1p7beta1.AssetProto
    +          .internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor;
         }
     
         @java.lang.Override
    @@ -493,7 +528,8 @@ public com.google.cloud.asset.v1p7beta1.RelationshipAttributes build() {
     
         @java.lang.Override
         public com.google.cloud.asset.v1p7beta1.RelationshipAttributes buildPartial() {
    -      com.google.cloud.asset.v1p7beta1.RelationshipAttributes result = new com.google.cloud.asset.v1p7beta1.RelationshipAttributes(this);
    +      com.google.cloud.asset.v1p7beta1.RelationshipAttributes result =
    +          new com.google.cloud.asset.v1p7beta1.RelationshipAttributes(this);
           result.type_ = type_;
           result.sourceResourceType_ = sourceResourceType_;
           result.targetResourceType_ = targetResourceType_;
    @@ -506,38 +542,39 @@ public com.google.cloud.asset.v1p7beta1.RelationshipAttributes buildPartial() {
         public Builder clone() {
           return super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        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) {
    +    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) {
    +    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) {
    +        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) {
    +        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.asset.v1p7beta1.RelationshipAttributes) {
    -        return mergeFrom((com.google.cloud.asset.v1p7beta1.RelationshipAttributes)other);
    +        return mergeFrom((com.google.cloud.asset.v1p7beta1.RelationshipAttributes) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -545,7 +582,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
         }
     
         public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.RelationshipAttributes other) {
    -      if (other == com.google.cloud.asset.v1p7beta1.RelationshipAttributes.getDefaultInstance()) return this;
    +      if (other == com.google.cloud.asset.v1p7beta1.RelationshipAttributes.getDefaultInstance())
    +        return this;
           if (!other.getType().isEmpty()) {
             type_ = other.type_;
             onChanged();
    @@ -588,32 +626,37 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
    -            case 10: {
    -              sourceResourceType_ = input.readStringRequireUtf8();
    +            case 10:
    +              {
    +                sourceResourceType_ = input.readStringRequireUtf8();
     
    -              break;
    -            } // case 10
    -            case 18: {
    -              targetResourceType_ = input.readStringRequireUtf8();
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                targetResourceType_ = input.readStringRequireUtf8();
     
    -              break;
    -            } // case 18
    -            case 26: {
    -              action_ = input.readStringRequireUtf8();
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                action_ = input.readStringRequireUtf8();
     
    -              break;
    -            } // case 26
    -            case 34: {
    -              type_ = input.readStringRequireUtf8();
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                type_ = input.readStringRequireUtf8();
     
    -              break;
    -            } // case 34
    -            default: {
    -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    -                done = true; // was an endgroup tag
    -              }
    -              break;
    -            } // default:
    +                break;
    +              } // case 34
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
               } // switch (tag)
             } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    @@ -626,19 +669,21 @@ public Builder mergeFrom(
     
         private java.lang.Object type_ = "";
         /**
    +     *
    +     *
          * 
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string type = 4; + * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -647,21 +692,22 @@ public java.lang.String getType() { } } /** + * + * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string type = 4; + * * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -669,57 +715,64 @@ public java.lang.String getType() { } } /** + * + * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string type = 4; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - java.lang.String value) { + public Builder setType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** + * + * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string type = 4; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** + * + * *
          * The unique identifier of the relationship type. Example:
          * `INSTANCE_TO_INSTANCEGROUP`
          * 
    * * string type = 4; + * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; @@ -727,18 +780,20 @@ public Builder setTypeBytes( private java.lang.Object sourceResourceType_ = ""; /** + * + * *
          * The source asset type. Example: `compute.googleapis.com/Instance`
          * 
    * * string source_resource_type = 1; + * * @return The sourceResourceType. */ public java.lang.String getSourceResourceType() { java.lang.Object ref = sourceResourceType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceResourceType_ = s; return s; @@ -747,20 +802,21 @@ public java.lang.String getSourceResourceType() { } } /** + * + * *
          * The source asset type. Example: `compute.googleapis.com/Instance`
          * 
    * * string source_resource_type = 1; + * * @return The bytes for sourceResourceType. */ - public com.google.protobuf.ByteString - getSourceResourceTypeBytes() { + public com.google.protobuf.ByteString getSourceResourceTypeBytes() { java.lang.Object ref = sourceResourceType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceResourceType_ = b; return b; } else { @@ -768,54 +824,61 @@ public java.lang.String getSourceResourceType() { } } /** + * + * *
          * The source asset type. Example: `compute.googleapis.com/Instance`
          * 
    * * string source_resource_type = 1; + * * @param value The sourceResourceType to set. * @return This builder for chaining. */ - public Builder setSourceResourceType( - java.lang.String value) { + public Builder setSourceResourceType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceResourceType_ = value; onChanged(); return this; } /** + * + * *
          * The source asset type. Example: `compute.googleapis.com/Instance`
          * 
    * * string source_resource_type = 1; + * * @return This builder for chaining. */ public Builder clearSourceResourceType() { - + sourceResourceType_ = getDefaultInstance().getSourceResourceType(); onChanged(); return this; } /** + * + * *
          * The source asset type. Example: `compute.googleapis.com/Instance`
          * 
    * * string source_resource_type = 1; + * * @param value The bytes for sourceResourceType to set. * @return This builder for chaining. */ - public Builder setSourceResourceTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceResourceTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceResourceType_ = value; onChanged(); return this; @@ -823,18 +886,20 @@ public Builder setSourceResourceTypeBytes( private java.lang.Object targetResourceType_ = ""; /** + * + * *
          * The target asset type. Example: `compute.googleapis.com/Disk`
          * 
    * * string target_resource_type = 2; + * * @return The targetResourceType. */ public java.lang.String getTargetResourceType() { java.lang.Object ref = targetResourceType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetResourceType_ = s; return s; @@ -843,20 +908,21 @@ public java.lang.String getTargetResourceType() { } } /** + * + * *
          * The target asset type. Example: `compute.googleapis.com/Disk`
          * 
    * * string target_resource_type = 2; + * * @return The bytes for targetResourceType. */ - public com.google.protobuf.ByteString - getTargetResourceTypeBytes() { + public com.google.protobuf.ByteString getTargetResourceTypeBytes() { java.lang.Object ref = targetResourceType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetResourceType_ = b; return b; } else { @@ -864,54 +930,61 @@ public java.lang.String getTargetResourceType() { } } /** + * + * *
          * The target asset type. Example: `compute.googleapis.com/Disk`
          * 
    * * string target_resource_type = 2; + * * @param value The targetResourceType to set. * @return This builder for chaining. */ - public Builder setTargetResourceType( - java.lang.String value) { + public Builder setTargetResourceType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetResourceType_ = value; onChanged(); return this; } /** + * + * *
          * The target asset type. Example: `compute.googleapis.com/Disk`
          * 
    * * string target_resource_type = 2; + * * @return This builder for chaining. */ public Builder clearTargetResourceType() { - + targetResourceType_ = getDefaultInstance().getTargetResourceType(); onChanged(); return this; } /** + * + * *
          * The target asset type. Example: `compute.googleapis.com/Disk`
          * 
    * * string target_resource_type = 2; + * * @param value The bytes for targetResourceType to set. * @return This builder for chaining. */ - public Builder setTargetResourceTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetResourceTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetResourceType_ = value; onChanged(); return this; @@ -919,18 +992,20 @@ public Builder setTargetResourceTypeBytes( private java.lang.Object action_ = ""; /** + * + * *
          * The detail of the relationship, e.g. `contains`, `attaches`
          * 
    * * string action = 3; + * * @return The action. */ public java.lang.String getAction() { java.lang.Object ref = action_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); action_ = s; return s; @@ -939,20 +1014,21 @@ public java.lang.String getAction() { } } /** + * + * *
          * The detail of the relationship, e.g. `contains`, `attaches`
          * 
    * * string action = 3; + * * @return The bytes for action. */ - public com.google.protobuf.ByteString - getActionBytes() { + public com.google.protobuf.ByteString getActionBytes() { java.lang.Object ref = action_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); action_ = b; return b; } else { @@ -960,61 +1036,68 @@ public java.lang.String getAction() { } } /** + * + * *
          * The detail of the relationship, e.g. `contains`, `attaches`
          * 
    * * string action = 3; + * * @param value The action to set. * @return This builder for chaining. */ - public Builder setAction( - java.lang.String value) { + public Builder setAction(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + action_ = value; onChanged(); return this; } /** + * + * *
          * The detail of the relationship, e.g. `contains`, `attaches`
          * 
    * * string action = 3; + * * @return This builder for chaining. */ public Builder clearAction() { - + action_ = getDefaultInstance().getAction(); onChanged(); return this; } /** + * + * *
          * The detail of the relationship, e.g. `contains`, `attaches`
          * 
    * * string action = 3; + * * @param value The bytes for action to set. * @return This builder for chaining. */ - public Builder setActionBytes( - com.google.protobuf.ByteString value) { + public Builder setActionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + action_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1024,12 +1107,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.RelationshipAttributes) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.RelationshipAttributes) private static final com.google.cloud.asset.v1p7beta1.RelationshipAttributes DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.RelationshipAttributes(); } @@ -1038,27 +1121,27 @@ public static com.google.cloud.asset.v1p7beta1.RelationshipAttributes getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RelationshipAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelationshipAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1073,6 +1156,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p7beta1.RelationshipAttributes getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributesOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributesOrBuilder.java similarity index 66% rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributesOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributesOrBuilder.java index 1f2a45eb68e5..8df443f22816 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributesOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/RelationshipAttributesOrBuilder.java @@ -1,91 +1,127 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/assets.proto package com.google.cloud.asset.v1p7beta1; -public interface RelationshipAttributesOrBuilder extends +public interface RelationshipAttributesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.RelationshipAttributes) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The unique identifier of the relationship type. Example:
        * `INSTANCE_TO_INSTANCEGROUP`
        * 
    * * string type = 4; + * * @return The type. */ java.lang.String getType(); /** + * + * *
        * The unique identifier of the relationship type. Example:
        * `INSTANCE_TO_INSTANCEGROUP`
        * 
    * * string type = 4; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
        * The source asset type. Example: `compute.googleapis.com/Instance`
        * 
    * * string source_resource_type = 1; + * * @return The sourceResourceType. */ java.lang.String getSourceResourceType(); /** + * + * *
        * The source asset type. Example: `compute.googleapis.com/Instance`
        * 
    * * string source_resource_type = 1; + * * @return The bytes for sourceResourceType. */ - com.google.protobuf.ByteString - getSourceResourceTypeBytes(); + com.google.protobuf.ByteString getSourceResourceTypeBytes(); /** + * + * *
        * The target asset type. Example: `compute.googleapis.com/Disk`
        * 
    * * string target_resource_type = 2; + * * @return The targetResourceType. */ java.lang.String getTargetResourceType(); /** + * + * *
        * The target asset type. Example: `compute.googleapis.com/Disk`
        * 
    * * string target_resource_type = 2; + * * @return The bytes for targetResourceType. */ - com.google.protobuf.ByteString - getTargetResourceTypeBytes(); + com.google.protobuf.ByteString getTargetResourceTypeBytes(); /** + * + * *
        * The detail of the relationship, e.g. `contains`, `attaches`
        * 
    * * string action = 3; + * * @return The action. */ java.lang.String getAction(); /** + * + * *
        * The detail of the relationship, e.g. `contains`, `attaches`
        * 
    * * string action = 3; + * * @return The bytes for action. */ - com.google.protobuf.ByteString - getActionBytes(); + com.google.protobuf.ByteString getActionBytes(); } diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Resource.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Resource.java similarity index 75% rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Resource.java rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Resource.java index a4431102a272..f606f90e1fc9 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Resource.java +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/Resource.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/assets.proto package com.google.cloud.asset.v1p7beta1; /** + * + * *
      * A representation of a Google Cloud resource.
      * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.Resource} */ -public final class Resource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Resource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.Resource) ResourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Resource.newBuilder() to construct. private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Resource() { version_ = ""; discoveryDocumentUri_ = ""; @@ -30,37 +48,41 @@ private Resource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Resource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetProto + .internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_Resource_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetProto + .internal_static_google_cloud_asset_v1p7beta1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.Resource.class, com.google.cloud.asset.v1p7beta1.Resource.Builder.class); + com.google.cloud.asset.v1p7beta1.Resource.class, + com.google.cloud.asset.v1p7beta1.Resource.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** + * + * *
        * The API version. Example: `v1`
        * 
    * * string version = 1; + * * @return The version. */ @java.lang.Override @@ -69,29 +91,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
        * The API version. Example: `v1`
        * 
    * * string version = 1; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -102,6 +124,8 @@ public java.lang.String getVersion() { public static final int DISCOVERY_DOCUMENT_URI_FIELD_NUMBER = 2; private volatile java.lang.Object discoveryDocumentUri_; /** + * + * *
        * The URL of the discovery document containing the resource's JSON schema.
        * Example:
    @@ -111,6 +135,7 @@ public java.lang.String getVersion() {
        * 
    * * string discovery_document_uri = 2; + * * @return The discoveryDocumentUri. */ @java.lang.Override @@ -119,14 +144,15 @@ public java.lang.String getDiscoveryDocumentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryDocumentUri_ = s; return s; } } /** + * + * *
        * The URL of the discovery document containing the resource's JSON schema.
        * Example:
    @@ -136,16 +162,15 @@ public java.lang.String getDiscoveryDocumentUri() {
        * 
    * * string discovery_document_uri = 2; + * * @return The bytes for discoveryDocumentUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getDiscoveryDocumentUriBytes() { + public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { java.lang.Object ref = discoveryDocumentUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); discoveryDocumentUri_ = b; return b; } else { @@ -156,6 +181,8 @@ public java.lang.String getDiscoveryDocumentUri() { public static final int DISCOVERY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object discoveryName_; /** + * + * *
        * The JSON schema name listed in the discovery document. Example:
        * `Project`
    @@ -164,6 +191,7 @@ public java.lang.String getDiscoveryDocumentUri() {
        * 
    * * string discovery_name = 3; + * * @return The discoveryName. */ @java.lang.Override @@ -172,14 +200,15 @@ public java.lang.String getDiscoveryName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryName_ = s; return s; } } /** + * + * *
        * The JSON schema name listed in the discovery document. Example:
        * `Project`
    @@ -188,16 +217,15 @@ public java.lang.String getDiscoveryName() {
        * 
    * * string discovery_name = 3; + * * @return The bytes for discoveryName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDiscoveryNameBytes() { + public com.google.protobuf.ByteString getDiscoveryNameBytes() { java.lang.Object ref = discoveryName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); discoveryName_ = b; return b; } else { @@ -208,6 +236,8 @@ public java.lang.String getDiscoveryName() { public static final int RESOURCE_URL_FIELD_NUMBER = 4; private volatile java.lang.Object resourceUrl_; /** + * + * *
        * The REST URL for accessing the resource. An HTTP `GET` request using this
        * URL returns the resource itself. Example:
    @@ -216,6 +246,7 @@ public java.lang.String getDiscoveryName() {
        * 
    * * string resource_url = 4; + * * @return The resourceUrl. */ @java.lang.Override @@ -224,14 +255,15 @@ public java.lang.String getResourceUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; } } /** + * + * *
        * The REST URL for accessing the resource. An HTTP `GET` request using this
        * URL returns the resource itself. Example:
    @@ -240,16 +272,15 @@ public java.lang.String getResourceUrl() {
        * 
    * * string resource_url = 4; + * * @return The bytes for resourceUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceUrlBytes() { + public com.google.protobuf.ByteString getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -260,6 +291,8 @@ public java.lang.String getResourceUrl() { public static final int PARENT_FIELD_NUMBER = 5; private volatile java.lang.Object parent_; /** + * + * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -274,6 +307,7 @@ public java.lang.String getResourceUrl() {
        * 
    * * string parent = 5; + * * @return The parent. */ @java.lang.Override @@ -282,14 +316,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -304,16 +339,15 @@ public java.lang.String getParent() {
        * 
    * * string parent = 5; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -324,12 +358,15 @@ public java.lang.String getParent() { public static final int DATA_FIELD_NUMBER = 6; private com.google.protobuf.Struct data_; /** + * + * *
        * The content of the resource, in which some sensitive fields are removed
        * and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; + * * @return Whether the data field is set. */ @java.lang.Override @@ -337,12 +374,15 @@ public boolean hasData() { return data_ != null; } /** + * + * *
        * The content of the resource, in which some sensitive fields are removed
        * and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; + * * @return The data. */ @java.lang.Override @@ -350,6 +390,8 @@ public com.google.protobuf.Struct getData() { return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_; } /** + * + * *
        * The content of the resource, in which some sensitive fields are removed
        * and may not be present.
    @@ -365,12 +407,15 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
       public static final int LOCATION_FIELD_NUMBER = 8;
       private volatile java.lang.Object location_;
       /**
    +   *
    +   *
        * 
        * The location of the resource in Google Cloud, such as its zone and region.
        * For more information, see https://cloud.google.com/about/locations/.
        * 
    * * string location = 8; + * * @return The location. */ @java.lang.Override @@ -379,30 +424,30 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** + * + * *
        * The location of the resource in Google Cloud, such as its zone and region.
        * For more information, see https://cloud.google.com/about/locations/.
        * 
    * * string location = 8; + * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -411,6 +456,7 @@ public java.lang.String getLocation() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -422,8 +468,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } @@ -470,8 +515,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_); } if (data_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getData()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getData()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, location_); @@ -484,30 +528,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.asset.v1p7beta1.Resource)) { return super.equals(obj); } - com.google.cloud.asset.v1p7beta1.Resource other = (com.google.cloud.asset.v1p7beta1.Resource) obj; - - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getDiscoveryDocumentUri() - .equals(other.getDiscoveryDocumentUri())) return false; - if (!getDiscoveryName() - .equals(other.getDiscoveryName())) return false; - if (!getResourceUrl() - .equals(other.getResourceUrl())) return false; - if (!getParent() - .equals(other.getParent())) return false; + com.google.cloud.asset.v1p7beta1.Resource other = + (com.google.cloud.asset.v1p7beta1.Resource) obj; + + if (!getVersion().equals(other.getVersion())) return false; + if (!getDiscoveryDocumentUri().equals(other.getDiscoveryDocumentUri())) return false; + if (!getDiscoveryName().equals(other.getDiscoveryName())) return false; + if (!getResourceUrl().equals(other.getResourceUrl())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasData() != other.hasData()) return false; if (hasData()) { - if (!getData() - .equals(other.getData())) return false; + if (!getData().equals(other.getData())) return false; } - if (!getLocation() - .equals(other.getLocation())) return false; + if (!getLocation().equals(other.getLocation())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -540,130 +578,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.asset.v1p7beta1.Resource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.asset.v1p7beta1.Resource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.Resource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.Resource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.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.asset.v1p7beta1.Resource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.asset.v1p7beta1.Resource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.Resource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.Resource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.asset.v1p7beta1.Resource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.asset.v1p7beta1.Resource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.Resource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.asset.v1p7beta1.Resource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.asset.v1p7beta1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.Resource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * A representation of a Google Cloud resource.
        * 
    * * Protobuf type {@code google.cloud.asset.v1p7beta1.Resource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.Resource) com.google.cloud.asset.v1p7beta1.ResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.asset.v1p7beta1.AssetProto + .internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_Resource_fieldAccessorTable + return com.google.cloud.asset.v1p7beta1.AssetProto + .internal_static_google_cloud_asset_v1p7beta1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.asset.v1p7beta1.Resource.class, com.google.cloud.asset.v1p7beta1.Resource.Builder.class); + com.google.cloud.asset.v1p7beta1.Resource.class, + com.google.cloud.asset.v1p7beta1.Resource.Builder.class); } // Construct using com.google.cloud.asset.v1p7beta1.Resource.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -689,9 +733,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.asset.v1p7beta1.AssetProto.internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.asset.v1p7beta1.AssetProto + .internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor; } @java.lang.Override @@ -710,7 +754,8 @@ public com.google.cloud.asset.v1p7beta1.Resource build() { @java.lang.Override public com.google.cloud.asset.v1p7beta1.Resource buildPartial() { - com.google.cloud.asset.v1p7beta1.Resource result = new com.google.cloud.asset.v1p7beta1.Resource(this); + com.google.cloud.asset.v1p7beta1.Resource result = + new com.google.cloud.asset.v1p7beta1.Resource(this); result.version_ = version_; result.discoveryDocumentUri_ = discoveryDocumentUri_; result.discoveryName_ = discoveryName_; @@ -730,38 +775,39 @@ public com.google.cloud.asset.v1p7beta1.Resource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.asset.v1p7beta1.Resource) { - return mergeFrom((com.google.cloud.asset.v1p7beta1.Resource)other); + return mergeFrom((com.google.cloud.asset.v1p7beta1.Resource) other); } else { super.mergeFrom(other); return this; @@ -823,49 +869,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - version_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - discoveryDocumentUri_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - discoveryName_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - resourceUrl_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - input.readMessage( - getDataFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 50 - case 66: { - location_ = input.readStringRequireUtf8(); - - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + version_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + discoveryDocumentUri_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + discoveryName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + resourceUrl_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + input.readMessage(getDataFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 66: + { + location_ = input.readStringRequireUtf8(); + + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -878,18 +930,20 @@ public Builder mergeFrom( private java.lang.Object version_ = ""; /** + * + * *
          * The API version. Example: `v1`
          * 
    * * string version = 1; + * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -898,20 +952,21 @@ public java.lang.String getVersion() { } } /** + * + * *
          * The API version. Example: `v1`
          * 
    * * string version = 1; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -919,54 +974,61 @@ public java.lang.String getVersion() { } } /** + * + * *
          * The API version. Example: `v1`
          * 
    * * string version = 1; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
          * The API version. Example: `v1`
          * 
    * * string version = 1; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
          * The API version. Example: `v1`
          * 
    * * string version = 1; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -974,6 +1036,8 @@ public Builder setVersionBytes( private java.lang.Object discoveryDocumentUri_ = ""; /** + * + * *
          * The URL of the discovery document containing the resource's JSON schema.
          * Example:
    @@ -983,13 +1047,13 @@ public Builder setVersionBytes(
          * 
    * * string discovery_document_uri = 2; + * * @return The discoveryDocumentUri. */ public java.lang.String getDiscoveryDocumentUri() { java.lang.Object ref = discoveryDocumentUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryDocumentUri_ = s; return s; @@ -998,6 +1062,8 @@ public java.lang.String getDiscoveryDocumentUri() { } } /** + * + * *
          * The URL of the discovery document containing the resource's JSON schema.
          * Example:
    @@ -1007,15 +1073,14 @@ public java.lang.String getDiscoveryDocumentUri() {
          * 
    * * string discovery_document_uri = 2; + * * @return The bytes for discoveryDocumentUri. */ - public com.google.protobuf.ByteString - getDiscoveryDocumentUriBytes() { + public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { java.lang.Object ref = discoveryDocumentUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); discoveryDocumentUri_ = b; return b; } else { @@ -1023,6 +1088,8 @@ public java.lang.String getDiscoveryDocumentUri() { } } /** + * + * *
          * The URL of the discovery document containing the resource's JSON schema.
          * Example:
    @@ -1032,20 +1099,22 @@ public java.lang.String getDiscoveryDocumentUri() {
          * 
    * * string discovery_document_uri = 2; + * * @param value The discoveryDocumentUri to set. * @return This builder for chaining. */ - public Builder setDiscoveryDocumentUri( - java.lang.String value) { + public Builder setDiscoveryDocumentUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + discoveryDocumentUri_ = value; onChanged(); return this; } /** + * + * *
          * The URL of the discovery document containing the resource's JSON schema.
          * Example:
    @@ -1055,15 +1124,18 @@ public Builder setDiscoveryDocumentUri(
          * 
    * * string discovery_document_uri = 2; + * * @return This builder for chaining. */ public Builder clearDiscoveryDocumentUri() { - + discoveryDocumentUri_ = getDefaultInstance().getDiscoveryDocumentUri(); onChanged(); return this; } /** + * + * *
          * The URL of the discovery document containing the resource's JSON schema.
          * Example:
    @@ -1073,16 +1145,16 @@ public Builder clearDiscoveryDocumentUri() {
          * 
    * * string discovery_document_uri = 2; + * * @param value The bytes for discoveryDocumentUri to set. * @return This builder for chaining. */ - public Builder setDiscoveryDocumentUriBytes( - com.google.protobuf.ByteString value) { + public Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + discoveryDocumentUri_ = value; onChanged(); return this; @@ -1090,6 +1162,8 @@ public Builder setDiscoveryDocumentUriBytes( private java.lang.Object discoveryName_ = ""; /** + * + * *
          * The JSON schema name listed in the discovery document. Example:
          * `Project`
    @@ -1098,13 +1172,13 @@ public Builder setDiscoveryDocumentUriBytes(
          * 
    * * string discovery_name = 3; + * * @return The discoveryName. */ public java.lang.String getDiscoveryName() { java.lang.Object ref = discoveryName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discoveryName_ = s; return s; @@ -1113,6 +1187,8 @@ public java.lang.String getDiscoveryName() { } } /** + * + * *
          * The JSON schema name listed in the discovery document. Example:
          * `Project`
    @@ -1121,15 +1197,14 @@ public java.lang.String getDiscoveryName() {
          * 
    * * string discovery_name = 3; + * * @return The bytes for discoveryName. */ - public com.google.protobuf.ByteString - getDiscoveryNameBytes() { + public com.google.protobuf.ByteString getDiscoveryNameBytes() { java.lang.Object ref = discoveryName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); discoveryName_ = b; return b; } else { @@ -1137,6 +1212,8 @@ public java.lang.String getDiscoveryName() { } } /** + * + * *
          * The JSON schema name listed in the discovery document. Example:
          * `Project`
    @@ -1145,20 +1222,22 @@ public java.lang.String getDiscoveryName() {
          * 
    * * string discovery_name = 3; + * * @param value The discoveryName to set. * @return This builder for chaining. */ - public Builder setDiscoveryName( - java.lang.String value) { + public Builder setDiscoveryName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + discoveryName_ = value; onChanged(); return this; } /** + * + * *
          * The JSON schema name listed in the discovery document. Example:
          * `Project`
    @@ -1167,15 +1246,18 @@ public Builder setDiscoveryName(
          * 
    * * string discovery_name = 3; + * * @return This builder for chaining. */ public Builder clearDiscoveryName() { - + discoveryName_ = getDefaultInstance().getDiscoveryName(); onChanged(); return this; } /** + * + * *
          * The JSON schema name listed in the discovery document. Example:
          * `Project`
    @@ -1184,16 +1266,16 @@ public Builder clearDiscoveryName() {
          * 
    * * string discovery_name = 3; + * * @param value The bytes for discoveryName to set. * @return This builder for chaining. */ - public Builder setDiscoveryNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDiscoveryNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + discoveryName_ = value; onChanged(); return this; @@ -1201,6 +1283,8 @@ public Builder setDiscoveryNameBytes( private java.lang.Object resourceUrl_ = ""; /** + * + * *
          * The REST URL for accessing the resource. An HTTP `GET` request using this
          * URL returns the resource itself. Example:
    @@ -1209,13 +1293,13 @@ public Builder setDiscoveryNameBytes(
          * 
    * * string resource_url = 4; + * * @return The resourceUrl. */ public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; @@ -1224,6 +1308,8 @@ public java.lang.String getResourceUrl() { } } /** + * + * *
          * The REST URL for accessing the resource. An HTTP `GET` request using this
          * URL returns the resource itself. Example:
    @@ -1232,15 +1318,14 @@ public java.lang.String getResourceUrl() {
          * 
    * * string resource_url = 4; + * * @return The bytes for resourceUrl. */ - public com.google.protobuf.ByteString - getResourceUrlBytes() { + public com.google.protobuf.ByteString getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -1248,6 +1333,8 @@ public java.lang.String getResourceUrl() { } } /** + * + * *
          * The REST URL for accessing the resource. An HTTP `GET` request using this
          * URL returns the resource itself. Example:
    @@ -1256,20 +1343,22 @@ public java.lang.String getResourceUrl() {
          * 
    * * string resource_url = 4; + * * @param value The resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrl( - java.lang.String value) { + public Builder setResourceUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceUrl_ = value; onChanged(); return this; } /** + * + * *
          * The REST URL for accessing the resource. An HTTP `GET` request using this
          * URL returns the resource itself. Example:
    @@ -1278,15 +1367,18 @@ public Builder setResourceUrl(
          * 
    * * string resource_url = 4; + * * @return This builder for chaining. */ public Builder clearResourceUrl() { - + resourceUrl_ = getDefaultInstance().getResourceUrl(); onChanged(); return this; } /** + * + * *
          * The REST URL for accessing the resource. An HTTP `GET` request using this
          * URL returns the resource itself. Example:
    @@ -1295,16 +1387,16 @@ public Builder clearResourceUrl() {
          * 
    * * string resource_url = 4; + * * @param value The bytes for resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceUrl_ = value; onChanged(); return this; @@ -1312,6 +1404,8 @@ public Builder setResourceUrlBytes( private java.lang.Object parent_ = ""; /** + * + * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1326,13 +1420,13 @@ public Builder setResourceUrlBytes(
          * 
    * * string parent = 5; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1341,6 +1435,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1355,15 +1451,14 @@ public java.lang.String getParent() {
          * 
    * * string parent = 5; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1371,6 +1466,8 @@ public java.lang.String getParent() { } } /** + * + * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1385,20 +1482,22 @@ public java.lang.String getParent() {
          * 
    * * string parent = 5; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1413,15 +1512,18 @@ public Builder setParent(
          * 
    * * string parent = 5; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
          * The full name of the immediate parent of this resource. See
          * [Resource
    @@ -1436,16 +1538,16 @@ public Builder clearParent() {
          * 
    * * string parent = 5; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1453,26 +1555,35 @@ public Builder setParentBytes( private com.google.protobuf.Struct data_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> dataBuilder_; + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + dataBuilder_; /** + * + * *
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
          * 
    * * .google.protobuf.Struct data = 6; + * * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** + * + * *
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
          * 
    * * .google.protobuf.Struct data = 6; + * * @return The data. */ public com.google.protobuf.Struct getData() { @@ -1483,6 +1594,8 @@ public com.google.protobuf.Struct getData() { } } /** + * + * *
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1504,6 +1617,8 @@ public Builder setData(com.google.protobuf.Struct value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1511,8 +1626,7 @@ public Builder setData(com.google.protobuf.Struct value) {
          *
          * .google.protobuf.Struct data = 6;
          */
    -    public Builder setData(
    -        com.google.protobuf.Struct.Builder builderForValue) {
    +    public Builder setData(com.google.protobuf.Struct.Builder builderForValue) {
           if (dataBuilder_ == null) {
             data_ = builderForValue.build();
             onChanged();
    @@ -1523,6 +1637,8 @@ public Builder setData(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1533,8 +1649,7 @@ public Builder setData(
         public Builder mergeData(com.google.protobuf.Struct value) {
           if (dataBuilder_ == null) {
             if (data_ != null) {
    -          data_ =
    -            com.google.protobuf.Struct.newBuilder(data_).mergeFrom(value).buildPartial();
    +          data_ = com.google.protobuf.Struct.newBuilder(data_).mergeFrom(value).buildPartial();
             } else {
               data_ = value;
             }
    @@ -1546,6 +1661,8 @@ public Builder mergeData(com.google.protobuf.Struct value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1565,6 +1682,8 @@ public Builder clearData() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1573,11 +1692,13 @@ public Builder clearData() {
          * .google.protobuf.Struct data = 6;
          */
         public com.google.protobuf.Struct.Builder getDataBuilder() {
    -      
    +
           onChanged();
           return getDataFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1589,11 +1710,12 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
           if (dataBuilder_ != null) {
             return dataBuilder_.getMessageOrBuilder();
           } else {
    -        return data_ == null ?
    -            com.google.protobuf.Struct.getDefaultInstance() : data_;
    +        return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_;
           }
         }
         /**
    +     *
    +     *
          * 
          * The content of the resource, in which some sensitive fields are removed
          * and may not be present.
    @@ -1602,14 +1724,16 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
          * .google.protobuf.Struct data = 6;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
    +            com.google.protobuf.Struct,
    +            com.google.protobuf.Struct.Builder,
    +            com.google.protobuf.StructOrBuilder>
             getDataFieldBuilder() {
           if (dataBuilder_ == null) {
    -        dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
    -                getData(),
    -                getParentForChildren(),
    -                isClean());
    +        dataBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.Struct,
    +                com.google.protobuf.Struct.Builder,
    +                com.google.protobuf.StructOrBuilder>(getData(), getParentForChildren(), isClean());
             data_ = null;
           }
           return dataBuilder_;
    @@ -1617,19 +1741,21 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
     
         private java.lang.Object location_ = "";
         /**
    +     *
    +     *
          * 
          * The location of the resource in Google Cloud, such as its zone and region.
          * For more information, see https://cloud.google.com/about/locations/.
          * 
    * * string location = 8; + * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -1638,21 +1764,22 @@ public java.lang.String getLocation() { } } /** + * + * *
          * The location of the resource in Google Cloud, such as its zone and region.
          * For more information, see https://cloud.google.com/about/locations/.
          * 
    * * string location = 8; + * * @return The bytes for location. */ - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -1660,64 +1787,71 @@ public java.lang.String getLocation() { } } /** + * + * *
          * The location of the resource in Google Cloud, such as its zone and region.
          * For more information, see https://cloud.google.com/about/locations/.
          * 
    * * string location = 8; + * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation( - java.lang.String value) { + public Builder setLocation(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** + * + * *
          * The location of the resource in Google Cloud, such as its zone and region.
          * For more information, see https://cloud.google.com/about/locations/.
          * 
    * * string location = 8; + * * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** + * + * *
          * The location of the resource in Google Cloud, such as its zone and region.
          * For more information, see https://cloud.google.com/about/locations/.
          * 
    * * string location = 8; + * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes( - com.google.protobuf.ByteString value) { + public Builder setLocationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1727,12 +1861,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.Resource) } // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.Resource) private static final com.google.cloud.asset.v1p7beta1.Resource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.Resource(); } @@ -1741,27 +1875,27 @@ public static com.google.cloud.asset.v1p7beta1.Resource getDefaultInstance() { return DEFAULT_INSTANCE; } - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1776,6 +1910,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.asset.v1p7beta1.Resource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ResourceOrBuilder.java b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ResourceOrBuilder.java similarity index 82% rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ResourceOrBuilder.java rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ResourceOrBuilder.java index 18800a75a5f3..d6250c22f274 100644 --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ResourceOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/ResourceOrBuilder.java @@ -1,33 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/asset/v1p7beta1/assets.proto package com.google.cloud.asset.v1p7beta1; -public interface ResourceOrBuilder extends +public interface ResourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p7beta1.Resource) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The API version. Example: `v1`
        * 
    * * string version = 1; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
        * The API version. Example: `v1`
        * 
    * * string version = 1; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
        * The URL of the discovery document containing the resource's JSON schema.
        * Example:
    @@ -37,10 +60,13 @@ public interface ResourceOrBuilder extends
        * 
    * * string discovery_document_uri = 2; + * * @return The discoveryDocumentUri. */ java.lang.String getDiscoveryDocumentUri(); /** + * + * *
        * The URL of the discovery document containing the resource's JSON schema.
        * Example:
    @@ -50,12 +76,14 @@ public interface ResourceOrBuilder extends
        * 
    * * string discovery_document_uri = 2; + * * @return The bytes for discoveryDocumentUri. */ - com.google.protobuf.ByteString - getDiscoveryDocumentUriBytes(); + com.google.protobuf.ByteString getDiscoveryDocumentUriBytes(); /** + * + * *
        * The JSON schema name listed in the discovery document. Example:
        * `Project`
    @@ -64,10 +92,13 @@ public interface ResourceOrBuilder extends
        * 
    * * string discovery_name = 3; + * * @return The discoveryName. */ java.lang.String getDiscoveryName(); /** + * + * *
        * The JSON schema name listed in the discovery document. Example:
        * `Project`
    @@ -76,12 +107,14 @@ public interface ResourceOrBuilder extends
        * 
    * * string discovery_name = 3; + * * @return The bytes for discoveryName. */ - com.google.protobuf.ByteString - getDiscoveryNameBytes(); + com.google.protobuf.ByteString getDiscoveryNameBytes(); /** + * + * *
        * The REST URL for accessing the resource. An HTTP `GET` request using this
        * URL returns the resource itself. Example:
    @@ -90,10 +123,13 @@ public interface ResourceOrBuilder extends
        * 
    * * string resource_url = 4; + * * @return The resourceUrl. */ java.lang.String getResourceUrl(); /** + * + * *
        * The REST URL for accessing the resource. An HTTP `GET` request using this
        * URL returns the resource itself. Example:
    @@ -102,12 +138,14 @@ public interface ResourceOrBuilder extends
        * 
    * * string resource_url = 4; + * * @return The bytes for resourceUrl. */ - com.google.protobuf.ByteString - getResourceUrlBytes(); + com.google.protobuf.ByteString getResourceUrlBytes(); /** + * + * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -122,10 +160,13 @@ public interface ResourceOrBuilder extends
        * 
    * * string parent = 5; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
        * The full name of the immediate parent of this resource. See
        * [Resource
    @@ -140,32 +181,40 @@ public interface ResourceOrBuilder extends
        * 
    * * string parent = 5; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
        * The content of the resource, in which some sensitive fields are removed
        * and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; + * * @return Whether the data field is set. */ boolean hasData(); /** + * + * *
        * The content of the resource, in which some sensitive fields are removed
        * and may not be present.
        * 
    * * .google.protobuf.Struct data = 6; + * * @return The data. */ com.google.protobuf.Struct getData(); /** + * + * *
        * The content of the resource, in which some sensitive fields are removed
        * and may not be present.
    @@ -176,24 +225,29 @@ public interface ResourceOrBuilder extends
       com.google.protobuf.StructOrBuilder getDataOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * The location of the resource in Google Cloud, such as its zone and region.
        * For more information, see https://cloud.google.com/about/locations/.
        * 
    * * string location = 8; + * * @return The location. */ java.lang.String getLocation(); /** + * + * *
        * The location of the resource in Google Cloud, such as its zone and region.
        * For more information, see https://cloud.google.com/about/locations/.
        * 
    * * string location = 8; + * * @return The bytes for location. */ - com.google.protobuf.ByteString - getLocationBytes(); + com.google.protobuf.ByteString getLocationBytes(); } diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/proto/google/cloud/asset/v1p7beta1/asset_service.proto b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/proto/google/cloud/asset/v1p7beta1/asset_service.proto similarity index 100% rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/proto/google/cloud/asset/v1p7beta1/asset_service.proto rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/proto/google/cloud/asset/v1p7beta1/asset_service.proto diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/proto/google/cloud/asset/v1p7beta1/assets.proto b/java-asset/proto-google-cloud-asset-v1p7beta1/src/main/proto/google/cloud/asset/v1p7beta1/assets.proto similarity index 100% rename from owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/proto/google/cloud/asset/v1p7beta1/assets.proto rename to java-asset/proto-google-cloud-asset-v1p7beta1/src/main/proto/google/cloud/asset/v1p7beta1/assets.proto diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AsyncAnalyzeIamPolicy.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AsyncAnalyzeIamPolicy.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AsyncAnalyzeIamPolicy.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/AsyncAnalyzeIamPolicy.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/SyncAnalyzeIamPolicy.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/SyncAnalyzeIamPolicy.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/SyncAnalyzeIamPolicy.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicy/SyncAnalyzeIamPolicy.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AsyncAnalyzeMove.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AsyncAnalyzeMove.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AsyncAnalyzeMove.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzemove/AsyncAnalyzeMove.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzemove/SyncAnalyzeMove.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzemove/SyncAnalyzeMove.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzemove/SyncAnalyzeMove.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/analyzemove/SyncAnalyzeMove.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/AsyncBatchGetAssetsHistory.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/AsyncBatchGetAssetsHistory.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/AsyncBatchGetAssetsHistory.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/AsyncBatchGetAssetsHistory.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/SyncBatchGetAssetsHistory.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/SyncBatchGetAssetsHistory.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/SyncBatchGetAssetsHistory.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgetassetshistory/SyncBatchGetAssetsHistory.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgeteffectiveiampolicies/AsyncBatchGetEffectiveIamPolicies.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgeteffectiveiampolicies/AsyncBatchGetEffectiveIamPolicies.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgeteffectiveiampolicies/AsyncBatchGetEffectiveIamPolicies.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgeteffectiveiampolicies/AsyncBatchGetEffectiveIamPolicies.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgeteffectiveiampolicies/SyncBatchGetEffectiveIamPolicies.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgeteffectiveiampolicies/SyncBatchGetEffectiveIamPolicies.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgeteffectiveiampolicies/SyncBatchGetEffectiveIamPolicies.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/batchgeteffectiveiampolicies/SyncBatchGetEffectiveIamPolicies.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetEndpoint.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetEndpoint.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/AsyncCreateFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/AsyncCreateFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/AsyncCreateFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/AsyncCreateFeed.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeed.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeedString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeedString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeedString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createfeed/SyncCreateFeedString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/AsyncCreateSavedQuery.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/AsyncCreateSavedQuery.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/AsyncCreateSavedQuery.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/AsyncCreateSavedQuery.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQuery.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQuery.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQuery.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQuery.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryFoldernameSavedqueryString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryFoldernameSavedqueryString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryFoldernameSavedqueryString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryFoldernameSavedqueryString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryOrganizationnameSavedqueryString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryOrganizationnameSavedqueryString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryOrganizationnameSavedqueryString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryOrganizationnameSavedqueryString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryProjectnameSavedqueryString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryProjectnameSavedqueryString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryProjectnameSavedqueryString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryProjectnameSavedqueryString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryStringSavedqueryString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryStringSavedqueryString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryStringSavedqueryString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/createsavedquery/SyncCreateSavedQueryStringSavedqueryString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/AsyncDeleteFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/AsyncDeleteFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/AsyncDeleteFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/AsyncDeleteFeed.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeed.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletefeed/SyncDeleteFeedString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/AsyncDeleteSavedQuery.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/AsyncDeleteSavedQuery.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/AsyncDeleteSavedQuery.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/AsyncDeleteSavedQuery.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQuery.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQuery.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQuery.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQuery.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQuerySavedqueryname.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQuerySavedqueryname.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQuerySavedqueryname.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQuerySavedqueryname.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQueryString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQueryString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQueryString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/deletesavedquery/SyncDeleteSavedQueryString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssets.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssets.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssets.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssets.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssetsLRO.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssetsLRO.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssetsLRO.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/AsyncExportAssetsLRO.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/SyncExportAssets.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/SyncExportAssets.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/SyncExportAssets.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/exportassets/SyncExportAssets.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/AsyncGetFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/AsyncGetFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/AsyncGetFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/AsyncGetFeed.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeed.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedFeedname.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedFeedname.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedFeedname.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedFeedname.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getfeed/SyncGetFeedString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/AsyncGetSavedQuery.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/AsyncGetSavedQuery.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/AsyncGetSavedQuery.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/AsyncGetSavedQuery.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQuery.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQuery.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQuery.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQuery.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQuerySavedqueryname.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQuerySavedqueryname.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQuerySavedqueryname.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQuerySavedqueryname.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQueryString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQueryString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQueryString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/getsavedquery/SyncGetSavedQueryString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssets.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssets.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssets.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssets.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssetsPaged.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssetsPaged.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssetsPaged.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssetsPaged.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssets.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssets.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssets.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssets.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsResourcename.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsResourcename.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsResourcename.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsResourcename.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listassets/SyncListAssetsString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/AsyncListFeeds.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/AsyncListFeeds.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/AsyncListFeeds.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/AsyncListFeeds.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeeds.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeeds.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeeds.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeeds.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeedsString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeedsString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeedsString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listfeeds/SyncListFeedsString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/AsyncListSavedQueries.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/AsyncListSavedQueries.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/AsyncListSavedQueries.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/AsyncListSavedQueries.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/AsyncListSavedQueriesPaged.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/AsyncListSavedQueriesPaged.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/AsyncListSavedQueriesPaged.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/AsyncListSavedQueriesPaged.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueries.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueries.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueries.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueries.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesFoldername.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesFoldername.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesFoldername.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesFoldername.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesOrganizationname.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesOrganizationname.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesOrganizationname.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesOrganizationname.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesProjectname.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesProjectname.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesProjectname.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesProjectname.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/listsavedqueries/SyncListSavedQueriesString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/queryassets/AsyncQueryAssets.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/queryassets/AsyncQueryAssets.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/queryassets/AsyncQueryAssets.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/queryassets/AsyncQueryAssets.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/queryassets/SyncQueryAssets.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/queryassets/SyncQueryAssets.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/queryassets/SyncQueryAssets.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/queryassets/SyncQueryAssets.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPolicies.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPolicies.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPolicies.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPolicies.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResources.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResources.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResources.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResources.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResources.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResources.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResources.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResources.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/AsyncUpdateFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/AsyncUpdateFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/AsyncUpdateFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/AsyncUpdateFeed.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeed.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/AsyncUpdateSavedQuery.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/AsyncUpdateSavedQuery.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/AsyncUpdateSavedQuery.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/AsyncUpdateSavedQuery.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/SyncUpdateSavedQuery.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/SyncUpdateSavedQuery.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/SyncUpdateSavedQuery.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/SyncUpdateSavedQuery.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/SyncUpdateSavedQuerySavedqueryFieldmask.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/SyncUpdateSavedQuerySavedqueryFieldmask.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/SyncUpdateSavedQuerySavedqueryFieldmask.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetserviceclient/updatesavedquery/SyncUpdateSavedQuerySavedqueryFieldmask.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservicesettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/stub/assetservicestubsettings/batchgetassetshistory/SyncBatchGetAssetsHistory.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetEndpoint.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetEndpoint.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPolicies.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPolicies.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPolicies.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPolicies.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPolicies.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/AsyncSearchAllResources.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/AsyncSearchAllResources.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/AsyncSearchAllResources.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/AsyncSearchAllResources.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/SyncSearchAllResources.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/SyncSearchAllResources.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/SyncSearchAllResources.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/SyncSearchAllResources.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetserviceclient/searchallresources/SyncSearchAllResourcesStringStringListstring.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservicesettings/searchallresources/SyncSearchAllResources.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservicesettings/searchallresources/SyncSearchAllResources.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservicesettings/searchallresources/SyncSearchAllResources.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservicesettings/searchallresources/SyncSearchAllResources.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/stub/assetservicestubsettings/searchallresources/SyncSearchAllResources.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/stub/assetservicestubsettings/searchallresources/SyncSearchAllResources.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/stub/assetservicestubsettings/searchallresources/SyncSearchAllResources.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/stub/assetservicestubsettings/searchallresources/SyncSearchAllResources.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetEndpoint.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetEndpoint.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/AsyncCreateFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/AsyncCreateFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/AsyncCreateFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/AsyncCreateFeed.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/SyncCreateFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/SyncCreateFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/SyncCreateFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/SyncCreateFeed.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/SyncCreateFeedString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/SyncCreateFeedString.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/SyncCreateFeedString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/createfeed/SyncCreateFeedString.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/AsyncDeleteFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/AsyncDeleteFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/AsyncDeleteFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/AsyncDeleteFeed.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeed.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeedFeedname.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeedString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeedString.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeedString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/deletefeed/SyncDeleteFeedString.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/AsyncGetFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/AsyncGetFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/AsyncGetFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/AsyncGetFeed.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeed.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeedFeedname.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeedFeedname.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeedFeedname.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeedFeedname.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeedString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeedString.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeedString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/getfeed/SyncGetFeedString.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/AsyncListFeeds.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/AsyncListFeeds.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/AsyncListFeeds.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/AsyncListFeeds.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/SyncListFeeds.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/SyncListFeeds.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/SyncListFeeds.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/SyncListFeeds.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/SyncListFeedsString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/SyncListFeedsString.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/SyncListFeedsString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/listfeeds/SyncListFeedsString.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/AsyncUpdateFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/AsyncUpdateFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/AsyncUpdateFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/AsyncUpdateFeed.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/SyncUpdateFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/SyncUpdateFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/SyncUpdateFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/SyncUpdateFeed.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetserviceclient/updatefeed/SyncUpdateFeedFeed.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservicesettings/createfeed/SyncCreateFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservicesettings/createfeed/SyncCreateFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservicesettings/createfeed/SyncCreateFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservicesettings/createfeed/SyncCreateFeed.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/stub/assetservicestubsettings/createfeed/SyncCreateFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/stub/assetservicestubsettings/createfeed/SyncCreateFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/stub/assetservicestubsettings/createfeed/SyncCreateFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/stub/assetservicestubsettings/createfeed/SyncCreateFeed.java diff --git a/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetEndpoint.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetEndpoint.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/AsyncListAssets.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/AsyncListAssets.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/AsyncListAssets.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/AsyncListAssets.java diff --git a/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/AsyncListAssetsPaged.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/AsyncListAssetsPaged.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/AsyncListAssetsPaged.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/AsyncListAssetsPaged.java diff --git a/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/SyncListAssets.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/SyncListAssets.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/SyncListAssets.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetserviceclient/listassets/SyncListAssets.java diff --git a/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservicesettings/listassets/SyncListAssets.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservicesettings/listassets/SyncListAssets.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservicesettings/listassets/SyncListAssets.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservicesettings/listassets/SyncListAssets.java diff --git a/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/stub/assetservicestubsettings/listassets/SyncListAssets.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/stub/assetservicestubsettings/listassets/SyncListAssets.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/stub/assetservicestubsettings/listassets/SyncListAssets.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/stub/assetservicestubsettings/listassets/SyncListAssets.java diff --git a/owl-bot-staging/java-asset/v1/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java b/owl-bot-staging/java-asset/v1/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java deleted file mode 100644 index c32da355167a..000000000000 --- a/owl-bot-staging/java-asset/v1/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java +++ /dev/null @@ -1,2121 +0,0 @@ -package com.google.cloud.asset.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
    - * Asset service definition.
    - * 
    - */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/asset/v1/asset_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AssetServiceGrpc { - - private AssetServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.asset.v1.AssetService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getExportAssetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExportAssets", - requestType = com.google.cloud.asset.v1.ExportAssetsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getExportAssetsMethod() { - io.grpc.MethodDescriptor getExportAssetsMethod; - if ((getExportAssetsMethod = AssetServiceGrpc.getExportAssetsMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getExportAssetsMethod = AssetServiceGrpc.getExportAssetsMethod) == null) { - AssetServiceGrpc.getExportAssetsMethod = getExportAssetsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportAssets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.ExportAssetsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ExportAssets")) - .build(); - } - } - } - return getExportAssetsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListAssetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAssets", - requestType = com.google.cloud.asset.v1.ListAssetsRequest.class, - responseType = com.google.cloud.asset.v1.ListAssetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListAssetsMethod() { - io.grpc.MethodDescriptor getListAssetsMethod; - if ((getListAssetsMethod = AssetServiceGrpc.getListAssetsMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getListAssetsMethod = AssetServiceGrpc.getListAssetsMethod) == null) { - AssetServiceGrpc.getListAssetsMethod = getListAssetsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAssets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.ListAssetsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.ListAssetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ListAssets")) - .build(); - } - } - } - return getListAssetsMethod; - } - - private static volatile io.grpc.MethodDescriptor getBatchGetAssetsHistoryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchGetAssetsHistory", - requestType = com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.class, - responseType = com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBatchGetAssetsHistoryMethod() { - io.grpc.MethodDescriptor getBatchGetAssetsHistoryMethod; - if ((getBatchGetAssetsHistoryMethod = AssetServiceGrpc.getBatchGetAssetsHistoryMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getBatchGetAssetsHistoryMethod = AssetServiceGrpc.getBatchGetAssetsHistoryMethod) == null) { - AssetServiceGrpc.getBatchGetAssetsHistoryMethod = getBatchGetAssetsHistoryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchGetAssetsHistory")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("BatchGetAssetsHistory")) - .build(); - } - } - } - return getBatchGetAssetsHistoryMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateFeedMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFeed", - requestType = com.google.cloud.asset.v1.CreateFeedRequest.class, - responseType = com.google.cloud.asset.v1.Feed.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateFeedMethod() { - io.grpc.MethodDescriptor getCreateFeedMethod; - if ((getCreateFeedMethod = AssetServiceGrpc.getCreateFeedMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getCreateFeedMethod = AssetServiceGrpc.getCreateFeedMethod) == null) { - AssetServiceGrpc.getCreateFeedMethod = getCreateFeedMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFeed")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.CreateFeedRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.Feed.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("CreateFeed")) - .build(); - } - } - } - return getCreateFeedMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetFeedMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFeed", - requestType = com.google.cloud.asset.v1.GetFeedRequest.class, - responseType = com.google.cloud.asset.v1.Feed.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetFeedMethod() { - io.grpc.MethodDescriptor getGetFeedMethod; - if ((getGetFeedMethod = AssetServiceGrpc.getGetFeedMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getGetFeedMethod = AssetServiceGrpc.getGetFeedMethod) == null) { - AssetServiceGrpc.getGetFeedMethod = getGetFeedMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFeed")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.GetFeedRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.Feed.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("GetFeed")) - .build(); - } - } - } - return getGetFeedMethod; - } - - private static volatile io.grpc.MethodDescriptor getListFeedsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFeeds", - requestType = com.google.cloud.asset.v1.ListFeedsRequest.class, - responseType = com.google.cloud.asset.v1.ListFeedsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListFeedsMethod() { - io.grpc.MethodDescriptor getListFeedsMethod; - if ((getListFeedsMethod = AssetServiceGrpc.getListFeedsMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getListFeedsMethod = AssetServiceGrpc.getListFeedsMethod) == null) { - AssetServiceGrpc.getListFeedsMethod = getListFeedsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFeeds")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.ListFeedsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.ListFeedsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ListFeeds")) - .build(); - } - } - } - return getListFeedsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateFeedMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFeed", - requestType = com.google.cloud.asset.v1.UpdateFeedRequest.class, - responseType = com.google.cloud.asset.v1.Feed.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateFeedMethod() { - io.grpc.MethodDescriptor getUpdateFeedMethod; - if ((getUpdateFeedMethod = AssetServiceGrpc.getUpdateFeedMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getUpdateFeedMethod = AssetServiceGrpc.getUpdateFeedMethod) == null) { - AssetServiceGrpc.getUpdateFeedMethod = getUpdateFeedMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFeed")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.UpdateFeedRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.Feed.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("UpdateFeed")) - .build(); - } - } - } - return getUpdateFeedMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteFeedMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteFeed", - requestType = com.google.cloud.asset.v1.DeleteFeedRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteFeedMethod() { - io.grpc.MethodDescriptor getDeleteFeedMethod; - if ((getDeleteFeedMethod = AssetServiceGrpc.getDeleteFeedMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getDeleteFeedMethod = AssetServiceGrpc.getDeleteFeedMethod) == null) { - AssetServiceGrpc.getDeleteFeedMethod = getDeleteFeedMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFeed")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.DeleteFeedRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("DeleteFeed")) - .build(); - } - } - } - return getDeleteFeedMethod; - } - - private static volatile io.grpc.MethodDescriptor getSearchAllResourcesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SearchAllResources", - requestType = com.google.cloud.asset.v1.SearchAllResourcesRequest.class, - responseType = com.google.cloud.asset.v1.SearchAllResourcesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSearchAllResourcesMethod() { - io.grpc.MethodDescriptor getSearchAllResourcesMethod; - if ((getSearchAllResourcesMethod = AssetServiceGrpc.getSearchAllResourcesMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getSearchAllResourcesMethod = AssetServiceGrpc.getSearchAllResourcesMethod) == null) { - AssetServiceGrpc.getSearchAllResourcesMethod = getSearchAllResourcesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchAllResources")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.SearchAllResourcesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.SearchAllResourcesResponse.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("SearchAllResources")) - .build(); - } - } - } - return getSearchAllResourcesMethod; - } - - private static volatile io.grpc.MethodDescriptor getSearchAllIamPoliciesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SearchAllIamPolicies", - requestType = com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.class, - responseType = com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSearchAllIamPoliciesMethod() { - io.grpc.MethodDescriptor getSearchAllIamPoliciesMethod; - if ((getSearchAllIamPoliciesMethod = AssetServiceGrpc.getSearchAllIamPoliciesMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getSearchAllIamPoliciesMethod = AssetServiceGrpc.getSearchAllIamPoliciesMethod) == null) { - AssetServiceGrpc.getSearchAllIamPoliciesMethod = getSearchAllIamPoliciesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchAllIamPolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.SearchAllIamPoliciesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.SearchAllIamPoliciesResponse.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("SearchAllIamPolicies")) - .build(); - } - } - } - return getSearchAllIamPoliciesMethod; - } - - private static volatile io.grpc.MethodDescriptor getAnalyzeIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AnalyzeIamPolicy", - requestType = com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.class, - responseType = com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getAnalyzeIamPolicyMethod() { - io.grpc.MethodDescriptor getAnalyzeIamPolicyMethod; - if ((getAnalyzeIamPolicyMethod = AssetServiceGrpc.getAnalyzeIamPolicyMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getAnalyzeIamPolicyMethod = AssetServiceGrpc.getAnalyzeIamPolicyMethod) == null) { - AssetServiceGrpc.getAnalyzeIamPolicyMethod = getAnalyzeIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnalyzeIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.AnalyzeIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("AnalyzeIamPolicy")) - .build(); - } - } - } - return getAnalyzeIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getAnalyzeIamPolicyLongrunningMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AnalyzeIamPolicyLongrunning", - requestType = com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getAnalyzeIamPolicyLongrunningMethod() { - io.grpc.MethodDescriptor getAnalyzeIamPolicyLongrunningMethod; - if ((getAnalyzeIamPolicyLongrunningMethod = AssetServiceGrpc.getAnalyzeIamPolicyLongrunningMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getAnalyzeIamPolicyLongrunningMethod = AssetServiceGrpc.getAnalyzeIamPolicyLongrunningMethod) == null) { - AssetServiceGrpc.getAnalyzeIamPolicyLongrunningMethod = getAnalyzeIamPolicyLongrunningMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnalyzeIamPolicyLongrunning")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("AnalyzeIamPolicyLongrunning")) - .build(); - } - } - } - return getAnalyzeIamPolicyLongrunningMethod; - } - - private static volatile io.grpc.MethodDescriptor getAnalyzeMoveMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AnalyzeMove", - requestType = com.google.cloud.asset.v1.AnalyzeMoveRequest.class, - responseType = com.google.cloud.asset.v1.AnalyzeMoveResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getAnalyzeMoveMethod() { - io.grpc.MethodDescriptor getAnalyzeMoveMethod; - if ((getAnalyzeMoveMethod = AssetServiceGrpc.getAnalyzeMoveMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getAnalyzeMoveMethod = AssetServiceGrpc.getAnalyzeMoveMethod) == null) { - AssetServiceGrpc.getAnalyzeMoveMethod = getAnalyzeMoveMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AnalyzeMove")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.AnalyzeMoveRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.AnalyzeMoveResponse.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("AnalyzeMove")) - .build(); - } - } - } - return getAnalyzeMoveMethod; - } - - private static volatile io.grpc.MethodDescriptor getQueryAssetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "QueryAssets", - requestType = com.google.cloud.asset.v1.QueryAssetsRequest.class, - responseType = com.google.cloud.asset.v1.QueryAssetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getQueryAssetsMethod() { - io.grpc.MethodDescriptor getQueryAssetsMethod; - if ((getQueryAssetsMethod = AssetServiceGrpc.getQueryAssetsMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getQueryAssetsMethod = AssetServiceGrpc.getQueryAssetsMethod) == null) { - AssetServiceGrpc.getQueryAssetsMethod = getQueryAssetsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryAssets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.QueryAssetsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.QueryAssetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("QueryAssets")) - .build(); - } - } - } - return getQueryAssetsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateSavedQueryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSavedQuery", - requestType = com.google.cloud.asset.v1.CreateSavedQueryRequest.class, - responseType = com.google.cloud.asset.v1.SavedQuery.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateSavedQueryMethod() { - io.grpc.MethodDescriptor getCreateSavedQueryMethod; - if ((getCreateSavedQueryMethod = AssetServiceGrpc.getCreateSavedQueryMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getCreateSavedQueryMethod = AssetServiceGrpc.getCreateSavedQueryMethod) == null) { - AssetServiceGrpc.getCreateSavedQueryMethod = getCreateSavedQueryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSavedQuery")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.CreateSavedQueryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.SavedQuery.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("CreateSavedQuery")) - .build(); - } - } - } - return getCreateSavedQueryMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSavedQueryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSavedQuery", - requestType = com.google.cloud.asset.v1.GetSavedQueryRequest.class, - responseType = com.google.cloud.asset.v1.SavedQuery.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSavedQueryMethod() { - io.grpc.MethodDescriptor getGetSavedQueryMethod; - if ((getGetSavedQueryMethod = AssetServiceGrpc.getGetSavedQueryMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getGetSavedQueryMethod = AssetServiceGrpc.getGetSavedQueryMethod) == null) { - AssetServiceGrpc.getGetSavedQueryMethod = getGetSavedQueryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSavedQuery")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.GetSavedQueryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.SavedQuery.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("GetSavedQuery")) - .build(); - } - } - } - return getGetSavedQueryMethod; - } - - private static volatile io.grpc.MethodDescriptor getListSavedQueriesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSavedQueries", - requestType = com.google.cloud.asset.v1.ListSavedQueriesRequest.class, - responseType = com.google.cloud.asset.v1.ListSavedQueriesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSavedQueriesMethod() { - io.grpc.MethodDescriptor getListSavedQueriesMethod; - if ((getListSavedQueriesMethod = AssetServiceGrpc.getListSavedQueriesMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getListSavedQueriesMethod = AssetServiceGrpc.getListSavedQueriesMethod) == null) { - AssetServiceGrpc.getListSavedQueriesMethod = getListSavedQueriesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSavedQueries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.ListSavedQueriesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.ListSavedQueriesResponse.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ListSavedQueries")) - .build(); - } - } - } - return getListSavedQueriesMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateSavedQueryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSavedQuery", - requestType = com.google.cloud.asset.v1.UpdateSavedQueryRequest.class, - responseType = com.google.cloud.asset.v1.SavedQuery.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateSavedQueryMethod() { - io.grpc.MethodDescriptor getUpdateSavedQueryMethod; - if ((getUpdateSavedQueryMethod = AssetServiceGrpc.getUpdateSavedQueryMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getUpdateSavedQueryMethod = AssetServiceGrpc.getUpdateSavedQueryMethod) == null) { - AssetServiceGrpc.getUpdateSavedQueryMethod = getUpdateSavedQueryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSavedQuery")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.UpdateSavedQueryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.SavedQuery.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("UpdateSavedQuery")) - .build(); - } - } - } - return getUpdateSavedQueryMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteSavedQueryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSavedQuery", - requestType = com.google.cloud.asset.v1.DeleteSavedQueryRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteSavedQueryMethod() { - io.grpc.MethodDescriptor getDeleteSavedQueryMethod; - if ((getDeleteSavedQueryMethod = AssetServiceGrpc.getDeleteSavedQueryMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getDeleteSavedQueryMethod = AssetServiceGrpc.getDeleteSavedQueryMethod) == null) { - AssetServiceGrpc.getDeleteSavedQueryMethod = getDeleteSavedQueryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSavedQuery")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.DeleteSavedQueryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("DeleteSavedQuery")) - .build(); - } - } - } - return getDeleteSavedQueryMethod; - } - - private static volatile io.grpc.MethodDescriptor getBatchGetEffectiveIamPoliciesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchGetEffectiveIamPolicies", - requestType = com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.class, - responseType = com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBatchGetEffectiveIamPoliciesMethod() { - io.grpc.MethodDescriptor getBatchGetEffectiveIamPoliciesMethod; - if ((getBatchGetEffectiveIamPoliciesMethod = AssetServiceGrpc.getBatchGetEffectiveIamPoliciesMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getBatchGetEffectiveIamPoliciesMethod = AssetServiceGrpc.getBatchGetEffectiveIamPoliciesMethod) == null) { - AssetServiceGrpc.getBatchGetEffectiveIamPoliciesMethod = getBatchGetEffectiveIamPoliciesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchGetEffectiveIamPolicies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("BatchGetEffectiveIamPolicies")) - .build(); - } - } - } - return getBatchGetEffectiveIamPoliciesMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static AssetServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceStub(channel, callOptions); - } - }; - return AssetServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AssetServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceBlockingStub(channel, callOptions); - } - }; - return AssetServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static AssetServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceFutureStub(channel, callOptions); - } - }; - return AssetServiceFutureStub.newStub(factory, channel); - } - - /** - *
    -   * Asset service definition.
    -   * 
    - */ - public static abstract class AssetServiceImplBase implements io.grpc.BindableService { - - /** - *
    -     * Exports assets with time and resource types to a given Cloud Storage
    -     * location/BigQuery table. For Cloud Storage location destinations, the
    -     * output format is newline-delimited JSON. Each line represents a
    -     * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON format; for BigQuery table
    -     * destinations, the output table stores the fields in asset Protobuf as
    -     * columns. This API implements the [google.longrunning.Operation][google.longrunning.Operation] API,
    -     * which allows you to keep track of the export. We recommend intervals of at
    -     * least 2 seconds with exponential retry to poll the export operation result.
    -     * For regular-size resource parent, the export operation usually finishes
    -     * within 5 minutes.
    -     * 
    - */ - public void exportAssets(com.google.cloud.asset.v1.ExportAssetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportAssetsMethod(), responseObserver); - } - - /** - *
    -     * Lists assets with time and resource types and returns paged results in
    -     * response.
    -     * 
    - */ - public void listAssets(com.google.cloud.asset.v1.ListAssetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAssetsMethod(), responseObserver); - } - - /** - *
    -     * Batch gets the update history of assets that overlap a time window.
    -     * For IAM_POLICY content, this API outputs history when the asset and its
    -     * attached IAM POLICY both exist. This can create gaps in the output history.
    -     * Otherwise, this API outputs history with asset in both non-delete or
    -     * deleted status.
    -     * If a specified asset does not exist, this API returns an INVALID_ARGUMENT
    -     * error.
    -     * 
    - */ - public void batchGetAssetsHistory(com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchGetAssetsHistoryMethod(), responseObserver); - } - - /** - *
    -     * Creates a feed in a parent project/folder/organization to listen to its
    -     * asset updates.
    -     * 
    - */ - public void createFeed(com.google.cloud.asset.v1.CreateFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFeedMethod(), responseObserver); - } - - /** - *
    -     * Gets details about an asset feed.
    -     * 
    - */ - public void getFeed(com.google.cloud.asset.v1.GetFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeedMethod(), responseObserver); - } - - /** - *
    -     * Lists all asset feeds in a parent project/folder/organization.
    -     * 
    - */ - public void listFeeds(com.google.cloud.asset.v1.ListFeedsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFeedsMethod(), responseObserver); - } - - /** - *
    -     * Updates an asset feed configuration.
    -     * 
    - */ - public void updateFeed(com.google.cloud.asset.v1.UpdateFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFeedMethod(), responseObserver); - } - - /** - *
    -     * Deletes an asset feed.
    -     * 
    - */ - public void deleteFeed(com.google.cloud.asset.v1.DeleteFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFeedMethod(), responseObserver); - } - - /** - *
    -     * Searches all Cloud resources within the specified scope, such as a project,
    -     * folder, or organization. The caller must be granted the
    -     * `cloudasset.assets.searchAllResources` permission on the desired scope,
    -     * otherwise the request will be rejected.
    -     * 
    - */ - public void searchAllResources(com.google.cloud.asset.v1.SearchAllResourcesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchAllResourcesMethod(), responseObserver); - } - - /** - *
    -     * Searches all IAM policies within the specified scope, such as a project,
    -     * folder, or organization. The caller must be granted the
    -     * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
    -     * otherwise the request will be rejected.
    -     * 
    - */ - public void searchAllIamPolicies(com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchAllIamPoliciesMethod(), responseObserver); - } - - /** - *
    -     * Analyzes IAM policies to answer which identities have what accesses on
    -     * which resources.
    -     * 
    - */ - public void analyzeIamPolicy(com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAnalyzeIamPolicyMethod(), responseObserver); - } - - /** - *
    -     * Analyzes IAM policies asynchronously to answer which identities have what
    -     * accesses on which resources, and writes the analysis results to a Google
    -     * Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
    -     * output format is the JSON format that represents a
    -     * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. This method implements the
    -     * [google.longrunning.Operation][google.longrunning.Operation], which allows you to track the operation
    -     * status. We recommend intervals of at least 2 seconds with exponential
    -     * backoff retry to poll the operation result. The metadata contains the
    -     * metadata for the long-running operation.
    -     * 
    - */ - public void analyzeIamPolicyLongrunning(com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAnalyzeIamPolicyLongrunningMethod(), responseObserver); - } - - /** - *
    -     * Analyze moving a resource to a specified destination without kicking off
    -     * the actual move. The analysis is best effort depending on the user's
    -     * permissions of viewing different hierarchical policies and configurations.
    -     * The policies and configuration are subject to change before the actual
    -     * resource migration takes place.
    -     * 
    - */ - public void analyzeMove(com.google.cloud.asset.v1.AnalyzeMoveRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAnalyzeMoveMethod(), responseObserver); - } - - /** - *
    -     * Issue a job that queries assets using a SQL statement compatible with
    -     * [BigQuery Standard
    -     * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
    -     * If the query execution finishes within timeout and there's no pagination,
    -     * the full query results will be returned in the `QueryAssetsResponse`.
    -     * Otherwise, full query results can be obtained by issuing extra requests
    -     * with the `job_reference` from the a previous `QueryAssets` call.
    -     * Note, the query result has approximately 10 GB limitation enforced by
    -     * BigQuery
    -     * https://cloud.google.com/bigquery/docs/best-practices-performance-output,
    -     * queries return larger results will result in errors.
    -     * 
    - */ - public void queryAssets(com.google.cloud.asset.v1.QueryAssetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryAssetsMethod(), responseObserver); - } - - /** - *
    -     * Creates a saved query in a parent project/folder/organization.
    -     * 
    - */ - public void createSavedQuery(com.google.cloud.asset.v1.CreateSavedQueryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSavedQueryMethod(), responseObserver); - } - - /** - *
    -     * Gets details about a saved query.
    -     * 
    - */ - public void getSavedQuery(com.google.cloud.asset.v1.GetSavedQueryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSavedQueryMethod(), responseObserver); - } - - /** - *
    -     * Lists all saved queries in a parent project/folder/organization.
    -     * 
    - */ - public void listSavedQueries(com.google.cloud.asset.v1.ListSavedQueriesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSavedQueriesMethod(), responseObserver); - } - - /** - *
    -     * Updates a saved query.
    -     * 
    - */ - public void updateSavedQuery(com.google.cloud.asset.v1.UpdateSavedQueryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSavedQueryMethod(), responseObserver); - } - - /** - *
    -     * Deletes a saved query.
    -     * 
    - */ - public void deleteSavedQuery(com.google.cloud.asset.v1.DeleteSavedQueryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSavedQueryMethod(), responseObserver); - } - - /** - *
    -     * Gets effective IAM policies for a batch of resources.
    -     * 
    - */ - public void batchGetEffectiveIamPolicies(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchGetEffectiveIamPoliciesMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getExportAssetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.ExportAssetsRequest, - com.google.longrunning.Operation>( - this, METHODID_EXPORT_ASSETS))) - .addMethod( - getListAssetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.ListAssetsRequest, - com.google.cloud.asset.v1.ListAssetsResponse>( - this, METHODID_LIST_ASSETS))) - .addMethod( - getBatchGetAssetsHistoryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest, - com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse>( - this, METHODID_BATCH_GET_ASSETS_HISTORY))) - .addMethod( - getCreateFeedMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.CreateFeedRequest, - com.google.cloud.asset.v1.Feed>( - this, METHODID_CREATE_FEED))) - .addMethod( - getGetFeedMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.GetFeedRequest, - com.google.cloud.asset.v1.Feed>( - this, METHODID_GET_FEED))) - .addMethod( - getListFeedsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.ListFeedsRequest, - com.google.cloud.asset.v1.ListFeedsResponse>( - this, METHODID_LIST_FEEDS))) - .addMethod( - getUpdateFeedMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.UpdateFeedRequest, - com.google.cloud.asset.v1.Feed>( - this, METHODID_UPDATE_FEED))) - .addMethod( - getDeleteFeedMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.DeleteFeedRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_FEED))) - .addMethod( - getSearchAllResourcesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.SearchAllResourcesRequest, - com.google.cloud.asset.v1.SearchAllResourcesResponse>( - this, METHODID_SEARCH_ALL_RESOURCES))) - .addMethod( - getSearchAllIamPoliciesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.SearchAllIamPoliciesRequest, - com.google.cloud.asset.v1.SearchAllIamPoliciesResponse>( - this, METHODID_SEARCH_ALL_IAM_POLICIES))) - .addMethod( - getAnalyzeIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.AnalyzeIamPolicyRequest, - com.google.cloud.asset.v1.AnalyzeIamPolicyResponse>( - this, METHODID_ANALYZE_IAM_POLICY))) - .addMethod( - getAnalyzeIamPolicyLongrunningMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest, - com.google.longrunning.Operation>( - this, METHODID_ANALYZE_IAM_POLICY_LONGRUNNING))) - .addMethod( - getAnalyzeMoveMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.AnalyzeMoveRequest, - com.google.cloud.asset.v1.AnalyzeMoveResponse>( - this, METHODID_ANALYZE_MOVE))) - .addMethod( - getQueryAssetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.QueryAssetsRequest, - com.google.cloud.asset.v1.QueryAssetsResponse>( - this, METHODID_QUERY_ASSETS))) - .addMethod( - getCreateSavedQueryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.CreateSavedQueryRequest, - com.google.cloud.asset.v1.SavedQuery>( - this, METHODID_CREATE_SAVED_QUERY))) - .addMethod( - getGetSavedQueryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.GetSavedQueryRequest, - com.google.cloud.asset.v1.SavedQuery>( - this, METHODID_GET_SAVED_QUERY))) - .addMethod( - getListSavedQueriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.ListSavedQueriesRequest, - com.google.cloud.asset.v1.ListSavedQueriesResponse>( - this, METHODID_LIST_SAVED_QUERIES))) - .addMethod( - getUpdateSavedQueryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.UpdateSavedQueryRequest, - com.google.cloud.asset.v1.SavedQuery>( - this, METHODID_UPDATE_SAVED_QUERY))) - .addMethod( - getDeleteSavedQueryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.DeleteSavedQueryRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_SAVED_QUERY))) - .addMethod( - getBatchGetEffectiveIamPoliciesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest, - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse>( - this, METHODID_BATCH_GET_EFFECTIVE_IAM_POLICIES))) - .build(); - } - } - - /** - *
    -   * Asset service definition.
    -   * 
    - */ - public static final class AssetServiceStub extends io.grpc.stub.AbstractAsyncStub { - private AssetServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssetServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceStub(channel, callOptions); - } - - /** - *
    -     * Exports assets with time and resource types to a given Cloud Storage
    -     * location/BigQuery table. For Cloud Storage location destinations, the
    -     * output format is newline-delimited JSON. Each line represents a
    -     * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON format; for BigQuery table
    -     * destinations, the output table stores the fields in asset Protobuf as
    -     * columns. This API implements the [google.longrunning.Operation][google.longrunning.Operation] API,
    -     * which allows you to keep track of the export. We recommend intervals of at
    -     * least 2 seconds with exponential retry to poll the export operation result.
    -     * For regular-size resource parent, the export operation usually finishes
    -     * within 5 minutes.
    -     * 
    - */ - public void exportAssets(com.google.cloud.asset.v1.ExportAssetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportAssetsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Lists assets with time and resource types and returns paged results in
    -     * response.
    -     * 
    - */ - public void listAssets(com.google.cloud.asset.v1.ListAssetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAssetsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Batch gets the update history of assets that overlap a time window.
    -     * For IAM_POLICY content, this API outputs history when the asset and its
    -     * attached IAM POLICY both exist. This can create gaps in the output history.
    -     * Otherwise, this API outputs history with asset in both non-delete or
    -     * deleted status.
    -     * If a specified asset does not exist, this API returns an INVALID_ARGUMENT
    -     * error.
    -     * 
    - */ - public void batchGetAssetsHistory(com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchGetAssetsHistoryMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Creates a feed in a parent project/folder/organization to listen to its
    -     * asset updates.
    -     * 
    - */ - public void createFeed(com.google.cloud.asset.v1.CreateFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFeedMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Gets details about an asset feed.
    -     * 
    - */ - public void getFeed(com.google.cloud.asset.v1.GetFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFeedMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Lists all asset feeds in a parent project/folder/organization.
    -     * 
    - */ - public void listFeeds(com.google.cloud.asset.v1.ListFeedsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFeedsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Updates an asset feed configuration.
    -     * 
    - */ - public void updateFeed(com.google.cloud.asset.v1.UpdateFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFeedMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Deletes an asset feed.
    -     * 
    - */ - public void deleteFeed(com.google.cloud.asset.v1.DeleteFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFeedMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Searches all Cloud resources within the specified scope, such as a project,
    -     * folder, or organization. The caller must be granted the
    -     * `cloudasset.assets.searchAllResources` permission on the desired scope,
    -     * otherwise the request will be rejected.
    -     * 
    - */ - public void searchAllResources(com.google.cloud.asset.v1.SearchAllResourcesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchAllResourcesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Searches all IAM policies within the specified scope, such as a project,
    -     * folder, or organization. The caller must be granted the
    -     * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
    -     * otherwise the request will be rejected.
    -     * 
    - */ - public void searchAllIamPolicies(com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchAllIamPoliciesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Analyzes IAM policies to answer which identities have what accesses on
    -     * which resources.
    -     * 
    - */ - public void analyzeIamPolicy(com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAnalyzeIamPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Analyzes IAM policies asynchronously to answer which identities have what
    -     * accesses on which resources, and writes the analysis results to a Google
    -     * Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
    -     * output format is the JSON format that represents a
    -     * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. This method implements the
    -     * [google.longrunning.Operation][google.longrunning.Operation], which allows you to track the operation
    -     * status. We recommend intervals of at least 2 seconds with exponential
    -     * backoff retry to poll the operation result. The metadata contains the
    -     * metadata for the long-running operation.
    -     * 
    - */ - public void analyzeIamPolicyLongrunning(com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAnalyzeIamPolicyLongrunningMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Analyze moving a resource to a specified destination without kicking off
    -     * the actual move. The analysis is best effort depending on the user's
    -     * permissions of viewing different hierarchical policies and configurations.
    -     * The policies and configuration are subject to change before the actual
    -     * resource migration takes place.
    -     * 
    - */ - public void analyzeMove(com.google.cloud.asset.v1.AnalyzeMoveRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAnalyzeMoveMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Issue a job that queries assets using a SQL statement compatible with
    -     * [BigQuery Standard
    -     * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
    -     * If the query execution finishes within timeout and there's no pagination,
    -     * the full query results will be returned in the `QueryAssetsResponse`.
    -     * Otherwise, full query results can be obtained by issuing extra requests
    -     * with the `job_reference` from the a previous `QueryAssets` call.
    -     * Note, the query result has approximately 10 GB limitation enforced by
    -     * BigQuery
    -     * https://cloud.google.com/bigquery/docs/best-practices-performance-output,
    -     * queries return larger results will result in errors.
    -     * 
    - */ - public void queryAssets(com.google.cloud.asset.v1.QueryAssetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getQueryAssetsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Creates a saved query in a parent project/folder/organization.
    -     * 
    - */ - public void createSavedQuery(com.google.cloud.asset.v1.CreateSavedQueryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSavedQueryMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Gets details about a saved query.
    -     * 
    - */ - public void getSavedQuery(com.google.cloud.asset.v1.GetSavedQueryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSavedQueryMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Lists all saved queries in a parent project/folder/organization.
    -     * 
    - */ - public void listSavedQueries(com.google.cloud.asset.v1.ListSavedQueriesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSavedQueriesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Updates a saved query.
    -     * 
    - */ - public void updateSavedQuery(com.google.cloud.asset.v1.UpdateSavedQueryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSavedQueryMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Deletes a saved query.
    -     * 
    - */ - public void deleteSavedQuery(com.google.cloud.asset.v1.DeleteSavedQueryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSavedQueryMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Gets effective IAM policies for a batch of resources.
    -     * 
    - */ - public void batchGetEffectiveIamPolicies(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchGetEffectiveIamPoliciesMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
    -   * Asset service definition.
    -   * 
    - */ - public static final class AssetServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private AssetServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssetServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceBlockingStub(channel, callOptions); - } - - /** - *
    -     * Exports assets with time and resource types to a given Cloud Storage
    -     * location/BigQuery table. For Cloud Storage location destinations, the
    -     * output format is newline-delimited JSON. Each line represents a
    -     * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON format; for BigQuery table
    -     * destinations, the output table stores the fields in asset Protobuf as
    -     * columns. This API implements the [google.longrunning.Operation][google.longrunning.Operation] API,
    -     * which allows you to keep track of the export. We recommend intervals of at
    -     * least 2 seconds with exponential retry to poll the export operation result.
    -     * For regular-size resource parent, the export operation usually finishes
    -     * within 5 minutes.
    -     * 
    - */ - public com.google.longrunning.Operation exportAssets(com.google.cloud.asset.v1.ExportAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExportAssetsMethod(), getCallOptions(), request); - } - - /** - *
    -     * Lists assets with time and resource types and returns paged results in
    -     * response.
    -     * 
    - */ - public com.google.cloud.asset.v1.ListAssetsResponse listAssets(com.google.cloud.asset.v1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAssetsMethod(), getCallOptions(), request); - } - - /** - *
    -     * Batch gets the update history of assets that overlap a time window.
    -     * For IAM_POLICY content, this API outputs history when the asset and its
    -     * attached IAM POLICY both exist. This can create gaps in the output history.
    -     * Otherwise, this API outputs history with asset in both non-delete or
    -     * deleted status.
    -     * If a specified asset does not exist, this API returns an INVALID_ARGUMENT
    -     * error.
    -     * 
    - */ - public com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse batchGetAssetsHistory(com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchGetAssetsHistoryMethod(), getCallOptions(), request); - } - - /** - *
    -     * Creates a feed in a parent project/folder/organization to listen to its
    -     * asset updates.
    -     * 
    - */ - public com.google.cloud.asset.v1.Feed createFeed(com.google.cloud.asset.v1.CreateFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFeedMethod(), getCallOptions(), request); - } - - /** - *
    -     * Gets details about an asset feed.
    -     * 
    - */ - public com.google.cloud.asset.v1.Feed getFeed(com.google.cloud.asset.v1.GetFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFeedMethod(), getCallOptions(), request); - } - - /** - *
    -     * Lists all asset feeds in a parent project/folder/organization.
    -     * 
    - */ - public com.google.cloud.asset.v1.ListFeedsResponse listFeeds(com.google.cloud.asset.v1.ListFeedsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFeedsMethod(), getCallOptions(), request); - } - - /** - *
    -     * Updates an asset feed configuration.
    -     * 
    - */ - public com.google.cloud.asset.v1.Feed updateFeed(com.google.cloud.asset.v1.UpdateFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFeedMethod(), getCallOptions(), request); - } - - /** - *
    -     * Deletes an asset feed.
    -     * 
    - */ - public com.google.protobuf.Empty deleteFeed(com.google.cloud.asset.v1.DeleteFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFeedMethod(), getCallOptions(), request); - } - - /** - *
    -     * Searches all Cloud resources within the specified scope, such as a project,
    -     * folder, or organization. The caller must be granted the
    -     * `cloudasset.assets.searchAllResources` permission on the desired scope,
    -     * otherwise the request will be rejected.
    -     * 
    - */ - public com.google.cloud.asset.v1.SearchAllResourcesResponse searchAllResources(com.google.cloud.asset.v1.SearchAllResourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchAllResourcesMethod(), getCallOptions(), request); - } - - /** - *
    -     * Searches all IAM policies within the specified scope, such as a project,
    -     * folder, or organization. The caller must be granted the
    -     * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
    -     * otherwise the request will be rejected.
    -     * 
    - */ - public com.google.cloud.asset.v1.SearchAllIamPoliciesResponse searchAllIamPolicies(com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchAllIamPoliciesMethod(), getCallOptions(), request); - } - - /** - *
    -     * Analyzes IAM policies to answer which identities have what accesses on
    -     * which resources.
    -     * 
    - */ - public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse analyzeIamPolicy(com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAnalyzeIamPolicyMethod(), getCallOptions(), request); - } - - /** - *
    -     * Analyzes IAM policies asynchronously to answer which identities have what
    -     * accesses on which resources, and writes the analysis results to a Google
    -     * Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
    -     * output format is the JSON format that represents a
    -     * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. This method implements the
    -     * [google.longrunning.Operation][google.longrunning.Operation], which allows you to track the operation
    -     * status. We recommend intervals of at least 2 seconds with exponential
    -     * backoff retry to poll the operation result. The metadata contains the
    -     * metadata for the long-running operation.
    -     * 
    - */ - public com.google.longrunning.Operation analyzeIamPolicyLongrunning(com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAnalyzeIamPolicyLongrunningMethod(), getCallOptions(), request); - } - - /** - *
    -     * Analyze moving a resource to a specified destination without kicking off
    -     * the actual move. The analysis is best effort depending on the user's
    -     * permissions of viewing different hierarchical policies and configurations.
    -     * The policies and configuration are subject to change before the actual
    -     * resource migration takes place.
    -     * 
    - */ - public com.google.cloud.asset.v1.AnalyzeMoveResponse analyzeMove(com.google.cloud.asset.v1.AnalyzeMoveRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAnalyzeMoveMethod(), getCallOptions(), request); - } - - /** - *
    -     * Issue a job that queries assets using a SQL statement compatible with
    -     * [BigQuery Standard
    -     * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
    -     * If the query execution finishes within timeout and there's no pagination,
    -     * the full query results will be returned in the `QueryAssetsResponse`.
    -     * Otherwise, full query results can be obtained by issuing extra requests
    -     * with the `job_reference` from the a previous `QueryAssets` call.
    -     * Note, the query result has approximately 10 GB limitation enforced by
    -     * BigQuery
    -     * https://cloud.google.com/bigquery/docs/best-practices-performance-output,
    -     * queries return larger results will result in errors.
    -     * 
    - */ - public com.google.cloud.asset.v1.QueryAssetsResponse queryAssets(com.google.cloud.asset.v1.QueryAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getQueryAssetsMethod(), getCallOptions(), request); - } - - /** - *
    -     * Creates a saved query in a parent project/folder/organization.
    -     * 
    - */ - public com.google.cloud.asset.v1.SavedQuery createSavedQuery(com.google.cloud.asset.v1.CreateSavedQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSavedQueryMethod(), getCallOptions(), request); - } - - /** - *
    -     * Gets details about a saved query.
    -     * 
    - */ - public com.google.cloud.asset.v1.SavedQuery getSavedQuery(com.google.cloud.asset.v1.GetSavedQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSavedQueryMethod(), getCallOptions(), request); - } - - /** - *
    -     * Lists all saved queries in a parent project/folder/organization.
    -     * 
    - */ - public com.google.cloud.asset.v1.ListSavedQueriesResponse listSavedQueries(com.google.cloud.asset.v1.ListSavedQueriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSavedQueriesMethod(), getCallOptions(), request); - } - - /** - *
    -     * Updates a saved query.
    -     * 
    - */ - public com.google.cloud.asset.v1.SavedQuery updateSavedQuery(com.google.cloud.asset.v1.UpdateSavedQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSavedQueryMethod(), getCallOptions(), request); - } - - /** - *
    -     * Deletes a saved query.
    -     * 
    - */ - public com.google.protobuf.Empty deleteSavedQuery(com.google.cloud.asset.v1.DeleteSavedQueryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSavedQueryMethod(), getCallOptions(), request); - } - - /** - *
    -     * Gets effective IAM policies for a batch of resources.
    -     * 
    - */ - public com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse batchGetEffectiveIamPolicies(com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchGetEffectiveIamPoliciesMethod(), getCallOptions(), request); - } - } - - /** - *
    -   * Asset service definition.
    -   * 
    - */ - public static final class AssetServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private AssetServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssetServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceFutureStub(channel, callOptions); - } - - /** - *
    -     * Exports assets with time and resource types to a given Cloud Storage
    -     * location/BigQuery table. For Cloud Storage location destinations, the
    -     * output format is newline-delimited JSON. Each line represents a
    -     * [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON format; for BigQuery table
    -     * destinations, the output table stores the fields in asset Protobuf as
    -     * columns. This API implements the [google.longrunning.Operation][google.longrunning.Operation] API,
    -     * which allows you to keep track of the export. We recommend intervals of at
    -     * least 2 seconds with exponential retry to poll the export operation result.
    -     * For regular-size resource parent, the export operation usually finishes
    -     * within 5 minutes.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture exportAssets( - com.google.cloud.asset.v1.ExportAssetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getExportAssetsMethod(), getCallOptions()), request); - } - - /** - *
    -     * Lists assets with time and resource types and returns paged results in
    -     * response.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture listAssets( - com.google.cloud.asset.v1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAssetsMethod(), getCallOptions()), request); - } - - /** - *
    -     * Batch gets the update history of assets that overlap a time window.
    -     * For IAM_POLICY content, this API outputs history when the asset and its
    -     * attached IAM POLICY both exist. This can create gaps in the output history.
    -     * Otherwise, this API outputs history with asset in both non-delete or
    -     * deleted status.
    -     * If a specified asset does not exist, this API returns an INVALID_ARGUMENT
    -     * error.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture batchGetAssetsHistory( - com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchGetAssetsHistoryMethod(), getCallOptions()), request); - } - - /** - *
    -     * Creates a feed in a parent project/folder/organization to listen to its
    -     * asset updates.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture createFeed( - com.google.cloud.asset.v1.CreateFeedRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFeedMethod(), getCallOptions()), request); - } - - /** - *
    -     * Gets details about an asset feed.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture getFeed( - com.google.cloud.asset.v1.GetFeedRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFeedMethod(), getCallOptions()), request); - } - - /** - *
    -     * Lists all asset feeds in a parent project/folder/organization.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture listFeeds( - com.google.cloud.asset.v1.ListFeedsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFeedsMethod(), getCallOptions()), request); - } - - /** - *
    -     * Updates an asset feed configuration.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture updateFeed( - com.google.cloud.asset.v1.UpdateFeedRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFeedMethod(), getCallOptions()), request); - } - - /** - *
    -     * Deletes an asset feed.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture deleteFeed( - com.google.cloud.asset.v1.DeleteFeedRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFeedMethod(), getCallOptions()), request); - } - - /** - *
    -     * Searches all Cloud resources within the specified scope, such as a project,
    -     * folder, or organization. The caller must be granted the
    -     * `cloudasset.assets.searchAllResources` permission on the desired scope,
    -     * otherwise the request will be rejected.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture searchAllResources( - com.google.cloud.asset.v1.SearchAllResourcesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchAllResourcesMethod(), getCallOptions()), request); - } - - /** - *
    -     * Searches all IAM policies within the specified scope, such as a project,
    -     * folder, or organization. The caller must be granted the
    -     * `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
    -     * otherwise the request will be rejected.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture searchAllIamPolicies( - com.google.cloud.asset.v1.SearchAllIamPoliciesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchAllIamPoliciesMethod(), getCallOptions()), request); - } - - /** - *
    -     * Analyzes IAM policies to answer which identities have what accesses on
    -     * which resources.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture analyzeIamPolicy( - com.google.cloud.asset.v1.AnalyzeIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAnalyzeIamPolicyMethod(), getCallOptions()), request); - } - - /** - *
    -     * Analyzes IAM policies asynchronously to answer which identities have what
    -     * accesses on which resources, and writes the analysis results to a Google
    -     * Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
    -     * output format is the JSON format that represents a
    -     * [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. This method implements the
    -     * [google.longrunning.Operation][google.longrunning.Operation], which allows you to track the operation
    -     * status. We recommend intervals of at least 2 seconds with exponential
    -     * backoff retry to poll the operation result. The metadata contains the
    -     * metadata for the long-running operation.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture analyzeIamPolicyLongrunning( - com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAnalyzeIamPolicyLongrunningMethod(), getCallOptions()), request); - } - - /** - *
    -     * Analyze moving a resource to a specified destination without kicking off
    -     * the actual move. The analysis is best effort depending on the user's
    -     * permissions of viewing different hierarchical policies and configurations.
    -     * The policies and configuration are subject to change before the actual
    -     * resource migration takes place.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture analyzeMove( - com.google.cloud.asset.v1.AnalyzeMoveRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAnalyzeMoveMethod(), getCallOptions()), request); - } - - /** - *
    -     * Issue a job that queries assets using a SQL statement compatible with
    -     * [BigQuery Standard
    -     * SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
    -     * If the query execution finishes within timeout and there's no pagination,
    -     * the full query results will be returned in the `QueryAssetsResponse`.
    -     * Otherwise, full query results can be obtained by issuing extra requests
    -     * with the `job_reference` from the a previous `QueryAssets` call.
    -     * Note, the query result has approximately 10 GB limitation enforced by
    -     * BigQuery
    -     * https://cloud.google.com/bigquery/docs/best-practices-performance-output,
    -     * queries return larger results will result in errors.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture queryAssets( - com.google.cloud.asset.v1.QueryAssetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getQueryAssetsMethod(), getCallOptions()), request); - } - - /** - *
    -     * Creates a saved query in a parent project/folder/organization.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture createSavedQuery( - com.google.cloud.asset.v1.CreateSavedQueryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSavedQueryMethod(), getCallOptions()), request); - } - - /** - *
    -     * Gets details about a saved query.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture getSavedQuery( - com.google.cloud.asset.v1.GetSavedQueryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSavedQueryMethod(), getCallOptions()), request); - } - - /** - *
    -     * Lists all saved queries in a parent project/folder/organization.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture listSavedQueries( - com.google.cloud.asset.v1.ListSavedQueriesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSavedQueriesMethod(), getCallOptions()), request); - } - - /** - *
    -     * Updates a saved query.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture updateSavedQuery( - com.google.cloud.asset.v1.UpdateSavedQueryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSavedQueryMethod(), getCallOptions()), request); - } - - /** - *
    -     * Deletes a saved query.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture deleteSavedQuery( - com.google.cloud.asset.v1.DeleteSavedQueryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSavedQueryMethod(), getCallOptions()), request); - } - - /** - *
    -     * Gets effective IAM policies for a batch of resources.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture batchGetEffectiveIamPolicies( - com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchGetEffectiveIamPoliciesMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_EXPORT_ASSETS = 0; - private static final int METHODID_LIST_ASSETS = 1; - private static final int METHODID_BATCH_GET_ASSETS_HISTORY = 2; - private static final int METHODID_CREATE_FEED = 3; - private static final int METHODID_GET_FEED = 4; - private static final int METHODID_LIST_FEEDS = 5; - private static final int METHODID_UPDATE_FEED = 6; - private static final int METHODID_DELETE_FEED = 7; - private static final int METHODID_SEARCH_ALL_RESOURCES = 8; - private static final int METHODID_SEARCH_ALL_IAM_POLICIES = 9; - private static final int METHODID_ANALYZE_IAM_POLICY = 10; - private static final int METHODID_ANALYZE_IAM_POLICY_LONGRUNNING = 11; - private static final int METHODID_ANALYZE_MOVE = 12; - private static final int METHODID_QUERY_ASSETS = 13; - private static final int METHODID_CREATE_SAVED_QUERY = 14; - private static final int METHODID_GET_SAVED_QUERY = 15; - private static final int METHODID_LIST_SAVED_QUERIES = 16; - private static final int METHODID_UPDATE_SAVED_QUERY = 17; - private static final int METHODID_DELETE_SAVED_QUERY = 18; - private static final int METHODID_BATCH_GET_EFFECTIVE_IAM_POLICIES = 19; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AssetServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AssetServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_EXPORT_ASSETS: - serviceImpl.exportAssets((com.google.cloud.asset.v1.ExportAssetsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ASSETS: - serviceImpl.listAssets((com.google.cloud.asset.v1.ListAssetsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_GET_ASSETS_HISTORY: - serviceImpl.batchGetAssetsHistory((com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_FEED: - serviceImpl.createFeed((com.google.cloud.asset.v1.CreateFeedRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_FEED: - serviceImpl.getFeed((com.google.cloud.asset.v1.GetFeedRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_FEEDS: - serviceImpl.listFeeds((com.google.cloud.asset.v1.ListFeedsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_FEED: - serviceImpl.updateFeed((com.google.cloud.asset.v1.UpdateFeedRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_FEED: - serviceImpl.deleteFeed((com.google.cloud.asset.v1.DeleteFeedRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SEARCH_ALL_RESOURCES: - serviceImpl.searchAllResources((com.google.cloud.asset.v1.SearchAllResourcesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SEARCH_ALL_IAM_POLICIES: - serviceImpl.searchAllIamPolicies((com.google.cloud.asset.v1.SearchAllIamPoliciesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ANALYZE_IAM_POLICY: - serviceImpl.analyzeIamPolicy((com.google.cloud.asset.v1.AnalyzeIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ANALYZE_IAM_POLICY_LONGRUNNING: - serviceImpl.analyzeIamPolicyLongrunning((com.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ANALYZE_MOVE: - serviceImpl.analyzeMove((com.google.cloud.asset.v1.AnalyzeMoveRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_QUERY_ASSETS: - serviceImpl.queryAssets((com.google.cloud.asset.v1.QueryAssetsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SAVED_QUERY: - serviceImpl.createSavedQuery((com.google.cloud.asset.v1.CreateSavedQueryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SAVED_QUERY: - serviceImpl.getSavedQuery((com.google.cloud.asset.v1.GetSavedQueryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SAVED_QUERIES: - serviceImpl.listSavedQueries((com.google.cloud.asset.v1.ListSavedQueriesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SAVED_QUERY: - serviceImpl.updateSavedQuery((com.google.cloud.asset.v1.UpdateSavedQueryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SAVED_QUERY: - serviceImpl.deleteSavedQuery((com.google.cloud.asset.v1.DeleteSavedQueryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_GET_EFFECTIVE_IAM_POLICIES: - serviceImpl.batchGetEffectiveIamPolicies((com.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class AssetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AssetServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.asset.v1.AssetServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AssetService"); - } - } - - private static final class AssetServiceFileDescriptorSupplier - extends AssetServiceBaseDescriptorSupplier { - AssetServiceFileDescriptorSupplier() {} - } - - private static final class AssetServiceMethodDescriptorSupplier - extends AssetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AssetServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (AssetServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AssetServiceFileDescriptorSupplier()) - .addMethod(getExportAssetsMethod()) - .addMethod(getListAssetsMethod()) - .addMethod(getBatchGetAssetsHistoryMethod()) - .addMethod(getCreateFeedMethod()) - .addMethod(getGetFeedMethod()) - .addMethod(getListFeedsMethod()) - .addMethod(getUpdateFeedMethod()) - .addMethod(getDeleteFeedMethod()) - .addMethod(getSearchAllResourcesMethod()) - .addMethod(getSearchAllIamPoliciesMethod()) - .addMethod(getAnalyzeIamPolicyMethod()) - .addMethod(getAnalyzeIamPolicyLongrunningMethod()) - .addMethod(getAnalyzeMoveMethod()) - .addMethod(getQueryAssetsMethod()) - .addMethod(getCreateSavedQueryMethod()) - .addMethod(getGetSavedQueryMethod()) - .addMethod(getListSavedQueriesMethod()) - .addMethod(getUpdateSavedQueryMethod()) - .addMethod(getDeleteSavedQueryMethod()) - .addMethod(getBatchGetEffectiveIamPoliciesMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponseOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponseOrBuilder.java deleted file mode 100644 index e2d8e4d0037f..000000000000 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeIamPolicyLongrunningResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1/asset_service.proto - -package com.google.cloud.asset.v1; - -public interface AnalyzeIamPolicyLongrunningResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java deleted file mode 100644 index 67cb92d103f4..000000000000 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java +++ /dev/null @@ -1,505 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1/assets.proto - -package com.google.cloud.asset.v1; - -public final class AssetProto { - private AssetProto() {} - 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_asset_v1_TemporalAsset_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_TemporalAsset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_TimeWindow_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_TimeWindow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_Asset_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_Asset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_Resource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_Resource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_RelatedAssets_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_RelatedAssets_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_RelationshipAttributes_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_RelatedAsset_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_RelatedAsset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_ResourceSearchResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_ResourceSearchResult_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_ResourceSearchResult_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_ResourceSearchResult_RelationshipsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_ResourceSearchResult_RelationshipsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_VersionedResource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_VersionedResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_AttachedResource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_AttachedResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_RelatedResources_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_RelatedResources_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_RelatedResource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_RelatedResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicySearchResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_ConditionEvaluation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\"google/cloud/asset/v1/assets.proto\022\025go" + - "ogle.cloud.asset.v1\032\037google/api/field_be" + - "havior.proto\032\031google/api/resource.proto\032" + - ")google/cloud/orgpolicy/v1/orgpolicy.pro" + - "to\032(google/cloud/osconfig/v1/inventory.p" + - "roto\032\032google/iam/v1/policy.proto\032:google" + - "/identity/accesscontextmanager/v1/access" + - "_level.proto\032;google/identity/accesscont" + - "extmanager/v1/access_policy.proto\032?googl" + - "e/identity/accesscontextmanager/v1/servi" + - "ce_perimeter.proto\032\034google/protobuf/stru" + - "ct.proto\032\037google/protobuf/timestamp.prot" + - "o\032\025google/rpc/code.proto\"\365\002\n\rTemporalAss" + - "et\0221\n\006window\030\001 \001(\0132!.google.cloud.asset." + - "v1.TimeWindow\022\017\n\007deleted\030\002 \001(\010\022+\n\005asset\030" + - "\003 \001(\0132\034.google.cloud.asset.v1.Asset\022O\n\021p" + - "rior_asset_state\030\004 \001(\01624.google.cloud.as" + - "set.v1.TemporalAsset.PriorAssetState\0221\n\013" + - "prior_asset\030\005 \001(\0132\034.google.cloud.asset.v" + - "1.Asset\"o\n\017PriorAssetState\022!\n\035PRIOR_ASSE" + - "T_STATE_UNSPECIFIED\020\000\022\013\n\007PRESENT\020\001\022\013\n\007IN" + - "VALID\020\002\022\022\n\016DOES_NOT_EXIST\020\003\022\013\n\007DELETED\020\004" + - "\"j\n\nTimeWindow\022.\n\nstart_time\030\001 \001(\0132\032.goo" + - "gle.protobuf.Timestamp\022,\n\010end_time\030\002 \001(\013" + - "2\032.google.protobuf.Timestamp\"\363\005\n\005Asset\022/" + - "\n\013update_time\030\013 \001(\0132\032.google.protobuf.Ti" + - "mestamp\022\014\n\004name\030\001 \001(\t\022\022\n\nasset_type\030\002 \001(" + - "\t\0221\n\010resource\030\003 \001(\0132\037.google.cloud.asset" + - ".v1.Resource\022)\n\niam_policy\030\004 \001(\0132\025.googl" + - "e.iam.v1.Policy\0225\n\norg_policy\030\006 \003(\0132!.go" + - "ogle.cloud.orgpolicy.v1.Policy\022N\n\raccess" + - "_policy\030\007 \001(\01325.google.identity.accessco" + - "ntextmanager.v1.AccessPolicyH\000\022L\n\014access" + - "_level\030\010 \001(\01324.google.identity.accesscon" + - "textmanager.v1.AccessLevelH\000\022V\n\021service_" + - "perimeter\030\t \001(\01329.google.identity.access" + - "contextmanager.v1.ServicePerimeterH\000\0229\n\014" + - "os_inventory\030\014 \001(\0132#.google.cloud.osconf" + - "ig.v1.Inventory\022@\n\016related_assets\030\r \001(\0132" + - "$.google.cloud.asset.v1.RelatedAssetsB\002\030" + - "\001\022:\n\rrelated_asset\030\017 \001(\0132#.google.cloud." + - "asset.v1.RelatedAsset\022\021\n\tancestors\030\n \003(\t" + - ":\'\352A$\n\037cloudasset.googleapis.com/Asset\022\001" + - "*B\027\n\025access_context_policy\"\262\001\n\010Resource\022" + - "\017\n\007version\030\001 \001(\t\022\036\n\026discovery_document_u" + - "ri\030\002 \001(\t\022\026\n\016discovery_name\030\003 \001(\t\022\024\n\014reso" + - "urce_url\030\004 \001(\t\022\016\n\006parent\030\005 \001(\t\022%\n\004data\030\006" + - " \001(\0132\027.google.protobuf.Struct\022\020\n\010locatio" + - "n\030\010 \001(\t\"\230\001\n\rRelatedAssets\022N\n\027relationshi" + - "p_attributes\030\001 \001(\0132-.google.cloud.asset." + - "v1.RelationshipAttributes\0223\n\006assets\030\002 \003(" + - "\0132#.google.cloud.asset.v1.RelatedAsset:\002" + - "\030\001\"v\n\026RelationshipAttributes\022\014\n\004type\030\004 \001" + - "(\t\022\034\n\024source_resource_type\030\001 \001(\t\022\034\n\024targ" + - "et_resource_type\030\002 \001(\t\022\016\n\006action\030\003 \001(\t:\002" + - "\030\001\"\205\001\n\014RelatedAsset\0223\n\005asset\030\001 \001(\tB$\372A!\n" + - "\037cloudasset.googleapis.com/Asset\022\022\n\nasse" + - "t_type\030\002 \001(\t\022\021\n\tancestors\030\003 \003(\t\022\031\n\021relat" + - "ionship_type\030\004 \001(\t\"\310\007\n\024ResourceSearchRes" + - "ult\022\014\n\004name\030\001 \001(\t\022\022\n\nasset_type\030\002 \001(\t\022\017\n" + - "\007project\030\003 \001(\t\022\017\n\007folders\030\021 \003(\t\022\024\n\014organ" + - "ization\030\022 \001(\t\022\024\n\014display_name\030\004 \001(\t\022\023\n\013d" + - "escription\030\005 \001(\t\022\020\n\010location\030\006 \001(\t\022G\n\006la" + - "bels\030\007 \003(\01327.google.cloud.asset.v1.Resou" + - "rceSearchResult.LabelsEntry\022\024\n\014network_t" + - "ags\030\010 \003(\t\022\023\n\007kms_key\030\n \001(\tB\002\030\001\022\020\n\010kms_ke" + - "ys\030\034 \003(\t\022/\n\013create_time\030\013 \001(\0132\032.google.p" + - "rotobuf.Timestamp\022/\n\013update_time\030\014 \001(\0132\032" + - ".google.protobuf.Timestamp\022\r\n\005state\030\r \001(" + - "\t\0226\n\025additional_attributes\030\t \001(\0132\027.googl" + - "e.protobuf.Struct\022!\n\031parent_full_resourc" + - "e_name\030\023 \001(\t\022E\n\023versioned_resources\030\020 \003(" + - "\0132(.google.cloud.asset.v1.VersionedResou" + - "rce\022C\n\022attached_resources\030\024 \003(\0132\'.google" + - ".cloud.asset.v1.AttachedResource\022U\n\rrela" + - "tionships\030\025 \003(\0132>.google.cloud.asset.v1." + - "ResourceSearchResult.RelationshipsEntry\022" + - "\020\n\010tag_keys\030\027 \003(\t\022\022\n\ntag_values\030\031 \003(\t\022\025\n" + - "\rtag_value_ids\030\032 \003(\t\022\031\n\021parent_asset_typ" + - "e\030g \001(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + - "alue\030\002 \001(\t:\0028\001\032]\n\022RelationshipsEntry\022\013\n\003" + - "key\030\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.google.cloud." + - "asset.v1.RelatedResources:\0028\001\"O\n\021Version" + - "edResource\022\017\n\007version\030\001 \001(\t\022)\n\010resource\030" + - "\002 \001(\0132\027.google.protobuf.Struct\"m\n\020Attach" + - "edResource\022\022\n\nasset_type\030\001 \001(\t\022E\n\023versio" + - "ned_resources\030\003 \003(\0132(.google.cloud.asset" + - ".v1.VersionedResource\"U\n\020RelatedResource" + - "s\022A\n\021related_resources\030\001 \003(\0132&.google.cl" + - "oud.asset.v1.RelatedResource\"A\n\017RelatedR" + - "esource\022\022\n\nasset_type\030\001 \001(\t\022\032\n\022full_reso" + - "urce_name\030\002 \001(\t\"\217\004\n\025IamPolicySearchResul" + - "t\022\020\n\010resource\030\001 \001(\t\022\022\n\nasset_type\030\005 \001(\t\022" + - "\017\n\007project\030\002 \001(\t\022\017\n\007folders\030\006 \003(\t\022\024\n\014org" + - "anization\030\007 \001(\t\022%\n\006policy\030\003 \001(\0132\025.google" + - ".iam.v1.Policy\022M\n\013explanation\030\004 \001(\01328.go" + - "ogle.cloud.asset.v1.IamPolicySearchResul" + - "t.Explanation\032\241\002\n\013Explanation\022m\n\023matched" + - "_permissions\030\001 \003(\0132P.google.cloud.asset." + - "v1.IamPolicySearchResult.Explanation.Mat" + - "chedPermissionsEntry\032\"\n\013Permissions\022\023\n\013p" + - "ermissions\030\001 \003(\t\032\177\n\027MatchedPermissionsEn" + - "try\022\013\n\003key\030\001 \001(\t\022S\n\005value\030\002 \001(\0132D.google" + - ".cloud.asset.v1.IamPolicySearchResult.Ex" + - "planation.Permissions:\0028\001\"G\n\026IamPolicyAn" + - "alysisState\022\036\n\004code\030\001 \001(\0162\020.google.rpc.C" + - "ode\022\r\n\005cause\030\002 \001(\t\"\306\001\n\023ConditionEvaluati" + - "on\022T\n\020evaluation_value\030\001 \001(\0162:.google.cl" + - "oud.asset.v1.ConditionEvaluation.Evaluat" + - "ionValue\"Y\n\017EvaluationValue\022 \n\034EVALUATIO" + - "N_VALUE_UNSPECIFIED\020\000\022\010\n\004TRUE\020\001\022\t\n\005FALSE" + - "\020\002\022\017\n\013CONDITIONAL\020\003\"\253\t\n\027IamPolicyAnalysi" + - "sResult\022#\n\033attached_resource_full_name\030\001" + - " \001(\t\022+\n\013iam_binding\030\002 \001(\0132\026.google.iam.v" + - "1.Binding\022^\n\024access_control_lists\030\003 \003(\0132" + - "@.google.cloud.asset.v1.IamPolicyAnalysi" + - "sResult.AccessControlList\022R\n\ridentity_li" + - "st\030\004 \001(\0132;.google.cloud.asset.v1.IamPoli" + - "cyAnalysisResult.IdentityList\022\026\n\016fully_e" + - "xplored\030\005 \001(\010\032m\n\010Resource\022\032\n\022full_resour" + - "ce_name\030\001 \001(\t\022E\n\016analysis_state\030\002 \001(\0132-." + - "google.cloud.asset.v1.IamPolicyAnalysisS" + - "tate\032\205\001\n\006Access\022\016\n\004role\030\001 \001(\tH\000\022\024\n\npermi" + - "ssion\030\002 \001(\tH\000\022E\n\016analysis_state\030\003 \001(\0132-." + - "google.cloud.asset.v1.IamPolicyAnalysisS" + - "tateB\016\n\014oneof_access\032_\n\010Identity\022\014\n\004name" + - "\030\001 \001(\t\022E\n\016analysis_state\030\002 \001(\0132-.google." + - "cloud.asset.v1.IamPolicyAnalysisState\0320\n" + - "\004Edge\022\023\n\013source_node\030\001 \001(\t\022\023\n\013target_nod" + - "e\030\002 \001(\t\032\277\002\n\021AccessControlList\022J\n\tresourc" + - "es\030\001 \003(\01327.google.cloud.asset.v1.IamPoli" + - "cyAnalysisResult.Resource\022G\n\010accesses\030\002 " + - "\003(\01325.google.cloud.asset.v1.IamPolicyAna" + - "lysisResult.Access\022K\n\016resource_edges\030\003 \003" + - "(\01323.google.cloud.asset.v1.IamPolicyAnal" + - "ysisResult.Edge\022H\n\024condition_evaluation\030" + - "\004 \001(\0132*.google.cloud.asset.v1.ConditionE" + - "valuation\032\245\001\n\014IdentityList\022K\n\nidentities" + - "\030\001 \003(\01327.google.cloud.asset.v1.IamPolicy" + - "AnalysisResult.Identity\022H\n\013group_edges\030\002" + - " \003(\01323.google.cloud.asset.v1.IamPolicyAn" + - "alysisResult.EdgeB\230\001\n\031com.google.cloud.a" + - "sset.v1B\nAssetProtoP\001Z:google.golang.org" + - "/genproto/googleapis/cloud/asset/v1;asse" + - "t\370\001\001\252\002\025Google.Cloud.Asset.V1\312\002\025Google\\Cl" + - "oud\\Asset\\V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(), - com.google.cloud.osconfig.v1.Inventories.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(), - com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(), - com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.CodeProto.getDescriptor(), - }); - internal_static_google_cloud_asset_v1_TemporalAsset_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_asset_v1_TemporalAsset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_TemporalAsset_descriptor, - new java.lang.String[] { "Window", "Deleted", "Asset", "PriorAssetState", "PriorAsset", }); - internal_static_google_cloud_asset_v1_TimeWindow_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_asset_v1_TimeWindow_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_TimeWindow_descriptor, - new java.lang.String[] { "StartTime", "EndTime", }); - internal_static_google_cloud_asset_v1_Asset_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_asset_v1_Asset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_Asset_descriptor, - new java.lang.String[] { "UpdateTime", "Name", "AssetType", "Resource", "IamPolicy", "OrgPolicy", "AccessPolicy", "AccessLevel", "ServicePerimeter", "OsInventory", "RelatedAssets", "RelatedAsset", "Ancestors", "AccessContextPolicy", }); - internal_static_google_cloud_asset_v1_Resource_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_asset_v1_Resource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_Resource_descriptor, - new java.lang.String[] { "Version", "DiscoveryDocumentUri", "DiscoveryName", "ResourceUrl", "Parent", "Data", "Location", }); - internal_static_google_cloud_asset_v1_RelatedAssets_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_asset_v1_RelatedAssets_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_RelatedAssets_descriptor, - new java.lang.String[] { "RelationshipAttributes", "Assets", }); - internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_asset_v1_RelationshipAttributes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_RelationshipAttributes_descriptor, - new java.lang.String[] { "Type", "SourceResourceType", "TargetResourceType", "Action", }); - internal_static_google_cloud_asset_v1_RelatedAsset_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_asset_v1_RelatedAsset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_RelatedAsset_descriptor, - new java.lang.String[] { "Asset", "AssetType", "Ancestors", "RelationshipType", }); - internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_asset_v1_ResourceSearchResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor, - new java.lang.String[] { "Name", "AssetType", "Project", "Folders", "Organization", "DisplayName", "Description", "Location", "Labels", "NetworkTags", "KmsKey", "KmsKeys", "CreateTime", "UpdateTime", "State", "AdditionalAttributes", "ParentFullResourceName", "VersionedResources", "AttachedResources", "Relationships", "TagKeys", "TagValues", "TagValueIds", "ParentAssetType", }); - internal_static_google_cloud_asset_v1_ResourceSearchResult_LabelsEntry_descriptor = - internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_asset_v1_ResourceSearchResult_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_ResourceSearchResult_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_asset_v1_ResourceSearchResult_RelationshipsEntry_descriptor = - internal_static_google_cloud_asset_v1_ResourceSearchResult_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_asset_v1_ResourceSearchResult_RelationshipsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_ResourceSearchResult_RelationshipsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_asset_v1_VersionedResource_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_asset_v1_VersionedResource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_VersionedResource_descriptor, - new java.lang.String[] { "Version", "Resource", }); - internal_static_google_cloud_asset_v1_AttachedResource_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_asset_v1_AttachedResource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_AttachedResource_descriptor, - new java.lang.String[] { "AssetType", "VersionedResources", }); - internal_static_google_cloud_asset_v1_RelatedResources_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_asset_v1_RelatedResources_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_RelatedResources_descriptor, - new java.lang.String[] { "RelatedResources", }); - internal_static_google_cloud_asset_v1_RelatedResource_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_asset_v1_RelatedResource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_RelatedResource_descriptor, - new java.lang.String[] { "AssetType", "FullResourceName", }); - internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_asset_v1_IamPolicySearchResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor, - new java.lang.String[] { "Resource", "AssetType", "Project", "Folders", "Organization", "Policy", "Explanation", }); - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor = - internal_static_google_cloud_asset_v1_IamPolicySearchResult_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor, - new java.lang.String[] { "MatchedPermissions", }); - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor = - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_Permissions_descriptor, - new java.lang.String[] { "Permissions", }); - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor = - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisState_descriptor, - new java.lang.String[] { "Code", "Cause", }); - internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_asset_v1_ConditionEvaluation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor, - new java.lang.String[] { "EvaluationValue", }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor, - new java.lang.String[] { "AttachedResourceFullName", "IamBinding", "AccessControlLists", "IdentityList", "FullyExplored", }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Resource_descriptor, - new java.lang.String[] { "FullResourceName", "AnalysisState", }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Access_descriptor, - new java.lang.String[] { "Role", "Permission", "AnalysisState", "OneofAccess", }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Identity_descriptor, - new java.lang.String[] { "Name", "AnalysisState", }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_Edge_descriptor, - new java.lang.String[] { "SourceNode", "TargetNode", }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor.getNestedTypes().get(4); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_AccessControlList_descriptor, - new java.lang.String[] { "Resources", "Accesses", "ResourceEdges", "ConditionEvaluation", }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_descriptor.getNestedTypes().get(5); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisResult_IdentityList_descriptor, - new java.lang.String[] { "Identities", "GroupEdges", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(); - com.google.cloud.osconfig.v1.Inventories.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(); - com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(); - com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.CodeProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java deleted file mode 100644 index 57cad7816d2c..000000000000 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java +++ /dev/null @@ -1,1149 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1/asset_service.proto - -package com.google.cloud.asset.v1; - -public final class AssetServiceProto { - private AssetServiceProto() {} - 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_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_ExportAssetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_ExportAssetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_ListAssetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_ListAssetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_ListAssetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_ListAssetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_CreateFeedRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_GetFeedRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_ListFeedsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_ListFeedsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_UpdateFeedRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_DeleteFeedRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_OutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_OutputResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_OutputResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_GcsOutputResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_GcsDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_BigQueryDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_PartitionSpec_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_PartitionSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_PubsubDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_PubsubDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_FeedOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_Feed_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_Feed_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_SavedQuery_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_SavedQuery_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_SavedQuery_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_SavedQuery_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_GetSavedQueryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_GetSavedQueryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_MoveAnalysis_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_MoveAnalysis_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_MoveAnalysisResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_MoveAnalysisResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_MoveImpact_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_MoveImpact_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_QueryAssetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_QueryAssetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_QueryAssetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_QueryAssetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_QueryResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_QueryResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_TableSchema_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_TableSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_TableFieldSchema_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_TableFieldSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/asset/v1/asset_service.pr" + - "oto\022\025google.cloud.asset.v1\032\034google/api/a" + - "nnotations.proto\032\027google/api/client.prot" + - "o\032\037google/api/field_behavior.proto\032\031goog" + - "le/api/resource.proto\032\"google/cloud/asse" + - "t/v1/assets.proto\032\032google/iam/v1/policy." + - "proto\032#google/longrunning/operations.pro" + - "to\032\036google/protobuf/duration.proto\032\033goog" + - "le/protobuf/empty.proto\032 google/protobuf" + - "/field_mask.proto\032\034google/protobuf/struc" + - "t.proto\032\037google/protobuf/timestamp.proto" + - "\032\027google/rpc/status.proto\032\026google/type/e" + - "xpr.proto\"[\n#AnalyzeIamPolicyLongrunning" + - "Metadata\0224\n\013create_time\030\001 \001(\0132\032.google.p" + - "rotobuf.TimestampB\003\340A\003\"\251\002\n\023ExportAssetsR" + - "equest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037cloudass" + - "et.googleapis.com/Asset\022-\n\tread_time\030\002 \001" + - "(\0132\032.google.protobuf.Timestamp\022\023\n\013asset_" + - "types\030\003 \003(\t\0228\n\014content_type\030\004 \001(\0162\".goog" + - "le.cloud.asset.v1.ContentType\022?\n\routput_" + - "config\030\005 \001(\0132#.google.cloud.asset.v1.Out" + - "putConfigB\003\340A\002\022\032\n\022relationship_types\030\006 \003" + - "(\t\"\275\001\n\024ExportAssetsResponse\022-\n\tread_time" + - "\030\001 \001(\0132\032.google.protobuf.Timestamp\022:\n\rou" + - "tput_config\030\002 \001(\0132#.google.cloud.asset.v" + - "1.OutputConfig\022:\n\routput_result\030\003 \001(\0132#." + - "google.cloud.asset.v1.OutputResult\"\215\002\n\021L" + - "istAssetsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!" + - "\022\037cloudasset.googleapis.com/Asset\022-\n\trea" + - "d_time\030\002 \001(\0132\032.google.protobuf.Timestamp" + - "\022\023\n\013asset_types\030\003 \003(\t\0228\n\014content_type\030\004 " + - "\001(\0162\".google.cloud.asset.v1.ContentType\022" + - "\021\n\tpage_size\030\005 \001(\005\022\022\n\npage_token\030\006 \001(\t\022\032" + - "\n\022relationship_types\030\007 \003(\t\"\212\001\n\022ListAsset" + - "sResponse\022-\n\tread_time\030\001 \001(\0132\032.google.pr" + - "otobuf.Timestamp\022,\n\006assets\030\002 \003(\0132\034.googl" + - "e.cloud.asset.v1.Asset\022\027\n\017next_page_toke" + - "n\030\003 \001(\t\"\216\002\n\034BatchGetAssetsHistoryRequest" + - "\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037cloudasset.goo" + - "gleapis.com/Asset\022\023\n\013asset_names\030\002 \003(\t\022=" + - "\n\014content_type\030\003 \001(\0162\".google.cloud.asse" + - "t.v1.ContentTypeB\003\340A\001\022@\n\020read_time_windo" + - "w\030\004 \001(\0132!.google.cloud.asset.v1.TimeWind" + - "owB\003\340A\001\022\037\n\022relationship_types\030\005 \003(\tB\003\340A\001" + - "\"U\n\035BatchGetAssetsHistoryResponse\0224\n\006ass" + - "ets\030\001 \003(\0132$.google.cloud.asset.v1.Tempor" + - "alAsset\"n\n\021CreateFeedRequest\022\023\n\006parent\030\001" + - " \001(\tB\003\340A\002\022\024\n\007feed_id\030\002 \001(\tB\003\340A\002\022.\n\004feed\030" + - "\003 \001(\0132\033.google.cloud.asset.v1.FeedB\003\340A\002\"" + - "F\n\016GetFeedRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n" + - "\036cloudasset.googleapis.com/Feed\"\'\n\020ListF" + - "eedsRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\"?\n\021List" + - "FeedsResponse\022*\n\005feeds\030\001 \003(\0132\033.google.cl" + - "oud.asset.v1.Feed\"y\n\021UpdateFeedRequest\022." + - "\n\004feed\030\001 \001(\0132\033.google.cloud.asset.v1.Fee" + - "dB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.pro" + - "tobuf.FieldMaskB\003\340A\002\"I\n\021DeleteFeedReques" + - "t\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036cloudasset.goog" + - "leapis.com/Feed\"\253\001\n\014OutputConfig\022@\n\017gcs_" + - "destination\030\001 \001(\0132%.google.cloud.asset.v" + - "1.GcsDestinationH\000\022J\n\024bigquery_destinati" + - "on\030\002 \001(\0132*.google.cloud.asset.v1.BigQuer" + - "yDestinationH\000B\r\n\013destination\"V\n\014OutputR" + - "esult\022<\n\ngcs_result\030\001 \001(\0132&.google.cloud" + - ".asset.v1.GcsOutputResultH\000B\010\n\006result\"\037\n" + - "\017GcsOutputResult\022\014\n\004uris\030\001 \003(\t\"C\n\016GcsDes" + - "tination\022\r\n\003uri\030\001 \001(\tH\000\022\024\n\nuri_prefix\030\002 " + - "\001(\tH\000B\014\n\nobject_uri\"\264\001\n\023BigQueryDestinat" + - "ion\022\024\n\007dataset\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\t" + - "B\003\340A\002\022\r\n\005force\030\003 \001(\010\022<\n\016partition_spec\030\004" + - " \001(\0132$.google.cloud.asset.v1.PartitionSp" + - "ec\022&\n\036separate_tables_per_asset_type\030\005 \001" + - "(\010\"\251\001\n\rPartitionSpec\022H\n\rpartition_key\030\001 " + - "\001(\01621.google.cloud.asset.v1.PartitionSpe" + - "c.PartitionKey\"N\n\014PartitionKey\022\035\n\031PARTIT" + - "ION_KEY_UNSPECIFIED\020\000\022\r\n\tREAD_TIME\020\001\022\020\n\014" + - "REQUEST_TIME\020\002\"\"\n\021PubsubDestination\022\r\n\005t" + - "opic\030\001 \001(\t\"i\n\020FeedOutputConfig\022F\n\022pubsub" + - "_destination\030\001 \001(\0132(.google.cloud.asset." + - "v1.PubsubDestinationH\000B\r\n\013destination\"\235\003" + - "\n\004Feed\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\013asset_names" + - "\030\002 \003(\t\022\023\n\013asset_types\030\003 \003(\t\0228\n\014content_t" + - "ype\030\004 \001(\0162\".google.cloud.asset.v1.Conten" + - "tType\022H\n\022feed_output_config\030\005 \001(\0132\'.goog" + - "le.cloud.asset.v1.FeedOutputConfigB\003\340A\002\022" + - "$\n\tcondition\030\006 \001(\0132\021.google.type.Expr\022\032\n" + - "\022relationship_types\030\007 \003(\t:\221\001\352A\215\001\n\036clouda" + - "sset.googleapis.com/Feed\022\037projects/{proj" + - "ect}/feeds/{feed}\022\035folders/{folder}/feed" + - "s/{feed}\022)organizations/{organization}/f" + - "eeds/{feed} \001\"\331\001\n\031SearchAllResourcesRequ" + - "est\022\022\n\005scope\030\001 \001(\tB\003\340A\002\022\022\n\005query\030\002 \001(\tB\003" + - "\340A\001\022\030\n\013asset_types\030\003 \003(\tB\003\340A\001\022\026\n\tpage_si" + - "ze\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005 \001(\tB\003\340A\001\022\025" + - "\n\010order_by\030\006 \001(\tB\003\340A\001\0222\n\tread_mask\030\010 \001(\013" + - "2\032.google.protobuf.FieldMaskB\003\340A\001\"s\n\032Sea" + - "rchAllResourcesResponse\022<\n\007results\030\001 \003(\013" + - "2+.google.cloud.asset.v1.ResourceSearchR" + - "esult\022\027\n\017next_page_token\030\002 \001(\t\"\247\001\n\033Searc" + - "hAllIamPoliciesRequest\022\022\n\005scope\030\001 \001(\tB\003\340" + - "A\002\022\022\n\005query\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(" + - "\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\022\030\n\013asset" + - "_types\030\005 \003(\tB\003\340A\001\022\025\n\010order_by\030\007 \001(\tB\003\340A\001" + - "\"v\n\034SearchAllIamPoliciesResponse\022=\n\007resu" + - "lts\030\001 \003(\0132,.google.cloud.asset.v1.IamPol" + - "icySearchResult\022\027\n\017next_page_token\030\002 \001(\t" + - "\"\306\007\n\026IamPolicyAnalysisQuery\022\022\n\005scope\030\001 \001" + - "(\tB\003\340A\002\022^\n\021resource_selector\030\002 \001(\0132>.goo" + - "gle.cloud.asset.v1.IamPolicyAnalysisQuer" + - "y.ResourceSelectorB\003\340A\001\022^\n\021identity_sele" + - "ctor\030\003 \001(\0132>.google.cloud.asset.v1.IamPo" + - "licyAnalysisQuery.IdentitySelectorB\003\340A\001\022" + - "Z\n\017access_selector\030\004 \001(\0132<.google.cloud." + - "asset.v1.IamPolicyAnalysisQuery.AccessSe" + - "lectorB\003\340A\001\022K\n\007options\030\005 \001(\01325.google.cl" + - "oud.asset.v1.IamPolicyAnalysisQuery.Opti" + - "onsB\003\340A\001\022^\n\021condition_context\030\006 \001(\0132>.go" + - "ogle.cloud.asset.v1.IamPolicyAnalysisQue" + - "ry.ConditionContextB\003\340A\001\0323\n\020ResourceSele" + - "ctor\022\037\n\022full_resource_name\030\001 \001(\tB\003\340A\002\032)\n" + - "\020IdentitySelector\022\025\n\010identity\030\001 \001(\tB\003\340A\002" + - "\032>\n\016AccessSelector\022\022\n\005roles\030\001 \003(\tB\003\340A\001\022\030" + - "\n\013permissions\030\002 \003(\tB\003\340A\001\032\330\001\n\007Options\022\032\n\r" + - "expand_groups\030\001 \001(\010B\003\340A\001\022\031\n\014expand_roles" + - "\030\002 \001(\010B\003\340A\001\022\035\n\020expand_resources\030\003 \001(\010B\003\340" + - "A\001\022\"\n\025output_resource_edges\030\004 \001(\010B\003\340A\001\022\037" + - "\n\022output_group_edges\030\005 \001(\010B\003\340A\001\0222\n%analy" + - "ze_service_account_impersonation\030\006 \001(\010B\003" + - "\340A\001\032T\n\020ConditionContext\0221\n\013access_time\030\001" + - " \001(\0132\032.google.protobuf.TimestampH\000B\r\n\013Ti" + - "meContext\"\303\001\n\027AnalyzeIamPolicyRequest\022J\n" + - "\016analysis_query\030\001 \001(\0132-.google.cloud.ass" + - "et.v1.IamPolicyAnalysisQueryB\003\340A\002\022!\n\024sav" + - "ed_analysis_query\030\003 \001(\tB\003\340A\001\0229\n\021executio" + - "n_timeout\030\002 \001(\0132\031.google.protobuf.Durati" + - "onB\003\340A\001\"\212\004\n\030AnalyzeIamPolicyResponse\022X\n\r" + - "main_analysis\030\001 \001(\0132A.google.cloud.asset" + - ".v1.AnalyzeIamPolicyResponse.IamPolicyAn" + - "alysis\022q\n&service_account_impersonation_" + - "analysis\030\002 \003(\0132A.google.cloud.asset.v1.A" + - "nalyzeIamPolicyResponse.IamPolicyAnalysi" + - "s\022\026\n\016fully_explored\030\003 \001(\010\032\210\002\n\021IamPolicyA" + - "nalysis\022E\n\016analysis_query\030\001 \001(\0132-.google" + - ".cloud.asset.v1.IamPolicyAnalysisQuery\022H" + - "\n\020analysis_results\030\002 \003(\0132..google.cloud." + - "asset.v1.IamPolicyAnalysisResult\022\026\n\016full" + - "y_explored\030\003 \001(\010\022J\n\023non_critical_errors\030" + - "\005 \003(\0132-.google.cloud.asset.v1.IamPolicyA" + - "nalysisState\"\264\004\n\035IamPolicyAnalysisOutput" + - "Config\022^\n\017gcs_destination\030\001 \001(\0132C.google" + - ".cloud.asset.v1.IamPolicyAnalysisOutputC" + - "onfig.GcsDestinationH\000\022h\n\024bigquery_desti" + - "nation\030\002 \001(\0132H.google.cloud.asset.v1.Iam" + - "PolicyAnalysisOutputConfig.BigQueryDesti" + - "nationH\000\032\"\n\016GcsDestination\022\020\n\003uri\030\001 \001(\tB" + - "\003\340A\002\032\225\002\n\023BigQueryDestination\022\024\n\007dataset\030" + - "\001 \001(\tB\003\340A\002\022\031\n\014table_prefix\030\002 \001(\tB\003\340A\002\022l\n" + - "\rpartition_key\030\003 \001(\0162U.google.cloud.asse" + - "t.v1.IamPolicyAnalysisOutputConfig.BigQu" + - "eryDestination.PartitionKey\022\036\n\021write_dis" + - "position\030\004 \001(\tB\003\340A\001\"?\n\014PartitionKey\022\035\n\031P" + - "ARTITION_KEY_UNSPECIFIED\020\000\022\020\n\014REQUEST_TI" + - "ME\020\001B\r\n\013destination\"\345\001\n\"AnalyzeIamPolicy" + - "LongrunningRequest\022J\n\016analysis_query\030\001 \001" + - "(\0132-.google.cloud.asset.v1.IamPolicyAnal" + - "ysisQueryB\003\340A\002\022!\n\024saved_analysis_query\030\003" + - " \001(\tB\003\340A\001\022P\n\routput_config\030\002 \001(\01324.googl" + - "e.cloud.asset.v1.IamPolicyAnalysisOutput" + - "ConfigB\003\340A\002\"%\n#AnalyzeIamPolicyLongrunni" + - "ngResponse\"\267\005\n\nSavedQuery\022\014\n\004name\030\001 \001(\t\022" + - "\023\n\013description\030\002 \001(\t\0224\n\013create_time\030\003 \001(" + - "\0132\032.google.protobuf.TimestampB\003\340A\003\022\024\n\007cr" + - "eator\030\004 \001(\tB\003\340A\003\0229\n\020last_update_time\030\005 \001" + - "(\0132\032.google.protobuf.TimestampB\003\340A\003\022\031\n\014l" + - "ast_updater\030\006 \001(\tB\003\340A\003\022=\n\006labels\030\007 \003(\0132-" + - ".google.cloud.asset.v1.SavedQuery.Labels" + - "Entry\022?\n\007content\030\010 \001(\0132..google.cloud.as" + - "set.v1.SavedQuery.QueryContent\032s\n\014QueryC" + - "ontent\022R\n\031iam_policy_analysis_query\030\001 \001(" + - "\0132-.google.cloud.asset.v1.IamPolicyAnaly" + - "sisQueryH\000B\017\n\rquery_content\032-\n\013LabelsEnt" + - "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\277\001\352A\273" + - "\001\n$cloudasset.googleapis.com/SavedQuery\022" + - "-projects/{project}/savedQueries/{saved_" + - "query}\022+folders/{folder}/savedQueries/{s" + - "aved_query}\0227organizations/{organization" + - "}/savedQueries/{saved_query}\"\261\001\n\027CreateS" + - "avedQueryRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&" + - "\022$cloudasset.googleapis.com/SavedQuery\022;" + - "\n\013saved_query\030\002 \001(\0132!.google.cloud.asset" + - ".v1.SavedQueryB\003\340A\002\022\033\n\016saved_query_id\030\003 " + - "\001(\tB\003\340A\002\"R\n\024GetSavedQueryRequest\022:\n\004name" + - "\030\001 \001(\tB,\340A\002\372A&\n$cloudasset.googleapis.co" + - "m/SavedQuery\"\235\001\n\027ListSavedQueriesRequest" + - "\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$cloudasset.goo" + - "gleapis.com/SavedQuery\022\023\n\006filter\030\004 \001(\tB\003" + - "\340A\001\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_toke" + - "n\030\003 \001(\tB\003\340A\001\"m\n\030ListSavedQueriesResponse" + - "\0228\n\rsaved_queries\030\001 \003(\0132!.google.cloud.a" + - "sset.v1.SavedQuery\022\027\n\017next_page_token\030\002 " + - "\001(\t\"\214\001\n\027UpdateSavedQueryRequest\022;\n\013saved" + - "_query\030\001 \001(\0132!.google.cloud.asset.v1.Sav" + - "edQueryB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.goog" + - "le.protobuf.FieldMaskB\003\340A\002\"U\n\027DeleteSave" + - "dQueryRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$clo" + - "udasset.googleapis.com/SavedQuery\"\326\001\n\022An" + - "alyzeMoveRequest\022\025\n\010resource\030\001 \001(\tB\003\340A\002\022" + - "\037\n\022destination_parent\030\002 \001(\tB\003\340A\002\022D\n\004view" + - "\030\003 \001(\01626.google.cloud.asset.v1.AnalyzeMo" + - "veRequest.AnalysisView\"B\n\014AnalysisView\022\035" + - "\n\031ANALYSIS_VIEW_UNSPECIFIED\020\000\022\010\n\004FULL\020\001\022" + - "\t\n\005BASIC\020\002\"Q\n\023AnalyzeMoveResponse\022:\n\rmov" + - "e_analysis\030\001 \003(\0132#.google.cloud.asset.v1" + - ".MoveAnalysis\"\222\001\n\014MoveAnalysis\022\024\n\014displa" + - "y_name\030\001 \001(\t\022=\n\010analysis\030\002 \001(\0132).google." + - "cloud.asset.v1.MoveAnalysisResultH\000\022#\n\005e" + - "rror\030\003 \001(\0132\022.google.rpc.StatusH\000B\010\n\006resu" + - "lt\"~\n\022MoveAnalysisResult\0223\n\010blockers\030\001 \003" + - "(\0132!.google.cloud.asset.v1.MoveImpact\0223\n" + - "\010warnings\030\002 \003(\0132!.google.cloud.asset.v1." + - "MoveImpact\"\034\n\nMoveImpact\022\016\n\006detail\030\001 \001(\t" + - "\"\327\001\n\027QueryAssetsOutputConfig\022`\n\024bigquery" + - "_destination\030\001 \001(\0132B.google.cloud.asset." + - "v1.QueryAssetsOutputConfig.BigQueryDesti" + - "nation\032Z\n\023BigQueryDestination\022\024\n\007dataset" + - "\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\tB\003\340A\002\022\031\n\021write" + - "_disposition\030\003 \001(\t\"\276\003\n\022QueryAssetsReques" + - "t\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037cloudasset.go" + - "ogleapis.com/Asset\022\030\n\tstatement\030\002 \001(\tB\003\340" + - "A\001H\000\022\034\n\rjob_reference\030\003 \001(\tB\003\340A\001H\000\022\026\n\tpa" + - "ge_size\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005 \001(\tB\003" + - "\340A\001\022/\n\007timeout\030\006 \001(\0132\031.google.protobuf.D" + - "urationB\003\340A\001\022B\n\020read_time_window\030\007 \001(\0132!" + - ".google.cloud.asset.v1.TimeWindowB\003\340A\001H\001" + - "\0224\n\tread_time\030\010 \001(\0132\032.google.protobuf.Ti" + - "mestampB\003\340A\001H\001\022J\n\routput_config\030\t \001(\0132.." + - "google.cloud.asset.v1.QueryAssetsOutputC" + - "onfigB\003\340A\001B\007\n\005queryB\006\n\004time\"\360\001\n\023QueryAss" + - "etsResponse\022\025\n\rjob_reference\030\001 \001(\t\022\014\n\004do" + - "ne\030\002 \001(\010\022#\n\005error\030\003 \001(\0132\022.google.rpc.Sta" + - "tusH\000\022:\n\014query_result\030\004 \001(\0132\".google.clo" + - "ud.asset.v1.QueryResultH\000\022G\n\routput_conf" + - "ig\030\005 \001(\0132..google.cloud.asset.v1.QueryAs" + - "setsOutputConfigH\000B\n\n\010response\"\225\001\n\013Query" + - "Result\022%\n\004rows\030\001 \003(\0132\027.google.protobuf.S" + - "truct\0222\n\006schema\030\002 \001(\0132\".google.cloud.ass" + - "et.v1.TableSchema\022\027\n\017next_page_token\030\003 \001" + - "(\t\022\022\n\ntotal_rows\030\004 \001(\003\"F\n\013TableSchema\0227\n" + - "\006fields\030\001 \003(\0132\'.google.cloud.asset.v1.Ta" + - "bleFieldSchema\"v\n\020TableFieldSchema\022\r\n\005fi" + - "eld\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\022\014\n\004mode\030\003 \001(\t\0227\n" + - "\006fields\030\004 \003(\0132\'.google.cloud.asset.v1.Ta" + - "bleFieldSchema\"Y\n#BatchGetEffectiveIamPo" + - "liciesRequest\022\030\n\005scope\030\001 \001(\tB\t\340A\002\372A\003\022\001*\022" + - "\030\n\005names\030\003 \003(\tB\t\340A\002\372A\003\n\001*\"\376\002\n$BatchGetEf" + - "fectiveIamPoliciesResponse\022f\n\016policy_res" + - "ults\030\002 \003(\0132N.google.cloud.asset.v1.Batch" + - "GetEffectiveIamPoliciesResponse.Effectiv" + - "eIamPolicy\032\355\001\n\022EffectiveIamPolicy\022\032\n\022ful" + - "l_resource_name\030\001 \001(\t\022k\n\010policies\030\002 \003(\0132" + - "Y.google.cloud.asset.v1.BatchGetEffectiv" + - "eIamPoliciesResponse.EffectiveIamPolicy." + - "PolicyInfo\032N\n\nPolicyInfo\022\031\n\021attached_res" + - "ource\030\001 \001(\t\022%\n\006policy\030\002 \001(\0132\025.google.iam" + - ".v1.Policy*\220\001\n\013ContentType\022\034\n\030CONTENT_TY" + - "PE_UNSPECIFIED\020\000\022\014\n\010RESOURCE\020\001\022\016\n\nIAM_PO" + - "LICY\020\002\022\016\n\nORG_POLICY\020\004\022\021\n\rACCESS_POLICY\020" + - "\005\022\020\n\014OS_INVENTORY\020\006\022\020\n\014RELATIONSHIP\020\0072\233\033" + - "\n\014AssetService\022\336\001\n\014ExportAssets\022*.google" + - ".cloud.asset.v1.ExportAssetsRequest\032\035.go" + - "ogle.longrunning.Operation\"\202\001\202\323\344\223\002\"\"\035/v1" + - "/{parent=*/*}:exportAssets:\001*\312AW\n*google" + - ".cloud.asset.v1.ExportAssetsResponse\022)go" + - "ogle.cloud.asset.v1.ExportAssetsRequest\022" + - "\213\001\n\nListAssets\022(.google.cloud.asset.v1.L" + - "istAssetsRequest\032).google.cloud.asset.v1" + - ".ListAssetsResponse\"(\202\323\344\223\002\031\022\027/v1/{parent" + - "=*/*}/assets\332A\006parent\022\262\001\n\025BatchGetAssets" + - "History\0223.google.cloud.asset.v1.BatchGet" + - "AssetsHistoryRequest\0324.google.cloud.asse" + - "t.v1.BatchGetAssetsHistoryResponse\".\202\323\344\223" + - "\002(\022&/v1/{parent=*/*}:batchGetAssetsHisto" + - "ry\022\177\n\nCreateFeed\022(.google.cloud.asset.v1" + - ".CreateFeedRequest\032\033.google.cloud.asset." + - "v1.Feed\"*\202\323\344\223\002\033\"\026/v1/{parent=*/*}/feeds:" + - "\001*\332A\006parent\022t\n\007GetFeed\022%.google.cloud.as" + - "set.v1.GetFeedRequest\032\033.google.cloud.ass" + - "et.v1.Feed\"%\202\323\344\223\002\030\022\026/v1/{name=*/*/feeds/" + - "*}\332A\004name\022\207\001\n\tListFeeds\022\'.google.cloud.a" + - "sset.v1.ListFeedsRequest\032(.google.cloud." + - "asset.v1.ListFeedsResponse\"\'\202\323\344\223\002\030\022\026/v1/" + - "{parent=*/*}/feeds\332A\006parent\022\202\001\n\nUpdateFe" + - "ed\022(.google.cloud.asset.v1.UpdateFeedReq" + - "uest\032\033.google.cloud.asset.v1.Feed\"-\202\323\344\223\002" + - " 2\033/v1/{feed.name=*/*/feeds/*}:\001*\332A\004feed" + - "\022u\n\nDeleteFeed\022(.google.cloud.asset.v1.D" + - "eleteFeedRequest\032\026.google.protobuf.Empty" + - "\"%\202\323\344\223\002\030*\026/v1/{name=*/*/feeds/*}\332A\004name\022" + - "\277\001\n\022SearchAllResources\0220.google.cloud.as" + - "set.v1.SearchAllResourcesRequest\0321.googl" + - "e.cloud.asset.v1.SearchAllResourcesRespo" + - "nse\"D\202\323\344\223\002$\022\"/v1/{scope=*/*}:searchAllRe" + - "sources\332A\027scope,query,asset_types\022\273\001\n\024Se" + - "archAllIamPolicies\0222.google.cloud.asset." + - "v1.SearchAllIamPoliciesRequest\0323.google." + - "cloud.asset.v1.SearchAllIamPoliciesRespo" + - "nse\":\202\323\344\223\002&\022$/v1/{scope=*/*}:searchAllIa" + - "mPolicies\332A\013scope,query\022\254\001\n\020AnalyzeIamPo" + - "licy\022..google.cloud.asset.v1.AnalyzeIamP" + - "olicyRequest\032/.google.cloud.asset.v1.Ana" + - "lyzeIamPolicyResponse\"7\202\323\344\223\0021\022//v1/{anal" + - "ysis_query.scope=*/*}:analyzeIamPolicy\022\270" + - "\002\n\033AnalyzeIamPolicyLongrunning\0229.google." + - "cloud.asset.v1.AnalyzeIamPolicyLongrunni" + - "ngRequest\032\035.google.longrunning.Operation" + - "\"\276\001\202\323\344\223\002?\":/v1/{analysis_query.scope=*/*" + - "}:analyzeIamPolicyLongrunning:\001*\312Av\n9goo" + - "gle.cloud.asset.v1.AnalyzeIamPolicyLongr" + - "unningResponse\0229google.cloud.asset.v1.An" + - "alyzeIamPolicyLongrunningMetadata\022\214\001\n\013An" + - "alyzeMove\022).google.cloud.asset.v1.Analyz" + - "eMoveRequest\032*.google.cloud.asset.v1.Ana" + - "lyzeMoveResponse\"&\202\323\344\223\002 \022\036/v1/{resource=" + - "*/*}:analyzeMove\022\215\001\n\013QueryAssets\022).googl" + - "e.cloud.asset.v1.QueryAssetsRequest\032*.go" + - "ogle.cloud.asset.v1.QueryAssetsResponse\"" + - "\'\202\323\344\223\002!\"\034/v1/{parent=*/*}:queryAssets:\001*" + - "\022\275\001\n\020CreateSavedQuery\022..google.cloud.ass" + - "et.v1.CreateSavedQueryRequest\032!.google.c" + - "loud.asset.v1.SavedQuery\"V\202\323\344\223\002,\"\035/v1/{p" + - "arent=*/*}/savedQueries:\013saved_query\332A!p" + - "arent,saved_query,saved_query_id\022\215\001\n\rGet" + - "SavedQuery\022+.google.cloud.asset.v1.GetSa" + - "vedQueryRequest\032!.google.cloud.asset.v1." + - "SavedQuery\",\202\323\344\223\002\037\022\035/v1/{name=*/*/savedQ" + - "ueries/*}\332A\004name\022\243\001\n\020ListSavedQueries\022.." + - "google.cloud.asset.v1.ListSavedQueriesRe" + - "quest\032/.google.cloud.asset.v1.ListSavedQ" + - "ueriesResponse\".\202\323\344\223\002\037\022\035/v1/{parent=*/*}" + - "/savedQueries\332A\006parent\022\277\001\n\020UpdateSavedQu" + - "ery\022..google.cloud.asset.v1.UpdateSavedQ" + - "ueryRequest\032!.google.cloud.asset.v1.Save" + - "dQuery\"X\202\323\344\223\00282)/v1/{saved_query.name=*/" + - "*/savedQueries/*}:\013saved_query\332A\027saved_q" + - "uery,update_mask\022\210\001\n\020DeleteSavedQuery\022.." + - "google.cloud.asset.v1.DeleteSavedQueryRe" + - "quest\032\026.google.protobuf.Empty\",\202\323\344\223\002\037*\035/" + - "v1/{name=*/*/savedQueries/*}\332A\004name\022\316\001\n\034" + - "BatchGetEffectiveIamPolicies\022:.google.cl" + - "oud.asset.v1.BatchGetEffectiveIamPolicie" + - "sRequest\032;.google.cloud.asset.v1.BatchGe" + - "tEffectiveIamPoliciesResponse\"5\202\323\344\223\002/\022-/" + - "v1/{scope=*/*}/effectiveIamPolicies:batc" + - "hGet\032M\312A\031cloudasset.googleapis.com\322A.htt" + - "ps://www.googleapis.com/auth/cloud-platf" + - "ormB\234\001\n\031com.google.cloud.asset.v1B\021Asset" + - "ServiceProtoP\001Z:google.golang.org/genpro" + - "to/googleapis/cloud/asset/v1;asset\252\002\025Goo" + - "gle.Cloud.Asset.V1\312\002\025Google\\Cloud\\Asset\\" + - "V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.asset.v1.AssetProto.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(), - com.google.rpc.StatusProto.getDescriptor(), - com.google.type.ExprProto.getDescriptor(), - }); - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningMetadata_descriptor, - new java.lang.String[] { "CreateTime", }); - internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_asset_v1_ExportAssetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor, - new java.lang.String[] { "Parent", "ReadTime", "AssetTypes", "ContentType", "OutputConfig", "RelationshipTypes", }); - internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_asset_v1_ExportAssetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_ExportAssetsResponse_descriptor, - new java.lang.String[] { "ReadTime", "OutputConfig", "OutputResult", }); - internal_static_google_cloud_asset_v1_ListAssetsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_asset_v1_ListAssetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_ListAssetsRequest_descriptor, - new java.lang.String[] { "Parent", "ReadTime", "AssetTypes", "ContentType", "PageSize", "PageToken", "RelationshipTypes", }); - internal_static_google_cloud_asset_v1_ListAssetsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_asset_v1_ListAssetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_ListAssetsResponse_descriptor, - new java.lang.String[] { "ReadTime", "Assets", "NextPageToken", }); - internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryRequest_descriptor, - new java.lang.String[] { "Parent", "AssetNames", "ContentType", "ReadTimeWindow", "RelationshipTypes", }); - internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_BatchGetAssetsHistoryResponse_descriptor, - new java.lang.String[] { "Assets", }); - internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_asset_v1_CreateFeedRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_CreateFeedRequest_descriptor, - new java.lang.String[] { "Parent", "FeedId", "Feed", }); - internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_asset_v1_GetFeedRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_GetFeedRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_asset_v1_ListFeedsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_ListFeedsRequest_descriptor, - new java.lang.String[] { "Parent", }); - internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_asset_v1_ListFeedsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_ListFeedsResponse_descriptor, - new java.lang.String[] { "Feeds", }); - internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_asset_v1_UpdateFeedRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_UpdateFeedRequest_descriptor, - new java.lang.String[] { "Feed", "UpdateMask", }); - internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_asset_v1_DeleteFeedRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_DeleteFeedRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_asset_v1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_asset_v1_OutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_OutputConfig_descriptor, - new java.lang.String[] { "GcsDestination", "BigqueryDestination", "Destination", }); - internal_static_google_cloud_asset_v1_OutputResult_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_asset_v1_OutputResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_OutputResult_descriptor, - new java.lang.String[] { "GcsResult", "Result", }); - internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_asset_v1_GcsOutputResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_GcsOutputResult_descriptor, - new java.lang.String[] { "Uris", }); - internal_static_google_cloud_asset_v1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_asset_v1_GcsDestination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_GcsDestination_descriptor, - new java.lang.String[] { "Uri", "UriPrefix", "ObjectUri", }); - internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_asset_v1_BigQueryDestination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_BigQueryDestination_descriptor, - new java.lang.String[] { "Dataset", "Table", "Force", "PartitionSpec", "SeparateTablesPerAssetType", }); - internal_static_google_cloud_asset_v1_PartitionSpec_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_asset_v1_PartitionSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_PartitionSpec_descriptor, - new java.lang.String[] { "PartitionKey", }); - internal_static_google_cloud_asset_v1_PubsubDestination_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_asset_v1_PubsubDestination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_PubsubDestination_descriptor, - new java.lang.String[] { "Topic", }); - internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_asset_v1_FeedOutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_FeedOutputConfig_descriptor, - new java.lang.String[] { "PubsubDestination", "Destination", }); - internal_static_google_cloud_asset_v1_Feed_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_asset_v1_Feed_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_Feed_descriptor, - new java.lang.String[] { "Name", "AssetNames", "AssetTypes", "ContentType", "FeedOutputConfig", "Condition", "RelationshipTypes", }); - internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_SearchAllResourcesRequest_descriptor, - new java.lang.String[] { "Scope", "Query", "AssetTypes", "PageSize", "PageToken", "OrderBy", "ReadMask", }); - internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_SearchAllResourcesResponse_descriptor, - new java.lang.String[] { "Results", "NextPageToken", }); - internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_SearchAllIamPoliciesRequest_descriptor, - new java.lang.String[] { "Scope", "Query", "PageSize", "PageToken", "AssetTypes", "OrderBy", }); - internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_SearchAllIamPoliciesResponse_descriptor, - new java.lang.String[] { "Results", "NextPageToken", }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor, - new java.lang.String[] { "Scope", "ResourceSelector", "IdentitySelector", "AccessSelector", "Options", "ConditionContext", }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ResourceSelector_descriptor, - new java.lang.String[] { "FullResourceName", }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_IdentitySelector_descriptor, - new java.lang.String[] { "Identity", }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_AccessSelector_descriptor, - new java.lang.String[] { "Roles", "Permissions", }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_Options_descriptor, - new java.lang.String[] { "ExpandGroups", "ExpandRoles", "ExpandResources", "OutputResourceEdges", "OutputGroupEdges", "AnalyzeServiceAccountImpersonation", }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_descriptor.getNestedTypes().get(4); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisQuery_ConditionContext_descriptor, - new java.lang.String[] { "AccessTime", "TimeContext", }); - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyRequest_descriptor, - new java.lang.String[] { "AnalysisQuery", "SavedAnalysisQuery", "ExecutionTimeout", }); - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor, - new java.lang.String[] { "MainAnalysis", "ServiceAccountImpersonationAnalysis", "FullyExplored", }); - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor = - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor, - new java.lang.String[] { "AnalysisQuery", "AnalysisResults", "FullyExplored", "NonCriticalErrors", }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor, - new java.lang.String[] { "GcsDestination", "BigqueryDestination", "Destination", }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor, - new java.lang.String[] { "Uri", }); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor = - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor, - new java.lang.String[] { "Dataset", "TablePrefix", "PartitionKey", "WriteDisposition", }); - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningRequest_descriptor, - new java.lang.String[] { "AnalysisQuery", "SavedAnalysisQuery", "OutputConfig", }); - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_AnalyzeIamPolicyLongrunningResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_asset_v1_SavedQuery_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_asset_v1_SavedQuery_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_SavedQuery_descriptor, - new java.lang.String[] { "Name", "Description", "CreateTime", "Creator", "LastUpdateTime", "LastUpdater", "Labels", "Content", }); - internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_descriptor = - internal_static_google_cloud_asset_v1_SavedQuery_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_SavedQuery_QueryContent_descriptor, - new java.lang.String[] { "IamPolicyAnalysisQuery", "QueryContent", }); - internal_static_google_cloud_asset_v1_SavedQuery_LabelsEntry_descriptor = - internal_static_google_cloud_asset_v1_SavedQuery_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_asset_v1_SavedQuery_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_SavedQuery_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_CreateSavedQueryRequest_descriptor, - new java.lang.String[] { "Parent", "SavedQuery", "SavedQueryId", }); - internal_static_google_cloud_asset_v1_GetSavedQueryRequest_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_asset_v1_GetSavedQueryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_GetSavedQueryRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_ListSavedQueriesRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); - internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_ListSavedQueriesResponse_descriptor, - new java.lang.String[] { "SavedQueries", "NextPageToken", }); - internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_UpdateSavedQueryRequest_descriptor, - new java.lang.String[] { "SavedQuery", "UpdateMask", }); - internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_DeleteSavedQueryRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_AnalyzeMoveRequest_descriptor, - new java.lang.String[] { "Resource", "DestinationParent", "View", }); - internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_AnalyzeMoveResponse_descriptor, - new java.lang.String[] { "MoveAnalysis", }); - internal_static_google_cloud_asset_v1_MoveAnalysis_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_cloud_asset_v1_MoveAnalysis_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_MoveAnalysis_descriptor, - new java.lang.String[] { "DisplayName", "Analysis", "Error", "Result", }); - internal_static_google_cloud_asset_v1_MoveAnalysisResult_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_google_cloud_asset_v1_MoveAnalysisResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_MoveAnalysisResult_descriptor, - new java.lang.String[] { "Blockers", "Warnings", }); - internal_static_google_cloud_asset_v1_MoveImpact_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_google_cloud_asset_v1_MoveImpact_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_MoveImpact_descriptor, - new java.lang.String[] { "Detail", }); - internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor, - new java.lang.String[] { "BigqueryDestination", }); - internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_descriptor = - internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_QueryAssetsOutputConfig_BigQueryDestination_descriptor, - new java.lang.String[] { "Dataset", "Table", "WriteDisposition", }); - internal_static_google_cloud_asset_v1_QueryAssetsRequest_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_google_cloud_asset_v1_QueryAssetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_QueryAssetsRequest_descriptor, - new java.lang.String[] { "Parent", "Statement", "JobReference", "PageSize", "PageToken", "Timeout", "ReadTimeWindow", "ReadTime", "OutputConfig", "Query", "Time", }); - internal_static_google_cloud_asset_v1_QueryAssetsResponse_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_google_cloud_asset_v1_QueryAssetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_QueryAssetsResponse_descriptor, - new java.lang.String[] { "JobReference", "Done", "Error", "QueryResult", "OutputConfig", "Response", }); - internal_static_google_cloud_asset_v1_QueryResult_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_google_cloud_asset_v1_QueryResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_QueryResult_descriptor, - new java.lang.String[] { "Rows", "Schema", "NextPageToken", "TotalRows", }); - internal_static_google_cloud_asset_v1_TableSchema_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_google_cloud_asset_v1_TableSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_TableSchema_descriptor, - new java.lang.String[] { "Fields", }); - internal_static_google_cloud_asset_v1_TableFieldSchema_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_google_cloud_asset_v1_TableFieldSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_TableFieldSchema_descriptor, - new java.lang.String[] { "Field", "Type", "Mode", "Fields", }); - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(50); - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesRequest_descriptor, - new java.lang.String[] { "Scope", "Names", }); - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(51); - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor, - new java.lang.String[] { "PolicyResults", }); - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor = - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor, - new java.lang.String[] { "FullResourceName", "Policies", }); - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor = - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1_BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo_descriptor, - new java.lang.String[] { "AttachedResource", "Policy", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.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.asset.v1.AssetProto.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(); - com.google.rpc.StatusProto.getDescriptor(); - com.google.type.ExprProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequestOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequestOrBuilder.java deleted file mode 100644 index cf666128a512..000000000000 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteFeedRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1/asset_service.proto - -package com.google.cloud.asset.v1; - -public interface DeleteFeedRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.DeleteFeedRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * Required. The name of the feed and it must be in the format of:
    -   * projects/project_number/feeds/feed_id
    -   * folders/folder_number/feeds/feed_id
    -   * organizations/organization_number/feeds/feed_id
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * Required. The name of the feed and it must be in the format of:
    -   * projects/project_number/feeds/feed_id
    -   * folders/folder_number/feeds/feed_id
    -   * organizations/organization_number/feeds/feed_id
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequestOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequestOrBuilder.java deleted file mode 100644 index e0ba72b7526f..000000000000 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/DeleteSavedQueryRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1/asset_service.proto - -package com.google.cloud.asset.v1; - -public interface DeleteSavedQueryRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.DeleteSavedQueryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * Required. The name of the saved query to delete. It must be in the format of:
    -   * * projects/project_number/savedQueries/saved_query_id
    -   * * folders/folder_number/savedQueries/saved_query_id
    -   * * organizations/organization_number/savedQueries/saved_query_id
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * Required. The name of the saved query to delete. It must be in the format of:
    -   * * projects/project_number/savedQueries/saved_query_id
    -   * * folders/folder_number/savedQueries/saved_query_id
    -   * * organizations/organization_number/savedQueries/saved_query_id
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequestOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequestOrBuilder.java deleted file mode 100644 index fb82dab2672d..000000000000 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1/asset_service.proto - -package com.google.cloud.asset.v1; - -public interface GetFeedRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.GetFeedRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * Required. The name of the Feed and it must be in the format of:
    -   * projects/project_number/feeds/feed_id
    -   * folders/folder_number/feeds/feed_id
    -   * organizations/organization_number/feeds/feed_id
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * Required. The name of the Feed and it must be in the format of:
    -   * projects/project_number/feeds/feed_id
    -   * folders/folder_number/feeds/feed_id
    -   * organizations/organization_number/feeds/feed_id
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequestOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequestOrBuilder.java deleted file mode 100644 index 66de7ef847e8..000000000000 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetSavedQueryRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1/asset_service.proto - -package com.google.cloud.asset.v1; - -public interface GetSavedQueryRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.GetSavedQueryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * Required. The name of the saved query and it must be in the format of:
    -   * * projects/project_number/savedQueries/saved_query_id
    -   * * folders/folder_number/savedQueries/saved_query_id
    -   * * organizations/organization_number/savedQueries/saved_query_id
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * Required. The name of the saved query and it must be in the format of:
    -   * * projects/project_number/savedQueries/saved_query_id
    -   * * folders/folder_number/savedQueries/saved_query_id
    -   * * organizations/organization_number/savedQueries/saved_query_id
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpactOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpactOrBuilder.java deleted file mode 100644 index d6416c9411ab..000000000000 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveImpactOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1/asset_service.proto - -package com.google.cloud.asset.v1; - -public interface MoveImpactOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.MoveImpact) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * User friendly impact detail in a free form message.
    -   * 
    - * - * string detail = 1; - * @return The detail. - */ - java.lang.String getDetail(); - /** - *
    -   * User friendly impact detail in a free form message.
    -   * 
    - * - * string detail = 1; - * @return The bytes for detail. - */ - com.google.protobuf.ByteString - getDetailBytes(); -} diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ProjectName.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ProjectName.java deleted file mode 100644 index 032e6dc27a07..000000000000 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ProjectName.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.asset.v1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class ProjectName implements ResourceName { - private static final PathTemplate PROJECT = - PathTemplate.createWithoutUrlEncoding("projects/{project}"); - private volatile Map fieldValuesMap; - private final String project; - - @Deprecated - protected ProjectName() { - project = null; - } - - private ProjectName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - } - - public String getProject() { - return project; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static ProjectName of(String project) { - return newBuilder().setProject(project).build(); - } - - public static String format(String project) { - return newBuilder().setProject(project).build().toString(); - } - - public static ProjectName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT.validatedMatch( - formattedString, "ProjectName.parse: formattedString not in valid format"); - return of(matchMap.get("project")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (ProjectName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT.instantiate("project", project); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - ProjectName that = ((ProjectName) o); - return Objects.equals(this.project, that.project); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - return h; - } - - /** Builder for projects/{project}. */ - public static class Builder { - private String project; - - protected Builder() {} - - public String getProject() { - return project; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - private Builder(ProjectName projectName) { - this.project = projectName.project; - } - - public ProjectName build() { - return new ProjectName(this); - } - } -} diff --git a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfigOrBuilder.java b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfigOrBuilder.java deleted file mode 100644 index 55a6b3b6bd65..000000000000 --- a/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsOutputConfigOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1/asset_service.proto - -package com.google.cloud.asset.v1; - -public interface QueryAssetsOutputConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.QueryAssetsOutputConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * BigQuery destination where the query results will be saved.
    -   * 
    - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; - * @return Whether the bigqueryDestination field is set. - */ - boolean hasBigqueryDestination(); - /** - *
    -   * BigQuery destination where the query results will be saved.
    -   * 
    - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; - * @return The bigqueryDestination. - */ - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination getBigqueryDestination(); - /** - *
    -   * BigQuery destination where the query results will be saved.
    -   * 
    - * - * .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; - */ - com.google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder(); -} diff --git a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetProto.java b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetProto.java deleted file mode 100644 index 4a68b91ba585..000000000000 --- a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetProto.java +++ /dev/null @@ -1,129 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1p1beta1/assets.proto - -package com.google.cloud.asset.v1p1beta1; - -public final class AssetProto { - private AssetProto() {} - 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_asset_v1p1beta1_StandardResourceMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p1beta1_Permissions_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/asset/v1p1beta1/assets.pr" + - "oto\022\034google.cloud.asset.v1p1beta1\032\032googl" + - "e/iam/v1/policy.proto\"\302\002\n\030StandardResour" + - "ceMetadata\022\014\n\004name\030\001 \001(\t\022\022\n\nasset_type\030\002" + - " \001(\t\022\017\n\007project\030\003 \001(\t\022\024\n\014display_name\030\004 " + - "\001(\t\022\023\n\013description\030\005 \001(\t\022\035\n\025additional_a" + - "ttributes\030\n \003(\t\022\020\n\010location\030\013 \001(\t\022R\n\006lab" + - "els\030\014 \003(\0132B.google.cloud.asset.v1p1beta1" + - ".StandardResourceMetadata.LabelsEntry\022\024\n" + - "\014network_tags\030\r \003(\t\032-\n\013LabelsEntry\022\013\n\003ke" + - "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\243\003\n\025IamPolicy" + - "SearchResult\022\020\n\010resource\030\001 \001(\t\022\017\n\007projec" + - "t\030\003 \001(\t\022%\n\006policy\030\004 \001(\0132\025.google.iam.v1." + - "Policy\022T\n\013explanation\030\005 \001(\0132?.google.clo" + - "ud.asset.v1p1beta1.IamPolicySearchResult" + - ".Explanation\032\351\001\n\013Explanation\022t\n\023matched_" + - "permissions\030\001 \003(\0132W.google.cloud.asset.v" + - "1p1beta1.IamPolicySearchResult.Explanati" + - "on.MatchedPermissionsEntry\032d\n\027MatchedPer" + - "missionsEntry\022\013\n\003key\030\001 \001(\t\0228\n\005value\030\002 \001(" + - "\0132).google.cloud.asset.v1p1beta1.Permiss" + - "ions:\0028\001\"\"\n\013Permissions\022\023\n\013permissions\030\001" + - " \003(\tB\264\001\n com.google.cloud.asset.v1p1beta" + - "1B\nAssetProtoP\001ZAgoogle.golang.org/genpr" + - "oto/googleapis/cloud/asset/v1p1beta1;ass" + - "et\370\001\001\252\002\034Google.Cloud.Asset.V1P1Beta1\312\002\034G" + - "oogle\\Cloud\\Asset\\V1p1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.iam.v1.PolicyProto.getDescriptor(), - }); - internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor, - new java.lang.String[] { "Name", "AssetType", "Project", "DisplayName", "Description", "AdditionalAttributes", "Location", "Labels", "NetworkTags", }); - internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_LabelsEntry_descriptor = - internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p1beta1_StandardResourceMetadata_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor, - new java.lang.String[] { "Resource", "Project", "Policy", "Explanation", }); - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor = - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor, - new java.lang.String[] { "MatchedPermissions", }); - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor = - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p1beta1_IamPolicySearchResult_Explanation_MatchedPermissionsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_asset_v1p1beta1_Permissions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p1beta1_Permissions_descriptor, - new java.lang.String[] { "Permissions", }); - com.google.iam.v1.PolicyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceProto.java b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceProto.java deleted file mode 100644 index 250866763a66..000000000000 --- a/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceProto.java +++ /dev/null @@ -1,132 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1p1beta1/asset_service.proto - -package com.google.cloud.asset.v1p1beta1; - -public final class AssetServiceProto { - private AssetServiceProto() {} - 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_asset_v1p1beta1_SearchAllResourcesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/asset/v1p1beta1/asset_ser" + - "vice.proto\022\034google.cloud.asset.v1p1beta1" + - "\032\034google/api/annotations.proto\032\027google/a" + - "pi/client.proto\032\037google/api/field_behavi" + - "or.proto\032)google/cloud/asset/v1p1beta1/a" + - "ssets.proto\"\245\001\n\031SearchAllResourcesReques" + - "t\022\022\n\005scope\030\001 \001(\tB\003\340A\002\022\022\n\005query\030\002 \001(\tB\003\340A" + - "\001\022\030\n\013asset_types\030\003 \003(\tB\003\340A\001\022\026\n\tpage_size" + - "\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005 \001(\tB\003\340A\001\022\025\n\010" + - "order_by\030\n \001(\tB\003\340A\001\"~\n\032SearchAllResource" + - "sResponse\022G\n\007results\030\001 \003(\01326.google.clou" + - "d.asset.v1p1beta1.StandardResourceMetada" + - "ta\022\027\n\017next_page_token\030\002 \001(\t\"v\n\033SearchAll" + - "IamPoliciesRequest\022\022\n\005scope\030\001 \001(\tB\003\340A\002\022\022" + - "\n\005query\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340" + - "A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\"}\n\034SearchAll" + - "IamPoliciesResponse\022D\n\007results\030\001 \003(\01323.g" + - "oogle.cloud.asset.v1p1beta1.IamPolicySea" + - "rchResult\022\027\n\017next_page_token\030\002 \001(\t2\211\004\n\014A" + - "ssetService\022\325\001\n\022SearchAllResources\0227.goo" + - "gle.cloud.asset.v1p1beta1.SearchAllResou" + - "rcesRequest\0328.google.cloud.asset.v1p1bet" + - "a1.SearchAllResourcesResponse\"L\202\323\344\223\002,\022*/" + - "v1p1beta1/{scope=*/*}/resources:searchAl" + - "l\332A\027scope,query,asset_types\022\321\001\n\024SearchAl" + - "lIamPolicies\0229.google.cloud.asset.v1p1be" + - "ta1.SearchAllIamPoliciesRequest\032:.google" + - ".cloud.asset.v1p1beta1.SearchAllIamPolic" + - "iesResponse\"B\202\323\344\223\002.\022,/v1p1beta1/{scope=*" + - "/*}/iamPolicies:searchAll\332A\013scope,query\032" + - "M\312A\031cloudasset.googleapis.com\322A.https://" + - "www.googleapis.com/auth/cloud-platformB\270" + - "\001\n com.google.cloud.asset.v1p1beta1B\021Ass" + - "etServiceProtoP\001ZAgoogle.golang.org/genp" + - "roto/googleapis/cloud/asset/v1p1beta1;as" + - "set\252\002\034Google.Cloud.Asset.V1P1Beta1\312\002\034Goo" + - "gle\\Cloud\\Asset\\V1p1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.asset.v1p1beta1.AssetProto.getDescriptor(), - }); - internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesRequest_descriptor, - new java.lang.String[] { "Scope", "Query", "AssetTypes", "PageSize", "PageToken", "OrderBy", }); - internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p1beta1_SearchAllResourcesResponse_descriptor, - new java.lang.String[] { "Results", "NextPageToken", }); - internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesRequest_descriptor, - new java.lang.String[] { "Scope", "Query", "PageSize", "PageToken", }); - internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p1beta1_SearchAllIamPoliciesResponse_descriptor, - new java.lang.String[] { "Results", "NextPageToken", }); - 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); - 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.cloud.asset.v1p1beta1.AssetProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-asset/v1p2beta1/grpc-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceGrpc.java b/owl-bot-staging/java-asset/v1p2beta1/grpc-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceGrpc.java deleted file mode 100644 index 696a0aaafec7..000000000000 --- a/owl-bot-staging/java-asset/v1p2beta1/grpc-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceGrpc.java +++ /dev/null @@ -1,651 +0,0 @@ -package com.google.cloud.asset.v1p2beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
    - * Asset service definition.
    - * 
    - */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/asset/v1p2beta1/asset_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AssetServiceGrpc { - - private AssetServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.asset.v1p2beta1.AssetService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateFeedMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFeed", - requestType = com.google.cloud.asset.v1p2beta1.CreateFeedRequest.class, - responseType = com.google.cloud.asset.v1p2beta1.Feed.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateFeedMethod() { - io.grpc.MethodDescriptor getCreateFeedMethod; - if ((getCreateFeedMethod = AssetServiceGrpc.getCreateFeedMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getCreateFeedMethod = AssetServiceGrpc.getCreateFeedMethod) == null) { - AssetServiceGrpc.getCreateFeedMethod = getCreateFeedMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFeed")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p2beta1.CreateFeedRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("CreateFeed")) - .build(); - } - } - } - return getCreateFeedMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetFeedMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFeed", - requestType = com.google.cloud.asset.v1p2beta1.GetFeedRequest.class, - responseType = com.google.cloud.asset.v1p2beta1.Feed.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetFeedMethod() { - io.grpc.MethodDescriptor getGetFeedMethod; - if ((getGetFeedMethod = AssetServiceGrpc.getGetFeedMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getGetFeedMethod = AssetServiceGrpc.getGetFeedMethod) == null) { - AssetServiceGrpc.getGetFeedMethod = getGetFeedMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFeed")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p2beta1.GetFeedRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("GetFeed")) - .build(); - } - } - } - return getGetFeedMethod; - } - - private static volatile io.grpc.MethodDescriptor getListFeedsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFeeds", - requestType = com.google.cloud.asset.v1p2beta1.ListFeedsRequest.class, - responseType = com.google.cloud.asset.v1p2beta1.ListFeedsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListFeedsMethod() { - io.grpc.MethodDescriptor getListFeedsMethod; - if ((getListFeedsMethod = AssetServiceGrpc.getListFeedsMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getListFeedsMethod = AssetServiceGrpc.getListFeedsMethod) == null) { - AssetServiceGrpc.getListFeedsMethod = getListFeedsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFeeds")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p2beta1.ListFeedsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p2beta1.ListFeedsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("ListFeeds")) - .build(); - } - } - } - return getListFeedsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateFeedMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFeed", - requestType = com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.class, - responseType = com.google.cloud.asset.v1p2beta1.Feed.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateFeedMethod() { - io.grpc.MethodDescriptor getUpdateFeedMethod; - if ((getUpdateFeedMethod = AssetServiceGrpc.getUpdateFeedMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getUpdateFeedMethod = AssetServiceGrpc.getUpdateFeedMethod) == null) { - AssetServiceGrpc.getUpdateFeedMethod = getUpdateFeedMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFeed")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p2beta1.UpdateFeedRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p2beta1.Feed.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("UpdateFeed")) - .build(); - } - } - } - return getUpdateFeedMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteFeedMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteFeed", - requestType = com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteFeedMethod() { - io.grpc.MethodDescriptor getDeleteFeedMethod; - if ((getDeleteFeedMethod = AssetServiceGrpc.getDeleteFeedMethod) == null) { - synchronized (AssetServiceGrpc.class) { - if ((getDeleteFeedMethod = AssetServiceGrpc.getDeleteFeedMethod) == null) { - AssetServiceGrpc.getDeleteFeedMethod = getDeleteFeedMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFeed")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.asset.v1p2beta1.DeleteFeedRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AssetServiceMethodDescriptorSupplier("DeleteFeed")) - .build(); - } - } - } - return getDeleteFeedMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static AssetServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceStub(channel, callOptions); - } - }; - return AssetServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AssetServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceBlockingStub(channel, callOptions); - } - }; - return AssetServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static AssetServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AssetServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceFutureStub(channel, callOptions); - } - }; - return AssetServiceFutureStub.newStub(factory, channel); - } - - /** - *
    -   * Asset service definition.
    -   * 
    - */ - public static abstract class AssetServiceImplBase implements io.grpc.BindableService { - - /** - *
    -     * Creates a feed in a parent project/folder/organization to listen to its
    -     * asset updates.
    -     * 
    - */ - public void createFeed(com.google.cloud.asset.v1p2beta1.CreateFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFeedMethod(), responseObserver); - } - - /** - *
    -     * Gets details about an asset feed.
    -     * 
    - */ - public void getFeed(com.google.cloud.asset.v1p2beta1.GetFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeedMethod(), responseObserver); - } - - /** - *
    -     * Lists all asset feeds in a parent project/folder/organization.
    -     * 
    - */ - public void listFeeds(com.google.cloud.asset.v1p2beta1.ListFeedsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFeedsMethod(), responseObserver); - } - - /** - *
    -     * Updates an asset feed configuration.
    -     * 
    - */ - public void updateFeed(com.google.cloud.asset.v1p2beta1.UpdateFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFeedMethod(), responseObserver); - } - - /** - *
    -     * Deletes an asset feed.
    -     * 
    - */ - public void deleteFeed(com.google.cloud.asset.v1p2beta1.DeleteFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFeedMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateFeedMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1p2beta1.CreateFeedRequest, - com.google.cloud.asset.v1p2beta1.Feed>( - this, METHODID_CREATE_FEED))) - .addMethod( - getGetFeedMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1p2beta1.GetFeedRequest, - com.google.cloud.asset.v1p2beta1.Feed>( - this, METHODID_GET_FEED))) - .addMethod( - getListFeedsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1p2beta1.ListFeedsRequest, - com.google.cloud.asset.v1p2beta1.ListFeedsResponse>( - this, METHODID_LIST_FEEDS))) - .addMethod( - getUpdateFeedMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1p2beta1.UpdateFeedRequest, - com.google.cloud.asset.v1p2beta1.Feed>( - this, METHODID_UPDATE_FEED))) - .addMethod( - getDeleteFeedMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.asset.v1p2beta1.DeleteFeedRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_FEED))) - .build(); - } - } - - /** - *
    -   * Asset service definition.
    -   * 
    - */ - public static final class AssetServiceStub extends io.grpc.stub.AbstractAsyncStub { - private AssetServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssetServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceStub(channel, callOptions); - } - - /** - *
    -     * Creates a feed in a parent project/folder/organization to listen to its
    -     * asset updates.
    -     * 
    - */ - public void createFeed(com.google.cloud.asset.v1p2beta1.CreateFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFeedMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Gets details about an asset feed.
    -     * 
    - */ - public void getFeed(com.google.cloud.asset.v1p2beta1.GetFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFeedMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Lists all asset feeds in a parent project/folder/organization.
    -     * 
    - */ - public void listFeeds(com.google.cloud.asset.v1p2beta1.ListFeedsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFeedsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Updates an asset feed configuration.
    -     * 
    - */ - public void updateFeed(com.google.cloud.asset.v1p2beta1.UpdateFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFeedMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Deletes an asset feed.
    -     * 
    - */ - public void deleteFeed(com.google.cloud.asset.v1p2beta1.DeleteFeedRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFeedMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
    -   * Asset service definition.
    -   * 
    - */ - public static final class AssetServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private AssetServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssetServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceBlockingStub(channel, callOptions); - } - - /** - *
    -     * Creates a feed in a parent project/folder/organization to listen to its
    -     * asset updates.
    -     * 
    - */ - public com.google.cloud.asset.v1p2beta1.Feed createFeed(com.google.cloud.asset.v1p2beta1.CreateFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFeedMethod(), getCallOptions(), request); - } - - /** - *
    -     * Gets details about an asset feed.
    -     * 
    - */ - public com.google.cloud.asset.v1p2beta1.Feed getFeed(com.google.cloud.asset.v1p2beta1.GetFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFeedMethod(), getCallOptions(), request); - } - - /** - *
    -     * Lists all asset feeds in a parent project/folder/organization.
    -     * 
    - */ - public com.google.cloud.asset.v1p2beta1.ListFeedsResponse listFeeds(com.google.cloud.asset.v1p2beta1.ListFeedsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFeedsMethod(), getCallOptions(), request); - } - - /** - *
    -     * Updates an asset feed configuration.
    -     * 
    - */ - public com.google.cloud.asset.v1p2beta1.Feed updateFeed(com.google.cloud.asset.v1p2beta1.UpdateFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFeedMethod(), getCallOptions(), request); - } - - /** - *
    -     * Deletes an asset feed.
    -     * 
    - */ - public com.google.protobuf.Empty deleteFeed(com.google.cloud.asset.v1p2beta1.DeleteFeedRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFeedMethod(), getCallOptions(), request); - } - } - - /** - *
    -   * Asset service definition.
    -   * 
    - */ - public static final class AssetServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private AssetServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssetServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceFutureStub(channel, callOptions); - } - - /** - *
    -     * Creates a feed in a parent project/folder/organization to listen to its
    -     * asset updates.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture createFeed( - com.google.cloud.asset.v1p2beta1.CreateFeedRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFeedMethod(), getCallOptions()), request); - } - - /** - *
    -     * Gets details about an asset feed.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture getFeed( - com.google.cloud.asset.v1p2beta1.GetFeedRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFeedMethod(), getCallOptions()), request); - } - - /** - *
    -     * Lists all asset feeds in a parent project/folder/organization.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture listFeeds( - com.google.cloud.asset.v1p2beta1.ListFeedsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFeedsMethod(), getCallOptions()), request); - } - - /** - *
    -     * Updates an asset feed configuration.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture updateFeed( - com.google.cloud.asset.v1p2beta1.UpdateFeedRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFeedMethod(), getCallOptions()), request); - } - - /** - *
    -     * Deletes an asset feed.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture deleteFeed( - com.google.cloud.asset.v1p2beta1.DeleteFeedRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFeedMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_FEED = 0; - private static final int METHODID_GET_FEED = 1; - private static final int METHODID_LIST_FEEDS = 2; - private static final int METHODID_UPDATE_FEED = 3; - private static final int METHODID_DELETE_FEED = 4; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AssetServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AssetServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_FEED: - serviceImpl.createFeed((com.google.cloud.asset.v1p2beta1.CreateFeedRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_FEED: - serviceImpl.getFeed((com.google.cloud.asset.v1p2beta1.GetFeedRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_FEEDS: - serviceImpl.listFeeds((com.google.cloud.asset.v1p2beta1.ListFeedsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_FEED: - serviceImpl.updateFeed((com.google.cloud.asset.v1p2beta1.UpdateFeedRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_FEED: - serviceImpl.deleteFeed((com.google.cloud.asset.v1p2beta1.DeleteFeedRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class AssetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AssetServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.asset.v1p2beta1.AssetServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AssetService"); - } - } - - private static final class AssetServiceFileDescriptorSupplier - extends AssetServiceBaseDescriptorSupplier { - AssetServiceFileDescriptorSupplier() {} - } - - private static final class AssetServiceMethodDescriptorSupplier - extends AssetServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AssetServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (AssetServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AssetServiceFileDescriptorSupplier()) - .addMethod(getCreateFeedMethod()) - .addMethod(getGetFeedMethod()) - .addMethod(getListFeedsMethod()) - .addMethod(getUpdateFeedMethod()) - .addMethod(getDeleteFeedMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetProto.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetProto.java deleted file mode 100644 index 6e5b09f52b61..000000000000 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetProto.java +++ /dev/null @@ -1,108 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1p2beta1/assets.proto - -package com.google.cloud.asset.v1p2beta1; - -public final class AssetProto { - private AssetProto() {} - 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_asset_v1p2beta1_TemporalAsset_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_TimeWindow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_Asset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_Resource_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/asset/v1p2beta1/assets.pr" + - "oto\022\034google.cloud.asset.v1p2beta1\032\032googl" + - "e/iam/v1/policy.proto\032\034google/protobuf/s" + - "truct.proto\032\037google/protobuf/timestamp.p" + - "roto\"\216\001\n\rTemporalAsset\0228\n\006window\030\001 \001(\0132(" + - ".google.cloud.asset.v1p2beta1.TimeWindow" + - "\022\017\n\007deleted\030\002 \001(\010\0222\n\005asset\030\003 \001(\0132#.googl" + - "e.cloud.asset.v1p2beta1.Asset\"j\n\nTimeWin" + - "dow\022.\n\nstart_time\030\001 \001(\0132\032.google.protobu" + - "f.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.google.p" + - "rotobuf.Timestamp\"\241\001\n\005Asset\022\014\n\004name\030\001 \001(" + - "\t\022\022\n\nasset_type\030\002 \001(\t\0228\n\010resource\030\003 \001(\0132" + - "&.google.cloud.asset.v1p2beta1.Resource\022" + - ")\n\niam_policy\030\004 \001(\0132\025.google.iam.v1.Poli" + - "cy\022\021\n\tancestors\030\006 \003(\t\"\240\001\n\010Resource\022\017\n\007ve" + - "rsion\030\001 \001(\t\022\036\n\026discovery_document_uri\030\002 " + - "\001(\t\022\026\n\016discovery_name\030\003 \001(\t\022\024\n\014resource_" + - "url\030\004 \001(\t\022\016\n\006parent\030\005 \001(\t\022%\n\004data\030\006 \001(\0132" + - "\027.google.protobuf.StructB\264\001\n com.google." + - "cloud.asset.v1p2beta1B\nAssetProtoP\001ZAgoo" + - "gle.golang.org/genproto/googleapis/cloud" + - "/asset/v1p2beta1;asset\370\001\001\252\002\034Google.Cloud" + - ".Asset.v1p2beta1\312\002\034Google\\Cloud\\Asset\\V1" + - "p2beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_TemporalAsset_descriptor, - new java.lang.String[] { "Window", "Deleted", "Asset", }); - internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_asset_v1p2beta1_TimeWindow_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_TimeWindow_descriptor, - new java.lang.String[] { "StartTime", "EndTime", }); - internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_asset_v1p2beta1_Asset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_Asset_descriptor, - new java.lang.String[] { "Name", "AssetType", "Resource", "IamPolicy", "Ancestors", }); - internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_asset_v1p2beta1_Resource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_Resource_descriptor, - new java.lang.String[] { "Version", "DiscoveryDocumentUri", "DiscoveryName", "ResourceUrl", "Parent", "Data", }); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceProto.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceProto.java deleted file mode 100644 index 4dac20305692..000000000000 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceProto.java +++ /dev/null @@ -1,245 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1p2beta1/asset_service.proto - -package com.google.cloud.asset.v1p2beta1; - -public final class AssetServiceProto { - private AssetServiceProto() {} - 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_asset_v1p2beta1_CreateFeedRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p2beta1_Feed_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/asset/v1p2beta1/asset_ser" + - "vice.proto\022\034google.cloud.asset.v1p2beta1" + - "\032\034google/api/annotations.proto\032\027google/a" + - "pi/client.proto\032\037google/api/field_behavi" + - "or.proto\032\031google/api/resource.proto\032)goo" + - "gle/cloud/asset/v1p2beta1/assets.proto\032\033" + - "google/protobuf/empty.proto\032 google/prot" + - "obuf/field_mask.proto\"u\n\021CreateFeedReque" + - "st\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\024\n\007feed_id\030\002 \001(\t" + - "B\003\340A\002\0225\n\004feed\030\003 \001(\0132\".google.cloud.asset" + - ".v1p2beta1.FeedB\003\340A\002\"F\n\016GetFeedRequest\0224" + - "\n\004name\030\001 \001(\tB&\340A\002\372A \n\036cloudasset.googlea" + - "pis.com/Feed\"\'\n\020ListFeedsRequest\022\023\n\006pare" + - "nt\030\001 \001(\tB\003\340A\002\"F\n\021ListFeedsResponse\0221\n\005fe" + - "eds\030\001 \003(\0132\".google.cloud.asset.v1p2beta1" + - ".Feed\"\200\001\n\021UpdateFeedRequest\0225\n\004feed\030\001 \001(" + - "\0132\".google.cloud.asset.v1p2beta1.FeedB\003\340" + - "A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobu" + - "f.FieldMaskB\003\340A\002\"I\n\021DeleteFeedRequest\0224\n" + - "\004name\030\001 \001(\tB&\340A\002\372A \n\036cloudasset.googleap" + - "is.com/Feed\"f\n\014OutputConfig\022G\n\017gcs_desti" + - "nation\030\001 \001(\0132,.google.cloud.asset.v1p2be" + - "ta1.GcsDestinationH\000B\r\n\013destination\"-\n\016G" + - "csDestination\022\r\n\003uri\030\001 \001(\tH\000B\014\n\nobject_u" + - "ri\"\"\n\021PubsubDestination\022\r\n\005topic\030\001 \001(\t\"p" + - "\n\020FeedOutputConfig\022M\n\022pubsub_destination" + - "\030\001 \001(\0132/.google.cloud.asset.v1p2beta1.Pu" + - "bsubDestinationH\000B\r\n\013destination\"\351\002\n\004Fee" + - "d\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\013asset_names\030\002 \003(" + - "\t\022\023\n\013asset_types\030\003 \003(\t\022?\n\014content_type\030\004" + - " \001(\0162).google.cloud.asset.v1p2beta1.Cont" + - "entType\022O\n\022feed_output_config\030\005 \001(\0132..go" + - "ogle.cloud.asset.v1p2beta1.FeedOutputCon" + - "figB\003\340A\002:\221\001\352A\215\001\n\036cloudasset.googleapis.c" + - "om/Feed\022\037projects/{project}/feeds/{feed}" + - "\022\035folders/{folder}/feeds/{feed}\022)organiz" + - "ations/{organization}/feeds/{feed} \001*I\n\013" + - "ContentType\022\034\n\030CONTENT_TYPE_UNSPECIFIED\020" + - "\000\022\014\n\010RESOURCE\020\001\022\016\n\nIAM_POLICY\020\0022\277\006\n\014Asse" + - "tService\022\224\001\n\nCreateFeed\022/.google.cloud.a" + - "sset.v1p2beta1.CreateFeedRequest\032\".googl" + - "e.cloud.asset.v1p2beta1.Feed\"1\202\323\344\223\002\"\"\035/v" + - "1p2beta1/{parent=*/*}/feeds:\001*\332A\006parent\022" + - "\211\001\n\007GetFeed\022,.google.cloud.asset.v1p2bet" + - "a1.GetFeedRequest\032\".google.cloud.asset.v" + - "1p2beta1.Feed\",\202\323\344\223\002\037\022\035/v1p2beta1/{name=" + - "*/*/feeds/*}\332A\004name\022\234\001\n\tListFeeds\022..goog" + - "le.cloud.asset.v1p2beta1.ListFeedsReques" + - "t\032/.google.cloud.asset.v1p2beta1.ListFee" + - "dsResponse\".\202\323\344\223\002\037\022\035/v1p2beta1/{parent=*" + - "/*}/feeds\332A\006parent\022\227\001\n\nUpdateFeed\022/.goog" + - "le.cloud.asset.v1p2beta1.UpdateFeedReque" + - "st\032\".google.cloud.asset.v1p2beta1.Feed\"4" + - "\202\323\344\223\002\'2\"/v1p2beta1/{feed.name=*/*/feeds/" + - "*}:\001*\332A\004feed\022\203\001\n\nDeleteFeed\022/.google.clo" + - "ud.asset.v1p2beta1.DeleteFeedRequest\032\026.g" + - "oogle.protobuf.Empty\",\202\323\344\223\002\037*\035/v1p2beta1" + - "/{name=*/*/feeds/*}\332A\004name\032M\312A\031cloudasse" + - "t.googleapis.com\322A.https://www.googleapi" + - "s.com/auth/cloud-platformB\270\001\n com.google" + - ".cloud.asset.v1p2beta1B\021AssetServiceProt" + - "oP\001ZAgoogle.golang.org/genproto/googleap" + - "is/cloud/asset/v1p2beta1;asset\252\002\034Google." + - "Cloud.Asset.V1p2Beta1\312\002\034Google\\Cloud\\Ass" + - "et\\V1p2beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.asset.v1p2beta1.AssetProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_CreateFeedRequest_descriptor, - new java.lang.String[] { "Parent", "FeedId", "Feed", }); - internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_GetFeedRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_ListFeedsRequest_descriptor, - new java.lang.String[] { "Parent", }); - internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_ListFeedsResponse_descriptor, - new java.lang.String[] { "Feeds", }); - internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_UpdateFeedRequest_descriptor, - new java.lang.String[] { "Feed", "UpdateMask", }); - internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_DeleteFeedRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_asset_v1p2beta1_OutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_OutputConfig_descriptor, - new java.lang.String[] { "GcsDestination", "Destination", }); - internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_asset_v1p2beta1_GcsDestination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_GcsDestination_descriptor, - new java.lang.String[] { "Uri", "ObjectUri", }); - internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_PubsubDestination_descriptor, - new java.lang.String[] { "Topic", }); - internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_FeedOutputConfig_descriptor, - new java.lang.String[] { "PubsubDestination", "Destination", }); - internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_asset_v1p2beta1_Feed_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p2beta1_Feed_descriptor, - new java.lang.String[] { "Name", "AssetNames", "AssetTypes", "ContentType", "FeedOutputConfig", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - 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.asset.v1p2beta1.AssetProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequestOrBuilder.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequestOrBuilder.java deleted file mode 100644 index 7e01ca30edd5..000000000000 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/DeleteFeedRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1p2beta1/asset_service.proto - -package com.google.cloud.asset.v1p2beta1; - -public interface DeleteFeedRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.DeleteFeedRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * Required. The name of the feed and it must be in the format of:
    -   * projects/project_number/feeds/feed_id
    -   * folders/folder_number/feeds/feed_id
    -   * organizations/organization_number/feeds/feed_id
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * Required. The name of the feed and it must be in the format of:
    -   * projects/project_number/feeds/feed_id
    -   * folders/folder_number/feeds/feed_id
    -   * organizations/organization_number/feeds/feed_id
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequestOrBuilder.java b/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequestOrBuilder.java deleted file mode 100644 index 1e57a7098971..000000000000 --- a/owl-bot-staging/java-asset/v1p2beta1/proto-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/GetFeedRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1p2beta1/asset_service.proto - -package com.google.cloud.asset.v1p2beta1; - -public interface GetFeedRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1p2beta1.GetFeedRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * Required. The name of the Feed and it must be in the format of:
    -   * projects/project_number/feeds/feed_id
    -   * folders/folder_number/feeds/feed_id
    -   * organizations/organization_number/feeds/feed_id
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * Required. The name of the Feed and it must be in the format of:
    -   * projects/project_number/feeds/feed_id
    -   * folders/folder_number/feeds/feed_id
    -   * organizations/organization_number/feeds/feed_id
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetProto.java b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetProto.java deleted file mode 100644 index cab08c9049fa..000000000000 --- a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetProto.java +++ /dev/null @@ -1,107 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1p5beta1/assets.proto - -package com.google.cloud.asset.v1p5beta1; - -public final class AssetProto { - private AssetProto() {} - 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_asset_v1p5beta1_Asset_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p5beta1_Asset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p5beta1_Resource_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/asset/v1p5beta1/assets.pr" + - "oto\022\034google.cloud.asset.v1p5beta1\032\031googl" + - "e/api/resource.proto\032)google/cloud/orgpo" + - "licy/v1/orgpolicy.proto\032\032google/iam/v1/p" + - "olicy.proto\032:google/identity/accessconte" + - "xtmanager/v1/access_level.proto\032;google/" + - "identity/accesscontextmanager/v1/access_" + - "policy.proto\032?google/identity/accesscont" + - "extmanager/v1/service_perimeter.proto\032\034g" + - "oogle/protobuf/struct.proto\"\220\004\n\005Asset\022\014\n" + - "\004name\030\001 \001(\t\022\022\n\nasset_type\030\002 \001(\t\0228\n\010resou" + - "rce\030\003 \001(\0132&.google.cloud.asset.v1p5beta1" + - ".Resource\022)\n\niam_policy\030\004 \001(\0132\025.google.i" + - "am.v1.Policy\0225\n\norg_policy\030\006 \003(\0132!.googl" + - "e.cloud.orgpolicy.v1.Policy\022N\n\raccess_po" + - "licy\030\007 \001(\01325.google.identity.accessconte" + - "xtmanager.v1.AccessPolicyH\000\022L\n\014access_le" + - "vel\030\010 \001(\01324.google.identity.accesscontex" + - "tmanager.v1.AccessLevelH\000\022V\n\021service_per" + - "imeter\030\t \001(\01329.google.identity.accesscon" + - "textmanager.v1.ServicePerimeterH\000\022\021\n\tanc" + - "estors\030\n \003(\t:\'\352A$\n\037cloudasset.googleapis" + - ".com/Asset\022\001*B\027\n\025access_context_policy\"\240" + - "\001\n\010Resource\022\017\n\007version\030\001 \001(\t\022\036\n\026discover" + - "y_document_uri\030\002 \001(\t\022\026\n\016discovery_name\030\003" + - " \001(\t\022\024\n\014resource_url\030\004 \001(\t\022\016\n\006parent\030\005 \001" + - "(\t\022%\n\004data\030\006 \001(\0132\027.google.protobuf.Struc" + - "tB\264\001\n com.google.cloud.asset.v1p5beta1B\n" + - "AssetProtoP\001ZAgoogle.golang.org/genproto" + - "/googleapis/cloud/asset/v1p5beta1;asset\370" + - "\001\001\252\002\034Google.Cloud.Asset.V1p5Beta1\312\002\034Goog" + - "le\\Cloud\\Asset\\V1p5beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(), - com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(), - com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - }); - internal_static_google_cloud_asset_v1p5beta1_Asset_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_asset_v1p5beta1_Asset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p5beta1_Asset_descriptor, - new java.lang.String[] { "Name", "AssetType", "Resource", "IamPolicy", "OrgPolicy", "AccessPolicy", "AccessLevel", "ServicePerimeter", "Ancestors", "AccessContextPolicy", }); - internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_asset_v1p5beta1_Resource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p5beta1_Resource_descriptor, - new java.lang.String[] { "Version", "DiscoveryDocumentUri", "DiscoveryName", "ResourceUrl", "Parent", "Data", }); - 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.orgpolicy.v1.OrgPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(); - com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(); - com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceProto.java b/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceProto.java deleted file mode 100644 index 444c8baba5e8..000000000000 --- a/owl-bot-staging/java-asset/v1p5beta1/proto-google-cloud-asset-v1p5beta1/src/main/java/com/google/cloud/asset/v1p5beta1/AssetServiceProto.java +++ /dev/null @@ -1,104 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1p5beta1/asset_service.proto - -package com.google.cloud.asset.v1p5beta1; - -public final class AssetServiceProto { - private AssetServiceProto() {} - 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_asset_v1p5beta1_ListAssetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/asset/v1p5beta1/asset_ser" + - "vice.proto\022\034google.cloud.asset.v1p5beta1" + - "\032\034google/api/annotations.proto\032\027google/a" + - "pi/client.proto\032\037google/api/field_behavi" + - "or.proto\032)google/cloud/asset/v1p5beta1/a" + - "ssets.proto\032\037google/protobuf/timestamp.p" + - "roto\"\324\001\n\021ListAssetsRequest\022\023\n\006parent\030\001 \001" + - "(\tB\003\340A\002\022-\n\tread_time\030\002 \001(\0132\032.google.prot" + - "obuf.Timestamp\022\023\n\013asset_types\030\003 \003(\t\022?\n\014c" + - "ontent_type\030\004 \001(\0162).google.cloud.asset.v" + - "1p5beta1.ContentType\022\021\n\tpage_size\030\005 \001(\005\022" + - "\022\n\npage_token\030\006 \001(\t\"\221\001\n\022ListAssetsRespon" + - "se\022-\n\tread_time\030\001 \001(\0132\032.google.protobuf." + - "Timestamp\0223\n\006assets\030\002 \003(\0132#.google.cloud" + - ".asset.v1p5beta1.Asset\022\027\n\017next_page_toke" + - "n\030\003 \001(\t*l\n\013ContentType\022\034\n\030CONTENT_TYPE_U" + - "NSPECIFIED\020\000\022\014\n\010RESOURCE\020\001\022\016\n\nIAM_POLICY" + - "\020\002\022\016\n\nORG_POLICY\020\004\022\021\n\rACCESS_POLICY\020\0052\367\001" + - "\n\014AssetService\022\227\001\n\nListAssets\022/.google.c" + - "loud.asset.v1p5beta1.ListAssetsRequest\0320" + - ".google.cloud.asset.v1p5beta1.ListAssets" + - "Response\"&\202\323\344\223\002 \022\036/v1p5beta1/{parent=*/*" + - "}/assets\032M\312A\031cloudasset.googleapis.com\322A" + - ".https://www.googleapis.com/auth/cloud-p" + - "latformB\270\001\n com.google.cloud.asset.v1p5b" + - "eta1B\021AssetServiceProtoP\001ZAgoogle.golang" + - ".org/genproto/googleapis/cloud/asset/v1p" + - "5beta1;asset\252\002\034Google.Cloud.Asset.V1P5Be" + - "ta1\312\002\034Google\\Cloud\\Asset\\V1p5beta1b\006prot" + - "o3" - }; - 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.cloud.asset.v1p5beta1.AssetProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p5beta1_ListAssetsRequest_descriptor, - new java.lang.String[] { "Parent", "ReadTime", "AssetTypes", "ContentType", "PageSize", "PageToken", }); - internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p5beta1_ListAssetsResponse_descriptor, - new java.lang.String[] { "ReadTime", "Assets", "NextPageToken", }); - 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.oauthScopes); - 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.cloud.asset.v1p5beta1.AssetProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetProto.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetProto.java deleted file mode 100644 index f29c856c2589..000000000000 --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetProto.java +++ /dev/null @@ -1,160 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1p7beta1/assets.proto - -package com.google.cloud.asset.v1p7beta1; - -public final class AssetProto { - private AssetProto() {} - 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_asset_v1p7beta1_Asset_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_Asset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_Resource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/asset/v1p7beta1/assets.pr" + - "oto\022\034google.cloud.asset.v1p7beta1\032\031googl" + - "e/api/resource.proto\032)google/cloud/orgpo" + - "licy/v1/orgpolicy.proto\032(google/cloud/os" + - "config/v1/inventory.proto\032\032google/iam/v1" + - "/policy.proto\032:google/identity/accesscon" + - "textmanager/v1/access_level.proto\032;googl" + - "e/identity/accesscontextmanager/v1/acces" + - "s_policy.proto\032?google/identity/accessco" + - "ntextmanager/v1/service_perimeter.proto\032" + - "\034google/protobuf/struct.proto\032\037google/pr" + - "otobuf/timestamp.proto\"\206\005\n\005Asset\022/\n\013upda" + - "te_time\030\013 \001(\0132\032.google.protobuf.Timestam" + - "p\022\014\n\004name\030\001 \001(\t\022\022\n\nasset_type\030\002 \001(\t\0228\n\010r" + - "esource\030\003 \001(\0132&.google.cloud.asset.v1p7b" + - "eta1.Resource\022)\n\niam_policy\030\004 \001(\0132\025.goog" + - "le.iam.v1.Policy\0225\n\norg_policy\030\006 \003(\0132!.g" + - "oogle.cloud.orgpolicy.v1.Policy\022N\n\racces" + - "s_policy\030\007 \001(\01325.google.identity.accessc" + - "ontextmanager.v1.AccessPolicyH\000\022L\n\014acces" + - "s_level\030\010 \001(\01324.google.identity.accessco" + - "ntextmanager.v1.AccessLevelH\000\022V\n\021service" + - "_perimeter\030\t \001(\01329.google.identity.acces" + - "scontextmanager.v1.ServicePerimeterH\000\022C\n" + - "\016related_assets\030\r \001(\0132+.google.cloud.ass" + - "et.v1p7beta1.RelatedAssets\022\021\n\tancestors\030" + - "\n \003(\t:\'\352A$\n\037cloudasset.googleapis.com/As" + - "set\022\001*B\027\n\025access_context_policy\"\262\001\n\010Reso" + - "urce\022\017\n\007version\030\001 \001(\t\022\036\n\026discovery_docum" + - "ent_uri\030\002 \001(\t\022\026\n\016discovery_name\030\003 \001(\t\022\024\n" + - "\014resource_url\030\004 \001(\t\022\016\n\006parent\030\005 \001(\t\022%\n\004d" + - "ata\030\006 \001(\0132\027.google.protobuf.Struct\022\020\n\010lo" + - "cation\030\010 \001(\t\"\242\001\n\rRelatedAssets\022U\n\027relati" + - "onship_attributes\030\001 \001(\01324.google.cloud.a" + - "sset.v1p7beta1.RelationshipAttributes\022:\n" + - "\006assets\030\002 \003(\0132*.google.cloud.asset.v1p7b" + - "eta1.RelatedAsset\"r\n\026RelationshipAttribu" + - "tes\022\014\n\004type\030\004 \001(\t\022\034\n\024source_resource_typ" + - "e\030\001 \001(\t\022\034\n\024target_resource_type\030\002 \001(\t\022\016\n" + - "\006action\030\003 \001(\t\"j\n\014RelatedAsset\0223\n\005asset\030\001" + - " \001(\tB$\372A!\n\037cloudasset.googleapis.com/Ass" + - "et\022\022\n\nasset_type\030\002 \001(\t\022\021\n\tancestors\030\003 \003(" + - "\tB\264\001\n com.google.cloud.asset.v1p7beta1B\n" + - "AssetProtoP\001ZAgoogle.golang.org/genproto" + - "/googleapis/cloud/asset/v1p7beta1;asset\370" + - "\001\001\252\002\034Google.Cloud.Asset.V1P7Beta1\312\002\034Goog" + - "le\\Cloud\\Asset\\V1p7beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(), - com.google.cloud.osconfig.v1.Inventories.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(), - com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(), - com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_asset_v1p7beta1_Asset_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_asset_v1p7beta1_Asset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_Asset_descriptor, - new java.lang.String[] { "UpdateTime", "Name", "AssetType", "Resource", "IamPolicy", "OrgPolicy", "AccessPolicy", "AccessLevel", "ServicePerimeter", "RelatedAssets", "Ancestors", "AccessContextPolicy", }); - internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_asset_v1p7beta1_Resource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_Resource_descriptor, - new java.lang.String[] { "Version", "DiscoveryDocumentUri", "DiscoveryName", "ResourceUrl", "Parent", "Data", "Location", }); - internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_RelatedAssets_descriptor, - new java.lang.String[] { "RelationshipAttributes", "Assets", }); - internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_RelationshipAttributes_descriptor, - new java.lang.String[] { "Type", "SourceResourceType", "TargetResourceType", "Action", }); - internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_RelatedAsset_descriptor, - new java.lang.String[] { "Asset", "AssetType", "Ancestors", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.orgpolicy.v1.OrgPolicyProto.getDescriptor(); - com.google.cloud.osconfig.v1.Inventories.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.identity.accesscontextmanager.v1.AccessLevelProto.getDescriptor(); - com.google.identity.accesscontextmanager.v1.PolicyProto.getDescriptor(); - com.google.identity.accesscontextmanager.v1.ServicePerimeterProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceProto.java b/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceProto.java deleted file mode 100644 index 93f4e5177984..000000000000 --- a/owl-bot-staging/java-asset/v1p7beta1/proto-google-cloud-asset-v1p7beta1/src/main/java/com/google/cloud/asset/v1p7beta1/AssetServiceProto.java +++ /dev/null @@ -1,203 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/asset/v1p7beta1/asset_service.proto - -package com.google.cloud.asset.v1p7beta1; - -public final class AssetServiceProto { - private AssetServiceProto() {} - 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_asset_v1p7beta1_ExportAssetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_OutputResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/asset/v1p7beta1/asset_ser" + - "vice.proto\022\034google.cloud.asset.v1p7beta1" + - "\032\034google/api/annotations.proto\032\027google/a" + - "pi/client.proto\032\037google/api/field_behavi" + - "or.proto\032\031google/api/resource.proto\032)goo" + - "gle/cloud/asset/v1p7beta1/assets.proto\032#" + - "google/longrunning/operations.proto\032\037goo" + - "gle/protobuf/timestamp.proto\"\267\002\n\023ExportA" + - "ssetsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037cl" + - "oudasset.googleapis.com/Asset\022-\n\tread_ti" + - "me\030\002 \001(\0132\032.google.protobuf.Timestamp\022\023\n\013" + - "asset_types\030\003 \003(\t\022?\n\014content_type\030\004 \001(\0162" + - ").google.cloud.asset.v1p7beta1.ContentTy" + - "pe\022F\n\routput_config\030\005 \001(\0132*.google.cloud" + - ".asset.v1p7beta1.OutputConfigB\003\340A\002\022\032\n\022re" + - "lationship_types\030\006 \003(\t\"\313\001\n\024ExportAssetsR" + - "esponse\022-\n\tread_time\030\001 \001(\0132\032.google.prot" + - "obuf.Timestamp\022A\n\routput_config\030\002 \001(\0132*." + - "google.cloud.asset.v1p7beta1.OutputConfi" + - "g\022A\n\routput_result\030\003 \001(\0132*.google.cloud." + - "asset.v1p7beta1.OutputResult\"\271\001\n\014OutputC" + - "onfig\022G\n\017gcs_destination\030\001 \001(\0132,.google." + - "cloud.asset.v1p7beta1.GcsDestinationH\000\022Q" + - "\n\024bigquery_destination\030\002 \001(\01321.google.cl" + - "oud.asset.v1p7beta1.BigQueryDestinationH" + - "\000B\r\n\013destination\"]\n\014OutputResult\022C\n\ngcs_" + - "result\030\001 \001(\0132-.google.cloud.asset.v1p7be" + - "ta1.GcsOutputResultH\000B\010\n\006result\"\037\n\017GcsOu" + - "tputResult\022\014\n\004uris\030\001 \003(\t\"C\n\016GcsDestinati" + - "on\022\r\n\003uri\030\001 \001(\tH\000\022\024\n\nuri_prefix\030\002 \001(\tH\000B" + - "\014\n\nobject_uri\"\273\001\n\023BigQueryDestination\022\024\n" + - "\007dataset\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\tB\003\340A\002\022" + - "\r\n\005force\030\003 \001(\010\022C\n\016partition_spec\030\004 \001(\0132+" + - ".google.cloud.asset.v1p7beta1.PartitionS" + - "pec\022&\n\036separate_tables_per_asset_type\030\005 " + - "\001(\010\"\260\001\n\rPartitionSpec\022O\n\rpartition_key\030\001" + - " \001(\01628.google.cloud.asset.v1p7beta1.Part" + - "itionSpec.PartitionKey\"N\n\014PartitionKey\022\035" + - "\n\031PARTITION_KEY_UNSPECIFIED\020\000\022\r\n\tREAD_TI" + - "ME\020\001\022\020\n\014REQUEST_TIME\020\002*~\n\013ContentType\022\034\n" + - "\030CONTENT_TYPE_UNSPECIFIED\020\000\022\014\n\010RESOURCE\020" + - "\001\022\016\n\nIAM_POLICY\020\002\022\016\n\nORG_POLICY\020\004\022\021\n\rACC" + - "ESS_POLICY\020\005\022\020\n\014RELATIONSHIP\020\0072\332\002\n\014Asset" + - "Service\022\372\001\n\014ExportAssets\0221.google.cloud." + - "asset.v1p7beta1.ExportAssetsRequest\032\035.go" + - "ogle.longrunning.Operation\"\227\001\202\323\344\223\002)\"$/v1" + - "p7beta1/{parent=*/*}:exportAssets:\001*\312Ae\n" + - "1google.cloud.asset.v1p7beta1.ExportAsse" + - "tsResponse\0220google.cloud.asset.v1p7beta1" + - ".ExportAssetsRequest\032M\312A\031cloudasset.goog" + - "leapis.com\322A.https://www.googleapis.com/" + - "auth/cloud-platformB\270\001\n com.google.cloud" + - ".asset.v1p7beta1B\021AssetServiceProtoP\001ZAg" + - "oogle.golang.org/genproto/googleapis/clo" + - "ud/asset/v1p7beta1;asset\252\002\034Google.Cloud." + - "Asset.V1P7Beta1\312\002\034Google\\Cloud\\Asset\\V1p" + - "7beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.asset.v1p7beta1.AssetProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_ExportAssetsRequest_descriptor, - new java.lang.String[] { "Parent", "ReadTime", "AssetTypes", "ContentType", "OutputConfig", "RelationshipTypes", }); - internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_ExportAssetsResponse_descriptor, - new java.lang.String[] { "ReadTime", "OutputConfig", "OutputResult", }); - internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_asset_v1p7beta1_OutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor, - new java.lang.String[] { "GcsDestination", "BigqueryDestination", "Destination", }); - internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_asset_v1p7beta1_OutputResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_OutputResult_descriptor, - new java.lang.String[] { "GcsResult", "Result", }); - internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_GcsOutputResult_descriptor, - new java.lang.String[] { "Uris", }); - internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_asset_v1p7beta1_GcsDestination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_GcsDestination_descriptor, - new java.lang.String[] { "Uri", "UriPrefix", "ObjectUri", }); - internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_BigQueryDestination_descriptor, - new java.lang.String[] { "Dataset", "Table", "Force", "PartitionSpec", "SeparateTablesPerAssetType", }); - internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_asset_v1p7beta1_PartitionSpec_descriptor, - new java.lang.String[] { "PartitionKey", }); - 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.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.asset.v1p7beta1.AssetProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -}